PageRenderTime 615ms queryTime 56ms sortTime 221ms getByIdsTime 56ms findMatchingLines 88ms

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

Not the results you expected?
questionusagebyactivity_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 284 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
28
                    
29global $CFG;
                    
30require_once(dirname(__FILE__) . '/../lib.php');
                    
30require_once(dirname(__FILE__) . '/../lib.php');
                    
31require_once(dirname(__FILE__) . '/helpers.php');
                    
32
                    
                
admin.php https://github.com/JamieLomas/pyrocms.git | PHP | 540 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
40			'field' => 'keywords',
                    
41			'label' => 'lang:global:keywords',
                    
42			'rules' => 'trim'
                    
                
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{
                    
                
update.php https://github.com/chopsuei3/oscc.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
76
                    
77	include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
                    
78
                    
182	case 'development' :
                    
183		return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) );
                    
184	break;
                    
186	case 'upgrade' :
                    
187		return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', network_admin_url( 'update-core.php' ), $cur->current);
                    
188	break;
                    
201
                    
202	global $pagenow;
                    
203
                    
203
                    
204	if ( 'update-core.php' == $pagenow )
                    
205		return;
                    
                
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;
                    
                
Page.php https://github.com/grandison/budo16.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
                    
                
Data.php https://bitbucket.org/mkrasuski/magento-ce.git | 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     *
                    
                
jCoordinator.class.php https://github.com/foxmask/Booster.git | PHP | 418 lines
                    
1<?php
                    
2/**
                    
80    function __construct ($configFile, $enableErrorHandler=true) {
                    
81        global $gJCoord, $gJConfig;
                    
82
                    
104    private function _loadPlugins(){
                    
105        global $gJConfig;
                    
106
                    
121            }
                    
122            include( $gJConfig->_pluginsPathList_coord[$name].$name.'.coord.php');
                    
123            $class= $name.'CoordPlugin';
                    
134    public function process ($request){
                    
135        global $gJConfig;
                    
136
                    
278    public function handleError($type, $code, $message, $file, $line, $trace){
                    
279        global $gJConfig;
                    
280
                    
                
wikiparser_test.php https://github.com/pauln/moodle.git | PHP | 247 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
20 * @package   mod_wiki
                    
21 * @category  phpunit
                    
22 * @copyright 2009 Marc Alier, Jordi Piguillem marc.alier@upc.edu
                    
35
                    
36global $CFG;
                    
37require_once($CFG->dirroot . '/mod/wiki/parser/parser.php');
                    
91        $input = '<h1>Code &amp; Test</h1>';
                    
92        $output = '<h3><a name="toc-1"></a>Code &amp; Test <a href="edit.php?pageid=&amp;section=Code+%26amp%3B+Test" '.
                    
93            'class="wiki_edit_section">[edit]</a></h3>' . "\n";
                    
94        $toc = '<div class="wiki-toc"><p class="wiki-toc-title">Table of contents</p><p class="wiki-toc-section-1 '.
                    
95            'wiki-toc-section">1. <a href="#toc-1">Code &amp; Test <a href="edit.php?pageid=&amp;section=Code+%26amp%3B+'.
                    
96            'Test" class="wiki_edit_section">[edit]</a></a></p></div>';
                    
104        $input = '<h1>Another áéíóúç€ test</h1>';
                    
105        $output = '<h3><a name="toc-1"></a>Another áéíóúç€ test <a href="edit.php?pageid=&amp;section=Another+%C'.
                    
106            '3%A1%C3%A9%C3%AD%C3%B3%C3%BA%C3%A7%E2%82%AC+test" class="wiki_edit_section">[edit]</a></h3>' . "\n";
                    
                
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        }
                    
                
skeinforge_application.skeinforge_plugins.craft_plugins.export.html https://github.com/nmsl1993/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>
                    
                
javascript.php https://bitbucket.org/tdevonshire/hoolux.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 */
                    
                
geographic.hpp https://github.com/VoltDB/voltdb.git | C++ Header | 458 lines
                    
118    //       because then N_i / (N_i + h_i) = 1
                    
119    // http://www.navipedia.net/index.php/Ellipsoidal_and_Cartesian_Coordinates_Conversion
                    
120
                    
285    // no need to normalize a1 and a2 because the intersection point on
                    
286    // the opposite side of the globe is at the same distance from the origin
                    
287    coord_t cos_a1i = dot_product(a1, id);
                    
                
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);
                    
                
index.html https://github.com/sethladd/alohaonrails-site.git | HTML | 216 lines
                    
13<link rel="alternate" type="application/atom+xml" title="Aloha On Rails - Hawaii Ruby on Rails Conference - Waikiki - Oct 5-6 2009 Atom Feed" href="http://www.alohaonrails.com/feed/atom/" />
                    
