PageRenderTime 5454ms queryTime 1252ms sortTime 255ms getByIdsTime 94ms findMatchingLines 493ms

100+ results results for 'php glob repo:vodolaz095/trivia_core' (5454 ms)

Not the results you expected?
postMash.php https://gitlab.com/Gashler/sg | PHP | 345 lines
                    
82		foreach ($pageposts as $page): //list pages, [the 'li' ID must be pm_'page ID'] ?>
                    
83			<li id="pm_<?php echo $page->ID; ?>"<?php if($page->post_status == "draft"){ echo ' class="remove"'; } //if page is draft, add class remove ?>>
                    
84				<span style="float:right;">
                    
98						id:<?php echo $page->ID;?>
                    
99						[<a href="<?php echo get_bloginfo('wpurl').'/wp-admin/post.php?action=edit&post='.$page->ID; ?>" title="Edit This Post">edit</a>]
                    
100						<?php if($switchDraftToPublishFeature): ?>
                    
101							[<a href="#" title="Draft|Publish" class="excludeLink" onclick="toggleRemove(this); return false">toggle-draft</a>]
                    
102						<?php endif; ?>
                    
103					</span>
                    
145			<select name='m'>
                    
146			<option<?php selected( $m, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>
                    
147			<?php
                    
244	if($wp_version >= 2.7){
                    
245		$page = add_submenu_page('edit.php', 'postMash: Order Posts', 'postMash', $minlevel,  __FILE__, 'postMash_main'); 
                    
246	}else{
                    
                
wikiparser_test.php https://gitlab.com/unofficial-mirrors/moodle | 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";
                    
                
jquery.blockUI.js https://bitbucket.org/berlotto/asciiblog.git | JavaScript | 398 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); };
                    
                
template.php https://bitbucket.org/postal/stratv2.git | PHP | 383 lines
                    
1<?php
                    
2// $Id: template.php 8021 2010-10-19 13:01:34Z sheena $
                    
70  // Format the footer message
                    
71  // We do this here instead of in page.tpl.php because 
                    
72  // we need a formatted message to pass along to the
                    
89function commons_roots_preprocess_comment(&$vars) {
                    
90  global $user;
                    
91  static $comment_odd = TRUE;                                                                             // Comment is odd or even
                    
148function commons_roots_shoutbox_post($shout, $links = array(), $alter_row_color=TRUE) {
                    
149  global $user;
                    
150  
                    
                
Context.cs https://bitbucket.org/kkszysiu/flashdevelop.git | C# | 389 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        }
                    
                
Data.php https://gitlab.com/vincent.perdereau/picandparts | 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     *
                    
                
javascript.php https://bitbucket.org/sbeuken/artelux.git | PHP | 625 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
77		{
                    
78			require APPPATH.'libraries/Spellcheck.php'; 
                    
79		}
                    
99		{
                    
100			require APPPATH.'libraries/Spellcheck.php'; 
                    
101		}
                    
231	 *
                    
232	 * This private method is intended for usage by the 'add_global_cp_js' hook 
                    
233	 *
                    
623
                    
624/* End of file javascript.php */
                    
625/* Location: ./system/expressionengine/controllers/cp/javascript.php */
                    
                
appcachemanifest.php https://gitlab.com/Rad1calDreamer/honey | PHP | 611 lines
                    
1<?php
                    
2namespace Bitrix\Main\Data;
                    
9
                    
10	const MANIFEST_CHECK_FILE = "/bitrix/tools/check_appcache.php";
                    
11	private static $debug;
                    
155	{
                    
156		global $APPLICATION;
                    
157		$selfObject = self::getInstance();
                    
519	{
                    
520		$cache = new \CPHPCache();
                    
521		$manifestId = $arFields["ID"];
                    
531	{
                    
532		$cache = new \CPHPCache();
                    
533
                    
544	{
                    
545		$cache = new \CPHPCache();
                    
546		$cachePath = self::getCachePath($manifestId);
                    
                
VarCloner.php https://gitlab.com/Sigpot/AirSpot | 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                                }
                    
                
init.php https://gitlab.com/mattswann/launch-housing | PHP | 368 lines
                    
1<?php
                    
2
                    
2
                    
3// DO NOT CALL THIS CLASS DIRECTLY. CALL VIA: pb_backupbuddy_destination in bootstrap.php.
                    
4
                    
24		'url'			=>		'',		// optional url for migration that corresponds to this ftp/path.
                    
25		'disable_file_management'	=>		'0',		// When 1, _manage.php will not load which renders remote file management DISABLED.
                    
26		'disabled'					=>		'0',		// When 1, disable this destination.
                    
38	public static function send( $settings = array(), $files = array(), $send_id = '' ) {
                    
39		global $pb_backupbuddy_destination_errors;
                    
40		if ( '1' == $settings['disabled'] ) {
                    
82			} else {
                    
83				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTPS in PHP.', 'error' );
                    
84				return false;
                    
95			} else {
                    
96				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTP in PHP.', 'error' );
                    
97				return false;
                    
                
eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
                    
37
                    
38INFO: By default, the Event Server is bound to 0.0.0.0, which serves global
                    
39traffic. To tighten security, you may use `pio eventserver --ip 127.0.0.1` to
                    
109  </div>
                    
110  <div data-tab="PHP SDK" data-lang="php">
                    
111```php
                    
111```php
                    
112<?php
                    
113  require_once("vendor/autoload.php");
                    
204  </div>
                    
205  <div data-tab="PHP SDK" data-lang="php">
                    
206```php
                    
206```php
                    
207<?php
                    
208  require_once("vendor/autoload.php");
                    
                
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
                    
                
reader.php https://github.com/axshavan/nitrofuran.git | PHP | 540 lines
                    
1<?php
                    
2
                    
14
                    
15require_once(DOCUMENT_ROOT.'/nitrofuran/crud.class.php');
                    
16
                    
69		{
                    
70			// за счёт разных часовых поясов и тупого php могут быть косяки со временными метками
                    
71			// накинем ещё сутки
                    
115		}
                    
116		global $AUTH;
                    
117		if
                    
160		);
                    
161		curl_setopt($curl, CURLOPT_USERAGENT, 'Nitrofuran Reader: PHP bot collecting RSS feeds');
                    
162		ob_start();
                    
332	{
                    
333		require_once(DOCUMENT_ROOT.'/nitrofuran/graph.class.php');
                    
334		global $AUTH;
                    
                
Page.php https://github.com/ntulip/piwik.git | PHP | 402 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Page.php 16974 2009-07-22 19:23:08Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Cache/Core.php';
                    
28
                    
61     *     - (boolean) cacheWithXXXVariables  (XXXX = 'Get', 'Post', 'Session', 'Files' or 'Cookie') :
                    
62     *       if true,  cache is still on even if there are some variables in this superglobal array
                    
63     *       if false, cache is off if there are some variables in this superglobal array
                    
64     *     - (boolean) makeIdWithXXXVariables (XXXX = 'Get', 'Post', 'Session', 'Files' or 'Cookie') :
                    
65     *       if true, we have to use the content of this superglobal array to make a cache id
                    
66     *       if false, the cache id won't be dependent of the content of this superglobal array
                    
67     *     - (int) specific_lifetime : cache specific lifetime
                    
68     *                                (false => global lifetime is used, null => infinite lifetime,
                    
69     *                                 integer => this lifetime is used), this "lifetime" is probably only
                    
                
Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 512 lines
                    
1<?php
                    
2
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
486        $commandXML->setAttribute('id', $this->getFullName());
                    
487        $commandXML->setAttribute('namespace', $this->getNamespace() ? $this->getNamespace() : '_global');
                    
488        $commandXML->setAttribute('name', $this->getName());
                    
                
css.js https://gitlab.com/wilane/Booktype | 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.
                    
                
rewrite.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 425 lines
                    
1<?php
                    
2
                    
80	function get_permalink( $args ) {
                    
81		global $wp_rewrite, $wp_query;
                    
82
                    
164	function flush() { 
                    
165		global $wp_rewrite, $ngg;
                    
166		
                    
211		//TODO: I could parse for the Picture name , gallery etc, but this increase the queries
                    
212		//TODO: Class nggdb need to cache the query for the nggfunctions.php
                    
213
                    
261	function RewriteRules($wp_rewrite) {
                    
262        global $ngg;
                    
263        
                    
265            // XML request
                    
266            $this->slug . '/slideshow/([0-9]+)/?$' => 'index.php?imagerotator=true&gid=$matches[1]'
                    
267		);  
                    
                
Autoscalers.php https://gitlab.com/efabian/maya | PHP | 275 lines
                    
1<?php
                    
2/*
                    
54   * @opt_param bool includeAllScopes Indicates whether every visible scope for
                    
55   * each scope type (zone, region, global) should be included in the response.
                    
56   * For new resource types added after this field, the flag has no effect as new
                    
                
class-config.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 414 lines
                    
1<?php
                    
2/**
                    
40			WPSEO_Options::reset();
                    
41			wp_redirect( admin_url( 'admin.php?page=wpseo_dashboard' ) );
                    
42		}
                    
55		wp_enqueue_style( 'thickbox' );
                    
56		wp_enqueue_style( 'global' );
                    
57		wp_enqueue_style( 'wp-admin' );
                    
357		?>
                    
358			<div id="<?php echo esc_attr( $id ); ?>" class="yoastbox">
                    
359				<h1><?php echo $title; ?></h1>
                    
359				<h1><?php echo $title; ?></h1>
                    
360				<?php echo $content; ?>
                    
361			</div>
                    
361			</div>
                    
362		<?php
                    
363	}
                    
                
Page.php https://github.com/tuteke/isaved.git | PHP | 402 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Page.php 16974 2009-07-22 19:23:08Z matthew $
                    
21 */
                    
26 */
                    
27#require_once 'Zend/Cache/Core.php';
                    
28
                    
61     *     - (boolean) cacheWithXXXVariables  (XXXX = 'Get', 'Post', 'Session', 'Files' or 'Cookie') :
                    
62     *       if true,  cache is still on even if there are some variables in this superglobal array
                    
63     *       if false, cache is off if there are some variables in this superglobal array
                    
64     *     - (boolean) makeIdWithXXXVariables (XXXX = 'Get', 'Post', 'Session', 'Files' or 'Cookie') :
                    
65     *       if true, we have to use the content of this superglobal array to make a cache id
                    
66     *       if false, the cache id won't be dependent of the content of this superglobal array
                    
67     *     - (int) specific_lifetime : cache specific lifetime
                    
68     *                                (false => global lifetime is used, null => infinite lifetime,
                    
69     *                                 integer => this lifetime is used), this "lifetime" is probably only
                    
                
questiontype.php https://gitlab.com/unofficial-mirrors/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();
                    
                
Config.php https://github.com/adamli/ckfinder.git | PHP | 535 lines
                    
395
                    
396        if (!isset($GLOBALS['config']['ResourceType']) || !is_array($GLOBALS['config']['ResourceType'])) {
                    
397            return $_null;
                    
420        if (!isset($this->_thumbnailsConfigCache)) {
                    
421            $this->_thumbnailsConfigCache = new CKFinder_Connector_Core_ThumbnailsConfig(isset($GLOBALS['config']['Thumbnails']) ? $GLOBALS['config']['Thumbnails'] : array());
                    
422        }
                    
435        if (!isset($this->_imagesConfigCache)) {
                    
436            $this->_imagesConfigCache = new CKFinder_Connector_Core_ImagesConfig(isset($GLOBALS['config']['Images']) ? $GLOBALS['config']['Images'] : array());
                    
437        }
                    
450        if (!isset($this->_accessControlConfigCache)) {
                    
451            $this->_accessControlConfigCache = new CKFinder_Connector_Core_AccessControlConfig(isset($GLOBALS['config']['AccessControl']) ? $GLOBALS['config']['AccessControl'] : array());
                    
452        }
                    
521    {
                    
522        if (!isset($GLOBALS['config']['ResourceType']) || !is_array($GLOBALS['config']['ResourceType'])) {
                    
523            return array();
                    
                
config.php https://bitbucket.org/olivopablo/iphoto.git | PHP | 364 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
25|
                    
26| Typically this will be your index.php file, unless you've renamed it to
                    
27| something else. If you are using mod_rewrite to remove the page set this
                    
37|
                    
38| This item determines which server global should be used to retrieve the
                    
39| URI string.  The default setting of 'AUTO' works for most servers.
                    
151| invoke your controllers and its functions:
                    
152| example.com/index.php?c=controller&m=function
                    
153|
                    
175|	0 = Disables logging, Error logging TURNED OFF
                    
176|	1 = Error Messages (including PHP errors)
                    
177|	2 = Debug Messages
                    
202|
                    
203| Each item that is logged has an associated date. You can use PHP date
                    
204| codes to set your own date formatting
                    
                
gva_row.php https://gitlab.com/kryber/wizionary | PHP | 344 lines
                    
1<?php
                    
2class element_gva_row{
                    
244	public function render_content( $settings = array(), $content = '' ) {
                    
245		global $base_url, $base_path;
                    
246         extract(gavias_merge_atts(array(
                    
322		
                    
323		  	<div class="gbb-row-wrapper section <?php print trim($row_class) ?>" <?php if($row_id) print 'id="'.$row_id.'"' ?> style="<?php print $row_style ?>" <?php if($data_bg_video) print $data_bg_video; ?> <?php if($row_name) print 'data-onepage-title="'.$row_name.'"'; ?>>
                    
324		  	<?php if($icon){ ?><span class="icon-row <?php print $icon ?>"></span><?php } ?>
                    
324		  	<?php if($icon){ ?><span class="icon-row <?php print $icon ?>"></span><?php } ?>
                    
325		    	<div class="bb-inner <?php if($style_space) print $style_space; ?>">  
                    
326		      	<div class="bb-container <?php print $layout ?>">
                    
327			        	<div class="row row-wrapper">
                    
328							<?php print $content ?>
                    
329	     	 			</div>
                    
337			  	?>
                    
338			    <div style="background-repeat: <?php print $bg_repeat; ?>;background-position:<?php print $bg_position ?>;<?php print ($bg_size=='width-100'?'background-size: 100%;':'')?>" class="gva-parallax-inner skrollable skrollable-between <?php print $row_bg_size ?>" <?php print $data_parallax ?>></div>
                    
339			  <?php } ?>
                    
                
skeinforge_application.skeinforge_plugins.craft_plugins.export.html https://github.com/martymcguire/ReplicatorG.git | HTML | 217 lines
                    
18The export manual page is at:<br>
                    
19<a href="http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Export">http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Export</a><br>
                    
20 <br>
                    
54
                    
55Export presents the user with a choice of the export plugins in the export_plugins folder.  The chosen plugin will then modify the gcode or translate it into another format.  There is also the "Do Not Change Output" choice, which will not change the output.  An export plugin is a script in the export_plugins folder which has the getOutput function, the globalIsReplaceable variable and if it's output is not replaceable, the writeOutput function.<br>
                    
56 <br>
                    
                
wp-shopping-cart.php https://github.com/evadne/wp-e-commerce.git | PHP | 358 lines
                    
1<?php
                    
2/*
                    
14// this is to make sure it sets up the table name constants correctly on activation
                    
15global $wpdb;
                    
16define('WPSC_VERSION', '3.7');
                    
53} else {
                    
54  require(WPSC_FILE_PATH.'/languages/EN_en.php');
                    
55}
                    
99// start including the rest of the plugin here
                    
100require_once(WPSC_FILE_PATH.'/wpsc-includes/wpsc_query.php');
                    
101require_once(WPSC_FILE_PATH.'/wpsc-includes/variations.class.php');
                    
101require_once(WPSC_FILE_PATH.'/wpsc-includes/variations.class.php');
                    
102require_once(WPSC_FILE_PATH.'/wpsc-includes/ajax.functions.php');
                    
103require_once(WPSC_FILE_PATH.'/wpsc-includes/misc.functions.php');
                    
103require_once(WPSC_FILE_PATH.'/wpsc-includes/misc.functions.php');
                    
104require_once(WPSC_FILE_PATH.'/wpsc-includes/mimetype.php');
                    
105require_once(WPSC_FILE_PATH.'/wpsc-includes/cart.class.php');
                    
                
transaction_result_functions.php https://github.com/evadne/wp-e-commerce.git | PHP | 285 lines
                    
1<?php
                    
2function transaction_results($sessionid, $echo_to_screen = true, $transaction_id = null) {
                    
2function transaction_results($sessionid, $echo_to_screen = true, $transaction_id = null) {
                    
3	global $wpdb,$wpsc_cart;
                    
4	//$curgateway = get_option('payment_gateway');
                    
24		}
                    
25		$order_url = $siteurl."/wp-admin/admin.php?page=".WPSC_DIR_NAME."/display-log.php&amp;purchcaseid=".$purchase_log['id'];
                    
26
                    
                
yii.php https://github.com/ata/DompetJebol.git | PHP | 206 lines
                    
1<?php
                    
2/**
                    
26  'Authorization item "{item}" has already been assigned to user "{user}".' => '',
                    
27  'CApcCache requires PHP apc extension to be loaded.' => '',
                    
28  'CAssetManager.basePath "{path}" is invalid. Please make sure the directory exists and is writable by the Web server process.' => '',
                    
51  'CFlexWidget.name cannot be empty.' => '',
                    
52  'CGlobalStateCacheDependency.stateName cannot be empty.' => '',
                    
53  'CHttpCookieCollection can only hold CHttpCookie objects.' => '',
                    
59  'CHttpSession.savePath "{path}" is not a valid directory.' => '',
                    
60  'CMemCache requires PHP memcache extension to be loaded.' => '',
                    
61  'CMemCache server configuration must be an array.' => '',
                    
65  'CProfileLogRoute.report "{report}" is invalid. Valid values include "summary" and "callstack".' => '',
                    
66  'CSecurityManager requires PHP mcrypt extension to be loaded in order to use data encryption feature.' => '',
                    
67  'CSecurityManager.encryptionKey cannot be empty.' => '',
                    
71  'CUrlManager.UrlFormat must be either "path" or "get".' => '',
                    
72  'CXCache requires PHP XCache extension to be loaded.' => '',
                    
73  'Cache table "{tableName}" does not exist.' => '',
                    
                
openid.php https://gitlab.com/BeS/io.schiessle.org | PHP | 398 lines
                    
1<?php
                    
2/*
                    
23
                    
24require_once('Auth/OpenID.php');
                    
25require_once('Auth/OpenID/Consumer.php');
                    
25require_once('Auth/OpenID/Consumer.php');
                    
26require_once('Auth/OpenID/Server.php');
                    
27require_once('Auth/OpenID/SReg.php');
                    
27require_once('Auth/OpenID/SReg.php');
                    
28require_once('Auth/OpenID/MySQLStore.php');
                    
29
                    
87{
                    
88    global $_PEAR;
                    
89
                    
                
question.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 406 lines
                    
8	// Base class for custom post type to extends
                    
9	learn_press_include( 'custom-post-types/abstract.php' );
                    
10
                    
196					if (0 == $title.val().length) {
                    
197						alert('<?php _e( 'Please enter the title of the question', 'learnpress' );?>');
                    
198						$title.focus();
                    
200					} else if ($('.lpr-question-types').length && ( 0 == $('.lpr-question-types').val().length )) {
                    
201						alert('<?php _e( 'Please a type of question', 'learnpress' );?>');
                    
202						$('.lpr-question-types').focus();
                    
222							<?php foreach ( $questions as $type => $name ): ?>
                    
223								<option value="<?php echo $type; ?>"><?php echo $name; ?></option>
                    
224							<?php endforeach; ?>
                    
389			global $pagenow, $post_type;
                    
390			if ( !is_admin() || ( $pagenow != 'edit.php' ) || ( LP()->question_post_type != $post_type ) ) {
                    
391				return false;
                    
                
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();
                    
                
TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
                    
1<?php
                    
2
                    
121
                    
122        global $user, $prefs;
                    
123        $language = $prefs['language'];
                    
234    {
                    
235        global $prefs;
                    
236        $baseKey = $this->getBaseKey();
                    
249
                    
250    public function getGlobalFields()
                    
251    {
                    
251    {
                    
252        global $prefs;
                    
253        $baseKey = $this->getBaseKey();
                    
267    {
                    
268        global $prefs;
                    
269        $schema = new Tracker\Tabular\Schema($this->getTrackerDefinition());
                    
                
class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
                    
1<?php
                    
2/**
                    
46	public function __construct( $args = array() ) {
                    
47		global $wpdb;
                    
48
                    
177	public function add( $args = array() ) {
                    
178		global $wpdb;
                    
179
                    
228	public function update( $args = array(), $where = array() ) {
                    
229		global $wpdb;
                    
230
                    
269	public function get_last_active( $user_id = 0 ) {
                    
270		global $wpdb;
                    
271
                    
283	public function get_last_actives( $user_ids = array() ) {
                    
284		global $wpdb;
                    
285
                    
                
Pro.php https://gitlab.com/svillegas/magento2 | PHP | 436 lines
                    
1<?php
                    
2/**
                    
334    {
                    
335        $pendingReason = $payment->getAdditionalInformation(\Magento\Paypal\Model\Info::PENDING_REASON_GLOBAL);
                    
336        return $this->_isPaymentReviewRequired(
                    
                
class-wp-terms-list-table.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 454 lines
                    
14	function __construct( $args = array() ) {
                    
15		global $post_type, $taxonomy, $action, $tax;
                    
16
                    
366		if ( 'attachment' == $this->screen->post_type )
                    
367			return "<a href='" . esc_url ( add_query_arg( $args, 'upload.php' ) ) . "'>$count</a>";
                    
368
                    
413				<label>
                    
414					<span class="title"><?php _ex( 'Name', 'term name' ); ?></span>
                    
415					<span class="input-text-wrap"><input type="text" name="name" class="ptitle" value="" /></span>
                    
416				</label>
                    
417	<?php if ( !global_terms_enabled() ) { ?>
                    
418				<label>
                    
421				</label>
                    
422	<?php } ?>
                    
423			</div></fieldset>
                    
                
tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
                    
77    $url_params['after_insert'] = $_REQUEST['after_insert'];
                    
78    //$GLOBALS['goto'] = 'tbl_change.php';
                    
79    $goto_include = 'tbl_change.php';
                    
110    }
                    
111    if ($GLOBALS['goto'] == 'db_sql.php' && strlen($GLOBALS['table'])) {
                    
112        $GLOBALS['table'] = '';
                    
202
                    
203	$primary_field = PMA_BS_GetPrimaryField($GLOBALS['db'], $GLOBALS['table']);
                    
204
                    
296            // build update query
                    
297            $query[] = 'UPDATE ' . PMA_backquote($GLOBALS['db']) . '.' . PMA_backquote($GLOBALS['table'])
                    
298                    . ' SET ' . implode(', ', $query_values) . ' WHERE ' . str_replace('&#93;', ']', $primary_key) . ' LIMIT 1';
                    
309if ($is_insert && count($value_sets) > 0) {
                    
310    $query[] = 'INSERT INTO ' . PMA_backquote($GLOBALS['db']) . '.' . PMA_backquote($GLOBALS['table'])
                    
311        . ' (' . implode(', ', $query_fields) . ') VALUES (' . implode('), (', $value_sets) . ')';
                    
                
engine.php https://github.com/mudrd8mz/moodle.git | PHP | 391 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
54    public function execute_query($filters, $usercontexts, $limit = 0) {
                    
55        global $DB, $USER;
                    
56
                    
149                        // Sorry for the hack, but it does not seem that we will have a solution for
                    
150                        // this soon (https://bugs.mysql.com/bug.php?id=78485).
                    
151                        if ($filters->q === '*') {
                    
242    public function add_document($document, $fileindexing = false) {
                    
243        global $DB;
                    
244
                    
275    public function delete_by_id($id) {
                    
276        global $DB;
                    
277        $DB->delete_records('search_simpledb_index', array('docid' => $id));
                    
286    public function delete($areaid = null) {
                    
287        global $DB;
                    
288        if ($areaid) {
                    
                
Admin.php https://gitlab.com/michield/phpList | PHP | 416 lines
                    
1<?php
                    
2namespace phpList;
                    
3
                    
4use phpList\helper\String;
                    
5use phpList\helper\Util;
                    
5use phpList\helper\Util;
                    
6use phpList\Entity\AdminEntity;
                    
7
                    
55        if ($this->id != 0) {
                    
56            phpList::DB()->query(
                    
57                sprintf(
                    
84    {
                    
85        $result = phpList::DB()->query(
                    
86            sprintf(
                    
111
                    
112        $result = phpList::DB()->query(
                    
113            sprintf(
                    
                
global.html https://bitbucket.org/jcjordan/jcjordan.bitbucket.org.git | HTML | 247 lines
                    
5<meta charset="utf-8">
                    
6<title>phpDocumentor » global</title>
                    
7<meta name="author" content="Mike van Riel">
                    
17<div class="navbar-inner"><div class="container">
                    
18<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">phpDocumentor</a><div class="nav-collapse"><ul class="nav">
                    
19<li class="dropdown">
                    
69<li>
                    
70<a href="../namespaces/global.html" title="global"><i class="icon-th"></i>global</a><ul class="nav nav-list nav-namespaces"></ul>
                    
71</li>
                    
78</li>
                    
79<li class="active"><a href="../namespaces/global.html">global</a></li>
                    
80</ul>
                    
242            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
                    
243            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a12</a> and<br>
                    
244            generated on 2013-02-20T14:44:48-06:00.<br></footer></div>
                    
                
filterlib.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 365 lines
                    
1<?php // $Id: filterlib.php,v 1.24.10.4 2009/02/18 11:02:11 stronk7 Exp $
                    
2      // Contains special functions that are particularly useful to filters
                    
57
                    
58    global $CFG;
                    
59
                    
332function filter_add_javascript($text) {
                    
333    global $CFG;
                    
334
                    
                
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
                    
                
config.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 364 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
23|
                    
24| Typically this will be your index.php file, unless you've renamed it to
                    
25| something else. If you are using mod_rewrite to remove the page set this
                    
28*/
                    
29$config['index_page'] = 'index.php';
                    
30
                    
35|
                    
36| This item determines which server global should be used to retrieve the
                    
37| URI string.  The default setting of 'AUTO' works for most servers.
                    
149| invoke your controllers and its functions:
                    
150| example.com/index.php?c=controller&m=function
                    
151|
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
                
PDF.php https://github.com/libersoft/fengoffice-ls.git | PHP | 461 lines
                    
22 * @package    PHPExcel_Writer
                    
23 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34 * @package    PHPExcel_Writer
                    
35 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
36 */
                    
36 */
                    
37class PHPExcel_Writer_PDF implements PHPExcel_Writer_IWriter {
                    
38	/**
                    
68	 *
                    
69	 * @param 	PHPExcel	$phpExcel	PHPExcel object
                    
70	 */
                    
71	public function __construct(PHPExcel $phpExcel) {
                    
72		$this->_phpExcel = $phpExcel;
                    
73		$this->_sheetIndex 	= 0;
                    
                
blacklistlib.php https://gitlab.com/ElvisAns/tiki | PHP | 360 lines
                    
1<?php
                    
2
                    
135    {
                    
136        global $prefs;
                    
137
                    
176            while ($foo = $result->fetchrow()) {
                    
177                if (! fwrite($pointer, $foo['password'] . PHP_EOL)) {
                    
178                    Feedback::error(tr('File Error. Password file generation interrupted.'));
                    
184            while ($foo = $result->fetchrow()) {
                    
185                echo $foo['password'] . PHP_EOL;
                    
186            }
                    
201    {
                    
202        global $prefs;
                    
203
                    
222    {
                    
223        if ($GLOBALS['prefs']['pass_blacklist'] == 'n' || ! isset($GLOBALS['prefs']['pass_blacklist'])) {
                    
224            return 'Disabled';
                    
                
ListCommand.php https://gitlab.com/ealexis.t/trends | PHP | 278 lines
                    
1<?php
                    
2
                    
17use Psy\Command\ListCommand\FunctionEnumerator;
                    
18use Psy\Command\ListCommand\GlobalVariableEnumerator;
                    
19use Psy\Command\ListCommand\InterfaceEnumerator;
                    
76
                    
77                new InputOption('globals',     'g', InputOption::VALUE_NONE,     'Include global variables.'),
                    
78                new InputOption('internal',    'n', InputOption::VALUE_NONE,     'Limit to internal functions and classes.'),
                    
150                new FunctionEnumerator($mgr),
                    
151                new GlobalVariableEnumerator($mgr),
                    
152                new InterfaceEnumerator($mgr),
                    
249
                    
250            foreach (array('globals', 'vars', 'constants', 'functions', 'classes', 'interfaces', 'traits') as $option) {
                    
251                if ($input->getOption($option)) {
                    
259            // if a target is passed, classes, functions, etc don't make sense
                    
260            foreach (array('vars', 'globals', 'functions', 'classes', 'interfaces', 'traits') as $option) {
                    
261                if ($input->getOption($option)) {
                    
                
ssp.class.php https://gitlab.com/ealexis.t/trends | PHP | 390 lines
                    
1<?php
                    
2
                    
19// REMOVE THIS BLOCK - used for DataTables test environment only!
                    
20$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php';
                    
21if ( is_file( $file ) ) {
                    
138	{
                    
139		$globalSearch = array();
                    
140		$columnSearch = array();
                    
152					$binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR );
                    
153					$globalSearch[] = "`".$column['db']."` LIKE ".$binding;
                    
154				}
                    
175
                    
176		if ( count( $globalSearch ) ) {
                    
177			$where = '('.implode(' OR ', $globalSearch).')';
                    
                
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 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 */
                    
                
Object.php https://github.com/wrobel/horde-fw3.git | PHP | 433 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * $Horde: turba/lib/Object.php,v 1.17.10.13 2009-10-24 18:48:23 mrubinsk Exp $
                    
7 *
                    
92            if (is_callable(array('Horde', 'loadConfiguration'))) {
                    
93                Horde::loadConfiguration('hooks.php', null, 'turba');
                    
94            } else {
                    
94            } else {
                    
95                if (file_exists(TURBA_BASE . '/config/hooks.php')) {
                    
96                    include_once TURBA_BASE . '/config/hooks.php';
                    
123            return null;
                    
124        } elseif (isset($GLOBALS['attributes'][$attribute]) &&
                    
125                  $GLOBALS['attributes'][$attribute]['type'] == 'image') {
                    
147            if (is_callable(array('Horde', 'loadConfiguration'))) {
                    
148                Horde::loadConfiguration('hooks.php', null, 'turba');
                    
149            } else {
                    
                
fckeditor.css https://gitlab.com/ptisky/API_prestashop | CSS | 536 lines
                    
1/*~~~~~~Global Setting ~~~~~~~~*/

                    
2html, body{

                    
266span.fileFlash, span.fileVideo, span.filePicture,

                    
267span.filePPT, span.fileExcel, span.filePhp,

                    
268span.fileMusic, span.fileExe, span.fileAcrobat,

                    
289span.fileExcel{background-image:url(../images/small_icon/fileExcel.png);}

                    
290span.filePhp{background-image:url(../images/small_icon/filePhp.png);}

                    
291span.fileMusic{background-image:url(../images/small_icon/fileMusic.png);}

                    
301dt.fileFlash, dt.fileVideo,

                    
302dt.filePPT, dt.fileExcel, dt.filePhp,

                    
303dt.fileMusic, dt.fileExe, dt.fileAcrobat,

                    
328dt.fileExcel{background-image:url(../images/big_icon/fileExcel.png);}

                    
329dt.filePhp{background-image:url(../images/big_icon/filePhp.png);}

                    
330dt.fileMusic{background-image:url(../images/big_icon/fileMusic.png);}

                    
532

                    
533/*~~~~~~Global Low Priority Setting ~~~~~~~~*/

                    
534.left, td.left, th.left, td.leftDisabled{text-align:left;}

                    
                
http.php https://gitlab.com/morganestes/wordpress-develop | PHP | 374 lines
                    
1<?php
                    
2/**
                    
99
                    
100			// < PHP 5.4.7: Schemeless URL
                    
101			array(
                    
123
                    
124			// < PHP 5.4.7: Scheme separator in the URL.
                    
125			array(
                    
134
                    
135			// < PHP 5.4.7: IPv6 literals in schemeless URLs are handled incorrectly.
                    
136			array(
                    
143
                    
144			// PHP's parse_url() calls this an invalid url, we handle it as a path
                    
145			array( '/://example.com/', array( 'path' => '/://example.com/' ) ),
                    
146
                    
147			// Schemeless URL containing colons cause parse errors in PHP 7+.
                    
148			array(
                    
                
class-admin.php https://gitlab.com/haque.mdmanzurul/wp-harpar-carolyn | PHP | 441 lines
                    
1<?php
                    
2
                    
55		 *
                    
56		 * @global object $wp_embed
                    
57		 * @return void
                    
92		 *
                    
93		 * @global string $pagenow
                    
94		 * @return void
                    
98			global $pagenow;
                    
99			$enabled_pages = apply_filters( 'black_studio_tinymce_enable_pages', array( 'widgets.php', 'customize.php', 'admin-ajax.php' ) );
                    
100			return apply_filters( 'black_studio_tinymce_enable', in_array( $pagenow, $enabled_pages ) );
                    
                
querylib.php https://github.com/cwaclawik/moodle.git | PHP | 495 lines
                    
1<?php
                    
2/** 
                    
2/** 
                    
3* Global Search Engine for Moodle
                    
4*
                    
16*/
                    
17require_once($CFG->dirroot.'/search/Zend/Search/Lucene.php');
                    
18
                    
159    public function __construct($term = '', $page = 1, $results_per_page = 10, $cache = false) {
                    
160        global $CFG;
                    
161
                    
221    private function process_results($all=false) {
                    
222        global $USER;
                    
223
                    
337      if ($page > 1) {
                    
338        $ret .= "<a href='query.php?query_string={$query}&page=".($page-1)."'>&lt; {$back}</a>&nbsp;";
                    
339      } else {
                    
                
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:
                    
                
display-debug.page.php https://github.com/evadne/wp-e-commerce.git | PHP | 365 lines
                    
49			<li>
                    
50				<a href='?page=wpsc-debug&amp;wpsc_debug_action=phpinfo'>Display phpinfo</a>
                    
51			</li>
                    
52			<li>
                    
53				<a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a>
                    
54			</li>
                    
55		</ul>
                    
56		<?php
                    
57		if (defined('WPSC_ADD_DEBUG_PAGE') && (constant('WPSC_ADD_DEBUG_PAGE') == true)) {
                    
114			case 'filters':
                    
115			global $wp_filter, $merged_filters;
                    
116			print_r($wp_filter);
                    
119			
                    
120			case 'phpinfo':
                    
121			echo "</pre>";
                    
                
cURL.php https://gitlab.com/x33n/ampache | PHP | 349 lines
                    
1<?php
                    
2/**
                    
25	 *
                    
26	 * @var array cURL information array, see {@see http://php.net/curl_getinfo}
                    
27	 */
                    
127	 * @param array $requests Request data
                    
128	 * @param array $options Global options
                    
129	 * @return array Array of Requests_Response objects (may contain Requests_Exception or string responses as well)
                    
313	 * @param string $url
                    
314	 * @param array|object $data Data to build query using, see {@see http://php.net/http_build_query}
                    
315	 * @return string URL with data
                    
                
sysvmsg.c https://gitlab.com/envieidoc/tomato | C | 477 lines
                    
10  | http://www.php.net/license/3_01.txt                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
25#include "php.h"
                    
26#include "php_globals.h"
                    
27#include "ext/standard/info.h"
                    
145{
                    
146	php_info_print_table_start();
                    
147	php_info_print_table_row(2, "sysvmsg support", "enabled");
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
415
                    
416		/* NB: php_msgbuf is 1 char bigger than a long, so there is no need to
                    
417		 * allocate the extra byte. */
                    
                
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'.
                    
                
config.php https://gitlab.com/mautic-master/mautic | PHP | 258 lines
                    
1<?php
                    
2/**
                    
186            'mautic.form.type.slideshow_config'         => [
                    
187                'class' => 'Mautic\PageBundle\Form\Type\SlideshowGlobalConfigType',
                    
188                'alias' => 'slideshow_config'
                    
                
FieldInstancePerFormDisplayTest.php https://gitlab.com/reasonat/test8 | PHP | 184 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.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
                    
                
class-storefront-woocommerce.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 339 lines
                    
1<?php
                    
2/**
                    
73		public function woocommerce_scripts() {
                    
74			global $storefront_version;
                    
75
                    
101			</script>
                    
102		<?php
                    
103			}
                    
                
css_editor.js https://gitlab.com/oxidigitaluser/liguelista | JavaScript | 343 lines
                    
8// Safety first
                    
9/** global window.i18nLocale */
                    
10if (_.isUndefined(window.vc)) var vc = {atts: {}};
                    
11(function ($) {
                    
12	var preloaderUrl = ajaxurl.replace(/admin\-ajax\.php/, 'images/wpspin_light.gif'),
                    
13		template_options = {
                    
                
ServerDatabasesControllerTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 315 lines
                    
14
                    
15require_once 'test/libraries/stubs/ResponseStub.php';
                    
16require_once 'test/PMATestCase.php';
                    
20 *
                    
21 * @package PhpMyAdmin-test
                    
22 */
                    
41
                    
42        $GLOBALS['table'] = "table";
                    
43        $GLOBALS['replication_info']['master']['status'] = false;
                    
120        $this->assertContains(
                    
121            '<form class="ajax" action="server_databases.php" ',
                    
122            $html
                    
153        $this->assertRegExp(
                    
154            '/title="phpmyadmin"[[:space:]]*value="phpmyadmin"/',
                    
155            $html
                    
                
DbSearchTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 270 lines
                    
12require_once 'libraries/database_interface.inc.php';
                    
13require_once 'test/PMATestCase.php';
                    
14
                    
20 *
                    
21 * @package PhpMyAdmin-test
                    
22 */
                    
88
                    
89        $GLOBALS['dbi'] = $dbi;
                    
90
                    
163                . '</td><td><a name="browse_search" class="ajax" '
                    
164                . 'href="sql.php?db=pma&amp;table'
                    
165                . '=table1&amp;goto=db_sql.php&amp;pos=0&amp;is_js_confirmed=0&amp;'
                    
175                . '<a name="delete_search" class="ajax" href'
                    
176                . '="sql.php?db=pma&amp;table=table1&amp;goto=db_sql.php&amp;pos=0'
                    
177                . '&amp;is_js_confirmed=0&amp;sql_query=column2&amp;server=0&amp;'
                    
                
file_browser_test.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 248 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
54    public function setUp() {
                    
55        global $DB;
                    
56        $this->resetAfterTest();
                    
                
course_bin.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 335 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
69    public function get_item($itemid) {
                    
70        global $DB;
                    
71
                    
82    public function get_items() {
                    
83        global $DB;
                    
84
                    
96    public function store_item($cm) {
                    
97        global $CFG, $DB;
                    
98
                    
98
                    
99        require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
                    
100
                    
188    public function restore_item($item) {
                    
189        global $CFG, $OUTPUT, $PAGE;
                    
190
                    
                
ping.php https://github.com/agnesrambaud/yacs.git | PHP | 326 lines
                    
53 * @see articles/publish.php
                    
54 * @see categories/view.php
                    
55 * @see links/links.php
                    
116 */
                    
117include_once '../shared/global.php';
                    
118include_once '../links/link.php';
                    
136include_once 'codec.php';
                    
137include_once 'xml_rpc_codec.php';
                    
138$codec = new xml_rpc_Codec();
                    
278		// check we can read the given address, or the same with an additional '/'
                    
279		elseif((($content = Link::fetch($url, '', '', 'services/ping.php')) === FALSE) && (($content = Link::fetch($url.'/', '', '', 'services/ping.php')) === FALSE))
                    
280			$response = array('flerror' => 1, 'message' => 'Cannot read source address '.$url);
                    
318if(isset($context['debug_ping']) && ($context['debug_ping'] == 'Y'))
                    
319	Logger::remember('services/ping.php', 'ping response', $response, 'debug');
                    
320elseif(isset($context['debug_trackback']) && ($context['debug_trackback'] == 'Y') && ($parameters['methodName'] == 'pingback.ping'))
                    
                
derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
53  {
                    
54    global $conf;
                    
55
                    
71      $this->flags |= self::IS_MIMETYPE;
                    
72      if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false)
                    
73      {
                    
74        $this->rel_path = 'themes/default/icon/mimetypes/unknown.png';
                    
75        $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path);
                    
76      }
                    
379      $rel_url = 'i';
                    
380      if ($conf['php_extension_in_urls']) $rel_url .= '.php';
                    
381      if ($conf['question_mark_in_urls']) $rel_url .= '?';
                    
                
class-wc-settings-tax.php https://gitlab.com/campus-academy/krowkaramel | PHP | 348 lines
                    
1<?php
                    
2/**
                    
79	public function get_settings_for_default_section() {
                    
80		return include __DIR__ . '/views/settings-tax.php';
                    
81	}
                    
86	public function output() {
                    
87		global $current_section;
                    
88
                    
101	public function save() {
                    
102		// phpcs:disable WordPress.Security.NonceVerification.Missing
                    
103		global $current_section;
                    
108			if ( isset( $_POST['woocommerce_tax_classes'] ) ) {
                    
109				$this->save_tax_classes( wp_unslash( $_POST['woocommerce_tax_classes'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
                    
110			}
                    
121		WC_Cache_Helper::get_transient_version( 'shipping', true );
                    
122		// phpcs:enable WordPress.Security.NonceVerification.Missing
                    
123	}
                    
                
watchpack.js https://gitlab.com/nguyenthehiep3232/marius | JavaScript | 383 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
9const EventEmitter = require("events").EventEmitter;
                    
10const globToRegExp = require("glob-to-regexp");
                    
11const watchEventSource = require("./watchEventSource");
                    
25const stringToRegexp = ignored => {
                    
26	const source = globToRegExp(ignored, { globstar: true, extended: true })
                    
27		.source;
                    
                
simplified_chinese.php https://github.com/shamblett/janitor.git | PHP | 323 lines
                    
79);
                    
80$GLOBALS["messages"] = array(
                    
81	// links
                    
186	'siphpversion'		=> 'PHP 版本',
                    
187	'siphpupdate'		=> '信息: <span style="color: red;">您正在使用的PHP版本是 <strong>not</strong> actual!</span><br />为保证 eXtplorer 及其插件的所有功能正常运行,<br />您必须最低使用 <strong>PHP. 4.3 版本</strong>!',
                    
188	'siwebserver'		=> '服务器',
                    
188	'siwebserver'		=> '服务器',
                    
189	'siwebsphpif'		=> '服务器 - PHP 界面',
                    
190	'simamboversion'	=> 'eXtplorer 版本',
                    
198	'simagicquotes'		=> '魔力引用',
                    
199	'siregglobals'		=> 'Register Globals',
                    
200	'sioutputbuf'		=> '输出缓存',
                    
208	'siphpinfo'			=> 'PHP 信息',
                    
209	'siphpinformation'	=> 'PHP 信息',
                    
210	'sipermissions'		=> '允许',
                    
                
header.php https://gitlab.com/kaouech/theme | PHP | 198 lines
                    
1<?php include 'config.php' ?>
                    
2<!DOCTYPE html>
                    
56<body>
                    
57<?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?>
                    
58    <!-- topbar starts -->
                    
106            <ul class="collapse navbar-collapse nav navbar-nav top-menu">
                    
107                <li><a href="#"><i class="glyphicon glyphicon-globe"></i> Visit Site</a></li>
                    
108                <li class="dropdown">
                    
131    <!-- topbar ends -->
                    
132<?php } ?>
                    
133<div class="ch-container">
                    
134    <div class="row">
                    
135        <?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?>
                    
136
                    
171                                    class="glyphicon glyphicon-th"></i><span> Grid</span></a></li>
                    
172                        <li><a href="tour.html"><i class="glyphicon glyphicon-globe"></i><span> Tour</span></a></li>
                    
173                        <li><a class="ajax-link" href="icon.html"><i
                    
                
mxml-entity.c https://gitlab.com/pine64-android/linux-3.10 | C | 449 lines
                    
32{
                    
33  _mxml_global_t *global = _mxml_global();
                    
34					/* Global data */
                    
36
                    
37  if (global->num_entity_cbs < (int)(sizeof(global->entity_cbs) / sizeof(global->entity_cbs[0])))
                    
38  {
                    
93  int		ch;			/* Character value */
                    
94  _mxml_global_t *global = _mxml_global();
                    
95					/* Global data */
                    
114  int		i;			/* Looping var */
                    
115  _mxml_global_t *global = _mxml_global();
                    
116					/* Global data */
                    
129        memmove(global->entity_cbs + i, global->entity_cbs + i + 1,
                    
130	        (global->num_entity_cbs - i) * sizeof(global->entity_cbs[0]));
                    
131
                    
                
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				?>
                    
                
annotate.html https://gitlab.com/jiapei100/ImageMagick | HTML | 300 lines
                    
15  <meta name="application-url" content="http://www.imagemagick.org"/>
                    
16  <meta name="generator" content="PHP"/>
                    
17  <meta name="keywords" content="magickcore, c, api, for, imagemagick:, annotate, an, image, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/>
                    
24  <meta name="copyright" content="Copyright (c) 1999-2016 ImageMagick Studio LLC"/>
                    
25  <meta name="distribution" content="Global"/>
                    
26  <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/>
                    
51      <a class="magick-nav-item " href="api.html">Develop</a>
                    
52      <a class="magick-nav-item " href="http://www.imagemagick.org/script/search.php">Search</a>
                    
53      <a class="magick-nav-item pull-right" href="https://www.imagemagick.org/discourse-server/">Community</a>
                    
290    <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
                    
291    <a href="http://www.imagemagick.org/script/contact.php">Contact Us</a></p>
                    
292        <p><small>©  1999-2016 ImageMagick Studio LLC</small></p>
                    
                
class-wp-media-list-table.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 396 lines
                    
174?>
                    
175	<tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
                    
176<?php
                    
253?>
                    
254		<td <?php echo $attributes ?>><?php
                    
255		$tags = get_the_tags();
                    
270?>
                    
271		<td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
                    
272<?php
                    
291?>
                    
292		<td <?php echo $attributes ?>><?php echo $h_time ?></td>
                    
293<?php
                    
313?>
                    
314			<td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br />
                    
315			<?php if( $user_can_edit ) {?>
                    
                
Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
                    
1<?php
                    
2/**
                    
44	public function get_all_costs() {
                    
45		global $wpdb;
                    
46
                    
274	public function has_uncosted_events() {
                    
275		global $wpdb;
                    
276
                    
                
default.php https://bitbucket.org/eternaware/joomus.git | PHP | 218 lines
                    
22?>
                    
23<form action="<?php echo JRoute::_('index.php?option=com_banners&view=banners'); ?>" method="post" name="adminForm" id="adminForm">
                    
24	<fieldset id="filter-bar">
                    
27			<label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label>
                    
28			<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('Banners_Search_in_title'); ?>" />
                    
29			<button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button>
                    
75				<th class="checkmark-col">
                    
76					<input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
                    
77				</th>
                    
143					<p class="smallsub">
                    
144						<?php echo JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->alias));?></p>
                    
145				</td>
                    
169						<?php $disabled = $saveOrder ?  '' : 'disabled="disabled"'; ?>
                    
170						<input type="text" name="order[]" value="<?php echo $item->ordering;?>" <?php echo $disabled; ?> class="text-area-order" title="<?php echo $item->name; ?> order" />
                    
171					<?php else : ?>
                    
                
int_bugtracking.php https://github.com/viglesiasce/testlink.git | PHP | 387 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Filename $RCSfile: int_bugtracking.php,v $
                    
6 *
                    
17 * All bug tracking customization should be done in a sub class of this
                    
18 * class . for an example look at the bugzilla.cfg.php and mantis.cfg.php
                    
19 *
                    
30 *	20081217 - franciscom - BUGID 1939
                    
31 *							removed global coupling, usign config_get()
                    
32 *	20081102 - franciscom - refactored to ease configuration
                    
38**/
                    
39require_once(TL_ABS_PATH. "/lib/functions/database.class.php");
                    
40
                    
365	$btsname = strtolower($bts_type);
                    
366	$configPHP = $btsname . '.cfg.php';
                    
367	$interfacePHP = 'int_' . $btsname . '.php';
                    
                
slideshow.php https://gitlab.com/relacilia/cakra | PHP | 306 lines
                    
1<?php
                    
2
                    
9	function __construct() {
                    
10		global $shortcode_tags;
                    
11
                    
91		<fieldset>
                    
92			<select name="<?php echo esc_attr( $name ); ?>" id="<?php esc_attr( $name ); ?>">
                    
93				<?php foreach ( $values as $key => $value ) : ?>
                    
93				<?php foreach ( $values as $key => $value ) : ?>
                    
94					<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $option ); ?>>
                    
95						<?php echo esc_html( $value ); ?>
                    
96					</option>
                    
97				<?php endforeach; ?>
                    
98			</select>
                    
98			</select>
                    
99			<?php if ( ! empty( $extra_text ) ) : ?>
                    
100				<p class="description"><?php echo esc_html( $extra_text ); ?></p>
                    
                
postgres7.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 217 lines
                    
1<?php  // $Id$
                    
2
                    
5// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL 
                    
6// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
                    
7
                    
11
                    
12    global $CFG;
                    
13
                    
15        if (!empty($CFG->textfilters)) {
                    
16            $CFG->textfilters = str_replace("dynalink.php", "filter.php", $CFG->textfilters);
                    
17            set_config("textfilters", $CFG->textfilters);
                    
170    if ($oldversion < 2005041100) { // replace wiki-like with markdown
                    
171        include_once( "$CFG->dirroot/lib/wiki_to_markdown.php" );
                    
172        $wtm = new WikiToMarkdown();
                    
211
                    
212    //////  DO NOT ADD NEW THINGS HERE!!  USE upgrade.php and the lib/ddllib.php functions.
                    
213
                    
                
class-admin.php https://gitlab.com/treighton/wpgit | PHP | 440 lines
                    
1<?php
                    
2
                    
55		 *
                    
56		 * @global object $wp_embed
                    
57		 * @since 2.0.0
                    
91		 *
                    
92		 * @global string $pagenow
                    
93		 * @return void
                    
97			global $pagenow;
                    
98			$enabled_pages = apply_filters( 'black_studio_tinymce_enable_pages', array( 'widgets.php', 'customize.php', 'admin-ajax.php' ) );
                    
99			return apply_filters( 'black_studio_tinymce_enable', in_array( $pagenow, $enabled_pages ) );
                    
                
class-wp-ms-users-list-table.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 307 lines
                    
1<?php
                    
2/**
                    
105	/**
                    
106	 * @global string $mode
                    
107	 * @param string $which
                    
109	protected function pagination( $which ) {
                    
110		global $mode;
                    
111
                    
181						<th scope="row" class="check-column">
                    
182							<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
                    
183							<input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" />
                    
184						</th>
                    
185					<?php
                    
186					break;
                    
192						echo "<td $attributes>"; ?>
                    
193							<?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php
                    
194							if ( in_array( $user->user_login, $super_admins ) )
                    
                
layout.class.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 267 lines
                    
1<?php
                    
2/**
                    
15
                    
16Files: default.php, style.css
                    
17
                    
46	public function display_page($page) {
                    
47		global $config, $user;
                    
48
                    
127		$qp = explode("/", ltrim(_get_query(), "/"));
                    
128		// php sucks
                    
129		switch($qp[0]) {
                    
                
main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 371 lines
                    
1<?php
                    
2/*
                    
153	public function onPageRequest(PageRequestEvent $event) {
                    
154		global $user, $page;
                    
155		if($event->page_matches("tag_edit")) {
                    
175	public function onPostListBuilding(PostListBuildingEvent $event) {
                    
176		global $user;
                    
177		if($user->can("bulk_edit_image_source") && !empty($event->search_terms)) {
                    
182	public function onImageInfoSet(ImageInfoSetEvent $event) {
                    
183		global $user;
                    
184		if($user->can("edit_image_owner")) {
                    
206	public function onOwnerSet(OwnerSetEvent $event) {
                    
207		global $user;
                    
208		if($user->can("edit_image_owner") && (!$event->image->is_locked() || $user->can("edit_image_lock"))) {
                    
213	public function onTagSet(TagSetEvent $event) {
                    
214		global $user;
                    
215		if($user->can("edit_image_tag") && (!$event->image->is_locked() || $user->can("edit_image_lock"))) {
                    
                
class.templateoperations.inc.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 387 lines
                    
1<?php
                    
2#CMS - CMS Made Simple
                    
27
                    
28include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'class.template.inc.php');
                    
29
                    
352		
                    
353		global $gCms;
                    
354		$templateops = $gCms->GetTemplateOperations();
                    
                
install.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 249 lines
                    
20	<h2>Error: PHP is not running</h2>
                    
21	<p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
                    
22</body>
                    
133			<th scope="row"><label for="blog_public"><?php _e( 'Privacy' ); ?></label></th>
                    
134			<td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow my site to appear in search engines like Google and Technorati.' ); ?></label></td>
                    
135		</tr>
                    
149$mysql_version  = $wpdb->db_version();
                    
150$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
                    
151$mysql_compat   = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
                    
153if ( !$mysql_compat && !$php_compat )
                    
154	$compat = sprintf( __('You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
                    
155elseif ( !$php_compat )
                    
155elseif ( !$php_compat )
                    
156	$compat = sprintf( __('You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version );
                    
157elseif ( !$mysql_compat )
                    
                
view.html.php https://github.com/wiktorm/projekt-awr.git | PHP | 321 lines
                    
1<?php
                    
2/*
                    
4 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
                    
5 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
6 *
                    
22		
                    
23		global $mainframe;
                    
24		$document			= &JFactory::getDocument();
                    
32		$tmpl['pi']		= 'components/com_phocadownload/assets/images/';
                    
33		$tmpl['pp']		= 'index.php?option=com_phocadownload&view=user&controller=user';
                    
34		$tmpl['pl']		= 'index.php?option=com_user&view=login&return='.base64_encode($tmpl['pp'].'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int'));
                    
190					}
                    
191					$link = 'index.php?option=com_phocadownload&view=user&Itemid='. $Itemid . $limitStartUrl;
                    
192					$mainframe->redirect(JRoute::_($link, false), JText::_("PHOCADOWNLOAD_FILE_UPLOADED"));
                    
                
modinfo.php https://github.com/severnaya99/Sg-2010.git | PHP | 186 lines
                    
1<?php
                    
2// $Id: modinfo.php,v 1.2 2004/01/29 17:15:54 mithyt2 Exp $
                    
74
                    
75define('_MI_NEWS_GLOBAL_NOTIFY', 'Globale');
                    
76define('_MI_NEWS_GLOBAL_NOTIFYDSC', 'Options de notification globale des articles.');
                    
80
                    
81define('_MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFY', 'Nouveau sujet');
                    
82define('_MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYCAP', 'Notifiez-moi quand un nouveau sujet est cr&eacute;&eacute;.');
                    
82define('_MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYCAP', 'Notifiez-moi quand un nouveau sujet est cr&eacute;&eacute;.');
                    
83define('_MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYDSC', 'Recevoir une notification quand un nouveau sujet est cr&eacute;&eacute;.');
                    
84define('_MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} notification automatique : Nouvel article');
                    
85
                    
86define('_MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFY', 'Nouvel article propos&eacute;');
                    
87define('_MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYCAP', 'Notifiez-moi lorsqu\'un nouvel article est propos&eacute; (attente d\'&ecirc;tre approuv&eacute;).');
                    
87define('_MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYCAP', 'Notifiez-moi lorsqu\'un nouvel article est propos&eacute; (attente d\'&ecirc;tre approuv&eacute;).');
                    
88define('_MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYDSC', 'Recevoir une notification lorsqu\'un nouvel article est propos&eacute; (attente d\'&ecirc;tre approuv&eacute;).');
                    
89define('_MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} notification automatique : Nouvel article propos&eacute;');
                    
                
Gateway.php https://github.com/rajibahmed/nailMF.git | PHP | 425 lines
                    
30require_once(AMFPHP_BASE . "shared/app/Constants.php");
                    
31require_once(AMFPHP_BASE . "shared/app/Globals.php");
                    
32if(AMFPHP_PHP5)
                    
33{
                    
34	require_once(AMFPHP_BASE . "shared/util/CompatPhp5.php");
                    
35}
                    
37{
                    
38	require_once(AMFPHP_BASE . "shared/util/CompatPhp4.php");
                    
39}
                    
77			include_once(AMFPHP_BASE . "shared/app/php5Executive.php");
                    
78			include_once(AMFPHP_BASE . "shared/exception/php5Exception.php");
                    
79		}
                    
83			include_once(AMFPHP_BASE . "shared/app/php4Executive.php");
                    
84			include_once(AMFPHP_BASE . "shared/exception/php4Exception.php");
                    
85		}
                    
                
provider.php https://bitbucket.org/moodle/moodle.git | PHP | 259 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
131    public static function export_user_data(approved_contextlist $contextlist) {
                    
132        global $DB;
                    
133
                    
188    public static function delete_data_for_all_users_in_context(\context $context) {
                    
189        global $DB;
                    
190
                    
205    public static function delete_data_for_user(approved_contextlist $contextlist) {
                    
206        global $DB;
                    
207
                    
229    public static function delete_data_for_users(approved_userlist $userlist) {
                    
230        global $DB;
                    
231        $context = $userlist->get_context();
                    
                
behat_core_question.php https://bitbucket.org/moodle/moodle.git | PHP | 217 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
16
                    
17// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.
                    
18
                    
18
                    
19require_once(__DIR__ . '/behat_question_base.php');
                    
20
                    
70            case 'course question bank':
                    
71                return new moodle_url('/question/edit.php',
                    
72                        ['courseid' => $this->get_course_id($identifier)]);
                    
74            case 'course question import':
                    
75                return new moodle_url('/question/bank/importquestions/import.php',
                    
76                        ['courseid' => $this->get_course_id($identifier)]);
                    
78            case 'course question export':
                    
79                return new moodle_url('/question/bank/exportquestions/export.php',
                    
80                        ['courseid' => $this->get_course_id($identifier)]);
                    
                
README.md https://gitlab.com/matijabelec/bigpandadev | Markdown | 343 lines
                    
12$js = new AssetCollection(array(
                    
13    new GlobAsset('/path/to/js/*'),
                    
14    new FileAsset('/path/to/another.js'),
                    
65
                    
66``` php
                    
67<?php
                    
95 * `LessFilter`: parses LESS into CSS (using less.js with node.js)
                    
96 * `LessphpFilter`: parses LESS into CSS (using lessphp)
                    
97 * `OptiPngFilter`: optimize your PNGs
                    
104 * `Sass\ScssFilter`: parses SCSS into CSS
                    
105 * `ScssphpFilter`: parses SCSS using scssphp
                    
106 * `SeparatorFilter`: inserts a separator between assets to prevent merge failures
                    
134
                    
135``` php
                    
136<?php
                    
                
editor.php https://gitlab.com/ppapadatis/Videolearn | PHP | 522 lines
                    
1<?php
                    
2/**
                    
91	/**
                    
92	 * Returns the global Editor object, only creating it
                    
93	 * if it doesn't already exist.
                    
488		$name = JFilterInput::getInstance()->clean($this->_name, 'cmd');
                    
489		$path = JPATH_PLUGINS . '/editors/' . $name . '.php';
                    
490
                    
492		{
                    
493			$path = JPATH_PLUGINS . '/editors/' . $name . '/' . $name . '.php';
                    
494			if (!JFile::exists($path))
                    
                
backuplib.php https://github.com/nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 252 lines
                    
1<?php //$Id: backuplib.php,v 1.7 2007/04/22 22:07:03 stronk7 Exp $
                    
2    //This php script contains all the stuff to backup/restore
                    
20    function mplayer_backup_mods($bf,$preferences) {
                    
21        global $CFG;
                    
22
                    
38
                    
39        global $CFG;
                    
40    
                    
177
                    
178        global $CFG;
                    
179
                    
182        //Link to the list of mplayers
                    
183        $buscar="/(".$base."\/mod\/mplayer\/index.php\?id\=)([0-9]+)/";
                    
184        $result= preg_replace($buscar,'$@MPLAYERINDEX*$2@$',$content);
                    
186        //Link to mplayer view by moduleid
                    
187        $buscar="/(".$base."\/mod\/mplayer\/view.php\?id\=)([0-9]+)/";
                    
188        $result= preg_replace($buscar,'$@MPLAYERVIEWBYID*$2@$',$result);
                    
                
shopping_cart_page.php https://github.com/evadne/wp-e-commerce.git | PHP | 330 lines
                    
22		<tr class="product_row">
                    
23			<td class="firstcol"><img src='<?php echo wpsc_cart_item_image(48,48); ?>' alt='<?php echo wpsc_cart_item_name(); ?>' title='<?php echo wpsc_cart_item_name(); ?>' /></td>
                    
24			<td class="firstcol">
                    
117							<?php if(wpsc_have_morethanone_shipping_methods_and_quotes()): ?>
                    
118								<input type='radio' id='<?php echo wpsc_shipping_quote_html_id(); ?>' <?php echo wpsc_shipping_quote_selected_state(); ?>  onclick='switchmethod("<?php echo wpsc_shipping_quote_name(); ?>", "<?php echo wpsc_shipping_method_internal_name(); ?>")' value='<?php echo wpsc_shipping_quote_value(true); ?>' name='shipping_method' />
                    
119							<?php else: ?>
                    
119							<?php else: ?>
                    
120								<input <?php echo wpsc_shipping_quote_selected_state(); ?> disabled='disabled' type='radio' id='<?php echo wpsc_shipping_quote_html_id(); ?>'  value='<?php echo wpsc_shipping_quote_value(true); ?>' name='shipping_method' />
                    
121									<?php wpsc_update_shipping_single_method(); ?>
                    
269							<?php if(wpsc_gateway_internal_name() == 'noca'){ ?>
                    
270								<label><input type="radio" id='noca_gateway' value="<?php echo wpsc_gateway_internal_name();?>" <?php echo wpsc_gateway_is_checked(); ?> name="custom_gateway" class="custom_gateway"/><?php echo wpsc_gateway_name();?></label>
                    
271							<?php }else{ ?>
                    
271							<?php }else{ ?>
                    
272								<label><input type="radio" value="<?php echo wpsc_gateway_internal_name();?>" <?php echo wpsc_gateway_is_checked(); ?> name="custom_gateway" class="custom_gateway"/><?php echo wpsc_gateway_name();?></label>
                    
273							<?php } ?>
                    
                
instructions.php https://github.com/evadne/wp-e-commerce.git | PHP | 380 lines
                    
1<?php
                    
2global $wpdb;
                    
4<div class="wrap">
                    
5<?php
                    
6
                    
                
paypal_pro.php https://github.com/evadne/wp-e-commerce.git | PHP | 348 lines
                    
1<?php
                    
2/*
                    
50function gateway_paypal_pro($seperator, $sessionid){
                    
51	global $wpdb, $wpsc_cart;
                    
52	$purchase_log = $wpdb->get_row("SELECT * FROM `".WPSC_TABLE_PURCHASE_LOGS."` WHERE `sessionid`= ".$sessionid." LIMIT 1",ARRAY_A) ;
                    
                
class-ms-model-customposttype.php https://gitlab.com/najomie/fit-hippie | PHP | 471 lines
                    
1<?php
                    
2/**
                    
16	 *
                    
17	 * Both static and class property are used to handle php 5.2 limitations.
                    
18	 * Override this value in child object.
                    
189
                    
190		global $wp_current_filter;
                    
191		if ( ! in_array( 'ms_saved_' . $class, $wp_current_filter ) ) {
                    
274	private function clean_metadata( $data_to_keep ) {
                    
275		global $wpdb;
                    
276
                    
                
shipping_address.php https://github.com/subhabrata/oscommerce.git | PHP | 253 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3  $Id:shipping_address.php 188 2005-09-15 02:25:52 +0200 (Do, 15 Sep 2005) hpdl $
                    
4
                    
14
                    
15  require('includes/classes/address_book.php');
                    
16
                    
23        $_page_title,
                    
24        $_page_contents = 'checkout_shipping_address.php',
                    
25        $_page_image = 'table_background_delivery.gif';
                    
29    function osC_Checkout_Shipping_address() {
                    
30      global $osC_Session, $osC_ShoppingCart, $osC_Customer, $osC_Services, $osC_Language, $osC_NavigationHistory, $osC_Breadcrumb;
                    
31
                    
44      $this->addJavascriptFilename('templates/' . $this->getCode() . '/javascript/checkout_shipping_address.js');
                    
45      $this->addJavascriptPhpFilename('includes/form_check.js.php');
                    
46
                    
                
class.php https://gitlab.com/neuser/bitrix-core | PHP | 658 lines
                    
1<?php
                    
2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
                    
12
                    
13require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/wizard.php"); //Wizard API
                    
14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils
                    
14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils
                    
15require_once("tools/bsmpackage.php");
                    
16require_once("tools/modulechecker.php");
                    
16require_once("tools/modulechecker.php");
                    
17require_once("tools/bitrixvmchecker.php");
                    
18require_once("tools/agentchecker.php");
                    
18require_once("tools/agentchecker.php");
                    
19require_once("tools/pushchecker.php");
                    
20require_once("tools/sitepatcher.php");
                    
149	{
                    
150		/** @noinspection PhpVariableNamingConventionInspection */
                    
151		global $APPLICATION;
                    
                
index.php https://github.com/ECP-Black/ECP.git | PHP | 184 lines
                    
1<?php
                    
2function news($topicID = 0) {
                    
2function news($topicID = 0) {
                    
3	global $db;
                    
4	if($topicID) {
                    
52function news_archiv($topicID = 0) {
                    
53	global $db;
                    
54	$topics = array();
                    
102function news_once($id) {
                    
103	global $db;
                    
104	$anzahl = $db->result(DB_PRE.'ecp_news', 'COUNT(newsID)', '(lang = "" OR lang LIKE ",%'.LANGUAGE.'%,") AND '.DB_PRE.'ecp_news.datum < '.time().' AND (access = "" OR '.$_SESSION['access_search'].') AND newsID = '.$id);
                    
                
toolbar.php https://gitlab.com/michield/dokuwiki | PHP | 255 lines
                    
1<?php
                    
2/**
                    
18function toolbar_JSdefines($varname){
                    
19    global $lang;
                    
20
                    
198                'icon'   => 'image.png',
                    
199                'url'    => 'lib/exe/mediamanager.php?ns=',
                    
200                'name'   => 'mediaselect',
                    
241function toolbar_signature(){
                    
242    global $conf;
                    
243    global $INFO;
                    
                
session.php https://github.com/mathieu/fusionforge.git | PHP | 552 lines
                    
1<?php
                    
2/**
                    
77	$session_serial = base64_decode($session_serial);
                    
78	$new_hash = md5($session_serial.$GLOBALS['sys_session_key']);
                    
79
                    
91	}
                    
92	if (($GLOBALS['sys_session_expire'] > 0) && 
                    
93	    ($time - time() >= $GLOBALS['sys_session_expire'])) {
                    
126 *	@param		bool	Allow login to non-confirmed user account (only for confirmation of the very account)
                    
127 *	@return true/false, if false reason is in global $feedback
                    
128 *	@access public
                    
386function session_set_new($user_id) {
                    
387	global $G_SESSION,$session_ser;
                    
388
                    
490
                    
491//TODO - this should be generalized and used for pre.php, squal_pre.php, 
                    
492//SOAP, forum_gateway.php, tracker_gateway.php, etc to 
                    
                
tbl_structure.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 469 lines
                    
19require_once 'libraries/structure.lib.php';
                    
20require_once 'libraries/index.lib.php';
                    
21
                    
42if (isset($_REQUEST['change_column'])) {
                    
43    PMA_displayHtmlForColumnChange($db, $table, null, 'tbl_structure.php');
                    
44    exit;
                    
94            // browsing the table displaying only selected fields/columns
                    
95            $GLOBALS['active_page'] = 'sql.php';
                    
96            $sql_query = '';
                    
137require_once 'libraries/tbl_common.inc.php';
                    
138$url_query .= '&amp;goto=tbl_structure.php&amp;back=tbl_structure.php';
                    
139$url_params['goto'] = 'tbl_structure.php';
                    
442    //return the list of index
                    
443    $response->addJSON('indexes_list', PMA_Index::getView($GLOBALS['table'], $GLOBALS['db']));
                    
444    $response->addHTML(PMA_getHtmlForDisplayIndexes());
                    
                
backuplib.php https://github.com/cwaclawik/moodle.git | PHP | 337 lines
                    
1<?PHP //$Id$
                    
2    //This php script contains all the stuff to backup/restore
                    
38    function hotpot_backup_mods($bf, $preferences) {
                    
39        global $DB;
                    
40
                    
83        if ($backup_userdata_selected) {
                    
84            $more_backup .= '$GLOBALS["hotpot_backup_string_ids"] = array();';
                    
85            $more_backup .= '$status = hotpot_backup_attempts($bf, $record, $level, $status);';
                    
87            $more_backup .= '$status = hotpot_backup_strings($bf, $record, $level, $status);';
                    
88            $more_backup .= 'unset($GLOBALS["hotpot_backup_string_ids"]);'; // tidy up
                    
89        }
                    
179        // The string ids are used later by "hotpot_backup_strings"
                    
180        // $GLOBALS['hotpot_backup_string_ids'] was initialized in "hotpot_backup_mods"
                    
181        // store the ids of strings used in this $record's $fields
                    
191                    } else {
                    
192                        $GLOBALS['hotpot_backup_string_ids'][$id] = true;
                    
193                    }
                    
                
Clover.php https://gitlab.com/ealexis.t/trends | PHP | 284 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the PHP_CodeCoverage package.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
11/**
                    
12 * Generates a Clover XML logfile from an PHP_CodeCoverage object.
                    
13 *
                    
15 */
                    
16class PHP_CodeCoverage_Report_Clover
                    
17{
                    
18    /**
                    
19     * @param  PHP_CodeCoverage $coverage
                    
20     * @param  string           $target
                    
                
 

Source

Language