PageRenderTime 612ms queryTime 78ms sortTime 136ms getByIdsTime 60ms findMatchingLines 39ms

100+ results results for 'php system' (612 ms)

Not the results you expected?
modResource.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 321 lines
                    
1<?php
                    
2/* Copyright (C) 2013-2014 Jean-François Ferry <jfefe@aternatik.fr>
                    
23 * 	\brief		Resource module descriptor.
                    
24 * 	\file		core/modules/modResource.class.php
                    
25 * 	\ingroup	resource
                    
27 */
                    
28include_once DOL_DOCUMENT_ROOT."/core/modules/DolibarrModules.class.php";
                    
29
                    
48		// Use a free id here
                    
49		// (See in Home -> System information -> Dolibarr for list of used modules id).
                    
50		$this->numero = 63000;
                    
80		// for specific path of parts (eg: /resource/core/modules/barcode)
                    
81		// for specific css file (eg: /resource/css/resource.css.php)
                    
82		$this->module_parts = array();
                    
87
                    
88		// Config pages. Put here list of php pages
                    
89		// stored into resource/admin directory, used to setup module.
                    
                
View.php git://github.com/concrete5/concrete5.git | PHP | 478 lines
                    
1<?php
                    
2namespace Concrete\Core\View;
                    
5use Concrete\Core\Asset\Output\StandardFormatter;
                    
6use Concrete\Core\Filesystem\FileLocator;
                    
7use Concrete\Core\Http\ResponseAssetGroup;
                    
14use Config;
                    
15use Illuminate\Filesystem\Filesystem;
                    
16
                    
210        if (!$this->innerContentFile) { // will already be set in a legacy tools file
                    
211            $this->setInnerContentFile($env->getPath($this->viewRootDirectoryName.'/'.trim($this->viewPath, '/').'.php', $this->viewPkgHandle));
                    
212        }
                    
457
                    
458        $_fs = $_app->make(Filesystem::class);
                    
459        $_locator = new FileLocator($_fs, $_app);
                    
466
                    
467        $_record = $_locator->getRecord(DIRNAME_ELEMENTS . '/' . $_file . '.php');
                    
468        $_file = $_record->getFile();
                    
                
permissions.inc.php git://github.com/modxcms/revolution.git | PHP | 192 lines
                    
1<?php
                    
2/**
                    
85$_lang['perm.menu_support_desc'] = 'Menampilkan item menu paling atas "Support".';
                    
86$_lang['perm.menu_system_desc'] = 'Menampilkan item menu paling atas "Sistem".';
                    
87$_lang['perm.menu_tools_desc'] = 'Tampilkan "Tools" menu paling atas item.';
                    
152$_lang['perm.settings_desc'] = 'Untuk melihat dan mengedit pengaturan sistem.';
                    
153$_lang['perm.events_desc'] = 'Periksa berbagai System Events.';
                    
154$_lang['perm.source_delete_desc'] = 'Untuk menghapus sumber Media.';
                    
                
AdvancedServerDatabaseConfig.cs https://openHistorian.svn.codeplex.com/svn | C# | 388 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
25
                    
26using System;
                    
27using System.Collections.Generic;
                    
                
AltBinaryRandomAccessList.fs git://github.com/dmohl/fsharpx.git | F# | 371 lines
                    
1// originally published by Julien
                    
2// original implementation taken from http://lepensemoi.free.fr/index.php/2010/02/11/alternative-binary-random-access-list
                    
3//J.F. added remove, trys, length, append, rev
                    
6
                    
7open System.Collections
                    
8open System.Collections.Generic
                    
                
notifier.php git://github.com/mageekguy/atoum.git | PHP | 221 lines
                    
1<?php
                    
2
                    
11
                    
12require_once __DIR__ . '/../../../../../runner.php';
                    
13
                    
44			->if($score = new \mock\mageekguy\atoum\runner\score())
                    
45			->and($this->calling($score)->getAssertionNumber = $assertionNumber = rand(1, PHP_INT_MAX))
                    
46			->and($this->calling($score)->getFailNumber = $failNumber = rand(1, PHP_INT_MAX))
                    
46			->and($this->calling($score)->getFailNumber = $failNumber = rand(1, PHP_INT_MAX))
                    
47			->and($this->calling($score)->getErrorNumber = $errorNumber = rand(1, PHP_INT_MAX))
                    
48			->and($this->calling($score)->getExceptionNumber = $exceptionNumber = rand(1, PHP_INT_MAX))
                    
50			->and($runner->setScore($score))
                    
51			->and($this->calling($runner)->getTestNumber = $testNumber = rand(1, PHP_INT_MAX))
                    
52			->and($this->calling($runner)->getTestMethodNumber = $testMethodNumber = rand(1, PHP_INT_MAX))
                    
129			->and($adapter = new test\adapter())
                    
130			->and($adapter->system = function() use (& $output) { return $output = uniqid(); })
                    
131			->and($field = new \mock\mageekguy\atoum\report\fields\runner\result\notifier($adapter))
                    
                
shared_alloc_win32.c git://github.com/php/php-src.git | C | 393 lines
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) The PHP Group                                          |
                    
6   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
14   +----------------------------------------------------------------------+
                    
15   | Authors: Andi Gutmans <andi@php.net>                                 |
                    
16   |          Zeev Suraski <zeev@php.net>                                 |
                    
                
Fl_GIF_Image.cxx http://luafltk.googlecode.com/svn/trunk/ | C++ | 391 lines
                    
24//
                    
25//     http://www.fltk.org/str.php
                    
26//
                    
45// Extensively modified from original code for gif2ras by
                    
46// Patrick J. Naughton of Sun Microsystems.  The original
                    
47// copyright notice follows:
                    
70 *                     Patrick J. Naughton
                    
71 *                     Sun Microsystems, Inc.
                    
72 *                     2550 Garcia Ave, MS 14-40
                    
                
CWsdlGenerator.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 420 lines
                    
1<?php
                    
2/**
                    
20 * of every input parameter and the type of the return value should be declared using
                    
21 * the standard phpdoc format.
                    
22 *
                    
78 * @author Qiang Xue <qiang.xue@gmail.com>
                    
79 * @version $Id: CWsdlGenerator.php 242 2012-03-29 15:18:01Z mole1230 $
                    
80 * @package system.web.services
                    
161	/*
                    
162	 * @param string $type PHP variable type
                    
163	 */
                    
252		$schema->setAttribute('targetNamespace',$this->namespace);
                    
253		foreach($this->_types as $phpType=>$xmlType)
                    