14<link rel="pingback" href="http://www.alohaonrails.com/xmlrpc.php" />
                    
15<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.alohaonrails.com/xmlrpc.php?rsd" />
                    
38	<div class="container_16">
                    
39		<div class="grid_11 prefix_1" id="globalNav">
                    
40  		<ul>
                    
114
                    
115<form action="http://www.alohaonrails.com/wp-comments-post.php" method="post" id="commentform">
                    
116
                    
171	<ul class='xoxo blogroll'>
                    
172<li><a href="http://www.facebook.com/home.php#/event.php?eid=83813944777" title="Facebook Event for Aloha on Rails">Facebook Event</a></li>
                    
173<li><a href="http://events.linkedin.com/Aloha-Rails-Hawaii-Ruby-Rails-Conference/pub/65989" title="LinkedIn event page">LinkedIn Event</a></li>
                    
182<div><script type="text/javascript">var addthis_pub="sethladd";</script>
                    
183<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script></div>
                    
184<!-- AddThis Button END -->
                    
                
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                                }
                    
                
Command.php https://github.com/nicnocquee/PPION-Website.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());
                    
                
rewrite.php https://bitbucket.org/antonyravel/cape-resorts.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		);  
                    
                
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;
                    
                
header.tmpl.php https://github.com/harriswong/ATutor.git | PHP | 237 lines
                    
87			<?php if (get_num_new_messages()): ?>
                    
88				<strong><a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> - <?php echo get_num_new_messages(); ?></a></strong> | 
                    
89			<?php else: ?>
                    
158				<?php if ($page['url'] == $this->current_top_level_page): ?>
                    
159					<li><a href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'] . $accesskey_title; ?>" class="active"><?php echo $page['title']; ?></a></li>
                    
160				<?php else: ?>
                    
219		<?php if ($this->sequence_links['resume']): ?>
                    
220				<a style="color:white;" href="<?php echo $this->sequence_links['resume']['url']; ?>" accesskey="."><img src="<?php echo $this->img; ?>resume.gif" border="0" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?> Alt+." alt="<?php echo $this->sequence_links['resume']['title']; ?> Alt+." class="img-size-ascdesc" /></a>
                    
221		<?php else:
                    
222			if ($this->sequence_links['previous']): ?>
                    
223				<a href="<?php echo $this->sequence_links['previous']['url']; ?>" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," accesskey=","><img src="<?php echo $this->img; ?>previous.gif" border="0" alt="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," class="img-size-ascdesc" /></a>
                    
224			<?php endif;
                    
225			if ($this->sequence_links['next']): ?>
                    
226				<a href="<?php echo $this->sequence_links['next']['url']; ?>" title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." accesskey="."><img src="<?php echo $this->img; ?>next.gif" border="0" alt="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." class="img-size-ascdesc" /></a>
                    
227			<?php endif; ?>
                    
                
Driver.php.html https://github.com/akentner/LexsignExtensions.git | HTML | 215 lines
                    
8        <link rel="stylesheet" type="text/css" href="../../../../js/jquery.sidebar/css/codebrowser/sidebar.css" />
                    
9        <link rel="stylesheet" type="text/css" href="../../../../css/global.css" />
                    
10        <link rel="stylesheet" type="text/css" href="../../../../css/cruisecontrol.css" />
                    
24            <a href="./../../../../index.html">Go back to index</a> |
                    
25            <a href="http://github.com/mayflowergmbh/PHP_CodeBrowser">PHP CodeBrowser</a>
                    
26        </div>
                    
29            <div class="filepath">
                    
30                library/Doctrine/ORM/Mapping/Driver/Driver.php            </div>
                    
31
                    
34<span class="lineNumber">&nbsp;1&nbsp;</span><span>
                    
35</span><span class="default">&lt;?php</span><a name="line_1"></a>
                    
36</li>
                    
                
Page.php https://github.com/Ezku/xi-framework.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
                    
                
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");
                    
                
MaildirFolderTest.php https://github.com/sidealice/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
199
                    
200    public function testGlobalName()
                    
201    {
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
206        } catch (\Exception $e) {
                    
207            $this->fail('exception raised while selecting existing folder and getting global name');
                    
208        }
                    
