PageRenderTime 1059ms queryFilters 1ms Sphinxql 257ms GetByIds 768ms meta 0ms repositoryFilters 13ms languageFilters 0ms sourceFilters 1ms

107,636 results for 'php ob_start' (1059 ms)

Source

Language

Repository

load.php https://github.com/JiffSoft/FacePress.git | PHP | 262 lines
1<?php
2/**
9// load up the required classes
10require(BASEDIR.'/fpb-includes/smarty/Smarty.class.php');
11require(BASEDIR.'/fpb-includes/auth.php');
11require(BASEDIR.'/fpb-includes/auth.php');
12require(BASEDIR.'/fpb-includes/database.php');
13require(BASEDIR.'/fpb-includes/functions.php');
13require(BASEDIR.'/fpb-includes/functions.php');
14require(BASEDIR.'/fpb-includes/fbhelper.php');
15require(BASEDIR.'/fpb-includes/spyc.php');
15require(BASEDIR.'/fpb-includes/spyc.php');
16require(BASEDIR.'/fpb-includes/plugins.php');
17
45
46    require(BASEDIR.'/fpb-includes/toolbar.php');
47ob_start();
ajax.users.php https://github.com/ahakim/osTicket-1.8.git | PHP | 453 lines
1<?php
2/*********************************************************************
2/*********************************************************************
3    ajax.users.php
4
19
20include_once(INCLUDE_DIR.'class.ticket.php');
21require_once INCLUDE_DIR.'class.note.php';
93                );
94        ob_start();
95        echo sprintf('<div style="width:650px; padding: 2px 2px 0 5px;"
96                id="u%d">', $user->getId());
97        include(STAFFINC_DIR . 'templates/user.tmpl.php');
98        echo '</div>';
119
120        include(STAFFINC_DIR . 'templates/user.tmpl.php');
121    }
shared.php https://github.com/asdfdotdev/Helios-Calendar.git | PHP | 1,187 lines
1<?php
2/**
13	 * @version 2.2.1
14	 * @param int $cID Cache file to be created 0 = settings.php, 1 = settings_named.php, 2 = locList(a).php, 3 = meta.php, 4 = selCity(a).php, 5 = selPostal(a).php, 6 = Cache Age File (Default:0)
15	 * @param int $a [optional] Version of file to create. 0 = public calendar, 1 = admin console (Default:0, Used for $cID = 2/4/5 only.)
31				if(defined('HC_Named')){
32					if(!file_exists(HCPATH . '/cache/settings_named.php')){
33						$result = doQuery("SELECT PkID, Name FROM " . HC_TblPrefix . "settings WHERE PkID IN (".$hc_fetch_settings.") AND SettingValue != '' AND Name IS NOT NULL ORDER BY Name"); 
34						if(hasRows($result)){
35							ob_start();
36							$fp = fopen(HCPATH . '/cache/settings_named.php', 'w');
36							$fp = fopen(HCPATH . '/cache/settings_named.php', 'w');
37							fwrite($fp, "<?php\n//\tHelios Named Config Cache - Delete this file when upgrading.\n\n");
38
833
834		include_once(HCPATH.HCINC.'/phpmailer/class.phpmailer.php');
835
main.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 53 lines
1<?php
2/**
22if (empty($sidebar_inline)) {
23ob_start();
24include(dirname(__FILE__).'/main_index.php');
29// include functions that provide sidebar functionality
30@require_once(dirname(__FILE__).'/tplfn_sidebar.php');
31ob_start();
31ob_start();
32include(dirname(__FILE__).'/sidebar.php');
33$sidebar = ob_get_clean();
init_gzip.php http://daocart.googlecode.com/svn/trunk/ | PHP | 32 lines
1<?php
2/**
3 * if gzip_compression is enabled, start to buffer the output
4 * see {@link  http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
5 *
8 * @copyright Portions Copyright 2003 osCommerce
9 * @todo ICW note some of this can go if we move to php>4.2
10 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
10 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
11 * @version $Id: init_gzip.php 2753 2005-12-31 19:17:17Z wilt $
12 */
15}
16if ( (GZIP_LEVEL == '1') && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION >= '4') ) {
17  if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) {
17  if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) {
18    if (PHP_VERSION >= '4.0.4') {
19      ob_start('ob_gzhandler');
phpThumb.php https://bitbucket.org/c_maksud/tinymce-with-ibrowser-in-codeignitor.git | PHP | 626 lines
59
60		$phpThumb->DebugMessage('Would have used cached (image/'.$phpThumb->thumbnailFormat.') file "'.$phpThumb->cache_filename.'" (Last-Modified: '.gmdate('D, d M Y H:i:s', $nModified).' GMT), but skipping because $_SERVER[HTTP_REFERER] ('.@$_SERVER['HTTP_REFERER'].') is not in $phpThumb->config_nooffsitelink_valid_domains ('.implode(';', $phpThumb->config_nooffsitelink_valid_domains).')', __FILE__, __LINE__);
61
133		$phpThumb->config_disable_debug = false; // otherwise error message won't print
134		$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
135	}
138	$phpThumb->config_disable_debug = false; // otherwise error message won't print
139	$phpThumb->ErrorImage('Please rename "phpThumb.config.php.default" to "phpThumb.config.php"');
140} else {
141	$phpThumb->config_disable_debug = false; // otherwise error message won't print
142	$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
143}
525	$opacity = (strlen($opacity) ? $opacity : 100);
526	if ($phpThumb->gdimg_source = phpthumb_functions::ImageCreateFunction($phpThumb->w, $phpThumb->h)) {
527		$alpha = (100 - min(100, max(0, $opacity))) * 1.27;
phpThumb.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 618 lines
50		ob_end_flush();
51		$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
52	}
54} elseif (file_exists(dirname(__FILE__).'/phpThumb.config.php.default')) {
55	$phpThumb->ErrorImage('Please rename "phpThumb.config.php.default" to "phpThumb.config.php"');
56} else {
56} else {
57	$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
58}
124if (!@$_SERVER['PATH_INFO'] && !@$_SERVER['QUERY_STRING']) {
125	$phpThumb->ErrorImage('phpThumb() v'.$phpThumb->phpthumb_version.'<br><a href="http://phpthumb.sourceforge.net">http://phpthumb.sourceforge.net</a><br><br>ERROR: no parameters specified');
126}
431
432		$phpThumb->DebugMessage('Would have used cached (image/'.$phpThumb->thumbnailFormat.') file "'.$phpThumb->cache_filename.'" (Last-Modified: '.gmdate('D, d M Y H:i:s', $nModified).' GMT), but skipping because $_SERVER[HTTP_REFERER] ('.@$_SERVER['HTTP_REFERER'].') is not in $phpThumb->config_nooffsitelink_valid_domains ('.implode(';', $phpThumb->config_nooffsitelink_valid_domains).')', __FILE__, __LINE__);
433
phpThumb.php https://bitbucket.org/webnroll/cosyx.git | PHP | 620 lines
52		ob_end_flush();
53		$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
54	}
56} elseif (file_exists(dirname(__FILE__).'/phpThumb.config.php.default')) {
57	$phpThumb->ErrorImage('Please rename "phpThumb.config.php.default" to "phpThumb.config.php"');
58} else {
58} else {
59	$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
60}
126if (!isset($_SERVER['PATH_INFO']) && !isset($_SERVER['QUERY_STRING'])) {
127	$phpThumb->ErrorImage('phpThumb() v'.$phpThumb->phpthumb_version.'<br><a href="http://phpthumb.sourceforge.net">http://phpthumb.sourceforge.net</a><br><br>ERROR: no parameters specified');
128}
433
434		$phpThumb->DebugMessage('Would have used cached (image/'.$phpThumb->thumbnailFormat.') file "'.$phpThumb->cache_filename.'" (Last-Modified: '.gmdate('D, d M Y H:i:s', $nModified).' GMT), but skipping because $_SERVER[HTTP_REFERER] ('.@$_SERVER['HTTP_REFERER'].') is not in $phpThumb->config_nooffsitelink_valid_domains ('.implode(';', $phpThumb->config_nooffsitelink_valid_domains).')', __FILE__, __LINE__);
435
phpThumb.php https://bitbucket.org/aaoliveira/cakephp-phpthumb.git | PHP | 626 lines
59
60		$phpThumb->DebugMessage('Would have used cached (image/'.$phpThumb->thumbnailFormat.') file "'.$phpThumb->cache_filename.'" (Last-Modified: '.gmdate('D, d M Y H:i:s', $nModified).' GMT), but skipping because $_SERVER[HTTP_REFERER] ('.@$_SERVER['HTTP_REFERER'].') is not in $phpThumb->config_nooffsitelink_valid_domains ('.implode(';', $phpThumb->config_nooffsitelink_valid_domains).')', __FILE__, __LINE__);
61
133		$phpThumb->config_disable_debug = false; // otherwise error message won't print
134		$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
135	}
138	$phpThumb->config_disable_debug = false; // otherwise error message won't print
139	$phpThumb->ErrorImage('Please rename "phpThumb.config.php.default" to "phpThumb.config.php"');
140} else {
141	$phpThumb->config_disable_debug = false; // otherwise error message won't print
142	$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
143}
525	$opacity = (strlen($opacity) ? $opacity : 100);
526	if ($phpThumb->gdimg_source = phpthumb_functions::ImageCreateFunction($phpThumb->w, $phpThumb->h)) {
527		$alpha = (100 - min(100, max(0, $opacity))) * 1.27;
phpThumb.php https://bitbucket.org/blackidanandteam/blacktheme.git | PHP | 626 lines
59
60		$phpThumb->DebugMessage('Would have used cached (image/'.$phpThumb->thumbnailFormat.') file "'.$phpThumb->cache_filename.'" (Last-Modified: '.gmdate('D, d M Y H:i:s', $nModified).' GMT), but skipping because $_SERVER[HTTP_REFERER] ('.@$_SERVER['HTTP_REFERER'].') is not in $phpThumb->config_nooffsitelink_valid_domains ('.implode(';', $phpThumb->config_nooffsitelink_valid_domains).')', __FILE__, __LINE__);
61
133		$phpThumb->config_disable_debug = false; // otherwise error message won't print
134		$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
135	}
138	$phpThumb->config_disable_debug = false; // otherwise error message won't print
139	$phpThumb->ErrorImage('Please rename "phpThumb.config.php.default" to "phpThumb.config.php"');
140} else {
141	$phpThumb->config_disable_debug = false; // otherwise error message won't print
142	$phpThumb->ErrorImage('failed to include_once('.dirname(__FILE__).'/phpThumb.config.php) - realpath="'.realpath(dirname(__FILE__).'/phpThumb.config.php').'"');
143}
525	$opacity = (strlen($opacity) ? $opacity : 100);
526	if ($phpThumb->gdimg_source = phpthumb_functions::ImageCreateFunction($phpThumb->w, $phpThumb->h)) {
527		$alpha = (100 - min(100, max(0, $opacity))) * 1.27;
index.php https://bitbucket.org/chaosdeveloper/old-chaosweb | PHP | 358 lines
1<?php
2
26	// wurde ChaosWeb schon installiert?
27	if(file_exists('install/index.php')) {
28		include('install/index.php');
46// Initialize config's.
47include('core/class.mangosweb.php');
48$MW = new mangosweb; // Super global.
50// Site functions & classes ...
51include('core/common.php');
52include('core/mangos.class.php');
52include('core/mangos.class.php');
53include('core/class.auth.php');
54require_once('core/dbsimple/Generic.php');
54require_once('core/dbsimple/Generic.php');
55require('core/class.captcha.php');
56include('core/cache_class/safeIO.php');
Debugger.php https://github.com/voda/tracy.git | PHP | 591 lines
1<?php
2
190			}
191			self::$productionMode = !in_array(isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : php_uname('n'), $list, TRUE);
192		}
204		if (self::$logDirectory) {
205			ini_set('error_log', self::$logDirectory . '/php_error.log');
206		}
207
208		// php configuration
209		if (function_exists('ini_set')) {
291			if (empty($saved) && $logHandle = @fopen($exceptionFilename, 'w')) {
292				ob_start(); // double buffer prevents sending HTTP headers in some PHP
293				ob_start(function($buffer) use ($logHandle) { fwrite($logHandle, $buffer); }, 4096);
476
477		$message = 'PHP ' . (isset($types[$severity]) ? $types[$severity] : 'Unknown error') . ": $message";
478		$count = & self::$errorPanel->data["$message|$file|$line"];
icwp-wpsf-main.php https://github.com/stackgrinder/wp-simple-firewall.git | PHP | 931 lines
1<?php
2
789		$sRedirectPage = 'index.php';
790		ob_start(); ?>
791			<style>
793			</style>
794			<form id="IcwpTranslationsNotice" method="post" action="admin.php?page=<?php echo $this->getSubmenuId('firewall'); ?>&<?php echo $sMetaFlag; ?>=1">
795				<input type="hidden" value="<?php echo $sRedirectPage; ?>" name="redirect_page" id="redirect_page">
795				<input type="hidden" value="<?php echo $sRedirectPage; ?>" name="redirect_page" id="redirect_page">
796				<input type="hidden" value="1" name="<?php echo $sMetaFlag; ?>" id="<?php echo $sMetaFlag; ?>">
797				<h4 style="margin:10px 0 3px;">
821			<style>a#fromIcwp { padding: 0 5px; border-bottom: 1px dashed rgba(0,0,0,0.1); color: blue; font-weight: bold; }</style>
822			<form id="IcwpUpdateNotice" method="post" action="admin.php?page=<?php echo $this->getSubmenuId('firewall'); ?>&<?php echo $sMetaFlag; ?>=1">
823				<input type="hidden" value="<?php echo $sRedirectPage; ?>" name="redirect_page" id="redirect_page">
823				<input type="hidden" value="<?php echo $sRedirectPage; ?>" name="redirect_page" id="redirect_page">
824				<input type="hidden" value="1" name="<?php echo $sMetaFlag; ?>" id="<?php echo $sMetaFlag; ?>">
825				<p>
Debug.php https://github.com/bazo/diplomovka.git | PHP | 961 lines
451				} else try {
452					self::$logFile = Environment::expand('%logDir%/php_error.log');
453
604				if (empty($skip) && self::$logHandle = @fopen($file, 'w')) {
605					ob_start(); // double buffer prevents sending HTTP headers in some PHP
606					ob_start(array(__CLASS__, '_writeFile'), 1);
850			}
851			$arr[] = 'PHP ' . htmlSpecialChars(PHP_VERSION);
852			if (isset($_SERVER['SERVER_SOFTWARE'])) $arr[] = htmlSpecialChars($_SERVER['SERVER_SOFTWARE']);
912		header('X-Wf-Protocol-nette: http://meta.wildfirehq.org/Protocol/JsonStream/0.2');
913		header('X-Wf-nette-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.2.0');
914
916		$index = isset($structures[$struct]) ? $structures[$struct] : ($structures[$struct] = count($structures) + 1);
917		header("X-Wf-nette-Structure-$index: http://meta.firephp.org/Wildfire/Structure/FirePHP/$struct");
918
Debug.php https://github.com/PJK/Nette-Blog-Tutorial.git | PHP | 970 lines
595				$hash = md5($exception );
596				error_log("PHP Fatal error:  Uncaught $exception");
597				foreach (new \DirectoryIterator(dirname(self::$logFile)) as $entry) {
604				if (empty($skip) && self::$logHandle = @fopen($file, 'x')) {
605					ob_start(); // double buffer prevents sending HTTP headers in some PHP
606					ob_start(array(__CLASS__, '_writeFile'), 1);
845			}
846			$arr[] = 'PHP ' . htmlSpecialChars(PHP_VERSION);
847			if (isset($_SERVER['SERVER_SOFTWARE'])) $arr[] = htmlSpecialChars($_SERVER['SERVER_SOFTWARE']);
921		header('X-Wf-Protocol-nette: http://meta.wildfirehq.org/Protocol/JsonStream/0.2');
922		header('X-Wf-nette-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.2.0');
923
925		$index = isset($structures[$struct]) ? $structures[$struct] : ($structures[$struct] = count($structures) + 1);
926		header("X-Wf-nette-Structure-$index: http://meta.firephp.org/Wildfire/Structure/FirePHP/$struct");
927
functions.php https://bitbucket.org/jsturgill/wordpress-theme-foundation.git | PHP | 358 lines
1<?php
2namespace WTFCore\Functions;
48		// TODO: Config file/constant to set layouts directory name
49		$path = get_stylesheet_directory().'/layouts/'.$layout.'.php';
50	    ob_start();
88	    {
89	        if (file_exists("{$root}{$path}.php"))
90	        {
193		{
194			if (file_exists("{$root}{$path}.php"))
195			{
196				// echo "$root$path found.<br />"; // uncomment to troubleshoot
197				include("{$root}{$path}.php");
198				return;
217		global $post;
218	    ob_start();
219	    if ( $post_object === null && have_posts() === true ) {
php.ini完整解释.txt https://github.com/ifcheung/myarch_env.git | Unknown | 1,297 lines
10;;;;;;;;;;;;;;;;;
11; 这个文件必须命名为'php.ini'并放置在httpd.conf中PHPINIDir指令指定的目录中。
12; 最新版本的php.ini可以在下面两个位置查看:
12; 最新版本的php.ini可以在下面两个位置查看:
13; http://cvs.php.net/viewvc.cgi/php-src/php.ini-recommended?view=co
14; http://cvs.php.net/viewvc.cgi/php-src/php.ini-dist?view=co
55; php_admin_flag  name on|off ;仅用于设置bool型的指令
56; [提示]因为很多指令不允许使用php_value/php_flag进行设置,因此不建议使用这两个。
57;
270; 直接链接到一个说明这个错误或者导致这个错误的函数的页面。
271; 你可以从http://www.php.net/docs.php下载php手册,
272; 并将docref_root指令指向你本地的手册所在的URL目录。
1080; 参见:http://twpug.net/modules/newbb/viewtopic.php?topic_id=1867&forum=14
1081; http://bugs.php.net/bug.php?id=29878
1082; http://www.faqs.org/faqs/jpeg-faq/part1/section-11.html
SC_Helper_Mobile.php https://github.com/zajii/ec-cube.git | PHP | 491 lines
1<?php
2/*
227     * 4. 画像を調整する。
228     * 5. 絵文字タグを絵文字コードに変換する。(require.php で設定)
229     *
237        // 端末に合わせて画像サイズを変換する。
238        ob_start(array('SC_MobileImage_Ex', 'handler'));
239
240        // 内部エンコーディングから Shift JIS に変換する。
241        ob_start('mb_output_handler');
242
242
243        //download.phpに対してカタカナ変換をするとファイルが壊れてしまうため回避する
244        if ($_SERVER['SCRIPT_FILENAME'] != HTML_REALDIR . 'mypage/download.php') {
245            // 全角カタカナを半角カタカナに変換する。
246            ob_start(create_function('$buffer', 'return mb_convert_kana($buffer, "k");'));
247        }
getResult.php https://github.com/amir-noori/grape.git | PHP | 109 lines
1<?php
2    
4    
5    require_once(dirname(__FILE__) . '/../../../src/showSite/tag.php');
6    require_once(dirname(__FILE__) . '/../../../src/db/DB.class.php');
28            $site = DB::executeQuery($query , true);
29            ob_start(); // begin collecting output
30            include dirname(__FILE__) . '/about.tpl';    
39        {
40            ob_start(); // begin collecting output
41            include dirname(__FILE__) . '/contact.tpl';    
91            $args = array('siteURL' => $path4 , 'showForums' => true);
92            require_once(dirname(__FILE__) . '/../../../modules/forum/main.php');
93            ob_start(); // begin collecting output
Debugger.php https://github.com/lm/nette.git | PHP | 661 lines
1<?php
2
175			}
176			self::$productionMode = !in_array(isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : php_uname('n'), $list, TRUE);
177		}
189		if (self::$logDirectory) {
190			ini_set('error_log', self::$logDirectory . '/php_error.log');
191		}
192
193		// php configuration
194		if (function_exists('ini_set')) {
250							'tab' => 'NEON',
251							'panel' => BlueScreen::highlightPhp($item['args'][0], $m[1])
252						);
367			if (empty($saved) && $logHandle = @fopen($exceptionFilename, 'w')) {
368				ob_start(); // double buffer prevents sending HTTP headers in some PHP
369				ob_start(function($buffer) use ($logHandle) { fwrite($logHandle, $buffer); }, 4096);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21