254		{
                    
275			{
                    
276				$complexType->setAttribute('name',$phpType);
                    
277				$all=$dom->createElement('xsd:all');
                    
                
WebSocketParserD08.java git://pkgs.fedoraproject.org/jetty | Java | 389 lines
                    
11 *   The Apache License v2.0 is available at
                    
12 *   http://www.opensource.org/licenses/apache2.0.php
                    
13 *
                    
24// The Apache License v2.0 is available at
                    
25// http://www.opensource.org/licenses/apache2.0.php
                    
26// You may elect to redistribute this code under either of these licenses.
                    
174
                    
175                        // System.err.printf("%s %s %s >>\n",TypeUtil.toHexString(_flags),TypeUtil.toHexString(_opcode),data.length());
                    
176                        events++;
                    
344
                    
345                    // System.err.printf("%s %s %s >>\n",TypeUtil.toHexString(_flags),TypeUtil.toHexString(_opcode),data.length());
                    
346                    events++;
                    
                
actions.c git://github.com/DimaSmirnov/Archlinux-downgrader.git | C | 352 lines
                    
5        if (!silent) { sprintf(tmp_string, "Downgrading from Cache, to version %s\n",install_version); dgr_output(tmp_string); }
                    
6        system(install_command);
                    
7        return 0;
                    
16        //printf("%s\n", install_command); //DEBUG
                    
17        system(install_command);
                    
18        return 0;
                    
24            strcpy(install_command,"sudo pacman -U "); strcat(install_command,arm_pkgs[ret+2].link);
                    
25            system(install_command);
                    
26            return 0;
                    
210    curl = curl_easy_init();
                    
211    sprintf(tmp_string,"https://aur.archlinux.org/rpc.php?type=search&arg=%s",package);
                    
212    curl_easy_setopt(curl, CURLOPT_URL, tmp_string);
                    
                
ConfigurationFrame.cs https://openpdc.svn.codeplex.com/svn | C# | 302 lines
                    
30using System.Linq;
                    
31using System.Runtime.Serialization;
                    
32using System.Runtime.Serialization.Formatters;
                    
118            {
                    
119                // This property will not change during system life-cycle so we cache if for future use
                    
120                if (string.IsNullOrEmpty(s_configurationCachePath))
                    
124
                    
125                    // Make sure configuration cache path setting exists within system settings section of config file
                    
126                    ConfigurationFile configFile = ConfigurationFile.Current;
                    
126                    ConfigurationFile configFile = ConfigurationFile.Current;
                    
127                    CategorizedSettingsElementCollection systemSettings = configFile.Settings["systemSettings"];
                    
128                    systemSettings.Add("ConfigurationCachePath", s_configurationCachePath, "Defines the path used to cache serialized phasor protocol configurations");
                    
154                    ConfigurationFile configFile = ConfigurationFile.Current;
                    
155                    CategorizedSettingsElementCollection systemSettings = configFile.Settings["systemSettings"];
                    
156                    systemSettings.Add("ConfigurationBackups", DefaultConfigurationBackups, "Defines the total number of older backup configurations to maintain.");
                    
                
logs.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 336 lines
                    
1<?php
                    
2
                    
24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0";
                    
25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op;
                    
26
                    
42		nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 );
                    
43		Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
44		exit();
                    
103	{
                    
104		$user_tmp = ( $data_search['user'] == "system" ) ? 0 : (int)$data_search['user'];
                    
105		
                    
186$data_users = array();
                    
187$data_users[0] = "system";
                    
188if ( ! empty( $array_userid ) )
                    
245$array_user[] = array(
                    
246	"key" => "system",  //
                    
247	"title" => $lang_module['filter_system'],  //
                    
                
UC_DBClass.php https://git01.codeplex.com/phpdbmanagement | PHP | 440 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'UC_DBBase.php';
                    
4require_once '/CodeModel_Classes/PHPCodeProvider.php';
                    
4require_once '/CodeModel_Classes/PHPCodeProvider.php';
                    
5require_once '/PHPFileSystem_Classes/UC_PHPFileSystem.php';
                    
6require_once '/PHPFileSystem_Classes/UC_PHPTextStream.php';
                    
6require_once '/PHPFileSystem_Classes/UC_PHPTextStream.php';
                    
7require_once '/PHPFileSystem_Classes/UC_PHPIOMode.php';
                    
8
                    
370        $writer = new IndentedTextWriter();
                    
371        $provider = new PHPCodeProvider();
                    
372
                    
374        echo '<pre>' . str_replace('<br />', '', highlight_string($writer->get_String(), true)) . '<pre/>';
                    
375        $file = UC_PHPFileSystem::create_text_file(dirname(__FILE__) . 
                    
376            '/Database_Classes/UC_DBClass_' . 
                    
                
Objects.cs https://github.com/BlackMael/SubSonic-3.0.git | C# | 324 lines
                    
6//   except in compliance with the License. You may obtain a copy of
                    
7//   the License at http://www.opensource.org/licenses/bsd-license.php
                    
8//  
                    
13// 
                    
14using System;
                    
15using System.Collections.Generic;
                    
15using System.Collections.Generic;
                    
16using System.ComponentModel;
                    
17using System.Data;
                    
17using System.Data;
                    
18using System.Reflection;
                    
19using System.Linq;
                    
37        /// <remarks>
                    
38        /// This method exists as a workaround to System.Convert.ChangeType(Object, Type) which does not handle
                    
39        /// nullables as of version 2.0 (2.0.50727.42) of the .NET Framework. The idea is that this method will
                    
                
silcske_payload-silc_ske_payload_start_free.html git://pkgs.fedoraproject.org/libsilc | HTML | 220 lines
                    
85&nbsp;&nbsp;&nbsp; <a href=silcsftp.html><img src=box2.gif border=0 alt=>SILC SFTP Interface</a><br />
                    
86&nbsp;&nbsp;&nbsp; <a href=silcsftp_fs.html><img src=box2.gif border=0 alt=>SFTP Filesystems Interface</a><br />
                    
87<a href=silccorelib.html><img src=box.gif border=0 alt=>SILC Core Library</a><br />
                    
131&nbsp;&nbsp;&nbsp; <a href=silchttpserver.html><img src=box2.gif border=0 alt=>SILC HTTP Server Interface</a><br />
                    
132&nbsp;&nbsp;&nbsp; <a href=silchttpphp.html><img src=box2.gif border=0 alt=>SILC HTTP PHP Translator</a><br />
                    
133
                    
                
silcsftp_fs-silc_sftp_fs_memory_free.html git://pkgs.fedoraproject.org/libsilc | HTML | 221 lines
                    
85&nbsp;&nbsp;&nbsp; <a href=silcsftp.html><img src=box2.gif border=0 alt=>SILC SFTP Interface</a><br />
                    
86&nbsp;&nbsp;&nbsp; <a href=silcsftp_fs.html><img src=box2.gif border=0 alt=>SFTP Filesystems Interface</a><br />
                    
87<a href=silccorelib.html><img src=box.gif border=0 alt=>SILC Core Library</a><br />
                    
131&nbsp;&nbsp;&nbsp; <a href=silchttpserver.html><img src=box2.gif border=0 alt=>SILC HTTP Server Interface</a><br />
                    
132&nbsp;&nbsp;&nbsp; <a href=silchttpphp.html><img src=box2.gif border=0 alt=>SILC HTTP PHP Translator</a><br />
                    
133
                    
168<PRE><FONT FACE="Helvetiva,Arial,Sans-serif">
                    
169    Frees the memory filesystem context.
                    
170
                    
186<A HREF="silcsftp_fs.html"><IMG SRC="index_pic.gif" BORDER="0" ALT="">SFTP Filesystems Interface</A><BR>
                    
187<A HREF="silcsftp_fs-SilcSFTPFilesystemOps.html"><IMG SRC="index_pic.gif" BORDER="0" ALT="">SilcSFTPFilesystemOps</A><BR>
                    
188<A HREF="silcsftp_fs-SilcSFTPFilesystem.html"><IMG SRC="index_pic.gif" BORDER="0" ALT="">SilcSFTPFilesystem</A><BR>
                    
                
mkdist.php git://pkgs.fedoraproject.org/php | PHP | 549 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
238	"php.ini-development" => "php.ini-development",
                    
239	"php.ini-production" => "php.ini-production",
                    
240	"win32/install.txt" => "install.txt",
                    
240	"win32/install.txt" => "install.txt",
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
461}
                    
462copy('run-tests.php', $test_dir . '/run-test.php');
                    
463
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
user.php git://pkgs.fedoraproject.org/virtuoso-opensource | PHP | 387 lines
                    
1<?php 
                    
2#  
                    
22?>
                    
23<?php
                    
24
                    
36
                    
37// Set some global config variables about your system.
                    
38$user_can_update_password = true;
                    
269
                    
270// Delete a user from the system.
                    
271// We assume that we've already checked to make sure this user doesn't
                    
                
collator_test.php git://github.com/moodle/moodle.git | PHP | 333 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
20 * @package    core
                    
21 * @category   phpunit
                    
22 * @copyright  2011 Sam Hemelryk
                    
31 * @package    core
                    
32 * @category   phpunit
                    
33 * @copyright  2011 Sam Hemelryk
                    
55        }
                    
56        $SESSION->lang = 'en'; // Make sure we test en language to get consistent results, hopefully all systems have this locale.
                    
57        if (extension_loaded('intl')) {
                    
59        } else {
                    
60            $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';
                    
61        }
                    
292 * @package    core
                    
293 * @category   phpunit
                    
294 * @copyright  2011 Sam Hemelryk
                    
                
shop_api_object.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 346 lines
                    
1<?php
                    
2/**
                    
22        if(!$this->system){
                    
23            $this->system = &$GLOBALS['system'];
                    
24        }
                    
25        if(!$this->db){
                    
26            $this->db = $this->system->database();
                    
27        }
                    
37        if(!$this->method){
                    
38            $this->method=include(CORE_DIR.'/api/include/api_link.php');
                    
39        }
                    
42            if(!$this->model_instance[$ctl]){
                    
43                include_once(CORE_DIR.'/'.dirname($ctl).'/'.$api_version.'/'.basename($ctl).'.php');
                    
44                $ctl=basename($ctl);
                    
71                $this->_header('text/xml');
                    
72                $xml=&$this->system->loadModel('utility/xml');
                    
73                $result= $xml->array2xml($data,'shopex');
                    
                
mdl.upgrade.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 276 lines
                    
19        $this->system->cache->clear();
                    
20        $smarty = &$this->system->loadModel('system/frontend');
                    
21        $smarty->compile_dir = HOME_DIR.'/cache/front_tmpl';
                    
46        if(!file_exists(HOME_DIR.'/logs/upgrade_'.substr( $_POST['file'] ,0 ,-4 ).'_'.$_POST['timeline'].'.log.php')){
                    
47            error_log('<?php exit()?>'." \n \n",3,HOME_DIR.'/logs/upgrade_'.substr( $_POST['file'] ,0 ,-4 ).'_'.$_POST['timeline'].'.log.php');
                    
48        }
                    
79    function diff_db(){
                    
80        $schema=&$this->system->loadModel('utility/schemas');
                    
81        $dbtables = $schema->get_system_schemas();
                    
112        $data['page'] = $output;
                    
113        $smarty = &$this->system->loadModel('system/frontend');
                    
114        $smarty->template_dir = CORE_DIR.'/admin/view/';
                    
212    function Upgrade(){
                    
213        $this->system = &$GLOBALS['system'];
                    
214        $this->db = &$this->system->database();
                    
                
manage_team_edit.html http://phpfor.googlecode.com/svn/trunk/ | HTML | 181 lines
                    
17                <div class="sect">
                    
18				<form id="-user-form" method="post" action="/manage/team/edit.php?id={$team['id']}" enctype="multipart/form-data" class="validator">
                    
19					<input type="hidden" name="id" value="{$team['id']}" />
                    
72					<input type="hidden" name="guarantee" value="Y" />
                    
73					<input type="hidden" name="system" value="Y" />
                    
74					<div class="wholetip clear"><h3>2????????</h3></div>
                    
123						<label>{$INI['system']['abbreviation']}???</label>
                    
124						<div style="float:left;"><textarea cols="45" rows="5" name="systemreview" id="team-create-systemreview" class="f-textarea editor">${htmlspecialchars($team['systemreview'])}</textarea></div>
                    
125					</div>
                    
128						<label>????</label>
                    
129						<div style="margin-top:5px;" id="express-zone-div"><input type="radio" name="delivery" value='express' checked />&nbsp;??&nbsp;<input type="radio" name="delivery" value="coupon" >&nbsp;{$INI['system']['couponname']}&nbsp;<input type="radio" name="delivery" value='pickup' />&nbsp;????</div>
                    
130					</div>
                    
134							<input type="text" size="10" name="credit" id="team-create-credit" class="number" value="${moneyit($team['credit'])}" datatype="money" require="true" />
                    
135							<span class="inputtip">??{$INI['system']['couponname']}?????????????CNY?</span>
                    
136						</div>
                    
                
config.php http://comet.googlecode.com/svn/trunk/ | PHP | 308 lines
                    
41/*
                    
42 Uncomment lines below to enable PHP error reporting and displaying PHP errors.
                    
43 Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected.
                    
218
                    
219	- If "php" is on the denied extensions list, a file named foo.php cannot be
                    
220	  uploaded.
                    
222	  foo.rar.
                    
223	- The file foo.php.rar has "rar" extension so, in theory, it can be also
                    
224	  uploaded.
                    
225
                    
226In some conditions Apache can treat the foo.php.rar file just like any PHP
                    
227script and execute it.
                    
229If CheckDoubleExtension is enabled, each part of the file name after a dot is
                    
230checked, not only the last part. In this way, uploading foo.php.rar would be
                    
231denied, because "php" is on the denied extensions list.
                    
                
system.admin.inc git://github.com/drupal/drupal.git | Pascal | 388 lines
                    
73 *
                    
74 * Default template: system-admin-index.html.twig.
                    
75 *
                    
187 *
                    
188 * @see \Drupal\system\Form\ModulesListForm
                    
189 */
                    
189 */
                    
190function template_preprocess_system_modules_details(&$variables) {
                    
191  $form = $variables['form'];
                    
265 */
                    
266function template_preprocess_system_modules_uninstall(&$variables) {
                    
267  $form = $variables['form'];
                    
364        }
                    
365        $current_theme['incompatible'] = t('This theme requires PHP version @php_required and is incompatible with PHP version @php_version.', array('@php_required' => $theme->info['php'], '@php_version' => phpversion()));
                    
366      }
                    
                
SortedTreeNodeBase_Remove'2.cs https://openHistorian.svn.codeplex.com/svn | C# | 237 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
23
                    
24using System;
                    
25using GSF.SortedTreeStore.Types;
                    
                
DigitalValueBase.cs https://openpdc.svn.codeplex.com/svn | C# | 243 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
29
                    
30using System;
                    
31using System.Collections.Generic;
                    
31using System.Collections.Generic;
                    
32using System.Runtime.Serialization;
                    
33using TimeSeriesFramework;
                    
                
mdl.passport.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 303 lines
                    
1<?php
                    
2require_once('plugin.php');
                    
56        if ($this->_verify()) {
                    
57            $status = $this->system->loadModel('system/status');
                    
58            $status->add('MEMBER_REG');
                    
65    function setCurrentPlugin($plugin='') {
                    
66        return $this->system->setConf('plugin.'.$this->plugin_name.'.config.current_use',$plugin);
                    
67    }
                    
69    function getCurrentPlugin() {
                    
70        return $this->system->getConf('plugin.'.$this->plugin_name.'.config.current_use');
                    
71    }
                    
204    function setCookie($name,$value,$expire=false,$path=null){
                    
205        $cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/';
                    
206        $cookieLife = 3600;
                    
221    {
                    
222        $cert = $this->system->loadModel("service/certificate");
                    
223        $certificate_id = $cert->getCerti();
                    
                
LangReplacer.php git://github.com/imagecms/ImageCMS.git | PHP | 446 lines
                    
1<?php
                    
2
                    
193
                    
194                PUBPATH . 'system/language/form_validation',
                    
195                PUBPATH . 'system/language/email_lang',
                    
195                PUBPATH . 'system/language/email_lang',
                    
196                PUBPATH . 'system/language/upload',
                    
197                PUBPATH . 'system/libraries',
                    
238    /**
                    
239     * Search lang function call in all php|tpl files recursively
                    
240     * @param $dir
                    
247        foreach ($dirIterator as $item) {
                    
248            if ($item->isFile() && in_array($item->getExtension(), ['php', 'tpl']) && !strstr($item->getBasename(), 'jsLangs')) {
                    
249                $res = self::find(file_get_contents($item->getRealPath()));
                    
                
mpsee.php https://github.com/openaustralia/publicwhip-matthew.git | PHP | 282 lines
                    
1<?php require_once "common.inc";
                    
2# $Id: mpsee.php,v 1.19 2005/12/05 01:44:39 frabcus Exp $
                    
37
                    
38<?php
                    
39function applet($year)
                    
53        <SCRIPT LANGUAGE="JavaScript1.1"><!--
                    
54        var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
                    
55        var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
                    
83<!--"END_CONVERTED_APPLET"-->
                    
84<?php
                    
85    }
                    
209
                    
210<p>One very good critique of our current electoral system is that it 
                    
211depends entirely on the self-measurement of human opinion.  Human beings 
                    
211depends entirely on the self-measurement of human opinion.  Human beings 
                    
212are notorious for holding opinions that are systematically at odds with 
                    
213even their own reality (eg to ask: "How many units of alcohol do you 
                    
                
permissions.inc.php git://github.com/modxcms/revolution.git | PHP | 192 lines
                    
1<?php
                    
2/**
                    
24$_lang['perm.dashboards_desc'] = 'View and manage Custom Dashboards.';
                    
25$_lang['perm.database_desc'] = 'The System Info page.';
                    
26$_lang['perm.database_truncate_desc'] = 'The ability to truncate a database table.';
                    
85$_lang['perm.menu_support_desc'] = 'Show the top menu item "Support".';
                    
86$_lang['perm.menu_system_desc'] = 'Show the top menu item "System".';
                    
87$_lang['perm.menu_tools_desc'] = 'Show the top menu item "Tools".';
                    
108$_lang['perm.new_weblink_desc'] = 'To create a new WebLink.';
                    
109$_lang['perm.packages_desc'] = 'To use any Transport Packages in the Package Management system.';
                    
110$_lang['perm.policy_delete_desc'] = 'To delete an Access Policy.';
                    
151$_lang['perm.set_sudo_desc'] = 'Felhasználók sudo-vá tételéhez.';
                    
152$_lang['perm.settings_desc'] = 'To view and edit any System Settings.';
                    
153$_lang['perm.events_desc'] = 'Rendszeresemények megtekintése.';
                    
186$_lang['perm.view_snippet_desc'] = 'To view any Snippets.';
                    
187$_lang['perm.view_sysinfo_desc'] = 'To view the system info page.';
                    
188$_lang['perm.view_template_desc'] = 'To view any Templates.';
                    
                
HistorianCompressedStream.cs https://openHistorian.svn.codeplex.com/svn | C# | 304 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
24
                    
25using System;
                    
26using GSF.IO;
                    
                
crt0.s git://github.com/gilligan/snesdev.git | Assembly | 585 lines
                    
24; program. The machine code program will then start the machine language
                    
25; code in bank 0, which will initialize the system by copying stuff from
                    
26; the system bank, and start the application.
                    
44; into another. but also because we want to save memory, and because of
                    
45; this, we will use the system memory ($00-$3FF) for initialization stuff
                    
46; that is overwritten later.
                    
57;------------------------------------------------------------------------------
                    
58; A table that contains values that must be transfered from the system zero
                    
59; page into out zero page. Contains pairs of bytes, first one is the address
                    
59; page into out zero page. Contains pairs of bytes, first one is the address
                    
60; in the system ZP, second one is our ZP address. The table goes into page 2,
                    
61; but is declared here, because it is needed earlier.
                    
90
                    
91entry:  php
                    
92        pha
                    
                
GitRepo.php git://github.com/kbjr/Git.php.git | PHP | 630 lines
                    
1<?php
                    
2
                    
198		 * putenv, and call proc_open with env=null to inherit the reset
                    
199		 * of the system.
                    
200		 *
                    
                
comment.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 358 lines
                    
1<?php
                    
2/**
                    
218        $post['cmt_path'] = post_get_path($post['listid'],$post['path'], C('CMT-Path'));
                    
219        $guide = system_category_guide($post['listid']);
                    
220        $title = sprintf(__('Comment: %s'), $post['title']);
                    
221        // ????
                    
222        $html = tpl_loadfile(ABS_PATH.'/'.system_themes_path().'/'.esc_html(C('TPL-Comment')));
                    
223        // ??????
                    
273                // ????
                    
274                system_porcess_create($block['tag']);
                    
275
                    
                
URLEncodedTest.java git://pkgs.fedoraproject.org/jetty | Java | 257 lines
                    
9// The Apache License v2.0 is available at
                    
10// http://www.opensource.org/licenses/apache2.0.php
                    
11// You may elect to redistribute this code under either of these licenses. 
                    
35        /*
                    
36         * Uncomment to set setting the System property to something other than the default of UTF-8.
                    
37         * Beware however that you will have to @Ignore all the other tests other than testUrlEncodedStream!
                    
38         
                    
39            System.setProperty("org.eclipse.jetty.util.UrlEncoding.charset", StringUtil.__ISO_8859_1);
                    
40         */
                    
182            UrlEncoded.decodeTo(in, m, charsets[i][1], -1,-1);
                    
183            System.err.println(m);
                    
184            assertEquals(i+" stream length",4,m.size());
                    
207    @Test
                    
208    public void testCharsetViaSystemProperty ()
                    
209    throws Exception 
                    
                
PropertyPathOperators.cs https://hg.codeplex.com/dotnetrdf | C# | 326 lines
                    
25
                    
26using System;
                    
27using System.Collections.Generic;
                    
27using System.Collections.Generic;
                    
28using System.Linq;
                    
29using VDS.RDF.Query.Paths;
                    
147            SparqlQuery q = new SparqlQuery();
                    
148            q.RootGraphPattern = this.ToGraphPattern();
                    
149            q.Optimise();
                    
156        /// <returns></returns>
                    
157        public abstract GraphPattern ToGraphPattern();
                    
158
                    
                
zend_virtual_cwd.h git://github.com/php/php-src.git | C Header | 383 lines
                    
131#ifdef ZEND_WIN32
                    
132# define php_sys_stat_ex php_win32_ioutil_stat_ex
                    
133# define php_sys_stat php_win32_ioutil_stat
                    
133# define php_sys_stat php_win32_ioutil_stat
                    
134# define php_sys_lstat php_win32_ioutil_lstat
                    
135# define php_sys_fstat php_win32_ioutil_fstat
                    
135# define php_sys_fstat php_win32_ioutil_fstat
                    
136# define php_sys_readlink php_win32_ioutil_readlink
                    
137# define php_sys_symlink php_win32_ioutil_symlink
                    
137# define php_sys_symlink php_win32_ioutil_symlink
                    
138# define php_sys_link php_win32_ioutil_link
                    
139#else
                    
139#else
                    
140# define php_sys_stat stat
                    
141# define php_sys_lstat lstat
                    
                
calendartype_test.php git://github.com/moodle/moodle.git | PHP | 329 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17/**
                    
18 * This file contains the class that handles testing the calendar type system.
                    
19 *
                    
29// The test calendar type.
                    
30require_once($CFG->dirroot . '/calendar/tests/calendartype_test_example.php');
                    
31
                    
32// Used to test the dateselector elements.
                    
33require_once($CFG->libdir . '/form/dateselector.php');
                    
34require_once($CFG->libdir . '/form/datetimeselector.php');
                    
36// Used to test the user datetime profile field.
                    
37require_once($CFG->dirroot . '/user/profile/lib.php');
                    
38require_once($CFG->dirroot . '/user/profile/definelib.php');
                    
38require_once($CFG->dirroot . '/user/profile/definelib.php');
                    
39require_once($CFG->dirroot . '/user/profile/index_field_form.php');
                    
40
                    
                
class.DNSEventObserver.php http://scalr.googlecode.com/svn/ | PHP | 289 lines
                    
1<?php
                    
2	class DNSEventObserver extends EventObserver
                    
67					{									
                    
68						$this->DB->Execute("REPLACE INTO records SET zoneid='{$zone['id']}', rtype='A', ttl=?, rvalue=?, rkey=?, issystem='1'",
                    
69						array($record_attrs[2], $record_attrs[1], $record_attrs[0]));
                    
72					// Remove old role-slave and mysql-slave records for this instance
                    
73					$this->DB->Execute("DELETE FROM records WHERE zoneid=? AND rtype='A' AND rkey LIKE '%-slave' AND (rvalue=? OR rvalue=?) AND issystem='1'",
                    
74						array($zone['id'], $instanceinfo["internal_ip"], $instanceinfo['external_ip'])
                    
145	        	$this->DB->Execute("DELETE FROM records WHERE rtype='A' AND 
                    
146	            	issystem='1' AND 
                    
147	            	zoneid='{$zone['id']}'"
                    
196						rtype='A' AND 
                    
197						issystem='1' AND 
                    
198						zoneid=? AND 
                    
266										
                    
267					$this->Logger->info(new FarmLogMessage($farminfo['id'], "Adding system A records to zone {$zone['zone']}"));
                    
268					
                    
                
WrapperTypeDef.cpp https://Phalanger.svn.codeplex.com/svn | C++ | 443 lines
                    
13//
                    
14// ExtSupport - substitute for php4ts.dll/php5ts.dll
                    
15//
                    
27using namespace System::IO;
                    
28using namespace System::Xml;
                    
29using namespace System::Xml::XPath;
                    
30using namespace System::Text;
                    
31using namespace System::Collections::Generic;
                    
32
                    
32
                    
33using namespace PHP::Core;
                    
34using namespace PHP::ExtManager;
                    
88					ParameterTypeInfo ^info = Params[i]->Clone();
                    
89					info->ParamType = (info->IsOut ? PHP::Core::PhpReference::typeid : Object::typeid);
                    
90
                    
                
paperclip.rb git://github.com/stevenbristol/lovd-by-less.git | Ruby | 244 lines
                    
1# Paperclip allows file attachments that are stored in the filesystem. All graphical
                    
2# transformations are done using the Graphics/ImageMagick command line utilities and
                    
8# Copyright:: Copyright (c) 2008 thoughtbot, inc.
                    
9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10#
                    
45    # * image_magick_path: Defines the path at which to find the +convert+ and +identify+ 
                    
46    #   programs if they are not visible to Rails the system's search path. Defaults to 
                    
47    #   nil, which uses the first executable found in the search path.
                    
72    # +has_attached_file+ gives the class it is called on an attribute that maps to a file. This
                    
73    # is typically a file stored somewhere on the filesystem and has been uploaded by a user. 
                    
74    # The attribute returns a Paperclip::Attachment object which handles the management of
                    
95    #   geometry strings at the ImageMagick website 
                    
96    #   (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip
                    
97    #   also adds the "#" option (e.g. "50x50#"), which will resize the image to fit maximally 
                    
110    #   directly. If you are using capistrano for deployment, a good idea would be to 
                    
111    #   make a symlink to the capistrano-created system directory from inside your app's 
                    
112    #   public directory.
                    
                
mac-install.html git://pkgs.fedoraproject.org/fontforge | HTML | 258 lines
                    
39    <LI>
                    
40      <A HREF="nix-install.html">Installing on a unix/linux system</A>
                    
41    <LI>
                    
63  <P>
                    
64  You must insure that you have the the X11 server installed on your system.
                    
65  <DL>
                    
70	<LI>
                    
71	  Open the Install DVD that came with your system.
                    
72	<LI>
                    
93		<P>
                    
94		This release of fontforge tries to check for a buggy system, and if it thinks
                    
95		it is running on one, then it will refuse to use Pango and Cairo.
                    
102		You probably need to install X11 <STRONG>before</STRONG> you upgrade the
                    
103		Operating System.</TD>
                    
104	    </TR>
                    
                
validation.php https://bitbucket.org/ghanu/chope.git | PHP | 170 lines
                    
1<?php
                    
2
                    
133                    'name'   => 'الإسم',
                    
134                    'system' => 'نظام؟',
                    
135                ],
                    
                
adminPage.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 356 lines
                    
30    function adminPage(){
                    
31        $this->system = &$GLOBALS['system'];
                    
32        $smarty = &$this->system->loadModel('system/frontend');
                    
81                }else{
                    
82                    $GLOBALS['user_timezone'] = $this->system->getConf('system.timezone.default');
                    
83                }
                    
121    function output(){
                    
122        $output = &$this->system->loadModel('system/frontend');
                    
123        $output->clear_all_assign();
                    
146
                    
147        $smarty = &$this->system->loadModel('system/frontend');
                    
148        $smarty->clear_all_assign();
                    
335
                    
336        if(isset($this->system->ErrorSet['errorno']) && isset($this->_errAction[$this->system->ErrorSet['errorno']])){
                    
337            $this->splash('failed',$this->_errAction[$this->system->ErrorSet['errorno']],$errstr);
                    
                
ShortenUrlService.cs https://newsgatorconnectors.svn.codeplex.com/svn | C# | 217 lines
                    
26
                    
27using System;
                    
28using System.Collections.Generic;
                    
131                {
                    
132                    text = ExecuteGet(text, words, "http://is.gd/api.php?longurl={0}");
                    
133                    break;
                    
136                {
                    
137                    text = ExecuteGet(text, words, "http://tinyurl.com/api-create.php?url={0}");
                    
138                    break;
                    
                
HeaderFrame.cs https://openpdc.svn.codeplex.com/svn | C# | 237 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
23
                    
24using System;
                    
25using System.Runtime.Serialization;
                    
                
PageCacheTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 250 lines
                    
1<?php
                    
2
                    
4 * @file
                    
5 * Definition of Drupal\system\Tests\Bootstrap\PageCacheTest.
                    
6 */
                    
7
                    
8namespace Drupal\system\Tests\Bootstrap;
                    
9
                    
25   */
                    
26  public static $modules = array('test_page_test', 'system_test');
                    
27
                    
38
                    
39    \Drupal::config('system.site')
                    
40      ->set('name', 'Drupal')
                    
51  function testPageCacheTags() {
                    
52    $config = \Drupal::config('system.performance');
                    
53    $config->set('cache.page.use_internal', 1);
                    
                
eventslib_test.php git://github.com/moodle/moodle.git | PHP | 304 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17/**
                    
18 * Tests events subsystem.
                    
19 *
                    
20 * @package    core_event
                    
21 * @subpackage phpunit
                    
22 * @copyright  2007 onwards Martin Dougiamas (http://dougiamas.com)
                    
59        $handlers = array();
                    
60        require(__DIR__.'/fixtures/events.php');
                    
61        $this->assertCount($dbcount, $handlers, 'Equal number of handlers in file and db: %s');
                    
                
SystemController.php git://github.com/drupal/drupal.git | PHP | 330 lines
                    
12use Drupal\Core\Url;
                    
13use Drupal\system\SystemManager;
                    
14use Symfony\Component\DependencyInjection\ContainerInterface;
                    
23   *
                    
24   * @var \Drupal\system\SystemManager
                    
25   */
                    
58   *
                    
59   * @param \Drupal\system\SystemManager $systemManager
                    
60   *   System manager service.
                    
70  public function __construct(SystemManager $systemManager, ThemeAccessCheck $theme_access, FormBuilderInterface $form_builder, ThemeHandlerInterface $theme_handler, MenuLinkTreeInterface $menu_link_tree) {
                    
71    $this->systemManager = $systemManager;
                    
72    $this->themeAccess = $theme_access;
                    
228        $theme->incompatible_region = !isset($theme->info['regions']['content']);
                    
229        $theme->incompatible_php = version_compare(phpversion(), $theme->info['php']) < 0;
                    
230        // Confirm that all base themes are available.
                    
                
CTimestamp.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 378 lines
                    
1<?php
                    
2/**
                    
14 * Part of this class was adapted from the ADOdb Date Library
                    
15 * {@link http://phplens.com/phpeverywhere/ ADOdb abstraction library}.
                    
16 * The original source code was released under both BSD and GNU Lesser GPL
                    
24 * For {@link getTimestamp}, because it is merely a wrapper of
                    
25 * {@link mktime http://php.net/manual/en/function.mktime.php}, it may still
                    
26 * be subject to the limit of timestamp range on certain platforms. Please refer
                    
26 * be subject to the limit of timestamp range on certain platforms. Please refer
                    
27 * to the PHP manual for more information.
                    
28 *
                    
29 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
                    
30 * @version $Id: CTimestamp.php 242 2012-03-29 15:18:01Z mole1230 $
                    
31 * @package system.utils
                    
360	 * Generates a timestamp.
                    
361	 * This is the same as the PHP function {@link mktime http://php.net/manual/en/function.mktime.php}.
                    
362	 * @param integer $hr hour
                    
                
UncaughtExceptionTest.php git://github.com/drupal/drupal.git | PHP | 281 lines
                    
2
                    
3namespace Drupal\system\Tests\System;
                    
4
                    
38    $settings_php .= "\ninclude_once 'core/modules/system/src/Tests/Bootstrap/ErrorContainer.php';\n";
                    
39    $settings_php .= "\ninclude_once 'core/modules/system/src/Tests/Bootstrap/ExceptionContainer.php';\n";
                    
40    file_put_contents($settings_filename, $settings_php);
                    
173
                    
174    $this->expectedExceptionMessage = 'Argument 1 passed to Drupal\system\Tests\Bootstrap\ErrorContainer::Drupal\system\Tests\Bootstrap\{closur';
                    
175    $this->drupalGet('');
                    
215        // We can not carry out this test.
                    
216        $this->pass('Unable to run \Drupal\system\Tests\System\UncaughtExceptionTest::testLostDatabaseConnection for this database type.');
                    
217        return;
                    
258
                    
259    $expected_path = \Drupal::root() . '/core/modules/system/tests/modules/error_service_test/src/MonkeysInTheControlRoom.php';
                    
260    $expected_line = 59;
                    
                
TaskViewController.m https://github.com/intabulas/ipivotal.git | Objective C | 305 lines
                    
6//	This software is released under the terms of the BSD License.
                    
7//	http://www.opensource.org/licenses/bsd-license.php
                    
8//
                    
70    [super viewDidLoad];    
                    
71 //   self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCompose target:self action:@selector(composeReply:)];
                    
72    [self setTitle:kLabelTasks];
                    
                
config.php https://bitbucket.org/seezoo/seezoo/ | PHP | 330 lines
                    
25*/
                    
26$config['index_page'] = "index.php";
                    
27
                    
83|--------------------------------------------------------------------------
                    
84| Enable/Disable System Hooks
                    
85|--------------------------------------------------------------------------
                    
143| invoke your controllers and its functions:
                    
144| example.com/index.php?c=controller&m=function
                    
145|
                    
183| Leave this BLANK unless you would like to set something other than the default
                    
184| system/logs/ folder.  Use a full server path with trailing slash.
                    
185|
                    
328/* End of file config.php */
                    
329/* Location: ./system/application/config/config.php */
                    
330
                    
                
ProductTrackingUserControl.ascx.cs https://newsmileproject.svn.codeplex.com/svn | C# | 317 lines
                    
1using System;
                    
2using System.Web.UI;
                    
2using System.Web.UI;
                    
3using System.Web.UI.WebControls;
                    
4using System.Web.UI.WebControls.WebParts;
                    
7using Microsoft.SharePoint.WebControls;
                    
8using System.Data;
                    
9using SIMSProject.Common;
                    
70            productAddingControl.parentPage = this;
                    
71            this.phProductAddingModule.Controls.Add(productAddingControl);
                    
72        }
                    
                
helper.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 530 lines
                    
1<?php
                    
2/**
                    
288	 *								Defaults to md5-hex.
                    
289	 * @param	boolean	$show_encrypt  Some password systems prepend the kind of
                    
290	 *								encryption to the crypted password ({SHA},
                    
476		$stat = @stat(__FILE__);
                    
477		if (empty($stat) || !is_array($stat)) $stat = array(php_uname());
                    
478
                    
                
osx-build.sh git://pkgs.fedoraproject.org/inkscape | Shell | 411 lines
                    
5# Please see
                    
6#  http://wiki.inkscape.org/wiki/index.php?title=CompilingMacOsX
                    
7# for more complete information
                    
167export CPPFLAGS="-I$LIBPREFIX/include"
                    
168# export CPPFLAGS="-I$LIBPREFIX/include -I /System/Library/Frameworks/Carbon.framework/Versions/Current/Headers"
                    
169export LDFLAGS="-L$LIBPREFIX/lib"
                    
355	Architecture  $TARGETARCH
                    
356Build system information:
                    
357	OS X Version  $OSXVERSION
                    
                
RemoteOutputAdapter.cs https://openHistorian.svn.codeplex.com/svn | C# | 340 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
23
                    
24using System;
                    
25using System.Collections.Generic;
                    
25using System.Collections.Generic;
                    
26using System.ComponentModel;
                    
27using System.Text;
                    
                
00_Server_Requirements.md git://github.com/silverstripe/sapphire.git | Markdown | 185 lines
                    
21
                    
22Use [phpinfo()](http://php.net/manual/en/function.phpinfo.php) to inspect your configuration.
                    
23
                    
91Files in this state get served by SilverStripe rather than your webserver.
                    
92Since the framework uses [PHP streams](https://www.php.net/manual/en/ref.stream.php),
                    
93this allows serving of files larger than your PHP memory limit.
                    
94Please be aware that streaming operations don't count towards
                    
95PHP's [max_execution_time](https://www.php.net/manual/en/function.set-time-limit.php),
                    
96which can risk exhaustion of web worker pools for long-running downloads.
                    
156
                    
157## PHP Requirements for older SilverStripe releases {#php-support}
                    
158
                    
158
                    
159SilverStripe's PHP support has changed over time and if you are looking to upgrade PHP on your SilverStripe site, this table may be of use:
                    
160
                    
                
introduction.md git://github.com/joomla/joomla-platform.git | Markdown | 361 lines
                    
28---------------- | -----------------------
                    
29JPATH\_PLATFORM  | The path to the Joomla Platform (where `loader.php` or `platform.php` is located, usually in the same folder as `import.php`).
                    
30IS\_WIN          | A boolean value, true if the platform is Microsoft Windows based.
                    
40
                    
41If required, the bootstrap file (`import.php`) can be ignored and a custom
                    
42solution can be implemented (such as if the core `JFactory` class is to be
                    
167
                    
168must be found in `BASE_PATH/chess/piece/pawn.php` or in `BASE_PATH/Chess/Piece/Pawn.php`.
                    
169
                    
202```php
                    
203<?php
                    
204namespace Chess\Piece;
                    
345// This must be done before the core class is loaded.
                    
346JLoader::register('JDatabase', '/custom/path/database_driver.php', true);
                    
347```
                    
                
server.conf.in http://openqwaq.googlecode.com/svn/trunk/ | Autoconf | 218 lines
                    
70# Where should bad Forum Page requests be redirected?
                    
71# OpenQwaq.SP.Web.invalidRequest: http://www.openqwaq.com/support/fp-info.php
                    
72# OpenQwaq.SP.Web.unauthorized: http://www.openqwaq.com/trial/visitor.php
                    
81
                    
82# What icons are to be used?  Can be a file system path or a URL.
                    
83# Note that  when used in conjunction with OpenQwaq.SP.Web.HTTPSHostName, the
                    
83# Note that  when used in conjunction with OpenQwaq.SP.Web.HTTPSHostName, the
                    
84# value should be either a file system path or an HTTPS url. Otherwise some 
                    
85# browsers may give "broken key" warnings.  
                    
118OpenQwaq.SP.ClientActivityLog.StatisticsQuery: INSERT INTO client_performance_data_log (datetime_created, client_version, realm_name, username, status, performance_data) VALUES (%date, %version, %org, %user, 0, %contents)
                    
119OpenQwaq.SP.ClientActivityLog.SysInfoQuery: INSERT INTO client_system_information_log (datetime_created, client_version, realm_name, username, status, system_information) VALUES (%date, %version, %org, %user, 0, %contents)
                    
120
                    
189OpenQwaq.Coal.CreateOrgScript: /home/openqwaq/server/templates/mkorg.sh
                    
190# OpenQwaq.Coal.GetMyOwnUrl: http://<your_TES>/phpapp/signup.php
                    
191# OpenQwaq.Coal.BuyNowUrl: http://<your_TES>/buy
                    
                
HistorianFixedSizeCombinedEncoding`2.cs https://openHistorian.svn.codeplex.com/svn | C# | 230 lines
                    
10////
                    
11////      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12////
                    
23
                    
24//using System;
                    
25//using GSF.IO;
                    
                
Database.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 450 lines
                    
1<?php
                    
2
                    
10/**
                    
11 * Primary front-controller for the database system.
                    
12 *
                    
50  /**
                    
51   * A processed copy of the database connection information from settings.php.
                    
52   *
                    
260   * Under normal circumstances the preferred way to specify database
                    
261   * credentials is via settings.php. However, this method allows them to be
                    
262   * added at arbitrary times, such as during unit tests, when connecting to
                    
272   *   The database connection information, as it would be defined in
                    
273   *   settings.php. Note that the structure of this array will depend on the
                    
274   *   database driver it is connecting to.
                    
353   * @param $key
                    
354   *   The database connection key, as specified in settings.php. The default is
                    
355   *   "default".
                    
                
config.php http://creative-codon.googlecode.com/svn/trunk/ | PHP | 363 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
23|
                    
24| Typically this will be your index.php file, unless you've renamed it to
                    
25| something else. If you are using mod_rewrite to remove the page set this
                    
86|--------------------------------------------------------------------------
                    
87| Enable/Disable System Hooks
                    
88|--------------------------------------------------------------------------
                    
149| invoke your controllers and its functions:
                    
150| example.com/index.php?c=controller&m=function
                    
151|
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
                
update_7.inc git://pkgs.fedoraproject.org/drupal6-drush | Pascal | 318 lines
                    
5 *   Update.php for provisioned sites.
                    
6 *   This file is a derivative of the standard drupal update.php,
                    
7 *   which has been modified to allow being run from the command
                    
20 * Returns (and optionally stores) extra requirements that only apply during
                    
21 * particular parts of the update.php process.
                    
22 */
                    
117
                    
118  // Check the system module and update.php requirements only.
                    
119  $requirements = system_requirements('update');
                    
155  require_once DRUPAL_ROOT . '/includes/install.inc';
                    
156  require_once DRUPAL_ROOT . '/modules/system/system.install';
                    
157
                    
159  include_once DRUPAL_ROOT . '/includes/module.inc';
                    
160  $module_list['system']['filename'] = 'modules/system/system.module';
                    
161  module_list(TRUE, FALSE, FALSE, $module_list);
                    
                
AzureStorage.php https://code.google.com/p/celebrio/ | PHP | 252 lines
                    
1<?php
                    
2
                    
2
                    
3namespace Celebrio\FileSystem\Drivers;
                    
4
                    
6
                    
7use Celebrio\FileSystem\Drivers\IDriver;
                    
8use Celebrio\FileSystem\DataFile;
                    
8use Celebrio\FileSystem\DataFile;
                    
9use Celebrio\FileSystem\File;
                    
10use Celebrio\WindowsAzure\AzureStorage\AzureStorageBLOB;
                    
17 * This is general azure driver for those who doesn't want to use our File 
                    
18 * System but want use Azure Storage for thier own needs.
                    
19 * Two opnions are posible. The simplier one is to store data to only one 
                    
55        } catch(Microsoft_Http_Client_Adapter_Exception $e) {
                    
56            throw new \Albireo\FileSystem\IOException("Connection failed. Check internet connection.", 0, $e);
                    
57        } catch(\Microsoft_WindowsAzure_Exception $e) {
                    
                
WeatherConditions.php https://code.google.com/p/celebrio/ | PHP | 457 lines
                    
1<?php
                    
2/**
                    
327        $partPath = $scheme . "://" . $host . $scriptPath;
                    
328        $path = $partPath . "systemApps/celebrioweather/images/";
                    
329        $linksToImages = array(
                    
                
FileEngineTest.php git://github.com/cakephp/cakephp.git | PHP | 393 lines
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
15 * @package       Cake.Test.Case.Cache.Engine
                    
15 * @package       Cake.Test.Case.Cache.Engine
                    
16 * @since         CakePHP(tm) v 1.2.0.5434
                    
17 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
88
                    
89		$data = 'this is a test of the emergency broadcasting system';
                    
90		$result = Cache::write('test', $data, 'file_test');
                    
                
IsolatedQueueFileBacked`1.cs https://openHistorian.svn.codeplex.com/svn | C# | 358 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
23
                    
24using System;
                    
25using System.IO;
                    
                
class-wcs-report-cache-manager.php https://bitbucket.org/tristangemus/tribe-demo.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
104		// Add system status information.
                    
105		add_filter( 'wcs_system_status', array( $this, 'add_system_status_info' ) );
                    
106	}
                    
148
                    
149				// PHP doesn't support a "next 4am" time format equivalent, so we need to manually handle getting 4am from earlier today (which will always happen when this is run after 4am and before midnight in the site's timezone)
                    
150				if ( $cache_update_timestamp <= gmdate( 'U' ) ) {
                    
216		// Load report class dependencies
                    
217		require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
                    
218		require_once( WC()->plugin_path() . '/includes/admin/reports/class-wc-admin-report.php' );
                    
325	/**
                    
326	 * Add system status information to include failure count and cache update status.
                    
327	 *
                    
333	 */
                    
334	public function add_system_status_info( $data ) {
                    
335		$cache_enabled = ( 'yes' === get_option( 'woocommerce_subscriptions_cache_updates_enabled', 'yes' ) );
                    
                
fill.php http://marcoratto.googlecode.com/svn/trunk/ | PHP | 337 lines
                    
110    array_shift($argv);
                    
111    Log4GPHP::print_r(Log4GPHP::$TRACE, $argv);    
                    
112
                    
141
                    
142Log4GPHP::setLoggingLevel(Log4GPHP::$TRACE);
                    
143Log4GPHP::info("argc=$argc");
                    
149$params = parseArgs($argv);
                    
150Log4GPHP::print_r(Log4GPHP::$INFO, $params);
                    
151
                    
180if (array_key_exists('gb', $params)) {
                    
181	Log4GPHP::info("-gb setted");
                    
182	$multiplier = 1024 * 1024 * 1024;	
                    
221
                    
222// Log4GPHP::print_r(Log4GPHP::$INFO, $listOfFiles);
                    
223
                    
                
Base64Coder.java http://eztally.googlecode.com/svn/trunk/ | Java | 308 lines
                    
9//  AL, Apache License, http://www.apache.org/licenses
                    
10//  BSD, BSD License, http://www.opensource.org/licenses/bsd-license.php
                    
11//
                    
33	// The line separator string of the operating system.
                    
34	private static final String systemLineSeparator = System
                    
35			.getProperty("line.separator");
                    
81	public static String encodeLines(byte[] in) {
                    
82		return encodeLines(in, 0, in.length, 76, systemLineSeparator);
                    
83	}
                    
                
file_helper.php git://github.com/philsturgeon/codeigniter-restserver.git | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
109 * Deletes all files contained in the supplied directory path.
                    
110 * Files must be writable or owned by the system in order to be deleted.
                    
111 * If the second parameter is set to TRUE, any directories contained
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
478/* End of file file_helper.php */
                    
479/* Location: ./system/helpers/file_helper.php */
                    
                
Blog_Categories.cs https://omniportal.svn.codeplex.com/svn | C# | 446 lines
                    
6 * This code is protected under the Common Public License Version 1.0
                    
7 * The license in its entirety at <http://opensource.org/licenses/cpl.php>
                    
8 * 
                    
17///////////////////////////////////////////////////////////////////////////
                    
18using System;
                    
19using System.Data;
                    
19using System.Data;
                    
20using System.Data.SqlTypes;
                    
21using System.Data.SqlClient;
                    
                
RealTimeStatistics.cs https://openpdc.svn.codeplex.com/svn | C# | 246 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
23
                    
24using System;
                    
25using System.Collections.Generic;
                    
25using System.Collections.Generic;
                    
26using System.IO;
                    
27using System.Net;
                    
169                                string quality;
                    
170                                if (DateTime.TryParseExact(element.Element("Time").Value, "yyyy-MM-dd HH:mm:ss.fff", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out sourceDateTime) && DateTime.UtcNow.Subtract(sourceDateTime).TotalSeconds > 30)
                    
171                                    quality = "Unknown";
                    
184                                    {
                    
185                                        if (DateTime.TryParseExact(element.Element("Time").Value, "yyyy-MM-dd HH:mm:ss.fff", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out sourceDateTime) && DateTime.UtcNow.Subtract(sourceDateTime).TotalSeconds > 30)
                    
186                                            streamStatistic.StatusColor = "Gray";
                    
                
FilterNumericTest.php git://github.com/drupal/drupal.git | PHP | 516 lines
                    
1<?php
                    
2
                    
14
                    
15  public static $modules = ['system'];
                    
16
                    
                
WalkPushConnection.cs git://pkgs.fedoraproject.org/monodevelop | C# | 458 lines
                    
7accompanies this distribution, is reproduced below, and is
                    
8available at http://www.eclipse.org/org/documents/edl-v10.php
                    
9
                    
43
                    
44using System.Collections.Generic;
                    
45using System.IO;
                    
218
                    
219			/// <exception cref="System.IO.IOException"></exception>
                    
220			protected internal override void WriteFile(string file, byte[] content)
                    
                
class.baseobject.php https://code.google.com/p/movabletype/ | PHP | 388 lines
                    
1<?php
                    
2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd.
                    
5#
                    
6# $Id: class.baseobject.php 5325 2010-02-23 10:44:56Z takayama $
                    
7
                    
10 */
                    
11require_once('adodb.inc.php');
                    
12require_once('adodb-active-record.inc.php');
                    
12require_once('adodb-active-record.inc.php');
                    
13require_once('adodb-exceptions.inc.php');
                    
14
                    
59            'page_layout' => 'vchar',
                    
60            'include_system' => 'vchar',
                    
61            'include_cache' => 'vinteger'
                    
307            if (empty($blog)) {
                    
308                require_once('class.mt_blog.php');
                    
309                $blog = new Blog;
                    
                
myocamlbuild.ml git://github.com/mirage/dyntype.git | OCaml | 492 lines
                    
3module OASISGettext = struct
                    
4# 21 "/Users/avsm/.opam/system/build/oasis.0.3.0/src/oasis/OASISGettext.ml"
                    
5
                    
26module OASISExpr = struct
                    
27# 21 "/Users/avsm/.opam/system/build/oasis.0.3.0/src/oasis/OASISExpr.ml"
                    
28
                    
118module BaseEnvLight = struct
                    
119# 21 "/Users/avsm/.opam/system/build/oasis.0.3.0/src/base/BaseEnvLight.ml"
                    
120
                    
216module MyOCamlbuildFindlib = struct
                    
217# 21 "/Users/avsm/.opam/system/build/oasis.0.3.0/src/plugins/ocamlbuild/MyOCamlbuildFindlib.ml"
                    
218
                    
219  (** OCamlbuild extension, copied from 
                    
220    * http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild
                    
221    * by N. Pouillard and others
                    
                
fltk-1.1.9-4.patch https://octave.svn.sourceforge.net/svnroot/octave | Patch | 274 lines
                    
120@@ -25,6 +25,8 @@
                    
121 #      http://www.fltk.org/str.php
                    
122 #
                    
163-Fl_get_key.o:	../FL/mac.H ../FL/win32.H
                    
164-Fl_get_system_colors.o:	../FL/mac.H ../FL/win32.H
                    
165-Fl_Gl_Choice.o:	../FL/mac.H ../FL/win32.H
                    
210+Fl_get_key.o:	$(SRCDIR)/FL/mac.H $(SRCDIR)/FL/win32.H
                    
211+Fl_get_system_colors.o:	$(SRCDIR)/FL/mac.H $(SRCDIR)/FL/win32.H
                    
212+Fl_Gl_Choice.o:	$(SRCDIR)/FL/mac.H $(SRCDIR)/FL/win32.H
                    
                
ShareLinks.cs https://dotnetage.svn.codeplex.com/svn | C# | 227 lines
                    
2//  Dual licensed under the MIT and GPL licenses:
                    
3//  http://www.opensource.org/licenses/mit-license.php
                    
4//  http://www.gnu.org/licenses/gpl.html
                    
4//  http://www.gnu.org/licenses/gpl.html
                    
5using System;
                    
6using System.Collections.Generic;
                    
6using System.Collections.Generic;
                    
7using System.Linq;
                    
8using System.Text;
                    
8using System.Text;
                    
9using System.Web.WebPages;
                    
10using System.IO;
                    
10using System.IO;
                    
11using System.Web;
                    
12using System.Web.WebPages.Scope;
                    
                
ThemeManager.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 307 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin;
                    
6
                    
22/**
                    
23 * phpMyAdmin theme manager
                    
24 */
                    
36    /**
                    
37     * @var string file-system path to the theme folder
                    
38     * @access protected
                    
219        // force a change of a dummy session variable to avoid problems
                    
220        // with the caching of phpmyadmin.css.php
                    
221        $GLOBALS['config']->set('theme-update', $themeId);
                    
                
admin.inc git://github.com/drupal/drupal.git | Pascal | 323 lines
                    
1<?php
                    
2
                    
53  // won't reuse them), but in our case we need to use the same ID from request
                    
54  // to request so that the wrapper can be recognized by the AJAX system and
                    
55  // its content can be dynamically updated. So instead, we will keep track of
                    
74    // Add an after-build function that inserts a wrapper around the region of
                    
75    // the form that needs to be refreshed by AJAX (so that the AJAX system can
                    
76    // detect and dynamically update it). This is done in #after_build because
                    
                
media_edit.php http://you.googlecode.com/svn/trunk/ | PHP | 367 lines
                    
14		<?php
                    
15		 	$thumb_dir = (Settings::get('system_thumb_list')) ? Settings::get('system_thumb_list') : 'thumb';
                    
16		 ?>
                    
98				<?php if ($d = @getimagesize($path)) :?>
                    
99					<?php echo($d['0']) ?>x<?php echo($d['1']) ?>
                    
100				<?php endif ;?>
                    
184									?>
                    
185									<input type="checkbox" id= "cf_<?= $extend_field['id_extend_field'].$i ?>" name="cf_<?= $extend_field['id_extend_field'] ?>[]" value="<?= $key ?>" <?php if (in_array($key, $saved)) :?>checked="checked" <?php endif ;?>><label for="cf_<?= $extend_field['id_extend_field'] . $i ?>"><?= $value ?></label></input><br/>
                    
186									<?php
                    
206									?>
                    
207									<input type="radio" id= "cf_<?= $extend_field['id_extend_field'].$i ?>" name="cf_<?= $extend_field['id_extend_field'] ?>" value="<?= $key ?>" <?php if ($extend_field['content'] == $key) :?> checked="checked" <?php endif ;?>><label for="cf_<?= $extend_field['id_extend_field'] . $i ?>"><?= $value ?></label></input><br/>
                    
208									<?php
                    
229									?>
                    
230									<option value="<?= $key ?>" <?php if (in_array($key, $saved)) :?> selected="selected" <?php endif ;?>><?= $value ?></option>
                    
231									<?php
                    
                
ScreenCapture.vb https://hg.codeplex.com/bookmarksavevb6 | Visual Basic | 255 lines
                    
1Imports System
                    
2Imports System.Runtime.InteropServices
                    
2Imports System.Runtime.InteropServices
                    
3Imports System.Drawing
                    
4Imports System.Drawing.Imaging
                    
10    ''' From a post here
                    
11    ''' http://www.vbforums.com/showthread.php?t=385497
                    
12    ''' Adapted and extended slightly by Darin Higgins Oct, 2011
                    
                
update.authorize.inc git://github.com/drupal/drupal.git | Pascal | 315 lines
                    
1<?php
                    
2
                    
4 * @file
                    
5 * Callbacks and related functions invoked by authorize.php to update projects
                    
6 * on the Drupal site. We use the Batch API to actually update each individual
                    
12/**
                    
13 * Callback invoked by authorize.php to update existing projects.
                    
14 *
                    
15 * @param $filetransfer
                    
16 *   The FileTransfer object created by authorize.php for use during this
                    
17 *   operation.
                    
47  batch_set($batch);
                    
48  // Invoke the batch via authorize.php.
                    
49  system_authorized_batch_process();
                    
52/**
                    
53 * Callback invoked by authorize.php to install a new project.
                    
54 *
                    
                
CTimestamp.php http://yii-doctrine2.googlecode.com/svn/trunk/ | PHP | 377 lines
                    
1<?php
                    
2/**
                    
14 * Part of this class was adapted from the ADOdb Date Library
                    
15 * {@link http://phplens.com/phpeverywhere/ ADOdb abstraction library}.
                    
16 * The original source code was released under both BSD and GNU Lesser GPL
                    
24 * For {@link getTimestamp}, because it is merely a wrapper of
                    
25 * {@link mktime http://php.net/manual/en/function.mktime.php}, it may still
                    
26 * be subject to the limit of timestamp range on certain platforms. Please refer
                    
26 * be subject to the limit of timestamp range on certain platforms. Please refer
                    
27 * to the PHP manual for more information.
                    
28 *
                    
29 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
                    
30 * @version $Id: CTimestamp.php 3204 2011-05-05 21:36:32Z alexander.makarow $
                    
31 * @package system.utils
                    
359	 * Generates a timestamp.
                    
360	 * This is the same as the PHP function {@link mktime http://php.net/manual/en/function.mktime.php}.
                    
361	 * @param integer $hr hour
                    
                
SelectChannelConnector.java git://pkgs.fedoraproject.org/jetty | Java | 330 lines
                    
9// The Apache License v2.0 is available at
                    
10// http://www.opensource.org/licenses/apache2.0.php
                    
11// You may elect to redistribute this code under either of these licenses.
                    
131    {
                    
132        request.setTimeStamp(System.currentTimeMillis());
                    
133        endpoint.setMaxIdleTime(_maxIdleTime);
                    
                
shopCore.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 417 lines
                    
33
                    
34        if(file_exists(BASE_DIR.'/upgrade.php')){ //review: ????
                    
35            header('HTTP/1.1 503 Service Unavailable',true,503);
                    
35            header('HTTP/1.1 503 Service Unavailable',true,503);
                    
36            require(CORE_DIR.'/func_ext.php');
                    
37            $smarty = &$this->loadModel('system/frontend');
                    
95            if(!function_exists('shop_match_network')){
                    
96                require(CORE_INCLUDE_DIR.'/shop/core.match_network.php');
                    
97            }
                    
98            if(!function_exists('remote_addr')){
                    
99                require(CORE_DIR.'/func_ext.php');
                    
100            }
                    
152            $cookieLife = $this->getConf('system.cookie.life');
                    
153            $this->_cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/';
                    
154            $this->_cookieLife = $cookieLife;
                    
                
atom.php http://textpattern.googlecode.com/svn/development/4.x/ | PHP | 435 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * Textpattern Content Management System
                    
5 * http://textpattern.com
                    
393{
                    
394    if (version_compare(phpversion(), "5.0.0", ">=")) {
                    
395        $str =  html_entity_decode($toUnicode, ENT_QUOTES, "UTF-8");
                    
                
tpl_modules_products_all_listing.php http://daocart.googlecode.com/svn/trunk/ | PHP | 216 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Loaded automatically by index.php?main_page=products_all.<br />
                    
6 * Displays listing of All Products
                    
7 *
                    
8 * @package templateSystem
                    
9 * @copyright Copyright 2003-2007 Zen Cart Development Team
                    
11 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
12 * @version $Id: tpl_modules_products_all_listing.php 6096 2007-04-01 00:43:21Z ajeh $
                    
13 */
                    
18          </tr>
                    
19<?php
                    
20  $group_id = zen_get_configuration_key_value('PRODUCT_ALL_LIST_GROUP_ID');
                    
117?>
                    
118          <tr class="<?php echo ((int)($row_counter/2)==($row_counter/2)) ? 'productListing-even' : 'productListing-odd'; ?>">
                    
119            <td width="<?php echo IMAGE_PRODUCT_ALL_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center">
                    
                
setup-mysql.sql http://snowcms.googlecode.com/svn/trunk/ | SQL | 206 lines
                    
16##
                    
17# Holds all the PHP errors which have occurred!
                    
18##
                    
112
                    
113INSERT INTO `{db->prefix}permissions` (`group_id`, `permission`, `status`) VALUES('member', 'manage_system_settings', 0),('member', 'manage_themes', 0),('member', 'update_system', 0),('member', 'view_error_log', 0);
                    
114INSERT INTO `{db->prefix}permissions` (`group_id`, `permission`, `status`) VALUES('member', 'add_new_member', 0),('member', 'manage_members', 0),('member', 'search_members', 0),('member', 'manage_member_settings', 0);
                    
115INSERT INTO `{db->prefix}permissions` (`group_id`, `permission`, `status`) VALUES('member', 'manage_permissions', 0),('member', 'add_plugins', 0),('member', 'manage_plugins', 0),('member', 'manage_plugin_settings', 0);
                    
116INSERT INTO `{db->prefix}permissions` (`group_id`, `permission`, `status`) VALUES('member', 'view_other_profiles', 0),('member', 'edit_other_profiles', 0),('guest', 'manage_system_settings', -1),('guest', 'manage_themes', -1);
                    
117INSERT INTO `{db->prefix}permissions` (`group_id`, `permission`, `status`) VALUES('guest', 'update_system', -1),('guest', 'view_error_log', -1),('guest', 'add_new_member', -1),('guest', 'manage_members', -1);
                    
171
                    
172INSERT INTO `{db->prefix}tasks` (`task_name`, `file`, `location`, `func`) VALUES('plugins_update_check', 'admin/admin_plugins_manage.php', 'coredir', 'admin_plugins_check_updates');
                    
173INSERT INTO `{db->prefix}tasks` (`task_name`, `file`, `location`, `func`) VALUES('themes_update_check', 'admin/admin_themes_manage.php', 'coredir', 'admin_themes_check_updates');
                    
173INSERT INTO `{db->prefix}tasks` (`task_name`, `file`, `location`, `func`) VALUES('themes_update_check', 'admin/admin_themes_manage.php', 'coredir', 'admin_themes_check_updates');
                    
174INSERT INTO `{db->prefix}tasks` (`task_name`, `file`, `location`, `func`) VALUES('system_update_check', 'admin/admin_update.php', 'coredir', 'admin_update_check');
                    
175
                    
                
TestCommon.php git://github.com/zendframework/zf2.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
16
                    
17abstract class TestCommon extends \PHPUnit_Framework_TestCase
                    
18{
                    
35
                    
36        // Set timezone to avoid "It is not safe to rely on the system's timezone settings."
                    
37        // message if timezone is not set within php.ini
                    
                
SparqlEngineDb.php https://github.com/EOL/eol_php_code.git | PHP | 391 lines
                    
1<?php
                    
2require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngine.php';
                    
2require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngine.php';
                    
3require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/Offsetter.php';
                    
4require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/QuerySimplifier.php';
                    
4require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/QuerySimplifier.php';
                    
5require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/ResultConverter.php';
                    
6require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/SqlGenerator.php';
                    
6require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/SqlGenerator.php';
                    
7require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/SqlMerger.php';
                    
8
                    
11*   Generates SQL statements to directly query the database,
                    
12*   letting the database system do all the hard work like
                    
13*   selecting, joining, filtering and ordering results.
                    
167    {
                    
168        require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/PreparedStatement.php';
                    
169        require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/Preparator.php';
                    
                
WinLIRC.htm http://autohotkey-chinese.googlecode.com/svn/trunk/ | HTML | 299 lines
                    
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                    
7<link rel="alternate" type="application/rss+xml" title="AutoHotkey Forum RSS" href="/forum/rss.php">
                    
8<link href="/docs/css/default.css" rel="stylesheet" type="text/css">
                    
39<em>; October 5, 2005:</em>
                    
40<em>; - Eliminated Winsock warning dialog &quot;10054&quot; upon system shutdown/logoff.</em>
                    
41<em>; - Added option &quot;DelayBetweenButtonRepeats&quot; to throttle the repeat speed.</em>
                    
232            return 1
                    
233        if WinsockError &lt;&gt; 10054 <em>; WSAECONNRESET, which happens when WinLIRC closes via system shutdown/logoff.</em>
                    
234            <em>; Since it's an unexpected error, report it.  Also exit to avoid infinite loop.</em>
                    
                
MainForm.cs https://simpleproxyswitch.svn.codeplex.com/svn | C# | 296 lines
                    
16//
                    
17// Published under the MIT License. See license.rtf or http://www.opensource.org/licenses/mit-license.php.
                    
18//
                    
20
                    
21using System;
                    
22using System.Collections.Generic;
                    
22using System.Collections.Generic;
                    
23using System.ComponentModel;
                    
24using System.Linq;
                    
24using System.Linq;
                    
25using System.Reflection;
                    
26using System.Windows.Forms;
                    
51      /// <summary>
                    
52      /// Raises the <see cref="E:System.Windows.Forms.Form.Load"/> event.
                    
53      /// </summary>
                    
                
phodevi_disk.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 374 lines
                    
1<?php
                    
2
                    
7	Copyright (C) 2008 - 2012, Michael Larabel
                    
8	phodevi_disk.php: The PTS Device Interface object for the system disk(s)
                    
9
                    
74		{
                    
75			if(($x = strrpos($mounts, PHP_EOL, (0 - strlen($mounts) + $p))) !== false)
                    
76			{
                    
79
                    
80			if(($x = strpos($mounts, PHP_EOL)) !== false)
                    
81			{
                    
96					'mount-point' => $mounts[1],
                    
97					'file-system' => $mounts[2],
                    
98					'mount-options' => $mounts[3]
                    
116			// TODO: Support reading non-SATA drives and more than one drive
                    
117			$capacity = phodevi_osx_parser::read_osx_system_profiler('SPSerialATADataType', 'Capacity');
                    
118			$model = phodevi_osx_parser::read_osx_system_profiler('SPSerialATADataType', 'Model');
                    
                
pts_result_file_writer.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 202 lines
                    
145		$this->xml_writer->addXmlNode('PhoronixTestSuite/System/Identifier', $this->result_identifier);
                    
146		$this->xml_writer->addXmlNode('PhoronixTestSuite/System/Hardware', phodevi::system_hardware(true));
                    
147		$this->xml_writer->addXmlNode('PhoronixTestSuite/System/Software', phodevi::system_software(true));
                    
157		$system_user = $result_file->get_system_user();
                    
158		$system_date = $result_file->get_system_date();
                    
159		$pts_version = $result_file->get_system_pts_version();
                    
169				// Prevents any information from being repeated
                    
170				$this_hash = md5($associated_identifiers[$i] . ';' . $system_hardware[$i] . ';' . $system_software[$i] . ';' . $system_date[$i]);
                    
171
                    
182					$this->xml_writer->addXmlNode('PhoronixTestSuite/System/User', $system_user[$i]);
                    
183					$this->xml_writer->addXmlNode('PhoronixTestSuite/System/TimeStamp', $system_date[$i]);
                    
184					$this->xml_writer->addXmlNode('PhoronixTestSuite/System/TestClientVersion', $pts_version[$i]);
                    
190						// USER_PTS_CORE_VERSION is set by OpenBenchmarking.org so if the requested client is old, don't write this data to send back to their version
                    
191						$this->xml_writer->addXmlNodeWNE('PhoronixTestSuite/System/JSON', ($system_json[$i] ? json_encode($system_json[$i]) : null));
                    
192					}
                    
                
OnlineTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: OnlineTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
25 */
                    
26require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'OnlineTestCase.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Ldap/Node.php';
                    
31
                    
62
                    
63    public function testChangeReadOnlySystemAttributes()
                    
64    {
                    
                
Install.md https://bitbucket.org/wez/mtrack/ | Markdown | 363 lines
                    
31% cd $MTRACK
                    
32% php bin/init.php
                    
33```
                    
101% cd $MTRACK
                    
102% php bin/init.php --vardir $VARDIR
                    
103```
                    
188; svnlook = /opt/msys/3rdParty/bin/svnlook
                    
189php = "C:\Program Files (x86)\PHP\php.exe"
                    
190diff3 = "C:\Program Files (x86)\diff\diff3.exe"
                    
203```
                    
2040,10,20,30,40,50 * * * * nice su nobody -c "php $MTRACK/bin/update-search-index.php ; php $MTRACK/bin/send-notifications.php" >/dev/null 2>/dev/null
                    
205```
                    
216while it is running).  You need not worry about this; it is normal.  Both
                    
217`update-search-index.php` and `send-notifications.php` are intelligent
                    
218enough to only allow 1 instance to run concurrently, so even if there is a
                    
                
ConnectionUnitTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 296 lines
                    
1<?php
                    
2
                    
4 * @file
                    
5 * Contains Drupal\system\Tests\Database\ConnectionUnitTest.
                    
6 */
                    
7
                    
8namespace Drupal\system\Tests\Database;
                    
9
                    
                
video_s3.inc git://pkgs.fedoraproject.org/drupal6-video | Pascal | 321 lines
                    
1<?php
                    
2/*
                    
6 */
                    
7class video_s3 implements filesystem_interface {
                    
8
                    
38   * Interface Implementations
                    
39   * @see sites/all/modules/video/includes/filesystem_interface#get_name()
                    
40   */
                    
46   * Interface Implementations
                    
47   * @see sites/all/modules/video/includes/filesystem_interface#get_help()
                    
48   */
                    
54   * Interface Implementations
                    
55   * @see sites/all/modules/video/includes/filesystem_interface#get_value()
                    
56   */
                    
230    // Check for CURL
                    
231    if (!extension_loaded('curl') && !@dl(PHP_SHLIB_SUFFIX == 'so' ? 'curl.so' : 'php_curl.dll')) {
                    
232      form_set_error('amazon_s3', t('The CURL extension is not loaded.'));
                    
                
User_agent.php git://github.com/imagecms/ImageCMS.git | PHP | 550 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
87	{
                    
88		if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'))
                    
89		{
                    
89		{
                    
90			include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php');
                    
91		}
                    
91		}
                    
92		elseif (is_file(APPPATH.'config/user_agents.php'))
                    
93		{
                    
549/* End of file User_agent.php */
                    
550/* Location: ./system/libraries/User_agent.php */
                    
                
sites_add.tpl http://scalr.googlecode.com/svn/ | Smarty Template | 197 lines
                    
131	<tr>
                    
132		<td><input {if $zone.records[id].issystem == 1 && $zone.allow_manage_system_records == 0}disabled{/if} type="text" class="text" name="zone[records][{$zone.records[id].id}][rkey]" size=30 value="{$zone.records[id].rkey}"></td>
                    
133		<td><input {if $zone.records[id].issystem == 1 && $zone.allow_manage_system_records == 0}disabled{/if} type="text" class="text" name="zone[records][{$zone.records[id].id}][ttl]" size=6 value="{$zone.records[id].ttl}"></td>
                    
134		<td>IN</td>
                    
135		<td><select {if $zone.records[id].issystem == 1 && $zone.allow_manage_system_records == 0}disabled{/if} class="text" name="zone[records][{$zone.records[id].id}][rtype]" onchange="CheckPrAdd('ed', '{$zone.records[id].id}', this.value)">
                    
136				<option {if $zone.records[id].rtype == "A"}selected{/if} value="A">A</option>
                    
144		<td colspan="2"> 
                    
145			<input {if $zone.records[id].issystem == 1 && $zone.allow_manage_system_records == 0}disabled{/if} onclick="{literal}if (this.value == 'priority') { this.value=''; } {/literal}" id="ed_{$zone.records[id].id}" size="5" style="display:{if $zone.records[id].rtype != "MX" && $zone.records[id].rtype != "SRV"}none{/if};" type="text" class="text" name="zone[records][{$zone.records[id].id}][rpriority]" value="{$zone.records[id].rpriority}" size=30> 
                    
146			<input {if $zone.records[id].issystem == 1 && $zone.allow_manage_system_records == 0}disabled{/if} onclick="{literal}if (this.value == 'weight') { this.value=''; } {/literal}" id="ed_{$zone.records[id].id}_weight" size="5" style="display:{if $zone.records[id].rtype != "SRV"}none{/if};" type="text" class="text" name="zone[records][{$zone.records[id].id}][rweight]" value="{$zone.records[id].rweight}" size=30>
                    
146			<input {if $zone.records[id].issystem == 1 && $zone.allow_manage_system_records == 0}disabled{/if} onclick="{literal}if (this.value == 'weight') { this.value=''; } {/literal}" id="ed_{$zone.records[id].id}_weight" size="5" style="display:{if $zone.records[id].rtype != "SRV"}none{/if};" type="text" class="text" name="zone[records][{$zone.records[id].id}][rweight]" value="{$zone.records[id].rweight}" size=30>
                    
147			<input {if $zone.records[id].issystem == 1 && $zone.allow_manage_system_records == 0}disabled{/if} onclick="{literal}if (this.value == 'port') { this.value=''; } {/literal}" id="ed_{$zone.records[id].id}_port" size="5" style="display:{if $zone.records[id].rtype != "SRV"}none{/if};" type="text" class="text" name="zone[records][{$zone.records[id].id}][rport]" value="{$zone.records[id].rport}" size=30>
                    
148			
                    
148			
                    
149			<input {if $zone.records[id].issystem == 1 && $zone.allow_manage_system_records == 0}disabled{/if} class="text" type=text id="zone[records][{$zone.records[id].id}][rvalue]" name="zone[records][{$zone.records[id].id}][rvalue]" size=30 value="{$zone.records[id].rvalue}">
                    
150			<span style="display:{if $zone.records[id].rtype != "TXT"}none{/if};vertical-align:middle;" id="spf_link_{$zone.records[id].id}">
                    
                
cmpiOSBase_LocalLoopbackPortProvider.c git://pkgs.fedoraproject.org/sblim-cmpi-network | C | 362 lines
                    
10 * You can obtain a current copy of the Eclipse Public License from
                    
11 * http://www.opensource.org/licenses/eclipse-1.0.php
                    
12 *
                    
164
                    
165  _check_system_key_value_pairs( _broker, cop, "SystemCreationClassName", "SystemName", &rc );
                    
166  if( rc.rc != CMPI_RC_OK ) { 
                    
                
Session.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 458 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: Session.php 3917 2009-01-21 03:06:22Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
80			// the session cookie(s) can be written.
                    
81			Event::add('system.send_headers', array($this, 'write_close'));
                    
82
                    
275	/**
                    
276	 * Runs the system.session_write event, then calls session_write_close.
                    
277	 *
                    
288			// Run the events that depend on the session being open
                    
289			Event::run('system.session_write');
                    
290
                    
                
DefaultExecutor.java http://owasp-esapi-java.googlecode.com/svn/trunk/ | Java | 235 lines
                    
5 * Enterprise Security API (ESAPI) project. For details, please see
                    
6 * <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
                    
7 *
                    
36 * Reference implementation of the Executor interface. This implementation is very restrictive. Commands must exactly
                    
37 * equal the canonical path to an executable on the system. 
                    
38 * 
                    
61    private Codec codec = null;
                    
62    //private final int MAX_SYSTEM_COMMAND_LENGTH = 2500;
                    
63    
                    
68    private DefaultExecutor() {
                    
69		if ( System.getProperty("os.name").indexOf("Windows") != -1 ) {
                    
70			logger.warning( Logger.SECURITY_SUCCESS, "Using WindowsCodec for Executor. If this is not running on Windows this could allow injection" );
                    
80     */
                    
81    public ExecuteResult executeSystemCommand(File executable, List params) throws ExecutorException {
                    
82    	File workdir = ESAPI.securityConfiguration().getWorkingDirectory();
                    
                
OnlineTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 290 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: OnlineTest.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
25 */
                    
26require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'OnlineTestCase.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Ldap/Node.php';
                    
31
                    
62
                    
63    public function testChangeReadOnlySystemAttributes()
                    
64    {
                    
                
file.test.php git://github.com/klevo/wildflower.git | PHP | 355 lines
                    
9 *
                    
10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
18 * @package       cake
                    
19 * @subpackage    cake.tests.cases.libs.cache
                    
20 * @since         CakePHP(tm) v 1.2.0.5434
                    
21 * @version       $Revision$
                    
29if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
                    
30	define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
                    
31}
                    
100
                    
101		$data = 'this is a test of the emergency broadcasting system';
                    
102		$result = Cache::write('test', $data);
                    
                
mychannel_add.htm http://jqbird.googlecode.com/svn/trunk/ | HTML | 287 lines
                    
26	{
                    
27		$Obj("addcon").value = "archives_add.php";
                    
28		$Obj("editcon").value = "archives_edit.php";
                    
28		$Obj("editcon").value = "archives_edit.php";
                    
29		$Obj("mancon").value = "content_list.php";
                    
30		$Obj("useraddcon").value = "archives_add.php";
                    
30		$Obj("useraddcon").value = "archives_add.php";
                    
31		$Obj("usereditcon").value = "archives_edit.php";
                    
32		$Obj("usermancon").value = "content_list.php";
                    
35	{
                    
36		$Obj("addcon").value = "archives_sg_add.php";
                    
37		$Obj("editcon").value = "archives_sg_edit.php";
                    
37		$Obj("editcon").value = "archives_sg_edit.php";
                    
38		$Obj("mancon").value = "content_sg_list.php";
                    
39		$Obj("useraddcon").value = "archives_sg_add.php";
                    
                
index2cca0.html https://bitbucket.org/jspurr/bam-brown.git | HTML | 204 lines
                    
3		
                    
4<!-- Mirrored from www.brownalumnimagazine.com/index2.php?option=com_content&task=view&id=3398&pop=1&page=0&Itemid=32 by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 08 Feb 2018 02:50:56 GMT -->
                    
5<head>
                    
9<meta name="keywords" content="" />
                    
10<script src="mambots/system/rokbox/mootools-release-1.11.js" type="text/javascript"></script>
                    
11<script type="text/javascript" src="mambots/system/rokbox/rokbox.js"></script>
                    
11<script type="text/javascript" src="mambots/system/rokbox/rokbox.js"></script>
                    
12<link href="mambots/system/rokbox/themes/light/rokbox-style.css" rel="stylesheet" type="text/css" />
                    
13<script type="text/javascript" src="mambots/system/rokbox/themes/light/rokbox-config.js"></script>
                    
101}
                    
102</script><div class="sociotags"><div class="sociotag_header createdate">Tag it:</div><div class="sociotag"><a href="http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F&amp;title=Brown+Alumni+Magazine-On+the+Beat" target="_blank" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F&amp;title=Brown+Alumni+Magazine-On+the+Beat', 'Delicious','toolbar=no,width=700,height=600,resizable=yes'); return false;"><img src="mambots/content/sociotag/images/icons/delicious.16px.gif" border="0" alt="Delicious" title="Delicious" /></a></div><div class="sociotag"><a href="http://www.furl.net/storeIt.jsp?t=Brown+Alumni+Magazine-On+the+Beat&amp;u=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F" target="_blank" onclick="window.open('http://www.furl.net/storeIt.jsp?t=Brown+Alumni+Magazine-On+the+Beat&amp;u=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F', 'Furl it!','toolbar=no,width=700,height=600,resizable=yes'); return false;"><img src="mambots/content/sociotag/images/icons/furl.16px.gif" border="0" alt="Furl it!" title="Furl it!" /></a></div><div class="sociotag"><a href="http://www.spurl.net/spurl.php?v=3&amp;title=Brown+Alumni+Magazine-On+the+Beat&amp;url=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F" target="_blank" onclick="window.open('http://www.spurl.net/spurl.php?v=3&amp;title=Brown+Alumni+Magazine-On+the+Beat&amp;url=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F', 'Spurl','toolbar=no,width=700,height=600,resizable=yes'); return false;"><img src="mambots/content/sociotag/images/icons/spurl.16px.gif" border="0" alt="Spurl" title="Spurl" /></a></div><div class="sociotag"><a href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F&amp;h=Brown+Alumni+Magazine-On+the+Beat" target="_blank" onclick="window.open('http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F&amp;h=Brown+Alumni+Magazine-On+the+Beat', 'NewsVine','toolbar=no,width=700,height=600,resizable=yes'); return false;"><img src="mambots/content/sociotag/images/icons/newsvine.png" border="0" alt="NewsVine" title="NewsVine" /></a></div><div class="sociotag"><a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F&amp;title=Brown+Alumni+Magazine-On+the+Beat" target="_blank" onclick="window.open('http://reddit.com/submit?url=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F&amp;title=Brown+Alumni+Magazine-On+the+Beat', 'Reddit','toolbar=no,width=700,height=600,resizable=yes'); return false;"><img src="mambots/content/sociotag/images/icons/reddit.png" border="0" alt="Reddit" title="Reddit" /></a></div><div class="sociotag"><a href="http://digg.com/submit?url=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F" target="_blank" onclick="window.open('http://digg.com/submit?url=http%3A%2F%2Fwww.brownalumnimagazine.com%2Fcontent%2Fview%2F3398%2F40%2F', 'Digg','toolbar=no,width=800,height=600,resizable=yes,scrollbars=yes'); return false;"><img src="mambots/content/sociotag/images/icons/digg.16px.gif" border="0" alt="Digg" title="Digg" /></a></div></div><div class="sociotag_seperator"></div><div class="bodytext"> <p>
                    
103In most stories about men who suffer midlife crises, husbands leave
                    
186</p>
                    
187</div><br clear="all"/><br /><br /><br /><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div align="left" class='commenttop'>Be the first to comment on this article</div></td><td><div align='right' ></div></td></tr></table><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div align="right" class='commentbottom'></div></td></tr></table><p><script language="Javascript">  function x () {    return;  }  function ac_smilie(thesmile) {    document.akocommentform.comment.value += " "+thesmile+" ";    document.akocommentform.comment.focus();  }  function validate(){    if (document.akocommentform.comment.value==''){      alert("You did not enter a comment.");    } else if (document.akocommentform.acname.value==''){      alert("You did not enter a name."); 	 }else {      document.akocommentform.action = 'index-2.html';      document.akocommentform.submit();    }  }</script><div id='commentform'><table align='center' width='100%' cellpadding='2' cellspacing='0' border='0'><form name='akocommentform' action='http://www.brownalumnimagazine.com/index.php' target=_top method='post'><input type='hidden' name='option' value='com_akocomment'><input type='hidden' name='acitemid' value='40'><input type='hidden' name='contentid' value='3398'><input type='hidden' name='func' value='entry'><tr><td>Name and Class Year:</td><td><input type='text' name='acname' style='width:75%;' class='inputbox' value='' alt='Name and Class Year:' title='Name and Class Year:' ><input type='hidden' name='iduser' value='0'></td></tr><tr><td>Email:</td><td><input type='text' name='email' style='width:75%;' class='inputbox' alt='Email:' title='Email:' ></td></tr><tr><td valign='top'>Comment:<br /><br /></td><td valign='top'><textarea style='width:75%;' rows='8' name='comment' class='inputbox' wrap='virtual' title='Comment:'></textarea></td></tr><tr><td width='125' align='left'>Code:<span class='small'>*</span></td><td valign='absmiddle' style='vertical-align:middle'><input type='text' name='akocode' maxlength='5' style='width:60px;vertical-align:middle;' class='inputbox' alt='Enter the code shown' title='Enter the code shown' > <img src='components/com_akocomment/img1439.png?bgc=CCFFCC&amp;fc=999900&amp;lc=FFCC00&amp;bc=FFCC00' border='0' title='Enter this code in the left field' alt='Code' style='vertical-align:middle'/></td></tr><tr><td><input type='hidden' name='subscribe' id='subscribe' value='0'></td><td align='left'><input type='button' name='send' value='Send' class='button' onClick='validate()' alt='Send' title='Send' ></td></tr></form></table></p><div id='footerform'></div></div>			</td>
                    
188		</tr>
                    
                
NodeTypeTest.php git://github.com/drupal/drupal.git | PHP | 249 lines
                    
1<?php
                    
2
                    
241        ':link' => Url::fromRoute('node.type_add')->toString()
                    
242      ]), 'Empty text when there are no content types in the system is correct.');
                    
243
                    
                
cli.php https://bitbucket.org/cmwdosp/cmwbb3.git | PHP | 176 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* This file is part of the phpBB Forum Software package.
                    
5*
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
13
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
62	'CLI_DESCRIPTION_INCREMENT_CONFIG'			=> 'Increments a configuration option’s integer value',
                    
63	'CLI_DESCRIPTION_LIST_EXTENSIONS'			=> 'Lists all extensions in the database and on the filesystem.',
                    
64
                    
143
                    
144	// In all the case %1$s is the logical name of the file and %2$s the real name on the filesystem
                    
145	// eg: big_image.png (2_a51529ae7932008cf8454a95af84cacd) generated.
                    
                
BinaryChunkQueue.cs https://Phalanger.svn.codeplex.com/svn | C# | 396 lines
                    
1using System;
                    
2using System.Collections.Generic;
                    
2using System.Collections.Generic;
                    
3using System.Linq;
                    
4using System.Text;
                    
4using System.Text;
                    
5using PHP.Core;
                    
6using System.Diagnostics;
                    
7
                    
8namespace PHP.Library.Zlib
                    
9{
                    
                
GlobalScope.cs https://Phalanger.svn.codeplex.com/svn | C# | 506 lines
                    
5using System.Dynamic;
                    
6using System.Linq.Expressions;
                    
7using PHP.Core.Reflection;
                    
233        {
                    
234            result = PhpVariable.Unwrap(PhpVariable.Dereference(Context.Call(memberName, null, null, wrapArgs(args))));
                    
235            return true;
                    
345            Context.Stack.AddFrame(wrapArgs(args));
                    
346            result = PhpVariable.Unwrap(PhpVariable.Dereference(Operators.InvokeStaticMethod(type, binder.Name, null, null, Context)));
                    
347            return true;
                    
363
                    
364            result = PhpVariable.Unwrap(PhpVariable.Dereference(Operators.GetStaticProperty(type, binder.Name, null, Context, false)));
                    
365            return true;
                    
492            {
                    
493                PhpException.Throw(PhpError.Error, String.Format( PHP.Core.Localizations.Strings.constant_redefined, type.MakeFullName() + Name.ClassMemberSeparator + binder.Name));
                    
494                return true;
                    
                
OEmbedFormatter.php git://github.com/drupal/drupal.git | PHP | 316 lines
                    
1<?php
                    
2
                    
27 * @internal
                    
28 *   This is an internal part of the oEmbed system and should only be used by
                    
29 *   oEmbed-related code in Drupal core.
                    
                
Client.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
26 */
                    
27require_once 'Zend/Http/Client.php';
                    
28
                    
35/**
                    
36 * Introspects remote servers using the XML-RPC de facto system.* methods
                    
37 * @see Zend_XmlRpc_Client_ServerIntrospection
                    
38 */
                    
39require_once 'Zend/XmlRpc/Client/ServerIntrospection.php';
                    
40
                    
118     */
                    
119    protected $_skipSystemLookup = false;
                    
120
                    
305    {
                    
306        if (!$this->skipSystemLookup() && ('system.' != substr($method, 0, 7))) {
                    
307            // Ensure empty array/struct params are cast correctly
                    
                
 

Source

Language