231        foreach ($iterator as $localName => $folder) {
                    
232            if (!isset($search_folders[$folder->getGlobalName()])) {
                    
233                continue;
                    
                
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
                    
                
properties.php https://github.com/markdev/markandkitty.git | PHP | 460 lines
                    
178<?php  if (!$previewMode) { ?>
                    
179	<li><a href="javascript:void(0)" id="ccm-file-properties-versions-<?php echo $f->getFileID()?>-<?php echo $fv->getFileVersionID()?>"><?php echo t('Versions')?></a></li>
                    
180<?php  } ?>
                    
180<?php  } ?>
                    
181<li><a href="javascript:void(0)" id="ccm-file-properties-statistics-<?php echo $f->getFileID()?>-<?php echo $fv->getFileVersionID()?>"><?php echo t('Statistics')?></a></li>
                    
182</ul>
                    
246	<th><?php echo t('Size')?></th>
                    
247	<td colspan="2"><?php echo $fv->getSize()?> (<?php echo number_format($fv->getFullSize())?> <?php echo t('bytes')?>)</td>
                    
248</tr>
                    
356		foreach($versions as $fvv) { ?>
                    
357			<tr fID="<?php echo $f->getFileID()?>" fvID="<?php echo $fvv->getFileVersionID()?>" <?php  if ($fvv->getFileVersionID() == $fv->getFileVersionID()) { ?> class="ccm-file-versions-grid-active" <?php  } ?>>
                    
358				<td style="text-align: center">
                    
362					<div style="width: 150px; word-wrap: break-word">
                    
363					<a href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/files/properties?fID=<?php echo $f->getFileID()?>&fvID=<?php echo $fvv->getFileVersionID()?>&task=preview_version" dialog-modal="false" dialog-width="630" dialog-height="450" dialog-title="<?php echo t('Preview File')?>" class="dialog-launch">
                    
364						<?php echo $fvv->getFilename()?>
                    
                
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;
                    
                
engine.php https://github.com/ankitagarwal/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) {
                    
                
yii.php https://github.com/AlexMarlo/web-file-manager.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.' => '',
                    
                
class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | 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>
                    
                
high-dynamic-range.html https://github.com/trevor/ImageMagick.git | HTML | 300 lines
                    
17  <meta name="application-url" content="http://www.imagemagick.org"/>
                    
18  <meta name="generator" content="PHP"/>
                    
19  <meta name="keywords" content="high, dynamic-range, images, ImageMagick, PerlMagick, image processing, OpenMP, software development library, image, photo, software, Magick++, MagickWand"/>
                    
26  <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"/>
                    
27  <meta name="distribution" content="Global"/>
                    
28  <link rel="icon" href="../images/wand.png"/>
                    
                
flock.php https://github.com/denisbz/SPIP-1.git | PHP | 411 lines
                    
26
                    
27$GLOBALS['liste_verrous'] = array();
                    
28// http://doc.spip.org/@spip_fopen_lock
                    
50	elseif(_SPIP_LOCK_MODE==2) {
                    
51		spip_nfsunlock(reset($GLOBALS['liste_verrous'][$handle]),end($GLOBALS['liste_verrous'][$handle]));
                    
52		unset($GLOBALS['liste_verrous'][$handle]);
                    
77// options = array(
                    
78// 'phpcheck' => 'oui' # verifier qu'on a bien du php
                    
79// dezippe automatiquement les fichiers .gz
                    
193/**
                    
194 * Ecrire un contenu dans un fichier encapsule en php pour en empecher l'acces en l'absence
                    
195 * de htaccess
                    
201function ecrire_fichier_securise ($fichier, $contenu, $ecrire_quand_meme = false, $truncate=true) {
                    
202	if (substr($fichier,-4) !== '.php')
                    
203		spip_log('Erreur de programmation: '.$fichier.' doit finir par .php');
                    
                
construct.h https://github.com/tstarling/hiphop-php.git | C Header | 346 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_CONSTRUCT_H_
                    
18#define incl_HPHP_CONSTRUCT_H_
                    
22#include "hphp/compiler/code_generator.h"
                    
23#include "hphp/compiler/analysis/code_error.h"
                    
24#include "hphp/compiler/analysis/block_scope.h"
                    
83                                 // alias manager
                    
84    GlobalEffect = 4,            // could affect global variables
                    
85    LocalEffect = 8,             // could affect variables from the local scope
                    
                
mkdist.php https://bitbucket.org/luobailiang/php-src.git | 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 */
                    
                
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.
                    
                
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
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
46	 * Components are encouraged to store their data in the $bp global rather
                    
47	 * than new globals to keep all BuddyPress data in one place.
                    
48	 */
                    
224	 * @uses BuddyPress::constants() Setup legacy constants
                    
225	 * @uses BuddyPress::setup_globals() Setup globals needed
                    
226	 * @uses BuddyPress::includes() Includ required files
                    
239	 * Try to avoid using these. Their values have been moved into variables
                    
240	 * in the $bp global, and have matching functions to get/set their value.
                    
241	 *
                    
397				require( $this->plugin_dir . 'bp-core/bp-core-caps.php'      );
                    
398				require( $this->plugin_dir . 'bp-core/bp-core-options.php'   );
                    
399
                    
414			// Require all of the BuddyPress core libraries
                    
415			require( $this->plugin_dir . 'bp-core/bp-core-actions.php'    );
                    
416			require( $this->plugin_dir . 'bp-core/bp-core-caps.php'       );
                    
                
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	}
                    
                
ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
                    
1<?php
                    
2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $
                    
6* @package VirtueMart
                    
8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved.
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
10* VirtueMart is free software. This version may have been modified pursuant
                    
13* other free or open source software licenses.
                    
14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
15*
                    
50
                    
51		global $my, $acl, $user;
                    
52		$db = new ps_DB;
                    
226	function list_perms( $name, $group_name, $size=1, $multi=false ) {
                    
227		global $VM_LANG;
                    
228		$auth = $_SESSION['auth'];
                    
                
run-tests.py https://bitbucket.org/mdavid/cherokee-webserver-svnclone.git | Python | 489 lines
                    
137if php_interpreter:
                    
138    print_key('PHP', php_interpreter)
                    
139else:
                    
139else:
                    
140    print_key('PHP', "Couldn't find a suitable PHP interpreter (with fastcgi support)")
                    
141
                    
229vserver!1!document_root = %(www)s
                    
230vserver!1!directory_index = test_index.html,test_index.php,/super_test_index.php
                    
231vserver!1!rule!1!match = default
                    
248
                    
249for php in php_ext.split("\n"):
                    
250    CONF_BASE += "vserver!1!rule!%s\n" % (php)
                    
289    obj.nobody   = nobody
                    
290    obj.php_conf = php_ext
                    
291    objs.append(obj)
                    
                
view.html.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 496 lines
                    
1<?php
                    
2/**
                    
183				$item->params->set('marker_address',   JText::_('COM_CONTACT_ADDRESS') . ': ');
                    
184				$item->params->set('marker_email',     JText::_('JGLOBAL_EMAIL') . ': ');
                    
185				$item->params->set('marker_telephone', JText::_('COM_CONTACT_TELEPHONE') . ': ');
                    
216				{
                    
217					$image2 = JHtml::_('image', $item->params->get('icon_email', 'emailButton.png'), JText::_('JGLOBAL_EMAIL') . ': ', null, false);
                    
218				}
                    
220				{
                    
221					$image2 = JHtml::_('image', 'contacts/' . $item->params->get('icon_email', 'emailButton.png'), JText::_('JGLOBAL_EMAIL') . ': ', null, true);
                    
222				}
                    
                
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
                    
                
resource_document.php https://github.com/kpike/moodle.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* Global Search Engine for Moodle
                    
4*
                    
17* Functions for iterating and retrieving the necessary records are now also included
                    
18* in this file, rather than mod/resource/lib.php
                    
19*/
                    
23*/
                    
24require_once($CFG->dirroot.'/search/documents/document.php');
                    
25require_once($CFG->dirroot.'/mod/resource/lib.php');
                    
58function resource_make_link($resource_id) {
                    
59    global $CFG;
                    
60    
                    
60    
                    
61    return $CFG->wwwroot.'/mod/resource/view.php?id='.$resource_id;
                    
62} 
                    
                
class-wp-ms-sites-list-table.php https://github.com/terry69/fluxflex_wordpress.git | PHP | 340 lines
                    
214						<th scope="row" class="check-column">
                    
215							<input type="checkbox" id="blog_<?php echo $blog['blog_id'] ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ) ?>" />
                    
216						</th>
                    
221						<th valign="top" scope="row">
                    
222							<?php echo $blog['blog_id'] ?>
                    
223						</th>
                    
228						echo "<td class='column-$column_name $column_name'$style>"; ?>
                    
229							<a href="<?php echo esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ); ?>" class="edit"><?php echo $blogname . $blog_state; ?></a>
                    
230							<?php
                    
249								else
                    
250									$actions['deactivate']	= '<span class="activate"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'edit.php?action=confirm&amp;action2=deactivateblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to deactivate the site %s' ), $blogname ) ) ), 'confirm') ) . '">' . __( 'Deactivate' ) . '</a></span>';
                    
251
                    
254								else
                    
255									$actions['archive']	= '<span class="archive"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'edit.php?action=confirm&amp;action2=archiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to archive the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . _x( 'Archive', 'verb; site' ) . '</a></span>';
                    
256
                    
                
Pro.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 436 lines
                    
1<?php
                    
2/**
                    
334    {
                    
335        $pendingReason = $payment->getAdditionalInformation(\Magento\Paypal\Model\Info::PENDING_REASON_GLOBAL);
                    
336        return $this->_isPaymentReviewRequired(
                    
                
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();
                    
                
IndexController.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 390 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) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
99    /**
                    
100     * Global Search Action
                    
101     */
                    
101     */
                    
102    public function globalSearchAction()
                    
103    {
                    
103    {
                    
104        $searchModules = Mage::getConfig()->getNode("adminhtml/global_search");
                    
105        $items = 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 } ?>
                    
                
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
                    
                
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
                    
                
common_html.php https://github.com/ckdimka/core.git | PHP | 813 lines
                    
43<head>
                    
44  <title>LiteCommerce v.<?php echo LC_VERSION; ?> <?php echo xtr('Installation Wizard'); ?></title>
                    
45  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                    
50
                    
51<?php
                    
52
                    
56
                    
57    global $skinsDir;
                    
58
                    
297  background-color: transparent;
                    
298  background-image: url(<?php echo $skinsDir; ?>images/button_bg_blue_hover.png);
                    
299}
                    
301td.next-button-layer {
                    
302  background: url(<?php echo $skinsDir; ?>images/next_arrow.png) no-repeat 0 0;
                    
303  width: 151px;
                    
                
class.ShowOptionsPage.php https://github.com/jstar88/LibreTitan.git | PHP | 346 lines
                    
1<?php
                    
2
                    
39	{
                    
40		global $lang;
                    
41
                    
54
                    
55				die(header("location:game.php?page=options"));
                    
56			}
                    
59				$urlaubs_modus = "1";
                    
60				die(header("location:game.php?page=options"));
                    
61			}
                    
187				{
                    
188					message($lang['op_cant_activate_vacation_mode'], "game.php?page=options",2);
                    
189				}
                    
261						setcookie(COOKIE_NAME, "", time()-100000, "/", "", 0);
                    
262						message($lang['op_password_changed'],"index.php",1);
                    
263					}
                    
                
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;
                    
                
index.php https://github.com/shamilcm/wireus.git | PHP | 291 lines
                    
4
                    
5<?php 
                    
6
                    
8        if($_SESSION['authuser']!=1)
                    
9                header("Location:../index.php");
                    
10      ?>  
                    
24        $('#gridfriends').tableScroll({height:700, width:270});
                    
25   $(".globalheader").click(function(){
                    
26                $(".globalheader").stop().animate({top:"0px"},"slow");
                    
27           });
                    
28 $(".globalheader").hover(function(){
                    
29         },
                    
30         function() {
                    
31		 $(".globalheader").stop().animate({top:"-30px"},"slow");
                    
32         });
                    
                
EditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
                    
107	$params[] = "<a href='index.php?module={$focus->module_dir}&action=DetailView&record={$focus->id}'>{$focus->name}</a>";
                    
108	$params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL'];
                    
109}
                    
172$xtpl->assign("CANCEL_SCRIPT", $cancel_script);
                    
173$xtpl->assign("PRINT_URL", "index.php?".$GLOBALS['request_string']);
                    
174$xtpl->assign("JAVASCRIPT", get_set_focus_js() . $quicksearch_js);
                    
175
                    
176if(!is_file($GLOBALS['sugar_config']['cache_dir'] . 'jsLanguage/' . $GLOBALS['current_language'] . '.js')) {
                    
177    require_once('include/language/jsLanguage.php');
                    
177    require_once('include/language/jsLanguage.php');
                    
178    jsLanguage::createAppStringsCache($GLOBALS['current_language']);
                    
179}
                    
179}
                    
