100+ results for 'php log'

Not the results you expected?

InstallSchema.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 407 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

18 /**

19 * {@inheritdoc}

20 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)

21 */

22 public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)

220 '64k',

221 [],

222 'Catalog entities (comma separated)'

223 )->addColumn(

224 'page_template',

os2.javainstall.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 31 lines ✨ Summary

This HTML code outputs a text explaining how to install and run jEdit on OS/2, including installation commands and instructions for starting the application. It also provides information about running the installer in text-only mode. The output is formatted with paragraphs and pre tags to display code snippets and file paths.

1 <!-- begin os2.javainstall.text -->

2

3 <!-- for jEdit: :mode=php:indentSize=2:tabSize=2:noTabs=true: -->

4

5 <p>To find out which Java virtual machine is best for running jEdit on OS/2,

6 see the <a href="index.php?page=compatibility">compatibility</a> page.</p>

7

8 <p>To install jEdit, open a command prompt and

content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines

1 <?php

2 //

3 // Created on: <2007-11-21 13:01:28 ab>

Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Dojo

17 * @subpackage Form_Element

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 */

35 * @package Zend_Dojo

36 * @subpackage Form_Element

37 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

38 * @license http://framework.zend.com/license/new-bsd New BSD License

39 */

pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines

1 <?php

2

3 return [

25 'last_added_subtitles' => 'Last Added Subtitles',

26 'support_subtitle' => 'Support Subtitle',

27 'user_login' => 'User Login',

28 'sign_up' => 'Sign Up',

29 'forgot_password' => 'Forgot Password',

30 'change_password' => 'Change Password',

31 'logout' => 'Logout',

32 'view_profile' => 'View Profile',

33 'please_enter_your_password_informations' => 'Please Enter Your Password Informations',

Barcode.php (https://github.com/leerbag/zf2.git) PHP · 323 lines

1 <?php

2 /**

3 * Zend Framework

15 * @category Zend

16 * @package Zend_Barcode

17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 */

35 * @category Zend

36 * @package Zend_Barcode

37 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

38 * @license http://framework.zend.com/license/new-bsd New BSD License

39 */

SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines

181

182 /**

183 * Reloads/compiles a PHP file.

184 * @param string $filename

185 * @return mixed

302 $message = array();

303 $message['actions'] = $this->messages;

304 $message['blog_id'] = w3_get_blog_id();

305 $message['host'] = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : null;

306 $message['hostname'] = @gethostname();

315 $this->_log($origin . ' sending message ' . $v);

316 $this->_log('Host: ' . $message['host']);

317 if (isset($_SERVER['REQUEST_URI']))

318 $this->_log('URL: ' . $_SERVER['REQUEST_URI']);

329

330 }

331 $this->_log('Backtrace ', $backtrace_optimized);

332

333 $r = $api->publish($this->_topic_arn, $v);

DictionaryLoader.php (https://github.com/gmimano/newd.git) PHP · 265 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Search_Lucene

17 * @subpackage Index

18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 */

31 * @package Zend_Search_Lucene

32 * @subpackage Index

33 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)

34 * @license http://framework.zend.com/license/new-bsd New BSD License

35 */

59 if ($tiVersion != (int)0xFFFFFFFE /* pre-2.1 format */ &&

60 $tiVersion != (int)0xFFFFFFFD /* 2.1+ format */) {

61 require_once 'Zend/Search/Lucene/Exception.php';

62 throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format');

63 }

Barcode.php (https://github.com/jtai/zf2.git) PHP · 323 lines

1 <?php

2 /**

3 * Zend Framework

15 * @category Zend

16 * @package Zend_Barcode

17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 */

35 * @category Zend

36 * @package Zend_Barcode

37 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

38 * @license http://framework.zend.com/license/new-bsd New BSD License

39 */

Cloud.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 410 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Tag

17 * @subpackage Cloud

18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id$

24 * @see Zend_Tag_Item

25 */

26 #require_once 'Zend/Tag/Item.php';

27

28 /**

29 * @category Zend

30 * @package Zend_Tag

31 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)

32 * @license http://framework.zend.com/license/new-bsd New BSD License

33 */

mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines

1 <?php

2 class Mail {

3 protected $to;

94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;

95 $header .= 'Return-Path: ' . $this->from . $this->newline;

96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;

97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;

98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;

157 exit();

158 } else {

159 if (substr(PHP_OS, 0, 3) != 'WIN') {

160 socket_set_timeout($handle, $this->timeout, 0);

161 }

202 }

203

204 fputs($handle, 'AUTH LOGIN' . $this->crlf);

205

206 $reply = '';

article0004Test.php (https://github.com/dextercowley/joomla-cms.git) PHP · 196 lines

1 <?php

2 /**

3 * @package Joomla.SystemTest

7 */

8

9 require_once 'SeleniumJoomlaTestCase.php';

10

11 /**

19 $this->setUp();

20 $this->gotoAdmin();

21 $this->doAdminLogin();

22 $this->click("link=Article Manager");

23 $this->waitForPageToLoad("30000");

64 $this->setUp();

65 $this->gotoAdmin();

66 $this->doAdminLogin();

67 $this->click("link=Article Manager");

68 $this->waitForPageToLoad("30000");

JFacebookNoteTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 467 lines

1 <?php

2 /**

3 * @package Joomla.UnitTest

65 $_SERVER['HTTP_HOST'] = 'example.com';

66 $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0';

67 $_SERVER['REQUEST_URI'] = '/index.php';

68 $_SERVER['SCRIPT_NAME'] = '/index.php';

70 $app_id = "app_id";

71 $app_secret = "app_secret";

72 $my_url = "http://localhost/gsoc/joomla-platform/facebook_test.php";

73 $access_token = array(

74 'access_token' => 'token',

Editor.php (https://github.com/Shreef/zf2.git) PHP · 601 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Dojo

17 * @subpackage Form_Element

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 */

35 * @package Zend_Dojo

36 * @subpackage Form_Element

37 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

38 * @license http://framework.zend.com/license/new-bsd New BSD License

39 */

Cloud.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 410 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Tag

17 * @subpackage Cloud

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id$

24 * @see Zend_Tag_Item

25 */

26 require_once 'Zend/Tag/Item.php';

27

28 /**

29 * @category Zend

30 * @package Zend_Tag

31 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

32 * @license http://framework.zend.com/license/new-bsd New BSD License

33 */

theming-functions.php (https://github.com/livinglab/openlab.git) PHP · 602 lines

1 <?php

2

3 //fire up some globals to use.

180 break;

181

182 case 'anthologizer':

183 return $api->getSectionPartItemAnthologizer($section, $partN, $itemN);

250 break;

251

252 case 'anthologizer':

253 $person = $api->getSectionPartItemAnthologizer($section, $partN, $itemN, false, false);

PhpReferenceCompatibility.php (https://gitlab.com/x33n/ImpressPages) PHP · 433 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

4 *

5 * @link http://github.com/zendframework/zf2 for the canonical source repository

6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)

7 * @license http://framework.zend.com/license/new-bsd New BSD License

8 */

20 *

21 * This ArrayObject is a rewrite of the implementation to fix

22 * issues with php's implementation of ArrayObject where you

23 * are unable to unset multi-dimensional arrays because you

24 * need to fetch the properties / lists as references.

25 */

26 abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable

27 {

28 /**

Cloud.php (https://github.com/komola/ZendFramework.git) PHP · 410 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Tag

17 * @subpackage Cloud

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id$

24 * @see Zend_Tag_Item

25 */

26 require_once 'Zend/Tag/Item.php';

27

28 /**

29 * @category Zend

30 * @package Zend_Tag

31 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

32 * @license http://framework.zend.com/license/new-bsd New BSD License

33 */

Module.php (https://bitbucket.org/buonaparte/zfalbum.git) PHP · 281 lines

1 <?php

2

3 namespace User;

14 use User\Entity\User;

15 use User\EventManager\UserMapperListenerAggregate;

16 use User\Form\LoginUser;

17 use User\Form\RegisterUser;

18 use User\Service\PasswordManager;

57 public function getConfig()

58 {

59 return include __DIR__.'/../../config/module.config.php';

60 }

61

123 return $form;

124 },

125 'User\Form\LoginUser' => function (FormElementManager $fm) {

126 /** @var $authAdapter MapperAdapter */

127 $authAdapter = $fm->getServiceLocator()->get('User\Service\Auth\Adapter');

orderdocument.php (https://gitlab.com/neuser/bitrix-core) PHP · 621 lines

1 <?php

2 namespace Bitrix\Sale\Exchange\OneC;

3

492 'TYPE' => 'float'

493 ),

494 'CATALOG_ID' => array(

495 'TYPE' => 'string'

496 ),

ConfigListener.php (https://bitbucket.org/juan_sanchez/aiyellow.git) PHP · 383 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

4 *

5 * @link http://github.com/zendframework/zf2 for the canonical source repository

6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)

7 * @license http://framework.zend.com/license/new-bsd New BSD License

8 */

Statistics.php (https://github.com/massiveart/ZF-ZOOLU.git) PHP · 309 lines

1 <?php

2

3 /**

17 * @package Zend_Gdata

18 * @subpackage YouTube

19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Statistics.php 20096 2010-01-06 02:05:09Z bkarwin $

25 * @see Zend_Gdata_Extension

26 */

27 require_once 'Zend/Gdata/Extension.php';

28

29 /**

33 * @package Zend_Gdata

34 * @subpackage YouTube

35 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

36 * @license http://framework.zend.com/license/new-bsd New BSD License

37 */

google.php (https://gitlab.com/Ltaimao/wecenter) PHP · 338 lines

1 <?php

2 /*

3 +--------------------------------------------------------------------------

59 }

60

61 public function oauth2_login()

62 {

63 if (!$this->get_access_token() OR !$this->validate_access_token() OR !$this->get_user_info())

Statistics.php (https://github.com/chadladensack/zf_doctrine_mongodb.git) PHP · 309 lines

1 <?php

2

3 /**

17 * @package Zend_Gdata

18 * @subpackage YouTube

19 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Statistics.php 23775 2011-03-01 17:25:24Z ralph $

25 * @see Zend_Gdata_Extension

26 */

27 require_once 'Zend/Gdata/Extension.php';

28

29 /**

33 * @package Zend_Gdata

34 * @subpackage YouTube

35 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

36 * @license http://framework.zend.com/license/new-bsd New BSD License

37 */

FaultTest.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 297 lines

24 if (!defined("PHPUnit_MAIN_METHOD")) {

25 require_once dirname(__FILE__) . '/../../../TestHelper.php';

26 define("PHPUnit_MAIN_METHOD", "Zend_XmlRpc_Server_FaultTest::main");

27 }

28

29 require_once "PHPUnit/Framework/TestCase.php";

30 require_once "PHPUnit/Framework/TestSuite.php";

39 * @package Zend_XmlRpc

40 * @subpackage UnitTests

41 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

42 * @license http://framework.zend.com/license/new-bsd New BSD License

43 * @group Zend_XmlRpc

53 public static function main()

54 {

55 require_once "PHPUnit/TextUI/TestRunner.php";

56

57 $suite = new PHPUnit_Framework_TestSuite("Zend_XmlRpc_Server_FaultTest");

schema.yml (https://github.com/eurotux/ETVA.git) YAML · 204 lines

120 logicalvolume:

121 _attributes: { phpName: EtvaLogicalvolume }

122 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }

123 cluster_id: { type: INTEGER, required: true, foreignTable: cluster, foreignReference: id, onDelete: restrict }

156 value: { type: LONGVARCHAR }

157 volume_physical:

158 _attributes: { phpName: EtvaVolumePhysical }

159 volumegroup_id: { type: INTEGER, primaryKey: true, required: true, foreignTable: volumegroup, foreignReference: id, onDelete: cascade }

160 physicalvolume_id: { type: INTEGER, primaryKey: true, required: true, foreignTable: physicalvolume, foreignReference: id, onDelete: cascade }

168 _attributes: { phpName: EtvaServerLogical }

169 server_id: { type: INTEGER, primaryKey: true, required: true, foreignTable: server, foreignReference: id, onDelete: cascade }

170 logicalvolume_id: { type: INTEGER, primaryKey: true, required: true, foreignTable: logicalvolume, foreignReference: id, onDelete: cascade }

171 disk_type: { type: VARCHAR, size: '255' }

172 boot_disk: { type: INTEGER, default: '0' }

192 _attributes: { phpName: EtvaNodeLogicalvolume }

193 node_id: { type: INTEGER, primaryKey: true, required: true, foreignTable: node, foreignReference: id, onDelete: cascade }

194 logicalvolume_id: { type: INTEGER, primaryKey: true, required: true, foreignTable: logicalvolume, foreignReference: id, onDelete: cascade }

195 inconsistent: { type: INTEGER, required: true }

196 sessions:

ZendQueue.php (https://github.com/jtai/zf2.git) PHP · 303 lines

1 <?php

2 /**

3 * LICENSE

14 * @package Zend\Cloud\QueueService

15 * @subpackage Adapter

16 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

17 * @license http://framework.zend.com/license/new-bsd New BSD License

18 */

33 * @package Zend\Cloud\QueueService

34 * @subpackage Adapter

35 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

36 * @license http://framework.zend.com/license/new-bsd New BSD License

37 */

PrettyPrinterAbstract.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 262 lines

87 * Pretty prints an expression.

88 *

89 * @param PHPParser_Node_Expr $node Expression node

90 *

91 * @return string Pretty printed node

92 */

93 public function prettyPrintExpr(PHPParser_Node_Expr $node) {

94 return str_replace("\n" . $this->noIndentToken, "\n", $this->p($node));

95 }

168 }

169

170 protected function pInfixOp($type, PHPParser_Node $leftNode, $operatorString, PHPParser_Node $rightNode) {

171 list($precedence, $associativity) = $this->precedenceMap[$type];

172

Atom.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 400 lines

1 <?php

2 /**

3 * Zend Framework

15 * @category Zend

16 * @package Zend_Feed_Reader

17 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id$

23 * @see Zend_Feed_Reader

24 */

25 #require_once 'Zend/Feed/Reader.php';

26

27 /**

28 * @see Zend_Feed_Reader_EntryInterface

29 */

30 #require_once 'Zend/Feed/Reader/EntryInterface.php';

31

32 /**

TranslatorTest.php (https://gitlab.com/Marwamimo/Crowdrise_Web) PHP · 288 lines

18 use Symfony\Component\Translation\MessageSelector;

19

20 class TranslatorTest extends \PHPUnit_Framework_TestCase

21 {

22 protected $tmpDir;

178 protected function getCatalogue($locale, $messages)

179 {

180 $catalogue = new MessageCatalogue($locale);

181 foreach ($messages as $key => $translation) {

182 $catalogue->set($key, $translation);

183 }

184

185 return $catalogue;

186 }

187

Form.class.php (https://github.com/bassta/onphp-framework.git) PHP · 498 lines

1 <?php

2 /****************************************************************************

3 * Copyright (C) 2004-2009 by Konstantin V. Arkhipov, Anton E. Lebedevich *

16 * @ingroup Module

17 *

18 * @see http://onphp.org/examples.Form.en.html

19 **/

20 final class Form extends RegulatedForm

367 if ($value instanceof FormField)

368 return $this->getValue($value->getName());

369 elseif ($value instanceof LogicalObject)

370 return $value->toBoolean($this);

371 else

Clinic.php (https://gitlab.com/jeamar1234/medicloud) PHP · 242 lines

1 <?php

2

3 use Illuminate\Auth\UserTrait;

vfsStreamWrapperFileTestCase.php (https://github.com/acoulton/vfsStream.git) PHP · 335 lines

1 <?php

2 /**

3 * Test for org::bovigo::vfs::vfsStreamWrapper.

9 require_once 'org/bovigo/vfs/vfsStream.php';

10 require_once 'PHPUnit/Framework/TestCase.php';

11 require_once dirname(__FILE__) . '/vfsStreamWrapperBaseTestCase.php';

Importer.php (https://github.com/ewandor/horde.git) PHP · 321 lines

1 <?php

2 /**

3 * Connector class for importing ActiveSync messages from the wbxml input stream

12

13 /**

14 * File : streamimporter.php

15 * Project : Z-Push

16 * Descr : Stream import classes

81 * Setter for a logger instance

82 *

83 * @param Horde_Log_Logger $logger The logger

84 */

85 public function setLogger($logger)

86 {

87 $this->_logger = $logger;

88 }

89

Indexer.php (https://bitbucket.org/acidel/buykoala.git) PHP · 309 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

20 *

21 * @category Mage

22 * @package Mage_Catalog

23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

27

28 /**

29 * Catalog Product Flat Indexer Model

30 *

31 * @method Mage_Catalog_Model_Resource_Product_Flat_Indexer _getResource()

Consumer.php (https://bitbucket.org/acidel/buykoala.git) PHP · 279 lines

1 <?php

2 /**

3 * Zend Framework

15 * @category Zend

16 * @package Zend_Oauth

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Consumer.php 23170 2010-10-19 18:29:24Z mabe $

21

22 /** Zend_Oauth */

23 #require_once 'Zend/Oauth.php';

24

25 /** Zend_Uri */

26 #require_once 'Zend/Uri.php';

27

28 /** Zend_Oauth_Http_RequestToken */

Statistics.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 309 lines

1 <?php

2

3 /**

17 * @package Zend_Gdata

18 * @subpackage YouTube

19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Statistics.php 24593 2012-01-05 20:35:02Z matthew $

25 * @see Zend_Gdata_Extension

26 */

27 require_once 'Zend/Gdata/Extension.php';

28

29 /**

33 * @package Zend_Gdata

34 * @subpackage YouTube

35 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

36 * @license http://framework.zend.com/license/new-bsd New BSD License

37 */

Admin.php (https://github.com/intraweb-modules13/IWstats.git) PHP · 225 lines

1 <?php

2

3 class IWstats_Api_Admin extends Zikula_AbstractApi {

36

37 if (!DBUtil::updateObject($items, 'IWstats', $where)) {

38 return LogUtil::registerError($this->__('Error! Sorry! Deletion attempt failed.'));

39 }

40

54 $items = array('skippedModule' => 0);

55 if (!DBUTil::updateObject($items, 'IWstats', $where)) {

56 return LogUtil::registerError($this->__('Error! Update attempt failed.'));

57 }

58

61 $where = "$c[moduleid] = $module";

62 if (!DBUTil::updateObject($items, 'IWstats', $where)) {

63 return LogUtil::registerError($this->__('Error! Update attempt failed.'));

64 }

65 }

Cloud.php (https://github.com/erochest/Omeka.git) PHP · 410 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Tag

17 * @subpackage Cloud

18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id$

24 * @see Zend_Tag_Item

25 */

26 require_once 'Zend/Tag/Item.php';

27

28 /**

29 * @category Zend

30 * @package Zend_Tag

31 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)

32 * @license http://framework.zend.com/license/new-bsd New BSD License

33 */

Form.php (https://github.com/flubbers/cloudFutbol.git) PHP · 390 lines

1 <?php

2

3 /*

33 * @param string $method The method to use for the link (if null, it defaults to the method defined by the form)

34 *

35 * @throws \LogicException if the node is not a button inside a form tag

36 *

37 * @api

123

124 /**

125 * Gets the field values as PHP.

126 *

127 * This method converts fields with th array notation

128 * (like foo[bar] to arrays) like PHP does.

129 *

130 * @return array An array of field values.

porteren.php (https://github.com/pjwiseman/joomla-cms.git) PHP · 449 lines

1 <?php

2 /**

3 * @package Joomla.Platform

5 *

6 * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.

7 * @copyright Copyright (C) 2005 Richard Heyes (http://www.phpguru.org/). All rights reserved.

8 * @license GNU General Public License version 2 or later; see LICENSE

9 */

175 break;

176 case 'g':

177 self::_replace($word, 'logi', 'log', 0);

178 break;

179 case 'l':

tour_filter.feature (https://github.com/abgreeve/moodle.git) Gherkin Specification · 229 lines

20 | teacher1 | C1 | teacher |

21 | student1 | C1 | student |

22 And I log in as "admin"

23 And I add a new user tour with:

24 | Name | First tour |

25 | Description | My first tour |

26 | Apply to URL match | /course/view.php% |

27 | Tour is enabled | 1 |

28 | Role | Student,Non-editing teacher |

30 | targettype | Title | Content |

31 | Display in middle of page | Welcome | Welcome to your course tour.|

32 And I log out

33 And I log in as "editor1"

34 When I am on "Course 1" course homepage

35 Then I should not see "Welcome to your course tour."

36 And I log out

37 And I log in as "student1"

Openssl.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 353 lines

1 <?php

2 /**

3 * Zend Framework

15 * @category Zend

16 * @package Zend_Filter

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Openssl.php 20288 2010-01-14 20:15:43Z thomas $

23 * @see Zend_Filter_Encrypt_Interface

24 */

25 // require_once 'Zend/Filter/Encrypt/Interface.php';

26

27 /**

30 * @category Zend

31 * @package Zend_Filter

32 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

33 * @license http://framework.zend.com/license/new-bsd New BSD License

34 */

DeferredAuthentication.java (https://github.com/dekellum/jetty.git) Java · 341 lines

38 public class DeferredAuthentication implements Authentication.Deferred

39 {

40 private static final Logger LOG = Log.getLogger(DeferredAuthentication.class);

41

42 protected final Authenticator _authenticator;

88

89 /* ------------------------------------------------------------ */

90 public void setLoginService(LoginService loginService)

91 {

92 _loginService = loginService;

145 if (_loginService!=null)

146 {

147 UserIdentity user = _loginService.login(username,password);

148 if (user!=null)

149 {

Task.php (https://github.com/querl/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 371 lines

1 <?php

2 /**

3 * Zend Framework

15 * @category Zend

16 * @package Zend_Scheduler

17 * @copyright Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 */

24 * @category Zend

25 * @package Zend_Scheduler

26 * @copyright Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

27 * @license http://framework.zend.com/license/new-bsd New BSD License

28 */

Atom.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 400 lines

1 <?php

2 /**

3 * Zend Framework

15 * @category Zend

16 * @package Zend_Feed_Reader

17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id$

23 * @see Zend_Feed_Reader

24 */

25 require_once 'Zend/Feed/Reader.php';

26

27 /**

28 * @see Zend_Feed_Reader_EntryInterface

29 */

30 require_once 'Zend/Feed/Reader/EntryInterface.php';

31

32 /**

Set.php (https://github.com/CloCkWeRX/Pyrus.git) PHP · 284 lines

1 <?php

2 /**

3 * \Pyrus\Dependency\Set

4 *

5 * PHP version 5

6 *

7 * @category Pyrus

8 * @package Pyrus

9 * @author Greg Beaver <cellog@php.net>

10 * @copyright 2010 The PEAR Group

11 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License

23 * @category Pyrus

24 * @package Pyrus

25 * @author Greg Beaver <cellog@php.net>

26 * @copyright 2010 The PEAR Group

27 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License

Atom.php (https://github.com/komola/ZendFramework.git) PHP · 400 lines

1 <?php

2 /**

3 * Zend Framework

15 * @category Zend

16 * @package Zend_Feed_Reader

17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id$

23 * @see Zend_Feed_Reader

24 */

25 require_once 'Zend/Feed/Reader.php';

26

27 /**

28 * @see Zend_Feed_Reader_EntryInterface

29 */

30 require_once 'Zend/Feed/Reader/EntryInterface.php';

31

32 /**

DictionaryLoader.php (https://github.com/jpratt/cal.git) PHP · 265 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Search_Lucene

17 * @subpackage Index

18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 */

31 * @package Zend_Search_Lucene

32 * @subpackage Index

33 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)

34 * @license http://framework.zend.com/license/new-bsd New BSD License

35 */

59 if ($tiVersion != (int)0xFFFFFFFE /* pre-2.1 format */ &&

60 $tiVersion != (int)0xFFFFFFFD /* 2.1+ format */) {

61 #require_once 'Zend/Search/Lucene/Exception.php';

62 throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format');

63 }

classCLITest.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 267 lines

3 require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';

4 require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';

5 require_once PATH_TRUNK . 'gulliver/system/class.form.php';

6 require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';

7 require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';

8 require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';

9 require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';

10 require_once PATH_TRUNK . 'workflow/engine/classes/class.cli.php';

247

248 /**

249 * @covers CLI::logging

250 * @todo Implement testlogging().

253 {

254 $methods = get_class_methods($this->object);

255 $this->assertTrue( in_array('logging', $methods ), 'exists method logging' );

256 $r = new ReflectionMethod('CLI', 'logging');

AbstractWriter.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 334 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

4 *

5 * @link http://github.com/zendframework/zf2 for the canonical source repository

6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)

7 * @license http://framework.zend.com/license/new-bsd New BSD License

8 */

9

10 namespace Zend\Log\Writer;

11

12 use Traversable;

13 use Zend\Log\Exception;

14 use Zend\Log\Filter;

Files.php (https://github.com/jaws-project/jaws.git) PHP · 282 lines

1 <?php

2 /**

3 * Directory Gadget

52 {

53 try {

54 $loggedUser = (int)$this->app->session->user->id;

55 // Validate parent

56 if ($data['parent'] != 0) {

92 return Jaws_HTTPError::Get(403);

93 }

94 } elseif ($dbFileInfo['user'] != $loggedUser) {

95 return Jaws_HTTPError::Get(403);

96 }

184 //insert new file

185 unset($data['id']);

186 $data['user'] = $loggedUser;

187 $id = $this->InsertFile($data);

188 if (Jaws_Error::IsError($id)) {

user_model.old.php (https://github.com/mkhairul/Presta.git) PHP · 307 lines

1 <?php

2 class User_model extends Model {

3

93 if ($CI->dbforge->create_table($this->table_name))

94 {

95 log_message('debug', "User Table Created.. creating default account..");

96

97 $CI->load->model('auth_model', 'auth');

103 'username' => 'admin',

104 'password' => $password,

105 'email' => 'admin@myprojectlog.com',

106 'timecreated' => strtotime('now')

107 );

108 $this->db->insert($this->table_name, $data);

109

110 log_message('debug', "Admin account created");

111 }

112 }

JErrorTest.php (https://github.com/Paladin/joomla-platform.git) PHP · 473 lines

1 <?php

2 /**

3 * @package Joomla.UnitTest

8 */

9

10 require_once JPATH_PLATFORM . '/legacy/error/error.php';

11 require_once JPATH_PLATFORM . '/legacy/exception/exception.php';

12 require_once __DIR__ . '/JErrorInspector.php';

13

14 /**

398

399 /**

400 * Test JError::handleLog

401 *

402 * @todo Implement testHandleLog().

_layout.scss (https://github.com/jacquesbh/jacquesbh.github.com.git) Sass · 551 lines

88

89 /**

90 * Forum PHP

91 */

92 #forumphp {

108

109 /*

110 #loginWrap {

111 background: url(../img/espace_client.png) left bottom no-repeat #454d1b;

112 width: 280px;

122 }

123

124 #loginWrap h5 {

125 font-size: 1em;

126 float: left;

actions.php (https://gitlab.com/Ltaimao/wecenter) PHP · 544 lines

50 {

51 // 回复问题

52 $where_in[] = "(associate_type = " . ACTION_LOG::CATEGORY_QUESTION . " AND associate_id IN (" . implode(',', $user_focus_questions_ids) . ") AND associate_action = " . ACTION_LOG::ANSWER_QUESTION . " AND uid <> " . $uid . ")";

53 }*/

54

57 {

58 // 回复问题, 新增问题, 赞同答案

59 $where_in[] = "(associate_type = " . ACTION_LOG::CATEGORY_QUESTION . " AND associate_id IN (" . implode(',', $user_focus_topics_questions_ids) . ") AND associate_action IN (" . ACTION_LOG::ANSWER_QUESTION . ", " . ACTION_LOG::ADD_QUESTION . ", " . ACTION_LOG::ADD_AGREE . ") AND uid <> " . $uid . ")";

60 }

61

70 {

71 // 添加问题, 回复问题, 添加文章

72 $where_in[] = "(uid IN (" . implode(',', $user_follow_uids) . ") AND associate_action IN(" . ACTION_LOG::ADD_QUESTION . ',' . ACTION_LOG::ANSWER_QUESTION . ',' . ACTION_LOG::ADD_ARTICLE . ',' . ACTION_LOG::ADD_COMMENT_ARTICLE . '))';

73

74 // 增加赞同, 文章评论

AnalysisTest.php (https://github.com/bruisedlee/zf2.git) PHP · 382 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Search_Lucene

17 * @subpackage UnitTests

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 */

36

37 /**

38 * PHPUnit test case

39 */

40

43 * @package Zend_Search_Lucene

44 * @subpackage UnitTests

45 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

46 * @license http://framework.zend.com/license/new-bsd New BSD License

47 * @group Zend_Search_Lucene

FormErrors.php (https://github.com/leerbag/zf2.git) PHP · 466 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Form

17 * @subpackage Decorator

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 */

39 * @package Zend_Form

40 * @subpackage Decorator

41 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

42 * @license http://framework.zend.com/license/new-bsd New BSD License

43 */

FUXmlWriter.cpp (https://bitbucket.org/ardalanaz/dava.framework.git) C++ · 259 lines

4 Copyright (C) 2005-2007 Sony Computer Entertainment America

5

6 MIT License: http://www.opensource.org/licenses/mit-license.php

7 */

8

221 // Do an insertion sort in alphabetical order of the element names.

222 // Walk backward from the last child, to make sure that

223 // the chronological ordering of elements of the same type is respected.

224 //

225 for (xmlNode* p = xmlGetLastChild(parent); p != NULL; p = p->prev)

BasesfGuardUser.class.php (https://github.com/arturolinares/asandbox.git) PHP · 199 lines

65 * @method sfGuardUser setAccesses() Sets the current record's "Accesses" collection

66 * @method sfGuardUser setMediaItems() Sets the current record's "MediaItems" collection

67 * @method sfGuardUser setBlogAuthorItems() Sets the current record's "BlogAuthorItems" collection

68 * @method sfGuardUser setBlogEditorItems() Sets the current record's "BlogEditorItems" collection

69 * @method sfGuardUser setBlogItemEditors() Sets the current record's "BlogItemEditors" collection

70 * @method sfGuardUser setBlogCategories() Sets the current record's "BlogCategories" collection

173 'foreign' => 'user_id'));

174

175 $this->hasMany('aBlogCategory as BlogCategories', array(

176 'refClass' => 'aBlogCategoryUser',

178 'foreign' => 'blog_category_id'));

179

180 $this->hasMany('aBlogCategoryUser as BlogCategoryUsers', array(

181 'local' => 'id',

182 'foreign' => 'user_id'));

Statistics.php (https://gitlab.com/grayhamster/open-social-media-monitoring) PHP · 309 lines

1 <?php

2

3 /**

17 * @package Zend_Gdata

18 * @subpackage YouTube

19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Statistics.php 24594 2012-01-05 21:27:01Z matthew $

25 * @see Zend_Gdata_Extension

26 */

27 require_once 'Zend/Gdata/Extension.php';

28

29 /**

33 * @package Zend_Gdata

34 * @subpackage YouTube

35 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

36 * @license http://framework.zend.com/license/new-bsd New BSD License

37 */

AnalysisTest.php (https://github.com/jtai/zf2.git) PHP · 382 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Search_Lucene

17 * @subpackage UnitTests

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 */

36

37 /**

38 * PHPUnit test case

39 */

40

43 * @package Zend_Search_Lucene

44 * @subpackage UnitTests

45 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

46 * @license http://framework.zend.com/license/new-bsd New BSD License

47 * @group Zend_Search_Lucene

PhpReferenceCompatibility.php (https://gitlab.com/koodersmiikka/operaatio-terveys) PHP · 433 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

4 *

5 * @link http://github.com/zendframework/zf2 for the canonical source repository

6 * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)

7 * @license http://framework.zend.com/license/new-bsd New BSD License

8 */

20 *

21 * This ArrayObject is a rewrite of the implementation to fix

22 * issues with php's implementation of ArrayObject where you

23 * are unable to unset multi-dimensional arrays because you

24 * need to fetch the properties / lists as references.

25 */

26 abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable

27 {

28 /**

FormErrors.php (https://github.com/jtai/zf2.git) PHP · 466 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Form

17 * @subpackage Decorator

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 */

39 * @package Zend_Form

40 * @subpackage Decorator

41 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

42 * @license http://framework.zend.com/license/new-bsd New BSD License

43 */

modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines

1 <?php

2 // Prevent file from being loaded directly

3 if ( ! defined( 'ABSPATH' ) ) {

150 'et_pb_featured_posts_slider-border_radius' => '3px',

151

152 // Blog Feed Standard

153 'et_pb_posts_blog_feed_standard-header_font_size' => '16px',

154 'et_pb_posts_blog_feed_standard-header_font_style' => 'uppercase',

155 'et_pb_posts_blog_feed_standard-header_text_color' => '',

156 'et_pb_posts_blog_feed_standard-header_line_height' => '1',

157 'et_pb_posts_blog_feed_standard-header_letter_spacing' => '1.2px',

158

159 'et_pb_posts_blog_feed_standard-title_font_size' => '18px',

160 'et_pb_posts_blog_feed_standard-title_font_style' => '',

migration_tables_core_538.php (https://bitbucket.org/blackriver/openx.git) PHP · 318 lines

1 <?php

2

3 /*

23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |

24 +---------------------------------------------------------------------------+

25 $Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $

26 */

27

28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');

29

30 class Migration_538 extends Migration

308 $result = $this->oDBH->exec($query);

309 if (PEAR::isError($result)) {

310 return $this->_logErrorAndReturnFalse('Cannot migrate '.$table);

311 }

312

HttpTestCaseTest.php (https://github.com/devilsansclue/ZendFramework.git) PHP · 316 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Controller

17 * @subpackage UnitTests

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id$

22

23 // Call Zend_Controller_Request_HttpTestCaseTest::main() if this source file is executed directly.

24 if (!defined("PHPUnit_MAIN_METHOD")) {

25 define("PHPUnit_MAIN_METHOD", "Zend_Controller_Request_HttpTestCaseTest::main");

27

28 /** Zend_Controller_Request_HttpTestCase */

29 require_once 'Zend/Controller/Request/HttpTestCase.php';

30

31 /**

install-1.6.0.0.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 174 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Weee

23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

77 'country', $installer->getTable('directory/country'), 'country_id',

78 Varien_Db_Ddl_Table::ACTION_CASCADE, Varien_Db_Ddl_Table::ACTION_CASCADE)

79 ->addForeignKey($installer->getFkName('weee/tax', 'entity_id', 'catalog/product', 'entity_id'),

80 'entity_id', $installer->getTable('catalog/product'), 'entity_id',

shared.php (https://github.com/aimakun/odlib.git) PHP · 115 lines

28 &nbsp; &nbsp; <a href="../catalog/biblio_hold_list.php?bibid=<?php echo HURL($bibid);?>" class="alt1"><?php echo $navLoc->getText("catalogHolds");?></a><br>

29 &nbsp; &nbsp; <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&amp;title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>

30 <?php } ?>

66 &nbsp; &nbsp; <a href="../catalog/biblio_hold_list.php?bibid=<?php echo HURL($bibid);?>" class="alt1"><?php echo $navLoc->getText("catalogHolds");?></a><br>

67 &nbsp; &nbsp; <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&amp;title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>

68 <?php } ?>

76 &nbsp; &nbsp; <a href="../catalog/biblio_hold_list.php?bibid=<?php echo HURL($bibid);?>" class="alt1"><?php echo $navLoc->getText("catalogHolds");?></a><br>

77 &nbsp; &nbsp; <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&amp;title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>

78 <?php } ?>

86 &nbsp; &nbsp; <a href="../catalog/biblio_hold_list.php?bibid=<?php echo HURL($bibid);?>" class="alt1"><?php echo $navLoc->getText("catalogHolds");?></a><br>

87 &nbsp; &nbsp; <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&amp;title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>

88 <?php } ?>

95 &nbsp; &nbsp; &raquo; <?php echo $navLoc->getText("catalogHolds");?><br>

96 &nbsp; &nbsp; <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&amp;title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>

97 <?php } ?>

length_class.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 412 lines

1 <?php

2 class ControllerLocalisationLengthClass extends Controller {

3 private $error = array();

389 }

390

391 $this->load->model('catalog/product');

392

393 foreach ($this->request->post['selected'] as $length_class_id) {

396 }

397

398 $product_total = $this->model_catalog_product->getTotalProductsByLengthClassId($length_class_id);

399

400 if ($product_total) {

Atom.php (https://github.com/zf/ZendFramework-Library.git) PHP · 400 lines

1 <?php

2 /**

3 * Zend Framework

15 * @category Zend

16 * @package Zend_Feed_Reader

17 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id$

23 * @see Zend_Feed_Reader

24 */

25 require_once 'Zend/Feed/Reader.php';

26

27 /**

28 * @see Zend_Feed_Reader_EntryInterface

29 */

30 require_once 'Zend/Feed/Reader/EntryInterface.php';

31

32 /**

AnalysisTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 383 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Search_Lucene

17 * @subpackage UnitTests

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: AnalysisTest.php 24593 2012-01-05 20:35:02Z matthew $

24 * Zend_Search_Lucene

25 */

26 require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';

27

28 /**

30 * @package Zend_Search_Lucene

31 * @subpackage UnitTests

32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

33 * @license http://framework.zend.com/license/new-bsd New BSD License

34 * @group Zend_Search_Lucene

class-yoast-plugin-conflict.php (https://gitlab.com/najomie/fit-hippie) PHP · 333 lines

1 <?php

2 /**

3 * @package WPSEO\Admin

116 public function get_conflicting_plugins_as_string( $plugin_section ) {

117 if ( ! function_exists( 'get_plugin_data' ) ) {

118 require_once( ABSPATH . '/wp-admin/includes/plugin.php' );

119 }

120

200

201 /* translators: %s: 'Facebook' plugin name of possibly conflicting plugin */

202 $error_message .= '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . $plugin_file . '&amp;plugin_status=all', 'deactivate-plugin_' . $plugin_file ) . '">' . sprintf( __( 'Deactivate %s', 'wordpress-seo' ), WPSEO_Utils::get_plugin_name( $plugin_file ) ) . '</a> ';

203

204 $identifier = $this->get_notification_identifier( $plugin_file );

ImageSizeTest.php (https://github.com/Exercise/zf2.git) PHP · 253 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Validate_File

17 * @subpackage UnitTests

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id$

29

30 // Call Zend_Validate_File_ImageSizeTest::main() if this source file is executed directly.

31 if (!defined("PHPUnit_MAIN_METHOD")) {

32 define("PHPUnit_MAIN_METHOD", "Zend_Validate_File_ImageSizeTest::main");

45 * @package Zend_Validate_File

46 * @subpackage UnitTests

47 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

48 * @license http://framework.zend.com/license/new-bsd New BSD License

49 * @group Zend_Validate

menu.tpl (https://gitlab.com/reclamare/mao) Smarty Template · 202 lines

2 <li id="dashboard"><a href="<?php echo $home; ?>"><i class="fa fa-dashboard fa-fw"></i> <span><?php echo $text_dashboard; ?></span></a></li>

3 <li id="catalog"><a class="parent"><i class="fa fa-tags fa-fw"></i> <span><?php echo $text_catalog; ?></span></a>

4 <ul>

5 <li><a href="<?php echo $category; ?>"><?php echo $text_category; ?></a></li>

6 <li><a href="<?php echo $product; ?>"><?php echo $text_product; ?></a></li>

7 <li><a href="<?php echo $recurring; ?>"><?php echo $text_recurring; ?></a></li>

8 <li><a href="<?php echo $filter; ?>"><?php echo $text_filter; ?></a></li>

9 <li><a class="parent"><?php echo $text_attribute; ?></a>

141 <li><a href="<?php echo $return_action; ?>"><?php echo $text_return_action; ?></a></li>

142 <li><a href="<?php echo $return_reason; ?>"><?php echo $text_return_reason; ?></a></li>

143 </ul>

144 </li>

145 <li><a href="<?php echo $country; ?>"><?php echo $text_country; ?></a></li>

146 <li><a href="<?php echo $zone; ?>"><?php echo $text_zone; ?></a></li>

147 <li><a href="<?php echo $geo_zone; ?>"><?php echo $text_geo_zone; ?></a></li>

mpr.c (https://github.com/trevor/ImageMagick.git) C · 220 lines

24 % obtain a copy of the License at %

25 % %

26 % http://www.imagemagick.org/script/license.php %

27 % %

28 % Unless required by applicable law or agreed to in writing, software %

94 assert(image_info->signature == MagickSignature);

95 if (image_info->debug != MagickFalse)

96 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",

97 image_info->filename);

98 assert(exception != (ExceptionInfo *) NULL);

214 assert(image->signature == MagickSignature);

215 if (image->debug != MagickFalse)

216 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);

217 status=SetImageRegistry(ImageRegistryType,image->filename,image,

218 &image->exception);

filing_costs.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 198 lines

38

39 ?>

40 <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div>

41

42

96 <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>">

97 <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/>

98 </div>

99 <!-- <div class="finance_input float_left" style="width: 170px;">-->

116 <?php foreach($invoice->invoices as $file) { ?>

117 <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a>

118 <?php } ?>

177 </div>

178 <div class="finance_input float_left">

179 <?php echo $currency_sign ?><input readonly="true" value="<?php echo $estimate_summ ?>" type="text"/>

180 </div>

181 <div class="clear"></div>

Guard.php (https://bitbucket.org/helfreire/tccsite.git) PHP · 557 lines

282 if ($this->provider->validateCredentials($user, $credentials))

283 {

284 if ($login) $this->login($user, $remember);

285

286 return true;

303 if ($this->events)

304 {

305 $payload = array_values(compact('credentials', 'remember', 'login'));

306

307 $this->events->fire('auth.attempt', $payload);

346 // If we have an event dispatcher instance set we will fire an event so that

347 // any listeners will hook into the authentication events and run actions

348 // based on the login and logout events fired from the guard instances.

349 if (isset($this->events))

350 {

WInZipAesKeyStrength.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 14 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5 // Source: https://bitbucket.org/jens13/cleanzip

6

writing-modes.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 910 lines

11 short XML primer, followed by detailed information about each supported tag

12 and highlighting rule.</para>

13 <para>Editing a mode or a mode catalog file within jEdit will cause the

14 changes to take effect immediately. If you edit modes using another

15 application, the changes will take effect after the

768 &lt;RULES SET="JAVASCRIPT+PHP"&gt;

769

770 &lt;SPAN TYPE="MARKUP" DELEGATE="php::PHP"&gt;

771 &lt;BEGIN&gt;&amp;lt;?php&lt;/BEGIN&gt;

773 &lt;/SPAN&gt;

774

775 &lt;SPAN TYPE="MARKUP" DELEGATE="php::PHP"&gt;

776 &lt;BEGIN&gt;&amp;lt;?&lt;/BEGIN&gt;

777 &lt;END&gt;?&amp;gt;&lt;/END&gt;

778 &lt;/SPAN&gt;

779

780 &lt;SPAN TYPE="MARKUP" DELEGATE="php::PHP"&gt;

781 &lt;BEGIN&gt;&amp;lt;%=&lt;/BEGIN&gt;

782 &lt;END&gt;%&amp;gt;&lt;/END&gt;

atluser.h (https://jedit.svn.sourceforge.net/svnroot/jedit) C++ Header · 1392 lines ✨ Summary

This C++ header file provides a set of functions for loading and manipulating resources, such as strings, icons, cursors, and bitmaps, in a Windows-based application. It is part of the WTL (Windows Template Library) framework, which simplifies building Windows applications. The functions load resources from a resource file (.rc) and convert them to various data types, making it easier to use these resources in the application.

4 // This file is a part of the Windows Template Library.

5 // The use and distribution terms for this software are covered by the

6 // Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)

7 // which can be found in the file CPL.TXT at the root of this distribution.

8 // By using this software in any fashion, you are agreeing to be bound by

934 #if (WINVER >= 0x0600)

935 return (lpstrIconName == IDI_APPLICATION || lpstrIconName == IDI_ASTERISK || lpstrIconName == IDI_EXCLAMATION ||

936 lpstrIconName == IDI_HAND || lpstrIconName == IDI_QUESTION || lpstrIconName == IDI_WINLOGO ||

937 lpstrIconName == IDI_SHIELD);

938 #else // !(WINVER >= 0x0600)

939 return (lpstrIconName == IDI_APPLICATION || lpstrIconName == IDI_ASTERISK || lpstrIconName == IDI_EXCLAMATION ||

940 lpstrIconName == IDI_HAND || lpstrIconName == IDI_QUESTION || lpstrIconName == IDI_WINLOGO);

941 #endif // !(WINVER >= 0x0600)

942 }

PhpEvalTask.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2 /*

3 * $Id: PhpEvalTask.php 144 2007-02-05 15:19:00Z hans $

4 *

5 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

93 }

94

95 $this->log("Calling PHP function: " . $h_func . "()");

96 foreach($params as $p) {

97 $this->log(" param: " . $p, Project::MSG_VERBOSE);

107 */

108 protected function evalExpression() {

109 $this->log("Evaluating PHP expression: " . $this->expression);

110 if (!StringHelper::endsWith(';', trim($this->expression))) {

111 $this->expression .= ';';

question44504-folding.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 29 lines

6 <tr>

7 <td width='50' colspan='1' class='men-met'>

8 <input type='button' value=' < ' onClick='goLastMonth(<?php echo date("t", strtotime("$year1-$month1-$day1")).", ".$month . ", " . $year.", ".date("w", strtotime("$year-$month-$day1")); ?>)' />

9 </td>

10 <td width='250' colspan='5' class='men-met'>

11 <span class='title'><?php echo $men . " " . $year; ?></span><br />

12 </td>

13 <td width='50' colspan='1' align='right' class='men-met'>

14 <input type='button' value=' > ' onClick='goNextMonth(1, <?php echo $month . ", " . $year.", ".date("w", strtotime("$year2-$month2-$day1")); ?>)' />

15 </td>

16 </tr>

_dynamic.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 19 lines ✨ Summary

This JavaScript code checks if a specific resource is loaded and provides the Dojo toolkit with a reference to it. If not, it sets the resource as loaded and defines a new module named “dojox.highlight.languages._dynamic”. It then requires other languages (Python, Perl, PHP, Ruby) from the same module, making them available for use in the application.

13 dojo.require("dojox.highlight.languages.python");

14 // dojo.require("dojox.highlight.languages.perl");

15 // dojo.require("dojox.highlight.languages.php");

16 // dojo.require("dojox.highlight.languages.ruby");

17

AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2 /*

3 * $Id: AndCondition.php 43 2006-03-10 14:31:51Z mrook $

20 */

21

22 require_once 'phing/tasks/system/condition/ConditionBase.php';

23

24 /**

frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines

72 Unk62oG1sELf4JoEFKROOQ0jfYrXDxVgafeGULx14nhF5qXeI6IqeniQw95yN1yeDQe7s+W+Z3oi

73 fbeiW+yRY8fDTnjQg4tzdH7J8vQUK5lCJGsgBWeWwkhmatBd+muTVmucMef7cIrzKVzRidK3AhLa

74 NLF2OMI5dGNtTt84oqzODudChHOBS69QXTToEXpVgijeprCMYe6I1+lfVBCrfBeloGFAl4vaOMwz

75 lIy2wlEEslYoWx0WubBOmYWNBGYMI2lHXq4yx4eT37gucnSsvr9fubv1CjvaI68WpJzIp6dMjx8z

76 np+QxxEzp4gxi1cURKBIoEQhByii5FAhvCKO4A0xEaS9Rp4iA1477GCOulMWA/7kCf0Pf5mzx0/o

105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS

106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog

107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd

108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9

109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE

262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn

263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR

264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF

265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW

266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy

UnaryExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 73 lines ✨ Summary

This Java class represents a unary expression in an abstract syntax tree (AST) for PHP programming language. It extends another class OperatorExpression and contains an instance of Expression. The class provides methods to get variables used, modified, and outside the expression, as well as analyze code with a given parser.

1 package net.sourceforge.phpdt.internal.compiler.ast;

2

3 import gatchan.phpparser.parser.PHPParser;

4 import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;

66

67 @Override

68 public void analyzeCode(PHPParser parser)

69 {

70 expression.analyzeCode(parser);

SimpleListModel.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 106 lines ✨ Summary

This Java class, SimpleListModel, extends AbstractListModel and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.

37 this.list.clear();

38 for (int i = 0; i < list.size(); i++) {

39 PHPItem phpItem = (PHPItem) list.get(i);

40 if (accept(phpItem, searchString)) {

53 Iterator iterator = list.iterator();

54 while (iterator.hasNext()) {

55 PHPItem phpItem = (PHPItem) iterator.next();

56 if (!accept(phpItem, searchString)) {

74 private boolean accept(PHPItem phpItem, String searchText) {

75 return (mode & phpItem.getItemType()) == phpItem.getItemType() && phpItem.getNameLowerCase().indexOf(searchText) != -1;

76 }

77

88 private static class SimpleComparator implements Comparator {

89 public int compare(Object o1, Object o2) {

90 PHPItem item1 = (PHPItem) o1;

91 PHPItem item2 = (PHPItem) o2;

ConditionalExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 70 lines ✨ Summary

This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.

1 package net.sourceforge.phpdt.internal.compiler.ast;

2

3 import java.util.List;

PostfixedUnaryExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 21 lines ✨ Summary

This Java class represents a postfix unary expression in an abstract syntax tree (AST). It extends the UnaryExpression class and adds a specific implementation for postfix unary expressions. The class has a constructor that initializes its fields, including the operator, source end position, line number, and column number. The toStringExpression() method returns a string representation of the expression by concatenating the original expression’s string with the operator’s string.

1 package net.sourceforge.phpdt.internal.compiler.ast;

2

3 /**

PHPDocument.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 231 lines ✨ Summary

This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset interface and has properties for its name, start and end positions, and nodes.

7 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;

8 import gatchan.phpparser.project.itemfinder.PHPItem;

9 import gatchan.phpparser.parser.PHPParser;

14

15 /**

16 * It's a php document. This class is an outlineable object It will contains html and php

17 *

18 * @author Matthieu Casanova

109 * Analyze the code of a php document.

110 *

111 * @param phpParser the php parser

112 */

113 public void analyzeCode(PHPParser phpParser) {

155 for (int i = 0; i < children.size(); i++) {

156 Outlineable outlineable = (Outlineable) children.get(i);

157 if (outlineable.getItemType() == PHPItem.METHOD) {

158 MethodDeclaration methodDeclaration = (MethodDeclaration) outlineable;

159 if (line == methodDeclaration.getBodyLineStart() && column > methodDeclaration.getBodyColumnStart()) return methodDeclaration;

runme.php (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 50 lines ✨ Summary

This PHP code demonstrates object creation, access to static members, and deletion of objects using references and a container. It creates two shapes (circle and square) and adds them to a container. The code then accesses a static member, deletes the old references, and verifies that the shapes remain in memory. Finally, it deletes the container, verifying that the shapes are truly deleted from memory.

1 <?php

2

3 # This file illustrates the low-level C++ interface

5 # get converted into function calls.

6

7 require("example.php");

8

9 # ----- Object creation -----

_normal.user.js (http://game-golem.googlecode.com/svn/trunk/) JavaScript · 33 lines ✨ Summary

This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.

7 // @include http://apps.facebook.com/castle_age/*

8 // @include https://apps.facebook.com/castle_age/*

9 // @include http://web3.castleagegame.com/castle_ws/index.php

10 // @resource golem http://game-golem.googlecode.com/svn/trunk/GameGolem.js

11 // @resource stylesheet http://game-golem.googlecode.com/svn/trunk/golem.css

12 // ==/UserScript==

13 // @disabled-include http://apps.facebook.com/reqs.php

14 // @disabled-include https://apps.facebook.com/reqs.php

purge.php (http://forceworkbench.googlecode.com/svn/trunk/workbench/) PHP · 8 lines

1 <?php

2 require_once 'session.php';

3 require_once 'shared.php';

4 require_once 'put.php';

ZipEntryTest.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 193 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5

6 using System;

catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines

1 <?xml version="1.0"?>

2

3 <!-- This is a mode catalog. Edit modes must be listed here, -->

4 <!-- otherwise they will not be available to jEdit. -->

5

327 <MODE NAME="php" FILE="php.xml"

328 FILE_NAME_GLOB="*.{php3,php4,php,phtml,inc}"

329 FIRST_LINE_GLOB="{&lt;?php*,#!/*php*}" />

353 FILE_NAME_GLOB="*.ps1" />

354

355 <MODE NAME="prolog" FILE="prolog.xml"

356 FILE_NAME_GLOB="*.pro" />

357

515 FILE_NAME_GLOB="*.vm" />

516

517 <MODE NAME="verilog" FILE="verilog.xml"

518 FILE_NAME_GLOB="*.{ver,v,sv}" />

519

javascript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 566 lines

25 DIGIT_RE="(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)">

26

27 <!-- PHP code, copied from php.xml by Chris Petersen -->

28 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">

29 <BEGIN>&lt;?php</BEGIN>

30 <END>?&gt;</END>

31 </SPAN>

32

33 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">

34 <BEGIN>&lt;?</BEGIN>

35 <END>?&gt;</END>

36 </SPAN>

37

38 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">

39 <BEGIN>&lt;%=</BEGIN>

40 <END>%&gt;</END>

XmlReader.java (http://btalk.googlecode.com/svn/) Java · 240 lines ✨ Summary

This Java code implements an XML reader that parses and interprets XML documents. It reads input from an InputStream, identifies XML tags, attributes, and text content, and returns information about each element in a stack-based data structure. The reader can be used to parse and process XML files, and provides methods for accessing the parsed elements’ names, attributes, and text content.

61 }

62

63 //http://discussion.forum.nokia.com/forum/showthread.php?t=76814

64 //by abirr

65 private int getNextCharacter() throws IOException {

XModeHandler.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 767 lines ✨ Summary

This Java code defines a class TagDecl that represents a tag declaration in an XML parser. It stores information about the tag, such as its name, start and end positions, and attributes like default IDs and token IDs. The class also tracks various flags indicating whether certain conditions are met during parsing.

34

35 import org.gjt.sp.jedit.Mode;

36 import org.gjt.sp.util.Log;

37 import org.gjt.sp.util.XMLUtilities;

38 //}}}

73 if (qName.equals("WHITESPACE"))

74 {

75 Log.log(Log.WARNING,this,modeName + ": WHITESPACE rule "

76 + "no longer needed");

77 }

560 if (tmp != null)

561 {

562 Log.log(Log.WARNING, this, modeName + ": EXCLUDE_MATCH is deprecated");

563 if ("TRUE".equalsIgnoreCase(tmp))

564 {

RoleVoter.php (git://github.com/symfony/symfony.git) PHP · 62 lines ✨ Summary

This PHP class, RoleVoter, implements a voter for Symfony’s security system. It checks if any attribute of an object starts with a given prefix (‘ROLE_’) and grants access if the role is present in the token’s roles. If the attribute is ‘ROLE_PREVIOUS_ADMIN’, it triggers deprecation warnings. The voter returns ACCESS_ABSTAIN by default, unless the attribute matches one of the token’s roles, in which case it returns ACCESS_GRANTED.

1 <?php

2

3 /*

sidebar.php (https://bitbucket.org/jesseterry/myclientbase/) PHP · 14 lines ✨ Summary

This PHP code outputs a section of HTML content that displays a title and a list of links. The title is “system” in black, and the links are to various settings pages within an application, including system settings, user accounts, tax rates, invoice statuses, and modules. Each link is generated using the anchor function and includes a translated label from a language file.

1 <div class="section_wrapper">

2

3 <h3 class="title_black"><?php echo $this->lang->line('system'); ?></h3>

4

5 <ul class="quicklinks content toggle">

6 <li><?php echo anchor('settings', $this->lang->line('system_settings')); ?></li>

7 <li><?php echo anchor('users', $this->lang->line('user_accounts')); ?></li>

8 <li><?php echo anchor('tax_rates', $this->lang->line('tax_rates')); ?></li>

9 <li><?php echo anchor('invoice_statuses', $this->lang->line('invoice_statuses')); ?></li>

10 <li><?php echo anchor('invoices/invoice_groups', $this->lang->line('invoice_groups')); ?></li>

11 <li class="last"><?php echo anchor('mcb_modules', $this->lang->line('modules')); ?></li>

Makefile.old (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 16 lines

2 SWIG = $(TOP)/../swig

3 SRCS = example.c

4 TARGET = php_example

5 INTERFACE = example.i

6 SWIGOPT = -noproxy

8 all::

9 $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \

10 SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php4

11

12 clean::

13 rm -f *_wrap* *.o core *~ *.so *.php php_example.h

14

15 check: all

en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines

1 ; Joomla! Project

2 ; Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.

3 ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php

4 ; Note : All ini files need to be saved as UTF-8

5

down_reports.php (http://swifttide.googlecode.com/svn/trunk/) PHP · 111 lines ✨ Summary

This PHP code generates an HTML page for administrators to select and download reports related to students, attendance, and discipline. The page allows users to filter reports by type, sort order, and date range, and submit a form to generate the report. It also includes a calendar feature for selecting dates and a menu for navigation.

49 <script language="JavaScript" src="datepicker.js"></script>

50 </head>

51 <body><img src="images/<?php echo _LOGO?>" border="0">

52

53 <div id="Header">

73 <!-- <option value="grades"><?php echo _DOWN_REPORTS_GRADES?></option> -->

74 </select>

75 <?php echo _DOWN_REPORTS_SORTED?>

76 <select name="sort1">

77 <option value="school_names_desc"><?php echo _DOWN_REPORTS_SCHOOL?></option>

105

106 </div>

107 <?php include "admin_menu.inc.php"; ?>

108 </body>

109

php_calendar.php (http://phpwcms.googlecode.com/svn/trunk/) PHP · 150 lines ✨ Summary

The PHP code generates a calendar table with the current month and year, displaying days of the week and dates. It takes into account day names, weekday numbers, and user-defined links for each date. The output is an HTML string representing a calendar table, which can be used in a web page or other application to display a calendar view.

1 <?php

2

3 ////////////////////////////////////////////////////////

4

5 // PHP Calendar (version 2.3), written by Keith Devens

6 // http://keithdevens.com/software/php_calendar

7 // see example at http://keithdevens.com/weblog

8 // License: http://keithdevens.com/software/license

9

10 // enhanced by Oliver Georgi for phpwcms

11

12

067.factor (git://github.com/x6j8x/factor.git) Unknown · 63 lines

5 IN: project-euler.067

6

7 ! http://projecteuler.net/index.php?section=problems&id=67

8

9 ! DESCRIPTION

TwitterAlikeExample.html (http://redis.googlecode.com/svn/trunk/) HTML · 253 lines ✨ Summary

This HTML code outputs a blog post about Redis, a popular in-memory data store. The content explains how to implement a Twitter-like clone using Redis, including setting up followers and posting messages. It also discusses horizontal scaling of the system, including hashing keys, distributing user data across servers, and handling special cases like incrementing IDs and retrieving timeline data.

27

28 <div class="narrow">

29 <h1><a name="A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP">A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a></h1>In this article I'll explain the design and the implementation of a <a href="http://retwis.antirez.com" target="_blank">simple clone of Twitter</a> written using PHP and <a href="http://code.google.com/p/redis/" target="_blank">Redis</a> as only database. The programming community uses to look at key-value stores like special databases that can't be used as drop in replacement for a relational database for the development of web applications. This article will try to prove the contrary.<br/><br/>Our Twitter clone, <a href="http://retwis.antirez.com" target="_blank">called Retwis</a>, is structurally simple, has very good performances, and can be distributed among N web servers and M Redis servers with very little efforts. You can find the source code <a href="http://code.google.com/p/redis/downloads/list" target="_blank">here</a>.<br/><br/>We use PHP for the example since it can be read by everybody. The same (or... much better) results can be obtained using Ruby, Python, Erlang, and so on.

30 <h1><a name="Key-value stores basics">Key-value stores basics</a></h1>

31 The essence of a key-value store is the ability to store some data, called <i>value</i>, inside a key. This data can later be retrieved only if we know the exact key used to store it. There is no way to search something by value. So for example I can use the command SET to store the value <b>bar</b> at key <b>foo</b>:<br/><br/><pre class="codeblock python" name="code">

79 </pre>Ok I think we are ready to start coding!

80 <h2><a name="Prerequisites">Prerequisites</a></h2>

81 If you didn't download it already please <a href="http://code.google.com/p/redis/wiki/README" target="_blank">grab the source code of Retwis</a>. It's a simple tar.gz file with a few of .php files inside. The implementation is very simple. You will find the PHP library client inside (redis.php) that is used to talk with the Redis server from PHP. This library was written by <a href="http://qix.it" target="_blank">Ludovico Magnocavallo</a> and you are free to reuse this in your own projects, but for updated version of the library please download the Redis distribution.<br/><br/>Another thing you probably want is a working Redis server. Just get the source, compile with make, and run with ./redis-server and you are done. No configuration is required at all in order to play with it or to run Retwis in your computer.

82 <h2><a name="Data layout">Data layout</a></h2>

83 Working with a relational database this is the stage were the database layout should be produced in form of tables, indexes, and so on. We don't have tables, so what should be designed? We need to identify what keys are needed to represent our objects and what kind of values this keys need to hold.<br/><br/>Let's start from Users. We need to represent this users of course, with the username, userid, password, followers and following users, and so on. The first question is, what should identify an user inside our system? The username can be a good idea since it is unique, but it is also too big, and we want to stay low on memory. So like if our DB was a relational one we can associate an unique ID to every user. Every other reference to this user will be done by id. That's very simple to do, because we have our atomic INCR operation! When we create a new user we can do something like this, assuming the user is callled &quot;antirez&quot;:<br/><br/><pre class="codeblock python python python python python python python python python python python python" name="code">

125 header(&quot;Location: index.php&quot;);

126 </pre>This happens every time the users log in, but we also need a function isLoggedIn in order to check if a given user is already authenticated or not. These are the logical steps preformed by the <code name="code" class="python">isLoggedIn</code> function:

127 <ul><li> Get the &quot;auth&quot; cookie from the user. If there is no cookie, the user is not logged in, of course. Let's call the value of this cookie <code name="code" class="python">&lt;authcookie&gt;</code></li><li> Check if auth:<code name="code" class="python">&lt;authcookie&gt;</code> exists, and what the value (the user id) is (1000 in the exmple).</li><li> In order to be sure check that uid:1000:auth matches.</li><li> Ok the user is authenticated, and we loaded a bit of information in the $User global variable.</li></ul>

152 return true;

153 }

154 </pre><code name="code" class="python">loadUserInfo</code> as separated function is an overkill for our application, but it's a good template for a complex application. The only thing it's missing from all the authentication is the logout. What we do on logout? That's simple, we'll just change the random string in uid:1000:auth, remove the old auth:<code name="code" class="python">&lt;oldauthstring&gt;</code> and add a new auth:<code name="code" class="python">&lt;newauthstring&gt;</code>.<br/><br/><b>Important:</b> the logout procedure explains why we don't just authenticate the user after the lookup of auth:<code name="code" class="python">&lt;randomstring&gt;</code>, but double check it against uid:1000:auth. The true authentication string is the latter, the auth:<code name="code" class="python">&lt;randomstring&gt;</code> is just an authentication key that may even be volatile, or if there are bugs in the program or a script gets interrupted we may even end with multiple auth:<code name="code" class="python">&lt;something&gt;</code> keys pointing to the same user id. The logout code is the following (logout.php):<br/><br/><pre class="codeblock python python python python python python python python python python python python python python python python python python python" name="code">

155 include(&quot;retwis.php&quot;);

cap_inline.h (http://photon-android.googlecode.com/svn/) C++ Header · 410 lines ✨ Summary

This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.

5 * agreement governing use of this software, this software is licensed to you

6 * under the terms of the GNU General Public License version 2, available at

7 * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").

8 *

9 * Notwithstanding the above, under no circumstances may you combine this

tests.php4 (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 228 lines ✨ Summary

This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.

1 <?php

2

3 // do we have true global vars or just GETSET functions?