PageRenderTime 1026ms queryTime 213ms sortTime 130ms getByIdsTime 55ms findMatchingLines 97ms

100+ results results for 'php glob repo:zanaticul/demo-php' (1026 ms)

Not the results you expected?
Data.php https://gitlab.com/blingbang2016/shop | PHP | 478 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
36{
                    
37    const PRICE_SCOPE_GLOBAL               = 0;
                    
38    const PRICE_SCOPE_WEBSITE              = 1;
                    
42    const CONFIG_PARSE_URL_DIRECTIVES      = 'catalog/frontend/parse_url_directives';
                    
43    const XML_PATH_CONTENT_TEMPLATE_FILTER = 'global/catalog/content/tempate_filter';
                    
44    const XML_PATH_DISPLAY_PRODUCT_COUNT   = 'catalog/layered_navigation/display_product_count';
                    
239    /**
                    
240     * Is Global Price
                    
241     *
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
1<?php
                    
2/**
                    
153		// debug info
                    
154		global $USER;
                    
155
                    
233		// add debug info
                    
234		global $USER;
                    
235
                    
                
grid.locale-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 224 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.html
                    
11/*jslint white: true */
                    
12/*global jQuery */
                    
13(function ($) {
                    
158                masks: {
                    
159                    // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
                    
160                    // and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
160                    // and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
161                    // and https://github.com/jquery/globalize#dates for alternative formats used frequently
                    
162                    // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many
                    
163                    // information about date, time, numbers and currency formats used in different countries
                    
164                    // one should just convert the information in PHP format
                    
165                    // short date:
                    
                
questiontype.php https://gitlab.com/JrLucena/moodle | 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();
                    
                
template.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 394 lines
                    
95 * Works by first retrieving the current slug for example 'category-default.php' and then
                    
96 * trying category ID, for example 'category-1.php' and will finally fallback to category.php
                    
97 * template, if those files don't exist.
                    
185 *
                    
186 * Attempts to locate 'home.php' first before falling back to 'index.php'.
                    
187 *
                    
193function get_home_template() {
                    
194	$templates = array( 'home.php', 'index.php' );
                    
195
                    
218 * Will first look for the specifically assigned page template
                    
219 * The will search for 'page-{slug}.php' followed by 'page-id.php'
                    
220 * and finally 'page.php'
                    
296 *
                    
297 * Some examples for the 'text/plain' mime type are 'text.php', 'plain.php', and
                    
298 * finally 'text_plain.php'.
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
                    
1<?php
                    
2
                    
117	{
                    
118		global $USER;
                    
119
                    
186	{
                    
187		global $APPLICATION;
                    
188		$templateName = null;
                    
316
                    
317		global $USER;
                    
318
                    
390	{
                    
391		global $USER;
                    
392
                    
423	{
                    
424		global $USER;
                    
425
                    
                
Input.php https://gitlab.com/dleonov/my-framework-two | PHP | 419 lines
                    
120
                    
121		$superGlobal = '_' . strtoupper($name);
                    
122
                    
122
                    
123		if (isset($GLOBALS[$superGlobal]))
                    
124		{
                    
124		{
                    
125			$this->inputs[$name] = new Input($GLOBALS[$superGlobal], $this->options);
                    
126
                    
393			// Load up all the globals.
                    
394			foreach ($GLOBALS as $global => $data)
                    
395			{
                    
399					// Convert global name to input name.
                    
400					$global = strtolower($global);
                    
401					$global = substr($global, 1);
                    
                
site_speed.php https://gitlab.com/alexprowars/bitrix | PHP | 297 lines
                    
2/**
                    
3 * @global CUser $USER
                    
4 * @global CMain $APPLICATION
                    
5 */
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
8define("HELP_FILE", "settings/site_speed.php");
                    
9
                    
23$APPLICATION->SetTitle(Loc::getMessage("MAIN_SITE_SPEED_TITLE"));
                    
24require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
25
                    
100				if (\Bitrix\Main\ModuleManager::isModuleInstalled("perfmon")):
                    
101					$mark = (double)COption::GetOptionString("perfmon", "mark_php_page_rate", "");
                    
102				?>
                    
                
walkthrough_test.php https://gitlab.com/JrLucena/moodle | PHP | 309 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
29
                    
30global $CFG;
                    
31require_once(dirname(__FILE__) . '/../../../engine/lib.php');
                    
31require_once(dirname(__FILE__) . '/../../../engine/lib.php');
                    
32require_once(dirname(__FILE__) . '/../../../engine/tests/helpers.php');
                    
33
                    
                
smile_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 342 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3/** @global CMain $APPLICATION */
                    
3/** @global CMain $APPLICATION */
                    
4/** @global CDatabase $DB */
                    
5
                    
13
                    
14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/socialnetwork/include.php");
                    
15
                    
17
                    
18require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/socialnetwork/prolog.php");
                    
19
                    
191	if ($save <> '' && $strErrorMessage == '')
                    
192		LocalRedirect("socnet_smile.php?lang=".LANG."&".GetFilterParams("filter_", false));
                    
193}
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
                    
1<?php
                    
2use Bitrix\Main,
                    
50		{
                    
51			global $USER, $DB;
                    
52			if(is_object($USER) && $USER->isAuthorized())
                    
59					array('=DATE_TO' => false),
                    
60					array('>DATE_TO' => date($DB->dateFormatToPHP(\CLang::getDateFormat('FULL')), time()))
                    
61				)
                    
289
                    
290		global $APPLICATION;
                    
291		$cleanedParams = array('result', 'contact', 'message', static::ACTION_SUBSCRIBER_IDENTIFICATION);
                    
309
                    
310		global $APPLICATION;
                    
311		$cleanedParams = array('result', 'message',
                    
333
                    
334		global $APPLICATION;
                    
335		$cleanedParams = array('subscribeId', 'message', 'userContact', 'productId', static::ACTION_UNSUBSCRIBE);
                    
                
pay_system.php https://gitlab.com/alexprowars/bitrix | PHP | 410 lines
                    
1<?php
                    
2use Bitrix\Sale\PaySystem;
                    
137	{
                    
138		global $DB, $USER;
                    
139
                    
141		{
                    
142			$GLOBALS["APPLICATION"]->ThrowException(GetMessage("SKGPS_EMPTY_NAME"), "ERROR_NO_NAME");
                    
143			return false;
                    
176		{
                    
177			$GLOBALS["APPLICATION"]->ThrowException(GetMessage("SKGPS_ORDERS_TO_PAYSYSTEM"), "ERROR_ORDERS_TO_PAYSYSTEM");
                    
178			return false;
                    
                
import.php https://gitlab.com/JrLucena/moodle | PHP | 247 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24
                    
25require_once(dirname(__FILE__).'/../../../config.php');
                    
26require_once($CFG->dirroot.'/lib/formslib.php');
                    
26require_once($CFG->dirroot.'/lib/formslib.php');
                    
27require_once($CFG->dirroot.'/grade/lib.php');
                    
28require_once($CFG->libdir.'/gradelib.php');
                    
28require_once($CFG->libdir.'/gradelib.php');
                    
29require_once('import_outcomes_form.php');
                    
30
                    
34
                    
35$PAGE->set_url('/grade/edit/outcome/import.php', array('courseid' => $courseid));
                    
36$PAGE->set_pagelayout('admin');
                    
46    if (empty($CFG->enableoutcomes)) {
                    
47        redirect('../../index.php?id='.$courseid);
                    
48    }
                    
                
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";
                    
                
wysiwyg.api.php https://gitlab.com/endomorphosis/tactilevision | PHP | 206 lines
                    
1<?php
                    
2
                    
64            ),
                    
65            // A list of global, native editor configuration settings to
                    
66            // override. To be used rarely and only when required.
                    
                
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();
                    
                
grid.locale-ro.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 198 lines
                    
5 * Dual licensed under the MIT and GPL licenses:
                    
6 * http://www.opensource.org/licenses/mit-license.php
                    
7 * http://www.gnu.org/licenses/gpl.html
                    
10/*jslint white: true */
                    
11/*global jQuery */
                    
12(function (factory) {
                    
20	} else {
                    
21		// Browser globals
                    
22		factory(jQuery);
                    
                
s2member-files.php https://gitlab.com/Gashler/dp | PHP | 108 lines
                    
1<?php
                    
2if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
                    
4
                    
5global /* A Multisite ``$base`` configuration? */ $base;
                    
6$ws_plugin__s2member_temp_s_base = (!empty ($base)) ? $base : c_ws_plugin__s2member_utils_urls::parse_url (network_home_url ("/"), PHP_URL_PATH);
                    
20	RewriteEngine On
                    
21	RewriteBase <?php echo $ws_plugin__s2member_temp_s_base . "\n"; ?>
                    
22
                    
28	RewriteCond %{ENV:s2member_file_download_wp_vdir_check} !^complete$
                    
29	RewriteCond %{THE_REQUEST} ^(?:GET|HEAD)(?:[\ ]+)(?:<?php echo preg_quote ($ws_plugin__s2member_temp_s_base, " "); ?>)([_0-9a-zA-Z\-]+/)(?:wp-content/)
                    
30	RewriteRule ^(.*)$ - [E=s2member_file_download_wp_vdir:,E=s2member_file_download_wp_vdir:%1,E=s2member_file_download_wp_vdir_check:complete]
                    
107
                    
108<?php unset ($ws_plugin__s2member_temp_s_base); ?>
                    
                
Log.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 247 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
119		$this->_file_ext = (isset($config['log_file_extension']) && $config['log_file_extension'] !== '')
                    
120			? ltrim($config['log_file_extension'], '.') : 'php';
                    
121
                    
154	 *
                    
155	 * Generally this function will be called using the global log_message() function
                    
156	 *
                    
181			$newfile = TRUE;
                    
182			// Only add protection to php files
                    
183			if ($this->_file_ext === 'php')
                    
184			{
                    
185				$message .= "<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>\n\n";
                    
186			}
                    
                
flatrate.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 171 lines
                    
1<?php
                    
2class flatrate {
                    
68	function getQuote($for_display = false) {
                    
69		global $wpdb, $wpsc_cart;
                    
70		if (isset($_POST['country'])) {
                    
123	function get_item_shipping(&$cart_item) {
                    
124		global $wpdb, $wpsc_cart;
                    
125		$unit_price = $cart_item->unit_price;
                    
                
grid.locale-fa.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 173 lines
                    
3 * Dual licensed under the MIT and GPL licenses:
                    
4 * http://www.opensource.org/licenses/mit-license.php
                    
5 * http://www.gnu.org/licenses/gpl.html
                    
8/*jslint white: true */
                    
9/*global jQuery */
                    
10(function ($) {
                    
                
widgets.php https://gitlab.com/endomorphosis/falkenstein | PHP | 241 lines
                    
1<?php
                    
2/**
                    
14function wp_list_widgets() {
                    
15	global $wp_registered_widgets, $sidebars_widgets, $wp_registered_widget_controls;
                    
16
                    
78			<div class="sidebar-name-arrow"><br /></div>
                    
79			<h3><?php echo esc_html( $sidebar_name ); ?> <span class="spinner"></span></h3>
                    
80		</div>
                    
80		</div>
                    
81		<?php
                    
82	}
                    
105function wp_list_widget_controls_dynamic_sidebar( $params ) {
                    
106	global $wp_registered_widgets;
                    
107	static $i = 0;
                    
126function next_widget_id_number($id_base) {
                    
127	global $wp_registered_widgets;
                    
128	$number = 1;
                    
                
cat_contractor_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php");
                    
4global $APPLICATION;
                    
5global $DB;
                    
5global $DB;
                    
6global $USER;
                    
7
                    
10$selfFolderUrl = $adminPage->getSelfFolderUrl();
                    
11$listUrl = $selfFolderUrl."cat_contractor_list.php?lang=".LANGUAGE_ID;
                    
12$listUrl = $adminSidePanelHelper->editUrlToPublicPage($listUrl);
                    
20{
                    
21	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
22
                    
                
README.md https://gitlab.com/freebird/WebApp | Markdown | 344 lines
                    
12$js = new AssetCollection(array(
                    
13    new GlobAsset('/path/to/js/*'),
                    
14    new FileAsset('/path/to/another.js'),
                    
65
                    
66``` php
                    
67<?php
                    
96 * `LessFilter`: parses LESS into CSS (using less.js with node.js)
                    
97 * `LessphpFilter`: parses LESS into CSS (using lessphp)
                    
98 * `OptiPngFilter`: optimize your PNGs
                    
105 * `Sass\ScssFilter`: parses SCSS into CSS
                    
106 * `ScssphpFilter`: parses SCSS using scssphp
                    
107 * `SeparatorFilter`: inserts a separator between assets to prevent merge failures
                    
135
                    
136``` php
                    
137<?php
                    
                
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";
                    
                
person_type.php https://gitlab.com/alexprowars/bitrix | PHP | 225 lines
                    
1<?php
                    
2
                    
2
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/sale/general/person_type.php");
                    
4
                    
8	{
                    
9		global $DB;
                    
10
                    
158	{
                    
159		global $DB;
                    
160
                    
216
                    
217		unset($GLOBALS["SALE_PERSON_TYPE_LIST_CACHE"]);
                    
218
                    
                
perfmon_hit_grouped.php https://gitlab.com/alexprowars/bitrix | PHP | 247 lines
                    
5define("PERFMON_STOP", true);
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
7/** @global CMain $APPLICATION */
                    
7/** @global CMain $APPLICATION */
                    
8/** @global CDatabase $DB */
                    
9/** @global CUser $USER */
                    
10Loader::includeModule('perfmon');
                    
11require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/perfmon/prolog.php");
                    
12
                    
159
                    
160	$row->AddViewField("SCRIPT_NAME", '<a href="perfmon_hit_list.php?lang='.LANGUAGE_ID.'&amp;set_filter=Y&amp;find_script_name='.$f_SCRIPT_NAME.'">'.$f_SCRIPT_NAME.'</a>');
                    
161
                    
201
                    
202require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
203
                    
                
rating_list.php https://gitlab.com/alexprowars/bitrix | PHP | 201 lines
                    
8
                    
9require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
10
                    
23{
                    
24	global $FilterArr, $lAdmin;
                    
25	foreach ($FilterArr as $f) global $$f;
                    
125			"TEXT"=>GetMessage("RATING_LIST_EDIT"),
                    
126			"ACTION"=>$lAdmin->ActionRedirect("rating_edit.php?ID=".$f_ID)
                    
127		),
                    
148		"TEXT"=>GetMessage("RATING_LIST_ADD"),
                    
149		"LINK"=>"rating_edit.php?lang=".LANG,
                    
150		"TITLE"=>GetMessage("RATING_LIST_ADD_TITLE"),
                    
157$APPLICATION->SetTitle(GetMessage("MAIN_RATING_LIST"));
                    
158require_once ($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/prolog_admin_after.php");
                    
159
                    
                
Database.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 450 lines
                    
1<?php
                    
2
                    
14 * all control and shepherding of database connections into a single location
                    
15 * without the use of globals.
                    
16 */
                    
50  /**
                    
51   * A processed copy of the database connection information from settings.php.
                    
52   *
                    
211  final public static function parseConnectionInfo() {
                    
212    global $databases;
                    
213
                    
260   * Under normal circumstances the preferred way to specify database
                    
261   * credentials is via settings.php. However, this method allows them to be
                    
262   * added at arbitrary times, such as during unit tests, when connecting to
                    
272   *   The database connection information, as it would be defined in
                    
273   *   settings.php. Note that the structure of this array will depend on the
                    
274   *   database driver it is connecting to.
                    
                
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 https://gitlab.com/cel/nameid | PHP | 408 lines
                    
1<?php
                    
2/*
                    
21
                    
22require_once ("lib/config.inc.php");
                    
23
                    
23
                    
24require_once ("lib/html.inc.php");
                    
25require_once ("lib/messages.inc.php");
                    
25require_once ("lib/messages.inc.php");
                    
26require_once ("lib/openid.inc.php");
                    
27require_once ("lib/request.inc.php");
                    
27require_once ("lib/request.inc.php");
                    
28require_once ("lib/session.inc.php");
                    
29
                    
29
                    
30require_once ("libauth/authenticator.inc.php");
                    
31require_once ("libauth/namecoin_rpc.inc.php");
                    
                
AnalyserTest.php https://github.com/sebastianbergmann/phploc.git | PHP | 407 lines
                    
14use function sprintf;
                    
15use PHPUnit\Framework\TestCase;
                    
16
                    
202            [
                    
203                __DIR__ . '/../_files/tests_old.php',
                    
204            ],
                    
214            [
                    
215                __DIR__ . '/../_files/twoTestsThatIndirectlyExtendOldPHPUnitTestCase.php',
                    
216            ],
                    
226            [
                    
227                __DIR__ . '/../_files/twoTestsThatIndirectlyExtendPHPUnitTestCase.php',
                    
228            ],
                    
362
                    
363        $this->assertSame(0, $result['llocGlobal']);
                    
364    }
                    
                
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");
                    
                
events_test.php https://gitlab.com/JrLucena/moodle | PHP | 372 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27global $CFG;
                    
28require_once($CFG->dirroot . '/mod/choice/lib.php');
                    
53    protected function setup() {
                    
54        global $DB;
                    
55
                    
67    public function test_answer_submitted() {
                    
68        global $DB;
                    
69        // Generate user data.
                    
84        $this->assertEquals(array($optionids[3]), $events[0]->other['optionid']);
                    
85        $expected = array($this->course->id, "choice", "choose", 'view.php?id=' . $this->cm->id, $this->choice->id, $this->cm->id);
                    
86        $this->assertEventLegacyLogData($expected, $events[0]);
                    
94    public function test_answer_submitted_multiple() {
                    
95        global $DB;
                    
96
                    
                
autoloader.php https://gitlab.com/JrLucena/moodle | PHP | 203 lines
                    
26/**
                    
27 * Class phpunit_autoloader.
                    
28 *
                    
36 * vendor/bin/phpunit core_component_testcase
                    
37 * vendor/bin/phpunit lib/tests/component_test.php
                    
38 * vendor/bin/phpunit core_component_testcase lib/tests/component_test.php
                    
44 */
                    
45class phpunit_autoloader implements PHPUnit_Runner_TestSuiteLoader {
                    
46    public function load($suiteClassName, $suiteClassFile = '') {
                    
68        if ($suiteClassFile) {
                    
69            PHPUnit_Util_Fileloader::checkAndLoad($suiteClassFile);
                    
70            if (class_exists($suiteClassName, false)) {
                    
100                    $testfile = implode('_', $parts);
                    
101                    $fullpath = "{$fulldir}/tests/{$testfile}_test.php";
                    
102                    if (is_readable($fullpath)) {
                    
                
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;
                    
                
class-wp-customize-setting.php https://gitlab.com/Gashler/dp | PHP | 439 lines
                    
1<?php
                    
2/**
                    
407	public function update( $value ) {
                    
408		global $custom_image_header;
                    
409
                    
                
projectteam.php https://gitlab.com/julienv/joomleague | PHP | 394 lines
                    
1<?php
                    
2/**
                    
3* @copyright	Copyright (C) 2006-2014 joomleague.at. All rights reserved.
                    
4* @license		GNU/GPL, see LICENSE.php
                    
5* Joomla! is free software. This version may have been modified pursuant
                    
8* other free or open source software licenses.
                    
9* See COPYRIGHT.php for copyright notices and details.
                    
10*/
                    
55		if ($model->isCheckedOut($user->get('id'))) {
                    
56			$this->setRedirect('index.php?option=com_joomleague&task=projectteam.display&view=projectteams', JText::_('EDITED BY ANOTHER ADMIN'));
                    
57		}
                    
97	    }	
                    
98	    $link = 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display';
                    
99	  	$this->setRedirect($link, $msg);  
                    
174
                    
175		$link = 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display';
                    
176		$this->setRedirect($link, $msg);
                    
                
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
                    
                
questiontype.php https://gitlab.com/JrLucena/moodle | PHP | 170 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
28
                    
29require_once($CFG->libdir . '/questionlib.php');
                    
30
                    
47    public function get_question_options($question) {
                    
48        global $DB;
                    
49        $question->options = $DB->get_record('qtype_essay_options',
                    
54    public function save_question_options($formdata) {
                    
55        global $DB;
                    
56        $context = $formdata->context;
                    
91    public function delete_question($questionid, $contextid) {
                    
92        global $DB;
                    
93
                    
                
base.php https://gitlab.com/alexprowars/bitrix | PHP | 539 lines
                    
1<?php
                    
2namespace Bitrix\Report\VisualConstructor\Fields;
                    
531	{
                    
532		global $APPLICATION;
                    
533		$defaultParams = array(
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 255 lines
                    
1<?php
                    
2
                    
10/** @var array $arResult */
                    
11/** @global CMain $APPLICATION */
                    
12
                    
61
                    
62if (!$GLOBALS["USER"]->IsAuthorized())
                    
63{	
                    
75
                    
76		if (!CSocNetMessages::MarkMessageRead($GLOBALS["USER"]->GetID(), intval($_REQUEST["eventID"])))
                    
77		{
                    
88
                    
89		if (!CSocNetMessages::DeleteMessage(intval($_REQUEST["eventID"]), $GLOBALS["USER"]->GetID()))
                    
90		{
                    
101
                    
102		if (!CSocNetUserRelations::BanUser($GLOBALS["USER"]->GetID(), intval($_REQUEST["userID"])))
                    
103		{
                    
                
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;
                    
                
shortcodes.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 334 lines
                    
1<?php
                    
2/**
                    
40 * @var array
                    
41 * @global array $shortcode_tags
                    
42 */
                    
93function add_shortcode($tag, $func) {
                    
94	global $shortcode_tags;
                    
95
                    
108function remove_shortcode($tag) {
                    
109	global $shortcode_tags;
                    
110
                    
117 * This function is simple, it clears all of the shortcode tags by replacing the
                    
118 * shortcodes global by a empty array. This is actually a very efficient method
                    
119 * for removing all shortcodes.
                    
124function remove_all_shortcodes() {
                    
125	global $shortcode_tags;
                    
126
                    
                
service.php https://gitlab.com/alexprowars/bitrix | PHP | 416 lines
                    
1<?php
                    
2/**
                    
36	const AUTHORIZE = "/register/";
                    
37	const REDIRECT_URI = "/bitrix/tools/seo_client.php";
                    
38
                    
73	{
                    
74		global $CACHE_MANAGER;
                    
75		if (static::$auth === null)
                    
167	{
                    
168		global $CACHE_MANAGER;
                    
169
                    
                
comments.php https://gitlab.com/hop23typhu/list-theme | PHP | 465 lines
                    
129 *
                    
130 * @global WP_Query $wp_query Query object.
                    
131 *
                    
228
                    
229	<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
                    
230
                    
239			<div class="comment-meta commentmetadata">
                    
240				<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><?php printf( __( '%1$s at %2$s', 'genesis' ), get_comment_date(), get_comment_time() ); ?></a>
                    
241				<?php edit_comment_link( __( '(Edit)', 'genesis' ), '' ); ?>
                    
277
                    
278	$GLOBALS['comment'] = $comment; ?>
                    
279
                    
279
                    
280	<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
                    
281	<article <?php echo genesis_attr( 'comment' ); ?>>
                    
                
job-template.php https://gitlab.com/hop23typhu/list-theme | PHP | 436 lines
                    
1<?php
                    
2if( !function_exists( 'jm_job_template_loader' ) ) :
                    
8			|| is_tax( 'job_location' ) ) {
                    
9				$template = locate_template( 'archive-noo_job.php' );
                    
10			}
                    
49				?>
                    
50				<meta property="og:image" content="<?php echo $social_share_img; ?>"/>
                    
51	    		<meta property="og:image:secure_url" content="<?php echo $social_share_img; ?>" />
                    
51	    		<meta property="og:image:secure_url" content="<?php echo $social_share_img; ?>" />
                    
52				<?php
                    
53			endif;
                    
82
                    
83		global $wp_query;
                    
84		if(!empty($loop_args['query'])) {
                    
110		if( $display_style !== 'slider' ) {
                    
111			include(locate_template("layouts/noo_job-loop.php"));
                    
112		} else {
                    
                
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    {
                    
                
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        }
                    
                
class_install.php https://gitlab.com/elasa/vb-elasa.ir | PHP | 270 lines
                    
1<?php
                    
2/*======================================================================*\
                    
72	{
                    
73		global $db, $vbulletin;
                    
74		
                    
93		// Grab the DBAlter class
                    
94		require_once(DIR . '/includes/class_dbalter.php');
                    
95		
                    
110	{
                    
111		global $vbulletin, $code, $arr;
                    
112		
                    
115		
                    
116		if (!file_exists(self::$installpath . '/' . $version . '.php'))
                    
117		{
                    
118			// Missing version file
                    
119			self::error($version . '.php not found in directory ' . self::$installpath);
                    
120		}
                    
                
de.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 57 lines
                    
1<?php
                    
2
                    
2
                    
3global $_MODULE;
                    
4$_MODULE = array();
                    
                
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;
                    
                
BotApi.php https://gitlab.com/rasadeghnasab/advisor-telegrambot | PHP | 482 lines
                    
1<?php
                    
2
                    
103
                    
104    isset($this->keyboard_configs['global_buttons']) && $current_state->last_state != null ? $this->keyboardGlobalButtons() : $this->keyboard;
                    
105    if ($current_state->body == 'قبل از نمایش نتیجه') {
                    
105    if ($current_state->body == 'قبل از نمایش نتیجه') {
                    
106      $this->keyboardGlobalButtons(['']);
                    
107    }
                    
185    $this->getKeyboard($current_state, $question);
                    
186    $this->keyboardGlobalButtons(['global_buttons' => '']);
                    
187    $this->keyboardMarkup();
                    
222    $this->getKeyboard($current_state, $question);
                    
223    $this->keyboardGlobalButtons(['global_buttons' => '']);
                    
224    $this->keyboardMarkup();
                    
249    $this->getKeyboard($currentState, $question);
                    
250//    $this->keyboardGlobalButtons(['global_buttons' => '']);
                    
251    $this->keyboardMarkup();
                    
                
composite_log.php https://gitlab.com/alexprowars/bitrix | PHP | 461 lines
                    
11/**
                    
12 * @global \CUser $USER
                    
13 * @global \CMain $APPLICATION
                    
14 */
                    
15require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
16require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
16require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
17define("HELP_FILE", "settings/composite_pages.php");
                    
18
                    
221		$messageCell =
                    
222			'<a href="composite_diff.php?lang='.LANGUAGE_ID.'&log_id='.$record["ID"].'" target="_blank">'.
                    
223			Loc::getMessage("MAIN_COMPOSITE_LOG_VIEW_DIFF").'</a>';
                    
235	{
                    
236		$userCell = '<a href="user_edit.php?lang='.LANGUAGE_ID.'&ID=%s">%s</a>';
                    
237		$userName = \CUser::formatName(
                    
                
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); };
                    
                
apc.object-cache.php https://gitlab.com/endomorphosis/falkenstein | PHP | 380 lines
                    
19if ( version_compare( '5.2.4', phpversion(), '>=' ) ) {
                    
20	wp_die( 'The APC object cache backend requires PHP 5.2 or higher. You are running ' . phpversion() . '. Please remove the <code>object-cache.php</code> file from your content directory.' );
                    
21}
                    
33function wp_cache_add( $key, $data, $group = '', $expire = 0 ) {
                    
34	global $wp_object_cache;
                    
35
                    
99
                    
100function wp_cache_add_global_groups( $groups ) {
                    
101	global $wp_object_cache;
                    
160		$this->global_groups = array_merge( $this->global_groups, $groups );
                    
161		$this->global_groups = array_unique( $this->global_groups );
                    
162	}
                    
378	$GLOBALS['wp_filter']['all'][-100]['apc_not_actually_running'] = array( 'function' => 'apc_not_actually_running', 'accepted_args' => 0 );
                    
379	require_once ( ABSPATH . WPINC . '/cache.php' );
                    
380endif;
                    
                
blog-layout.php https://gitlab.com/hop23typhu/list-theme | PHP | 281 lines
                    
1<?php
                    
2/**
                    
12
                    
13global $wp_query;
                    
14
                    
280
                    
281// Omit closing PHP tag to avoid "Headers already sent" issues.
                    
282
                    
                
after-the-deadline.php https://gitlab.com/endomorphosis/falkenstein | PHP | 286 lines
                    
28include( 'after-the-deadline/config-unignore.php' );
                    
29include( 'after-the-deadline/proxy.php' );
                    
30
                    
63	if ( ! defined( 'ATD_TINYMCE_4' ) ) {
                    
64		define( 'ATD_TINYMCE_4', ( ! empty( $GLOBALS['tinymce_version'] ) && substr( $GLOBALS['tinymce_version'], 0, 1 ) >= 4 ) );
                    
65	}
                    
90
                    
91	/* kill the spellchecker.. don't need no steenkin PHP spell checker */
                    
92	foreach ( $buttons as $key => $button ) {
                    
122
                    
123	$init_array['atd_rpc_url']        = admin_url( 'admin-ajax.php?action=proxy_atd&url=' );
                    
124	$init_array['atd_ignore_rpc_url'] = admin_url( 'admin-ajax.php?action=atd_ignore&phrase=' );
                    
252
                    
253	$pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'admin.php', 'profile.php' );
                    
254
                    
                
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);
                    
                
shortcodes.php https://gitlab.com/hop23typhu/list-theme | PHP | 242 lines
                    
1<?php
                    
2
                    
185		if($footer) {
                    
186			$GLOBALS['lsSliderInit'][] = $output['init'];
                    
187			return $output['markup'];
                    
210
                    
211			// Get phpQuery
                    
212			if(!class_exists('phpQuery')) {
                    
213				libxml_use_internal_errors(true);
                    
214				include LS_ROOT_PATH.'/helpers/phpQuery.php';
                    
215			}
                    
216
                    
217			include LS_ROOT_PATH.'/config/defaults.php';
                    
218			include LS_ROOT_PATH.'/includes/slider_markup_init.php';
                    
218			include LS_ROOT_PATH.'/includes/slider_markup_init.php';
                    
219			include LS_ROOT_PATH.'/includes/slider_markup_html.php';
                    
220			$lsInit = implode('', $lsInit);
                    
                
wrapper.php https://gitlab.com/hop23typhu/list-theme | PHP | 213 lines
                    
1<?php
                    
2
                    
2
                    
3global $wpcom_api_key, $akismet_api_host, $akismet_api_port;
                    
4
                    
                
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    ),
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
88	protected static function getSettings() {
                    
89		global $current_user;
                    
90
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
541	/**
                    
542	 * Sorting method for WPBMap::generateUserData method. Called by usort php function.
                    
543	 * @deprecated - use Vc_Sort::sortByKey since 4.4
                    
                
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 />
                    
                
functions.wp-scripts.php https://gitlab.com/Suhailgit/Project | PHP | 293 lines
                    
1<?php
                    
2/**
                    
13 *
                    
14 * @global WP_Scripts $wp_scripts
                    
15 *
                    
20function wp_scripts() {
                    
21	global $wp_scripts;
                    
22	if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
                    
51 *
                    
52 * Called by admin-header.php and wp_head hook. Since it is called by wp_head on every page load,
                    
53 * the function does not instantiate the WP_Scripts object unless script names are explicitly passed.
                    
53 * the function does not instantiate the WP_Scripts object unless script names are explicitly passed.
                    
54 * Makes use of already-instantiated $wp_scripts global if present. Use provided wp_print_scripts
                    
55 * hook to register/enqueue new scripts.
                    
180	if ( ( is_admin() && 'admin_enqueue_scripts' !== $current_filter ) ||
                    
181		( 'wp-login.php' === $GLOBALS['pagenow'] && 'login_enqueue_scripts' !== $current_filter )
                    
182	) {
                    
                
lib.php https://gitlab.com/JrLucena/moodle | PHP | 231 lines
                    
1<?php
                    
2
                    
17
                    
18require_once($CFG->libdir.'/gradelib.php');
                    
19
                    
24function get_new_importcode() {
                    
25    global $USER, $DB;
                    
26
                    
46function grade_import_commit($courseid, $importcode, $importfeedback=true, $verbose=true) {
                    
47    global $CFG, $USER, $DB, $OUTPUT;
                    
48
                    
159        }
                    
160        echo $OUTPUT->continue_button($CFG->wwwroot.'/grade/index.php?id='.$courseid);
                    
161    }
                    
180function get_unenrolled_users_in_import($importcode, $courseid) {
                    
181    global $CFG, $DB;
                    
182
                    
                
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 */
                    
                
culture_admin.php https://gitlab.com/alexprowars/bitrix | PHP | 160 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @global CUser $USER
                    
4 * @global CMain $APPLICATION
                    
5 */
                    
6require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
8define("HELP_FILE", "settings/culture_admin.php");
                    
9
                    
116
                    
117	$row = &$adminList->AddRow($id, $culture, "culture_edit.php?ID=".$id."&lang=".LANGUAGE_ID, Loc::getMessage("LANG_EDIT_TITLE"));
                    
118	$row->AddViewField("ID", $id);
                    
118	$row->AddViewField("ID", $id);
                    
119	$row->AddField("NAME", '<a href="culture_edit.php?ID='.$id.'&amp;lang='.LANGUAGE_ID.'" title="'.Loc::getMessage("LANG_EDIT_TITLE").'">'.$name.'</a>', $name);
                    
120	$row->AddInputField("CODE");
                    
                
historyservice.php https://gitlab.com/alexprowars/bitrix | PHP | 173 lines
                    
1<?
                    
2include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bizproc/classes/general/historyservice.php");
                    
3
                    
13	{
                    
14		global $DB;
                    
15
                    
38	{
                    
39		global $DB;
                    
40
                    
60	{
                    
61		global $DB;
                    
62
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 198 lines
                    
1<?php
                    
2/**
                    
10 * Bitrix vars
                    
11 * @global CUser $USER
                    
12 * @global CMain $APPLICATION
                    
                
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'));
                    
                
lib.php https://gitlab.com/JrLucena/moodle | PHP | 339 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24 */
                    
25require_once($CFG->dirroot . '/repository/lib.php');
                    
26
                    
83    private function init_youtube_service() {
                    
84        global $CFG;
                    
85
                    
86        if (!isset($this->service)) {
                    
87            require_once($CFG->libdir . '/google/lib.php');
                    
88            $this->client = get_google_client();
                    
132    public function search($search_text, $page = 0) {
                    
133        global $SESSION;
                    
134        $sort = optional_param('youtube_sort', '', PARAM_TEXT);
                    
179    private function _get_collection($keyword, $start, $max, $sort) {
                    
180        global $SESSION;
                    
181
                    
                
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
                    
                
foundation.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 372 lines
                    
5 * Free to use under the MIT license.
                    
6 * http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
102
                    
103    // global Foundation cache object
                    
104    cache : {},
                    
115
                    
116      // set foundation global scope
                    
117      this.scope = scope || this.scope;
                    
                
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);
                    
                
2011-97-079.html https://gitlab.com/bernagg/TI | HTML | 192 lines
                    
11<link rel="alternate" type="application/rss+xml" title="A Nashville Music Blog RSS Feed" href="http://latanialovewright.info/?feed=rss2" />
                    
12<link rel="pingback" href="http://latanialovewright.info/xmlrpc.php" />
                    
13<link rel="alternate" type="application/rss+xml" title="A Nashville Music Blog &raquo; crowd funding Tag Feed" href="http://latanialovewright.info/?feed=rss2&amp;tag=crowd-funding" />
                    
13<link rel="alternate" type="application/rss+xml" title="A Nashville Music Blog &raquo; crowd funding Tag Feed" href="http://latanialovewright.info/?feed=rss2&amp;tag=crowd-funding" />
                    
14<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://latanialovewright.info/xmlrpc.php?rsd" />
                    
15<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://latanialovewright.info/wp-includes/wlwmanifest.xml" /> 
                    
57                  </p>
                    
58        <p>What is crowdfunding? you may wonder, so let me explain. If someone or an organization of some type (it can be a loosly defined group or a corporation) has an idea, but not the money to see it come to fruition, they can go to the global masses to finance their plan. For example, charities are <em>all</em> crowd funded, as are churches. Political campaigns are crowd funded. And crowdfunding has financed independent films, music albums, and many other projects via the different <a href="http://90MinuteCashAdvance.com/crowdfunding" target="_blank">crowdfunding sites</a> online. In this short article, let&#8217;s look at some of them and what they do. </p>
                    
59<p>Indiegogo (http://Indiegogo.com)</p>
                    
178            <li>
                    
179        <a href="http://latanialovewright.info/wp-login.php">Log in</a>      </li>
                    
180          </ul>
                    
                
2011-43-089.html https://gitlab.com/bernagg/TI | HTML | 192 lines
                    
11<link rel="alternate" type="application/rss+xml" title="A Nashville Music Blog RSS Feed" href="http://latanialovewright.info/?feed=rss2" />
                    
12<link rel="pingback" href="http://latanialovewright.info/xmlrpc.php" />
                    
13<link rel="alternate" type="application/rss+xml" title="A Nashville Music Blog &raquo; crowdfunding Tag Feed" href="http://latanialovewright.info/?feed=rss2&amp;tag=crowdfunding" />
                    
13<link rel="alternate" type="application/rss+xml" title="A Nashville Music Blog &raquo; crowdfunding Tag Feed" href="http://latanialovewright.info/?feed=rss2&amp;tag=crowdfunding" />
                    
14<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://latanialovewright.info/xmlrpc.php?rsd" />
                    
15<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://latanialovewright.info/wp-includes/wlwmanifest.xml" /> 
                    
57                  </p>
                    
58        <p>What is crowdfunding? you may wonder, so let me explain. If someone or an organization of some type (it can be a loosly defined group or a corporation) has an idea, but not the money to see it come to fruition, they can go to the global masses to finance their plan. For example, charities are <em>all</em> crowd funded, as are churches. Political campaigns are crowd funded. And crowdfunding has financed independent films, music albums, and many other projects via the different <a href="http://90MinuteCashAdvance.com/crowdfunding" target="_blank">crowdfunding sites</a> online. In this short article, let&#8217;s look at some of them and what they do. </p>
                    
59<p>Indiegogo (http://Indiegogo.com)</p>
                    
178            <li>
                    
179        <a href="http://latanialovewright.info/wp-login.php">Log in</a>      </li>
                    
180          </ul>
                    
                
newreply.php?tid=8.html https://gitlab.com/Starbound-Fr/archive | HTML | 326 lines
                    
84      
                    
85<li id="nav-forums"> <a href="index.php.html"><i style="font-size: 14px;" class="fa fa-globe fa-fw"></i> Forums</a></li>
                    
86
                    
88      
                    
89<li id="nav-search"> <a href="search.php.html"><i style="font-size: 14px;" class="fa fa-search fa-fw"></i> Recherche</a></li>
                    
90      
                    
90      
                    
91<li id="nav-member"> <a href="memberlist.php.html"><i style="font-size: 14px;" class="fa fa-user fa-fw"></i> Membres</a></li>
                    
92      
                    
148				<div class="wrapper">
                    
149					<div id="float_left"><a href="index.php.html"><img class="logo-site" src="../wp-content/themes/sb-fr/images/logo.png.html" alt="Starbound-Fr | Forum" /></a>
                    
150                  
                    
252<tr>
                    
253<td class="trow2" colspan="2"><span class="smalltext float_right" style="padding-top: 3px;"><a href="member.php%3Faction=register.html">S’enregistrer ?</a> | <a href="member.php%3Faction=lostpw.html">Perte du mot de passe ?</a>&nbsp;</span>&nbsp;<input type="submit" class="button" value="Se connecter" tabindex="3" /></td>
                    
254</tr>
                    
                
VarCloner.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 324 lines
                    
1<?php
                    
2
                    
40        $cookie = (object) array();     // Unique object used to detect hard references
                    
41        $gid = uniqid(mt_rand(), true); // Unique string used to detect the special $GLOBALS variable
                    
42        $a = null;                      // Array cast for nested structures
                    
127
                    
128                            // Copies of $GLOBALS have very strange behavior,
                    
129                            // let's detect them with some black magic
                    
132
                    
133                            // Happens with copies of $GLOBALS
                    
134                            if (isset($v[$gid])) {
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
164                                } else {
                    
165                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
166                                }
                    
                
update.zep.c git://github.com/phalcon/cphalcon.git | C | 541 lines
                    
102{
                    
103	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
104	zend_long type, ZEPHIR_LAST_CALL_STATUS;
                    
336{
                    
337	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
338	zval *columns_param = NULL, _0, _1, _2, _3;
                    
375	zval _1, _2, _3, _4;
                    
376	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
377	zend_long ZEPHIR_LAST_CALL_STATUS;
                    
413{
                    
414	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
415	zend_long ZEPHIR_LAST_CALL_STATUS;
                    
466	zval column, value, _0, _1, *_2, _3, _11, _12, _6$$3, _8$$3, _9$$4, _10$$4;
                    
467	zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
                    
468	zephir_fcall_cache_entry *_7 = NULL;
                    
                
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 {
                    
                
cxthemes-plugin-update-checker.php https://bitbucket.org/daniellbraun/wildernessatthesmokies.git | PHP | 281 lines
                    
71		
                    
72		if ( 'plugins.php' == $pagenow || 'plugin-install.php' == $pagenow ) {
                    
73			
                    
95						'update_button_text' => __( 'Please register on the Plugins page to get this update', 'create-customer-order' ),
                    
96						'plugin_register_url' => esc_url( admin_url( "plugins.php?{$this->slug}-purchase-code" ) ),
                    
97					)
                    
208							
                    
209						<?php } else if ( 'connection-error' == $notification ) { ?>
                    
210							
                    
211							<div class="cx-plugin-update-notification">
                    
212								<?php _e( 'You are unable to connect to our update server at this time. Please check your connection, or try again later.', 'create-customer-order' ); ?>
                    
213							</div>
                    
256			$purchase_code = get_option( "cx_{$this->slug}_envato_purchase_code" );
                    
257			$url = esc_url( admin_url( "plugins.php?{$this->slug}-purchase-code" ) );
                    
258			
                    
                
task.php https://gitlab.com/alexprowars/bitrix | PHP | 534 lines
                    
1<?php
                    
2/**
                    
24	{
                    
25		/** @global CMain $APPLICATION */
                    
26		global $DB, $APPLICATION;
                    
72	{
                    
73		global $CACHE_MANAGER, $DB;
                    
74
                    
86	{
                    
87		global $DB, $CACHE_MANAGER;
                    
88
                    
108	{
                    
109		global $DB;
                    
110
                    
155	{
                    
156		global $DB, $CACHE_MANAGER;
                    
157
                    
                
user.php https://gitlab.com/alexprowars/bitrix | PHP | 556 lines
                    
1<?php
                    
2
                    
71
                    
72		global $USER;
                    
73		$USER->login(null, null, 'Y');
                    
173		$port = in_array($port, array(80, 443)) ? '' : ':'.$port;
                    
174		$path = ltrim(trim($site['DIR'], '/') . '/pub/entry.php', '/');
                    
175
                    
191	{
                    
192		$cache = new \CPHPCache();
                    
193
                    
432
                    
433						global $pPERIOD;
                    
434						$pPERIOD = 10 + (60 * $cnt);
                    
481			{
                    
482				$defaultEmailFrom = "info@".($serverName ?: Main\Config\Option::get('main', 'server_name', $GLOBALS["SERVER_NAME"]));
                    
483			}
                    
                
com_jcalpro.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 245 lines
                    
1<?php
                    
2/*
                    
21
                    
22 $Id: com_jcalpro.php 667 2011-01-24 21:02:32Z jeffchannell $
                    
23
                    
32// ------------------  standard plugin initialize function - don't change ---------------------------
                    
33global $sh_LANG, $mainframe;
                    
34$sefConfig = & shRouter::shGetConfig();
                    
43// include utility functions, shared with meta_ext plugin
                    
44include_once( JPATH_ROOT.DS.'components'.DS.'com_jcalpro'.DS.'sef_ext'.DS.'com_jcalpro_lib.php');
                    
45
                    
164				if (!function_exists( 'jcUTCDateToFormat')) {
                    
165					// we may be doing an auto-redirect, and functions.inc.php may not be loaded
                    
166					require_once (JPATH_ROOT .DS. 'components'.DS.'com_jcalpro'.DS.'include'.DS.'functions.inc.php');
                    
                
AccessResult.php https://bitbucket.org/razum-io/ns-hub.git | PHP | 451 lines
                    
1<?php
                    
2
                    
324    //    e.g. we have two access results A and B. Neither is forbidden. A is
                    
325    //    globally cacheable (no cache contexts). B is cacheable per role. If we
                    
326    //    don't have merging case 3, then A->orIf(B) will be globally cacheable,
                    
                
Shipping.php https://gitlab.com/daigiangaitu91/magento | PHP | 254 lines
                    
1<?php
                    
2/**
                    
75                'total_shipping' => new \Zend_Db_Expr(
                    
76                    "SUM((base_shipping_amount - {$shippingCanceled}) * base_to_global_rate)"
                    
77                ),
                    
78                'total_shipping_actual' => new \Zend_Db_Expr(
                    
79                    "SUM((base_shipping_invoiced - {$shippingRefunded}) * base_to_global_rate)"
                    
80                ),
                    
138     * @throws \Exception
                    
139     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
140     */
                    
183                    'SUM((order_table.base_shipping_amount - ' .
                    
184                    "{$shippingCanceled}) * order_table.base_to_global_rate)"
                    
185                ),
                    
187                    'SUM((order_table.base_shipping_invoiced - ' .
                    
188                    "{$shippingRefunded}) * order_table.base_to_global_rate)"
                    
189                ),
                    
                
curl.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 417 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////////////////////////////
                    
3////	File:
                    
4////		curl.php
                    
5////	Actions:
                    
32		//cache
                    
33		//'DNS_USE_GLOBAL_CACHE'=>	true,
                    
34		//'FORBID_REUSE'		=>	false,
                    
                
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.
                    
                
multiple-featured-images.php https://gitlab.com/hop23typhu/list-theme | PHP | 374 lines
                    
91		public function kd_admin_init() {		
                    
92			if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/media-upload.php')) {
                    
93				wp_enqueue_script(
                    
119		 *
                    
120		 * @global object $post
                    
121		 * @return void
                    
123		public function kd_meta_box_content() {
                    
124			global $post;
                    
125
                    
137		 *
                    
138		 * @global int $post_ID
                    
139		 * @param int $image_id
                    
223		 *
                    
224		 * @global int $post_ID
                    
225		 * @return void
                    
                
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
                    
                
feed.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 546 lines
                    
1<?php
                    
2/**
                    
208 *
                    
209 * @param int|object $comment_id Optional comment object or id. Defaults to global comment object.
                    
210 */
                    
221 *
                    
222 * @param int|object $comment_id Optional comment object or id. Defaults to global comment object.
                    
223 * @return bool|string false on failure or guid for comment on success.
                    
367 *
                    
368 * Uses the global $post to check whether the post requires a password and if
                    
369 * the user has the password for the post. If not then it will return before
                    
404 *
                    
405 * Uses the global $post to check whether the post requires a password and if
                    
406 * the user has the password for the post. If not then it will return before
                    
442 *
                    
443 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1
                    
444 *
                    
                
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)
                    
                
 

Source

Language