100+ results results for 'php ini_get' (167 ms)
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'); 388index.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);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)) {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 settingMysql.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'; 306Helper.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> <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 " <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 " <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));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';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); 269cleaner.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 {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));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, ' .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); 152crontab.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;password.php git://github.com/ci-bonfire/Bonfire.git | 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 $hashCodeStyleTest.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');transport.php https://bitbucket.org/Cmastris/shields-buildings.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));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 Extensiontimezone.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 {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 >= 4.0.6)</P 84>openssl_pkcs7_sign -- 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") . " < signed.txt"); 211}</PREmysqli.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 @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>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//==============================================================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 <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>';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 themdl.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'); 172FloatEncoder.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; 90common.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"; 130Client.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?>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(); 154errors.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.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."); 50SessionFactory.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);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 : '');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'; 155pearcmd.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().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'); 204uploader.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 helperhelper.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 PHPfunctions.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')) {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');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);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');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;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)) {Ini.php https://bitbucket.org/tecsecret/central-tecsecret.git | PHP | 47 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?>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); 77cake_session.test.php git://github.com/abalonepaul/eav_behavior.git | PHP | 508 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 47 // Make sure garbage colector will be called 48 $this->__gc_divisor = ini_get('session.gc_divisor'); 49 ini_set('session.gc_divisor', '1');ini.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 90 lines
1<?php 2 32 ini_set( "default_charset", $global_config['site_charset'] ); 33 $memoryLimitMB = ( integer )ini_get( 'memory_limit' ); 34 if ( $memoryLimitMB < 64 ) 41 42$sys_info['safe_mode'] = ( ini_get( 'safe_mode' ) == '1' || strtolower( ini_get( 'safe_mode' ) ) == 'on' ) ? 1 : 0; 43$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; 55 56$os = strtoupper( ( php_uname( 's' ) != '' ) ? php_uname( 's' ) : PHP_OS ); 57if ( $os == "LINUX" ) 65//Xac dinh tien ich mo rong lam viec voi string 66$sys_info['string_handler'] = $sys_info['mb_support'] ? 'mb' : ( $sys_info['iconv_support'] ? 'iconv' : 'php' ); 67UploadHandler.php git://github.com/forkcms/forkcms.git | PHP | 381 lines
1<?php 2 161 // Check that the max upload size specified in class configuration does not exceed size allowed by server config 162 if ($this->toBytes(ini_get('post_max_size')) < $this->sizeLimit || 163 $this->toBytes(ini_get('upload_max_filesize')) < $this->sizeLimit 176 * is_executable() is not reliable on Windows prior PHP 5.0.0 177 * (http://www.php.net/manual/en/function.is-executable.php) 178 * The following tests if the current OS is Windows and if so, merely 350 { 351 return 0 === stripos(PHP_OS, 'WIN'); 352 }PortalOpenId.php http://pradoportal.googlecode.com/svn/trunk/ | PHP | 315 lines
1<?php 2/** 8 * @license http://www.pradoportal.dk 9 * @version $Id: PortalOpenId.php 431 2011-01-05 11:58:18Z steen.rabol $ 10 * @package Pradoportal.Common 21$path_extra = Prado::getPathOfNamespace('Application.Common.3rdParty.OpenId') .'/'; 22$incpath = ini_get('include_path'); 23$incpath = $path_extra . PATH_SEPARATOR . $incpath; 26// If we are running on Windows there is no random device 27if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') 28{ 31 32require_once "Auth/OpenID/Consumer.php"; 33 34// Require the "file store" module, which we'll need to store OpenID information. 35require_once "Auth/OpenID/FileStore.php"; 36Tools.php https://code.google.com/p/celebrio/ | PHP | 215 lines
1<?php 2 84 { 85 $status = strtolower(ini_get($var)); 86 return $status === 'on' || $status === 'true' || $status === 'yes' || $status % 256; 203 204 if (ini_get('html_errors')) { 205 $message = html_entity_decode(strip_tags($message), ENT_QUOTES, 'UTF-8');cake_session.test.php git://github.com/Datawalke/Coordino.git | PHP | 508 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 47 // Make sure garbage colector will be called 48 $this->__gc_divisor = ini_get('session.gc_divisor'); 49 ini_set('session.gc_divisor', '1');Mailer.php https://bitbucket.org/RickCalder/durawp_new.git | PHP | 209 lines
56 */ 57 public function process_phpmailer( $phpmailer ) { 58 // Make sure that we have access to MailCatcher class methods. 60 ! $phpmailer instanceof MailCatcher && 61 ! $phpmailer instanceof \PHPMailer 62 ) { 65 66 $this->phpmailer = $phpmailer; 67 } 170 $gmail_text[] = '<strong>OpenSSL:</strong> ' . ( extension_loaded( 'openssl' ) && defined( 'OPENSSL_VERSION_TEXT' ) ? OPENSSL_VERSION_TEXT : 'No' ); 171 $gmail_text[] = '<strong>PHP.allow_url_fopen:</strong> ' . ( ini_get( 'allow_url_fopen' ) ? 'Yes' : 'No' ); 172 $gmail_text[] = '<strong>PHP.stream_socket_client():</strong> ' . ( function_exists( 'stream_socket_client' ) ? 'Yes' : 'No' ); 173 $gmail_text[] = '<strong>PHP.fsockopen():</strong> ' . ( function_exists( 'fsockopen' ) ? 'Yes' : 'No' ); 174 $gmail_text[] = '<strong>PHP.curl_version():</strong> ' . $curl_ver; // phpcs:ignore 175 if ( function_exists( 'apache_get_modules' ) ) {File.php git://github.com/tcm-project/tangocms.git | PHP | 307 lines
1<?php 2 38 'cant_write' => 'failed to write file "%s" to disk', 39 'extension' => 'PHP extension blocked file upload for "%s"', 40 'mime' => 'requested file "%s" has invalid mime of "%s"', 94 * thrown in this method to indicate the errors that could occur 95 * (such as the main PHP error codes). 96 * 104 case UPLOAD_ERR_INI_SIZE: 105 throw new Uploader_MaxFileSize( zula_byte_value( ini_get('upload_max_filesize') ) ); 106 295 * Checks the extension of a file to make sure the uplaoded 296 * file is not a PHP, Perl etc script. 297 * 301 protected function checkExtension( $name ) { 302 return !(bool) preg_match('#(?:php[0-9]?|pl|rb|aspx?|x?html?|exe|cgi)$#i', pathinfo($name, PATHINFO_EXTENSION)); 303 }Site_Service.php git://github.com/TheFrozenFire/PHP-Mindbody-API-Library.git | PHP | 178 lines
1<?php 2class Site_Service extends SoapClient { 57 } 58 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'); 59 $directory = dirname(__FILE__) . DIRECTORY_SEPARATOR; 59 $directory = dirname(__FILE__) . DIRECTORY_SEPARATOR; 60 foreach ($options['classmap'] as $key => $value) if (file_exists('{$directory}../structures/{$value}.php')) include_once ('{$directory}../structures/{$value}.php'); 61 parent::__construct($wsdl, $options);user.inc https://code.google.com/p/nuked-klan/ | PHP | 100 lines
1<?php 2 function nk_hash($hash, $pass, $decal = null){ 42 43 if (@extension_loaded('zlib') && !@ini_get('zlib.output_compression') && @phpversion() >= "4.0.4" && stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) define('GZIP_COMPRESS', 'true'); 44 else define('GZIP_COMPRESS', 'false'); 45 46 $content="<?php\n" 47 . "//-------------------------------------------------------------------------//\n" 47 . "//-------------------------------------------------------------------------//\n" 48 . "// Nuked-KlaN - PHP Portal //\n" 49 . "// http://www.nuked-klan.org //\n" 74 $_SESSION['content'] = $content; 75 if (is_writable($path.'conf.inc.php') || (!file_exists($path.'conf.inc.php') && is_writable($path))){ 76 try{ 80 if(!@chmod($path.'conf.inc.php', 0644)) throw new Exception ('CHMOD'); 81 if(!@copy($path.'conf.inc.php', $path.'config_save_'.date('%Y%m%d%H%i').'.php')) throw new Exception ('COPY'); 82 }php_ini.h git://github.com/jyr/MNPP.git | C++ Header | 91 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() 49 50#define php_ini_entry zend_ini_entry 51 55#define PHP_INI_BEGIN ZEND_INI_BEGIN 56#define PHP_INI_END ZEND_INI_END 57jSession.class.php git://github.com/jelix/jelix.git | PHP | 182 lines
1<?php 2/** 43 and replaced by a simple cron job which is not enough for jSession (different path, db storage, ...), 44 so we set it to 1 as PHP's default value */ 45 if(!ini_get('session.gc_probability')) 69 if(!preg_match('#^[a-zA-Z0-9]+$#',$params['name'])){ 70 // regexp check because session name can only be alpha numeric according to the php documentation 71 throw new jException('jelix~errors.jsession.name.invalid');geturl.class.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 473 lines
1<?php 2 46 47 $disable_functions = ( ini_get( "disable_functions" ) != "" and ini_get( "disable_functions" ) != false ) ? array_map( 'trim', preg_split( "/[\s,]+/", ini_get( "disable_functions" ) ) ) : array(); 48 $safe_mode = ( ini_get( 'safe_mode' ) == '1' || strtolower( ini_get( 'safe_mode' ) ) == 'on' ) ? 1 : 0; 58 ini_set( 'default_socket_timeout', 120 ); 59 $memoryLimitMB = ( integer )ini_get( 'memory_limit' ); 60 if ( $memoryLimitMB < 64 ) 98 99 if ( ini_get( 'allow_url_fopen' ) == '1' or strtolower( ini_get( 'allow_url_fopen' ) ) == 'on' ) 100 { 116 117 if ( ini_get( 'safe_mode' ) == '1' || strtolower( ini_get( 'safe_mode' ) ) == 'on' ) 118 { 125 126 if ( ini_get( 'open_basedir' ) == '1' || strtolower( ini_get( 'open_basedir' ) ) == 'on' ) 127 {adodb-cryptsession.php http://scriptz.googlecode.com/svn/trunk/ | PHP | 325 lines
1<?php 2/* 11 12 Latest version of ADODB is available at http://php.weblogs.com/adodb 13 ====================================================================== 14 15 This file provides PHP4 session management using the ADODB database 16wrapper library. 20 21 include('adodb.inc.php'); 22 #---------------------------------# 22 #---------------------------------# 23 include('adodb-cryptsession.php'); 24 #---------------------------------# 54 55 3. Recommended is PHP 4.0.2 or later. There are documented 56session bugs in earlier versions of PHP.max_input_vars.php git://github.com/moodle/moodle.git | PHP | 231 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require(__DIR__ . '/../../../config.php'); 26require_once($CFG->libdir . '/formslib.php'); 95// Set up the page details. 96$PAGE->set_url(new moodle_url('/lib/tests/fixtures/max_input_vars.php')); 97$PAGE->set_context($context); 105 // Just under the limit (will go over for advancedcheckbox). 106 $fieldcount = (int)ini_get('max_input_vars') - 100; 107 } else if ($type[1] === 'e') { 107 } else if ($type[1] === 'e') { 108 // Exactly on the PHP limit, taking into account extra form fields 109 // and the double fields for checkboxes. 110 if ($type[0] === 'c') { 111 $fieldcount = (int)ini_get('max_input_vars') / 2 - 2; 112 } else {scheduler.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 225 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 5 * 6 * PHP version 5 7 * LICENSE: This source file is subject to LGPL license 21 // Increase max execution time 22 if (ini_get('max_execution_time') < 180) 23 { 27 // Set time limit only if we're not on safe_mode and set_time_limit is enabled 28 $safe_mode_enabled = ini_get('safe_mode'); 29 $disabled_functions = ini_get('disable_functions');AdminAttachmentsController.php https://bitbucket.org/marketing_alfatec/colette.git | PHP | 182 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-2013 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 165 { 166 $max_upload = (int)ini_get('upload_max_filesize'); 167 $max_post = (int)ini_get('post_max_size');WincacheEngineTest.php https://github.com/binondord/cakephp.git | PHP | 281 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since 2.0.0 12 * @since 2.0.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 36 $this->skipIf(!function_exists('wincache_ucache_set'), 'Wincache is not installed or configured properly.'); 37 $this->skipIf(!ini_get('wincache.enablecli'), 'Wincache is not enabled on the CLI.'); 38 Cache::enable();Diff.php https://bitbucket.org/xmonader/ciki | PHP | 451 lines
1<?php 2/** 5 * 6 * The original PHP version of this code was written by Geoffrey T. Dairiki 7 * <dairiki@dairiki.org>, and is used/adapted with his permission. 12 * See the enclosed file COPYING for license information (LGPL). If you did 13 * not receive this file, see http://opensource.org/licenses/lgpl-license.php. 14 * 50 // WP #7391 51 require_once dirname(__FILE__).'/Diff/Engine/' . $engine . '.php'; 52 $class = 'Text_Diff_Engine_' . $engine; 227 228 /* Try PHP's upload_tmp_dir directive. */ 229 $tmp = ini_get('upload_tmp_dir');Session.php https://bitbucket.org/webstar1987923/mycampaignsio.git | PHP | 156 lines
1<?php 2/** 68 69 // don't use the default: PHPSESSID 70 @ini_set('session.name', self::SESSION_NAME); 75 76 $currentSaveHandler = ini_get('session.save_handler'); 77 $config = Config::getInstance(); 110 // garbage collection may disabled by default (e.g., Debian) 111 if (ini_get('session.gc_probability') == 0) { 112 @ini_set('session.gc_probability', 1);session.test.php https://github.com/hikmanet/HnsAutomobiles.git | PHP | 400 lines
1<?php 2/* SVN FILE: $Id: session.test.php 8130 2009-03-26 14:25:47Z renan.saddam $ */ 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> 11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @copyright Copyright 2005-2008, 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.4206 22 * @version $Revision: 8130 $ 24 * @lastmodified $Date: 2009-03-26 09:25:47 -0500 (Thu, 26 Mar 2009) $ 25 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 26 */ResourceCheckerConfigCache.php https://bitbucket.org/zima2219981998/blogweb1.2.git | PHP | 168 lines
1<?php 2 85 $prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context) use (&$prevErrorHandler, $signalingException) { 86 if (E_WARNING === $type && 'Class __PHP_Incomplete_Class has no unserializer' === $msg) { 87 throw $signalingException; 153 154 if (\function_exists('opcache_invalidate') && ini_get('opcache.enable')) { 155 @opcache_invalidate($this->file, true);PhpClosingTagFixerTest.php git://github.com/fabpot/PHP-CS-Fixer.git | PHP | 117 lines
31 { 32 if (!ini_get('short_open_tag')) { 33 $this->markTestSkipped('PHP short open tags are not enabled.'); 43 return array( 44 array('<?php echo \'Foo\';', '<?php echo \'Foo\'; ?>'), 45 array('<?php echo \'Foo\';', '<?php echo \'Foo\';?>'), 50echo \'Foo\';', 51 '<?php 52 57 array('<?php echo \'Foo\'; ?> 58<p><?php echo \'this is a template\'; ?></p> 59<?php echo \'Foo\'; ?>', 60 ), 61 array('<?php echo "foo";', '<?php echo "foo" ?>'), 62 array(requirements.php https://gitlab.com/loginov_is/mr.butler.git | 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 ),shBrushPhp.js git://github.com/recess/recess.git | JavaScript | 11 lines
7 8dp.sh.Brushes.Php=function() 9{var funcs='abs acos acosh addcslashes addslashes '+'array_change_key_case array_chunk array_combine array_count_values array_diff '+'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+'array_push array_rand array_reduce array_reverse array_search array_shift '+'array_slice array_splice array_sum array_udiff array_udiff_assoc '+'array_udiff_uassoc array_uintersect array_uintersect_assoc '+'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+'parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir '+'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+'strtoupper strtr strval substr substr_compare';var keywords='and or xor __FILE__ __LINE__ array as break case '+'cfunction class const continue declare default die do else '+'elseif empty enddeclare endfor endforeach endif endswitch endwhile '+'extends for foreach function include include_once global if '+'new old_function return static switch use require require_once '+'var while __FUNCTION__ __CLASS__ '+'__METHOD__ abstract interface public implements extends private protected throw';this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('\\$\\w+','g'),css:'vars'},{regex:new RegExp(this.GetKeywords(funcs),'gmi'),css:'func'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-c';} 9{var funcs='abs acos acosh addcslashes addslashes '+'array_change_key_case array_chunk array_combine array_count_values array_diff '+'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+'array_push array_rand array_reduce array_reverse array_search array_shift '+'array_slice array_splice array_sum array_udiff array_udiff_assoc '+'array_udiff_uassoc array_uintersect array_uintersect_assoc '+'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+'parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir '+'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+'strtoupper strtr strval substr substr_compare';var keywords='and or xor __FILE__ __LINE__ array as break case '+'cfunction class const continue declare default die do else '+'elseif empty enddeclare endfor endforeach endif endswitch endwhile '+'extends for foreach function include include_once global if '+'new old_function return static switch use require require_once '+'var while __FUNCTION__ __CLASS__ '+'__METHOD__ abstract interface public implements extends private protected throw';this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('\\$\\w+','g'),css:'vars'},{regex:new RegExp(this.GetKeywords(funcs),'gmi'),css:'func'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-c';} 10dp.sh.Brushes.Php.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Php.Aliases=['php']; 11blockadvertising.php https://gitlab.com/sanjitbauli1/fedexcollection.git | PHP | 234 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/afl-3.0.php 11* If you did not receive a copy of the license and are unable to 23* @version Release: $Revision: 14011 $ 24* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 25* International Registered Trademark & Property of PrestaShop SA 125 { 126 if ($error = checkImage($_FILES['adv_img'], Tools::convertBytes(ini_get('upload_max_filesize')))) 127 $errors .= $error;ldap_services.php https://github.com/dmolsen/MIT-Mobile-Web.git | PHP | 358 lines
126 } 127 //turn off php Warnings, during ldap search 128 //since it complains about search that go over the limit of 100 128 //since it complains about search that go over the limit of 100 129 $error_reporting = ini_get('error_reporting'); 130 error_reporting($error_reporting & ~E_WARNING);Output.php git://github.com/philsturgeon/codeigniter-restserver.git | 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 }functions.php https://gitlab.com/kidaa/quantum.git | PHP | 293 lines
1<?php 2 3function magicQuotesFix() { 4 if (ini_get('magic_quotes_gpc')) { 5 function clean($data) {url_generating.lib.php https://github.com/gerrywastaken/phpmyadmin-GitHubed.git | PHP | 321 lines
147 * // with cookies disabled: 148 * // script.php?server=1&lang=en-utf-8&db=mysql&table=rights 149 * 154 * // note the missing ? 155 * echo 'script.php' . PMA_generate_common_url($params); 156 * // produces with cookies enabled: 161 * // note the missing ? 162 * echo 'script.php' . PMA_generate_common_url(); 163 * // produces with cookies enabled: 163 * // produces with cookies enabled: 164 * // script.php 165 * // with cookies disabled: 299 // as recommended by W3C 300 $php_arg_separator_input = ini_get('arg_separator.input'); 301 if (strpos($php_arg_separator_input, ';') !== false) {phpspec.php git://github.com/phpspec/phpspec.git | PHP | 185 lines
1#!/usr/bin/php 2<?php 3/** 4 * PHPSpec 5 * 174 175require_once 'PHPSpec/Loader/UniversalClassLoader.php'; 176include_once 'Mockery.php'; 176include_once 'Mockery.php'; 177$paths = explode(':', ini_get('include_path')); 178$loader = new \PHPSpec\Loader\UniversalClassLoader(); 178$loader = new \PHPSpec\Loader\UniversalClassLoader(); 179$loader->registerNamespace('PHPSpec', $paths); 180$loader->registerNamespace('Mockery', $paths); 182 183$phpspec = new \PHPSpec\PHPSpec($argv); 184$phpspec->execute();cake_session.test.php git://github.com/mfriesen/kaching-php.git | PHP | 472 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 47 // Make sure garbage colector will be called 48 $this->__gc_divisor = ini_get('session.gc_divisor'); 49 ini_set('session.gc_divisor', '1');OutputHandler.php https://github.com/tav/confluence.git | PHP | 177 lines
1<?php 2 21 } 22 if ( !$wgDisableOutputCompression && !ini_get( 'zlib.output_compression' ) ) { 23 if ( !defined( 'MW_NO_OUTPUT_COMPRESSION' ) ) { 25 } 26 if ( !ini_get( 'output_handler' ) ) { 27 wfDoContentLength( strlen( $s ) );MongoDbSessionHandlerTest.php https://bitbucket.org/ideagital-united/monex-blog.git | 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'));Smarty.php https://github.com/michaelmcandrew/ste.git | PHP | 205 lines
1<?php 2 36 37require_once 'CRM/Utils/Recent.php'; 38 43if ( ! class_exists( 'Smarty' ) ) { 44 require_once 'Smarty/Smarty.class.php'; 45} 87 //Check for safe mode CRM-2207 88 if ( ini_get('safe_mode') ) { 89 $this->use_sub_dirs = false; 94 $customPluginsDir = null; 95 if ( isset( $config->customPHPPathDir ) ) { 96 $customPluginsDir = 96 $customPluginsDir = 97 $config->customPHPPathDir . DIRECTORY_SEPARATOR . 98 'CRM' . DIRECTORY_SEPARATOR .admin.media.php http://miacms.googlecode.com/svn/trunk/ | PHP | 360 lines
1<?php 2/** 4* @subpackage Media Manager 5* @author MiaCMS see README.php 6* @copyright see README.php 6* @copyright see README.php 7* See COPYRIGHT.php for copyright notices and details. 8* @license GNU/GPL Version 2, see LICENSE.php 19 | $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_media' ))) { 20 mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') ); 21} 38if (is_int(strpos ($listdir, "..")) && $listdir<>'') { 39 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("NO HACKING PLEASE") ); 40 } 49 case "newdir": 50 if (ini_get('safe_mode')=="On") { 51 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("Directory creation not allowed while running in SAFE MODE as this can cause problems.") );rsx_plugins_table.php https://github.com/funkaoshi/rsx_plugins_table.git | PHP | 132 lines
1<?php 2 2 3// Either copy classTextile.php to your plugin directory, or uncomment the following 4// line and edit it to give the location where classTextile.php can be found 4// line and edit it to give the location where classTextile.php can be found 5#ini_set('include_path', ini_get('include_path') . ':/full/path/to/textile'); 6 41# --- END PLUGIN HELP --- 42<?php 43 105 if (!isset($plugin['name'])) { 106 $plugin['name'] = basename(__FILE__, '.php'); 107 } 117 118 @include('classTextile.php'); 119 if (class_exists('Textile')) {LocalSettings.php https://gitlab.com/oslc-cm-server/olbergers-ff5-oslc.git | PHP | 157 lines
1<?php 2 6# 7# See includes/DefaultSettings.php for all configurable settings 8# and their default values, but don't forget to make changes in _this_ 21 22require_once( "includes/DefaultSettings.php" ); 23 23 24# If PHP's memory limit is very low, some operations may fail. 25ini_set( 'memory_limit', '20M' ); 32 ## Compress output if the browser supports it 33 if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' ); 34} 38$wgScriptPath = "/mediawiki"; 39$wgScript = "$wgScriptPath/index.php"; 40$wgRedirectScript = "$wgScriptPath/redirect.php";login.php https://bitbucket.org/seezoo/seezoo/ | PHP | 262 lines
1<?php 2/** 31 32 ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . APPPATH . 'libraries/'); 33 $this->output->set_header('Content-Type: text/html; charset=UTF-8'); 245 // load mail library 246 require_once('qdmail.php'); 247 // set multibyte japanesecustomize-page.php https://bitbucket.org/tecsecret/central-tecsecret.git | PHP | 114 lines
1<?php //ICB0 56:0 71:1b24 ?><?php //008ee 2// Product Name: Clean HTML Invoice 3.5.3 20// software upon termination of the license. 21if(!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); 22?> 23HR+cP/9V5sq92Un2f9M2JaOXz+1an7DmUHuXjQB849LjD//yJ3UhRrqXsrF6Jprzw0DUc3VZ5CUB 24sogRabuKygba3JZgOAoG8dTzQnzibLD0PfDvpB5jyY17O6gEt43fYWsPHPihq30XPdOIaGck1B8W 25669JBxcv+soxviHeS1OX3h9REXLGWPwt3vACHx5ioGSQViJEJlYQXq2mcWn5yhA+i0AIXGhXo+nD 109NgUrX8KAfpM+MHXvXpPp4/XOxKk84/euICH/37BN8bYHOwa/6yrhYS3Sj/Z0+Qva+y0chNcBV2LZ 110/gyg4/+6VCR9m1SYmBF2p3zSYyLw+MNU1F/yIquqDd1ppbrRvAl+JD5phpKFZuEbbuHSxojqbVB+ 1110WSgk4HHOKoQAINS2dw+fiD+wHKL3YUqL1tb4zzYoZBn3J51nMI8GTNAyA3Z5PdKeBaT850RUfb/clean_html_invoice.php https://bitbucket.org/tecsecret/central-tecsecret.git | PHP | 115 lines
1<?php //ICB0 56:0 71:171b ?><?php //008ee 2// Product Name: Clean HTML Invoice 3.5.3 20// software upon termination of the license. 21if(!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); 22?>PluginInfo.php https://bitbucket.org/gunnarslette/mme-opigno-demo.git | PHP | 482 lines
1<?php 2 50 // If this fails, we want to totally circumvent the cache. 51 $callback_before = ini_get('unserialize_callback_func'); 52 ini_set('unserialize_callback_func', '_crumbs_unserialize_failure');API.php https://code.google.com/p/molinos-cms/ | PHP | 383 lines
1<?php 2/** 57 58 if (ini_get('allow_url_fopen')) { 59 $result = $this->fetch_fopen($url, $options, $outfile); 173 174 if (null !== ($time = ini_get('max_execution_time'))) 175 curl_setopt($ch, CURLOPT_TIMEOUT, $time); 178 179 if (!ini_get('safe_mode')) 180 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); 317 'method' => 'POST', 318 'header' => 'Content-Type: application/x-www-form-urlencoded' . PHP_EOL, 319 'content' => Molinos_Core_API::getInstance('http')->build_query($data), 365 } 366 return implode(ini_get('arg_separator.output'), $parts); 367 }test.php https://github.com/ghickman/Trackr.git | PHP | 183 lines
9 * 10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> 11 * Copyright 2005-2008, Cake Software Foundation, Inc. 19 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. 20 * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests 21 * @package cake 87if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) { 88 trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR); 89} 126 include CAKE_TESTS_LIB . 'simpletest.php'; 127 CakePHPTestSuiteFooter(); 128 exit(); 135 if (!extension_loaded('xdebug')) { 136 CakePHPTestHeader(); 137 include CAKE_TESTS_LIB . 'xdebug.php';Ftp.php https://bitbucket.org/rluks/projectmanager.git | PHP | 232 lines
1<?php 2 56 if (!extension_loaded('ftp')) { 57 throw new Exception('PHP extension FTP is not loaded.'); 58 } 120 if (!$silent && $errorMsg !== NULL) { 121 if (ini_get('html_errors')) { 122 $errorMsg = html_entity_decode(strip_tags($errorMsg));InstallController.php https://gitlab.com/lcp0578/simpleforum.git | PHP | 294 lines
55 if (version_compare(PHP_VERSION, '4.3', '<')) { 56 echo 'php版本过低,请先安装php4.3以上版本'; 57 exist; 90 'mandatory' => true, 91 'condition' => version_compare(PHP_VERSION, '5.4.0', '>='), 92 'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>', 176 // PHP ini : 177 'phpExposePhp' => array( 178 'name' => 'php.ini的expose_php设值', 179 'mandatory' => false, 180 'condition' => $requirementsChecker->checkPhpIniOff("expose_php"), 181 'by' => '安全问题', 201 'condition' => extension_loaded('mbstring'), 202 'by' => '<a href="http://www.php.net/manual/en/book.mbstring.php">Multibyte string</a> processing', 203 'memo' => ''WebInstallerLanguage.php https://bitbucket.org/andersus/querytalogo.git | PHP | 123 lines
1<?php 2/** 33 $languages = Language::fetchLanguageNames(); 34 $lifetime = intval( ini_get( 'session.gc_maxlifetime' ) ); 35 if ( !$lifetime ) { 35 if ( !$lifetime ) { 36 $lifetime = 1440; // PHP default 37 }ErrorHandlerTest.php https://bitbucket.org/Kamor/nexway.git | PHP | 250 lines
1<?php 2 21 */ 22class ErrorHandlerTest extends \PHPUnit_Framework_TestCase 23{ 36 $this->errorReporting = error_reporting(E_ALL | E_STRICT); 37 $this->displayErrors = ini_get('display_errors'); 38 ini_set('display_errors', '1'); 114 $handler = ErrorHandler::register(0); 115 $this->assertFalse($handler->handle(0, 'foo', 'foo.php', 12, array())); 116 119 $handler = ErrorHandler::register(3); 120 $this->assertFalse($handler->handle(4, 'foo', 'foo.php', 12, array())); 121 125 try { 126 $handler->handle(111, 'foo', 'foo.php', 12, array()); 127 } catch (\ErrorException $e) {mainfile.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
43 44$sys_info['disable_functions'] = ( ini_get( "disable_functions" ) != "" and ini_get( "disable_functions" ) != false ) ? array_map( 'trim', preg_split( "/[\s,]+/", ini_get( "disable_functions" ) ) ) : array(); 45if ( extension_loaded( 'suhosin' ) ) 50 51require_once ( realpath( NV_ROOTDIR . "/install/config.php" ) ); 52 55//Ket noi voi cac file constants, config, timezone 56require_once ( NV_ROOTDIR . "/includes/constants.php" ); 57require_once ( NV_ROOTDIR . '/includes/timezone.php' ); 87//Ket noi voi cac file cau hinh, function va template 88require_once ( NV_ROOTDIR . "/install/ini.php" ); 89require_once ( NV_ROOTDIR . '/includes/functions.php' ); 153define( 'NV_DOCUMENT_ROOT', $nv_Request->doc_root ); // D:/AppServ/www 154define( 'NV_EOL', ( strtoupper( substr( PHP_OS, 0, 3 ) == 'WIN' ) ? "\r\n" : ( strtoupper( substr( PHP_OS, 0, 3 ) == 'MAC' ) ? "\r" : "\n" ) ) ); //Ngat dong 155define( 'NV_UPLOADS_REAL_DIR', NV_ROOTDIR . '/' . NV_UPLOADS_DIR ); //Xac dinh duong dan thuc den thu muc uploadfunctions_install.php https://code.google.com/p/phpbbex/ | PHP | 448 lines
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} 151 global $phpbb_root_path, $phpEx; 152 require($phpbb_root_path . 'includes/db/db_tools.' . $phpEx); 153 } 167{ 168 global $phpbb_root_path, $phpEx, $config, $lang; 169 174 // Include the DB layer 175 include($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx); 176 } 190 // Make sure we don't have a daft user who thinks having the SQLite database in the forum directory is a good idea 191 if ($dbms_details['DRIVER'] == 'sqlite' && stripos(phpbb_realpath($dbhost), phpbb_realpath('../')) === 0) 192 {NoEmptyStatementFixerTest.php git://github.com/fabpot/PHP-CS-Fixer.git | PHP | 615 lines
1<?php 2 3/* 4 * This file is part of PHP CS Fixer. 5 * 36 array( 37 '<?php 38 abstract class TestClass0 extends Test IMPLEMENTS TestInterface, TestInterface2 41 ', 42 '<?php 43 abstract class TestClass0 extends Test IMPLEMENTS TestInterface, TestInterface2 48 array( 49 '<?php 50 abstract class TestClass1 EXTENDS Test implements TestInterface 53 ', 54 '<?php 55 abstract class TestClass1 EXTENDS Test implements TestInterfaceFile.php git://github.com/moodle/moodle.git | PHP | 187 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')) {admin_troubleshooting.php https://code.google.com/p/evedev-kb/ | PHP | 144 lines
1<?php 2/** 5 6require_once('common/admin/admin_menu.php'); 7 57$url = 'http://www.evekb.org/'; 58if (ini_get('allow_url_fopen')) 59{ 113 114$sections['PHP'] = 'PHP'; 115 115 116$phpver = 'PHP version: ' . phpversion(); 117 118$html = "$phpver <br />"; 119if(phpversion() >= "5.1.2") $trouble['PHP'][] = array('passed'=>true, 'text'=> $html); 120else $trouble['PHP'][] = array('passed'=>false, 'text'=> $html);utility_api.php git://pkgs.fedoraproject.org/mantis | PHP | 257 lines
1<?php 2# MantisBT - a php based bugtracking system 74/** 75 * Get the named php ini variable but return it as a bool 76 * @param string $p_name 79 */ 80function ini_get_bool( $p_name ) { 81 $result = ini_get( $p_name ); 105/** 106 * Get the named php.ini variable but return it as a number after converting 107 * the giga (g/G), mega (m/M) and kilo (k/K) postfixes. These postfixes do not 108 * adhere to IEEE 1541 in that k=1024, not k=1000. For more information see 109 * http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes 110 * @param string $p_name Name of the configuration option to read. 113 */ 114function ini_get_number( $p_name ) { 115 $t_value = ini_get( $p_name );requirements.php https://bitbucket.org/kujiorpamm/zhkh-aktau.git | 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 ),images.php https://github.com/fauxparse/jesters.git | PHP | 155 lines
1<?php 2 $path_to_cache = 'xml_cache/images'; 15 if (!defined('PATH_SEPARATOR') ) { 16 define('PATH_SEPARATOR', ( substr(PHP_OS, 0, 3) == 'WIN' ) ? ';' : ':'); 17 } 19 20 ini_set('include_path', ini_get('include_path') . $sep . dirname(__FILE__) . '/inc/data' . $sep . dirname(__FILE__) . '/config'); 21 21 22 require('conf.php'); 23 require('connect.php'); 23 require('connect.php'); 24 require('ent2ncr.php'); 25 require('find_self.php'); 36 $self = get_self(); 37 $self = str_replace('images.php', '', $self); 38 $self = str_replace('www.', '', $self);mailaliases.php https://gitlab.com/oslc-cm-server/olbergers-ff5-oslc.git | PHP | 207 lines
1#! /usr/bin/php4 -f 2<?php 27 28require ('squal_pre.php'); 29require ('common/include/cron_utils.php'); 53// You should also modify this to the correct PHP path and extra configuration (if needed) 54$php_command = "/usr/bin/php -d include_path=".ini_get("include_path"); 55 104 105 $gforge_aliases[$forname] = '"|'.$php_command." ".$path_to_cronjobs."/forum_gateway.php ".db_result($resforum,$forres,'unix_group_name')." ".strtolower(db_result($resforum,$forres,'forum_name')).'"'; 106 } 133 134 $gforge_aliases[$trackername] = '"|'.$php_command." ".$path_to_cronjobs."/tracker_gateway.php ".db_result($restracker,$forres,'unix_group_name')." ".strtolower(db_result($restracker,$forres,'group_artifact_id')).'"'; 135 }NativeSessionStorageTest.php git://github.com/symfony/symfony.git | PHP | 293 lines
1<?php 2 13 14use PHPUnit\Framework\TestCase; 15use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag; 132 $this->assertEquals(11, $storage->getBag('attributes')->get('legs')); 133 $this->assertEquals($lifetime, ini_get('session.cookie_lifetime')); 134 } 158 new NativeSessionStorage(); 159 $this->assertEquals('', ini_get('session.cache_limiter')); 160 } 166 new NativeSessionStorage(['cache_limiter' => 'public']); 167 $this->assertEquals('public', ini_get('session.cache_limiter')); 168 } 179 180 if (\PHP_VERSION_ID >= 70300) { 181 $options['cookie_samesite'] = 'lax';ExceptionHandler.php https://bitbucket.org/programmerlab/ourteam.co.in.git | PHP | 171 lines
1<?php 2/** 22 * 23 * @param \Exception|\Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page. 24 * 30 { 31 $expectedClass = PHP_MAJOR_VERSION >= 7 ? '\Throwable' : '\Exception'; 32 $isException = $error instanceof $expectedClass; 33 34 // In PHP 5, the $error object should be an instance of \Exception; PHP 7 should be a Throwable implementation 35 if ($isException) 66 { 67 $app->redirect('index.php'); 68 } 153 // Make sure we do not display sensitive data in production environments 154 if (ini_get('display_errors')) 155 {sessioncheck.php https://bitbucket.org/bittercreek_projects/supportworks.git | PHP | 319 lines
1<?php //-- start php session 2@session_start(); 51 create_submit_form("index.php?errorid=1702", "_self"); 52 //document.location.href="index.php?errormsg=Your Supportworks session has expired or is invalid. Please log on again."; 53 } 54 </script> 55 <?php } 56 exit; 168 opener.create_submit_form("index.php?errorid=1702", "_self"); 169 //opener.location.href="<?php echo $strDest;?>index.php?errormsg=6Your Supportworks session has expired or is invalid. Please log on again"; 170 self.close(); 178 <body> 179 <p>Please go <a href="index.php">here</a>.</p> 180 </body> 226 alert("Your Supportworks session has expired or is invalid. Please log on again"); 227 opener.location.href="<?php echo $_SESSION['www_portalroot'];?>index.php?errorid=17021234"; 228 self.close();sfSessionStorage.class.php https://bitbucket.org/suntiser/mfec_php_test.git | PHP | 187 lines
1<?php 2 41 * * session_cookie_secure: Cookie secure 42 * * session_cookie_httponly: Cookie http only (only for PHP >= 5.2) 43 * 75 76 if (!(boolean) ini_get('session.use_cookies') && $sessionId = $this->options['session_id']) 77 {dbase.php https://github.com/sfsergey/knowledgetree.git | PHP | 225 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */ 3// +----------------------------------------------------------------------+ 4// | PHP Version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2004 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 2.02 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available at through the world-wide-web at | 11// | http://www.php.net/license/2_02.txt. | 12// | If you did not receive a copy of the PHP license and are unable to | 13// | obtain it through the world-wide-web, please send a note to | 14// | license@php.net so we can mail you a copy immediately. | 15// +----------------------------------------------------------------------+function.openssl-pkcs7-encrypt.html git://pkgs.fedoraproject.org/kdewebdev | HTML | 277 lines
8REL="HOME" 9TITLE="PHP Manual" 10HREF="index.html"><LINK 40ALIGN="center" 41>PHP Manual</TH 42></TR 82><P 83> (PHP 4 >= 4.0.6)</P 84>openssl_pkcs7_encrypt -- Encrypt an S/MIME message</DIV 170><PRE 171CLASS="php" 172>// the message you want to encrypt and send to your secret agent 200 // message encrypted - send it! 201 exec(ini_get("sendmail_path") . " < enc.txt"); 202}</PREpath.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 257 lines
1<?php 2/** 12/** boolean True if a Windows based host */ 13define('JPATH_ISWIN', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')); 14 15/** boolean True if a Mac based host */ 16define('JPATH_ISMAC', (strtoupper(substr(PHP_OS, 0, 3)) === 'MAC')); 17 183 * @param string Path to check ownership 184 * @return boolean True if the php script owns the path passed 185 * @since 11.1 192 $tmp = md5(JUserHelper::genRandomPassword(16)); 193 $ssp = ini_get('session.save_path'); 194 $jtp = JPATH_SITE.DS.'tmp';index.php https://bitbucket.org/nando123/iamperform.git | PHP | 318 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 37 */ 38if( ! ini_get('date.timezone') ) 39{ 78 ini_set('display_errors', 0); 79 if (version_compare(PHP_VERSION, '5.3', '>=')) 80 { 142 * 143 * Normally you will set your default controller in the routes.php file. 144 * You can, however, force a custom routing by hard-coding a 174 * config class when initialized. This allows you to set custom config 175 * items or override any default config values found in the config.php file. 176 * This can be handy as it permits you to share one application betweenLoggerAppenderMailEvent.php https://code.google.com/p/vtiger-ru-fork/ | PHP | 170 lines
1<?php 2/** 2/** 3 * log4php is a PHP port of the log4j java logging package. 4 * 9 * 10 * <p>PHP port, extensions and modifications by VxR. All rights reserved.<br> 11 * For more information, please see {@link http://www.vxr.it/log4php/}.</p> 15 * 16 * @package log4php 17 * @subpackage appenders 22 */ 23if (!defined('LOG4PHP_DIR')) define('LOG4PHP_DIR', dirname(__FILE__) . '/..'); 24 26 */ 27require_once(LOG4PHP_DIR . '/LoggerAppenderSkeleton.php'); 28require_once(LOG4PHP_DIR . '/LoggerLog.php');librarygenerator.php git://github.com/TheFrozenFire/PHP-Mindbody-API-Library.git | PHP | 173 lines
47 $file = $dest . '/' . $name . '.php'; 48 $code = '<?php' . PHP_EOL . $code . PHP_EOL . '?>'; 49 file_put_contents($file, $code); 61if(!class_exists("ReflectionClass")) die("Reflection is required for this script to function."); 62if(!is_includeable("wsdl2php.php")) die("wsdl2php is required for this script to function."); 63 91// Fix for MBO API 0.5 naming clusterfsck 92if(file_exists("wsdl2phpoutput/Class_x0020_Service.php")) { 93 $file = file_get_contents("wsdl2phpoutput/Class_x0020_Service.php"); 124EOD; 125 $file = str_replace("<?php\nclass", "<?php\nnamespace MindbodyAPI\\services;use MindbodyAPI\\structures;\nclass", $file); 126 $file = str_replace($oldServiceName, $serviceName, $file); 159 160include_once("PHP/Beautifier.php"); 161if(class_exists('PHP_Beautifier')) {PdoSessionHandlerTest.php git://github.com/symfony/symfony.git | PHP | 401 lines
1<?php 2 13 14use PHPUnit\Framework\TestCase; 15use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler; 149 { 150 if (filter_var(ini_get('session.use_strict_mode'), FILTER_VALIDATE_BOOLEAN)) { 151 $this->markTestSkipped('Strict mode needs no locking for new sessions.');AbstractGateway.php https://bitbucket.org/tecsecret/central-tecsecret.git | PHP | 58 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?> 29DW+GxL6dgr+plwV0SiaQpiwhkHfhR7xHZeJwBcjXl4HH6X0KINjCSU+envoUGT0b88O19tfzj4dA 30X7ozoxcDnmzyDzBx1T/Hh/JF/adcAeNlY3bHN58qtRDPu5prYR+6n6jHsjQefhi5d+Zsywb3wPHp 31/zoRTRi7yAdSqSBywM301QyjmApP4QnRNOleIyaBcMvo3uCKeVzK0Y7Gjb/FjI+UrZXxpCPFGA65 33GmIw+MvdFlmE2wWsXTydmuyGvNIiCQh/6t6bdea0RUQAjbWUeYHwrLEUz8OkVpTXKiJ1cyKUapeA 34TboVQGgBI5MHTKjOLfpv7xSG0uYXKci0b/Hxu+KPkphPKv9AYETrCONS9BBAW5jA29aH2R7aA3Xu 35X3fIMyRZVEm+tS3CqU2GHUi1u/WA1k3L5d1gjth//75DpprLtk6ODyX7haQgE1qsdedHRe2S8wQQLoader.php https://bitbucket.org/francesca_anni/blog-concept-sesta.git | PHP | 342 lines
1<?php 2 132 public function get_loader() { 133 $open_basedir = ini_get('open_basedir'); 134 $paths = array_merge($this->locations, array($open_basedir ? ABSPATH : '/'));index.php http://phpshop.googlecode.com/svn/trunk/ | PHP | 371 lines
3// 4// This source file is part of phpShop(R). 5// 20 21// $Id: index.php,v 1.1.1.1 2004/07/27 14:58:07 pablo Exp $ 22 37if (!get_magic_quotes_gpc()) { 38 die("You must enable magic_quotes_gpc in php.ini in order to run phpShop. Read <a href=\"http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc\"> the docs</a>."); 39} 59 $HTTP_COOKIE_VARS = $_COOKIE; 60 $PHP_SELF = $_SERVER["PHP_SELF"]; 61 $SERVER_NAME = $_SERVER["SERVER_NAME"]; 72} else { 73 //http://de.php.net/manual/de/function.import-request-variables.php 74 //if you're stuck using a pre-4.10 version of phpDebug.php git://github.com/osCommerce/oscommerce.git | PHP | 83 lines
1<?php 2/** 42 43 if ( (SERVICE_DEBUG_CHECK_SESSION_AUTOSTART == '1') && (bool)ini_get('session.auto_start') ) { 44 $OSCOM_MessageStack->add('debug', OSCOM::getDef('warning_session_auto_start'), 'warning');api.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 187 lines
1<?php 2if (!defined('IN_ASSIS_SERVICE')) exit(); 2if (!defined('IN_ASSIS_SERVICE')) exit(); 3require_once(CORE_DIR.'/func_ext.php'); 4require_once(CORE_DIR.'/include/shopCore.php'); 28if (!empty($redirect) && !empty($token)){ 29 $token_file = AS_TMP_DIR . 'astoken.php'; 30 if (file_exists($token_file)) include($token_file); 58 59require_once(AS_DIR.'/lib/LogUtils.php'); 60require_once(AS_DIR.'/lib/GeneralFunc.php'); 60require_once(AS_DIR.'/lib/GeneralFunc.php'); 61require_once(AS_DIR.'/lib/nudime.php'); 62require_once(AS_DIR.'/lib/ServerUtils.php'); 62require_once(AS_DIR.'/lib/ServerUtils.php'); 63require_once(AS_DIR.'/lib/TextUtils.php'); 64require_once(AS_DIR.'/lib/BaseService.php');CSV.php git://github.com/jasonhinkle/phreeze.git | PHP | 415 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 44 */ 45class PHPExcel_Reader_CSV extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 234 /** 235 * Loads PHPExcel from file into PHPExcel instance 236 * 237 * @param string $pFilename 238 * @param PHPExcel $objPHPExcel 239 * @return PHPExcel 241 */ 242 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 243 {LoadEnv.php https://bitbucket.org/martijnjager/classloader.git | PHP | 178 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: marti 35 // Read file into an array of lines with auto-detected line endings 36 $autodetect = ini_get('auto_detect_line_endings'); 37 ini_set('auto_detect_line_endings', '1'); 58 59 // If PHP is running as an Apache module and an existing 60 // Apache environment variable exists, overwrite itzend_ini_parser.y https://github.com/php/php-src.git | Happy | 413 lines
16 +----------------------------------------------------------------------+ 17 | Authors: Zeev Suraski <zeev@php.net> | 18 | Jani Taskinen <jani@php.net> | 138 139/* {{{ zend_ini_get_constant() */ 140static void zend_ini_get_constant(zval *result, zval *name) 165 166/* {{{ zend_ini_get_var() */ 167static void zend_ini_get_var(zval *result, zval *name) 203#ifdef ZEND_WIN32 204 syslog(LOG_ALERT, "PHP: %s (%s)", error_buf, GetCommandLine()); 205#endif 205#endif 206 fprintf(stderr, "PHP: %s", error_buf); 207 } else {mainfile.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 168 lines
43 44$sys_info['disable_functions'] = ( ini_get( "disable_functions" ) != "" and ini_get( "disable_functions" ) != false ) ? array_map( 'trim', preg_split( "/[\s,]+/", ini_get( "disable_functions" ) ) ) : array(); 45$sys_info['ini_set_support'] = ( function_exists( 'ini_set' ) and ! in_array( 'ini_set', $sys_info['disable_functions'] ) ) ? true : false; 51//Ket noi voi cac file constants, config, timezone 52require_once ( NV_ROOTDIR . "/includes/constants.php" ); 53require_once ( NV_ROOTDIR . '/includes/timezone.php' ); 78//Ket noi voi class Error_handler 79require_once ( NV_ROOTDIR . '/includes/class/error.class.php' ); 80$ErrorHandler = new Error( $global_config ); 84require_once ( NV_ROOTDIR . "/install/ini.php" ); 85require_once ( NV_ROOTDIR . '/includes/functions.php' ); 86require_once ( NV_ROOTDIR . '/includes/core/theme_functions.php' ); 149define( 'NV_DOCUMENT_ROOT', $nv_Request->doc_root ); // D:/AppServ/www 150define( 'NV_EOL', ( strtoupper( substr( PHP_OS, 0, 3 ) == 'WIN' ) ? "\r\n" : ( strtoupper( substr( PHP_OS, 0, 3 ) == 'MAC' ) ? "\r" : "\n" ) ) ); //Ngat dong 151define( 'NV_UPLOADS_REAL_DIR', NV_ROOTDIR . '/' . NV_UPLOADS_DIR ); //Xac dinh duong dan thuc den thu muc uploadActiveSessionTest.php http://creovel.googlecode.com/svn/trunk/ | PHP | 128 lines
1<?php 2/** 11 **/ 12require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'env.php'; 13 13 14class ActiveSessionTest extends PHPUnit_Framework_TestCase 15{ 34 35 $this->drop_db_sql = "DROP DATABASE IF EXISTS `phpunit`;"; 36 $this->create_db_sql = "CREATE DATABASE `phpunit`;"; 36 $this->create_db_sql = "CREATE DATABASE `phpunit`;"; 37 $this->select_db_sql = "USE `phpunit`;"; 38 $this->drop_table_sql = "DROP TABLE IF EXISTS `".ActiveSession::$_table_name_."`;"; 47 48 $this->session_id = 'PHPUNIT'.time(); 49 $this->session_val = 'test data';regservices.class.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 125 lines
1<?php 2/** 120 return $form->sendresult($url, array( 121 ini_get('session.name') => $service->session_id 122 ));