100+ results for 'php die'

Not the results you expected?

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

Advertiser.php (https://bitbucket.org/valmy/openx.git) PHP · 371 lines

1 <?php

2

3 /*

34

35 // Required classes

36 require_once MAX_PATH . '/lib/OA/Dal/Statistics.php';

37

38 /**

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

1 <?php

2 /**

3 * Zend Framework

Location.js (https://github.com/flomotlik/grails-qooxdoo.git) JavaScript · 406 lines

10 License:

11 LGPL: http://www.gnu.org/licenses/lgpl.html

12 EPL: http://www.eclipse.org/org/documents/epl-v10.php

13 See the LICENSE file in the project's top-level directory for details.

14

151 this.assertEquals(5 + 2 + 3 + 5, pos.left, "left2");

152

153 var badIE = qx.bom.client.Engine.MSHTML &&

154 (qx.bom.client.Engine.VERSION < 8 || qx.bom.client.Feature.QUIRKS_MODE ||

155 qx.bom.client.Engine.DOCUMENT_MODE === 7);

156

157 if (badIE) {

158 this.assertEquals(12, pos.top, "top2 (IE)");

159 } else {

Thrift.php (git://github.com/apache/thrift.git) PHP · 821 lines ✨ Summary

This PHP code defines a Thrift protocol implementation for a TApplicationException class, which is an exception type used to handle application-level errors. It provides methods for reading and writing the exception’s message and code fields to a Thrift output stream. The code also includes Thrift-related classes and constants, setting up the global THRIFT_ROOT environment variable.

1 <?php

2 /*

3 * Licensed to the Apache Software Foundation (ASF) under one

40 const MAP = 13;

41 const SET = 14;

42 const LST = 15; // N.B. cannot use LIST keyword in PHP!

43 const UTF8 = 16;

44 const UTF16 = 17;

60 * because we need to save CPU cycles and this is not yet in an extension.

61 * Ideally we'd multiply-inherit TException from both Exception and Base, but

62 * that's not possible in PHP and there are no modules either, so for now we

63 * apologetically take a trip to HackTown.

64 *

417 * cut back on the size of the generated code which is turning out to have a

418 * nontrivial cost just to load thanks to the wondrously abysmal implementation

419 * of PHP. Note that code is intentionally duplicated in here to avoid making

420 * function calls for every field or member of a container..

421 */

ListenerOptions.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 396 lines

1 <?php

2 /**

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

268 {

269 if ($this->getConfigCacheKey()) {

270 return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php';

271 }

272

273 return $this->getCacheDir() . '/module-config-cache.php';

274 }

275

352 {

353 if ($this->getModuleMapCacheKey()) {

354 return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php';

355 }

356

BannerServiceImpl.php (https://bitbucket.org/blackriver/openx.git) PHP · 344 lines

1 <?php

2

3 /*

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

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

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

26 */

27

33

34 // Base class BaseLogonService

35 require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';

36

37 // Banner Dll class

38 require_once MAX_PATH . '/lib/OA/Dll/Banner.php';

39

40 /**

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

1 <?php

2 /**

3 * @package Joomla.UnitTest

8 */

9

10 require_once __DIR__ . '/JErrorInspector.php';

11

12 /**

365

366 /**

367 * Test JError::handleDie

368 *

369 * @todo Implement testHandleDie().

371 * @return void

372 */

373 public function testHandleDie()

374 {

375 // Remove the following lines when you implement this test.

provider_test.php (https://github.com/sbourget/moodle.git) PHP · 240 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

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

1 <?php

2 /**

3 * @package Joomla.Platform

8 */

9

10 defined('JPATH_PLATFORM') or die;

11

12 jimport('joomla.utilities.arrayhelper');

89 *

90 * @since 12.2

91 * @note The interface is only present in PHP 5.4 and up.

92 */

93 public function jsonSerialize()

PluginInfo.php (https://gitlab.com/fabiorf/chat) PHP · 383 lines

1 <?php

2 /*

3 * This file is a part of Mibew Messenger.

User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines

1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 4.3.2 or newer

6 *

7 * @package CodeIgniter

classtrees_OpenID.html (https://github.com/yupe/xomaprojects.git) HTML · 208 lines

176 <h2>Root class Auth_Yadis_PHPSession</h2>

177 <ul>

178 <li><a href="OpenID/Auth_Yadis_PHPSession.html">Auth_Yadis_PHPSession</a></li></ul>

179

180 <h2>Root class Auth_Yadis_Service</h2>

203

204 <p class="notes" id="credit">

205 Documentation generated on Tue, 21 Apr 2009 11:31:28 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>

206 </p>

207 </body>

BannerServiceImpl.php (https://github.com/skynet/OpenX-2.8.7.git) PHP · 344 lines

1 <?php

2

3 /*

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

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

25 $Id: BannerServiceImpl.php 62345 2010-09-14 21:16:38Z chris.nutting $

26 */

27

33

34 // Base class BaseLogonService

35 require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';

36

37 // Banner Dll class

38 require_once MAX_PATH . '/lib/OA/Dll/Banner.php';

39

40 /**

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

1 <?php

2 // Prevent file from being loaded directly

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

4 die( '-1' );

5 }

6

Statistics.php (https://github.com/grjones/qframe.git) PHP · 309 lines

1 <?php

2

3 /**

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 $

22 */

23

25 * @see Zend_Gdata_Extension

26 */

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

28

29 /**

294 /**

295 * Magic toString method allows using this directly via echo

296 * Works best in PHP >= 4.2.0

297 *

298 * @return string

VersionableBehavior.php (https://github.com/esimionato/Propel2.git) PHP · 268 lines

1 <?php

2

3 /**

114 $versionTable = $database->addTable(array(

115 'name' => $versionTableName,

116 'phpName' => $this->getVersionTablePhpName(),

117 'package' => $table->getPackage(),

118 'schema' => $table->getSchema(),

195 }

196

197 public function getVersionTablePhpName()

198 {

199 return $this->getTable()->getPhpName() . 'Version';

Statistics.php (https://github.com/zlateski/zi_php.git) PHP · 309 lines

1 <?php

2

3 /**

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 $

22 */

23

25 * @see Zend_Gdata_Extension

26 */

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

28

29 /**

294 /**

295 * Magic toString method allows using this directly via echo

296 * Works best in PHP >= 4.2.0

297 *

298 * @return string

AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines

1 <?php

2 namespace Parser;

3 /*

17 */

18

19 use Meta\AbstractPHPStructure;

20 use Meta\DocBlock;

21

32

33 /**

34 * Responsible for parsing a php class

35 *

36 * @author Richard Downes <richard@sculpt.ie>

44 * Responsible for storing the information about the structure being parsed

45 *

46 * @var \Meta\AbstractPHPStructure $structure Stores meta information about the structure

47 */

48 protected $structure;

MaintenanceDocumentDictionaryService.java (https://github.com/sbower/kuali-rice-1.git) Java · 305 lines

6 * You may obtain a copy of the License at

7 *

8 * http://www.opensource.org/licenses/ecl2.php

9 *

10 * Unless required by applicable law or agreed to in writing, software

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

1 <?php

2 /**

3 * LICENSE

Feed.php (https://github.com/quarkness/piwik.git) PHP · 320 lines

1 <?php

2 /**

3 * Zend Framework

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: Feed.php 23775 2011-03-01 17:25:24Z ralph $

20 */

21

23 * @see Zend_Feed_Writer_Extension_RendererAbstract

24 */

25 // require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';

26

27 /**

ClassRegistry.php (https://github.com/delta98/vanilla-cake-v2.git) PHP · 341 lines

1 <?php

2 /**

3 * Class collections.

7 * PHP 5

8 *

9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)

10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)

11 *

14 *

15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)

16 * @link http://cakephp.org CakePHP(tm) Project

17 * @package Cake.Utility

18 * @since CakePHP(tm) v 0.9.2

19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

20 */

21

SiteVerification.php (https://github.com/orangehrm/OrangeHRM.git) PHP · 404 lines

1 <?php

2 /*

3 * Copyright 2010 Google Inc.

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

1 <?php

2 /**

3 * Zend Framework

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: Feed.php 24593 2012-01-05 20:35:02Z matthew $

20 */

21

23 * @see Zend_Feed_Writer_Extension_RendererAbstract

24 */

25 require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';

26

27 /**

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

1 <?php

2

3 /**

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 $

22 */

23

25 * @see Zend_Gdata_Extension

26 */

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

28

29 /**

294 /**

295 * Magic toString method allows using this directly via echo

296 * Works best in PHP >= 4.2.0

297 *

298 * @return string

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

1 <?php

2

3 class IWstats_Api_Admin extends Zikula_AbstractApi {

133 ksort($recordsArray);

134

135 // print_r($recordsArray);die();

136 // save records in ddbb

137 foreach ($recordsArray as $record) {

PartnersSubscriptions.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 183 lines

1 <?php

2 /*

3 * Copyright 2014 Google Inc.

GopBltLib.c (https://github.com/thalium/icebox.git) C · 455 lines

6 are licensed and made available under the terms and conditions of the BSD License

7 which accompanies this distribution. The full text of the license may be found at

8 http://opensource.org/licenses/bsd-license.php

9

10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

helper.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 400 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

24

25

26 defined('MOODLE_INTERNAL') || die();

27

28

grve-admin-media-functions.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 281 lines

1 <?php

2 /*

3 * Collection of functions for the media items

127 foreach ( $selector_array as $value=>$display_value ) {

128 ?>

129 <option value="<?php echo $value; ?>" <?php selected( $current_value, $value ); ?>><?php echo $display_value; ?></option>

130 <?php

184 $value = $i*10 ;

185 ?>

186 <option value="<?php echo $value; ?>" <?php selected( $current_value, $value ); ?>>

187 <?php echo $value; ?>

266 ?>

267 <div class="grve-slider-item-minimal">

268 <input class="<?php echo $grve_button_class; ?> button" type="button" value="<?php _e( 'Delete', GRVE_THEME_TRANSLATE ); ?>">

269 <h3 class="hndle grve-title">

270 <span><?php _e( 'Image', GRVE_THEME_TRANSLATE ); ?></span>

admin_selectTable.php (https://github.com/loboda/cs411.git) PHP · 571 lines

244 ?>

245 <td>

246 <button type="editButton" onclick="showEdit('group', '<?php print($row['GroupName'])?>', '<?php print($row['AssnID'])?>', '0' )">Edit</button>

247 </td>

248

337 ?>

338 <td>

339 <button type="editButton" onclick="showEdit('memberof', '<?php print($row['GroupName']); ?>', '<?php print($row['StudentID']); ?>', '<?php print($row['AssnID']); ?>' )">Edit</button>

340 </td>

341

342 <td>

343 <button type="deleteButton" onclick="showDelete('memberof', '<?php print($row['GroupName']); ?>', '<?php print($row['StudentID']); ?>', '<?php print($row['AssnID']); ?>' )">Delete</button>

344 </td>

345 <?php

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

1 <?php

2 /**

3 * Zend Framework

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 $

20 */

21

23 * @see Zend_Filter_Encrypt_Interface

24 */

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

26

27 /**

69 {

70 if (!extension_loaded('openssl')) {

71 // require_once 'Zend/Filter/Exception.php';

72 throw new Zend_Filter_Exception('This filter needs the openssl extension');

73 }

TaggableBehavior.php (https://github.com/mmonguilod/sfPropel15TaggableBehaviorPlugin.git) PHP · 304 lines

10 protected $parameters = array(

11 'tagging_table' => '%TABLE%_tagging',

12 'tagging_table_phpname' => '%PHPNAME%Tagging',

13 'tag_table' => 'taggable_tag',

14 'tag_table_phpname' => 'Tag',

45 $this->tagTable = $database->addTable(array(

46 'name' => $tagTableName,

47 'phpName' => $tagTablePhpName,

48 'package' => $table->getPackage(),

49 'schema' => $table->getSchema(),

297 return strtr($string, array(

298 '%TABLE%' => $table->getName(),

299 '%PHPNAME%' => $table->getPhpName(),

300 ));

301 }

field_link_color.php (https://gitlab.com/eita/agencia-consumo-responsavel) PHP · 207 lines

1 <?php

2

3 /**

14 *

15 * @package ReduxFramework

16 * @subpackage Field_Color_Gradient

17 * @author Luciano "WebCaos" Ubertini

18 * @author Daniel J Griffiths (Ghost1227)

Feed.php (https://bitbucket.org/ksekar/campus.git) PHP · 320 lines

1 <?php

2 /**

3 * Zend Framework

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: Feed.php 24594 2012-01-05 21:27:01Z matthew $

20 */

21

23 * @see Zend_Feed_Writer_Extension_RendererAbstract

24 */

25 require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';

26

27 /**

ContentURI.java (https://github.com/jehc/MondocosmOS.git) Java · 332 lines

10 * License, Version 2 (the "License"); you may not use this file

11 * except in compliance with the License. A copy of the License is

12 * available at http://www.opensource.org/licenses/gpl-license.php.

13 *

14 * Sun designates this particular file as subject to the "Classpath"

Feed.php (https://bitbucket.org/haichau59/manga.git) PHP · 320 lines

1 <?php

2 /**

3 * Zend Framework

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: Feed.php 24594 2012-01-05 21:27:01Z matthew $

20 */

21

23 * @see Zend_Feed_Writer_Extension_RendererAbstract

24 */

25 //require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';

26

27 /**

db.php (https://bitbucket.org/sriedel/iccrm-wip.git) PHP · 379 lines

1 <?php

2 /**

3 * Database object creation helper methods.

7 * @author Kohana Team

8 * @copyright (c) 2009 Kohana Team

9 * @license http://kohanaphp.com/license

10 */

11

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 }

357

358 foreach ($results as $result) {

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

360 fputs($handle, $result . $this->crlf);

361 } else {

Orders.php (https://github.com/cindyli/ATutor.git) PHP · 275 lines

1 <?php

2 /*

3 * Copyright 2016 Google Inc.

text_test_runner.php (https://github.com/slatronica/hyperpublic_php.git) PHP · 339 lines

1 <?php

2 //////////////////////////////////////////////////////////

3 ///

4 /// $Author: edheal $

5 /// $Date: 2011-04-05 13:41:43 +0100 (Tue, 05 Apr 2011) $

6 /// $Id: text_test_runner.php 9 2011-04-05 12:41:43Z edheal $

7 ///

8 /// \file

15 /// \section License

16 ///

17 /// A PHP Unit testing framework

18 ///

19 /// Copyright (C) 2011 Ed Heal (ed.heal@yahoo.co.uk)

34 //////////////////////////////////////////////////////////

35

36 require_once 'xml_test_runner_with_style_sheet.php';

37

38 //////////////////////////////////////////////////////////

Parser.php (https://bitbucket.org/icosplays/friendica.git) PHP · 349 lines

1 <?php

2

3 /**

9 * @copyright 2006

10 * @license BSD

11 * @version CVS: $Id: Parser.php 322327 2012-01-15 17:55:59Z cweiske $

12 * @link http://pear.php.net/package/Text_LanguageDetect/

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

1 <?php

2 /*

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

15 if (!defined('IN_ANWSION'))

16 {

17 die;

18 }

19

Statistics.php (https://github.com/oveach/tuto-zf-doctrine2.git) PHP · 309 lines

1 <?php

2

3 /**

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 $

22 */

23

25 * @see Zend_Gdata_Extension

26 */

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

28

29 /**

294 /**

295 * Magic toString method allows using this directly via echo

296 * Works best in PHP >= 4.2.0

297 *

298 * @return string

constants.xml (http://phpdoc-zh.googlecode.com/svn/trunk/) XML · 494 lines

22 <listitem>

23 <para>

24 ?????????????????????????<constant>Memcached::SERIALIZER_PHP</constant>

25 ?<constant>Memcached::SERIALIZER_IGBINARY</constant>?????memcached?????

26 <literal>--enable-memcached-igbinary</literal>????

27 <literal>igbinary</literal>??????????

28 </para>

29 <para>??: <literal>integer</literal>, ??: <constant>Memcached::SERIALIZER_PHP</constant>.</para>

30 </listitem>

31 </varlistentry>

32

33 <varlistentry xml:id="memcached.constants.serializer-php">

34 <term><constant>Memcached::SERIALIZER_PHP</constant></term>

35 <listitem>

36 <para>???PHP???????serialize????</para>

37 </listitem>

38 </varlistentry>

DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines

1 <?php

2

3 /**

4 * Admin ajax functions to be tested

5 */

6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );

7

8 /**

70 $_POST['_per_page'] = 100;

71 $_POST['_page'] = 1;

72 $_POST['_url'] = admin_url( 'edit-comments.php' );

73

74 // Make the request

75 try {

76 $this->_handleAjax( 'delete-comment' );

77 } catch ( WPAjaxDieContinueException $e ) {

78 unset( $e );

79 }

StateMachineBuilder.java (https://bitbucket.org/ZhangJingGuo/opencollada.git) Java · 256 lines

4 * Licensed under the MIT Open Source License,

5 * for details please see LICENSE file or the website

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

7 */

8 package de.netallied.xsd2cppsax.statemachine;

DatabaseAdapter.php (https://github.com/drawig/THM-PHP-Demo-Projects.git) PHP · 377 lines

1 <?php

2

3 include('Projekt.php');

4 include('Ticket.php');

5

6 /**

7 * Diese Klasse bietet Funktionen, mit denen von Firescrum häufig durchgeführte Datenbank-Zugriffe

8 * abstrahiert werden.

9 */

17 /**

18 * Erstellt aus dem uebergebenen Titel und der Beschreibung ein neues Projekt bzw. erstellt einen Eintrag

19 * in der Datenbank mit diesen Daten.

20 *

21 * @param String Titel des Projekts

ImageSize.php (https://github.com/grandison/budo16.git) PHP · 370 lines

1 <?php

2 /**

3 * Zend Framework

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

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

19 * @version $Id: ImageSize.php 16971 2009-07-22 18:05:45Z mikaelkael $

20 */

21

23 * @see Zend_Validate_Abstract

24 */

25 // require_once 'Zend/Validate/Abstract.php';

26

27 /**

147 }

148 } else if (!is_array($options)) {

149 // require_once 'Zend/Validate/Exception.php';

150 throw new Zend_Validate_Exception ('Invalid options to validator provided');

151 }

index-webarte.php (https://github.com/ccaballero/yachay.git) PHP · 176 lines

6

7 <div>

8 <?php if ($this->subject->amModerator()) { ?><input type="button" name="new" value="Agregar" onclick="location.href='<?php echo $this->url(array('subject' => $this->subject->url), 'subjects_subject_assign_new') ?>'" /><input type="submit" name="unlock" value="Habilitar" /><input type="submit" name="lock" value="Deshabilitar" /><input type="submit" name="delete" value="Retirar" /><input type="button" name="import" value="Importar" onclick="location.href='<?php echo $this->url(array('subject' => $this->subject->url), 'subjects_subject_assign_import') ?>'" /><input type="button" name="export" value="Exportar" onclick="location.href='<?php echo $this->url(array('subject' => $this->subject->url), 'subjects_subject_assign_export') ?>'" /><?php } ?>

9 </div>

10

21 <?php if ($this->acl('users', 'view')) { ?>

22 <a href="<?php echo $this->url(array('user' => $teacher->url), 'users_user_view') ?>"><img class="photo" src="<?php echo $this->config->resources->frontController->baseUrl . '/media/users/thumbnail_small/' . $teacher->getAvatar() ?>" alt="<?php echo $teacher->getFullName() ?>" title="<?php echo $teacher->getFullName() ?>" /></a>

23 <?php } else { ?>

61 <?php if ($this->acl('users', 'view')) { ?>

62 <a href="<?php echo $this->url(array('user' => $auxiliar->url), 'users_user_view') ?>"><img class="photo" src="<?php echo $this->config->resources->frontController->baseUrl . '/media/users/thumbnail_small/' . $auxiliar->getAvatar() ?>" alt="<?php echo $auxiliar->getFullName() ?>" title="<?php echo $auxiliar->getFullName() ?>" /></a>

63 <?php } else { ?>

64 <img class="photo" src="<?php echo $this->config->resources->frontController->baseUrl . '/media/users/thumbnail_medium/' . $auxiliar->getAvatar() ?>" alt="<?php echo $auxiliar->getFullName() ?>" title="<?php echo $auxiliar->getFullName() ?>" />

65 <?php } ?>

101 <?php if ($this->acl('users', 'view')) { ?>

102 <a href="<?php echo $this->url(array('user' => $student->url), 'users_user_view') ?>"><img class="photo" src="<?php echo $this->config->resources->frontController->baseUrl . '/media/users/thumbnail_small/' . $student->getAvatar() ?>" alt="<?php echo $student->getFullName() ?>" title="<?php echo $student->getFullName() ?>" /></a>

103 <?php } else { ?>

Navigation.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 346 lines

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_View_Helper_Navigation_HelperAbstract

25 */

26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';

27

28 /**

183 if (!$helper instanceof Zend_View_Helper_Navigation_Helper) {

184 if ($strict) {

185 require_once 'Zend/View/Exception.php';

186 $e = new Zend_View_Exception(sprintf(

187 'Proxy helper "%s" is not an instance of ' .

ezkeywordtype.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 291 lines

1 <?php

2 /**

3 * File containing the eZKeywordType class.

10

11 /*!

12 \class eZKeywordType ezkeywordtype.php

13 \ingroup eZDatatype

14 \brief A content datatype which handles keyword indexes

GifCreator.php (https://gitlab.com/billyprice1/mc-skintools) PHP · 349 lines

1 <?php

2

3 namespace GifCreator;

8 * @link https://github.com/Sybio/GifCreator

9 * @author Sybio (Clément Guillemain / @Sybio01)

10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License

11 * @copyright Clément Guillemain

12 * @modified by Max Korlaar

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

This PHP code tests various aspects of a testing framework, including functions, classes, and global variables. It checks that certain functions are defined, classes exist, and specific variable assignments pass equality tests. The test also creates instances of two classes, Foo and MyFoo, and verifies that their methods behave as expected when called with different inputs.

1 <?php

2

3 require "tests.php";

4 require "director_enum.php";

5

6 // No new functions

conversion_runme.php (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 15 lines

1 <?php

2 // Sample test file

3

4 require "tests.php";

5 require "conversion.php";

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

This PHP script tests a threading library by creating a Foo object, running it, and then checking its state after stopping it. The test checks for new functions, classes, and global variables introduced in the library. It also verifies that a derived class’s behavior is correct. If any of these checks fail, the test fails, indicating a bug in the library.

1 <?php

2

3 require "tests.php";

4 require "director_thread.php";

5

6 // No new functions

skel.php (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 16 lines

1 <?php

2 // Sample test file

3

4 require "tests.php";

5 require "____.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;

unserialize.xml (http://phpdoc-zh.googlecode.com/svn/trunk/) XML · 81 lines

70 indent-tabs-mode:nil

71 sgml-parent-document:nil

72 sgml-default-dtd-file:"~/.phpdoc/manual.ced"

73 sgml-exposed-tags:nil

74 sgml-local-catalogs:nil

error.ctp (https://bitbucket.org/floresj/notetime.git) Unknown · 62 lines

4 * PHP 5

5 *

6 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)

7 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)

8 *

17 */

18

19 $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');

20 ?>

21 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

40 <div id="container">

41 <div id="header">

42 <h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1>

43 </div>

44 <div id="content">

jquery.delegate.js (http://mortar.googlecode.com/svn/trunk/) JavaScript · 57 lines ✨ Summary

This JavaScript code provides a jQuery delegate plug-in that enables event delegation, allowing events to be triggered on an element and handled by a specific handler function based on the target element’s class. It also includes cross-browser support for focusin and focusout events. The plugin is designed to work with both IE and other browsers.

7 *

8 * Dual licensed under the MIT and GPL licenses:

9 * http://www.opensource.org/licenses/mit-license.php

10 * http://www.gnu.org/licenses/gpl.html

11 */

.cvsignore (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 15 lines

1 php_example.h

2 example.php

Makefile (https://swig.svn.sourceforge.net/svnroot/swig) Makefile · 25 lines ✨ Summary

This Makefile is used to build a PHP extension using SWIG (Simplified Wrapper and Interface Generator). It provides targets for building, cleaning, and checking the extension, as well as generating the necessary files for compilation. The all target builds the default PHP extension, while the static target builds a static version. The clean target removes generated files, and the check target runs the built extension.

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

11 SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \

12 php

13

14 static::

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

16 SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \

17 php_static

18

19 clean::

20 $(MAKE) -f $(TOP)/Makefile php_clean

21 rm -f $(TARGET).php

22

23 check: all

24 $(MAKE) -f $(TOP)/Makefile php_run

25

Phrase.php (http://sewebar-cms.googlecode.com/svn/trunk/) PHP · 271 lines ✨ Summary

This PHP class implements a search query processor for a search engine. It takes a phrase as input and generates a query that can be used to retrieve documents containing the phrase. The query is optimized for different types of fields, such as exact term matching, wildcard queries, and non-trivial phrase queries. The class also provides methods for highlighting matches in the retrieved documents.

1 <?php

2 /**

3 * Zend Framework

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: Phrase.php 20096 2010-01-06 02:05:09Z bkarwin $

21 */

22

23

24 /** Zend_Search_Lucene_Search_Query_Processing */

25 require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php';

26

27 /**

126 //

127 // if (strpos($this->_phrase, '?') !== false || strpos($this->_phrase, '*') !== false) {

128 // require_once 'Zend/Search/Lucene/Search/QueryParserException.php';

129 // throw new Zend_Search_Lucene_Search_QueryParserException('Wildcards are only allowed in a single terms.');

130 // }

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

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

444 0KqFZ+MNHxhC4IbD831CiWjXcjhuGWRkJZFJnPO3Qs9SnJkrEzOmruxJ5MAzHQWkeIBz1ZSbEpnm

445 om0v1fkQ4X7r3G0ib2FsKnTtAzE2yfl2HnknCGcaeE0iN62js8SpD2y15RZK64F2MCyCifBeHrlW

446 UQcZ55oHdnKxX14Pwsel5XuVPkylNqkqbwO7orySjD4IWRUvAj69F+tslDIEVAfZbAkXLtJ8/FXi

447 w48IuZwMhVIZeSbGbmgxNx6RuYCy50VeWEnZBL4rmcM45RVp+YFtcFUuS8s2lsFvN5szUaEhE/JY

448 GE01TZ0p8lNfcxhOeUCnNbDX1tDcBmeBsEEwCUSRijSpfGOH5GVBeOr7NZEykK55irLJFDfIwgvy

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;

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

This Java class represents an if statement in a PHP program, including its condition, statements to execute, and optional elseifs and else clauses. It provides methods for converting the if statement to a string, getting variables used by the statement, analyzing code, and retrieving expressions at specific locations. The class extends another Statement class and uses other classes like Expression, ElseIf, and VariableUsage.

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;

127

128 @Override

129 public void analyzeCode(PHPParser parser)

130 {

131 condition.analyzeCode(parser);

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 /**

devel.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 204 lines ✨ Summary

This is a documentation page for the jEdit project, written in HTML. It provides instructions on how to migrate plugins from CVS to Subversion, and explains the process of setting up a new plugin repository on SourceForge. The content includes step-by-step guides, technical details, and links to relevant resources.

10 <ul>

11

12 <li><a href="index.php?page=feedback">Mailing list subscription</a>

13 </li>

14 <li> <a href="http://subversion.tigris.org">Subversion</a>: <a href="https://sourceforge.net/svn/?group_id=588">Help</a>, <a href="#migration">Migration</a>, <a href="http://jedit.svn.sourceforge.net/viewvc/jedit/">Browse SVN</a>, <a href="http://jedit.cvs.sourceforge.net/jedit/">Browse CVS</a> </li>

23 <a href="https://sourceforge.net/tracker/?group_id=588&atid=300588">Patches</a>, <a href="https://sourceforge.net/tracker/?group_id=588&atid=997936">Plugin Patches</a></li>

24 <li> <a href="#patches">Creating</a> and <a href="https://sourceforge.net/tracker/?group_id=588&atid=300588">Submitting</a> patches. </li>

25 <li> <a href="http://plugins.jedit.org/releasing.php">Releasing plugins</a></li>

26 <li> <a href="#help">Want to join us? Help wanted!</a> </li>

27 <li> <a href="http://jedit.wiki.sourceforge.net/Developers+zone">Developers Zone</a> - the Wiki community. </li>

71

72 <p>Inclusion in the jEdit "development team" is informal and open to anyone. You can "join" simply by <a

73 href="index.php?page=feedback">subscribing to the <tt>jEdit-devel</tt> and

74 <tt>jEdit-users</tt> mailing lists</a>. Your level and focus of involvement is entirely up to you. For active developers, it is also highly recommended you join <a href="http://lists.sourceforge.net/mailman/listinfo/jedit-cvs">jedit-commits</a> which includes commit logs on the subversion repository. Watching this list allows you to see clearly who are the active developers, and precisely what they are working on.

75 </p>

jEdit.desktop (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 14 lines

11 Categories=Application;Development;

12 StartupNotify=true

13 Keywords=Code;Editor;Programming;PHP;FTP;

14

el-070604.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 12 lines

5 <head>

6 <title>Dummy</title>

7 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet();?>"/>

8 </head>

9 <body>

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>

Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines

9 * - Includes the ability to use the Bouvard Doclet.

10 * Visit

11 * http://community.jedit.org/modules.php?

12 * op=modload&name=web_links&file=index&req=viewlink&cid=6

13 * for the Bouvard link

upload.php (http://rorptm.googlecode.com/svn/trunk/) PHP · 107 lines ✨ Summary

This PHP script is a file uploader for FCKeditor, a text editor for internet. It checks if the uploaded file meets certain criteria (e.g., valid type, allowed extension) and renames the file if another one with the same name already exists in the target directory. If successful, it sends a JavaScript notification to the parent window with the upload results.

1 <?php

2 /*

3 * FCKeditor - The text editor for internet

5 *

6 * Licensed under the terms of the GNU Lesser General Public License:

7 * http://www.opensource.org/licenses/lgpl-license.php

8 *

9 * For further information visit:

12 * "Support Open Source software. What about a donation today?"

13 *

14 * File Name: upload.php

15 * This is the "File Uploader" for PHP.

33 // Check if this uploader has been enabled.

34 if ( !$Config['Enabled'] )

35 SendResults( '1', '', '', 'This file uploader is disabled. Please check the "editor/filemanager/upload/php/config.php" file' ) ;

36

37 // Check if the file has been correctly uploaded.

WinZipAesException.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 22 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

ZipArchive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 34 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 CleanZip.Compression;

Archive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 29 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 namespace CleanZip.Test.Mock1

README (http://enginey.googlecode.com/svn/trunk/) Unknown · 42 lines

1 Using Amazon S3 with Dojo has the following prerequisites:

2 * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.

3 * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5.

4 * proxy.php requires the following modules:

8

9 To use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming

10 proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access key

11 into the proxy.php file on line 3 and 4:

20 var s3Buckets = new dojox.rpc.Service({

21 target:"http://s3.amazonaws.com/",

22 proxyUrl:"../s3/proxy.php", // the path to the proxy

23 transport:"REST",

24 envelope:"PROXIED-PATH",

news.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 240 lines

31 <title> Preface </title>

32

33 <para> jEdit is a very mature text editor, and has gone through a very interesting phase of development. Left in a "prerelease" stage for about two years, it's had a long time to solifidy. Many of the original developers, including Slava Pestov, have stopped working directly on jEdit. Fortunately, because of the wonderful nature of open source, there are more and more eyeballs on this code than ever! We have received contributions of plugins, bugfixes, refactoring, and enhancements from around the globe, and our host, sourceforge.net <ulink url = "http://sourceforge.net/project/stats/detail.php?group_id=588&amp;ugn=jedit&amp;type=prdownload&amp;mode=year&amp;package_id=0" >reports</ulink> that there are on average at least a half-million downloads per year, and this has been true for the entire millenium.

34 </para>

35

189

190 <bridgehead>SideKicks and Language Plugins </bridgehead>

191 <para> SideKick has been debugged and the documentation has been improved. Further, there is a new combobox that lets you choose your parser, and a new SplitPane to show you the contents of the hovered element. The combobox is especially important since there are multiple parsers that can be used on a given file, especially when you are working with Python, PHP, HTML, XML, or JavaScript files. </para>

192

193 <para> Many language-specific plugins have been redesigned to use the new and improved SideKick. In particular, JPyDebug, JythonInterpreter, RubyPlugin, PHPParser, JavaSideKick, XML, and PerlSideKick. Be sure to try them out.

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

This Java code appears to be part of a text editor’s line management system, responsible for calculating and storing information about each line in a document. It handles soft wrapping (line breaks) and hard wrapping (physical line changes), updating line data accordingly. The code provides methods for retrieving line information, checking if a full repaint is needed, and handling backwards compatibility with older versions of the text editor.

427 fontRenderContext,str);

428 width = (float)text.getLogicalBounds().getWidth();

429 positions = text.getGlyphPositions(0,length,null);

430 }

431

jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines

157

158 .SH BUGS

159 See http://www.jEdit.org/index.php?page=feedback for bug reporting information.

160

161 .SH WEB

typemaps.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 235 lines

4 // Oct 3, 2001

5 //

6 // PHP4 implementation

7 //

8 //

117

118 // REFERENCE

119 // Accept Php references as pointers

120

121 %typemap(in) double *REFERENCE (double dvalue)

kernel-docs.txt (http://photon-android.googlecode.com/svn/) Plain Text · 762 lines

115 * Title: "The Linux RAID-1, 4, 5 Code"

116 Author: Ingo Molnar, Gadi Oxman and Miguel de Icaza.

117 URL: http://www.linuxjournal.com/article.php?sid=2391

118 Keywords: RAID, MD driver.

119 Description: Linux Journal Kernel Korner article. Here is it's

125 * Title: "Dynamic Kernels: Modularized Device Drivers"

126 Author: Alessandro Rubini.

127 URL: http://www.linuxjournal.com/article.php?sid=1219

128 Keywords: device driver, module, loading/unloading modules,

129 allocating resources.

138 * Title: "Dynamic Kernels: Discovery"

139 Author: Alessandro Rubini.

140 URL: http://www.linuxjournal.com/article.php?sid=1220

141 Keywords: character driver, init_module, clean_up module,

142 autodetection, mayor number, minor number, file operations,

ZipStreamWrapper.php (https://PHPExcel.svn.codeplex.com/svn) PHP · 164 lines ✨ Summary

This PHP class, PHPExcel_Shared_ZipStreamWrapper, provides a wrapper around ZipArchive to simulate a file stream. It allows reading and seeking through a ZIP archive as if it were a local file, making it useful for working with ZIP files in a PHP application. The class is designed to be used with the stream_wrapper_register function to enable ZIP streams.

1 <?php

2 /**

3 * PHPExcel

4 *

5 * Copyright (c) 2006 - 2010 PHPExcel

6 *

7 * This library is free software; you can redistribute it and/or

22 * @package PHPExcel_Shared

23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

33 * @package PHPExcel_Shared

34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Shared_ZipStreamWrapper {

jsonRpc10.php (http://enginey.googlecode.com/svn/trunk/) PHP · 48 lines ✨ Summary

This PHP script processes a JSON-RPC request from a client, determines the requested method and its parameters, and returns a response in JSON format. If the requested method is found, it returns the parameter as the result; otherwise, it returns an error message indicating that the method was not found. The response includes an ID matching the original request’s ID.

1 <?php

2 require_once("./JSON.php");

6 // Commenting out.the require and the new File() call.

7

8 // NOTE: File.php is installed via Pear using:

9 // %> sudo pear install File

10 // Your server will also need the Pear library directory included in PHP's

11 // include_path configuration directive

12 // require_once('File.php');

13

14 // ensure that we don't try to send "html" down to the client

21 $results['error'] = null;

22

23 $jsonRequest = file_get_contents('php://input');

24 //$jsonRequest = '{"params":["Blah"],"method":"myecho","id":86}';

25

TrubenResource.java (http://dbox.googlecode.com/svn/DBox2/src/) Java · 165 lines ✨ Summary

This Java class, TrubenResource, implements an online resource that retrieves information about a game from a database. It uses a URL to search for a game based on its hash and extracts relevant data such as name, developer, genre, publisher, and year. The retrieved data is stored in an ApplicationBean object and can be accessed through getter methods.

23 public class TrubenResource implements OnlineResource {

24

25 private final String SEARCH_URL = "http://dbox.truben.no/GameDB/search.php?query=";

26

27 private String name = "";

categories.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 86 lines

1 <?php

2 /**

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

5 */

6

7 defined('_JEXEC') or die;

8

9 jimport('joomla.application.component.controlleradmin');

44

45 $extension = JRequest::getCmd('extension');

46 $this->setRedirect(JRoute::_('index.php?option=com_categories&view=categories&extension='.$extension, false));

47

48 // Initialise variables.

79 } else {

80 // Nothing to reorder

81 $this->setRedirect(JRoute::_('index.php?option='.$this->option.'&view='.$this->view_list, false));

82 return true;

83 }

_Classes_PHPExcel_Writer_Excel2007_Style_php.html (https://PHPExcel.svn.codeplex.com/svn) HTML · 138 lines ✨ Summary

This HTML code outputs a documentation page for a PHP class, PHPExcel_Writer_Excel2007. It displays information about the class, including its dependencies and methods, in a structured format with tables and paragraphs. The output includes links to other related classes and documentation, as well as metadata such as the generation date and tool used (phpDocumentor).

113 require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_WriterPart_php.html">'PHPExcel/Writer/Excel2007/WriterPart.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a32">32</a>]<br />

114 PHPExcel_Writer_Excel2007_WriterPart<br /><br /><p>PHPExcel_Writer_Excel2007_WriterPart</p><br />require_once(<a href="../PHPExcel/_Classes_PHPExcel_Style_php.html">'PHPExcel/Style.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a35">35</a>]<br />

115 PHPExcel_Style<br /><br /><p>PHPExcel_Style</p><br />require_once(<a href="../PHPExcel_Style/__________________________________Classes_PHPExcel_Style_Borders_php.html">'PHPExcel/Style/Borders.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a38">38</a>]<br />

116 PHPExcel_Style_Borders<br /><br /><p>PHPExcel_Style_Borders</p><br />require_once(<a href="../PHPExcel_Writer/_____________________________________________Classes_PHPExcel_Writer_Excel2007_php.html">'PHPExcel/Writer/Excel2007.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a29">29</a>]<br />

117 PHPExcel_Writer_Excel2007<br /><br /><p>PHPExcel_Writer_Excel2007</p><br />require_once(<a href="../PHPExcel_Style/_______________________________Classes_PHPExcel_Style_Border_php.html">'PHPExcel/Style/Border.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a41">41</a>]<br />

118 PHPExcel_Style_Border<br /><br /><p>PHPExcel_Style_Border</p><br />require_once(<a href="../PHPExcel_Style/_______________________Classes_PHPExcel_Style_Color_php.html">'PHPExcel/Style/Color.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a44">44</a>]<br />

119 PHPExcel_Style_Color<br /><br /><p>PHPExcel_Style_Color</p><br />require_once(<a href="../PHPExcel_Style/____________________________________Classes_PHPExcel_Style_Font_php.html">'PHPExcel/Style/Font.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a50">50</a>]<br />

120 PHPExcel_Style_Font<br /><br /><p>PHPExcel_Style_Font</p><br />require_once(<a href="../PHPExcel_Style/______________________Classes_PHPExcel_Style_NumberFormat_php.html">'PHPExcel/Style/NumberFormat.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a53">53</a>]<br />

121 PHPExcel_Style_NumberFormat<br /><br /><p>PHPExcel_Style_NumberFormat</p><br />require_once(<a href="../PHPExcel_Style/____________________________________Classes_PHPExcel_Style_Conditional_php.html">'PHPExcel/Style/Conditional.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a56">56</a>]<br />

122 PHPExcel_Style_Conditional<br /><br /><p>PHPExcel_Style_Conditional</p><br />require_once(<a href="../PHPExcel_Style/____________________________________________Classes_PHPExcel_Style_Fill_php.html">'PHPExcel/Style/Fill.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a47">47</a>]<br />

123 PHPExcel_Style_Fill<br /><br /><p>PHPExcel_Style_Fill</p><br /></div>

Abstract.php (https://code.google.com/p/ecartcommerce/) PHP · 109 lines ✨ Summary

This is a base class for Ecart payment methods, providing common functionality and properties such as code, title, description, icon, and configuration settings. It allows subclasses to override the init method and provides methods to check if the method is enabled, retrieve its module name and file name, and access its configuration settings.

1 <?php

2 /**

3 * Ecart

category.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 177 lines

1 <?php

2 /**

3 * @package Joomla.Administrator

8 */

9

10 defined('_JEXEC') or die;

11

12 jimport('joomla.application.component.controllerform');

137

138 // Preset the redirect

139 $this->setRedirect('index.php?option=com_categories&view=categories&extension=' . $this->extension);

140

141 return parent::batch($model);

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

controller.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 84 lines

1 <?php

2 /**

3 * @package Joomla.Site

7 */

8

9 defined('_JEXEC') or die;

10

11 /**

63 $app = JFactory::getApplication();

64 $menu = $app->getMenu();

65 $items = $menu->getItems('link', 'index.php?option=com_search&view=search');

66

67 if(isset($items[0])) {

79

80

81 $this->setRedirect(JRoute::_('index.php'.$uri->toString(array('query', 'fragment')), false));

82 }

83 }

exploretags.js (https://code.google.com/p/ontowiki/) JavaScript · 249 lines ✨ Summary

This JavaScript code is part of a tagging extension for OntoWiki, a semantic web platform. It enables users to add, remove, and manage tags on resources in the platform. The code handles user interactions such as clicking cloud values, deleting properties, and sorting tag clouds, while also refreshing the page with updated tag lists.

3 *

4 * @author Atanas Alexandrov <sirakov@gmail.com>

5 * @author Sebastian Dietzold <dietzold@informatik.uni-leipzig.de>

6 * @copyright Copyright (c) 2009, {@link http://aksw.org AKSW}

7 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)

Empty.php (http://sewebar-cms.googlecode.com/svn/trunk/) PHP · 139 lines ✨ Summary

This PHP class, Zend_Search_Lucene_Search_Query_Empty, represents an empty search query for a Lucene index. It provides methods to rewrite and optimize the query, create a weight implementation, execute the query, retrieve matched document IDs, score documents, and highlight matches. The class is designed to be used as a placeholder or default query when no actual query terms are provided.

1 <?php

2 /**

3 * Zend Framework

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: Empty.php 20096 2010-01-06 02:05:09Z bkarwin $

21 */

22

23

24 /** Zend_Search_Lucene_Search_Query */

25 require_once 'Zend/Search/Lucene/Search/Query.php';

26

27

66 public function createWeight(Zend_Search_Lucene_Interface $reader)

67 {

68 require_once 'Zend/Search/Lucene/Search/Weight/Empty.php';

69 return new Zend_Search_Lucene_Search_Weight_Empty();

70 }

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?

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.

17 <div class="index">

18 <!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->

19 <b>TwitterAlikeExample: Contents</b><br>&nbsp;&nbsp;<a href="#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><br>&nbsp;&nbsp;<a href="#Key-value stores basics">Key-value stores basics</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Atomic operations">Atomic operations</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Beyond key-value stores">Beyond key-value stores</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#The set data type">The set data type</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Prerequisites">Prerequisites</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Data layout">Data layout</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Following, followers and updates">Following, followers and updates</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Authentication">Authentication</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Updates">Updates</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Paginating updates">Paginating updates</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Following users">Following users</a><br>&nbsp;&nbsp;<a href="#Making it horizontally scalable">Making it horizontally scalable</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Hashing the key">Hashing the key</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Special keys">Special keys</a>

20 </div>

21

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">