100+ results results for 'php ini_set' (299 ms)
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');noutrace.class.php https://bitbucket.org/lordgnu/xdebug-trace-gui.git | PHP | 443 lines
1<?php 2 20 $this->traceFormat = ini_get('xdebug.trace_format'); 21 ini_set('xdebug.auto_trace', 'Off'); 22 } 154 /** 155 * recuperem la llista de funcions, les pròpies de PHP hi 156 * seran sota ['internal'] 208 { 209 throw new Exception("xdebug.trace_format in /etc/php5/conf.d/xdebug.ini must be 1"); 210 } 348 echo '<span class="line">'; 349 echo "<a href='trace-code.php?file={$jData[8]}&line={$jData[9]}' target='trace-code'>$jData[9]</a>"; 350 echo "</span>";install.php https://bitbucket.org/hudsonite/concrete5.git | PHP | 337 lines
79 protected function testAndRunInstall() { 80 if (file_exists(DIR_CONFIG_SITE . '/site_install_user.php')) { 81 require(DIR_CONFIG_SITE . '/site_install.php'); 110 $phpVmin = '5.2.4'; 111 if (version_compare(PHP_VERSION, $phpVmin, '>=')) { 112 $phpVtest = true; 116 $this->set('phpVmin',$phpVmin); 117 $this->set('phpVtest',$phpVtest); 118 } 224 public function reset() { 225 // remove site.php so that we can try again ? 226 return; 229 } 230 if (file_exists(DIR_CONFIG_SITE . '/site_install.php')) { 231 unlink(DIR_CONFIG_SITE . '/site_install.php');trax.php https://github.com/phpontrax/trax.git | PHP | 284 lines
32 * @todo Document this class 33 * @package PHPonTrax 34 */ 86 87 if(substr(PHP_OS, 0, 3) == 'WIN') { 88 # Windows 111 ini_set("log_errors", "On"); 112 ini_set("error_log", self::$log_path."/".TRAX_ENV.".log"); 113 174 TRAX_LIB_ROOT, # trax libs (vendor/trax or server trax libs) 175 PHP_LIB_ROOT, # php libs dir (ex: /usr/local/lib/php) 176 self::$lib_path, # app specific libs extra libs to include 234 } else { 235 throw new Exception("Your php install must support spl_autoload_register"); 236 }wp-settings-cli.php https://gitlab.com/clakeb/wp-cli | PHP | 366 lines
1<?php 2/** 2/** 3 * A modified version of wp-settings.php, tailored for CLI use. 4 */ 15// Include files required for initialization. 16require( ABSPATH . WPINC . '/load.php' ); 17require( ABSPATH . WPINC . '/default-constants.php' ); 17require( ABSPATH . WPINC . '/default-constants.php' ); 18require( ABSPATH . WPINC . '/version.php' ); 19 42// Load WP-CLI utilities 43require WP_CLI_ROOT . '/php/utils-wp.php'; 44 358 * 359 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for 360 * users not logged in.abstract-wc-csv-exporter.php https://bitbucket.org/babinkochana/triptrills.git | PHP | 487 lines
173 if ( function_exists( 'gc_enable' ) ) { 174 gc_enable(); // phpcs:ignore PHPCompatibility.PHP.NewFunctions.gc_enableFound 175 } 178 } 179 @ini_set( 'zlib.output_compression', 'Off' ); // @codingStandardsIgnoreLine 180 @ini_set( 'output_buffering', 'Off' ); // @codingStandardsIgnoreLine 237 $export_row = array(); 238 $buffer = fopen( 'php://output', 'w' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_fopen 239 ob_start(); 270 $data = $this->get_data_to_export(); 271 $buffer = fopen( 'php://output', 'w' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_fopen 272 ob_start(); 466 * 467 * @see https://bugs.php.net/bug.php?id=43225 468 * @see https://bugs.php.net/bug.php?id=50686Application.php git://github.com/centurion-project/Centurion.git | PHP | 405 lines
1<?php 2/** 67 * 68 * Initialize application. Potentially initializes include_paths, PHP 69 * settings, and bootstrap class. 79 80 require_once 'Zend/Loader/Autoloader.php'; 81 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 144 if (!empty($options['phpsettings'])) { 145 $this->setPhpSettings($options['phpsettings']); 146 } 253 /** 254 * Set PHP configuration settings 255 * 259 */ 260 public function setPhpSettings(array $settings, $prefix = '') 261 {standalone.php https://github.com/Gninety/Microweber.git | PHP | 400 lines
5* @copyright Copyright (C) 2007 Open Source Matters. All rights reserved. 6* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 7* Joomla! is free software. This version may have been modified pursuant 22if (version_compare( phpversion(), '5.0' ) < 0) { 23 require_once( dirname( __FILE__ ) . '/compat.php50x.php' ); 24} 39if( empty( $_SERVER['PHP_SELF'])) { 40 $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME']; 41} 67 if( !@is_writable(ini_get('session.save_path')) && ini_get('session.save_handler') == 'files') { 68 ini_set('session.save_path', realpath( dirname( __FILE__ ).'/../ftp_tmp') ); 69 } 282 $do_gzip_compress = FALSE; 283 $phpver = phpversion(); 284 $useragent = extGetParam( $_SERVER, 'HTTP_USER_AGENT', '' );class-wp-image-editor-imagick.php https://gitlab.com/haque.mdmanzurul/soundkreationsfinal | PHP | 516 lines
1<?php 2/** 9/** 10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module 11 * 47 48 if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) ) 49 return false; 124 /** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */ 125 // Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits 126 @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 476 477 /** This filter is documented in wp-includes/class-wp-image-editor-gd.php */ 478 return array(Feed.php https://github.com/m4n3z40/WeLearn.git | PHP | 411 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 86 */ 87 require_once 'Zend/Http/Client.php'; 88 self::$_httpClient = new Zend_Http_Client(); 175 */ 176 require_once 'Zend/Feed/Exception.php'; 177 throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus()); 196 if (trim($string) == '') { 197 require_once 'Zend/Feed/Exception.php'; 198 throw new Zend_Feed_Exception('Document/string being imported' 218 */ 219 require_once 'Zend/Feed/Exception.php'; 220 throw new Zend_Feed_Exception($errormsg);Feed.php https://github.com/basdog22/Qool.git | PHP | 411 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Feed.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 86 */ 87 require_once 'Zend/Http/Client.php'; 88 self::$_httpClient = new Zend_Http_Client(); 175 */ 176 require_once 'Zend/Feed/Exception.php'; 177 throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus()); 196 if (trim($string) == '') { 197 require_once 'Zend/Feed/Exception.php'; 198 throw new Zend_Feed_Exception('Document/string being imported' 218 */ 219 require_once 'Zend/Feed/Exception.php'; 220 throw new Zend_Feed_Exception($errormsg);community.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 132 lines
5<?php 6ini_set("user_agent",NAME. " (PHPlist version ".VERSION.")"); 7ini_set("default_socket_timeout",5); 47<input type="hidden" name="business" value="donate@phplist.com"> 48<input type="hidden" name="item_name" value="phplist version <?php echo VERSION?> for <?php echo $_SERVER['HTTP_HOST']?>"> 49<input type="hidden" name="no_note" value="1"> 83you can <b>commission new features</b> that are paid for by your clients. If you want to know 84how much it would be to add features to PHPlist, <a href="mailto:phplist2@tincan.co.uk?subject=request for quote to change PHPlist">get in touch</a>. 85Most of the new features of PHPlist are added by request from paying clients. This will benefit 98<p><b><a name="bugtrack"></a>Mantis</b><br/> 99<a href="http://mantis.tincan.co.uk/" target="_blank">Mantis</a> is the place to report issues you find with phplist. Your issue can be be anything related to phplist, comments and suggestions how to improve it or reports of a bug. If you report a bug, make sure to include as much information as possible to facilitate the developers in solving the problem.</p> 100<p>The minimum requirements for reporting a bug are your system details:</p> 111<li>PHPlist version: <?php echo VERSION?></li> 112<li>PHP version: <?php echo phpversion()?></li> 113<li>Browser: <?php echo $_SERVER['HTTP_USER_AGENT']?></li>admin.php https://bitbucket.org/seyar/kinda.local.git | PHP | 438 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2 42 { 43 ini_set('session.gc_maxlifetime', 12*60*60); 44font_coverage.php https://github.com/andrerezende/CENSO.git | PHP | 255 lines
1<?php 2 5 Point your browser to 6 http://your.domain/your_path_to _mpdf/utils/font_coverage.php 7 By default this will examine the folder /ttfonts/ (or the default font 22set_time_limit(600); 23ini_set("memory_limit","256M"); 24 26//============================================================== 27include("../mpdf.php"); 28 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//==============================================================lib.inc.php https://github.com/mterenzio/FollowThis.git | PHP | 263 lines
20 21 // PostgreSQL and PHP minimum version 22 $postgresqlMinVer = '7.4'; 22 $postgresqlMinVer = '7.4'; 23 $phpMinVer = '5.0'; 24 25 // Check the version of PHP 26 if (version_compare(phpversion(), $phpMinVer, '<')) 27 exit(sprintf('Version of PHP not supported. Please upgrade to version %s or later.', $phpMinVer)); 34 else { 35 echo 'Configuration error: Copy conf/config.inc.php-dist to conf/config.inc.php and edit appropriately.'; 36 exit; 40 // the app will refuse to run. This and $conf['version'] should be incremented whenever 41 // backwards incompatible changes are made to config.inc.php-dist. 42 $conf['base_version'] = 16;TemplateController.php https://bitbucket.org/kdms/sh-magento.git | PHP | 199 lines
1<?php 2/** 124 public function runApplyAction() { 125// @ini_set('max_execution_time', 1800); 126// @ini_set('memory_limit', 734003200);shp.php https://bitbucket.org/graaaf/garant.git | PHP | 426 lines
1<?php 2/** 2/** 3 * ESRI Shape file import plugin for phpMyAdmin 4 * 4 * 5 * @package PhpMyAdmin-Import 6 * @subpackage ESRI_Shape 7 */ 8if (! defined('PHPMYADMIN')) { 9 exit; 26 if ((int) ini_get('memory_limit') < 512) { 27 @ini_set('memory_limit', '512M'); 28 } 33 set_include_path(get_include_path() . PATH_SEPARATOR . getcwd() . '/libraries/bfShapeFiles/'); 34 include_once './libraries/bfShapeFiles/ShapeFile.lib.php'; 35S3QL.php https://github.com/drobbins/s3db.git | PHP | 286 lines
5 #S3QL.php?query=<select>rules</select><where><project_id>xxx</project_id><where> 6 #S3QL.php?query=<select>items</select><where><project_id>xxx</project_id><lass_id>yyy</class_id><where> 7 #http://s3db.org/documentation 10 11ini_set('display_errors',0); 12if($_REQUEST['su3d']) 18 19if(file_exists('config.inc.php')) 20 { 32#When the key goes in the header URL, no need to read the xml, go directly to the file 33include_once(S3DB_SERVER_ROOT.'/dbstruct.php'); 34include_once(S3DB_SERVER_ROOT.'/s3dbcore/display.php'); 53 54include_once('s3ql.header.php');#core.header.php manages all the user authentication 55 $format = ($s3ql['format']!='')?$s3ql['format']:$_REQUEST['format'];item.php https://github.com/drobbins/s3db.git | PHP | 228 lines
1<?php 2 #instance.php displays all statements in a certain instance and links to create more 3 #Helena F Deus (helenadeus@gmail.com) 4 ini_set('display_errors',0); 5 if($_REQUEST['su3d']) 5 if($_REQUEST['su3d']) 6 ini_set('display_errors',1); 7 13 14 if(file_exists('config.inc.php')) 15 { 15 { 16 include('config.inc.php'); 17 } 33 34include_once('core.header.php'); 35google.php https://gitlab.com/asosab/ws-geo | PHP | 250 lines
1<?php 2require_once $_SERVER["DOCUMENT_ROOT"] ."/controlador/color.php"; 2require_once $_SERVER["DOCUMENT_ROOT"] ."/controlador/color.php"; 3require_once $_SERVER["DOCUMENT_ROOT"] . '/servicios/geo/geo.php'; 4// require_once $_SERVER["DOCUMENT_ROOT"] . '/vendor/colors_of_image/colorsofimage.class.php'; 4// require_once $_SERVER["DOCUMENT_ROOT"] . '/vendor/colors_of_image/colorsofimage.class.php'; 5// if (!ini_get("auto_detect_line_endings")) ini_set("auto_detect_line_endings", '1'); 6//https://maps.google.com/maps/api/geocode/json?latlng=8.3650243,-62.6529962config.php https://gitlab.com/imxieke/XCloud | PHP | 106 lines
1<?php 2@date_default_timezone_set(@date_default_timezone_get()); 3@set_time_limit(600);//10min pathInfoMuti,search,upload,download... 4@ini_set('session.cache_expire',600); 5@ini_set("display_errors","on"); 9function P($path){return str_replace('\\','/',$path);} 10$web_root = str_replace(P($_SERVER['SCRIPT_NAME']),'',P(dirname(dirname(__FILE__))).'/index.php').'/'; 11if (substr($web_root,-10) == 'index.php/') {//解决部分主机不兼容问题 66 67include(FUNCTION_DIR.'web.function.php'); 68include(FUNCTION_DIR.'file.function.php'); 68include(FUNCTION_DIR.'file.function.php'); 69include(CLASS_DIR.'fileCache.class.php'); 70include(CONTROLLER_DIR.'util.php'); 70include(CONTROLLER_DIR.'util.php'); 71include(CORER_DIR.'Application.class.php'); 72include(CORER_DIR.'Controller.class.php');myartisan.php https://gitlab.com/pedramkousari/soratjalase | PHP | 110 lines
1<?php 2 if (@$_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest') { 5 if(strpos($_REQUEST['command'], 'composer') === 0) { 6 ini_set("memory_limit", "-1"); 7 set_time_limit(0); 7 set_time_limit(0); 8 $res = shell_exec("/usr/bin/php -dmemory_limit=2048M /usr/bin/" . @$_REQUEST['command'] . ' 2>&1'); 9 } elseif(strpos($_REQUEST['command'], 'artisan') === 0) { 9 } elseif(strpos($_REQUEST['command'], 'artisan') === 0) { 10 $res = shell_exec('/usr/bin/php -dmemory_limit=2048M ' . @$_REQUEST['command'] . ' 2>&1'); 11 } else {tidy.php https://github.com/socialplanning/oc-js.git | PHP | 179 lines
1<?php 2 /** This PHP file is intended for use with XMLHTTPRequest from Xinha 98 error_reporting(0); 99 ini_set('display_errors', false); 100 102 { 103 // PHP's urldecode doesn't understand %uHHHH for unicode 104 $_REQUEST['content'] = preg_replace('/%u([a-f0-9]{4,4})/ei', 'utf8_chr(0x$1)', $_REQUEST['content']); 161 ?> 162 {action:'setHTML',value:'<?php echo js_encode($content) ?>'}; 163 <?php 168 {action:'alert',value:'Tidy failed. Check your HTML for syntax errors.'}; 169 <?php 170 } 175 {action:'alert',value:"You don't have anything to tidy!"} 176 <?php 177 }index.php https://github.com/yetanotherx/webtools.git | PHP | 348 lines
1<?php 2//error_reporting(E_ALL); 2//error_reporting(E_ALL); 3ini_set("display_errors", 1); 4 6 7include( '/home/soxred93/public_html/common/header.php' ); 8include( '/home/soxred93/wikibot.classes.php' ); 8include( '/home/soxred93/wikibot.classes.php' ); 9include( '/home/soxred93/stats.php' ); 10include( '/home/soxred93/public_html/common/rfalib2.php'); 19//error_reporting(E_ALL); 20//ini_set("display_errors", 1); 21function pre( $array ) { 37 echo $msg; 38 include( '/home/soxred93/public_html/common/footer.php' ); 39 die();Parser.php https://gitlab.com/yousafsyed/easternglamor | PHP | 309 lines
1<?php 2/** 2/** 3 * This file is part of PHP Mess Detector. 4 * 4 * 5 * Copyright (c) 2008-2012, Manuel Pichler <mapi@phpmd.org>. 6 * All rights reserved. 36 * 37 * @author Manuel Pichler <mapi@phpmd.org> 38 * @copyright 2008-2014 Manuel Pichler. All rights reserved. 38 * @copyright 2008-2014 Manuel Pichler. All rights reserved. 39 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 40 */ 41 42namespace PHPMD; 43css.php https://github.com/yuiti/Bshe.git | PHP | 256 lines
1<?php 2 /* 91 $sCore = '/xajax_core'; 92 include_once($sRoot . $sCore . '/xajaxControl.inc.php'); 93 } 95 $sControls = '/xajax_controls'; 96 include_once($sRoot . $sControls . '/document.inc.php'); 97 include_once($sRoot . $sControls . '/content.inc.php'); 97 include_once($sRoot . $sControls . '/content.inc.php'); 98 include_once($sRoot . $sControls . '/group.inc.php'); 99 include_once($sRoot . $sControls . '/form.inc.php'); 224 <td align='center' valign='top' width="50%"> 225 <div><?php $buttonLoadCSS1->printHTML(); ?><?php $buttonUnloadCSS1->printHTML(); ?></div> 226 <div><?php $buttonLoadCSS2->printHTML(); ?><?php $buttonUnloadCSS2->printHTML(); ?></div> 238 <div><?php $buttonLoadCSS1_Print->printHTML(); ?><?php $buttonUnloadCSS1_Print->printHTML(); ?></div> 239 <div><?php $buttonLoadCSS2_Print->printHTML(); ?><?php $buttonUnloadCSS2_Print->printHTML(); ?></div> 240 </td>profileinfo.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 328 lines
1<?php 2/** 27 28ini_set( 'zlib.output_compression', 'off' ); 29 31if ( isset( $_SERVER['MW_COMPILED'] ) ) { 32 require ( 'phase3/includes/WebStart.php' ); 33} else { 33} else { 34 require ( dirname( __FILE__ ) . '/includes/WebStart.php' ); 35} 72<body> 73<?php 74 140 <tr> 141 <td class="name" style="padding-left: <?php echo $indent ?>em;"> 142 <?php echo htmlspecialchars( $this->name() ) . $extet ?>index.php https://gitlab.com/Illprotectyew/xlt | PHP | 301 lines
1<?php 2/** 18 */ 19include "vendor/autoload.php"; 20 80 error_reporting(-1); 81 ini_set('display_errors', 1); 82 break; 84 case 'production': 85 ini_set('display_errors', 0); 86 if (version_compare(PHP_VERSION, '5.3', '>=')) 149 * 150 * Normally you will set your default controller in the routes.php file. 151 * You can, however, force a custom routing by hard-coding a 180 * config class when initialized. This allows you to set custom config 181 * items or override any default config values found in the config.php file. 182 * This can be handy as it permits you to share one application betweenabm.php https://bitbucket.org/elulice/gestionar.git | PHP | 341 lines
1<?php 2 2 3ini_set("post_max_size", "10M"); 4include("clases/framework-1.0/class.bd.php"); 4include("clases/framework-1.0/class.bd.php"); 5include("clases/framework-1.0/class.abm.php"); 6include("includes/funciones.php"); 6include("includes/funciones.php"); 7//ini_set("expect.timeout", 180); 8Repl.php https://github.com/sethwalker/php_repl.git | PHP | 380 lines
9 * 10 * @category PHP 11 * @package Repl 11 * @package Repl 12 * @author Ian Eure <ieure@php.net> 13 * @copyright 2009 Ian Eure. 17/** 18 * PHP_Repl 19 * 23 */ 24class PHP_Repl 25{ 55 $this->input = fopen('php://stdin', 'r'); 56 $this->rc_file = getenv('PHPREPLRC') ? getenv('PHPREPLRC') : 57 getenv('HOME') . '/.phpreplrc';privacy.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 266 lines
3 4ini_set("error_reporting", E_ALL & ~E_DEPRECATED); 5 include_once '../../vendor/autoload.php'; 185 <a href="../Destination_info/index_stand.php">Stand List</a> 186 <a href="trashed.php">Go to trashed page</a> 187 213 214 <li><a href="admin_edit_profile.php?id=<?php Info::info();?>" aling="right">Profile Settings</a></li></ul> 215 218<!-- <a href="logout.php?id=<?php Info::info();?>">Logout</a> 219 <a href="home_page.php?id=<?php Info::info();?>">Home</a> 220 <a href="account.php?id=<?php Info::info();?>">Profile Settings</a> 220 <a href="account.php?id=<?php Info::info();?>">Profile Settings</a> 221 <a href="profile.php?id=<?php Info::info();?>"> View Profile</a>--> 222 <div style="padding-left: 550px;padding-bottom: 0px">tidy.php https://github.com/railfrog/railfrog-archive.git | PHP | 179 lines
1<?php 2 /** This PHP file is intended for use with XMLHTTPRequest from an HTMLArea 98 error_reporting(E_NONE); 99 ini_set('display_errors', false); 100 102 { 103 // PHP's urldecode doesn't understand %uHHHH for unicode 104 $_REQUEST['content'] = preg_replace('/%u([a-f0-9]{4,4})/ei', 'utf8_chr(0x$1)', $_REQUEST['content']); 161 ?> 162 editor.setHTML('<?php echo js_encode($content) ?>'); 163 <?php 168 alert(this._lc('Tidy failed. Check your HTML for syntax errors.')); 169 <?php 170 } 175 alert(this._lc("You don't have anything to tidy!")); 176 <?php 177 }02types.php https://bitbucket.org/royrutto/climatepal.git | PHP | 173 lines
22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 105 ->setCellValue('B11', 'Date and Time') 106 ->setCellValue('C11', PHPExcel_Shared_Date::PHPToExcel( $dateTimeNow )); 107$objPHPExcel->getActiveSheet()->getStyle('C11')->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_DATE_DATETIME); 117$objPayable->getFont()->setItalic(true); 118$objPayable->getFont()->setColor( new PHPExcel_Style_Color( PHPExcel_Style_Color::COLOR_DARKGREEN ) ); 119 141 142$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); 143$objWriter->save(str_replace('.php', '.xlsx', __FILE__)); 155 156$objPHPExcel = PHPExcel_IOFactory::load(str_replace('.php', '.xlsx', __FILE__)); 157Console.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 294 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Console.php 16972 2009-07-22 18:44:24Z ralph $ 21 */ 25 */ 26//*** require_once 'Zend/Loader.php'; 27 30 */ 31//*** require_once 'Zend/Tool/Framework/Client/Abstract.php'; 32 35 */ 36//*** require_once 'Zend/Tool/Framework/Client/Console/ArgumentParser.php'; 37 40 */ 41//*** require_once 'Zend/Tool/Framework/Client/Interactive/InputInterface.php'; 42Framework.php https://bitbucket.org/paulscott56/c4-new.git | PHP | 234 lines
1<?php 2namespace C4\Core; 12use Monolog\Handler\StreamHandler; 13use Monolog\Handler\FirePHPHandler; 14use Doctrine\ORM\Tools\Setup; 40 $this->logger->pushHandler(new StreamHandler(__DIR__.'/../../../logging/System_Log.log', \Monolog\Logger::DEBUG)); 41 $this->logger->pushHandler(new FirePHPHandler()); 42 $this->logger->addInfo('My logger is now ready'); 125 /** 126 * Set PHP configuration settings 127 * 130 */ 131 public function setPhpSettings(array $settings) 132 { 134 if (is_scalar($value)) { 135 ini_set($key, $value); 136 }Core.class.php https://gitlab.com/adamlwalker/generatedata | PHP | 511 lines
1<?php 2 13 14 // overridable settings that the user may define in settings.php 15 private static $demoMode = false; 37 private static $releaseDate = "2014-09-06"; 38 private static $minimumPHPVersion = "5.3.0"; 39 private static $minimumMySQLVersion = "4.1.3"; 46 // left as public, because they're often modified / accessed, and it's just too fussy otherwise. The 47 // PHPDoc helps my IDE figure out what the hell each of them are 48 113 if (ini_get("date.timezone") == "") { 114 ini_set("date.timezone", "Canada/Vancouver"); 115 } 157 private static function loadSettingsFile() { 158 $settingsFilePath = realpath(__DIR__ . "/../../settings.php"); 159 if (file_exists($settingsFilePath)) {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 setting33chartcreate-stock.php https://gitlab.com/Zamal/My-Web2-php | PHP | 151 lines
8 9define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); 10 33 * @package PHPExcel 34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 35 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 42 43$objPHPExcel = new PHPExcel(); 44$objWorksheet = $objPHPExcel->getActiveSheet(); 107// Set the chart legend 108$legend = new PHPExcel_Chart_Legend(PHPExcel_Chart_Legend::POSITION_RIGHT, NULL, false); 109 135echo date('H:i:s') , " Write to Excel2007 format" , EOL; 136$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); 137$objWriter->setIncludeCharts(TRUE);Db.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 180 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 90 { 91 ini_set('max_execution_time', 0); 92 $sql = $this->getHeader();admin.php https://github.com/muskmelon/Greemo.git | PHP | 238 lines
105else 106 require(ABSPATH . 'wp-admin/menu.php'); 107 120 // backwards compatibility for plugins using add_management_page 121 if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook($plugin_page, 'tools.php') ) { 122 // There could be plugin specific params on the URL, so we need the whole query string 187 if ( !isset($wp_importers) || !isset($wp_importers[$importer]) || ! is_callable($wp_importers[$importer][2])) { 188 if (! file_exists(ABSPATH . "wp-admin/import/$importer.php")) { 189 wp_redirect( admin_url( 'import.php?invalid=' . $importer ) ); 219 do_action("load-$pagenow"); 220 // Backwards compatibility with old load-page-new.php, load-page.php, 221 // and load-categories.php actions. 230 elseif ( $taxnow == 'link_category' ) 231 do_action( 'load-edit-link-categories.php' ); 232 }cssjs.php https://gitlab.com/protoneutron/xbtbb3cker | PHP | 196 lines
19 20$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../../../../'; 21$phpEx = substr(strrchr(__FILE__, '.'), 1); 22 23require($phpbb_root_path . 'config.'.$phpEx); 24if (!defined('PHPBB_ENVIRONMENT')) 97 $md5_flist=md5(implode('|', $flist)); 98 $cssjs_file="{$phpbb_root_path}cache/".PHPBB_ENVIRONMENT."/data_ppkbb3cker_{$type}_{$md5_flist}.{$phpEx}"; 99 if(!@file_exists($cssjs_file) || !$no_cache) 156 @flock($fo, LOCK_EX); 157 @fwrite($fo, "<?php if (!defined('IN_PHPBB')) exit;?>\n{$cssjs_text}\n"); 158 //@fflush($fo); 163 { 164 include("{$phpbb_root_path}ext/ppk/xbtbb3cker/include/file_functions.{$phpEx}"); 165 }Image.php https://bitbucket.org/gRgsoft/1.git | PHP | 142 lines
1<?php 2namespace filestore; 87 list($width, $height, $type) = getimagesize($this->getPath()); 88 ini_set("memory_limit","1000M"); 89utility.php https://gitlab.com/najomie/fit-hippie | PHP | 140 lines
1<?php 2 7 8 require_once( $GLOBALS['itsec_globals']['plugin_dir'] . 'core/lib/class-itsec-lib-config-file.php' ); 9 require_once( $GLOBALS['itsec_globals']['plugin_dir'] . 'core/lib/class-itsec-lib-file.php' ); 18// error_reporting( 0 ); 19// @ini_set( 'display_errors', 0 ); 20 53 /* translators: 1: Specific error details */ 54 $response['errors'][] = new WP_Error( $confix->get_error_code(), sprintf( __( 'Unable to read the <code>wp-config.php</code> file in order to update the Database Prefix. Error details as follows: %1$s', 'better-wp-security' ), $config->get_error_message() ) ); 55 return $response; 65 /* translators: 1: Specific error details */ 66 $response['errors'][] = new WP_Error( $confix->get_error_code(), sprintf( __( 'Unable to update the <code>wp-config.php</code> file in order to update the Database Prefix. Error details as follows: %1$s', 'better-wp-security' ), $config->get_error_message() ) ); 67 return $response;mailer.php https://github.com/ess/pdnsadministrator.git | PHP | 210 lines
1<?php 2/** 199 if ($this->server) { 200 @ini_set('SMTP', $this->server); 201 }oauth.php https://gitlab.com/craftbynick/Circular | PHP | 243 lines
1<?php 2 3/** 4 * @see tmhOAuth/examples/oauth_flow.php 5 * 11 12require 'config.php'; 13 13 14require '../extlib/tmhOAuth/tmhOAuth.php'; 15require '../extlib/tmhOAuth/tmhUtilities.php'; 23session_set_cookie_params(60*60*24*30); 24ini_set('session.gc_maxlifetime', 60*60*24*30); 25session_start(); 44 array( 45 'oauth_callback' => tmhUtilities::php_self() 46 )Application.php https://gitlab.com/rsilveira1987/Expresso | PHP | 374 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Application.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 60 * 61 * Initialize application. Potentially initializes include_paths, PHP 62 * settings, and bootstrap class. 72 73 require_once 'Zend/Loader/Autoloader.php'; 74 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 127 if (!empty($options['phpsettings'])) { 128 $this->setPhpSettings($options['phpsettings']); 129 } 223 /** 224 * Set PHP configuration settings 225 *index.php https://github.com/textpattern/textpattern.git | PHP | 256 lines
1<?php 2 36 37if (!isset($txpcfg['table_prefix']) && !@include './config.php') { 38 ob_end_clean(); 39 header('HTTP/1.1 503 Service Unavailable'); 40 exit('<p>config.php is missing or corrupt. To install Textpattern, visit <a href="./setup/">setup</a>.</p>'); 41} else { 47error_reporting(E_ALL | E_STRICT); 48@ini_set("display_errors", "1"); 49include txpath.'/lib/class.trace.php'; 50$trace = new Trace(); 51$trace->start('[PHP includes]'); 52include_once txpath.'/lib/constants.php'; 52include_once txpath.'/lib/constants.php'; 53include txpath.'/lib/txplib_misc.php'; 54include txpath.'/lib/txplib_admin.php';mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
1<?php 2class Mail { 95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 144 if ($this->protocol == 'mail') { 145 ini_set('sendmail_from', $this->from); 146 158 } else { 159 if (substr(PHP_OS, 0, 3) != 'WIN') { 160 socket_set_timeout($handle, $this->timeout, 0); 358 foreach ($results as $result) { 359 if (substr(PHP_OS, 0, 3) != 'WIN') { 360 fputs($handle, $result . $this->crlf);33chartcreate-stock.php https://gitlab.com/abhijit13/taasika | PHP | 151 lines
8 9define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); 10 33 * @package PHPExcel 34 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 35 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 42 43$objPHPExcel = new PHPExcel(); 44$objWorksheet = $objPHPExcel->getActiveSheet(); 107// Set the chart legend 108$legend = new PHPExcel_Chart_Legend(PHPExcel_Chart_Legend::POSITION_RIGHT, NULL, false); 109 135echo date('H:i:s') , " Write to Excel2007 format" , EOL; 136$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); 137$objWriter->setIncludeCharts(TRUE);config.h https://gitlab.com/Manu343726/hhvm | C Header | 302 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#ifndef incl_HPHP_CONFIG_H_ 18#define incl_HPHP_CONFIG_H_provision_drupal_settings_7.tpl.php https://gitlab.com/aegir/provision | PHP | 194 lines
118 /** 119 * PHP settings: 120 * 121 * To see what PHP settings are possible, including whether they can 122 * be set at runtime (ie., when ini_set() occurs), read the PHP 123 * documentation at http://www.php.net/manual/en/ini.php#ini.list 182 if (is_readable('<?php print $this->platform->root ?>/sites/all/platform.settings.php')) { 183 include_once('<?php print $this->platform->root ?>/sites/all/platform.settings.php'); 184 } 187 if (is_readable('<?php print $this->platform->root ?>/sites/all/settings.php')) { 188 include_once('<?php print $this->platform->root ?>/sites/all/settings.php'); 189 } 192 if (is_readable('<?php print $this->site_path ?>/local.settings.php')) { 193 include_once('<?php print $this->site_path ?>/local.settings.php'); 194 }import.php https://github.com/66ru/gpor-contrib.git | PHP | 399 lines
1<?php 2define('DS', '/'); 2define('DS', '/'); 3ini_set('memory_limit', '-1'); 4mb_internal_encoding("UTF-8"); 28 { 29 if (!is_file('config.php')) { 30 echo "missing config.php"; 32 } 33 $this->params = array_merge($this->params, include 'config.php'); 34 112 if ($this->params['debug']) 113 echo 'Place "' . $place->title . '" disabled.' . PHP_EOL; 114 continue; 117 //if ($this->params['debug']) 118 // echo 'Place "' . $place->title . '" different city.' . PHP_EOL; 119 continue;wp-settings.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 323 lines
1<?php 2/** 5 * 6 * Allows for some configuration in wp-config.php (see default-constants.php) 7 * 7 * 8 * @internal This file must be parsable by PHP4. 9 * 20// Include files required for initialization. 21require( ABSPATH . WPINC . '/load.php' ); 22require( ABSPATH . WPINC . '/default-constants.php' ); 61if ( WP_CACHE ) 62 WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); 63 315 * 316 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for 317 * users not logged in.pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
28if ('/usr/share/php' != '@'.'include_path'.'@') { 29 ini_set('include_path', '/usr/share/php'); 30 $raw = false; 59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) { 60 echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini'; 61 exit(1); 132// this is used in the error handler to retrieve a relative path 133$_PEAR_PHPDIR = $config->get('php_dir'); 134$ui->setConfig($config); 166 ); 167 $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php'); 168 $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data'); 377 return "PEAR Version: ".$GLOBALS['pear_package_version']. 378 "\nPHP Version: ".phpversion(). 379 "\nZend Engine Version: ".zend_version().special_exports.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 283 lines
18// setting breadcrumbs 19$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin')); 20// Access restrictions 24// include additional libraries 25require_once '../document/document.inc.php'; 26// include additional libraries 26// include additional libraries 27require_once api_get_path(LIBRARY_PATH).'fileManage.lib.php'; 28require_once '../coursecopy/classes/CourseBuilder.class.php'; 28require_once '../coursecopy/classes/CourseBuilder.class.php'; 29require_once '../coursecopy/classes/CourseArchiver.class.php'; 30require_once '../coursecopy/classes/CourseRestorer.class.php'; 124 { 125 window.location="../course_info/download.php?archive=<?php echo $name; ?>&session=true"; 126 }test.php https://github.com/Sigiwara/candeo.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 78if (!defined('CORE_PATH')) { 79 if (function_exists('ini_set') && ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'))) { 80 define('APP_PATH', null); 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} 125 CakePHPTestHeader(); 126 include CAKE_TESTS_LIB . 'simpletest.php'; 127 CakePHPTestSuiteFooter();Feed.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 409 lines
1<?php 2 23/** @see Zend_Xml_Security */ 24#require_once 'Zend/Xml/Security.php'; 25 88 */ 89 #require_once 'Zend/Http/Client.php'; 90 self::$_httpClient = new Zend_Http_Client(); 177 */ 178 #require_once 'Zend/Feed/Exception.php'; 179 throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus()); 195 if (trim($string) == '') { 196 #require_once 'Zend/Feed/Exception.php'; 197 throw new Zend_Feed_Exception('Document/string being imported' 216 */ 217 #require_once 'Zend/Feed/Exception.php'; 218 throw new Zend_Feed_Exception($errormsg);Mail.php https://github.com/bodi000/oscommerce.git | PHP | 375 lines
1<?php 2/** 327 if ( empty($this->_from['name']) ) { 328 @ini_set('sendmail_from', $this->_from['email_address']); 329 } else { 329 } else { 330 @ini_set('sendmail_from', '"' . $this->_from['name'] . '" <' . $this->_from['email_address'] . '>'); 331 }Misc.php https://github.com/Doap/xoops.git | PHP | 369 lines
1<?php 2/* 30 if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) { 31 if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php")) 32 $langCode = $_GET['langCode']; 33 } 34 include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php"; 35 if ($number) { 64 /** 65 * @link http://pl.php.net/manual/en/function.imagecopyresampled.php 66 * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster) 110 /** 111 * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php 112 * function posted by e dot a dot schultz at gmail dot com 167 /** 168 * convert shorthand php.ini notation into bytes, much like how the PHP source does it 169 * @link http://pl.php.net/manual/en/function.ini-get.phpindex.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 382 lines
2layout: page 3title: "PHP functions for JavaScript" 4comments: false 14<!-- Generated by Rakefile:build --> 15If you are missing functions, there is a chance you may find them in our [experimental](https://github.com/kvz/phpjs/tree/master/experimental) 16and [workbench](https://github.com/kvz/phpjs/tree/master/workbench) folders. Warning: we keep 160 - [ini_get](/functions/ini_get) 161 - [ini_set](/functions/ini_set) 162 - [set_time_limit](/functions/set_time_limit)allfunctions.php https://gitlab.com/Toldierone/Compounds-mirror | PHP | 372 lines
1<?php 2$mysqli = new mysqli("localhost", "username", "password", "database"); 3date_default_timezone_set("America/Chicago"); 4/* ini_set("session.cookie_secure", 1); */ 5session_start(); 33 session_unset(); 34 header("Location: index.php"); 35 exit; 46 if (!$GLOBALS['userinfo']['user_id']) { 47 header("Location: index.php"); 48 exit; 52 if ($GLOBALS['userinfo']['stasismode']) { 53 header("Location: userinfo.php"); 54 exit; 56 if (!$GLOBALS['userinfo']['alliance_id']) { 57 header("Location: index.php"); 58 exit;memory.php https://github.com/orchestra-io/sample-openx.git | PHP | 128 lines
62 $phpMemoryLimit = ini_get('memory_limit'); 63 if (empty($phpMemoryLimit) || $phpMemoryLimit == -1) { 64 // No memory limit 71 ); 72 $phpMemoryLimitInBytes = $phpMemoryLimit; 73 foreach($aSize as $type => $multiplier) { 78 if ($pos) { 79 $phpMemoryLimitInBytes = substr($phpMemoryLimit, 0, $pos) * $multiplier; 80 } 98 $newPhpMemoryLimitInBytes = OX_getMemoryLimitSizeInBytes(); 99 $memoryCanBeSet = ($phpMemoryLimitInBytes != $newPhpMemoryLimitInBytes); 100 101 // Restore previous limit 102 @ini_set('memory_limit', $phpMemoryLimitInBytes); 103 return $memoryCanBeSet;admin.php https://bitbucket.org/sephora99/kmirock.git | PHP | 233 lines
101if ( WP_NETWORK_ADMIN ) 102 require(ABSPATH . 'wp-admin/network/menu.php'); 103elseif ( WP_USER_ADMIN ) 120 // backwards compatibility for plugins using add_management_page 121 if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook($plugin_page, 'tools.php') ) { 122 // There could be plugin specific params on the URL, so we need the whole query string 170 171 include(ABSPATH . 'wp-admin/admin-footer.php'); 172 186 if ( ! isset($wp_importers[$importer]) || ! is_callable($wp_importers[$importer][2]) ) { 187 wp_redirect( admin_url( 'import.php?invalid=' . $importer ) ); 188 exit; 214 do_action("load-$pagenow"); 215 // Backwards compatibility with old load-page-new.php, load-page.php, 216 // and load-categories.php actions.screenshots.php https://gitlab.com/nacridan/Nacridan | PHP | 76 lines
1<?php 2ini_set('display_errors', 1); 4 5require_once ("../conf/config.ini.php"); 6require_once (HOMEPATH . "/lib/HTMLObject.inc.php"); 6require_once (HOMEPATH . "/lib/HTMLObject.inc.php"); 7require_once (HOMEPATH . "/lib/phplib/Page.inc.php"); 8require_once (HOMEPATH . "/lib/phplib/Session.inc.php"); 8require_once (HOMEPATH . "/lib/phplib/Session.inc.php"); 9require_once (HOMEPATH . "/lib/DB.inc.php"); 10require_once (HOMEPATH . "/lib/BBCodeParser/BBCodeParser.inc.php"); 15 16require_once (HOMEPATH . "/include/indextemp.inc.php"); 17require_once (HOMEPATH . "/include/meta.inc.php");restore.php https://github.com/nadavkav/MoodleTAO.git | PHP | 181 lines
1<?php //$Id$ 2 //This script is used to configure and execute the restore proccess. 6 //Units used 7 require_once("../config.php"); 8 require_once("../lib/xmlize.php"); 8 require_once("../lib/xmlize.php"); 9 require_once("../course/lib.php"); 10 require_once("lib.php"); 10 require_once("lib.php"); 11 require_once("restorelib.php"); 12 require_once("bb/restore_bb.php"); 12 require_once("bb/restore_bb.php"); 13 require_once("$CFG->libdir/blocklib.php"); 14 require_once("$CFG->libdir/wiki_to_markdown.php" ); 14 require_once("$CFG->libdir/wiki_to_markdown.php" ); 15 require_once("$CFG->libdir/adminlib.php"); 16cake_session.test.php https://github.com/FlorianH/Markab.git | PHP | 472 lines
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 48 $this->__gc_divisor = ini_get('session.gc_divisor'); 49 ini_set('session.gc_divisor', '1'); 50 }tiki-upload_file.php https://gitlab.com/ElvisAns/tiki | PHP | 317 lines
1<?php 2 24 25if (isset($_POST['PHPSESSID']) && $_POST['PHPSESSID'] != '') { 26 session_id($_POST['PHPSESSID']); 28 29require_once('tiki-setup.php'); 30if ($prefs['feature_categories'] == 'y') { 39} 40@ini_set('max_execution_time', 0); 41$auto_query_args = ['galleryId', 'fileId', 'filegals_manager', 'view', 'simpleMode', 'insertion_syntax']; 69 } 70 include_once('lib/mime/mimetypes.php'); 71 global $mimetypes; 187if (empty($_REQUEST['returnUrl'])) { 188 include('lib/filegals/max_upload_size.php'); 189}helper.php https://bitbucket.org/VirtualReality/joomla.git | PHP | 201 lines
1<?php 2defined('_JEXEC') or die('Direct Access to this location is not allowed.'); 31 32 header("Location: /send_to_paypal.php"); 33 return ""; 142 $timeout = 15; 143 $old = ini_set('default_socket_timeout', $timeout); 144 $fp = @fopen($STARDUST_SERVICE_URL, 'rb', false, $ctx); 144 $fp = @fopen($STARDUST_SERVICE_URL, 'rb', false, $ctx); 145 ini_set('default_socket_timeout', $old); 146 if ($fp) {processes_Import_Ajax.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 292 lines
1<?php 2/** 2/** 3 * processes_ImportFile.php 4 * 23 */ 24ini_set( 'max_execution_time', '0' ); 25helper.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 291 lines
1<?php 2/** 115 // Set max_execution_time to 120 116 ini_set('max_execution_time',120); 117config.php https://bitbucket.org/bouldertech/myngl.git | PHP | 320 lines
1<?php 2/* 27/* 28 Uncomment lines below to enable PHP error reporting and displaying PHP errors. 29 Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected. 72 73require_once '../../../../includes/filemanager.config.php'; 74$baseDir = resolveUrl($baseUrl); 210 211 - If "php" is on the denied extensions list, a file named foo.php cannot be 212 uploaded. 214 foo.rar. 215 - The file foo.php.rar has "rar" extension so, in theory, it can be also 216 uploaded. 217 218In some conditions Apache can treat the foo.php.rar file just like any PHP 219script and execute it.MailSend.php https://github.com/yvestan/sendnews.git | PHP | 170 lines
1<?php 2 10 11require_once dirname(__FILE__) . "/../ClassLoader.php"; 12Swift_ClassLoader::load("Swift_Events_SendListener"); 50 $this->setAdditionalParams($params); 51 $this->setOS(PHP_OS); 52 } 155 $original_from = @ini_get("sendmail_from"); 156 @ini_set("sendmail_from", $this->returnPath); 157 164 { 165 @ini_set("sendmail_from", $original_from); 166 throw new Swift_ConnectionException("Sending failed using mail() as PHP's default mail() function returned boolean FALSE."); 167 } 168 @ini_set("sendmail_from", $original_from); 169 }Feed.php https://github.com/Riges/KawaiViewModel.git | PHP | 411 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 86 */ 87 require_once 'Zend/Http/Client.php'; 88 self::$_httpClient = new Zend_Http_Client(); 175 */ 176 require_once 'Zend/Feed/Exception.php'; 177 throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus()); 196 if (trim($string) == '') { 197 require_once 'Zend/Feed/Exception.php'; 198 throw new Zend_Feed_Exception('Document/string being imported' 218 */ 219 require_once 'Zend/Feed/Exception.php'; 220 throw new Zend_Feed_Exception($errormsg);cake_session.test.php https://github.com/cgajardo/repositorium.git | PHP | 508 lines
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 92 function testSessionPath() { 93 $Session = new CakeSession('/index.php'); 94 $this->assertEqual('/', $Session->path); 95 96 $Session = new CakeSession('/sub_dir/index.php'); 97 $this->assertEqual('/sub_dir/', $Session->path);upgrade-2.0.0.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 279 lines
1<?php 2function icl_upgrade_2_0_0_steps($step, $stepper){ 19 // assume that the lowest element_id is the source language 20 ini_set('max_execution_time', 300); 21 219 220// $iclsettings defined in upgrade.php 221if(empty($iclsettings['migrated_2_0_0'])){ 230 $ajax_action_none = wp_create_nonce($ajax_action); 231 $link = 'index.php?icl_ajx_action=' . $ajax_action . '&nonce=' . $ajax_action_none; 232 $txt = get_option('icl_temp_upgrade_data', FALSE) ? __('Resume Upgrade Process', 'sitepress') : __('Run Upgrade Process', 'sitepress'); 245 $message = __('Starting the upgrade process...', 'sitepress'); 246 include_once ICL_PLUGIN_PATH . '/inc/upgrade-functions/2.0.0/stepper.php'; 247 include_once ICL_PLUGIN_PATH . '/inc/upgrade-functions/upgrade-2.0.0.php';MongoDBTest.php https://github.com/telkins/zf2.git | PHP | 156 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 95 $oldMaxlifetime = ini_get('session.gc_maxlifetime'); 96 ini_set('session.gc_maxlifetime', 0); 97 110 111 ini_set('session.gc_maxlifetime', $oldMaxlifetime); 112 }index.php http://vaselinengine.googlecode.com/svn/trunk/ | PHP | 156 lines
1<?php 2/** 11 if(DEV_MODE){ 12 ini_set('display_errors','on'); 13 error_reporting ( E_ALL | E_STRICT ); 27 */ 28 //To prevent php warning from smarty compiler 29 if (function_exists ( "date_default_timezone_set" ) and function_exists ( "date_default_timezone_get" )) { 33 //Define autoload function to get rid of includes 34 include_once ('Libs/Zend/Loader.php'); 35 function __autoload($classname) { 86 /* disable standart Zend View - end */ 87 include_once HOME_DIR.'Libs/smarty/Smarty.class.php'; 88 $view = new Smarty ( );smarty_internal_resource_php.php https://gitlab.com/fiesta-framework/Documentation | PHP | 119 lines
1<?php 2 3/** 4 * Smarty Internal Plugin Resource PHP 5 * Implements the file system as resource for PHP templates 11 */ 12class Smarty_Internal_Resource_PHP extends Smarty_Resource_Uncompiled 13{ 14 /** 15 * container for short_open_tag directive's value before executing PHP templates 16 * 21 /** 22 * Create a new PHP Resource 23 90 * @return void 91 * @throws SmartyException if template cannot be loaded or allow_php_templates is disabled 92 */ajax.php https://gitlab.com/milo-ft/osTicket | PHP | 269 lines
1<?php 2/********************************************************************* 2/********************************************************************* 3 ajax.php 4 15**********************************************************************/ 16# Override staffLoginPage() defined in staff.inc.php to return an 17# HTTP/Forbidden status rather than the actual login page. 24define('AJAX_REQUEST', 1); 25require('staff.inc.php'); 26 27//Clean house...don't let the world see your crap. 28ini_set('display_errors','0'); //Disable error display 29ini_set('display_startup_errors','0'); 33 34require_once INCLUDE_DIR.'/class.dispatcher.php'; 35require_once INCLUDE_DIR.'/class.ajax.php';Filesystem.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 24/** Zend_Search_Lucene_Storage_Directory */ 25// require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 118 if (file_exists($path)) { 119 // require_once 'Zend/Search/Lucene/Exception.php'; 120 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 122 if (!self::mkdirs($path)) { 123 // require_once 'Zend/Search/Lucene/Exception.php'; 124 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 182 unset($this->_fileHandlers[$filename]); 183 // require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 184 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');cake_session.test.php https://github.com/fektor/cakephp.git | PHP | 508 lines
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 92 function testSessionPath() { 93 $Session = new CakeSession('/index.php'); 94 $this->assertEqual('/', $Session->path); 95 96 $Session = new CakeSession('/sub_dir/index.php'); 97 $this->assertEqual('/sub_dir/', $Session->path);cat_feature_productfeature_update_queue.php https://gitlab.com/ptisky/API_prestashop | PHP | 207 lines
1<?php 2/** 24@error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); 25@ini_set("display_errors", "ON"); 26clement.eng.php git://pkgs.fedoraproject.org/clement | PHP | 267 lines
1<?php 2/************************************************/ 27?> 28<?php 29ini_set('error_reporting','E_ALL & ~E_NOTICE'); 132//----------------------------------------------------- 133// user.php 134$huserdate="Date"; 169//----------------------------------------------------- 170//-- sorry.php 171$hsorry="SORRY";scrape2.php https://gitlab.com/rambeer/ppkbb3cker2 | PHP | 415 lines
5* @package ppkBB3cker 6* @version $Id: scrape2.php 1.000 2009-11-09 13:36:00 PPK $ 7* @copyright (c) 2009 PPK 13@ini_set('register_globals', 0); 14@ini_set('magic_quotes_runtime', 0); 15@ini_set('magic_quotes_sybase', 0); 18 19define('IN_PHPBB', true); 20define('IS_GUESTS', 1); 21 22$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; 23$phpEx = substr(strrchr(__FILE__, '.'), 1); 31 32require($phpbb_root_path . 'config.'.$phpEx); 33Filesystem.php https://bitbucket.org/haichau59/manga.git | PHP | 363 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 24/** Zend_Search_Lucene_Storage_Directory */ 25//require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 118 if (file_exists($path)) { 119 //require_once 'Zend/Search/Lucene/Exception.php'; 120 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 122 if (!self::mkdirs($path)) { 123 //require_once 'Zend/Search/Lucene/Exception.php'; 124 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 182 unset($this->_fileHandlers[$filename]); 183 //require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 184 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');io.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 303 lines
1<?php 2/* 21 * 22 * This is the File Manager Connector for PHP. 23 */ 117 118 $php_errormsg = '' ; 119 // Enable error tracking to catch the error. 119 // Enable error tracking to catch the error. 120 ini_set( 'track_errors', '1' ) ; 121 138 139 $sErrorMsg = $php_errormsg ; 140 169 if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) ) 170 SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".' ) ; 17109pagebreaks.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 134 lines
32 33define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); 34 42echo date('H:i:s') , " Create new PHPExcel object" , EOL; 43$objPHPExcel = new PHPExcel(); 44 76 // Add a page break 77 $objPHPExcel->getActiveSheet()->setBreak( 'A' . $i, PHPExcel_Worksheet::BREAK_ROW ); 78 } 102 103$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); 104$objWriter->save(str_replace('.php', '.xlsx', __FILE__)); 117 118$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); 119$objWriter->save(str_replace('.php', '.xls', __FILE__));index.php https://gitlab.com/tutaalexandr/bot_local | PHP | 138 lines
13 { 14 header('location: ../install/install_programo.php'); 15 } 18 $thisFile = __FILE__; 19 require_once('../config/global_config.php'); 20 if (!defined('SCRIPT_INSTALLED')) header('location: ' . _INSTALL_PATH_ . 'install_programo.php'); 22 include_once (_LIB_PATH_ . "error_functions.php"); 23 ini_set('error_log', _LOG_PATH_ . 'log.reader.error.log'); 24 } 123 <body> 124 <form name="fileChoice" action="<?php echo _LOG_URL_ ?>" method="POST"> 125 Select a Log File to view: <select name="file" id="file" size="1" onchange="document.forms[0].submit();"> 126 <option value="about:blank"><?php echo $sel_msg ?></option> 127<?php echo rtrim($options) . PHP_EOL; ?> 128 </select> functions_image.php https://gitlab.com/mybbpl/ppm-1.6 | PHP | 257 lines
1<?php 2/** 216 217 @ini_set("memory_limit", $memory_limit); 218 }soap.php https://github.com/eeggenberger/ezpublish.git | PHP | 123 lines
1<?php 2/** 16 17ini_set( "display_errors" , "0" ); 18 19// Set a default time zone if none is given. The time zone can be overriden 20// in config.php or php.ini. 21if ( !ini_get( "date.timezone" ) ) 25 26require 'autoload.php'; 27 42// Initialize/set the index file. 43eZSys::init( 'soap.php', $ini->variable( 'SiteAccessSettings', 'ForceVirtualHost' ) === 'true' ); 44$uri = eZURI::instance( eZSys::requestURI() ); 47// Check for extension 48require_once( 'kernel/common/ezincludefunctions.php' ); 49eZExtension::activateExtensions( 'default' );HandleExceptions.php https://gitlab.com/jjpa2018/dashboard | PHP | 251 lines
1<?php 2 51 if (! $app->environment('testing')) { 52 ini_set('display_errors', 'Off'); 53 } 56 /** 57 * Report PHP deprecations, or convert PHP errors to ErrorException instances. 58 * 196 /** 197 * Handle the PHP shutdown event. 198 * 203 if (! is_null($error = error_get_last()) && $this->isFatal($error['type'])) { 204 $this->handleException($this->fatalErrorFromPhpError($error, 0)); 205 } 214 */ 215 protected function fatalErrorFromPhpError(array $error, $traceOffset = null) 216 {ks_prefreport.php https://gitlab.com/ElvisAns/tiki | PHP | 229 lines
1<?php 2 11// Usage: From the command line: 12// php doc/devtools/prefreport.php 13// resulting file can be found at dump/prefreport.txt 14// 15// also check out doc/devtools/securitycheck.php to see in which files are 16// used each pref (and permission name too) 20 21require_once 'tiki-setup.php'; 22$prefslib = TikiLib::lib('prefs'); 60error_reporting(E_ALL); 61ini_set('display_errors', 'on'); 62 93 94 foreach (glob('lib/prefs/*.php') as $file) { 95 $name = substr(basename($file), 0, -4);class-itsec-hide-backend.php https://gitlab.com/najomie/fit-hippie | PHP | 361 lines
26 27 $is_jetpack_active = in_array( 'jetpack/jetpack.php', (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( 'jetpack/jetpack.php' ); 28 72 public function filter_nginx_server_config_modification( $modification ) { 73 require_once( dirname( __FILE__ ) . '/config-generators.php' ); 74 152 strpos( $_SERVER['REQUEST_URI'], 'wp-register.php' ) !== false || 153 strpos( $_SERVER['REQUEST_URI'], 'wp-signup.php' ) !== false || 154 ( 155 isset( $_REQUEST['redirect_to'] ) && 156 strpos( $_REQUEST['redirect_to'], 'wp-admin/customize.php' ) !== false 157 354 355 return str_replace( 'wp-login.php', $this->settings['slug'], $message ); 356setup.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 558 lines
1<?php 2 5 * 6 * This script generates a config.php file needed by the server 7 * example. 17$path = $path_extra . PATH_SEPARATOR . $path; 18ini_set('include_path', $path); 19require_once "Auth/OpenID.php"; 60 if ($port) { 61 return sprintf("%s://%s:%s%s/server.php", $scheme, $_SERVER['SERVER_NAME'], 62 $port, dirname($_SERVER['PHP_SELF'])); 63 } else { 64 return sprintf("%s://%s%s/server.php", $scheme, $_SERVER['SERVER_NAME'], 65 dirname($_SERVER['PHP_SELF'])); 425<p> 426Put the following text into <strong><?php print dirname(__FILE__); print DIRECTORY_SEPARATOR; ?>config.php</strong>. 427</p>is_array.js https://gitlab.com/orvi2014/phpjs | JavaScript | 81 lines
11 // bugfixed by: Brett Zamir (http://brett-zamir.me) 12 // note: In php.js, javascript objects are like php associative arrays, thus JavaScript objects will also 13 // note: return true in this function (except for objects which inherit properties, being thus used as objects), 13 // note: return true in this function (except for objects which inherit properties, being thus used as objects), 14 // note: unless you do ini_set('phpjs.objectsAsArrays', 0), in which case only genuine JavaScript arrays 15 // note: will return true 65 // BEGIN REDUNDANT 66 this.php_js = this.php_js || {}; 67 this.php_js.ini = this.php_js.ini || {}; 69 70 ini = this.php_js.ini['phpjs.objectsAsArrays']; 71 73 // Allow returning true unless user has called 74 // ini_set('phpjs.objectsAsArrays', 0) to disallow objects as arrays 75 ((!ini || (// if it's not set to 0 and it's not 'off', check for objects as arraysindex.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 149 lines
1<?php 2 6 ini_set( 'display_erorrs', 1 ); 7 ini_set( 'html_errors', 1 ); 8 error_reporting( E_ALL ); 9} else { 10 ini_set( 'display_erorrs', 0 ); 11 ini_set( 'html_errors', 0 ); 51 // path to the possibly present custom config, which defines where the wp-config.php file is located, so we dont have to look for it 52 $custom_config_path = dirname( $otce_path ). DIRECTORY_SEPARATOR . 'qsot-phpqrconfig.php'; 53 $custom_config_exists = false; 72 73 // cycle through all the common paths, and check for the existence of the wp-config.php file 74 foreach ( $search_paths as $search_path ) { 74 foreach ( $search_paths as $search_path ) { 75 $test_file_path = $search_path . DIRECTORY_SEPARATOR . 'wp-config.php'; 76 if ( @file_exists( $test_file_path ) && is_readable( $test_file_path ) ) {demoSoap.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 273 lines
61</style> 62<?php 63 66} 67$endpoint = isset( $_SESSION['END_POINT'] ) ? $_SESSION['END_POINT'] : 'http://sugar.opensource.colosa.net/soap.php'; 68 76 End Point <input type="text" size="80" maxlength="160" name="epr" 77 value="<?php echo $endpoint ?>"> <input type="submit" 78 value="change endpoint" name="action"> 103 Session Id <input type="text" size="36" maxlength="32" 104 name="sessionid" value="<?php print $sessionId ?>"> 105 </div> 128 Session Id <input type="text" size="36" maxlength="32" 129 name="sessionid" value="<?php print $sessionId ?>"> 130 </div>CacheGenerateCommand.php https://gitlab.com/snips3/rfpr | PHP | 289 lines
1<?php 2 61 { 62 ini_set('memory_limit', '1024M'); 63ext_imagick.h https://github.com/tstarling/hiphop-php.git | C Header | 372 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.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 +----------------------------------------------------------------------+config.php https://gitlab.com/vietdhtn/myweb | PHP | 175 lines
1<?php 2 5 * 6 * For the official documentation visit http://docs.cksource.com/ckfinder3-php/ 7 */ 8 9/*============================ PHP Error Reporting ====================================*/ 10// http://docs.cksource.com/ckfinder3-php/debugging.html 13error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); 14ini_set('display_errors', 0); 15 17// error_reporting(E_ALL); 18// ini_set('display_errors', 1); 19 20/*============================ General Settings =======================================*/ 21// http://docs.cksource.com/ckfinder3-php/configuration.html 22index.php https://gitlab.com/supriyanto-edodoe22/manpro | PHP | 316 lines
1<?php 2date_default_timezone_set('Asia/Singapore'); 6 * 7 * An open source application development framework for PHP 8 * 70 error_reporting(-1); 71 ini_set('display_errors', 1); 72 break; 75 case 'production': 76 ini_set('display_errors', 0); 77 if (version_compare(PHP_VERSION, '5.3', '>=')) 140 * 141 * Normally you will set your default controller in the routes.php file. 142 * You can, however, force a custom routing by hard-coding a 172 * config class when initialized. This allows you to set custom config 173 * items or override any default config values found in the config.php file. 174 * This can be handy as it permits you to share one application betweentimthumb.php https://github.com/jao/jpcamargo.git | PHP | 614 lines
1<?php 2/* 5 6 MIT License: http://www.opensource.org/licenses/mit-license.php 7 14 15 HTML example: <img src="/scripts/timthumb.php?src=/images/whatever.jpg&w=150&h=200&zc=1" alt="" /> 16*/ 78 79ini_set('memory_limit', "30M"); 80 291 292 @ini_set('gd.jpeg_ignore_warning', 1); 293 $image = imagecreatefromjpeg($src); 357 358 if (stristr(PHP_OS, 'WIN')) { 359 $os = 'WIN';index.php https://gitlab.com/florianocomercial/centreon | PHP | 139 lines
44 45clearstatcache(true, "$etc/centreon.conf.php"); 46if (!file_exists("$etc/centreon.conf.php") && is_dir('./install')) { 46if (!file_exists("$etc/centreon.conf.php") && is_dir('./install')) { 47 header("Location: ./install/setup.php"); 48 return; 62 63require_once "$classdir/centreon.class.php"; 64require_once "$classdir/centreonSession.class.php"; 64require_once "$classdir/centreonSession.class.php"; 65require_once "$classdir/centreonAuth.SSO.class.php"; 66require_once "$classdir/centreonLog.class.php"; 135if (version_compare(phpversion(), '5.3') < 0){ 136 echo "<div class='msg'> PHP version is < 5.3. Please Upgrade PHP</div>"; 137} else {index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 140 lines
42 // returns 1: {a: 'orange', b: 'banana', c: 'apple', d: 'lemon'} 43 // example 2: ini_set('phpjs.strictForIn', true); 44 // example 2: data = {2: 'van', 3: 'Zonneveld', 1: 'Kevin'}; 64 var loc = this.i18n_loc_get_default(); 65 sorter = this.php_js.i18nLocales[loc].sorting; 66 break; 101 this.php_js = this.php_js || {}; 102 this.php_js.ini = this.php_js.ini || {}; 103 // END REDUNDANT 103 // END REDUNDANT 104 strictForIn = this.php_js.ini['phpjs.strictForIn'] && this.php_js.ini['phpjs.strictForIn'].local_value && this.php_js 105 .ini['phpjs.strictForIn'].local_value !== 'off'; 127 128Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are 129the closest match to this hashtable-like data structure.MySQLiConnection.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 293 lines
1<?php 2/* 2/* 3 * $Id: MySQLiConnection.php,v 1.7 2004/09/18 09:29:22 sb Exp $ 4 * 18 * and is licensed under the LGPL. For more information please see 19 * <http://creole.phpdb.org>. 20 */ 21 22require_once 'creole/Connection.php'; 23require_once 'creole/common/ConnectionCommon.php'; 23require_once 'creole/common/ConnectionCommon.php'; 24include_once 'creole/drivers/mysqli/MySQLiResultSet.php'; 25 77 78 @ini_set('track_errors', true); 7933chartcreate-pie.php https://gitlab.com/enijar/xlsx-to-csv-converter | PHP | 215 lines
8 9define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); 10 33 * @package PHPExcel 34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 35 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 42 43$objPHPExcel = new PHPExcel(); 44$objWorksheet = $objPHPExcel->getActiveSheet(); 104// Set the chart legend 105$legend1 = new PHPExcel_Chart_Legend(PHPExcel_Chart_Legend::POSITION_RIGHT, NULL, false); 106 203echo date('H:i:s') , " Write to Excel2007 format" , EOL; 204$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); 205$objWriter->setIncludeCharts(TRUE);index.php https://gitlab.com/Hack/modelo-codeigniter | PHP | 345 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 99 error_reporting(-1); 100 ini_set('display_errors', 1); 101 break; 104 case 'production': 105 ini_set('display_errors', 0); 106 if (version_compare(PHP_VERSION, '5.3', '>=')) 169 * 170 * Normally you will set your default controller in the routes.php file. 171 * You can, however, force a custom routing by hard-coding a 201 * config class when initialized. This allows you to set custom config 202 * items or override any default config values found in the config.php file. 203 * This can be handy as it permits you to share one application betweenDb.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 180 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 90 { 91 ini_set('max_execution_time', 0); 92 $sql = $this->getHeader();shared.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 111 lines
1<?php 2 2 3require_once(ROOT . DS . 'application' . DS . 'library' . DS . 'controller.class.php'); 4require_once(ROOT . DS . 'application' . DS . 'library' . DS . 'SQLQuery.class.php'); 4require_once(ROOT . DS . 'application' . DS . 'library' . DS . 'SQLQuery.class.php'); 5require_once(ROOT . DS . 'application' . DS . 'library' . DS . 'model.class.php'); 6 6 7require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'User.php'); 8require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Slide.php'); 8require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Slide.php'); 9require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'DeckList.php'); 10require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Deck.php'); 10require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Deck.php'); 11require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Stream.php'); 12require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Statistics.php');