180$jsLang = '<script type="text/javascript" src="' . $GLOBALS['sugar_config']['cache_dir'] . 'jsLanguage/' . $GLOBALS['current_language'] . '.js?s=' . $GLOBALS['sugar_version'] . '&c=' . $GLOBALS['sugar_config']['js_custom_version'] . '&j=' . $GLOBALS['sugar_config']['js_lang_version'] . '"></script>';
                    
181$xtpl->assign("JSLANG", $jsLang);
                    
                
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
                    
                
class-wp-theme-install-list-table.php https://bitbucket.org/technicise/wordpress.git | PHP | 394 lines
                    
116	function get_views() {
                    
117		global $tabs, $tab;
                    
118
                    
121			$class = ( $action == $tab ) ? ' class="current"' : '';
                    
122			$href = self_admin_url('theme-install.php?tab=' . $action);
                    
123			$display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>";
                    
226		?>
                    
227		<a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
                    
228			<img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
                    
260				<div class="wp-full-overlay-footer">
                    
261					<a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
                    
262						<span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
                    
347				<div class="theme-description">
                    
348					<?php echo wp_kses( $theme->description, $themes_allowedtags ); ?>
                    
349				</div>
                    
                
phpBB.php https://bitbucket.org/adatux_/uakami.git | PHP | 538 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Implementation of phpBB converter.
                    
5 */
                    
5 */
                    
6class phpBB extends BBP_Converter_Base {
                    
7	function __construct() {
                    
8		parent::__construct();
                    
9		$this->setup_globals();
                    
10	}
                    
11
                    
12	public function setup_globals() {
                    
13
                    
357			'to_fieldname' => '_bbp_class',
                    
358			'default'      => 'phpBB'
                    
359		);
                    
                
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) . ')';
                    
                
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(
                    
                
faq-content.html https://github.com/jlongster/mozilla.com.git | HTML | 201 lines
                    
1<?php
                    
2    // please translate the variable below
                    
40    <dt id="q2">Tem custos?</dt>
                    
41    <dd>Não. O Firefox foi criado como parte da fundação sem fins lucrativos Mozilla que se comprometeu com a aberura, inovação e oportunidade da Internet. Achamos que software gratuito e de código aberto como o Firefox é fundamental para manter a internet como um recurso global. <a href="http://www.mozilla.org/foundation">Saber mais</a>.</dd>
                    
42
                    
49    <dt id="q6">Quem faz o Firefox?</dt>
                    
50    <dd>O Firefox foi produzido pela fundação sem fins lucrativos Mozilla com a ajuda de uma comunidade global. Devido às contribuições da comunidade, adicionamos novos extras e actualizações que tronam o Firefox mais rápido, seguro e potente. Quer ajudar? Visite a página <a href="../developers/">Desenvolver para o Mobile</a>.</dd>
                    
51
                    
146    <dt id="q18">Preciso de obter o extra Firefox Sync para utilizar o Firefox no meu telemóvel?</dt>
                    
147    <dd>Não. Embora sincronizar o Firefox entre o seu PC e o telemóvel com o Firefox Sync, na nossa opinião, é super útil, é um serviço opcional que pode ou não escolher. Pode ainda desfrutar do Firefox em que confia sem o ter. O Firefox Sync permite partilhar o histórico, marcadores, preferências e muito mais, melhorando a sua experiência global de navegação onde quer que esteja.</dd>
                    
148
                    
                
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>
                    
                
config.php https://github.com/olberger/fusionforge.git | PHP | 396 lines
                    
16define ('_DEBUG_PARSER',    4); // verbose parsing steps
                    
17define ('_DEBUG_TRACE',     8); // test php memory usage, prints php debug backtraces
                    
18define ('_DEBUG_INFO',     16);
                    
45    if (!$HTTP_USER_AGENT)
                    
46        $HTTP_USER_AGENT = @$GLOBALS['HTTP_SERVER_VARS']['HTTP_USER_AGENT'];
                    
47    if (!$HTTP_USER_AGENT) // CGI
                    
47    if (!$HTTP_USER_AGENT) // CGI
                    
48        $HTTP_USER_AGENT = @$GLOBALS['HTTP_ENV_VARS']['HTTP_USER_AGENT'];
                    
49    if (!$HTTP_USER_AGENT) // local CGI testing
                    
186                    if (in_array($locale, $locs) or in_array($lang, $locs)) {
                    
187                    	//if (empty($GLOBALS['LANG'])) $GLOBALS['LANG'] = $try;
                    
188                        return $try;
                    
242        // do reinit to purge PHP's static cache [43ms]
                    
243        if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) {
                    
244            include($lcfile);
                    
                
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
                    
                
store.php https://github.com/totara/moodle.git | PHP | 362 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
63            $replace = "module = 'course' AND action = 'new' AND userid = :userid AND url = :url AND time > :since";
                    
64            $params += array('url' => "view.php?id={$params['courseid']}");
                    
65            return array($replace, $params, $sort);
                    
86    public function get_events_select($selectwhere, array $params, $sort, $limitfrom, $limitnum) {
                    
87        global $DB;
                    
88
                    
129    public function get_events_select_iterator($selectwhere, array $params, $sort, $limitfrom, $limitnum) {
                    
130        global $DB;
                    
131
                    
157    public function get_events_select_count($selectwhere, array $params) {
                    
158        global $DB;
                    
159
                    
199        // so it has been optimised for speed.
                    
200        global $DB, $CFG, $USER;
                    
201        if (!$this->is_logging()) {
                    
                
version.html https://github.com/trevor/ImageMagick.git | HTML | 365 lines
                    
12  <meta name="application-url" content="http://www.imagemagick.org"></meta>
                    
13  <meta name="generator" content="PHP"></meta>
                    
14  <meta name="keywords" content="magickcore, c, api, for, imagemagick:, get, the, version, copyrights, ImageMagick, PerlMagick, image processing, OpenMP, software development library, image, photo, software, Magick++, MagickWand"></meta>
                    
21  <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"></meta>
                    
22  <meta name="distribution" content="Global"></meta>
                    
23  <link rel="icon" href="../../images/wand.png"></link>
                    
148<div class="menu">
                    
149  <a title="Search" href="http://www.imagemagick.org/script/search.php">Search</a>
                    
150</div>
                    
                
transformation.php https://github.com/xc/zetacomponents.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
126     *
                    
127     * @param ezcImageConverter $converter     The global converter.
                    
128     * @param string $name                     Name for the transformation.
                    
                
template.php https://github.com/sharpmachine/wakeupmedia.com.git | 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'.
                    
                
index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 428 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
25
                    
26require('../../config.php');
                    
27require_once($CFG->libdir . '/completionlib.php');
                    
58function csv_quote($value) {
                    
59    global $excel;
                    
60    if ($excel) {
                    
66
                    
67$url = new moodle_url('/report/progress/index.php', array('course'=>$id));
                    
68if ($sort !== '') {
                    
92// nothing to display (no users or no activities)
                    
93$reportsurl = $CFG->wwwroot.'/course/report.php?id='.$course->id;
                    
94$completion = new completion_info($course);
                    
331            '<a href="'.$CFG->wwwroot.'/mod/'.$activity->modname.
                    
332            '/view.php?id='.$activity->id.'" title="' . $formattedactivityname . '">'.
                    
333            '<img src="'.$OUTPUT->pix_url('icon', $activity->modname).'" alt="'.
                    
                
ExtensionServiceTest.php https://github.com/TYPO3/TYPO3.CMS.git | PHP | 367 lines
                    
1<?php
                    
2
                    
20use Prophecy\Argument;
                    
21use Prophecy\PhpUnit\ProphecyTrait;
                    
22use Prophecy\Prophecy\ObjectProphecy;
                    
56        parent::setUp();
                    
57        $GLOBALS['TSFE'] = new \stdClass();
                    
58        $this->extensionService = new ExtensionService();
                    
60        $this->extensionService->injectConfigurationManager($this->mockConfigurationManager);
                    
61        $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'] = [
                    
62            'ExtensionName' => [
                    
                
mogrify.html https://github.com/trevor/ImageMagick.git | HTML | 288 lines
                    
17  <meta name="Application-url" content="http://www.imagemagick.org"/>
                    
18  <meta name="Generator" content="PHP"/>
                    
19  <meta name="Keywords" content="magickwc, api, for, imagemagick:, command-line, interface, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Image, Processing, Automagically"/>
                    
26  <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
                    
27  <meta name="Distribution" content="Global"/>
                    
28  <link rel="icon" href="../../images/wand.png"/>
                    
272    <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>
                    
273    <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
                    
274  </div>
                    
                
studio.h https://github.com/trevor/ImageMagick.git | C Header | 494 lines
                    
7  
                    
8    http://www.imagemagick.org/script/license.php
                    
9  
                    
132# endif
                    
133# define WandGlobal  __declspec(thread)
                    
134# if defined(_VISUALC_)
                    
145# define ModuleExport
                    
146# define WandGlobal
                    
147#endif
                    
                
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';
                    
                
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).')';
                    
                
default.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 212 lines
                    
23?>
                    
24<form action="<?php echo JRoute::_('index.php?option=com_content&view=featured'); ?>" method="post" name="adminForm" id="adminForm">
                    
25<?php if (!empty( $this->sidebar)) : ?>
                    
82				<th class="checkmark-col">
                    
83					<input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
                    
84				</th>
                    
146					<p class="smallsub">
                    
147						<?php echo JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->alias)); ?></p>
                    
148				</td>
                    
166						<?php $disabled = $saveOrder ?  '' : 'disabled="disabled"'; ?>
                    
167						<input type="text" name="order[]" value="<?php echo $item->ordering; ?>" <?php echo $disabled; ?> class="text-area-order" title="<?php echo $item->title; ?> order" />
                    
168					<?php else : ?>
                    
177						<?php echo $this->escape($item->author_name); ?>
                    
178						<p class="smallsub"> <?php echo JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->created_by_alias)); ?></p>
                    
179					<?php else : ?>
                    
                
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 {
                    
                
ListCommand.php https://gitlab.com/Sigpot/AirSpot | 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)) {
                    
                
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(
                    
                
facilities_add.php https://github.com/md-tech/openemr.git | PHP | 268 lines
                    
41function submitform() {
                    
42	<?php if($GLOBALS['erx_enable']){ ?>
                    
43	alertMsg='';
                    
195        <td>&nbsp;</td>
                    
196        <td><span class="text"><?php xl('Tax ID','e'); ?>: </span></td><td><select name=tax_id_type><option value="EI"><?php xl('EIN','e'); ?></option><option value="SY"><?php xl('SSN','e'); ?></option></select><input type=entry size=11 name=federal_ein value=""></td>
                    
197        </tr>
                    
207          <td>&nbsp;</td>
                    
208          <td><span class='text'><?php xl('Accepts Assignment','e'); ?><br>(<?php xl('only if billing location','e'); ?>): </span></td> <td><input type='checkbox' name='accepts_assignment' value = '1'></td>
                    
209        </tr>
                    
212          <td>&nbsp;</td>
                    
213          <td><span class='text'><?php echo htmlspecialchars(xl('Color'),ENT_QUOTES); ?>: </span><span class="mandatory">&nbsp;*</span></td> <td><input type=entry name=ncolor id=ncolor size=20 value="">[<a href="javascript:void(0);" onClick="pick('pick','newcolor');return false;" NAME="pick" ID="pick"><?php echo htmlspecialchars(xl('Pick'),ENT_QUOTES); ?></a>]</td>
                    
214        </tr>
                    
222          <td><span class='text'><?php xl('Primary Business Entity','e'); ?>: </span></td>
                    
223          <td><input type='checkbox' name='primary_business_entity' id='primary_business_entity' value='1' <?php if ($facility['primary_business_entity'] == 1) echo 'checked'; ?> <?php if($GLOBALS['erx_enable']){ ?> onchange='return displayAlert()' <?php } ?> <?php echo $disabled;?>></td>
                    
224          <td>&nbsp;</td>
                    
                
PresenterComponent.php https://github.com/premiumcombination/nts.git | PHP | 438 lines
                    
1<?php
                    
2
                    
78		if ($presenter instanceof Presenter) {
                    
79			$this->loadState($presenter->popGlobalParams($this->getUniqueId()));
                    
80		}
                    
                
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/nicolasconnault/moodle2.0.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. */
                    
                
MailScannerInfo.php https://github.com/hitchby/PLEXUS.git | PHP | 398 lines
                    
1<?php
                    
2/*********************************************************************************
                    
10 ********************************************************************************/
                    
11require_once('modules/Settings/MailScanner/core/MailScannerRule.php');
                    
12
                    
63	function __crypt($password, $encrypt=true) {
                    
64		require_once('include/utils/encryption.php');
                    
65		$cryptobj = new Encryption();
                    
73	function initialize($scannername) {
                    
74		global $adb;
                    
75		$result = $adb->pquery("SELECT * FROM vtiger_mailscanner WHERE scannername=?", Array($scannername));
                    
100	function initializeFolderInfo() {
                    
101		global $adb;
                    
102		if($this->scannerid) {
                    
122	function clearLastscan() {
                    
123		global $adb;
                    
124		$adb->pquery("DELETE FROM vtiger_mailscanner_folders WHERE scannerid=?", Array($this->scannerid));
                    
                
lib.php https://github.com/telematika/moodle.git | PHP | 460 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
31function book_get_numbering_types() {
                    
32    global $CFG; // required for the include
                    
33
                    
33
                    
34    require_once(dirname(__FILE__).'/locallib.php');
                    
35
                    
60function book_add_instance($data, $mform) {
                    
61    global $DB;
                    
62
                    
79function book_update_instance($data, $mform) {
                    
80    global $DB;
                    
81
                    
102function book_delete_instance($id) {
                    
103    global $DB;
                    
104
                    
                
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-wp-media-list-table.php https://github.com/vidor/vidor.me.git | 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 ) {?>
                    
                
migration_tables_core_538.php https://bitbucket.org/blackriver/openx.git | PHP | 318 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $
                    
26*/
                    
27
                    
28require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
                    
29
                    
298	{
                    
299	    $prefix = $GLOBALS['_MAX']['CONF']['table']['prefix'];
                    
300	    $tableName = $this->oDBH->quoteIdentifier($prefix.$table, true);
                    
                
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
                    
                
SpecialStatistics.php https://github.com/daevid/MWFork.git | PHP | 295 lines
                    
1<?php
                    
2/**
                    
39	public function execute( $par ) {
                    
40		global $wgMemc, $wgDisableCounters, $wgMiserMode;
                    
41
                    
164	private function getUserStats() {
                    
165		global $wgActiveUserDays;
                    
166		return Xml::openElement( 'tr' ) .
                    
183	private function getGroupStats() {
                    
184		global $wgGroupPermissions, $wgImplicitGroups;
                    
185		$text = '';
                    
                
plugin.php https://github.com/mrmark/moodle.git | PHP | 352 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
54    public function embed($urls, $name, $width, $height, $options) {
                    
55        global $CFG;
                    
56        require_once($CFG->libdir . '/filelib.php');
                    
200    public function get_supported_extensions() {
                    
201        global $CFG;
                    
202        require_once($CFG->libdir . '/filelib.php');
                    
261    protected function find_language() {
                    
262        global $CFG;
                    
263        $this->language = current_language();
                    
314     * Returns regular expression used to match URLs for single youtube video
                    
315     * @return string PHP regular expression e.g. '~^https?://example.org/~'
                    
316     */
                    
                
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 = {
                    
                
 

Source

Language