PageRenderTime 256ms queryTime 21ms sortTime 35ms getByIdsTime 31ms findMatchingLines 28ms

100+ results results for 'php glob' (256 ms)

Not the results you expected?
css.js git://github.com/cliftonc/calipso.git | JavaScript | 455 lines
                    
6 * Licensed under the MIT License at:
                    
7 * 		http://www.opensource.org/licenses/mit-license.php
                    
8 *
                    
10
                    
11(function (global) {
                    
12
                    
44 *
                    
45 * Global configuration options:
                    
46 *
                    
101		// doc will be undefined during a build
                    
102		doc = global.document,
                    
103		// find the head element and set it to it's standard property if nec.
                    
                
wikiparser_test.php git://github.com/moodle/moodle.git | PHP | 247 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
20 * @package   mod_wiki
                    
21 * @category  phpunit
                    
22 * @copyright 2009 Marc Alier, Jordi Piguillem marc.alier@upc.edu
                    
35
                    
36global $CFG;
                    
37require_once($CFG->dirroot . '/mod/wiki/parser/parser.php');
                    
91        $input = '<h1>Code &amp; Test</h1>';
                    
92        $output = '<h3><a name="toc-1"></a>Code &amp; Test <a href="edit.php?pageid=&amp;section=Code+%26amp%3B+Test" '.
                    
93            'class="wiki_edit_section">[edit]</a></h3>' . "\n";
                    
94        $toc = '<div class="wiki-toc"><p class="wiki-toc-title">Table of contents</p><p class="wiki-toc-section-1 '.
                    
95            'wiki-toc-section">1. <a href="#toc-1">Code &amp; Test <a href="edit.php?pageid=&amp;section=Code+%26amp%3B+'.
                    
96            'Test" class="wiki_edit_section">[edit]</a></a></p></div>';
                    
104        $input = '<h1>Another áéíóúç€ test</h1>';
                    
105        $output = '<h3><a name="toc-1"></a>Another áéíóúç€ test <a href="edit.php?pageid=&amp;section=Another+%C'.
                    
106            '3%A1%C3%A9%C3%AD%C3%B3%C3%BA%C3%A7%E2%82%AC+test" class="wiki_edit_section">[edit]</a></h3>' . "\n";
                    
                
AdminCarriers.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 298 lines
                    
1<?php
                    
2
                    
3/**
                    
4  * Carriers tab for admin panel, AdminCarriers.php
                    
5  * @category admin
                    
8  * @copyright PrestaShop
                    
9  * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
                    
10  * @version 1.3
                    
13
                    
14include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php');
                    
15
                    
21	{
                    
22		global $cookie;
                    
23
                    
48	{
                    
49		global $currentIndex, $cookie;
                    
50		parent::displayForm();
                    
                
admin.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 434 lines
                    
1<?php
                    
2/**
                    
14 */
                    
15//require_once dirname(__FILE__) . DS . 'factory.php';
                    
16
                    
18 * JFusion Admin class for Magento 1.1
                    
19 * For detailed descriptions on these functions please check the model.abstractadmin.php
                    
20 * @package JFusion_Magento
                    
48			$params = array();
                    
49			$params['database_host']  = (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->host[0]->data();
                    
50			$params['database_name']  = (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->dbname[0]->data();
                    
50			$params['database_name']  = (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->dbname[0]->data();
                    
51			$params['database_user']  = (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->username[0]->data();
                    
52			$params['database_password']= (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->password[0]->data();
                    
52			$params['database_password']= (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->password[0]->data();
                    
53			$params['database_prefix']  = (string)$xml->document->global[0]->resources[0]->db[0]->table_prefix[0]->data();
                    
54			$params['database_type']  = "mysql";
                    
                
tab-screen.css http://simpleinvoices.googlecode.com/svn/trunk/ | CSS | 793 lines
                    
64
                    
65/* GLOBALS & GENERAL CASES
                    
66-------------------------------------------------*/
                    
195
                    
196/* Old PHP Reports CSS  - uses class="reportTable" */
                    
197	
                    
216
                    
217/* New PHPreports CSS - uses ID="pg2" or "pg1"  - Although HEADER and FOOTER are used now instead of PAGE_LAYER, it is left as is for compatibility */
                    
218
                    
                
index.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 363 lines
                    
40
                    
41require_once('../../include/init.php');
                    
42require_once('../../include/timezones.php');
                    
61    }
                    
62  setcookie("SV_THEME", $user_theme, time() + 60*60*24*365, $GLOBALS['sys_url_topdir']);
                    
63
                    
179print $HTML->box_nextitem(utils_get_alt_row_color($i));
                    
180print '<a href="change.php?item=gpgkey">'._("Edit GPG Key").'</a>';
                    
181print '<p class="smaller">';
                    
213print $HTML->box_nextitem(utils_get_alt_row_color($i));
                    
214print '<a href="change.php?item=realname">'._("Change Real Name").'</a>';
                    
215print '<p class="smaller">'.sprintf(_("You are %s."), '<strong>'.$row_user['realname'].'</strong>').'</p>';
                    
325    {
                    
326      print utils_link($GLOBALS['sys_home'].'support/?group='.$GLOBALS['sys_unix_group_name'],
                    
327		       sprintf(_("%s administrators should be asked to take care of Savane CSS Guidelines, since it is the default theme"), $GLOBALS['sys_name']), "warn");
                    
                
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
                    
42	{
                    
43		global $langs, $conf;
                    
44
                    
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.
                    
                
index.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 548 lines
                    
43/* Check for config */
                    
44if ((!file_exists('admin/config.php')) or (filesize('admin/config.php') < 10)) {
                    
45	/* redirect to installer */
                    
69/* Prevent superglobal poisoning before extraction */
                    
70globalSec('Main index.php', 1);
                    
71/* Access to form vars if register globals is off */
                    
88	}
                    
89	/* New! Built in php function. Tell php what the server timezone is so that we can use php 5's rewritten time and date functions with the correct time and without error messages */
                    
90	date_default_timezone_set("$server_timezone");
                    
294			print $rel_path;
                    
295?>admin/jscript/public.js.php<?php
                    
296			if (isset($s)) {
                    
311		print $rel_path;
                    
312?>admin/themes/style.php?theme=<?php
                    
313		print $site_theme;
                    
                
HTMLDefinitionTest.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 348 lines
                    
1<?php
                    
2
                    
101
                    
102    function assertPurification_AllowedAttributes_global_style()
                    
103    {
                    
106
                    
107    function test_AllowedAttributes_global_preferredSyntax()
                    
108    {
                    
110        $this->config->set('HTML.AllowedAttributes', 'style');
                    
111        $this->assertPurification_AllowedAttributes_global_style();
                    
112    }
                    
113
                    
114    function test_AllowedAttributes_global_verboseSyntax()
                    
115    {
                    
117        $this->config->set('HTML.AllowedAttributes', '*@style');
                    
118        $this->assertPurification_AllowedAttributes_global_style();
                    
119    }
                    
                
grid.custom.js https://hg01.codeplex.com/razorpad | JavaScript | 0 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl-2.0.html
                    
9**/
                    
10/*global jQuery, $ */
                    
11
                    
                
SqlController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 324 lines
                    
1<?php
                    
2declare(strict_types=1);
                    
3
                    
4namespace PhpMyAdmin\Controllers;
                    
5
                    
5
                    
6use PhpMyAdmin\CheckUserPrivileges;
                    
7use PhpMyAdmin\Config\PageSettings;
                    
7use PhpMyAdmin\Config\PageSettings;
                    
8use PhpMyAdmin\Core;
                    
9use PhpMyAdmin\DatabaseInterface;
                    
9use PhpMyAdmin\DatabaseInterface;
                    
10use PhpMyAdmin\Html\Generator;
                    
11use PhpMyAdmin\Message;
                    
11use PhpMyAdmin\Message;
                    
12use PhpMyAdmin\ParseAnalyze;
                    
13use PhpMyAdmin\Response;
                    
                
Aggregation.php git://github.com/ruflin/Elastica.git | PHP | 471 lines
                    
1<?php
                    
2namespace Elastica\QueryBuilder\DSL;
                    
12use Elastica\Aggregation\GeohashGrid;
                    
13use Elastica\Aggregation\GlobalAggregation;
                    
14use Elastica\Aggregation\Histogram;
                    
237    /**
                    
238     * global aggregation.
                    
239     *
                    
239     *
                    
240     * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html
                    
241     *
                    
243     *
                    
244     * @return GlobalAggregation
                    
245     */
                    
245     */
                    
246    public function global_agg($name)
                    
247    {
                    
                
questiontype.php git://github.com/moodle/moodle.git | PHP | 284 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
27
                    
28require_once($CFG->dirroot . '/question/type/ddimageortext/questiontypebase.php');
                    
29
                    
58    public function save_question_options($formdata) {
                    
59        global $DB, $USER;
                    
60        $context = $formdata->context;
                    
146    public function move_files($questionid, $oldcontextid, $newcontextid) {
                    
147        global $DB;
                    
148        $fs = get_file_storage();
                    
170    protected function delete_files($questionid, $contextid) {
                    
171        global $DB;
                    
172        $fs = get_file_storage();
                    
                
write.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 284 lines
                    
17 */
                    
18global $file_lang_tran_no_comp;
                    
19$file_lang_tran_no_comp = array();
                    
33{
                    
34    global $module_name, $db, $language_array, $global_config, $include_lang, $lang_module, $file_lang_tran_no_comp, $array_lang_exit, $array_lang_no_check;
                    
35    list( $module, $admin_file, $langtype, $author_lang ) = $db->sql_fetchrow( $db->sql_query( "SELECT `module`, `admin_file`, `langtype`, `author_" . $dirlang . "` FROM `" . NV_LANGUAGE_GLOBALTABLE . "_file` WHERE `idfile` ='" . intval( $idfile ) . "'" ) );
                    
53        $include_lang = "";
                    
54        $modules_exit = nv_scandir( NV_ROOTDIR . "/modules", $global_config['check_module'] );
                    
55        
                    
73        {
                    
74            $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $module . ".php";
                    
75        }
                    
273    }
                    
274    include ( NV_ROOTDIR . "/includes/header.php" );
                    
275    echo nv_admin_theme( $contents );
                    
                
Context.cs http://flashdevelop.googlecode.com/svn/trunk/FD4/ | C# | 390 lines
                    
13
                    
14namespace PHPContext
                    
15{
                    
19        new static readonly protected Regex re_CMD_BuildCommand =
                    
20            new Regex("@php[\\s]+(?<params>.*)", RegexOptions.Compiled | RegexOptions.Multiline);
                    
21
                    
25        private ContextSettings langSettings;
                    
26        private List<InlineRange> phpRanges; // inlined PHP ranges in HTML
                    
27
                    
186            phpRanges = new List<InlineRange>();
                    
187            return PhpFilter.FilterSource(src, phpRanges);
                    
188        }
                    
197        {
                    
198            PhpFilter.FilterSource(model, phpRanges);
                    
199        }
                    
                
features.inc http://drawshield.googlecode.com/svn/trunk/ | PHP | 270 lines
                    
1<?php /* Copyright 2010 Karl R. Wilcox
                    
2
                    
16function get_features ( $feature_sets, &$node ) {
                    
17  global $dom;
                    
18  global $pending_items;
                    
                
MDB2Store.php http://hppg.googlecode.com/svn/trunk/ | PHP | 414 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
15
                    
16require_once 'lib/core/lhexternal/MDB2.php';
                    
17
                    
20 */
                    
21require_once 'lib/core/lhexternal/Auth/OpenID/Interface.php';
                    
22
                    
25 */
                    
26require_once 'lib/core/lhexternal/Auth/OpenID.php';
                    
27
                    
30 */
                    
31require_once 'lib/core/lhexternal/Auth/OpenID/Nonce.php';
                    
32
                    
                
jquery.blockUI.js http://vispell.googlecode.com/svn/trunk/ | JavaScript | 399 lines
                    
8 * Dual licensed under the MIT and GPL licenses:
                    
9 * http://www.opensource.org/licenses/mit-license.php
                    
10 * http://www.gnu.org/licenses/gpl.html
                    
23
                    
24// global $ methods for blocking/unblocking the entire page
                    
25$.blockUI   = function(opts) { install(window, opts); };
                    
                
FormOptionsHelper.php git://github.com/phpwax/phpwax.git | PHP | 273 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * @package PHP-Wax
                    
5 * @author Ross Riley
                    
10 */
                    
11if(!array_key_exists('COUNTRIES',$GLOBALS)) {
                    
12    $GLOBALS['COUNTRIES'] = 
                    
122	  if($with_label) $html.= $this->make_label($with_label);
                    
123	  $html.= $this->options_for_select($GLOBALS['COUNTRIES'], $options);
                    
124		return $html;
                    
                
actions.c git://github.com/DimaSmirnov/Archlinux-downgrader.git | C | 352 lines
                    
208    chunk.size = 0;
                    
209    curl_global_init(CURL_GLOBAL_ALL);
                    
210    curl = curl_easy_init();
                    
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);
                    
230    curl_easy_cleanup(curl);
                    
231    curl_global_cleanup();
                    
232    if(chunk.memory) free(chunk.memory);
                    
                
Bouncer.php git://github.com/znarf/Bouncer.git | PHP | 645 lines
                    
1<?php
                    
2
                    
211
                    
212        $request = Request::createFromGlobals();
                    
213        $request->setTrustedProxies(array('127.0.0.1'));
                    
560        else {
                    
561            // $this->error('No exit callable set. PHP exit construct will be used.');
                    
562            exit;
                    
                
function_view_log_test.php git://github.com/phpbb/phpbb.git | PHP | 424 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
26	{
                    
27		global $phpEx, $phpbb_dispatcher;
                    
28		$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
                    
157				'viewpost'			=> '',
                    
158				'viewlogs'			=> append_sid("phpBB/mcp.$phpEx", 'i=logs&amp;mode=topic_logs&amp;t=56'),
                    
159			),
                    
373	{
                    
374		global $cache, $db, $user, $auth, $phpbb_log, $phpbb_dispatcher, $phpbb_root_path, $phpEx;
                    
375
                    
416
                    
417		$phpbb_log = new \phpbb\log\log($db, $user, $auth, $phpbb_dispatcher, $phpbb_root_path, 'adm/', $phpEx, LOG_TABLE);
                    
418
                    
                
FieldInstancePerFormDisplayTest.php git://github.com/drupal/drupal.git | PHP | 185 lines
                    
1<?php
                    
2
                    
35      'required' => FALSE,
                    
36      'global_settings' => array(),
                    
37    ),
                    
47      'required' => FALSE,
                    
48      'global_settings' => array(),
                    
49    ),
                    
59      'required' => FALSE,
                    
60      'global_settings' => array(),
                    
61    ),
                    
71      'required' => FALSE,
                    
72      'global_settings' => array(),
                    
73    ),
                    
                
AdminCarts.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 286 lines
                    
1<?php
                    
2
                    
3/**
                    
4  * Customers tab for admin panel, AdminContacts.php
                    
5  * @category admin
                    
8  * @copyright PrestaShop
                    
9  * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
                    
10  * @version 1.3
                    
13
                    
14include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php');
                    
15
                    
44	{
                    
45		global $currentIndex, $cookie;
                    
46
                    
142									'product_mini_'.intval($product['id_product']).(isset($product['id_product_attribute']) ? '_'.intval($product['id_product_attribute']) : '').'.jpg', 45, 'jpg') : '--').'</td>
                    
143									<td><a href="index.php?tab=AdminCatalog&id_product='.$product['id_product'].'&updateproduct&token='.$tokenCatalog.'">
                    
144										<span class="productName">'.$product['name'].'</span><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();
                    
215$phplib = str_replace(".dll", ".lib", $phpdll);
                    
216copy("$build_dir/$phplib", "$dist_dir/dev/$phplib");
                    
217/* debug builds; copy the symbols too */
                    
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 */
                    
                
select_giomag.php http://gevion.googlecode.com/svn/trunk/ | PHP | 207 lines
                    
1<?php
                    
2/* $Id: select_giomag.php,v 1.16 2010/01/17 17:27:04 devincen Exp $
                    
24*/
                    
25require("../../library/include/datlib.inc.php");
                    
26$admin_aziend=checkAdmin();
                    
30    {
                    
31        global $gTables,$admin_aziend;
                    
32        $m=array();
                    
112                                     );
                    
113    header("Location: sent_print.php");
                    
114    exit;
                    
116
                    
117require("../../library/include/header.php");
                    
118$script_transl=HeadMain(0,array('calendarpopup/CalendarPopup'));
                    
                
permissions_phpbb.php http://twpug.googlecode.com/svn/trunk/ | PHP | 219 lines
                    
1<?php
                    
2if (empty($lang) || !is_array($lang))
                    
43*		'acl_bug_view'		=> array('lang' => 'Can view bug reports', 'cat' => 'bugs'),
                    
44*		'acl_bug_post'		=> array('lang' => 'Can post bugs', 'cat' => 'post'), // Using a phpBB category here
                    
45*	));
                    
166	'acl_m_warn'	=> array('lang' => '??????', 'cat' => 'misc'),
                    
167	'acl_m_ban'		=> array('lang' => '??????', 'cat' => 'misc'), // This moderator setting is only global (and not local)
                    
168));
                    
174	'acl_a_jabber'		=> array('lang' => '????Jabber??', 'cat' => 'settings'),
                    
175	'acl_a_phpinfo'		=> array('lang' => '????php??', 'cat' => 'settings'),
                    
176
                    
                
login.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 257 lines
                    
71    {
                    
72      fb(sprintf(_("Savane thinks your cookies are not activated for %s. To log-in, we need you to activate cookies in your web browser for this website. Please do so and click here:"), $sys_default_domain).' '.$GLOBALS['sys_https_url'].$GLOBALS['sys_home'].'account/login.php?uri='.$uri, 1);
                    
73    }
                    
108              setcookie('SV_THEME', $theme, time() + 60*60*24,
                    
109                $GLOBALS['sys_home'], $GLOBALS['sys_default_domain']);
                    
110            }
                    
132	      # Go there saying hello to your brother
                    
133	      header ("Location: ".$http."://".$GLOBALS['sys_brother_domain'].$GLOBALS['sys_home']."/account/login.php?session_uid=".user_getid()."&session_hash=".$GLOBALS['session_hash']."&cookie_for_a_year=$cookie_for_a_year&from_brother=1&login=1&stay_in_ssl=$stay_in_ssl&brotherhood=1&uri=".urlencode($uri));
                    
134	      exit;
                    
195	'<li class="boxitem">'._("Did you forget or misspell your password?").'<br />'.utils_link('lostpw.php', _("You can recover your password using the lost password form.")).'</li>'.
                    
196	'<li class="boxitemalt">'._("Still having trouble?").'<br />'.utils_link($GLOBALS['sys_home'].'support/?group='.$GLOBALS['sys_unix_group_name'],  _("Fill a support request.")).'</li>';
                    
197      print '</ul></div>';
                    
205}
                    
206print '<form action="'.$GLOBALS['sys_https_url'].$GLOBALS['sys_home'].'account/login.php" method="post">';
                    
207print '<input type="hidden" name="uri" value="'.htmlspecialchars($uri, ENT_QUOTES).'" />';
                    
                
XMemory_8hpp_source.html git://pkgs.fedoraproject.org/xqilla | HTML | 111 lines
                    
6</head><body>
                    
7<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
                    
8<!-- Generated by Doxygen 1.6.1 -->
                    
21      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
                    
22      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
                    
23    </ul>
                    
                
nodes.inc.php git://pkgs.fedoraproject.org/zabbix | PHP | 350 lines
                    
1<?php
                    
2/*
                    
54
                    
55	global $ZBX_LOCALNODEID, $ZBX_LOCMASTERID, $ZBX_CURRENT_NODEID, $ZBX_CURMASTERID, $ZBX_NODES, $ZBX_NODES_IDS,
                    
56			$ZBX_AVAILABLE_NODES, $ZBX_VIEWED_NODES, $ZBX_WITH_ALL_NODES;
                    
116function get_current_nodeid($force_all_nodes = null, $perm = null) {
                    
117	global $ZBX_CURRENT_NODEID, $ZBX_AVAILABLE_NODES, $ZBX_VIEWED_NODES;
                    
118
                    
150function get_viewed_nodes() {
                    
151	global $ZBX_LOCALNODEID;
                    
152
                    
191function get_node_name_by_elid($id_val, $force_with_all_nodes = null, $delimiter = '') {
                    
192	global $ZBX_NODES, $ZBX_VIEWED_NODES;
                    
193
                    
206function getNodeIdByNodeName($nodeName) {
                    
207	global $ZBX_NODES;
                    
208
                    
                
box_graph_invoices_permonth.php git://github.com/Dolibarr/dolibarr.git | PHP | 293 lines
                    
1<?php
                    
2/* Copyright (C) 2013 Laurent Destailleur  <eldy@users.sourceforge.net>
                    
54	{
                    
55		global $user;
                    
56
                    
69	{
                    
70		global $conf, $user, $langs;
                    
71
                    
75
                    
76		//include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
                    
77		//$facturestatic=new Facture($this->db);
                    
78
                    
79		$startmonth = $conf->global->SOCIETE_FISCAL_MONTH_START ? ($conf->global->SOCIETE_FISCAL_MONTH_START) : 1;
                    
80		if (empty($conf->global->GRAPH_USE_FISCAL_YEAR)) {
                    
133			}
                    
134			$startyear = $endyear - (empty($conf->global->MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH) ? 2 : ($conf->global->MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH - 1));
                    
135
                    
                
UploaderCompatibilityTests.js git://github.com/fluid-project/infusion.git | JavaScript | 215 lines
                    
13
                    
14/* global jqUnit */
                    
15
                    
43                options: {
                    
44                    uploadURL: "include/lib/upload.php"
                    
45                }
                    
54            queueSettings: {
                    
55                uploadURL: "include/lib/upload.php"
                    
56            },
                    
                
kfmDirectory.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 364 lines
                    
52		if($file=='.'||$file=='..')return false;
                    
53		foreach($GLOBALS['kfm']->setting('banned_folders') as $ban){
                    
54			if(($ban[0]=='/' || $ban[0]=='@')&&preg_match($ban,$file))return false;
                    
98		if(is_dir($this->path()))return $this->error('failed to delete directory '.$this->path());
                    
99		$GLOBALS['kfm']->db->exec("delete from ".KFM_DB_PREFIX."directories where id=".$this->id);
                    
100		return true;
                    
192		$pid=$this->pid;
                    
193		if(!$pid)return $GLOBALS['rootdir'];
                    
194		while($pid>1){
                    
313		// { update database and kfmDirectory object
                    
314			$GLOBALS['kfm']->db->query("update ".KFM_DB_PREFIX."directories set parent=".$newParent->id." where id=".$this->id) or die('error: '.print_r($GLOBALS['kfmdb']->errorInfo(),true));
                    
315			$this->pid=$newParent->id;
                    
353	function maxWidth(){
                    
354		return $this->maxWidth > 0 ? $this->maxWidth : $GLOBALS['kfm']->setting('max_image_upload_width');
                    
355	}
                    
                
games.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 275 lines
                    
1<?php
                    
2
                    
4
                    
5include_once("modules/tournament2/class_tournament.php");
                    
6$tfunc = new tfunc;
                    
9function WriteGame() {
                    
10	global $spieler1, $gameid1, $score1, $spieler1_id, $i, $tournamentid, $game, $dsp, $auth, $lang;
                    
11
                    
46			else $score_output = "$score1 : $score2 ";
                    
47			$score_output .= $dsp->FetchSpanButton(t('Details'), "index.php?mod=tournament2&action=submit_result&step=1&tournamentid=$tournamentid&gameid1=$gameid1&gameid2=$gameid2");
                    
48		}
                    
56function WriteRoundHeadline($headline, $akt_round){
                    
57	global $tournament, $dsp, $func, $lang, $map, $tfunc;
                    
58
                    
69function WritePairs ($bracket, $max_pos) {
                    
70	global $dsp, $db, $tournamentid, $tfunc, $akt_round, $lang, $func, $map, $tournament, $i, $game;
                    
71
                    
                
instrumentation.cpp git://github.com/facebook/hiphop-php.git | C++ | 335 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
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   +----------------------------------------------------------------------+
                    
21
                    
22namespace HPHP {
                    
23namespace VM {
                    
                
update_7.inc git://pkgs.fedoraproject.org/drupal6-drush | Pascal | 318 lines
                    
1<?php
                    
2// $Id: update_7.inc,v 1.30 2010/12/30 18:28:08 greg1anderson Exp $
                    
4 * @file
                    
5 *   Update.php for provisioned sites.
                    
6 *   This file is a derivative of the standard drupal update.php,
                    
11/**
                    
12 * Global flag to identify update.php run, and so avoid various unwanted
                    
13 * operations, such as hook_init() and hook_exit() invokes, css/js preprocessing
                    
14 * and translation, and solve some theming issues. This flag is checked on several
                    
15 * places in Drupal code (not just update.php).
                    
16 */
                    
20 * Returns (and optionally stores) extra requirements that only apply during
                    
21 * particular parts of the update.php process.
                    
22 */
                    
38 * The schema version will not be updated in this case, and all the
                    
39 * aborted updates will continue to appear on update.php as updates that
                    
40 * have not yet been run.
                    
                
bethsoftvid.c git://github.com/xbmc/xbmc.git | C | 296 lines
                    
25 * @author Nicholas Tung [ntung (at. ntung com] (2007-03)
                    
26 * @see http://wiki.multimedia.cx/index.php?title=Bethsoft_VID
                    
27 * @see http://www.svatopluk.com/andux/docs/dfvid.html
                    
48     * to free, unofficial documentation) */
                    
49    int bethsoft_global_delay;
                    
50    int video_index;        /**< video stream index */
                    
79    vid->height  = avio_rl16(pb);
                    
80    vid->bethsoft_global_delay = avio_rl16(pb);
                    
81    avio_rl16(pb);
                    
132    // get the current packet duration
                    
133    duration = vid->bethsoft_global_delay + avio_rl16(pb);
                    
134
                    
                
mysql_common.h git://github.com/facebook/hiphop-php.git | C Header | 478 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
404req::ptr<MySQLResult> php_mysql_extract_result(const Resource& result);
                    
405req::ptr<MySQLResult> php_mysql_extract_result(const Variant& result);
                    
406
                    
466#define PHP_MYSQL_NUM    1 << 1
                    
467#define PHP_MYSQL_BOTH   (PHP_MYSQL_ASSOC|PHP_MYSQL_NUM)
                    
468
                    
                
ImportShpTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 215 lines
                    
9use PhpMyAdmin\Plugins\Import\ImportShp;
                    
10use PhpMyAdmin\Tests\AbstractTestCase;
                    
11
                    
39        $GLOBALS['offset'] = 0;
                    
40        $GLOBALS['cfg']['Server']['DisableIS'] = false;
                    
41
                    
45            ->getMock();
                    
46        $GLOBALS['dbi'] = $dbi;
                    
47
                    
49
                    
50        $GLOBALS['compression'] = 'application/zip';
                    
51        $GLOBALS['read_multiply'] = 10;
                    
52        $GLOBALS['import_type'] = 'ods';
                    
53        unset($GLOBALS['db'], $GLOBALS['table']);
                    
54    }
                    
                
friend.php http://praized.googlecode.com/svn/trunk/ | PHP | 358 lines
                    
1<?php
                    
2/**
                    
15 * 
                    
16 * <code><?php if ( pzdc_has_friend() ) : ?>...<?php endif; ?></code>
                    
17 *
                    
17 *
                    
18 * @param string $identifier Optional user identifier (login) for custom template development (see bundled praized-php lib)
                    
19 * @return boolean
                    
22function pzdc_has_friend($identifier = FALSE) {
                    
23    global $PraizedCommunity;
                    
24    return $PraizedCommunity->tpt_has_friend();
                    
29 * 
                    
30 * <code><?php $friend_object = pzdc_friend(); ?></code>
                    
31 *
                    
31 *
                    
32 * @param string $identifier Optional user identifier (login) for custom template development (see bundled praized-php lib)
                    
33 * @return mixed Boolean FALSE or Object Current friend (see params)
                    
                
google_base_feed_builder.php http://google-checkout-oscommerce.googlecode.com/svn/trunk/ | PHP | 362 lines
                    
1<?php
                    
2/*
                    
21 * Google Checkout v1.5.0
                    
22 * $Id: google_base_feed_builder.php 224 2009-03-11 16:31:28Z ed.davisson $
                    
23 * 
                    
75
                    
76require_once(DIR_FS_CATALOG . 'googlecheckout/library/xml/google_xml_builder.php');
                    
77
                    
142
                    
143    // Required, global namespace.
                    
144    $this->add_title($product);
                    
                
zend_accelerator_blacklist.c git://github.com/php/php-src.git | C | 378 lines
                    
318#ifdef HAVE_GLOB
                    
319	glob_t globbuf;
                    
320	int    ret;
                    
322
                    
323	memset(&globbuf, 0, sizeof(glob_t));
                    
324
                    
324
                    
325	ret = glob(filename, 0, NULL, &globbuf);
                    
326#ifdef GLOB_NOMATCH
                    
326#ifdef GLOB_NOMATCH
                    
327	if (ret == GLOB_NOMATCH || !globbuf.gl_pathc) {
                    
328#else
                    
335		}
                    
336		globfree(&globbuf);
                    
337	}
                    
                
_g_screen_class_8h-source.html git://github.com/Ares-Developers/YRpp.git | HTML | 138 lines
                    
57    <li>
                    
58      <form action="search.php" method="get">
                    
59        <table cellspacing="0" cellpadding="0" border="0">
                    
71      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
                    
72      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
                    
73    </ul>
                    
84<a name="l00010"></a>00010         <span class="comment">//Static</span>
                    
85<a name="l00011"></a><a class="code" href="class_g_screen_class.html#d6566f322cab2232196e8d74c5822111">00011</a>         <span class="keyword">static</span> <a class="code" href="class_g_screen_class.html">GScreenClass</a>* <a class="code" href="class_g_screen_class.html#d6566f322cab2232196e8d74c5822111">Global</a>()
                    
86<a name="l00012"></a>00012                 { <span class="keywordflow">return</span> (<a class="code" href="class_g_screen_class.html">GScreenClass</a>*)0x87F7E8; }
                    
                
Linux_SambaShareSecurityForGlobalInstance.cpp git://pkgs.fedoraproject.org/sblim-cmpi-samba | C++ | 415 lines
                    
34  //empty constructor
                    
35  Linux_SambaShareSecurityForGlobalInstance::Linux_SambaShareSecurityForGlobalInstance() {   	
                    
36   	init();  	   	
                    
41  //----------------------------------------------------------------------------
                    
42  Linux_SambaShareSecurityForGlobalInstance::Linux_SambaShareSecurityForGlobalInstance(
                    
43    const Linux_SambaShareSecurityForGlobalInstance& anInstance) {   	
                    
49  //----------------------------------------------------------------------------
                    
50  Linux_SambaShareSecurityForGlobalInstance::Linux_SambaShareSecurityForGlobalInstance(
                    
51    const CmpiInstance& aCmpiInstance,
                    
279  //----------------------------------------------------------------------------
                    
280  Linux_SambaShareSecurityForGlobalInstanceEnumerationElement::Linux_SambaShareSecurityForGlobalInstanceEnumerationElement() {
                    
281   	
                    
287  //----------------------------------------------------------------------------
                    
288  Linux_SambaShareSecurityForGlobalInstanceEnumerationElement::~Linux_SambaShareSecurityForGlobalInstanceEnumerationElement() {
                    
289   	
                    
                
graph_processor.h git://github.com/chromium/chromium.git | C Header | 231 lines
                    
24
                    
25  static void RemoveWeakNodesFromGraph(GlobalDumpGraph* global_graph);
                    
26
                    
26
                    
27  static void AddOverheadsAndPropogateEntries(GlobalDumpGraph* global_graph);
                    
28
                    
28
                    
29  static void CalculateSizesForGraph(GlobalDumpGraph* global_graph);
                    
30
                    
38      const base::trace_event::ProcessMemoryDump& source,
                    
39      GlobalDumpGraph* global_graph,
                    
40      GlobalDumpGraph::Process* process_graph);
                    
53  static void AssignTracingOverhead(base::StringPiece allocator,
                    
54                                    GlobalDumpGraph* global_graph,
                    
55                                    GlobalDumpGraph::Process* process);
                    
                
lineitem.php git://github.com/moodle/moodle.git | PHP | 336 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
65    public function execute($response) {
                    
66        global $CFG, $DB;
                    
67
                    
97            }
                    
98            require_once($CFG->libdir.'/gradelib.php');
                    
99            switch ($response->get_request_method()) {
                    
145    private function process_put_request($body, $olditem, $typeid) {
                    
146        global $DB;
                    
147        $json = json_decode($body);
                    
283    private function process_delete_request($item) {
                    
284        global $DB;
                    
285
                    
308    public function parse_value($value) {
                    
309        global $COURSE, $CFG;
                    
310        if (strpos($value, '$LineItem.url') !== false) {
                    
                
Command.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 512 lines
                    
1<?php
                    
2
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
486        $commandXML->setAttribute('id', $this->getFullName());
                    
487        $commandXML->setAttribute('namespace', $this->getNamespace() ? $this->getNamespace() : '_global');
                    
488        $commandXML->setAttribute('name', $this->getName());
                    
                
_blit_trans_xlat_write_alpha_8h-source.html git://github.com/Ares-Developers/YRpp.git | HTML | 131 lines
                    
57    <li>
                    
58      <form action="search.php" method="get">
                    
59        <table cellspacing="0" cellpadding="0" border="0">
                    
71      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
                    
72      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
                    
73    </ul>
                    
                
fr.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 93 lines
                    
1<?php
                    
2
                    
2
                    
3global $_MODULE;
                    
4$_MODULE = array();
                    
                
merge_dico.inc http://twpug.googlecode.com/svn/trunk/ | PHP | 209 lines
                    
1<?php
                    
2
                    
7function handle_lang_rec($lang_rec) {
                    
8    global $idx_dico,$dico,$totrx,$perform_approx,$old_totrx,$empty;
                    
9    global $found,$notfound,$auto,$approx_count,$default_key;
                    
72function insert_in_sugar_terms($sugar_lang_rec,$text) {
                    
73        global $translationKey,$version_id,$sql_values;
                    
74        //Escape the test to be inserted
                    
76        //replace the file name by the translation file name
                    
77        $file_name = ereg_replace("[^\\./]+.lang.php$", $translationKey.".lang.php", $sugar_lang_rec->file);
                    
78        //values are the same key 
                    
125    msg("($count) translated values have been found in the 'To Translate' (sugar_lang_trx) table.");
                    
126    msg("You should commit or clear the existing values in the <A href=totrx.php>To Translate module</A>.");
                    
127    $arr_old_to_trx = query_db("SELECT ref FROM sugar_lang_trx where trx != ''");
                    
                
mostlyce.php http://miacms.googlecode.com/svn/trunk/ | PHP | 336 lines
                    
1<?php
                    
2/**
                    
12global $mosConfig_live_site, $jspath, $mosConfig_absolute_path, $adminside;
                    
13include($mosConfig_absolute_path."mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php");
                    
14
                    
48function botmostlyceEditorInit() {
                    
49	global $mosConfig_live_site, $my, $database, $mosConfig_absolute_path, $jspath;
                    
50	global $adminside, $mosConfig_secret, $mosConfig_cachetime;
                    
50	global $adminside, $mosConfig_secret, $mosConfig_cachetime;
                    
51	include($mosConfig_absolute_path."mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php");
                    
52
                    
172	Notes: 
                    
173	* The TinyMCE PHP gzip compressor cannot and will not work if zlib compression is already enabled on the server.
                    
174	* If they requested editor compression run the checks otherwise don't waste the cycles
                    
260		function fileBrowserCallBack(field_name, url, type, win) {
                    
261		var connector = "$jspath/mambots/editors/mostlyce/jscripts/tiny_mce/filemanager/browser.php?Connector=connectors/php/connector.php";
                    
262		var enableAutoTypeSelection = false;
                    
                
Common.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 519 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.01 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 * 
                    
18 * @copyright   2001-2009 The PHP Group
                    
19 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
20 * @version     CVS: $Id: Common.php 137 2009-11-09 13:24:37Z vanpouckesven $
                    
                
user_import.php http://avecms.googlecode.com/svn/trunk/ | PHP | 344 lines
                    
1<?php
                    
2
                    
5$csv_available_fields = array(
                    
6	'Id'          => $GLOBALS['config_vars']['UserImport_Id'],
                    
7	'password'    => $GLOBALS['config_vars']['UserImport_Kennwort'],
                    
7	'password'    => $GLOBALS['config_vars']['UserImport_Kennwort'],
                    
8	'email'       => $GLOBALS['config_vars']['UserImport_Email'],
                    
9	'street'      => $GLOBALS['config_vars']['UserImport_Strasse'],
                    
9	'street'      => $GLOBALS['config_vars']['UserImport_Strasse'],
                    
10	'street_nr'   => $GLOBALS['config_vars']['UserImport_HausNr'],
                    
11	'zipcode'     => $GLOBALS['config_vars']['UserImport_Postleitzahl'],
                    
11	'zipcode'     => $GLOBALS['config_vars']['UserImport_Postleitzahl'],
                    
12	'city'        => $GLOBALS['config_vars']['UserImport_City'],
                    
13	'phone'       => $GLOBALS['config_vars']['UserImport_Telefon'],
                    
13	'phone'       => $GLOBALS['config_vars']['UserImport_Telefon'],
                    
14	'telefax'     => $GLOBALS['config_vars']['UserImport_Telefax'],
                    
15	'description' => $GLOBALS['config_vars']['UserImport_Bemerkungen'],
                    
                
fileupload_test.php git://github.com/phpbb/phpbb.git | PHP | 239 lines
                    
42		// Global $config required by unique_id
                    
43		global $config, $phpbb_root_path, $phpEx;
                    
44
                    
56		$this->filesystem = new \phpbb\filesystem\filesystem();
                    
57		$this->language = new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx));
                    
58		$guessers = array(
                    
67
                    
68		$this->container = new phpbb_mock_container_builder($phpbb_root_path, $phpEx);
                    
69		$this->container->set('files.filespec', new \phpbb\files\filespec(
                    
78		$this->factory = new \phpbb\files\factory($this->container);
                    
79		$plupload = new \phpbb\plupload\plupload($phpbb_root_path, $config, $this->request, new \phpbb\user($this->language, '\phpbb\datetime'), $this->php_ini, $this->mimetype_guesser);
                    
80		$this->container->set('files.types.form', new \phpbb\files\types\form(
                    
148	{
                    
149		$upload = new \phpbb\files\upload($this->filesystem, $this->factory, $this->language, $this->php_ini, $this->request, $this->phpbb_root_path);
                    
150		$upload->set_allowed_extensions(array('jpg'))
                    
                
parser_test.php git://github.com/phpbb/phpbb.git | PHP | 264 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
14require_once dirname(__FILE__) . '/../../phpBB/includes/bbcode.php';
                    
15require_once dirname(__FILE__) . '/../../phpBB/includes/message_parser.php';
                    
16
                    
16
                    
17class phpbb_bbcode_parser_test extends \phpbb_test_case
                    
18{
                    
160			array(
                    
161				'PHPBB3-6200 - correct: parsed',
                    
162				'[quote=&quot;[&quot;]test[/quote]',
                    
165			array(
                    
166				'PHPBB3-9364 - quoted: "test[/[/b]quote] test" / non-quoted: "[/quote] test" - also failed if layout distorted',
                    
167				'[quote]test[/[/b]quote] test [/quote][/quote] test',
                    
                
dir.c https://github.com/php/php-src.git | C | 581 lines
                    
51#ifdef ZTS
                    
52#define DIRG(v) ZEND_TSRMG(dir_globals_id, php_dir_globals *, v)
                    
53int dir_globals_id;
                    
55#define DIRG(v) (dir_globals.v)
                    
56php_dir_globals dir_globals;
                    
57#endif
                    
122#ifdef ZTS
                    
123	ts_allocate_id(&dir_globals_id, sizeof(php_dir_globals), NULL, NULL);
                    
124#endif
                    
184/* This is used for checking validity of passed flags (passing invalid flags causes segfault in glob()!! */
                    
185#define GLOB_AVAILABLE_FLAGS (0 | GLOB_BRACE | GLOB_MARK | GLOB_NOSORT | GLOB_NOCHECK | GLOB_NOESCAPE | GLOB_ERR | GLOB_ONLYDIR)
                    
186
                    
458			   We don't want to treat GLOB_NOMATCH as an error condition
                    
459			   so that PHP glob() behaves the same on both types of
                    
460			   implementations and so that 'foreach (glob() as ...'
                    
                
marshall.inc http://drawshield.googlecode.com/svn/trunk/ | PHP | 282 lines
                    
1<?php /* Copyright 2010 Karl R. Wilcox
                    
2
                    
15function plain() {
                    
16  global $dom, $p_globals;
                    
17
                    
24    comma();
                    
25    $p_globals['offield'] = deep_copy($field->firstChild);
                    
26    $plain->appendChild ( $field );
                    
45function overall() {
                    
46  global $dom;
                    
47
                    
68function quartered() {
                    
69  global $dom;
                    
70
                    
153function halved() {
                    
154  global $dom;
                    
155
                    
                
MaildirFolderTest.php git://github.com/zendframework/zf2.git | PHP | 0 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
199
                    
200    public function testGlobalName()
                    
201    {
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
206        } catch (\Exception $e) {
                    
207            $this->fail('exception raised while selecting existing folder and getting global name');
                    
208        }
                    
231        foreach ($iterator as $localName => $folder) {
                    
232            if (!isset($search_folders[$folder->getGlobalName()])) {
                    
233                continue;
                    
                
jquery.rating.js http://xbat-devel.googlecode.com/svn/trunk/ | JavaScript | 241 lines
                    
4 * Dual licensed under the MIT and GPL licenses:
                    
5 *   http://www.opensource.org/licenses/mit-license.php
                    
6 *   http://www.gnu.org/licenses/gpl.html
                    
10*//*
                    
11	Based on http://www.phpletter.com/Demo/Jquery-Star-Rating-Plugin/
                    
12 Original comments:
                    
12 Original comments:
                    
13	This is hacked version of star rating created by <a href="http://php.scripts.psu.edu/rja171/widgets/rating.php">Ritesh Agrawal</a>
                    
14	It thansform a set of radio type input elements to star rating type and remain the radio element name and value,
                    
84			{}/* new object */,
                    
85			$.rating/* global settings */,
                    
86			instanceSettings || {} /* just-in-time settings */
                    
                
chapter9.html http://ds-pro-chat.googlecode.com/svn/trunk/ | HTML | 169 lines
                    
14 <ul id="mainmenu">
                    
15  <li><a href="http://www.christian-seiler.de/projekte/php/bbcode/index_en.html">Project homepage</a></li>
                    
16  <li><a href="chapter1.html">Documentation</a></li>
                    
16  <li><a href="chapter1.html">Documentation</a></li>
                    
17  <li><a href="../phpdoc/index.html">PHPDOC Documentation</a></li>
                    
18  <li><a href="http://www.christian-seiler.de/projekte/php/bbcode/download_en.html">Download</a></li>
                    
56      <li><a href="chapter6.html#flags">6.2 List of all flags</a></li>
                    
57      <li><a href="chapter6.html#global">6.2 Global flags</a></li>
                    
58    </ul></li>
                    
82<h3 id="example"><a name="example">9.1 Example</a></h3>
                    
83<p class="php"><code>// Unify line breaks of different operating systems<br>
                    
84function convertlinebreaks ($text) {<br>
                    
                
lib.php git://pkgs.fedoraproject.org/moodle | PHP | 318 lines
                    
1<?php
                    
2
                    
29
                    
30require_once($CFG->libdir.'/flickrlib.php');
                    
31
                    
45    public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()) {
                    
46        global $SESSION, $CFG;
                    
47        $options['page']    = optional_param('p', 1, PARAM_INT);
                    
57
                    
58        $this->flickr = new phpFlickr($this->api_key, $this->secret, $this->token);
                    
59
                    
130     */
                    
131    public function global_search() {
                    
132        if (empty($this->token)) {
                    
156    /**
                    
157     * Converts result received from phpFlickr::photo_search to Filepicker/repository format
                    
158     *
                    
                
computer.class.php git://pkgs.fedoraproject.org/glpi-pdf | PHP | 260 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * @version $Id: computer.class.php 322 2012-04-06 17:03:33Z remi $
                    
5 -------------------------------------------------------------------------
                    
52   static function pdfMain(PluginPdfSimplePDF $pdf, Computer $computer){
                    
53      global $DB, $LANG;
                    
54
                    
162   static function pdfDevice(PluginPdfSimplePDF $pdf, Computer $computer) {
                    
163      global $DB, $LANG;
                    
164
                    
                
dbUserPage.cs https://hg.codeplex.com/mojoportal | C# | 280 lines
                    
5/// The use and distribution terms for this software are covered by the 
                    
6/// Common Public License 1.0 (http://opensource.org/licenses/cpl.php)  
                    
7/// which can be found in the file CPL.TXT at the root of this distribution.
                    
19using System.Configuration;
                    
20using System.Globalization;
                    
21using System.IO;
                    
                
sysvmsg.c git://pkgs.fedoraproject.org/php | C | 478 lines
                    
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          |
                    
25#include "php.h"
                    
26#include "php_globals.h"
                    
27#include "ext/standard/info.h"
                    
145{
                    
146	php_info_print_table_start();
                    
147	php_info_print_table_row(2, "sysvmsg support", "enabled");
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
415
                    
416		/* NB: php_msgbuf is 1 char bigger than a long, so there is no need to
                    
417		 * allocate the extra byte. */
                    
                
ms-default-filters.php git://github.com/wordpress/wordpress.git | PHP | 128 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * Not all of the Multisite default hooks are found in ms-default-filters.php
                    
9 *
                    
11 * @subpackage Multisite
                    
12 * @see default-filters.php
                    
13 * @since 3.0.0
                    
76// Administration.
                    
77add_filter( 'term_id_filter', 'global_terms', 10, 2 );
                    
78add_action( 'delete_post', '_update_posts_count_on_delete' );
                    
101// Mail.
                    
102add_action( 'phpmailer_init', 'fix_phpmailer_messageid' );
                    
103
                    
123
                    
124// If the network upgrade hasn't run yet, assume ms-files.php rewriting is used.
                    
125add_filter( 'default_site_option_ms_files_rewriting', '__return_true' );
                    
                
admin.inc git://pkgs.fedoraproject.org/sahana | PHP | 305 lines
                    
27	if(isset($_REQUEST['submod']) && isset($_REQUEST['seq'])){
                    
28		global $global;
                    
29		include_once ($global['approot'].'/mod/gis/plugins/'.$_REQUEST['submod'].'/admin.inc');
                    
42	{
                    
43		global $global;
                    
44		shn_gis_adm_show_mod_menu();
                    
67<?php
                    
68	global $global;
                    
69	global $conf;
                    
100<?php
                    
101	global $global;
                    
102	global $conf;
                    
135{
                    
136	global $global;
                    
137	global $conf;
                    
                
guide_radar.html http://google-chartwrapper.googlecode.com/svn/trunk/ | HTML | 143 lines
                    
28		<div class="container">
                    
29			<div class="titleblock" style="background-image:url(http://chartography.net/media/globe1.png);">
                    
30				<h1>
                    
48					<script type="text/javascript">var addthis_pub = "justquick";</script>
                    
49					<a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" border="0" alt="" /></a>
                    
50					<script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
                    
113.highlight .vc { color: #19177C } /* Name.Variable.Class */
                    
114.highlight .vg { color: #19177C } /* Name.Variable.Global */
                    
115.highlight .vi { color: #19177C } /* Name.Variable.Instance */
                    
                
install-helper.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 226 lines
                    
1<?php
                    
2/**
                    
41/**
                    
42 * @global bool $wp_only_load_config
                    
43 * @name $wp_only_load_config
                    
49/** Load WordPress Bootstrap */
                    
50require_once(dirname(dirname(__FILE__)).'/wp-load.php');
                    
51
                    
53 * Turn debugging on or off.
                    
54 * @global bool|int $debug
                    
55 * @name $debug
                    
74function maybe_create_table($table_name, $create_ddl) {
                    
75	global $wpdb;
                    
76	foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) {
                    
108function maybe_add_column($table_name, $column_name, $create_ddl) {
                    
109	global $wpdb, $debug;
                    
110	foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
                    
                
del_cat.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 175 lines
                    
1<?php
                    
2
                    
28        {
                    
29            if ( $delallcheckss == md5( $catid . session_id() . $global_config['sitekey'] ) )
                    
30            {
                    
55                    
                    
56                    $contents = "<form action=\"" . NV_BASE_ADMINURL . "index.php\" method=\"post\">";
                    
57                    $contents .= "<input type=\"hidden\" name =\"" . NV_NAME_VARIABLE . "\"value=\"" . $module_name . "\" />";
                    
100                    nv_del_moduleCache($module_name);
                    
101                    Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=" . $parentid . "" );
                    
102                    die();
                    
131                        nv_del_moduleCache($module_name);
                    
132                        Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=" . $parentid . "" );
                    
133                        die();
                    
138            {
                    
139                $contents = "ERR_ROWS_" . $catid . "_" . md5( $catid . session_id() . $global_config['sitekey'] ) . "_" . sprintf( $lang_module['delcat_msg_rows'], $check_rows );
                    
140            }
                    
                
config.php http://findresources.googlecode.com/svn/trunk/ | PHP | 364 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
                    
35|
                    
36| This item determines which server global should be used to retrieve the
                    
37| URI string.  The default setting of 'AUTO' works for most servers.
                    
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
                    
                
ico.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 729 lines
                    
1<?php
                    
2/*
                    
185{
                    
186global $CurrentBit;
                    
187
                    
308{
                    
309global $CurrentBit;
                    
310
                    
670{
                    
671 global $CurrentBit,$SMode;
                    
672 $Byte=freadbyte($f);
                    
                
array_data.cpp https://bitbucket.org/asuhan/happy/ | C++ | 375 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
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   +----------------------------------------------------------------------+
                    
26
                    
27namespace HPHP {
                    
28///////////////////////////////////////////////////////////////////////////////
                    
                
OpportunityConvertToView.php https://bitbucket.org/zurmo/zurmo/ | PHP | 219 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
58            $metadata = array(
                    
59                'global' => array(
                    
60                    'toolbar' => array(
                    
                
History.php git://pkgs.fedoraproject.org/horde | PHP | 408 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * $Horde: framework/History/History.php,v 1.28.2.25 2010/11/08 16:17:28 jan Exp $
                    
7 *
                    
59    {
                    
60        global $conf;
                    
61
                    
61
                    
62        if (empty($conf['sql']['phptype']) ||
                    
63            $conf['sql']['phptype'] == 'none') {
                    
68
                    
69        require_once 'DB.php';
                    
70        $this->_write_db = &DB::connect($conf['sql']);
                    
73        if (is_a($this->_write_db, 'DB_common')) {
                    
74            switch ($this->_write_db->phptype) {
                    
75            case 'mssql':
                    
                
prepend.inc.php http://scalr.googlecode.com/svn/ | PHP | 340 lines
                    
83	require_once(SRCPATH."/class.UI.php");
                    
84	require_once(SRCPATH."/class.Debug.php");
                    
85	require_once(SRCPATH."/class.TaskQueue.php");
                    
117	Core::Load("NET/Mail/PHPMailer");
                    
118	Core::Load("NET/Mail/PHPSmartyMailer");
                    
119	Core::Load("Data/Formater/Formater");
                    
189	// Define log4php contants
                    
190	define("LOG4PHP_DIR", LIBPATH.'/IO/Logging/log4php/src/main/php');
                    
191	define("LOG4PHP_CONFIGURATION", APPPATH.'/etc/log4php.xml');
                    
204
                    
205	require_once(LOG4PHP_DIR . '/LoggerManager.php');
                    
206		
                    
272    require_once (APPPATH.'/observers/interface.IDeferredEventObserver.php');
                    
273    require_once (APPPATH.'/observers/interface.IEventObserver.php');
                    
274                    
                    
                
sub-activity-class-singlepost.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 381 lines
                    
1<?php
                    
2
                    
121
                    
122                global $bp, $wpdb;
                    
123
                    
124                // Should we push user activity stream posts to global activity stream
                    
125                $post_global = $bp->bpa->options['core_comments_globalStreamEnable'];
                    
126
                    
174                // If the admin has disabled posts to the global activity stream and the user has set the album's privacy level
                    
175                // to public (priv level = 0), increase the privacy level to 1 so it is hidden in the global activity stream
                    
176
                    
176
                    
177                if(($post_global == false) && ($album->privacy < 2)){
                    
178                    $post_privacy = 1;
                    
229                // Should we push user activity stream posts to global activity stream
                    
230                $post_global = $bp->bpa->options['core_comments_globalStreamEnable'];
                    
231
                    
                
UserGroups.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin\Server;
                    
9
                    
9
                    
10use PhpMyAdmin\Html\Generator;
                    
11use PhpMyAdmin\Relation;
                    
11use PhpMyAdmin\Relation;
                    
12use PhpMyAdmin\Template;
                    
13use PhpMyAdmin\Url;
                    
13use PhpMyAdmin\Url;
                    
14use PhpMyAdmin\Util;
                    
15
                    
23/**
                    
24 * PhpMyAdmin\Server\UserGroups class
                    
25 */
                    
                
comment-template.php http://core.svn.wordpress.org/ | PHP | 363 lines
                    
1<?php
                    
2/*
                    
6function get_comment_author() {
                    
7	global $comment;
                    
8	if ( empty($comment->comment_author) )
                    
20function get_comment_author_email() {
                    
21	global $comment;
                    
22	return apply_filters('get_comment_author_email', $comment->comment_author_email);
                    
29function comment_author_email_link($linktext='', $before='', $after='') {
                    
30	global $comment;
                    
31	$email = apply_filters('comment_email', $comment->comment_author_email);
                    
40function get_comment_author_link() {
                    
41	global $comment;
                    
42	$url    = get_comment_author_url();
                    
56function get_comment_author_IP() {
                    
57	global $comment;
                    
58	return apply_filters('get_comment_author_IP', $comment->comment_author_IP);
                    
                
pys60.php https://gitlab.com/jeremystevens/php-bin.git | PHP | 273 lines
                    
1<?php
                    
2/**************************************************************************************
                    
2/**************************************************************************************
                    
3 * pys60.php
                    
4 * ----------
                    
15 *
                    
16 * The python.php file is extended to pys60.php with required modifications
                    
17 *
                    
56            'and', 'del', 'for', 'is', 'raise', 'assert', 'elif', 'from', 'lambda', 'return', 'break',
                    
57            'else', 'global', 'not', 'try', 'class', 'except', 'if', 'or', 'while', 'continue', 'exec',
                    
58            'import', 'pass', 'yield', 'def', 'finally', 'in', 'print', "<<", ">>", "as"
                    
67            'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile',
                    
68            'file', 'filter', 'float', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help',
                    
69            'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'list', 'locals',
                    
106            'filecmp', 'fileinput', 'FL', 'fl', 'flp', 'fm', 'fnmatch', 'formatter', 'fpectl',
                    
107            'fpformat', 'ftplib', 'gc', 'gdbm', 'getopt', 'getpass', 'gettext', 'GL', 'gl', 'glob',
                    
108            'gopherlib', 'grp', 'gzip', 'heapq', 'hmac', 'hotshot', 'htmlentitydefs', 'htmllib',
                    
                
update.inc git://github.com/jyr/MNPP.git | Pascal | 311 lines
                    
1<?php
                    
2/**
                    
3 * @file
                    
4 *   Update.php for provisioned sites.
                    
5 *   This file is a derivative of the standard drupal update.php,
                    
10/**
                    
11 * Global flag to identify update.php run, and so avoid various unwanted
                    
12 * operations, such as hook_init() and hook_exit() invokes, css/js preprocessing
                    
13 * and translation, and solve some theming issues. This flag is checked on several
                    
14 * places in Drupal code (not just update.php).
                    
15 */
                    
25 * Returns (and optionally stores) extra requirements that only apply during
                    
26 * particular parts of the update.php process.
                    
27 */
                    
43 * The schema version will not be updated in this case, and all the
                    
44 * aborted updates will continue to appear on update.php as updates that
                    
45 * have not yet been run.
                    
                
errorCode.html git://pkgs.fedoraproject.org/postgresql-pgpoolAdmin | HTML | 164 lines
                    
37  </tr>
                    
38<tr><th class="right_border"><label>e1</label></th><td  class="right_border">pgmgt.conf.php????????</td><td>pgmgt.conf.php?????conf???????????????????????????????????????????</td></tr>
                    
39<tr><th class="right_border"><label>e2</label></th><td  class="right_border">?????????????????</td><td>??????????????lang???????????????????</td></tr>
                    
43<tr><th class="right_border"><label>e6</label></th><td  class="right_border">???????????</td><td>????????template/help???????????????</td></tr>
                    
44<tr><th class="right_border"><label>e7</label></th><td  class="right_border">pgmgt.conf.php????????????</td><td>pgmgt.conf.php???????????????????????</td></tr>
                    
45<tr><th class="right_border"><label>e8</label></th><td  class="right_border">pcp_timeout?pgpool.conf????????</td><td>pcp_timeout?pgpool.conf?????????????????</td></tr>
                    
125  </tr>
                    
126<tr><th class="right_border"><label>e5001</label></th><td  class="right_border">pgmgt.conf.php????????</td><td>pgmgt.conf.php?????conf???????????????????????????????????????????</td></tr>
                    
127<tr><th class="right_border"><label>e5002</label></th><td  class="right_border">pgmgt.conf.php????????????</td><td>pgmgt.conf.php???????????????????????????</td></tr>
                    
127<tr><th class="right_border"><label>e5002</label></th><td  class="right_border">pgmgt.conf.php????????????</td><td>pgmgt.conf.php???????????????????????????</td></tr>
                    
128<tr><th class="right_border"><label>e5003</label></th><td  class="right_border">pgmgt.conf.php???????????</td><td>pgmgt.conf.php???????????????????????????</td></tr>
                    
129</table>
                    
157Version 2.1<br />
                    
158Copyright &copy; 2006 - 2008 <a href="http://pgpool.projects.postgresql.org/">pgpool Global Development Group</a>. All rights reserved.
                    
159</address>
                    
                
eventslib_test.php git://github.com/moodle/moodle.git | PHP | 304 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
20 * @package    core_event
                    
21 * @subpackage phpunit
                    
22 * @copyright  2007 onwards Martin Dougiamas (http://dougiamas.com)
                    
41        parent::setUp();
                    
42        // Set global category settings to -1 (not force).
                    
43        eventslib_sample_function_handler('reset');
                    
52    public function test_events_update_definition__install() {
                    
53        global $DB;
                    
54
                    
59        $handlers = array();
                    
60        require(__DIR__.'/fixtures/events.php');
                    
61        $this->assertCount($dbcount, $handlers, 'Equal number of handlers in file and db: %s');
                    
67    public function test_events_update_definition__uninstall() {
                    
68        global $DB;
                    
69
                    
                
DBSystemLog.cs https://hg01.codeplex.com/mojoportal | C# | 394 lines
                    
5// The use and distribution terms for this software are covered by the 
                    
6// Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
                    
7// which can be found in the file CPL.TXT at the root of this distribution.
                    
15using System.Data.SqlServerCe;
                    
16using System.Globalization;
                    
17using System.Text;
                    
                
index.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
40if (!isset($part) or $part=='') {	// 2008.04.25 add isset check
                    
41		if ($GLOBALS['watbrowser']=='msie') {
                    
42			
                    
52
                    
53$ses = isset($_COOKIE['PHPSESSID'])?$_COOKIE['PHPSESSID']:'';  //2008.05.06
                    
54
                    
101
                    
102	// this is from txthotline001.php: Logging In
                    
103	if (isset($frmLoginSubmit)) {
                    
205            $strUpdatePostVar = ($strPostVarData) ? "postvarval = '$strPostVarData'," : "";
                    
206            $intPartId = (empty($GLOBALS['part'])) ? getCurrFilePartNum() : $GLOBALS['part'];
                    
207            
                    
214	    
                    
215	    $be1 = $GLOBALS[HTTP_SERVER_VARS].$GLOBALS[QUERY_STRING];
                    
216            $strQuqery = mysql_query("INSERT INTO ebpls_activity_log SET
                    
                
perf-mysql.inc.php http://scriptz.googlecode.com/svn/trunk/ | PHP | 315 lines
                    
1<?php
                    
2/* 
                    
131	{
                    
132	global $ADODB_FETCH_MODE;
                    
133		$save = $ADODB_FETCH_MODE;
                    
160	{
                    
161	global $ADODB_FETCH_MODE;
                    
162		$save = $ADODB_FETCH_MODE;
                    
196		
                    
197		global $ADODB_FETCH_MODE;
                    
198		$save = $ADODB_FETCH_MODE;
                    
247	{
                    
248	global $ADODB_FETCH_MODE;
                    
249	
                    
303            {
                    
304                // May dont use __FUNCTION__ constant for BC (__FUNCTION__ Added in PHP 4.3.0)
                    
305                ADOConnection::outp( sprintf( "<p>%s: '%s' using of undefined mode '%s'</p>", __CLASS__, __FUNCTION__, $mode));
                    
                
connector.php https://xzwebshop.svn.codeplex.com/svn | PHP | 193 lines
                    
20//Errors in the config.php could still cause problems.
                    
21global $fckphp_config;
                    
22require_once "config.php";
                    
70
                    
71if ($fckphp_config['Debug']===true && $fckphp_config['Debug_Output']) ob_start();
                    
72outputHeaders();
                    
144	echo str_replace("\n","<br />",print_r($_GET,true));
                    
145	if ($fckphp_config['Debug']===true  && $fckphp_config['Debug_Output']) recordOutput();
                    
146	exit(0);
                    
150function recordOutput() {
                    
151	global $fckphp_config;
                    
152
                    
152
                    
153	if ($fckphp_config['Debug']===true  && $fckphp_config['Debug_Output']) {
                    
154		$contents=ob_get_contents();
                    
                
serendipity_plugin_syndication.php git://github.com/s9y/Serendipity.git | PHP | 246 lines
                    
1<?php
                    
2
                    
57    {
                    
58        global $serendipity;
                    
59
                    
141    {
                    
142        global $serendipity;
                    
143
                    
                
fala.php https://gitlab.com/bjwebb-codedump/plingconica.git | PHP | 406 lines
                    
1<?php 
                    
2/**
                    
20
                    
21include_once "config.php";
                    
22
                    
25		function BenDatabase($db) {
                    
26			global $db_host; global $db_name; global $db_pass;
                    
27			$this->con = mysql_connect($db_host,$db_name,$db_pass);
                    
77	function generateLink($town,$district) {
                    
78		return $_SERVER['PHP_SELF'] . "?town=$town&district=$district";
                    
79	}
                    
108	function checkDB($town,$district,$lacode,$postcode) {
                    
109		global $log;
                    
110
                    
132	function checkAuthorityWards($town,$district,$lacode,$postcode) {
                    
133	    global $log;
                    
134	        $log[] = "Checking Authorities and Wards: Authority";
                    
                
api_functions.php https://github.com/openaustralia/twfy.git | PHP | 371 lines
                    
2
                    
3include_once '../../../../phplib/rabx.php';
                    
4
                    
145function api_sidebar() {
                    
146	global $methods;
                    
147	$sidebar = '<div class="block"><h4>API Functions</h4> <div class="blockbody"><ul>';
                    
190		$out .= '<result>' . api_output_xml($arr) . '</result>';
                    
191	} elseif ($output == 'php') {
                    
192		$out = api_output_php($arr);
                    
215		$type = 'text/xml';
                    
216	} elseif ($o == 'php') {
                    
217		$type = 'text/php';
                    
233
                    
234function api_output_php($arr) {
                    
235	$out = serialize($arr);
                    
                
SavedSearches.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 483 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin;
                    
9
                    
24    /**
                    
25     * Global configuration
                    
26     *
                    
69    /**
                    
70     * @param array    $config   Global configuration
                    
71     * @param Relation $relation Relation instance
                    
134     *
                    
135     * @param array $config Global configuration
                    
136     *
                    
276    {
                    
277        global $dbi;
                    
278
                    
                
sidebar.php http://jqbird.googlecode.com/svn/trunk/ | PHP | 268 lines
                    
26}
                    
27$zenverse_global_twitter = get_option('zenverse_global_twitter');
                    
28$zenverse_global_feedburner_id = get_option('zenverse_global_feedburner_id');
                    
44<?php if ($zenverse_global_twitter != '') { ?>
                    
45<a title="Follow me on Twitter" href="http://twitter.com/<?php echo $zenverse_global_twitter; ?>"><img style="position:relative;" src="<?php bloginfo('template_directory') ?>/images/sidesubs_twitter2.gif" onmouseover="this.style.top='-2px';" onmouseout="this.style.top='0px';" alt="" /></a>
                    
46<?php } ?>
                    
48<?php if ($zenverse_global_feedburner_id!='') { ?>
                    
49<a title="Subscribe to updates via Email" href="http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $zenverse_global_feedburner_id; ?>"><img style="position:relative;" src="<?php bloginfo('template_directory') ?>/images/sidesubs_feedburner2.gif" onmouseover="this.style.top='-2px';" onmouseout="this.style.top='0px';" alt="" /></a>
                    
50<?php } ?>
                    
52<?php if ($zenverse_global_facebook != '') { ?>
                    
53<a title="Follow me on Twitter" href="<?php echo $zenverse_global_facebook; ?>"><img style="position:relative;" src="<?php bloginfo('template_directory') ?>/images/sidesubs_facebook2.gif" onmouseover="this.style.top='-2px';" onmouseout="this.style.top='0px';" alt="" /></a>
                    
54<?php } ?>
                    
112?>
                    
113<a href="<?php echo $minism_sponsor_link; ?>" title="<?php echo $minism_sponsor_alttag; ?>"><img alt="<?php echo $minism_sponsor_alttag; ?>" src="<?php echo $minism_sponsor_image; ?>" /></a>
                    
114<?php } ?>
                    
                
ChainedBlockStream.php https://PHPExcel.svn.codeplex.com/svn | PHP | 235 lines
                    
21 * @category   PHPExcel
                    
22 * @package    PHPExcel_Shared_OLE
                    
23 * @copyright  Copyright (c) 2006 - 2007 Christian Schmidt
                    
27
                    
28/** PHPExcel root directory */
                    
29if (!defined('PHPEXCEL_ROOT')) {
                    
35
                    
36require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/OLE.php';
                    
37
                    
41 * Stream wrapper for reading data stored in an OLE file. Implements methods
                    
42 * for PHP's stream_wrapper_register(). For creating streams using this
                    
43 * wrapper, use PHPExcel_Shared_OLE_PPS_File::getStream().
                    
171		$eof = $this->pos >= strlen($this->data);
                    
172		// Workaround for bug in PHP 5.0.x: http://bugs.php.net/27508
                    
173		if (version_compare(PHP_VERSION, '5.0', '>=') &&
                    
                
menu-header.php git://github.com/wordpress/wordpress.git | PHP | 288 lines
                    
1<?php
                    
2/**
                    
11 *
                    
12 * @global string $self
                    
13 */
                    
13 */
                    
14$self = preg_replace( '|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF'] );
                    
15$self = preg_replace( '|^.*/wp-admin/|i', '', $self );
                    
21 *
                    
22 * @global array  $menu
                    
23 * @global array  $submenu
                    
23 * @global array  $submenu
                    
24 * @global string $parent_file
                    
25 * @global string $submenu_file
                    
26 */
                    
27global $menu, $submenu, $parent_file, $submenu_file;
                    
28
                    
                
sqlite3.php git://github.com/phpbb/phpbb.git | PHP | 430 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
13
                    
14namespace phpbb\db\driver;
                    
15
                    
19*/
                    
20class sqlite3 extends \phpbb\db\driver\driver
                    
21{
                    
118		{
                    
119			global $cache;
                    
120
                    
256	{
                    
257		global $cache;
                    
258
                    
                
NativeSessionStorageTest.php git://github.com/symfony/symfony.git | PHP | 293 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag;
                    
29 * @runTestsInSeparateProcesses
                    
30 * @preserveGlobalState disabled
                    
31 */
                    
47        session_write_close();
                    
48        array_map('unlink', glob($this->savePath.'/*'));
                    
49        if (is_dir($this->savePath)) {
                    
135
                    
136    public function testSessionGlobalIsUpToDateAfterIdRegeneration()
                    
137    {
                    
179
                    
180        if (\PHP_VERSION_ID >= 70300) {
                    
181            $options['cookie_samesite'] = 'lax';
                    
                
C_cache.php http://mycaptain.googlecode.com/svn/ | PHP | 238 lines
                    
1<?php
                    
2/**
                    
34	
                    
35		$cache = "<?php".$config."\n?>";
                    
36		$this->mc_print($cache,$cf); 
                    
49		$user="\n\$user_cache = array('photo' => \"$icon\",'name' =>\"".htmlspecialchars($blogger['nickname'])."\",'mail'	=>\"".htmlspecialchars($blogger['email'])."\",'des'=>\"".htmlspecialchars($blogger['description'])."\");";
                    
50		$cache = "<?php".$user."\n?>";
                    
51		$this->mc_print($cache,$cf);
                    
69				);";
                    
70		$cache = "<?php".$sta."\n?>";
                    
71		$this->mc_print($cache,$cf);
                    
81		while($show_com=$this->fetch_array($query)){
                    
82			$this->comment.= "\n\$com_cache[".$j."] = array('url'=>\"index.php?action=showlog&gid=".$show_com['gid']."#".$show_com['cid']."\",'name'=>\"".base64_encode(htmlspecialchars($show_com['poster']))."\",'content'=>\"".base64_encode(htmlClean2(subString($show_com['comment'],0,$comment_subnum)))."\");";
                    
83			$j++;
                    
84		}
                    
85		$cache = "<?php".$this->comment."\n?>";
                    
86		$this->mc_print($cache,$cf);
                    
                
lazyest-thumbs.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 255 lines
                    
1<?php
                    
2
                    
4
                    
5	global $gallery_root, $currentdir, $file, $gallery_address, $user_level, $lg_text_domain;
                    
6
                    
40				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
41					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.png'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
42				else
                    
47				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
48					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.jpg'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
49				else
                    
54				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
55					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.jpeg'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
56				else
                    
61				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
62					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.gif'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
63				else
                    
                
prepend.php https://bitbucket.org/dotclear/dotclear/ | PHP | 299 lines
                    
1<?php
                    
2# -- BEGIN LICENSE BLOCK ---------------------------------------
                    
14
                    
15require_once dirname(__FILE__).'/../prepend.php';
                    
16
                    
24function dc_load_locales() {
                    
25	global $_lang, $core;
                    
26
                    
43{
                    
44	global $core;
                    
45
                    
50		if ((preg_match('/^images\/menu\/(.+)$/',$img,$m)) ||
                    
51			(preg_match('/^index\.php\?pf=(.+)$/',$img,$m))) {
                    
52			if ($m[1]) {
                    
67{
                    
68	global $core,$_menu;
                    
69
                    
                
activate.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 168 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////
                    
45	{
                    
46		global $api, $member, $settings, $theme;
                    
47
                    
91					api()->add_filter('activate_form_errors', create_function('$value', '
                    
92																											$value[] = l(\'That account is already activated. If this is your account you can <a href="%s">log in</a>.\', baseurl(\'index.php?action=login\'));
                    
93
                    
120					api()->add_filter('activate_form_messages', create_function('$value', '
                    
121																												$value[] = l(\'Your account has been successfully activated. You may now <a href="%s">log in</a>.\', baseurl(\'index.php?action=login\'));
                    
122
                    
                
Regexp.java git://github.com/CleverCloud/Bianca.git | Java | 306 lines
                    
51   boolean _ignoreCase;
                    
52   boolean _isGlobal;
                    
53   int _nLoop;
                    
62   boolean _isUnicode;
                    
63   boolean _isPHP5String;
                    
64   boolean _isUtf8;
                    
145            case 'g':
                    
146               flags |= Regcomp.GLOBAL;
                    
147               break;
                    
199      _ignoreCase = (comp._flags & Regcomp.IGNORE_CASE) != 0;
                    
200      _isGlobal = (comp._flags & Regcomp.GLOBAL) != 0;
                    
201      _isAnchorBegin = (comp._flags & Regcomp.ANCHORED) != 0;
                    
236
                    
237   public boolean isGlobal() {
                    
238      return _isGlobal;
                    
                
annotation.zep.c git://github.com/phalcon/cphalcon.git | C | 498 lines
                    
67{
                    
68	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
69	zephir_fcall_cache_entry *_4 = NULL;
                    
211{
                    
212	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
213	zephir_fcall_cache_entry *_4 = NULL;
                    
351{
                    
352	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
353	zval *name_param = NULL, argument, _0;
                    
392{
                    
393	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
394	zend_long ZEPHIR_LAST_CALL_STATUS;
                    
469		zval _0, _2, _1$$3, _3$$4;
                    
470	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
471		ZVAL_UNDEF(&_0);
                    
                
ext_xdebug.h git://github.com/facebook/hiphop-php.git | C Header | 218 lines
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
45// Request Local ini config settings
                    
46// Different from php5 xdebug:
                    
47//  framebuf_size:
                    
132  XDEBUG_OPT(bool, "default_enable", DefaultEnable, true) \
                    
133  XDEBUG_OPT(bool, "dump_globals", DumpGlobals, true) \
                    
134  XDEBUG_OPT(bool, "dump_once", DumpOnce, true) \
                    
172// Retrieves the value of the given xdebug global
                    
173#define XDEBUG_GLOBAL(name) XDebugExtension::name
                    
174
                    
                
blocks.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 251 lines
                    
23{
                    
24    $selectthemes = $global_config['site_theme'];
                    
25}
                    
100    $contents .= "<td>" . $row['module'] . " " . $row['file_name'] . "</td>\n";
                    
101    $contents .= "<td>" . ( $row['active'] ? $lang_global['yes'] : $lang_global['no'] ) . "</td>\n";
                    
102    $contents .= "<td>";
                    
159							success: function(data){
                    
160								window.location="index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=blocks";
                    
161							}
                    
166						var module = $(this).val();
                    
167						window.location="index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=blocks_func&module="+module;
                    
168					});
                    
181						if (confirm(" ' . $lang_module['block_weight_confirm'] . '")){
                    
182							$.post("' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=themes&' . NV_OP_VARIABLE . '=blocks_reset_order", "checkss=' . md5( $selectthemes . $global_config['sitekey'] . session_id() ) . '", function(theResponse){
                    
183								alert(theResponse);
                    
                
Fl_GIF_Image.cxx http://luafltk.googlecode.com/svn/trunk/ | C++ | 391 lines
                    
24//
                    
25//     http://www.fltk.org/str.php
                    
26//
                    
121
                    
122  // Read in global colormap:
                    
123  uchar transparent_pixel = 0;
                    
                
Admin.class.php https://gitlab.com/prenaud76/tuleap.git | PHP | 356 lines
                    
64        $html .= '<p>';
                    
65        $html .= '<label for="formElement_name">' . $GLOBALS['Language']->getText('plugin_tracker_include_type', 'name') . ': </label>';
                    
66        $html .= '<input type="text" id="formElement_name" name="formElement_data[name]" value="' . $hp->purify($this->formElement->getName(), CODENDI_PURIFIER_CONVERT_HTML) . '" />';
                    
78        $html .= '<p>';
                    
79        $html .= '<label for="formElement_label">'.$GLOBALS['Language']->getText('plugin_tracker_include_report', 'field_label').': <font color="red">*</font></label> ';
                    
80        $html .= '<input type="text" name="formElement_data[label]" id="formElement_label" value="'. $this->formElement->getLabel() .'" size="40" />';
                    
121        $html .= '<p>';
                    
122        $html .= '<label>'.$GLOBALS['Language']->getText('plugin_tracker_include_report', 'field_label').'</label>';
                    
123        $html .= $this->formElement->getLabel();
                    
138        $html .= '<p>';
                    
139        $html .= '<label>'.$GLOBALS['Language']->getText('plugin_tracker_include_type', 'fieldset_desc').'</label>';
                    
140        $html .= $hp->purify($this->formElement->description, CODENDI_PURIFIER_CONVERT_HTML);
                    
308        $html .= '<p>';
                    
309        $html .= '<input type="submit" name="'. $name .'" value="'. $GLOBALS['Language']->getText('global', 'btn_submit') .'" />';
                    
310        $html .= '</p>';
                    
                
SVG.php https://gitlab.com/qiusct/mediawiki-i.git | PHP | 518 lines
                    
1<?php
                    
2/**
                    
43	function isEnabled() {
                    
44		global $wgSVGConverters, $wgSVGConverter;
                    
45		if ( !isset( $wgSVGConverters[$wgSVGConverter] ) ) {
                    
128	function normaliseParams( $image, &$params ) {
                    
129		global $wgSVGMaxSize;
                    
130		if ( !parent::normaliseParams( $image, $params ) ) {
                    
207	public function rasterize( $srcPath, $dstPath, $width, $height, $lang = false ) {
                    
208		global $wgSVGConverters, $wgSVGConverter, $wgSVGConverterPath;
                    
209		$err = false;
                    
212			if ( is_array( $wgSVGConverters[$wgSVGConverter] ) ) {
                    
213				// This is a PHP callable
                    
214				$func = $wgSVGConverters[$wgSVGConverter][0];
                    
301	function getLongDesc( $file ) {
                    
302		global $wgLang;
                    
303
                    
                
lib_misc.inc git://pkgs.fedoraproject.org/sahana | PHP | 365 lines
                    
26</div>
                    
27<?php
                    
28}
                    
36    <div class="message">
                    
37    <strong><?php print $msg?></strong>
                    
38    <?php print $br_str ?>
                    
54function shn_create_unique_database_field_value($base,$width,$table,$field,$constraints=null){
                    
55	global $global;
                    
56	$db=$global["db"];
                    
130var db_str="<?php echo $db_str;?>";
                    
131var sort=<?php if($sort==true) {echo "true";}else{ echo "false";}?>;
                    
132 // sort function - ascending (case-insensitive)
                    
348		var surl = unescape(window.location.pathname);	
                    
349		var mod = '<?php echo $mod; ?>';
                    
350		var act = '<?php echo $act; ?>';
                    
                
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
                    
51    protected function setUp() {
                    
52        global $SESSION;
                    
53        if (isset($SESSION->lang)) {
                    
59        } else {
                    
60            $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';
                    
61        }
                    
68    protected function tearDown() {
                    
69        global $SESSION;
                    
70        parent::tearDown();
                    
                
class-walker-nav-menu-edit.php git://github.com/wordpress/wordpress.git | PHP | 313 lines
                    
120				<div class="menu-item-handle">
                    
121					<span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span>
                    
122					<span class="item-controls">
                    
187							<?php _e( 'URL' ); ?><br />
                    
188							<input type="text" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->url ); ?>" />
                    
189						</label>
                    
194						<?php _e( 'Navigation Label' ); ?><br />
                    
195						<input type="text" id="edit-menu-item-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->title ); ?>" />
                    
196					</label>
                    
200						<?php _e( 'Title Attribute' ); ?><br />
                    
201						<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
                    
202					</label>
                    
224						<?php _e( 'Description' ); ?><br />
                    
225						<textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
                    
226						<span class="description"><?php _e( 'The description will be displayed in the menu if the current theme supports it.' ); ?></span>
                    
                
base.php git://github.com/moodle/moodle.git | PHP | 321 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
25
                    
26namespace quizaccess_seb\tests\phpunit;
                    
27
                    
32
                    
33global $CFG;
                    
34require_once($CFG->dirroot . "/mod/quiz/accessrule/seb/rule.php"); // Include plugin rule class.
                    
34require_once($CFG->dirroot . "/mod/quiz/accessrule/seb/rule.php"); // Include plugin rule class.
                    
35require_once($CFG->dirroot . "/mod/quiz/mod_form.php"); // Include plugin rule class.
                    
36
                    
73    protected function assign_user_capability($capability, $contextid, $roleid = null) {
                    
74        global $USER;
                    
75
                    
116    protected function create_test_draftarea_file(string $xml) : int {
                    
117        global $USER;
                    
118
                    
                
Env.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 350 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'Zend/Translate.php';
                    
4require_once 'Zend/Config.php';
                    
4require_once 'Zend/Config.php';
                    
5require_once 'Zend/Controller/Front.php';
                    
6require_once 'X/VlcShares/Plugins/Abstract.php';
                    
6require_once 'X/VlcShares/Plugins/Abstract.php';
                    
7require_once 'X/VlcShares/Plugins.php';
                    
8
                    
202	/**
                    
203	 * Set a static reference to a global Zend_Translate object
                    
204	 * usable through self::_() function
                    
                
WigetBrowserAdmin.cs http://zero-k.googlecode.com/svn/trunk/ | C# | 291 lines
                    
7using System.Net;
                    
8using System.Globalization;
                    
9
                    
23            this.m_baseAdminUrl = serverUrl;
                    
24            this.m_baseAdminUrlPoint = m_baseAdminUrl + "/admin.php?";
                    
25        }
                    
31
                    
32            m_baseAdminUrlPoint = m_baseAdminUrl + "/admin.php?" + "lname=" + username + "&pwstr=" + this.passwordMd5 + "&";
                    
33        }
                    
                
user_waiting.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 222 lines
                    
43    {
                    
44        Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
45        die();
                    
48    
                    
49    $sql = "INSERT INTO `" . NV_USERS_GLOBALTABLE . "` (
                    
50    `userid`, `username`, `md5username`, `password`, `email`, `full_name`, `gender`, `photo`, `birthday`, 
                    
73        $subject = $lang_module['adduser_register'];
                    
74        $message = sprintf( $lang_module['adduser_register_info'], $full_name, $global_config['site_name'], NV_MY_DOMAIN . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, $row['username'] );
                    
75        $message .= "<br /><br />------------------------------------------------<br /><br />";
                    
152$head_tds['userid']['title'] = $lang_module['userid'];
                    
153$head_tds['userid']['href'] = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=user_waiting&amp;sortby=userid&amp;sorttype=ASC";
                    
154$head_tds['username']['title'] = $lang_module['account'];
                    
154$head_tds['username']['title'] = $lang_module['account'];
                    
155$head_tds['username']['href'] = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=user_waiting&amp;sortby=username&amp;sorttype=ASC";
                    
156$head_tds['full_name']['title'] = $lang_module['name'];
                    
                
template_util.py git://pkgs.fedoraproject.org/python-kid | Python | 282 lines
                    
8__copyright__ = "Copyright 2004-2005, Ryan Tomayko"
                    
9__license__ = "MIT <http://www.opensource.org/licenses/mit-license.php>"
                    
10
                    
102
                    
103def base_class(arg, globals, locals):
                    
104    """Get base class for argument with graceful exception handling."""
                    
105    try:
                    
106        from_file = globals['__file__']
                    
107        thing = eval(arg, globals, locals)
                    
119
                    
120def base_class_extends(extends, globals, locals, all_extends=None):
                    
121    """Get Template base class for 'extends'."""
                    
122    try:
                    
123        return base_class(extends, globals, locals)
                    
124    except Exception, e:
                    
                
admin_functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 472 lines
                    
89		{
                    
90			$content_config .= "\$global_config['" . $c_config_name . "'] = \"" . nv_htmlspecialchars( $c_config_value ) . "\";\n";
                    
91		}
                    
99
                    
100	$return = file_put_contents( NV_ROOTDIR . "/" . NV_DATADIR . "/config_global.php", $content_config, LOCK_EX );
                    
101	nv_delete_all_cache();
                    
146{
                    
147	global $global_config;
                    
148
                    
233
                    
234	$endurl = ( $array_config_global['rewrite_endurl'] == $array_config_global['rewrite_exturl'] ) ? nv_preg_quote( $array_config_global['rewrite_endurl'] ) : nv_preg_quote( $array_config_global['rewrite_endurl'] ) . "|" . nv_preg_quote( $array_config_global['rewrite_exturl'] );
                    
235
                    
432{
                    
433    global $global_config;
                    
434
                    
                
tiny-images.php http://bitcero-modules.googlecode.com/svn/ | PHP | 205 lines
                    
1<?php
                    
2// $Id: tiny-images.php 511 2010-07-26 06:08:44Z i.bitcero $
                    
10
                    
11include '../../../mainfile.php';
                    
12XoopsLogger::getInstance()->activated = false;
                    
15function send_message($message){
                    
16    global $xoopsSecurity;
                    
17    
                    
36    if (!$cat->isNew()){
                    
37        $uploader = new RMFlashUploader('files-container', 'upload.php');
                    
38        $uploader->add_setting('scriptData', array(
                    
40            'category'=>$cat->id(),
                    
41            'rmsecurity'=>TextCleaner::getInstance()->encrypt($xoopsUser->uid().'|'.RMCURL.'/images.php'.'|'.$xoopsSecurity->createToken(), true))
                    
42        );
                    
76                var increments = 1/total*100;
                    
77                url = '".RMCURL."/images.php';
                    
78                    
                    
                
db_Gdata_MimeBodyString.html https://bitbucket.org/chamilo/chamilo-dev/ | HTML | 271 lines
                    
49    </script>
                    
50<h1 class="file">Gdata/MimeBodyString.php</h1>
                    
51<div class="file-nav">
                    
52<ul id="file-nav">
                    
53	<li><a href="#top">Global</a></li>
                    
54	<li><a href="#classes"><img src="images/icons/class.png"
                    
90	<dt>version</dt>
                    
91	<dd>$Id: MimeBodyString.php 23775 2011-03-01 17:25:24Z ralph $  </dd>
                    
92</dl>
                    
                
 

Source

Language