PageRenderTime 238ms queryTime 32ms sortTime 9ms getByIdsTime 75ms findMatchingLines 71ms

100+ results results for 'php ini_get repo:piotr-cz/joomla-framework' (238 ms)

Not the results you expected?
noutrace.class.php https://bitbucket.org/lordgnu/xdebug-trace-gui.git | PHP | 443 lines
                    
1<?php
                    
2
                    
18  {
                    
19    $this->logDirectory = ini_get('xdebug.trace_output_dir');
                    
20    $this->traceFormat = ini_get('xdebug.trace_format');
                    
154    /**
                    
155     * recuperem la llista de funcions, les pròpies de PHP hi
                    
156     * seran sota ['internal']
                    
208    {
                    
209      throw new Exception("xdebug.trace_format in /etc/php5/conf.d/xdebug.ini must be 1");
                    
210    }
                    
348          echo '<span class="line">';
                    
349          echo "<a href='trace-code.php?file={$jData[8]}&line={$jData[9]}' target='trace-code'>$jData[9]</a>";
                    
350          echo "</span>";
                    
                
install.php https://bitbucket.org/hudsonite/concrete5.git | PHP | 337 lines
                    
79	protected function testAndRunInstall() {
                    
80		if (file_exists(DIR_CONFIG_SITE . '/site_install_user.php')) {
                    
81			require(DIR_CONFIG_SITE . '/site_install.php');
                    
110		$phpVmin = '5.2.4';
                    
111		if (version_compare(PHP_VERSION, $phpVmin, '>=')) {
                    
112			$phpVtest = true;
                    
116		$this->set('phpVmin',$phpVmin);
                    
117		$this->set('phpVtest',$phpVtest);
                    
118	}
                    
224	public function reset() {
                    
225		// remove site.php so that we can try again ?
                    
226		return;
                    
229		}
                    
230		if (file_exists(DIR_CONFIG_SITE . '/site_install.php')) {
                    
231			unlink(DIR_CONFIG_SITE . '/site_install.php');
                    
                
smarty_internal_config.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 136 lines
                    
1<?php //0046a
                    
2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
                    
3?>
                    
                
trax.php https://github.com/phpontrax/trax.git | PHP | 284 lines
                    
32 *  @todo Document this class
                    
33 *  @package PHPonTrax
                    
34 */
                    
86
                    
87        if(substr(PHP_OS, 0, 3) == 'WIN') {
                    
88            # Windows
                    
132        include_once(TRAX_LIB_ROOT."/active_record.php");
                    
133        include_once(TRAX_LIB_ROOT."/action_controller.php");
                    
134        include_once(TRAX_LIB_ROOT."/action_view.php");
                    
174            TRAX_LIB_ROOT,                      # trax libs (vendor/trax or server trax libs)
                    
175            PHP_LIB_ROOT,                       # php libs dir (ex: /usr/local/lib/php)
                    
176            self::$lib_path,                    # app specific libs extra libs to include
                    
234        } else {
                    
235            throw new Exception("Your php install must support spl_autoload_register");
                    
236        }
                    
                
standalone.php https://github.com/ibnoe/Microweber.git | PHP | 400 lines
                    
2/**
                    
3* @version $Id: standalone.php 179 2011-01-04 12:15:17Z soeren $
                    
4* @package eXtplorer
                    
22if (version_compare( phpversion(), '5.0' ) < 0) {
                    
23	require_once( dirname( __FILE__ ) . '/compat.php50x.php' );
                    
24}
                    
39if( empty( $_SERVER['PHP_SELF'])) {
                    
40	$_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'];
                    
41}
                    
66		session_name( 'eXtplorer' );
                    
67		if( !@is_writable(ini_get('session.save_path')) && ini_get('session.save_handler') == 'files') {
                    
68			ini_set('session.save_path', realpath( dirname( __FILE__ ).'/../ftp_tmp') );
                    
282		$do_gzip_compress = FALSE;
                    
283		$phpver 	= phpversion();
                    
284		$useragent 	= extGetParam( $_SERVER, 'HTTP_USER_AGENT', '' );
                    
                
ClassLoader.php https://bitbucket.org/rippleau/nrm-org-au.git | PHP | 498 lines
                    
1<?php
                    
2
                    
39 * @author Jordi Boggiano <j.boggiano@seld.be>
                    
40 * @see    http://www.php-fig.org/psr/psr-0/
                    
41 * @see    http://www.php-fig.org/psr/psr-4/
                    
311	{
                    
312		$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
                    
313	}
                    
386
                    
387		$file = $this->findFileWithExtension($class, '.php');
                    
388
                    
                
index.php https://gitlab.com/selecterskyphp/gaylkj.git | PHP | 345 lines
                    
15if(phpversion() <= '5.3.0') set_magic_quotes_runtime(0);
                    
16if('5.2.0' > phpversion() ) exit('您的php版本过低,不能安装本软件,请升级到5.2.0或更高版本再安装,谢谢!');
                    
17
                    
53 		if(phpversion()<5){
                    
54			die('本系统需要PHP5+MYSQL >=4.1环境,当前PHP版本为:'.phpversion());
                    
55		}
                    
56
                    
57        $phpv = @ phpversion();
                    
58        $os = PHP_OS;
                    
208				@unlink(SITEDIR.'index.php');
                    
209				@copy(SITEDIR.'Install/index_one.php',SITEDIR.'index.php');
                    
210				mysql_query("UPDATE `{$dbPrefix}menu` SET  `status` ='0'   WHERE model='Lang' ");
                    
296
                    
297	if($tablepre != "yourphp_") $sql = str_replace("yourphp_", $tablepre, $sql);
                    
298	$sql = preg_replace("/TYPE=(InnoDB|MyISAM|MEMORY)( DEFAULT CHARSET=[^; ]+)?/", "ENGINE=\\1 DEFAULT CHARSET=utf8",$sql);
                    
                
function.feof.html https://bitbucket.org/stillzhl/manuals.git | HTML | 103 lines
                    
11 <div class="up"><a href="ref.filesystem.html">Filesystem 函数</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="function.feof" class="refentry">
                    
15  <h1 class="refname">feof</h1>
                    
16  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">feof</span> &mdash; <span class="dc-title">测试文件指针是否到了文件结束的位置</span></p>
                    
17
                    
72<div class="phpcode"><code><span style="color: #000000">
                    
73<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">safe_feof</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;&amp;</span><span style="color: #0000BB">$start&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">)&nbsp;{<br />&nbsp;</span><span style="color: #0000BB">$start&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">microtime</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /><br />&nbsp;return&nbsp;</span><span style="color: #0000BB">feof</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;$fp&nbsp;的赋值是由之前&nbsp;fsockopen()&nbsp;打开&nbsp;&nbsp;*/<br /><br /></span><span style="color: #0000BB">$start&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$timeout&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ini_get</span><span style="color: #007700">(</span><span style="color: #DD0000">'default_socket_timeout'</span><span style="color: #007700">);<br /><br />while(!</span><span style="color: #0000BB">safe_feof</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$start</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;(</span><span style="color: #0000BB">microtime</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;-&nbsp;</span><span style="color: #0000BB">$start</span><span style="color: #007700">)&nbsp;&lt;&nbsp;</span><span style="color: #0000BB">$timeout</span><span style="color: #007700">)<br />{<br />&nbsp;</span><span style="color: #FF8000">/*&nbsp;Handle&nbsp;*/<br /></span><span style="color: #007700">}<br /></span><span style="color: #0000BB">?&gt;</span>
                    
74</span>
                    
86     <div class="example-contents">
                    
87<div class="phpcode"><code><span style="color: #000000">
                    
88<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;如果文件不可读取或者不存在,fopen&nbsp;函数返回&nbsp;FALSE<br /></span><span style="color: #0000BB">$file&nbsp;</span><span style="color: #007700">=&nbsp;@</span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #DD0000">"no_such_file"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"r"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;来自&nbsp;fopen&nbsp;的&nbsp;FALSE&nbsp;会发出一条警告信息并在这里陷入无限循环<br /></span><span style="color: #007700">while&nbsp;(!</span><span style="color: #0000BB">feof</span><span style="color: #007700">(</span><span style="color: #0000BB">$file</span><span style="color: #007700">))&nbsp;{<br />}<br /><br /></span><span style="color: #0000BB">fclose</span><span style="color: #007700">(</span><span style="color: #0000BB">$file</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
                    
101 <div class="up"><a href="ref.filesystem.html">Filesystem 函数</a></div>
                    
102 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
103</div></body></html>
                    
                
ec_store.admin.inc https://bitbucket.org/9_3designs/web | Pascal | 386 lines
                    
1<?php
                    
2
                    
11function ec_store_ec_settings($form, &$form_state) {
                    
12  $site_mail = variable_get('site_mail', ini_get('sendmail_from'));
                    
13  if (empty($site_mail)) {
                    
                
CodeIgniter.php https://github.com/fangfang/Farseer-QWDIY.git | PHP | 384 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
66 * ------------------------------------------------------
                    
67 *  Define a custom error handler so we can log PHP errors
                    
68 * ------------------------------------------------------
                    
71
                    
72	if ( ! is_php('5.3'))
                    
73	{
                    
85 * "libraries" folder. Since CI allows config items to be
                    
86 * overriden via data set in the main index. php file,
                    
87 * before proceeding we need to know if a subclass_prefix
                    
102 */
                    
103	if (function_exists("set_time_limit") == TRUE AND @ini_get("safe_mode") == 0)
                    
104	{
                    
                
shp.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 426 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * ESRI Shape file import plugin for phpMyAdmin
                    
4 *
                    
4 *
                    
5 * @package PhpMyAdmin-Import
                    
6 * @subpackage ESRI_Shape
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
25
                    
26    if ((int) ini_get('memory_limit') < 512) {
                    
27        @ini_set('memory_limit', '512M');
                    
33    set_include_path(get_include_path() . PATH_SEPARATOR . getcwd() . '/libraries/bfShapeFiles/');
                    
34    include_once './libraries/bfShapeFiles/ShapeFile.lib.php';
                    
35
                    
                
FastCGI.php https://github.com/sergeym/phpdaemon.git | PHP | 396 lines
                    
1<?php
                    
2
                    
62			'auto-read-body-file'     => 1,
                    
63			'listen'                  =>  'tcp://127.0.0.1,unix:/tmp/phpdaemon.fcgi.sock',
                    
64			'listen-port'             => 9000,
                    
88			if (
                    
89				($order = ini_get('request_order')) 
                    
90				|| ($order = ini_get('variables_order'))
                    
                
FileStorage.php https://github.com/martinvenus/W20.git | PHP | 461 lines
                    
1<?php
                    
2
                    
80			// tests subdirectory mode
                    
81			self::$useDirectories = !ini_get('safe_mode');
                    
82			if (!self::$useDirectories && @file_put_contents("$dir/$uniq/_", '') !== FALSE) { // @ - error is expected
                    
230		$head = serialize($meta) . '?>';
                    
231		$head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head;
                    
232		$headLen = strlen($head);
                    
362			if (is_array($meta)) {
                    
363				fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6
                    
364				$meta[self::FILE] = $file;
                    
                
class.Utils.php git://github.com/ginatrapani/isosceles.git | PHP | 201 lines
                    
1<?php
                    
2/**
                    
24     *
                    
25     * @author http://recursive-design.com/blog/2008/03/11/format-json-with-php/
                    
26     * @param string $json The original JSON string to process.
                    
84    /**
                    
85     * Becuse PHP doesn't have a data type large enough to hold some of the
                    
86     * numbers that Twitter deals with, this function strips the double
                    
97    /**
                    
98     * If date.timezone is not set in php.ini, default to America/Los_Angeles to avoid date() warning about
                    
99     * using system settings.
                    
102     */
                    
103    public static function setDefaultTimezonePHPini() {
                    
104        if (ini_get('date.timezone') == false) {
                    
105            // supress the date_default_timezone_get() warn as php 5.3.* doesn't like when date.timezone is not set in
                    
106            // php.ini, but many systems comment it out by default, or have no php.ini by default
                    
107            $error_reporting = error_reporting(); // save old reporting setting
                    
                
file.php https://gitlab.com/ricardosanchez/prueba | PHP | 311 lines
                    
1<?php
                    
2/**
                    
59		{
                    
60			$this->setRedirect('index.php?option=com_media&folder=' . $this->folder);
                    
61		}
                    
75		// Maximum allowed size of post back data in MB.
                    
76		$postMaxSize = $mediaHelper->toBytes(ini_get('post_max_size'));
                    
77
                    
78		// Maximum allowed size of script execution in MB.
                    
79		$memoryLimit = $mediaHelper->toBytes(ini_get('memory_limit'));
                    
80
                    
90		$uploadMaxSize = $params->get('upload_maxsize', 0) * 1024 * 1024;
                    
91		$uploadMaxFileSize = $mediaHelper->toBytes(ini_get('upload_max_filesize'));
                    
92
                    
119				// No filename (after the name was cleaned by JFile::makeSafe)
                    
120				$this->setRedirect('index.php', JText::_('COM_MEDIA_INVALID_REQUEST'), 'error');
                    
121
                    
                
install.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 337 lines
                    
80		if (file_exists(DIR_CONFIG_SITE . '/site_install_user.php')) {
                    
81			require(DIR_CONFIG_SITE . '/site_install.php');
                    
82			@include(DIR_CONFIG_SITE . '/site_install_user.php');
                    
110		$phpVmin = '5.2.4';
                    
111		if (version_compare(PHP_VERSION, $phpVmin, '>=')) {
                    
112			$phpVtest = true;
                    
116		$this->set('phpVmin',$phpVmin);
                    
117		$this->set('phpVtest',$phpVtest);
                    
118	}
                    
168		require(DIR_CONFIG_SITE . '/site_install.php');
                    
169		@include(DIR_CONFIG_SITE . '/site_install_user.php');
                    
170		
                    
229		}
                    
230		if (file_exists(DIR_CONFIG_SITE . '/site_install.php')) {
                    
231			unlink(DIR_CONFIG_SITE . '/site_install.php');
                    
                
index.php https://github.com/myaccushop/dukan.git | PHP | 233 lines
                    
14
                    
15  if (function_exists('ini_get') && (PHP_VERSION < 4.3) && ((int)ini_get('register_globals') == 0)) {
                    
16    $compat_register_globals = false;
                    
34          <td><strong>PHP Version</strong></td>
                    
35          <td align="right"><?php echo PHP_VERSION; ?></td>
                    
36          <td align="right" width="25"><img src="images/<?php echo ((PHP_VERSION >= 4) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
                    
73          <td>session.use_trans_sid</td>
                    
74          <td align="right"><?php echo (((int)ini_get('session.use_trans_sid') == 0) ? 'Off' : 'On'); ?></td>
                    
75          <td align="right"><img src="images/<?php echo (((int)ini_get('session.use_trans_sid') == 0) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
                    
137
                    
138  if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php') && !osc_is_writable(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php')) {
                    
139    $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php';
                    
145    if ($compat_register_globals == false) {
                    
146      $warning_array['register_globals'] = 'Compatibility with register_globals is supported from PHP 4.3+. This setting <u>must be enabled</u> due to an older PHP version being used.';
                    
147    }
                    
                
Mysql.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 326 lines
                    
25 * @copyright Copyright (c) phpRack.com
                    
26 * @version $Id: Mysql.php 611 2010-07-12 14:23:40Z yegor256@yahoo.com $
                    
27 * @category phpRack
                    
32 */
                    
33require_once PHPRACK_PATH . '/Adapters/Db/Abstract.php';
                    
34
                    
43 */
                    
44class phpRack_Adapters_Db_Mysql extends phpRack_Adapters_Db_Abstract
                    
45{
                    
152             */
                    
153            require_once PHPRACK_PATH . '/Adapters/Db/Mysql/Result/Formatter.php';
                    
154            $response = phpRack_Adapters_Db_Mysql_Result_Formatter::formatResult($result);
                    
304         */
                    
305        require_once PHPRACK_PATH . '/Adapters/Db/Mysql/Result/Formatter.php';
                    
306
                    
                
filebrowser.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 431 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @version $Id: filebrowser.php 292 2012-09-21 16:24:11Z cmb69 $
                    
5 */
                    
250// 設法在 Windows 能夠儲存中文命名檔案
                    
251if (substr(php_uname(), 0, 7) == "Windows")
                    
252{
                    
273                $this->view->error('error_not_uploaded', $file['name']);
                    
274                $this->view->error('error_file_too_big', array('?',  ini_get('upload_max_filesize')));
                    
275                return;
                    
307// 設法在 Windows 能夠儲存中文命名檔案
                    
308if (substr(php_uname(), 0, 7) == "Windows")
                    
309{
                    
                
Core.class.php https://gitlab.com/adamlwalker/generatedata | PHP | 511 lines
                    
1<?php
                    
2
                    
13
                    
14	// overridable settings that the user may define in settings.php
                    
15	private static $demoMode = false;	
                    
37	private static $releaseDate = "2014-09-06";
                    
38	private static $minimumPHPVersion = "5.3.0";
                    
39	private static $minimumMySQLVersion = "4.1.3";
                    
46	// left as public, because they're often modified / accessed, and it's just too fussy otherwise. The
                    
47	// PHPDoc helps my IDE figure out what the hell each of them are
                    
48
                    
112		// ensure the timezone is set. This is an arbitrary value (well, I live in Vancouver!) but it prevents warnings
                    
113		if (ini_get("date.timezone") == "") {
                    
114			ini_set("date.timezone", "Canada/Vancouver");
                    
157	private static function loadSettingsFile() {
                    
158		$settingsFilePath = realpath(__DIR__ . "/../../settings.php");
                    
159		if (file_exists($settingsFilePath)) {
                    
                
update.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 476 lines
                    
1<?php
                    
2/**
                    
5 *  @license GNU General Public License version 3, or later
                    
6 *  @version $Id: update.php 82 2010-10-23 19:13:50Z nikosdion $
                    
7 */
                    
32		jimport('joomla.filesystem.file');
                    
33		$this->isPro = JFile::exists(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables'.DS.'redirs.php');
                    
34
                    
50	{
                    
51		// If we are not allowed to use ini_get, we assume that URL fopen is
                    
52		// disabled.
                    
52		// disabled.
                    
53		if(!function_exists('ini_get'))
                    
54		return false;
                    
409			} else {
                    
410				// PHP 4 way (actually, it's just a fallback as we can't run Admin Tools in PHP4)
                    
411				ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)');
                    
                
Helper.php https://bitbucket.org/awylie199/s5t.git | PHP | 248 lines
                    
1<?php if ( ! defined( 'ABSPATH' ) ) exit;
                    
2
                    
137     *
                    
138     * Converts PHP settings from a string to bytes.
                    
139     *
                    
225        if( ! function_exists( $function ) ) return true;
                    
226        $disabled = explode( ',',  ini_get( 'disable_functions' ) );
                    
227        return in_array( $function, $disabled );
                    
233        if ( is_serialized( $original ) ){
                    
234            // Ported with php5.2 support from https://magp.ie/2014/08/13/php-unserialize-string-after-non-utf8-characters-stripped-out/
                    
235            $parsed = preg_replace_callback( '!s:(\d+):"(.*?)";!s', array( 'self', 'parse_utf8_serialized' ), $original );
                    
                
APCHostMode.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 202 lines
                    
1<?php
                    
2
                    
9			APCUtils::tableRow( $r = 1 - $r, wfMsgHtml( 'viewapc-apc-version' ), phpversion( 'apc' ) ) .
                    
10			APCUtils::tableRow( $r = 1 - $r, wfMsgHtml( 'viewapc-php-version' ), phpversion() ) .
                    
11
                    
65		$r = 1;
                    
66		foreach ( ini_get_all( 'apc' ) as $k => $v ) {
                    
67			$s .= APCUtils::tableRow( $r = 1 - $r,
                    
                
lib-graph.inc.php https://bitbucket.org/blackriver/openx.git | PHP | 201 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: lib-graph.inc.php 81772 2012-09-11 00:07:29Z chris.nutting $
                    
26*/
                    
28// Required files
                    
29require_once MAX_PATH . '/www/admin/lib-gdcolors.inc.php';
                    
30require_once MAX_PATH . '/www/admin/lib-gd.inc.php';
                    
30require_once MAX_PATH . '/www/admin/lib-gd.inc.php';
                    
31require_once MAX_PATH . '/lib/max/Delivery/common.php';
                    
32
                    
182if (strpos ($_SERVER['HTTP_USER_AGENT'], 'MSIE') > 0 &&
                    
183	function_exists('ini_get') && (
                    
184	ini_get ('zlib.output_compression') ||
                    
184	ini_get ('zlib.output_compression') ||
                    
185	ini_get ('output_handler') == 'ob_gzhandler'))
                    
186	ob_end_clean ();
                    
                
install.php https://github.com/rietn/minima.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: install.php 20196 2011-01-09 02:40:25Z ian $
                    
4 * @package		Joomla.Administrator
                    
154
                    
155		// Make sure that file uploads are enabled in php
                    
156		if (!(bool) ini_get('file_uploads')) {
                    
                
fLoader.php https://github.com/netcarver/flourish.git | PHP | 314 lines
                    
219	/**
                    
220	 * Check if a PHP opcode cache is installed
                    
221	 * 
                    
223	 * 
                    
224	 *  - [http://pecl.php.net/package/APC APC]
                    
225	 *  - [http://eaccelerator.net eAccelerator]
                    
225	 *  - [http://eaccelerator.net eAccelerator]
                    
226	 *  - [http://www.nusphere.com/products/phpexpress.htm Nusphere PhpExpress]
                    
227	 *  - [http://turck-mmcache.sourceforge.net/index_old.html Turck MMCache]
                    
236		$apc              = ini_get('apc.enabled');
                    
237		$eaccelerator     = ini_get('eaccelerator.enable');
                    
238		$mmcache          = ini_get('mmcache.enable');
                    
239		$phpexpress       = function_exists('phpexpress');
                    
240		$xcache           = ini_get('xcache.size') > 0 && ini_get('xcache.cacher');
                    
241		$zend_accelerator = ini_get('zend_accelerator.enabled');
                    
                
Uploader.php https://gitlab.com/staging06/myproject | PHP | 292 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
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
113    {
                    
114        $post_max_size = ini_get('post_max_size');
                    
115        $bytes         = trim($post_max_size);
                    
185                // Non-multipart uploads (PUT method support)
                    
186                file_put_contents($file_path, fopen('php://input', 'r'));
                    
187            }
                    
207            case 1:
                    
208                $error = sprintf(Tools::displayError('The uploaded file exceeds %s'), ini_get('upload_max_filesize'));
                    
209                break;
                    
                
TagTest.php https://gitlab.com/techniconline/kmc | PHP | 314 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * phpDocumentor Var Tag Test
                    
4 *
                    
4 *
                    
5 * PHP version 5.3
                    
6 *
                    
8 * @copyright 2010-2011 Mike van Riel / Naenius. (http://www.naenius.com)
                    
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
10 * @link      http://phpdoc.org
                    
12
                    
13namespace phpDocumentor\Reflection\DocBlock;
                    
14
                    
14
                    
15use phpDocumentor\Reflection\DocBlock;
                    
16use phpDocumentor\Reflection\DocBlock\Context;
                    
                
s2.scan2.php https://bitbucket.org/devqanh/tintuc.devqanh.info.git | PHP | 118 lines
                    
26		echo '<hr size="1" /><span id="data-srv-php-version"></span>&nbsp;<b>' . __('PHP Version', 'duplicator') . "</b> <br/>";
                    
27		_e('The minimum PHP version supported by Duplicator is 5.2.9. It is highly recommended to use PHP 5.3+ for improved stability.  For international language support please use PHP 7.0+.', 'duplicator');
                    
28		
                    
33		_e('Issues might occur when [open_basedir] is enabled. Work with your server admin to disable this value in the php.ini file if you’re having issues building a package.', 'duplicator');
                    
34		echo "&nbsp;<i><a href='http://www.php.net/manual/en/ini.core.php#ini.open-basedir' target='_blank'>[" . __('details', 'duplicator') . "]</a></i><br/>";
                    
35
                    
44			. 'However use caution as excluding the wrong resources can cause your install to not work properly.', 'duplicator');
                    
45		echo "&nbsp;<i><a href='http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time' target='_blank'>[" . __('details', 'duplicator')  . "]</a></i>";
                    
46
                    
104		$('#data-srv-php-websrv').html(Duplicator.Pack.setScanStatus(data.SRV.PHP.websrv));
                    
105		$('#data-srv-php-openbase').html(Duplicator.Pack.setScanStatus(data.SRV.PHP.openbase));
                    
106		$('#data-srv-php-maxtime').html(Duplicator.Pack.setScanStatus(data.SRV.PHP.maxtime));
                    
106		$('#data-srv-php-maxtime').html(Duplicator.Pack.setScanStatus(data.SRV.PHP.maxtime));
                    
107		$('#data-srv-php-version').html(Duplicator.Pack.setScanStatus(data.SRV.PHP.version));
                    
108		$('#data-srv-php-openssl').html(Duplicator.Pack.setScanStatus(data.SRV.PHP.openssl));
                    
                
MongoDbSessionHandlerTest.php https://github.com/symfony/symfony.git | PHP | 214 lines
                    
1<?php
                    
2
                    
14use MongoDB\Client;
                    
15use PHPUnit\Framework\MockObject\MockObject;
                    
16use PHPUnit\Framework\TestCase;
                    
123                $data = $updateData['$set'];
                    
124                $expectedExpiry = time() + (int) ini_get('session.gc_maxlifetime');
                    
125                $this->assertInstanceOf(\MongoDB\BSON\Binary::class, $data[$this->options['data_field']]);
                    
                
pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
                    
28if ('/usr/share/php' != '@'.'include_path'.'@') {
                    
29    ini_set('include_path', '/usr/share/php');
                    
30    $raw = false;
                    
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) {
                    
60    echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini';
                    
61    exit(1);
                    
132// this is used in the error handler to retrieve a relative path
                    
133$_PEAR_PHPDIR = $config->get('php_dir');
                    
134$ui->setConfig($config);
                    
166                );
                    
167                $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php');
                    
168                $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data');
                    
377        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
378               "\nPHP Version: ".phpversion().
                    
379               "\nZend Engine Version: ".zend_version().
                    
                
ClassLoader.php https://gitlab.com/wendy-du-973/club-invest-gr2 | PHP | 481 lines
                    
1<?php
                    
2
                    
39 * @author Jordi Boggiano <j.boggiano@seld.be>
                    
40 * @see    https://www.php-fig.org/psr/psr-0/
                    
41 * @see    https://www.php-fig.org/psr/psr-4/
                    
290    {
                    
291        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
                    
292    }
                    
376
                    
377        $file = $this->findFileWithExtension($class, '.php');
                    
378
                    
                
ZMO.php https://github.com/ThiloWitt/core.git | PHP | 548 lines
                    
1<?php
                    
2/**
                    
18 * It can read MO files and use them for translating strings.
                    
19 * The files are passed to gettext_reader as a Stream (see streams.php)
                    
20 *
                    
148        if ($magic == -1794895138 || $magic == 2500072158) {
                    
149            // (int)0x950412de; PHP 5.2 wont convert this properly
                    
150            $this->byteorder = 0;
                    
151        } elseif ($magic == -569244523 || $magic == 3725722773) {
                    
152            // (int)0xde120495; PHP 5.2 wont convert this properly
                    
153            $this->byteorder = 1;
                    
165        $this->translations = $this->readint();
                    
166        $this->encoding = ini_get('mbstring.internal_encoding');
                    
167    }
                    
                
lib.inc.php https://github.com/mterenzio/FollowThis.git | PHP | 263 lines
                    
20
                    
21	// PostgreSQL and PHP minimum version
                    
22	$postgresqlMinVer = '7.4';
                    
22	$postgresqlMinVer = '7.4';
                    
23	$phpMinVer = '5.0';
                    
24
                    
25	// Check the version of PHP
                    
26	if (version_compare(phpversion(), $phpMinVer, '<'))
                    
27		exit(sprintf('Version of PHP not supported. Please upgrade to version %s or later.', $phpMinVer));
                    
34	else {
                    
35		echo 'Configuration error: Copy conf/config.inc.php-dist to conf/config.inc.php and edit appropriately.';
                    
36		exit;
                    
40	// the app will refuse to run.  This and $conf['version'] should be incremented whenever
                    
41	// backwards incompatible changes are made to config.inc.php-dist.
                    
42	$conf['base_version'] = 16;
                    
                
font_coverage.php https://github.com/andrerezende/CENSO.git | PHP | 255 lines
                    
1<?php
                    
2
                    
5   Point your browser to 
                    
6   http://your.domain/your_path_to _mpdf/utils/font_coverage.php
                    
7   By default this will examine the folder /ttfonts/ (or the default font
                    
26//==============================================================
                    
27include("../mpdf.php");
                    
28
                    
40
                    
41$mqr=ini_get("magic_quotes_runtime");
                    
42if ($mqr) { set_magic_quotes_runtime(0); }
                    
42if ($mqr) { set_magic_quotes_runtime(0); }
                    
43if (!class_exists('TTFontFile', false)) { include(_MPDF_PATH .'classes/ttfontsuni.php'); }
                    
44
                    
76// loads array $unicode_ranges
                    
77include('UnicodeRanges.php'); 
                    
78//==============================================================
                    
                
adodb-session-clob.php https://github.com/usualoma/movabletype.git | PHP | 447 lines
                    
1<?php
                    
2/*
                    
13
                    
14 This file provides PHP4 session management using the ADODB database
                    
15 wrapper library, using Oracle CLOB's to store data. Contributed by achim.gosse@ddd.de.
                    
19
                    
20	include('adodb.inc.php');
                    
21	include('adodb-session.php');
                    
29
                    
30	include('adodb.inc.php');
                    
31	include('adodb-session.php');
                    
61
                    
62  3. Recommended is PHP 4.1.0 or later. There are documented
                    
63	 session bugs in earlier versions of PHP.
                    
91if (!defined('_ADODB_LAYER')) {
                    
92	include (dirname(__FILE__).'/adodb.inc.php');
                    
93}
                    
                
ConfigDataCollector.php https://gitlab.com/jjpa2018/dashboard | PHP | 275 lines
                    
1<?php
                    
2
                    
58            'php_version' => \PHP_VERSION,
                    
59            'php_architecture' => \PHP_INT_SIZE * 8,
                    
60            'php_intl_locale' => class_exists(\Locale::class, false) && \Locale::getDefault() ? \Locale::getDefault() : 'n/a',
                    
62            'xdebug_enabled' => \extension_loaded('xdebug'),
                    
63            'apcu_enabled' => \extension_loaded('apcu') && filter_var(ini_get('apc.enabled'), \FILTER_VALIDATE_BOOLEAN),
                    
64            'zend_opcache_enabled' => \extension_loaded('Zend OPcache') && filter_var(ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN),
                    
65            'bundles' => [],
                    
66            'sapi_name' => \PHP_SAPI,
                    
67        ];
                    
157     */
                    
158    public function getPhpVersion(): string
                    
159    {
                    
236    /**
                    
237     * Gets the PHP SAPI name.
                    
238     */
                    
                
file.json.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 182 lines
                    
1<?php
                    
2/**
                    
47		$user  = JFactory::getUser();
                    
48		JLog::addLogger(array('text_file' => 'upload.error.php'), JLog::ALL, array('upload'));
                    
49
                    
55			$_SERVER['CONTENT_LENGTH']>($params->get('upload_maxsize', 0) * 1024 * 1024) ||
                    
56			$_SERVER['CONTENT_LENGTH']>(int)(ini_get('upload_max_filesize'))* 1024 * 1024 ||
                    
57			$_SERVER['CONTENT_LENGTH']>(int)(ini_get('post_max_size'))* 1024 * 1024 ||
                    
57			$_SERVER['CONTENT_LENGTH']>(int)(ini_get('post_max_size'))* 1024 * 1024 ||
                    
58			$_SERVER['CONTENT_LENGTH']>(int)(ini_get('memory_limit'))* 1024 * 1024
                    
59		)
                    
                
jobs.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 234 lines
                    
1<?php
                    
2namespace Concrete\Controller\Frontend;
                    
14
                    
15        if (!ini_get('safe_mode')) {
                    
16            @set_time_limit(0);
                    
76    {
                    
77        if (!ini_get('safe_mode')) {
                    
78            @set_time_limit(0);
                    
169    {
                    
170        if (!ini_get('safe_mode')) {
                    
171            @set_time_limit(0);
                    
                
install.php https://github.com/shahsaurabh/minima.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: install.php 19712 2010-12-01 16:38:00Z infograf768 $
                    
4 * @package		Joomla.Administrator
                    
154
                    
155		// Make sure that file uploads are enabled in php
                    
156		if (!(bool) ini_get('file_uploads')) {
                    
                
Form.php https://github.com/sebio/symfony.git | PHP | 277 lines
                    
1<?php
                    
2
                    
238            $length = (int) $_SERVER['CONTENT_LENGTH'];
                    
239            $max = trim(ini_get('post_max_size'));
                    
240
                    
241            switch (strtolower(substr($max, -1))) {
                    
242                // The 'G' modifier is available since PHP 5.1.0
                    
243                case 'g':
                    
                
lang_main_attach.php https://github.com/TheSteffen/icy_phoenix_langs.git | PHP | 146 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
45	'Downloaded' => 'Downloaded',
                    
46	'Download' => 'Download', // this Language Variable is defined in lang_admin.php too, but we are unable to access it from the main Language File
                    
47	'Filesize' => 'Filesize',
                    
74	'Attachment_php_size_na' => 'The Attachment is too big.<br />Couldn\'t get the maximum Size defined in PHP.<br />The Attachment Mod is unable to determine the maximum Upload Size defined in the php.ini.',
                    
75	'Attachment_php_size_overrun' => 'The Attachment is too big.<br />Maximum Upload Size: %d MB.<br />Please note that this Size is defined in php.ini, this means it\'s set by PHP and the Attachment Mod cannot override this value.', // replace %d with ini_get('upload_max_filesize')
                    
76	'FileType_Mismatch' => 'File type mismatch',
                    
76	'FileType_Mismatch' => 'File type mismatch',
                    
77	'Disallowed_extension' => 'The Extension %s is not allowed', // replace %s with extension (e.g. .php)
                    
78	'Disallowed_extension_within_forum' => 'You are not allowed to post Files with the Extension %s within this Forum', // replace %s with the Extension
                    
                
file.php https://bitbucket.org/millien/illien.ch-wordpress.git | PHP | 333 lines
                    
1<?php
                    
2
                    
203function w3_get_open_basedirs() {
                    
204    $open_basedir_ini = ini_get('open_basedir');
                    
205    $open_basedirs = (W3TC_WIN ? preg_split('~[;,]~', $open_basedir_ini) : explode(':', $open_basedir_ini));
                    
                
pageThumbnailUpload.php https://github.com/SamGoody/feindura-flat-file-cms.git | PHP | 202 lines
                    
94  <li><?php echo $langFile['pagethumbnail_thumbinfo_formats']; ?><br /><b>JPG</b>, <b>JPEG</b>, <b>GIF</b>, <b>PNG</b></li>
                    
95  <li><?php echo $langFile['pagethumbnail_thumbinfo_filesize'].' <b>'.ini_get('upload_max_filesize').'B</b>'; ?></li>
                    
96  <li><b><?php echo $langFile['pagethumbnail_thumbinfo_standardthumbsize']; ?></b><br />
                    
106<div style="position: relative">
                    
107<!-- <form action="?site=pageThumbnail&amp;category=<?php echo $category; ?>&amp;id=<?php echo $page; ?>" id="pageThumbnailUploadForm" enctype="multipart/form-data" method="post" onsubmit="requestSite('<?php echo $_SERVER['PHP_SELF']; ?>','','pageThumbnailUploadForm');return false;" accept-charset="UTF-8"> -->
                    
108<form action="library/processes/thumbnailUpload.process.php" id="pageThumbnailUploadForm" enctype="multipart/form-data" method="post" onsubmit="startUploadAnimation();" target="uploadTargetFrame" accept-charset="UTF-8">
                    
130  <label for="windowBox_thumbWidth">
                    
131  <?php echo $langFile['pagethumbnail_thumbsize_width'] ?></label>
                    
132  </td><td>
                    
132  </td><td>
                    
133  <input id="windowBox_thumbWidth" name="thumbWidth" class="short" value="<?php echo $thumbWidth; ?>"<?php echo $thumbRatioX; ?> />
                    
134  <?php echo $langFile['pagethumbnail_thumbsize_unit']; ?>
                    
156  </td><td>
                    
157  <input id="windowBox_thumbHeight" name="thumbHeight" class="short" value="<?php echo $thumbHeight; ?>"<?php echo $thumbRatioY; ?> />
                    
158  <?php echo $langFile['pagethumbnail_thumbsize_unit']; ?>
                    
                
cb.xml.simplexml.php https://github.com/Shigaru/shigaru.git | PHP | 134 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* Abstraction class for PHP SimpleXMLElement for PHP 4 and 5, including < 5.1.3
                    
4* @version $Id: cb.xml.simplexml.php 1183 2010-09-25 23:16:33Z beat $
                    
15
                    
16define('CB_PHP_XML', class_exists( 'SimpleXMLElement' ) && ( version_compare( phpversion(), '5.1.3', '>=' ) ) && ( ! @ini_get( 'zend.ze1_compatibility_mode' ) ) && ! defined('CBXML_TEST_CBXML') );
                    
17
                    
17
                    
18if ( CB_PHP_XML ) {
                    
19	cbimport( 'cb.xml.xml' );
                    
84	function &getAnyChildByNameAttr( $name, $attribute, $value = null ) {
                    
85		$children				=	$this->children();			// this is needed due to a bug in PHP 4.4.2 where you can have only 1 iterator per array reference, so doing second iteration on same array within first iteration kills this.
                    
86		foreach ( $children as $child ) {
                    
119	}
                    
120	/* THIS MOVED ONE LEVEL DOWN TO PHP-specific implementations !!!
                    
121	 *
                    
                
google.php https://gitlab.com/asosab/ws-geo | PHP | 250 lines
                    
1<?php 
                    
2require_once $_SERVER["DOCUMENT_ROOT"] ."/controlador/color.php";
                    
2require_once $_SERVER["DOCUMENT_ROOT"] ."/controlador/color.php";
                    
3require_once $_SERVER["DOCUMENT_ROOT"] . '/servicios/geo/geo.php';
                    
4//	require_once $_SERVER["DOCUMENT_ROOT"] . '/vendor/colors_of_image/colorsofimage.class.php';
                    
4//	require_once $_SERVER["DOCUMENT_ROOT"] . '/vendor/colors_of_image/colorsofimage.class.php';
                    
5//	if (!ini_get("auto_detect_line_endings")) ini_set("auto_detect_line_endings", '1');
                    
6//https://maps.google.com/maps/api/geocode/json?latlng=8.3650243,-62.6529962
                    
                
ZendPlatform.php https://gitlab.com/Ltaimao/wecenter | PHP | 317 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26//require_once 'Zend/Cache/Backend.php';
                    
27
                    
30 */
                    
31//require_once 'Zend/Cache/Backend/Interface.php';
                    
32
                    
73        if (!is_writable($accConf['output_cache_dir'])) {
                    
74            Zend_Cache::throwException('The cache copies directory \''. ini_get('zend_accelerator.output_cache_dir') .'\' must be writable !');
                    
75        }
                    
189            case Zend_Cache::CLEANING_MODE_OLD:
                    
190                $cache_dir = ini_get('zend_accelerator.output_cache_dir');
                    
191                if (!$cache_dir) {
                    
193                }
                    
194                $cache_dir .= '/.php_cache_api/';
                    
195                return $this->_clean($cache_dir, $mode);
                    
                
password.php https://gitlab.com/Anas7232/Layout-Changes | PHP | 251 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
40/**
                    
41 * PHP ext/standard/password compatibility package
                    
42 *
                    
47 * @link		https://codeigniter.com/user_guide/
                    
48 * @link		http://php.net/password
                    
49 */
                    
52
                    
53if (is_php('5.5') OR ! defined('CRYPT_BLOWFISH') OR CRYPT_BLOWFISH !== 1 OR defined('HHVM_VERSION'))
                    
54{
                    
69	 *
                    
70	 * @link	http://php.net/password_get_info
                    
71	 * @param	string	$hash
                    
                
WincacheEngineTest.php https://gitlab.com/0072016/0072016-fbphp | PHP | 281 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         2.0.0
                    
12 * @since         2.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
36        $this->skipIf(!function_exists('wincache_ucache_set'), 'Wincache is not installed or configured properly.');
                    
37        $this->skipIf(!ini_get('wincache.enablecli'), 'Wincache is not enabled on the CLI.');
                    
38        Cache::enable();
                    
                
ImportShp.class.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 343 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * ESRI Shape file import plugin for phpMyAdmin
                    
5 *
                    
5 *
                    
6 * @package    PhpMyAdmin-Import
                    
7 * @subpackage ESRI_Shape
                    
8 */
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
19/* Get the import interface*/
                    
20require_once 'libraries/plugins/ImportPlugin.class.php';
                    
21/* Get the ShapeFile class */
                    
21/* Get the ShapeFile class */
                    
22require_once 'libraries/bfShapeFiles/ShapeFile.lib.php';
                    
23require_once 'libraries/plugins/import/ShapeFile.class.php';
                    
                
ProjectTask.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 448 lines
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @since         CakePHP(tm) v 1.2
                    
142/**
                    
143 * Checks PHP's include_path for CakePHP.
                    
144 *
                    
144 *
                    
145 * @return bool Indicates whether or not CakePHP exists on include_path
                    
146 */
                    
441			'help' => __d('cake_console', 'The directory layout to use for the new application skeleton.' .
                    
442				' Defaults to cake/Console/Templates/skel of CakePHP used to create the project.')
                    
443		));
                    
                
file.php https://github.com/whiletrue/fluxcms.git | PHP | 147 lines
                    
1<?php
                    
2
                    
135                    finfo_close($res);
                    
136                } elseif(!strpos(ini_get('disable_functions'),'exec')) {
                    
137                    exec(escapeshellcmd('file -ib '. escapeshellarg($src)), $out);
                    
                
ProjectTask.php https://bitbucket.org/00firestar00/ejfirestar.com.git | PHP | 444 lines
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @since         CakePHP(tm) v 1.2
                    
142/**
                    
143 * Checks PHP's include_path for CakePHP.
                    
144 *
                    
144 *
                    
145 * @return boolean Indicates whether or not CakePHP exists on include_path
                    
146 */
                    
439				'default' => current(App::core('Console')) . 'Templates' . DS . 'skel',
                    
440				'help' => __d('cake_console', 'The directory layout to use for the new application skeleton. Defaults to cake/Console/Templates/skel of CakePHP used to create the project.')
                    
441			));
                    
                
Misc.php https://github.com/Doap/xoops.git | PHP | 369 lines
                    
1<?php
                    
2/*
                    
30        if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) {
                    
31            if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php"))
                    
32                $langCode = $_GET['langCode'];
                    
33        }
                    
34        include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php";
                    
35        if ($number) {
                    
64    /**
                    
65     * @link http://pl.php.net/manual/en/function.imagecopyresampled.php
                    
66     * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
                    
110    /**
                    
111     * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
                    
112     * function posted by e dot a dot schultz at gmail dot com
                    
167    /**
                    
168     * convert shorthand php.ini notation into bytes, much like how the PHP source does it
                    
169     * @link http://pl.php.net/manual/en/function.ini-get.php
                    
                
upload.php https://github.com/bschwartz/swfupload.git | PHP | 178 lines
                    
1<?php
                    
2/*
                    
20	
                    
21	The script should not allow files to be saved that could then be executed on the webserver (such as .php files).
                    
22	 To keep things simple we will use an extension whitelist for allowed file extensions.  Which files should be allowed
                    
40// Code for Session Cookie workaround
                    
41	if (isset($_POST["PHPSESSID"])) {
                    
42		session_id($_POST["PHPSESSID"]);
                    
42		session_id($_POST["PHPSESSID"]);
                    
43	} else if (isset($_GET["PHPSESSID"])) {
                    
44		session_id($_GET["PHPSESSID"]);
                    
48
                    
49// Check post_max_size (http://us3.php.net/manual/en/features.file-upload.php#73762)
                    
50	$POST_MAX_SIZE = ini_get('post_max_size');
                    
142		
                    
143		Also see http://72.14.253.104/search?q=cache:3YGZfcnKDrYJ:www.scanit.be/uploads/php-file-upload.pdf+php+file+command&hl=en&ct=clnk&cd=8&gl=us&client=firefox-a
                    
144		 which describes how a PHP script can be embedded within a GIF image file.
                    
                
elfinder.php https://bitbucket.org/asikart-extension/joomclouds-client.git | PHP | 241 lines
                    
1<?php
                    
2/**
                    
76        // Get INI setting
                    
77        $upload_max = ini_get('upload_max_filesize') ;
                    
78        $upload_num = ini_get('max_file_uploads') ;
                    
98            elFinder = $('#elfinder').elfinder({
                    
99                url         : 'index.php?option={$com_option}&task=elFinderConnector&root={$root}&start_path={$start_path}' ,
                    
100                width       : '100%' ,
                    
183		
                    
184		$elfinder_path = AKPATH_ASSETS.'/js/elfinder/php/' ;
                    
185		
                    
185		
                    
186		include_once $elfinder_path.'elFinderConnector.class.php';
                    
187		include_once $elfinder_path.'elFinder.class.php';
                    
187		include_once $elfinder_path.'elFinder.class.php';
                    
188		include_once $elfinder_path.'elFinderVolumeDriver.class.php';
                    
189
                    
                
OutputHandler.php https://github.com/sunnysujan/wikireader.git | PHP | 177 lines
                    
1<?php
                    
2
                    
21	}
                    
22	if ( !$wgDisableOutputCompression && !ini_get( 'zlib.output_compression' ) ) {
                    
23		if ( !defined( 'MW_NO_OUTPUT_COMPRESSION' ) ) {
                    
25		}
                    
26		if ( !ini_get( 'output_handler' ) ) {
                    
27			wfDoContentLength( strlen( $s ) );
                    
                
NativeSessionStorageTest.php https://gitlab.com/judielsm/Handora | PHP | 258 lines
                    
1<?php
                    
2
                    
31 */
                    
32class NativeSessionStorageTest extends \PHPUnit_Framework_TestCase
                    
33{
                    
137        $storage = new NativeSessionStorage();
                    
138        $this->assertEquals('', ini_get('session.cache_limiter'));
                    
139    }
                    
145        $storage = new NativeSessionStorage(array('cache_limiter' => 'public'));
                    
146        $this->assertEquals('public', ini_get('session.cache_limiter'));
                    
147    }
                    
180    {
                    
181        if (PHP_VERSION_ID >= 50400) {
                    
182            $this->markTestSkipped('Test skipped, for PHP 5.3 only.');
                    
202    {
                    
203        if (PHP_VERSION_ID < 50400) {
                    
204            $this->markTestSkipped('Test skipped, for PHP 5.4 only.');
                    
                
class.upload.php https://github.com/Emaratilicious/Garden.git | PHP | 319 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
51
                    
52		if (ini_get('file_uploads') != 1)
                    
53			return FALSE;
                    
263			$ContentLength = Gdn::Request()->GetValueFrom('server', 'CONTENT_LENGTH');
                    
264			$MaxPostSize = self::UnformatFileSize(ini_get('post_max_size'));
                    
265			if($ContentLength > $MaxPostSize) {
                    
273				case 2:
                    
274					$MaxFileSize = self::UnformatFileSize(ini_get('upload_max_filesize'));
                    
275					$Ex = sprintf(T('Gdn_Upload.Error.PhpMaxFileSize', 'The file is larger than the server\'s maximum file size. (%s)'), self::FormatFileSize($MaxFileSize));
                    
                
troubleshooting.md https://gitlab.com/yousafsyed/easternglamor | Markdown | 159 lines
                    
163. Make sure you have no problems with your setup by running the installer's
                    
17   checks via `curl -sS https://getcomposer.org/installer | php -- --check`.
                    
18
                    
85
                    
86`PHP Fatal error:  Allowed memory size of XXXXXX bytes exhausted <...>`
                    
87
                    
87
                    
88The PHP `memory_limit` should be increased.
                    
89
                    
96```sh
                    
97php -r "echo ini_get('memory_limit').PHP_EOL;"
                    
98```
                    
99
                    
100Try increasing the limit in your `php.ini` file (ex. `/etc/php5/cli/php.ini` for
                    
101Debian-like systems):
                    
                
self_test.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 314 lines
                    
33            <?php if (PHP_VERSION >= 5): ?>
                    
34            <code><?php echo PHP_VERSION; ?></code>
                    
35            <?php else: ?>
                    
35            <?php else: ?>
                    
36            <code><?php echo PHP_VERSION; ?></code>;
                    
37            <?php endif; ?>
                    
105            <code>Installed (XCache)</code>
                    
106            <?php elseif (PHP_VERSION >= 6): ?>
                    
107            <code>PHP6</code>
                    
157            Safe mode:
                    
158            <?php if (w3_to_boolean(ini_get('safe_mode'))): ?>
                    
159            <code>On</code>
                    
166            Open basedir:
                    
167            <?php $open_basedir = ini_get('open_basedir'); if ($open_basedir): ?>
                    
168            <code>On: <?php echo htmlspecialchars($open_basedir); ?></code>
                    
                
basic_functions.h https://bitbucket.org/oglop/tomato-arm-kille72.git | C Header | 271 lines
                    
58#ifdef HAVE_INET_NTOP
                    
59PHP_NAMED_FUNCTION(php_inet_ntop);
                    
60#endif
                    
61#ifdef HAVE_INET_PTON
                    
62PHP_NAMED_FUNCTION(php_inet_pton);
                    
63#endif
                    
93PHP_FUNCTION(highlight_string);
                    
94PHP_FUNCTION(php_strip_whitespace);
                    
95ZEND_API void php_get_highlight_struct(zend_syntax_highlighter_ini *syntax_highlighter_ini);
                    
96
                    
97PHP_FUNCTION(ini_get);
                    
98PHP_FUNCTION(ini_get_all);
                    
267PHPAPI void php_call_shutdown_functions(void);
                    
268PHPAPI void php_free_shutdown_functions(void);
                    
269
                    
                
class.upgrader.php https://gitlab.com/billyprice1/osTicket | PHP | 433 lines
                    
1<?php
                    
2/*********************************************************************
                    
2/*********************************************************************
                    
3    class.upgrader.php
                    
4
                    
16
                    
17require_once INCLUDE_DIR.'class.setup.php';
                    
18require_once INCLUDE_DIR.'class.migrater.php';
                    
161        //Disable time limit if - safe mode is set.
                    
162        if(!ini_get('safe_mode'))
                    
163            set_time_limit(0);
                    
307
                    
308        $task_file = $this->getSQLDir() . "{$this->phash}.task.php";
                    
309        if (!file_exists($task_file))
                    
333                );
                    
334        if(!($max_time = ini_get('max_execution_time')))
                    
335            $max_time = 30; //Default to 30 sec batches.
                    
                
install.weever.joomla.1.7.php https://github.com/sphilp/com_weever.git | PHP | 384 lines
                    
53			?>
                    
54			<p><?php echo JText::_("WEEVER_INSTALLING_PLUGIN"); ?><?php echo $attributes['folder']."/".$attributes['plugin'].": <b>".$message."</b>"; ?></p>
                    
55			<?php	
                    
71			?>
                    
72			<p><?php echo JText::_("WEEVER_INSTALLING_TEMPLATE"); ?><?php echo $attributes['template'].": <b>".$message."</b>"; ?></p>
                    
73			<?php	
                    
121				<tr>
                    
122				<td><input type="text" name="site_key" maxlength="42" style="width:250px;" placeholder="Paste your Site Key here" value="" /><input type="submit" value="<?php echo JText::_("WEEVER_INSTALL_SUBMIT_KEY"); ?>" /> <?php echo JText::_("WEEVER_ALLOW_FEW_SECONDS"); ?></td>
                    
123				</tr>	
                    
291			?>
                    
292			<p><?php echo JText::_("WEEVER_UPDATING_PLUGIN"); ?><?php echo $attributes['folder']."/".$attributes['plugin'].": <b>".$message."</b>"; ?></p>
                    
293			<?php	
                    
309			?>
                    
310			<p><?php echo JText::_("WEEVER_UPDATING_TEMPLATE"); ?><?php echo $attributes['template'].": <b>".$message."</b>"; ?></p>
                    
311			<?php	
                    
                
ZendPlatform.php https://bitbucket.org/areeves42/openfisma.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26// require_once 'Zend/Cache/Backend.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/Cache/Backend/Interface.php';
                    
32
                    
73        if (!is_writable($accConf['output_cache_dir'])) {
                    
74            Zend_Cache::throwException('The cache copies directory \''. ini_get('zend_accelerator.output_cache_dir') .'\' must be writable !');
                    
75        }
                    
189            case Zend_Cache::CLEANING_MODE_OLD:
                    
190                $cache_dir = ini_get('zend_accelerator.output_cache_dir');
                    
191                if (!$cache_dir) {
                    
193                }
                    
194                $cache_dir .= '/.php_cache_api/';
                    
195                return $this->_clean($cache_dir, $mode);
                    
                
Output.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 574 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
93	{
                    
94		$this->_zlib_oc = @ini_get('zlib.output_compression');
                    
95
                    
96		// Get mime types for later
                    
97		if (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
                    
98		{
                    
98		{
                    
99		    include APPPATH.'config/'.ENVIRONMENT.'/mimes.php';
                    
100		}
                    
102		{
                    
103			include APPPATH.'config/mimes.php';
                    
104		}
                    
                
MongoDbSessionHandlerTest.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 251 lines
                    
1<?php
                    
2
                    
20 */
                    
21class MongoDbSessionHandlerTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
23    /**
                    
24     * @var \PHPUnit_Framework_MockObject_MockObject
                    
25     */
                    
33
                    
34        $mongoClass = version_compare(phpversion('mongo'), '1.3.0', '<') ? 'Mongo' : 'MongoClient';
                    
35
                    
134
                    
135        $expectedExpiry = time() + (int) ini_get('session.gc_maxlifetime');
                    
136        $this->assertTrue($this->storage->write('foo', 'bar'));
                    
                
validation.file.php https://github.com/dodyrw/framework.git | PHP | 330 lines
                    
1<?php
                    
2
                    
4 * Clonefish form generator class 
                    
5 * (c) phpformclass.com, Dots Amazing
                    
6 * All rights reserved.
                    
8 * @copyright  2010 Dots Amazing
                    
9 * @link       http://phpformclass.com
                    
10 * @package    clonefish
                    
35  var $_channels = Array(); // allowed channels for a JPEG file
                    
36  var $_types    = Array(); // filetypes - PHP constants rendered by the class
                    
37  var $_jpgchannels = Array();
                    
49
                    
50    $inisize = ini_get('upload_max_filesize');
                    
51    if ( preg_match( '/^([0-9]+)M$/i', $inisize, $results ) ) 
                    
124
                    
125    if ( $this->checkDependencyPHP() ) {
                    
126
                    
                
Common.php https://bitbucket.org/gegere/openvbx.git | PHP | 577 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
30{
                    
31	static $_is_php;
                    
32	$version = (string)$version;
                    
35	{
                    
36		$_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE;
                    
37	}
                    
201 * Returns a new class object by reference, used by load_class() and the DB class.
                    
202 * Required to retain PHP 4 compatibility and also not make PHP 5.3 cry.
                    
203 *
                    
325/**
                    
326* Loads the main config.php file
                    
327*
                    
576/* End of file Common.php */
                    
577/* Location: ./system/codeigniter/Common.php */
                    
                
NativeSessionStorageTest.php https://bitbucket.org/helfreire/tccsite.git | PHP | 279 lines
                    
1<?php
                    
2
                    
29 */
                    
30class NativeSessionStorageTest extends \PHPUnit_Framework_TestCase
                    
31{
                    
118        $storage = new NativeSessionStorage();
                    
119        $this->assertEquals('', ini_get('session.cache_limiter'));
                    
120    }
                    
126        $storage = new NativeSessionStorage(array('cache_limiter' => 'public'));
                    
127        $this->assertEquals('public', ini_get('session.cache_limiter'));
                    
128    }
                    
161    {
                    
162        if (version_compare(phpversion(), '5.4.0', '>=')) {
                    
163            $this->markTestSkipped('Test skipped, for PHP 5.3 only.');
                    
183    {
                    
184        if (version_compare(phpversion(), '5.4.0', '<')) {
                    
185            $this->markTestSkipped('Test skipped, for PHP 5.4 only.');
                    
                
Statistics.php https://bitbucket.org/valmy/openx.git | PHP | 245 lines
                    
1<?php
                    
2
                    
27
                    
28require_once MAX_PATH . '/lib/OA.php';
                    
29require_once MAX_PATH . '/lib/OA/ServiceLocator.php';
                    
29require_once MAX_PATH . '/lib/OA/ServiceLocator.php';
                    
30require_once MAX_PATH . '/lib/OA/Task/Runner.php';
                    
31
                    
31
                    
32require_once LIB_PATH . '/Dal/Maintenance/Statistics/Factory.php';
                    
33require_once LIB_PATH . '/Maintenance/Statistics/Task/SetUpdateRequirements.php';
                    
33require_once LIB_PATH . '/Maintenance/Statistics/Task/SetUpdateRequirements.php';
                    
34require_once LIB_PATH . '/Maintenance/Statistics/Task/SummariseIntermediate.php';
                    
35require_once LIB_PATH . '/Maintenance/Statistics/Task/DeduplicateConversions.php';
                    
35require_once LIB_PATH . '/Maintenance/Statistics/Task/DeduplicateConversions.php';
                    
36require_once LIB_PATH . '/Maintenance/Statistics/Task/ManageConversions.php';
                    
37require_once LIB_PATH . '/Maintenance/Statistics/Task/SummariseFinal.php';
                    
                
cleaner.php https://gitlab.com/hub/vbulletin.git | PHP | 419 lines
                    
1<?php
                    
2
                    
99
                    
100		if (@ini_get('register_globals') OR !@ini_get('gpc_order'))
                    
101		{
                    
343						{
                    
344							require_once(DIR . '/includes/functions_misc.php');
                    
345							$data = vbmktime($data['hour'], $data['minute'], $data['second'], $data['month'], $data['day'], $data['year']);
                    
409	{
                    
410		if ($query = vB_String::parseUrl($url, PHP_URL_QUERY))
                    
411		{
                    
                
PwPostDoPoll.php https://gitlab.com/wuhang2003/phpwind | PHP | 329 lines
                    
1<?php
                    
2defined('WEKIT_VERSION') || exit('Forbidden');
                    
9 * @author MingXing Sun <mingxing.sun@aliyun-inc.com>
                    
10 * @copyright ©2003-2103 phpwind.com
                    
11 * @license http://www.phpwind.com
                    
11 * @license http://www.phpwind.com
                    
12 * @version $Id: PwPostDoPoll.php 23975 2013-01-17 10:20:11Z jieyin $
                    
13 * @package forum
                    
33		$this->action = $this->tid ? 'modify' : 'add';
                    
34		$this->post_max_size = @ini_get('post_max_size');
                    
35		$this->max_file_uploads = @ini_get('max_file_uploads');
                    
                
timezone.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 132 lines
                    
1<?php
                    
2/**
                    
84        ini_set( 'date.timezone', $global_config['site_timezone'] );
                    
85        if ( strcasecmp( ini_get( 'date.timezone' ), $global_config['site_timezone'] ) == 0 )
                    
86        {
                    
                
config.php https://github.com/pirrat/Consilio.git | PHP | 195 lines
                    
41
                    
42if (!((function_exists('apc_store') && ini_get('apc.enabled')) || function_exists('eaccelerator_put') && ini_get('eaccelerator.enable') || function_exists('xcache_set'))) {
                    
43    $minorProblems[] = 'Install and enable a <strong>PHP accelerator</strong> like APC (highly recommended).';
                    
114    $phpini = true;
                    
115    $minorProblems[] = 'Set <strong>register_globals</strong> to <strong>off</strong> in php.ini<a href="#phpini">*</a>.';
                    
116}
                    
119    $phpini = true;
                    
120    $minorProblems[] = 'Set <strong>session.auto_start</strong> to <strong>off</strong> in php.ini<a href="#phpini">*</a>.';
                    
121}
                    
170
                    
171                    <?php if ($phpini): ?>
                    
172                            <a id="phpini"></a>
                    
174                                    <?php if (get_cfg_var('cfg_file_path')): ?>
                    
175                                        Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo get_cfg_var('cfg_file_path') ?></strong>".
                    
176                                    <?php else: ?>
                    
                
TemplatePathStack.php https://github.com/MontmereLimited/zf2.git | PHP | 354 lines
                    
1<?php
                    
2/**
                    
86    {
                    
87        $this->useViewStream = (bool) ini_get('short_open_tag');
                    
88        if ($this->useViewStream) {
                    
                
CaBundle.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 291 lines
                    
195        // Vulnerable:
                    
196        // PHP 5.3.0 - PHP 5.3.27
                    
197        // PHP 5.4.0 - PHP 5.4.22
                    
199        if (
                    
200               (PHP_VERSION_ID < 50400 && PHP_VERSION_ID >= 50328)
                    
201            || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423)
                    
201            || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423)
                    
202            || (PHP_VERSION_ID < 50600 && PHP_VERSION_ID >= 50507)
                    
203        ) {
                    
244        // Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415
                    
245        // changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593
                    
246        $cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K';
                    
269            count($output) === 3
                    
270            && $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION)
                    
271            && $output[1] === 'string(27) "stefan.esser@sektioneins.de"'
                    
                
cake_session.test.php https://github.com/cgajardo/repositorium.git | PHP | 508 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.4206
                    
18 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
47		// Make sure garbage colector will be called
                    
48		$this->__gc_divisor = ini_get('session.gc_divisor');
                    
49		ini_set('session.gc_divisor', '1');
                    
                
Import.php https://gitlab.com/team_fsn/fsn-php | PHP | 226 lines
                    
1<?php
                    
2
                    
87		if (!$this -> getElement('module') -> getValue()) {
                    
88			$upload_max_filesize = ini_get('upload_max_filesize');
                    
89			$tooltip = 'importfile_tooltip';
                    
117		}
                    
118		$upload_max_filesize = ini_get('upload_max_filesize');
                    
119		$tooltip = 'importfile_tooltip';
                    
                
Filesystem.php https://github.com/shevron/zf2.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
194
                    
195        global $php_errormsg;
                    
196        $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1');
                    
198            ini_set('track_errors', $trackErrors);
                    
199            throw new Lucene\Exception\RuntimeException('Can\'t delete file: ' . $php_errormsg);
                    
200        }
                    
270    {
                    
271        global $php_errormsg;
                    
272
                    
290
                    
291        $trackErrors = ini_get('track_errors');
                    
292        ini_set('track_errors', '1');
                    
296            ini_set('track_errors', $trackErrors);
                    
297            throw new Lucene\Exception\RuntimeException($php_errormsg);
                    
298        }
                    
                
Sql.php https://github.com/sgtcarneiro/horde.git | PHP | 208 lines
                    
1<?php
                    
2/**
                    
198                         $this->_params['table']);
                    
199        $values = array(time() - ini_get('session.gc_maxlifetime'));
                    
200
                    
                
MimeType.php https://github.com/gryzz/crystal_magento.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: MimeType.php 18513 2009-10-12 16:17:35Z matthew $
                    
20 */
                    
24 */
                    
25#require_once 'Zend/Validate/Abstract.php';
                    
26
                    
119        } elseif (!is_array($mimetype)) {
                    
120            #require_once 'Zend/Validate/Exception.php';
                    
121            throw new Zend_Validate_Exception("Invalid options to validator provided");
                    
154     * Sets the magicfile to use
                    
155     * if null, the MAGIC constant from php is used
                    
156     *
                    
164        } else if (!is_readable($file)) {
                    
165            #require_once 'Zend/Validate/Exception.php';
                    
166            throw new Zend_Validate_Exception('The given magicfile can not be read');
                    
                
APCCacheMode.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 299 lines
                    
1<?php
                    
2
                    
11		$this->userMode = $opts->getValue( 'mode' ) === SpecialAPC::MODE_USER_CACHE;
                    
12		$this->fieldKey = $this->userMode ? 'info' : ( ini_get( 'apc.stat' ) ? 'inode' : 'filename' );
                    
13	}
                    
                
AbstractDumper.php https://gitlab.com/ealexis.t/trends | PHP | 176 lines
                    
1<?php
                    
2
                    
23{
                    
24    public static $defaultOutput = 'php://output';
                    
25
                    
39    {
                    
40        $this->setCharset($charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8');
                    
41        $this->decimalPoint = (string) 0.5;
                    
                
modrestcurlclient.class.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 298 lines
                    
1<?php
                    
2/**
                    
5 */
                    
6require_once dirname(__FILE__) . '/modrestclient.class.php';
                    
7/**
                    
132        /* can only use follow location if safe_mode and open_basedir are off */
                    
133        $safeMode = ini_get('safe_mode');
                    
134        $openBasedir = ini_get('open_basedir');
                    
215        // turn off compatibility mode as simple xml throws a wobbly if you don't.
                    
216        if ( ini_get('zend.ze1_compatibility_mode') == 1 ) ini_set ( 'zend.ze1_compatibility_mode', 0 );
                    
217        if ( is_null( $xml ) ) $xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><'.$rootNodeName.'></'.$rootNodeName.'>');
                    
                
index.php git://pkgs.fedoraproject.org/moodle | PHP | 370 lines
                    
1<?php
                    
2
                    
26// Check that config.php exists, if not then call the install script
                    
27if (!file_exists('../config.php')) {
                    
28    header('Location: ../install.php');
                    
33if (version_compare(phpversion(), '5.3.2') < 0) {
                    
34    $phpversion = phpversion();
                    
35    // do NOT localise - lang strings would not work here and we CAN NOT move it to later place
                    
35    // do NOT localise - lang strings would not work here and we CAN NOT move it to later place
                    
36    echo "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).<br />";
                    
37    echo "Please upgrade your server software or install older Moodle version.";
                    
77if (ini_get_bool('magic_quotes_runtime')) {
                    
78    print_error('phpvaroff', 'debug', '', (object)array('name'=>'magic_quotes_runtime', 'link'=>$documentationlink));
                    
79}
                    
80
                    
81if (!ini_get_bool('file_uploads')) {
                    
82    print_error('phpvaron', 'debug', '', (object)array('name'=>'file_uploads', 'link'=>$documentationlink));
                    
                
admin_statistics.php https://gitlab.com/nacridan/Nacridan | PHP | 139 lines
                    
29	// Is phpinfo() a disabled function?
                    
30	if (strpos(strtolower((string) ini_get('disable_functions')), 'phpinfo') !== false)
                    
31		message($lang_admin_index['PHPinfo disabled message']);
                    
88else if (isset($_PHPA))
                    
89	$php_accelerator = '<a href="http://'.$lang_admin_index['ionCube PHP Accelerator link'].'">'.$lang_admin_index['ionCube PHP Accelerator'].'</a>';
                    
90else if (ini_get('apc.enabled'))
                    
90else if (ini_get('apc.enabled'))
                    
91	$php_accelerator ='<a href="http://'.$lang_admin_index['Alternative PHP Cache (APC) link'].'">'.$lang_admin_index['Alternative PHP Cache (APC)'].'</a>';
                    
92else if (ini_get('zend_optimizer.optimization_level'))
                    
120						<?php printf($lang_admin_index['Environment data OS'], PHP_OS) ?><br />
                    
121						<?php printf($lang_admin_index['Environment data version'], phpversion(), '<a href="admin_statistics.php?action=phpinfo">'.$lang_admin_index['Show info'].'</a>') ?><br />
                    
122						<?php printf($lang_admin_index['Environment data acc']."\n", $php_accelerator) ?>
                    
126						<?php echo implode(' ', $db->get_version())."\n" ?>
                    
127<?php if (isset($total_records) && isset($total_size)): ?>						<br /><?php printf($lang_admin_index['Database data rows']."\n", forum_number_format($total_records)) ?>
                    
128						<br /><?php printf($lang_admin_index['Database data size']."\n", $total_size) ?>
                    
                
url_generating.lib.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 321 lines
                    
147 * // with cookies disabled:
                    
148 * // script.php?server=1&amp;lang=en-utf-8&amp;db=mysql&amp;table=rights
                    
149 *
                    
154 * // note the missing ?
                    
155 * echo 'script.php' . PMA_generate_common_url($params);
                    
156 * // produces with cookies enabled:
                    
161 * // note the missing ?
                    
162 * echo 'script.php' . PMA_generate_common_url();
                    
163 * // produces with cookies enabled:
                    
163 * // produces with cookies enabled:
                    
164 * // script.php
                    
165 * // with cookies disabled:
                    
299        // as recommended by W3C
                    
300        $php_arg_separator_input = ini_get('arg_separator.input');
                    
301        if (strpos($php_arg_separator_input, ';') !== false) {
                    
                
requirements.php https://gitlab.com/deadgood/sportas | PHP | 137 lines
                    
5 * In order to run this script use the following console command:
                    
6 * php requirements.php
                    
7 *
                    
9 * If you are using Linux you can create a hard link instead, using the following command:
                    
10 * ln requirements.php ../requirements.php
                    
11 */
                    
25
                    
26$gdMemo = $imagickMemo = 'Either GD PHP extension with FreeType support or ImageMagick PHP extension with PNG support is required for image CAPTCHA.';
                    
27$gdOK = $imagickOK = false;
                    
103    // PHP ini :
                    
104    'phpExposePhp' => array(
                    
105        'name' => 'Expose PHP',
                    
108        'by' => 'Security reasons',
                    
109        'memo' => '"expose_php" should be disabled at php.ini',
                    
110    ),
                    
                
stresstest.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 138 lines
                    
1<?php
                    
2require_once dirname(__FILE__).'/accesscheck.php';
                    
27<br><b>Warning</b> this is quite demanding for your browser!
                    
28<?php
                    
29
                    
107
                    
108if (!ini_get("safe_mode")) {
                    
109  if (!sizeof($testlists)) {
                    
                
MemcacheSessionHandler.php https://github.com/theosp/google_appengine.git | PHP | 181 lines
                    
1<?php
                    
2/**
                    
20 * Nb. Does not yet implement session locking, as not available until
                    
21 * MemcacheD is available for PHP runtime.
                    
22 *
                    
101    // Get session max lifetime to leverage Memcache expire functionality.
                    
102    $this->expire = ini_get("session.gc_maxlifetime");
                    
103  }
                    
                
index.php https://github.com/karpenoktem/punbb.git | PHP | 244 lines
                    
33	// Is phpinfo() a disabled function?
                    
34	if (strpos(strtolower((string)@ini_get('disable_functions')), 'phpinfo') !== false)
                    
35		message($lang_admin_index['phpinfo disabled']);
                    
128else if (isset($_PHPA))
                    
129	$php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
                    
130else if (ini_get('apc.enabled'))
                    
130else if (ini_get('apc.enabled'))
                    
131	$php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>';
                    
132else if (ini_get('zend_optimizer.optimization_level'))
                    
213						<li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li>
                    
214						<li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li>
                    
215						<li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li>
                    
226						<li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li>
                    
227						<li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li>
                    
228<?php endif; ?>
                    
                
cake_session.test.php https://github.com/hack521/contenidopago.git | PHP | 508 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.4206
                    
18 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
47		// Make sure garbage colector will be called
                    
48		$this->__gc_divisor = ini_get('session.gc_divisor');
                    
49		ini_set('session.gc_divisor', '1');
                    
                
adodb-session-clob.php https://github.com/md-tech/openemr.git | PHP | 444 lines
                    
1<?php
                    
2/*
                    
8  
                    
9  Latest version of ADODB is available at http://php.weblogs.com/adodb
                    
10  ======================================================================
                    
11  
                    
12 This file provides PHP4 session management using the ADODB database
                    
13 wrapper library, using Oracle CLOB's to store data. Contributed by achim.gosse@ddd.de.
                    
18 	GLOBAL $HTTP_SESSION_VARS;
                    
19	include('adodb.inc.php');
                    
20	include('adodb-session.php');
                    
28 	GLOBAL $HTTP_SESSION_VARS;
                    
29	include('adodb.inc.php');
                    
30	include('adodb-session.php');
                    
59	
                    
60  3. Recommended is PHP 4.0.6 or later. There are documented
                    
61	 session bugs in earlier versions of PHP.
                    
                
DBLockManager.php https://gitlab.com/link233/bootmw | PHP | 433 lines
                    
1<?php
                    
2/**
                    
79			: []; // likely just using 'localDBMaster'
                    
80		// Sanitize srvsByBucket config to prevent PHP errors
                    
81		$this->srvsByBucket = array_filter( $config['dbsByBucket'], 'is_array' );
                    
86		} else {
                    
87			$met = ini_get( 'max_execution_time' );
                    
88			$this->lockExpiry = $met ? $met : 60; // use some sane amount if 0
                    
260	 * Get a connection to a lock DB and acquire locks on $paths.
                    
261	 * This does not use GET_LOCK() per http://bugs.mysql.com/bug.php?id=1118.
                    
262	 *
                    
                
urlrewrite.php https://gitlab.com/alexprowars/bitrix | PHP | 174 lines
                    
6require_once(__DIR__."/autoload.php");
                    
7require_once(__DIR__."/../tools.php");
                    
8
                    
20		{
                    
21			if($_SERVER["REQUEST_URI"] == '' || $_SERVER["REQUEST_URI"] == '/404.php' || mb_strpos($_SERVER["REQUEST_URI"], $marker) !== false)
                    
22			{
                    
35
                    
36require_once($_SERVER["DOCUMENT_ROOT"].BX_PERSONAL_ROOT."/php_interface/dbconn.php");
                    
37
                    
58$arUrlRewrite = array();
                    
59if(file_exists($_SERVER['DOCUMENT_ROOT']."/urlrewrite.php"))
                    
60	include($_SERVER['DOCUMENT_ROOT']."/urlrewrite.php");
                    
88			$_REQUEST += $vars;
                    
89			if (ini_get_bool("register_globals"))
                    
90				$GLOBALS += $vars;
                    
                
menus-sync.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 272 lines
                    
63                    <tr>
                    
64                        <th scope="row" class="check-column"><input type="checkbox" name="sync[menu_translation][<?php echo $menu_id ?>][<?php echo $language ?>]" value="<?php echo esc_attr( $name ) ?>"/></th>
                    
65                        <td><?php echo $lang_details[ 'display_name' ]; ?></td>
                    
154									?>
                    
155									<input type="text" name="sync[menu_translations][<?php echo $menu_id ?>][<?php echo $l[ 'code' ] ?>]" class="icl_msync_add" value="<?php
                    
156									echo esc_attr( $menu[ 'name' ] ) . ' - ' . $l[ 'display_name' ] ?>"/>
                    
163									?>
                    
164									<input type="hidden" name="sync[menu_options][<?php echo $menu_id ?>][<?php echo $l[ 'code' ] ?>][auto_add]" value="<?php echo esc_attr( $menu[ 'translations' ][ $l[ 'code' ] ][ 'auto_add' ] ); ?>"/>
                    
165								<?php
                    
184				?>
                    
185				<input id="icl_msync_sync" type="submit" class="button-primary" value="<?php _e( 'Sync', 'sitepress' ); ?>"<?php if ( !$need_sync ): ?> disabled="disabled"<?php endif; ?> />
                    
186				&nbsp;&nbsp;
                    
195				?>
                    
196				<input id="icl_msync_sync" type="submit" class="button-primary" value="<?php _e( 'Nothing Sync', 'sitepress' ); ?>"<?php if ( !$need_sync ): ?> disabled="disabled"<?php endif; ?> />
                    
197			<?php
                    
                
Encoder.php https://github.com/gudoy/PHPGasus-v0.git | PHP | 341 lines
                    
1<?php
                    
2/**
                    
37 * 
                    
38 * Note: If you don't need header mgmt, use PHP's native gzencode, gzdeflate, 
                    
39 * and gzcompress functions for gzip, deflate, and compress-encoding
                    
93        $this->_useMbStrlen = (function_exists('mb_strlen')
                    
94                               && (ini_get('mbstring.func_overload') !== '')
                    
95                               && ((int)ini_get('mbstring.func_overload') & 2));
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
certify_certificate.php https://github.com/atutor/certify.git | PHP | 166 lines
                    
33}
                    
34$max_upload_size = min(let_to_num(ini_get('post_max_size')), let_to_num(ini_get('upload_max_filesize')));
                    
35
                    
106	
                    
107		header('Location: index_instructor.php');
                    
108		exit;
                    
145
                    
146<form enctype="multipart/form-data" name="certifydetails" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
                    
147<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_upload_size; ?>"> <!-- We have no real need to restrict the upload here -->
                    
147<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_upload_size; ?>"> <!-- We have no real need to restrict the upload here -->
                    
148<?php if (strlen($certify_id) > 0) { ?>
                    
149<input type="hidden" name="certify_id" value="<?php echo $certify_id; ?>">
                    
149<input type="hidden" name="certify_id" value="<?php echo $certify_id; ?>">
                    
150<?php } ?>
                    
151<dl>
                    
165
                    
166<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
                    
                
check.php https://github.com/pmjones/php-framework-benchmarks.git | PHP | 105 lines
                    
25echo_title("Mandatory requirements");
                    
26check(version_compare(phpversion(), '5.3.2', '>='), sprintf('Checking that PHP version is at least 5.3.2 (%s installed)', phpversion()), 'Install PHP 5.3.2 or newer (current version is '.phpversion(), true);
                    
27check(ini_get('date.timezone'), 'Checking that the "date.timezone" setting is set', 'Set the "date.timezone" setting in php.ini (like Europe/Paris)', true);
                    
34echo_title("Optional checks");
                    
35check(class_exists('DomDocument'), 'Checking that the PHP-XML module is installed', 'Install and enable the php-xml module', false);
                    
36check(defined('LIBXML_COMPACT'), 'Checking that the libxml version is at least 2.6.21', 'Upgrade your php-xml module with a newer libxml', false);
                    
70;
                    
71check($accelerator, 'Checking that a PHP accelerator is installed', 'Install a PHP accelerator like APC (highly recommended)', false);
                    
72
                    
72
                    
73check(!ini_get('short_open_tag'), 'Checking that php.ini has short_open_tag set to off', 'Set short_open_tag to off in php.ini', false);
                    
74check(!ini_get('magic_quotes_gpc'), 'Checking that php.ini has magic_quotes_gpc set to off', 'Set magic_quotes_gpc to off in php.ini', false);
                    
75check(!ini_get('register_globals'), 'Checking that php.ini has register_globals set to off', 'Set register_globals to off in php.ini', false);
                    
76check(!ini_get('session.auto_start'), 'Checking that php.ini has session.auto_start set to off', 'Set session.auto_start to off in php.ini', false);
                    
77
                    
                
 

Source

Language