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.
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 -->
3 <!-- for jEdit: :mode=php:indentSize=2:tabSize=2:noTabs=true: -->
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>
8 <p>To install jEdit, open a command prompt and
Advertiser.php (https://bitbucket.org/valmy/openx.git) PHP · 371 lines
Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines
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.
151 this.assertEquals(5 + 2 + 3 + 5, pos.left, "left2");
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);
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.
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 }
273 return $this->getCacheDir() . '/module-config-cache.php';
274 }
352 {
353 if ($this->getModuleMapCacheKey()) {
354 return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php';
355 }
BannerServiceImpl.php (https://bitbucket.org/blackriver/openx.git) PHP · 344 lines
1 <?php
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 */
34 // Base class BaseLogonService
35 require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';
37 // Banner Dll class
38 require_once MAX_PATH . '/lib/OA/Dll/Banner.php';
40 /**
JErrorTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 470 lines
1 <?php
2 /**
3 * @package Joomla.UnitTest
8 */
10 require_once __DIR__ . '/JErrorInspector.php';
12 /**
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
registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines
PluginInfo.php (https://gitlab.com/fabiorf/chat) PHP · 383 lines
errors.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 194 lines
User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines
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>
180 <h2>Root class Auth_Yadis_Service</h2>
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
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 */
34 // Base class BaseLogonService
35 require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';
37 // Banner Dll class
38 require_once MAX_PATH . '/lib/OA/Dll/Banner.php';
40 /**
modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines
Statistics.php (https://github.com/grjones/qframe.git) PHP · 309 lines
1 <?php
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 */
25 * @see Zend_Gdata_Extension
26 */
27 require_once 'Zend/Gdata/Extension.php';
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
3 /**
114 $versionTable = $database->addTable(array(
115 'name' => $versionTableName,
116 'phpName' => $this->getVersionTablePhpName(),
117 'package' => $table->getPackage(),
118 'schema' => $table->getSchema(),
195 }
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
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 */
25 * @see Zend_Gdata_Extension
26 */
27 require_once 'Zend/Gdata/Extension.php';
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 */
19 use Meta\AbstractPHPStructure;
20 use Meta\DocBlock;
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
ZendQueue.php (https://github.com/jtai/zf2.git) PHP · 303 lines
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 */
23 * @see Zend_Feed_Writer_Extension_RendererAbstract
24 */
25 // require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
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 */
SiteVerification.php (https://github.com/orangehrm/OrangeHRM.git) PHP · 404 lines
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 */
23 * @see Zend_Feed_Writer_Extension_RendererAbstract
24 */
25 require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
27 /**
Statistics.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 309 lines
1 <?php
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 */
25 * @see Zend_Gdata_Extension
26 */
27 require_once 'Zend/Gdata/Extension.php';
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
PartnersSubscriptions.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 183 lines
GopBltLib.c (https://github.com/thalium/icebox.git) C · 455 lines
helper.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 400 lines
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>
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>
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 */
23 * @see Zend_Filter_Encrypt_Interface
24 */
25 // require_once 'Zend/Filter/Encrypt/Interface.php';
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
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 */
23 * @see Zend_Feed_Writer_Extension_RendererAbstract
24 */
25 require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
27 /**
ContentURI.java (https://github.com/jehc/MondocosmOS.git) Java · 332 lines
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 */
23 * @see Zend_Feed_Writer_Extension_RendererAbstract
24 */
25 //require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
27 /**
db.php (https://bitbucket.org/sriedel/iccrm-wip.git) PHP · 379 lines
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 }
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
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 //////////////////////////////////////////////////////////
36 require_once 'xml_test_runner_with_style_sheet.php';
38 //////////////////////////////////////////////////////////
Parser.php (https://bitbucket.org/icosplays/friendica.git) PHP · 349 lines
google.php (https://gitlab.com/Ltaimao/wecenter) PHP · 338 lines
Statistics.php (https://github.com/oveach/tuto-zf-doctrine2.git) PHP · 309 lines
1 <?php
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 */
25 * @see Zend_Gdata_Extension
26 */
27 require_once 'Zend/Gdata/Extension.php';
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>
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
3 /**
4 * Admin ajax functions to be tested
5 */
6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
8 /**
70 $_POST['_per_page'] = 100;
71 $_POST['_page'] = 1;
72 $_POST['_url'] = admin_url( 'edit-comments.php' );
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
DatabaseAdapter.php (https://github.com/drawig/THM-PHP-Demo-Projects.git) PHP · 377 lines
1 <?php
3 include('Projekt.php');
4 include('Ticket.php');
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 */
23 * @see Zend_Validate_Abstract
24 */
25 // require_once 'Zend/Validate/Abstract.php';
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
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>
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';
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
GifCreator.php (https://gitlab.com/billyprice1/mc-skintools) PHP · 349 lines
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.
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.
conversion_runme.php (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 15 lines
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.
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.
skel.php (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 16 lines
ZipEntryTest.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 193 lines
unserialize.xml (http://phpdoc-zh.googlecode.com/svn/trunk/) XML · 81 lines
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 */
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.
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.
.cvsignore (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 15 lines
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.
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
14 static::
15 $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
16 SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
17 php_static
19 clean::
20 $(MAKE) -f $(TOP)/Makefile php_clean
21 rm -f $(TARGET).php
23 check: all
24 $(MAKE) -f $(TOP)/Makefile php_run
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.
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 */
24 /** Zend_Search_Lucene_Search_Query_Processing */
25 require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php';
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
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.
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.
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.
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 }
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
.
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
.
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.
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.
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.
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.
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.
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>
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>
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
el-070604.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 12 lines
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
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.
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' ) ;
37 // Check if the file has been correctly uploaded.
WinZipAesException.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 22 lines
ZipArchive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 34 lines
Archive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 29 lines
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:
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>
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&ugn=jedit&type=prdownload&mode=year&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>
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>
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.
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.
jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines
typemaps.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 235 lines
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.
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.
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.
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');
14 // ensure that we don't try to send "html" down to the client
21 $results['error'] = null;
23 $jsonRequest = file_get_contents('php://input');
24 //$jsonRequest = '{"params":["Blah"],"method":"myecho","id":86}';
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.
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.
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 */
7 defined('_JEXEC') or die;
9 jimport('joomla.application.component.controlleradmin');
45 $extension = JRequest::getCmd('extension');
46 $this->setRedirect(JRoute::_('index.php?option=com_categories&view=categories&extension='.$extension, false));
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).
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.
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.
SimpleKeyCacheInputStream.php (http://2moons.googlecode.com/svn/trunk/) PHP · 130 lines
category.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 177 lines
1 <?php
2 /**
3 * @package Joomla.Administrator
8 */
10 defined('_JEXEC') or die;
12 jimport('joomla.application.component.controllerform');
138 // Preset the redirect
139 $this->setRedirect('index.php?option=com_categories&view=categories&extension=' . $this->extension);
141 return parent::batch($model);
en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines
controller.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 84 lines
1 <?php
2 /**
3 * @package Joomla.Site
7 */
9 defined('_JEXEC') or die;
11 /**
63 $app = JFactory::getApplication();
64 $menu = $app->getMenu();
65 $items = $menu->getItems('link', 'index.php?option=com_search&view=search');
67 if(isset($items[0])) {
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.
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.
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.
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 */
24 /** Zend_Search_Lucene_Search_Query */
25 require_once 'Zend/Search/Lucene/Search/Query.php';
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.
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.
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.
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> <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> <a href="#Key-value stores basics">Key-value stores basics</a><br> <a href="#Atomic operations">Atomic operations</a><br> <a href="#Beyond key-value stores">Beyond key-value stores</a><br> <a href="#The set data type">The set data type</a><br> <a href="#Prerequisites">Prerequisites</a><br> <a href="#Data layout">Data layout</a><br> <a href="#Following, followers and updates">Following, followers and updates</a><br> <a href="#Authentication">Authentication</a><br> <a href="#Updates">Updates</a><br> <a href="#Paginating updates">Paginating updates</a><br> <a href="#Following users">Following users</a><br> <a href="#Making it horizontally scalable">Making it horizontally scalable</a><br> <a href="#Hashing the key">Hashing the key</a><br> <a href="#Special keys">Special keys</a>
20 </div>
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 "antirez":<br/><br/><pre class="codeblock python python python python python python python python python python python python" name="code">