PageRenderTime 491ms queryTime 133ms sortTime 6ms getByIdsTime 186ms findMatchingLines 91ms

100+ results results for 'php ob_get_contents' (491 ms)

Not the results you expected?
sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
                    
1<?php
                    
2class SiteMailer
                    
52		$this->headers .= "MIME-Version: 1.0\r\n";		
                    
53		//$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
                    
54		$this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
                    
90			{
                    
91				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
92				$this->msgBody .= $this->attachment;				
                    
92				$this->msgBody .= $this->attachment;				
                    
93				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
94			}*/		
                    
107		include($filepath);
                    
108		$content = ob_get_contents();
                    
109		ob_end_clean();
                    
156	private function sendActivationToCustomer($property) {
                    
157		/*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n";
                    
158		$htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";
                    
                
VarCloner.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 300 lines
                    
1<?php
                    
2
                    
143                    case 'object':
                    
144                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
145                            $stub = new Stub();
                    
159                                } else {
                    
160                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
161                                }
                    
276        $obj = (object) array();
                    
277        self::$hashOffset = 16 - PHP_INT_SIZE;
                    
278        self::$hashMask = -1;
                    
283            // check if we are nested in an output buffering handler to prevent a fatal error with ob_start() below
                    
284            $obFuncs = array('ob_clean', 'ob_end_clean', 'ob_flush', 'ob_end_flush', 'ob_get_contents', 'ob_get_flush');
                    
285            foreach (debug_backtrace(PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS : false) as $frame) {
                    
297
                    
298        self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE));
                    
299    }
                    
                
ui.class.php https://gitlab.com/x33n/ampache | PHP | 355 lines
                    
1<?php
                    
2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
                    
46        header("HTTP/1.1 403 $error");
                    
47        require_once AmpConfig::get('prefix') . '/templates/show_denied.inc.php';
                    
48        exit;
                    
60        require AmpConfig::get('prefix') . '/templates/' . $template;
                    
61        $output = ob_get_contents();
                    
62        ob_end_clean();
                    
276    {
                    
277        require_once AmpConfig::get('prefix') . '/templates/header.inc.php';
                    
278    }
                    
289        }
                    
290        require_once AmpConfig::get('prefix') . '/templates/footer.inc.php';
                    
291        if (isset($_REQUEST['profiling'])) {
                    
302    {
                    
303        require AmpConfig::get('prefix') . '/templates/show_box_top.inc.php';
                    
304    }
                    
                
helper.php https://github.com/sengann/iks-school.com.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: helper.php 19422 2010-11-09 22:13:54Z chdemko $
                    
4 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
                    
144		$module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module);
                    
145		$path = JPATH_BASE.'/modules/'.$module->module.'/'.$module->module.'.php';
                    
146
                    
162			require $path;
                    
163			$module->content = ob_get_contents().$content;
                    
164			ob_end_clean();
                    
172
                    
173		require_once JPATH_BASE.'/templates/system/html/modules.php';
                    
174		$chromePath = JPATH_BASE.'/templates/'.$app->getTemplate().'/html/modules.php';
                    
203				$chromeMethod($module, $params, $attribs);
                    
204				$module->content = ob_get_contents();
                    
205				ob_end_clean();
                    
                
header.php https://github.com/karpenoktem/punbb.git | PHP | 316 lines
                    
1<?php
                    
2/**
                    
60	include FORUM_ROOT.'include/user/'.$cur_include[1];
                    
61	$tpl_temp = ob_get_contents();
                    
62	$tpl_main = str_replace($cur_include[0], $tpl_temp, $tpl_main);
                    
118// Include stylesheets
                    
119require FORUM_ROOT.'style/'.$forum_user['style'].'/'.$forum_user['style'].'.php';
                    
120
                    
120
                    
121$head_temp = forum_trim(ob_get_contents());
                    
122$num_temp = 0;
                    
                
index.php https://github.com/ECP-Black/ECP.git | PHP | 184 lines
                    
1<?php
                    
2function news($topicID = 0) {
                    
38			$tpl->display(DESIGN.'/tpl/news/news.html');
                    
39			$content = ob_get_contents();
                    
40			ob_end_clean();
                    
92		$tpl->display(DESIGN.'/tpl/news/news_archiv.html');
                    
93		$content = ob_get_contents();
                    
94		ob_end_clean();
                    
129			$tpl->display(DESIGN.'/tpl/news/news.html');
                    
130			$content = ob_get_contents();
                    
131			ob_end_clean();
                    
                
class-wp-customize-section.php https://bitbucket.org/joelkriteman/argento.git | PHP | 453 lines
                    
304		?>
                    
305		<li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
                    
306			<h3 class="accordion-section-title" tabindex="0">
                    
307				<?php echo esc_html( $this->title ); ?>
                    
308				<span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span>
                    
309			</h3>
                    
350		?>
                    
351		<li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
                    
352			<h3 class="accordion-section-title">
                    
352			<h3 class="accordion-section-title">
                    
353				<?php
                    
354				if ( $this->manager->is_theme_active() ) {
                    
366				<h2>
                    
367					<?php _e( 'Themes' ); ?>
                    
368					<span class="title-count theme-count"><?php echo count( $this->controls ) + 1 /* Active theme */; ?></span>
                    
                
eclipse.php https://github.com/200896596/moodle.git | PHP | 307 lines
                    
1<?php
                    
2/**
                    
10 */
                    
11include_once 'unit_tester.php';
                    
12include_once 'test_case.php';
                    
12include_once 'test_case.php';
                    
13include_once 'invoker.php';
                    
14include_once 'socket.php';
                    
14include_once 'socket.php';
                    
15include_once 'mock_objects.php';
                    
16/**#@-*/
                    
298        $this->_invoker->after($method);
                    
299        $output = ob_get_contents();
                    
300        ob_end_clean();
                    
                
write.real.php https://github.com/be3/ionize.git | PHP | 303 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
9//                                                             //
                    
10// write.real.php                                              //
                    
11// module for writing RealAudio/RealVideo tags                 //
                    
11// module for writing RealAudio/RealVideo tags                 //
                    
12// dependencies: module.tag.real.php                           //
                    
13//                                                            ///
                    
115							unlink($tempfilename);
                    
116							$this->errors[] = 'FAILED: copy('.$tempfilename.', '.$this->filename.') - '.strip_tags(ob_get_contents());
                    
117
                    
119
                    
120							$this->errors[] = 'Could not open '.$tempfilename.' mode "wb" - '.strip_tags(ob_get_contents());
                    
121
                    
131			} else {
                    
132				$errormessage = ob_get_contents();
                    
133				ob_end_clean();
                    
                
index.php https://github.com/ECP-Black/ECP.git | PHP | 265 lines
                    
1<?php
                    
2$conditions = array('LIMIT' 	=> LIMIT_COMMENTS,
                    
65			comments_get('user', $id, $conditions, 0, 0);
                    
66			$content = ob_get_contents();
                    
67			$tpl->assign('guestbook', $content);
                    
143			$tpl->display(DESIGN.'/tpl/user/user_stats.html');
                    
144			$content = ob_get_contents();
                    
145			ob_end_clean();	
                    
155			$tpl->display(DESIGN.'/tpl/user/user_details.html');
                    
156			$content = ob_get_contents();
                    
157			ob_end_clean();
                    
180		$tpl->display(DESIGN.'/tpl/user/user_online.html');
                    
181		$content = ob_get_contents();
                    
182		ob_end_clean();
                    
230	$tpl->display(DESIGN.'/tpl/user/user_list.html');
                    
231	$content = ob_get_contents();
                    
232	ob_end_clean();
                    
                
ext_std_output.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 309 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        |
                    
45const int64_t k_PHP_OUTPUT_HANDLER_STDFLAGS =
                    
46  k_PHP_OUTPUT_HANDLER_CLEANABLE | k_PHP_OUTPUT_HANDLER_FLUSHABLE |
                    
47  k_PHP_OUTPUT_HANDLER_REMOVABLE;
                    
64void HHVM_FUNCTION(ob_clean) {
                    
65  // PHP_OUTPUT_HANDLER_START is included by PHP5
                    
66  g_context->obClean(k_PHP_OUTPUT_HANDLER_START | k_PHP_OUTPUT_HANDLER_CLEAN);
                    
                
moduleinstallstep.php https://gitlab.com/alexprowars/bitrix | PHP | 483 lines
                    
1<?php
                    
2namespace Bitrix\Sale\CrmSiteMaster\Steps;
                    
152		<script type="text/javascript">
                    
153			BX.message(<?=\CUtil::PhpToJSObject($messages)?>);
                    
154			var ajaxWizardForm = new CAjaxWizardForm("<?=$formName?>", "iframe-post-form", "<?=$nextStepVarName?>");
                    
157		<?
                    
158		$content = ob_get_contents();
                    
159		ob_end_clean();
                    
238			$strError .= "<br /><br />".Loc::getMessage("SALE_CSM_WIZARD_MODULEINSTALLSTEP_ERROR_NOTICE", [
                    
239				"#MODULES_LINK#" => "/bitrix/admin/module_admin.php?lang=".LANGUAGE_ID
                    
240			]);
                    
350	{
                    
351		/** @noinspection PhpVariableNamingConventionInspection */
                    
352		global $DB, $APPLICATION;
                    
409
                    
410			/** @noinspection PhpVoidFunctionResultUsedInspection */
                    
411			if (!$module->InstallFiles())
                    
                
sysinfo.php https://github.com/ot2sen/Molajo.git | PHP | 244 lines
                    
69			$this->php_settings['session.auto_start']	= ini_get('session.auto_start');
                    
70			$this->php_settings['disable_functions']	= ini_get('disable_functions');
                    
71			$this->php_settings['xml']					= extension_loaded('xml');
                    
114			}
                    
115			$this->info['php']			= php_uname();
                    
116			$this->info['dbversion']	= $db->getVersion();
                    
117			$this->info['dbcollation']	= $db->getCollation();
                    
118			$this->info['phpversion']	= phpversion();
                    
119			$this->info['server']		= $sf;
                    
138			phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
                    
139			$phpinfo = ob_get_contents();
                    
140			ob_end_clean();
                    
213			$this->_addDirectory('templates', JPATH_SITE.'/templates');
                    
214			$this->_addDirectory('configuration.php', JPATH_CONFIGURATION.'/configuration.php');
                    
215			$this->_addDirectory('cache', JPATH_SITE.'/cache', 'COM_ADMIN_CACHE_DIRECTORY');
                    
                
element.php https://github.com/foxbei/joomla15.git | PHP | 713 lines
                    
1<?php
                    
2/**
                    
3* @package   ZOO Component
                    
4* @file      element.php
                    
5* @version   2.3.7 March 2011
                    
184		if ($layout == null) {
                    
185			$layout = "{$type}.php";
                    
186		}
                    
352		include($__layout);
                    
353		$__html = ob_get_contents();
                    
354		ob_end_clean();
                    
                
index.php https://github.com/kgiff/jquery-bbq.git | PHP | 307 lines
                    
1<?PHP
                    
2
                    
2
                    
3include "../index.php";
                    
4
                    
112<?
                    
113$shell['script'] = ob_get_contents();
                    
114ob_end_clean();
                    
208<?
                    
209$shell['html_head'] = ob_get_contents();
                    
210ob_end_clean();
                    
297<?
                    
298$shell['html_body'] = ob_get_contents();
                    
299ob_end_clean();
                    
                
GifCreator.php https://gitlab.com/billyprice1/mc-skintools | PHP | 349 lines
                    
1<?php
                    
2
                    
9     * @author    Sybio (Clément Guillemain  / @Sybio01)
                    
10     * @license   http://opensource.org/licenses/gpl-license.php GNU Public License
                    
11     * @copyright Clément Guillemain
                    
100                    imagegif($frames[$i]);
                    
101                    $this->frameSources[] = ob_get_contents();
                    
102                    ob_end_clean();
                    
114                    imagegif($resourceImg);
                    
115                    $this->frameSources[] = ob_get_contents();
                    
116                    ob_end_clean();
                    
                
selectmultiple.test.php https://github.com/limb-php-framework/limb-app-buildman.git | PHP | 248 lines
                    
1<?php
                    
2/**
                    
8 * @license    LGPL http://www.gnu.org/copyleft/lesser.html
                    
9 * @version    $Id: selectmultiple.test.php 5021 2007-02-12 13:04:07Z pachanga $
                    
10 * @package    wact
                    
12
                    
13require_once 'limb/wact/src/components/form/form.inc.php';
                    
14
                    
62    $select->renderContents();
                    
63    $out = ob_get_contents();
                    
64    ob_end_clean();
                    
96    $select->renderContents();
                    
97    $out = ob_get_contents();
                    
98    ob_end_clean();
                    
104  * This test is included to "simulate" a selection received via POST - remember
                    
105  * PHP will convert integers to strings so strict type checking in the select components
                    
106  * for selected values will fail
                    
                
unicode.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version $Id: unicode.php,v 1.1 2008/10/10 20:52:53 mj Exp $
                    
4* Tools for conversion between UTF-8 and unicode
                    
9* the Initial Developer. All Rights Reserved.
                    
10* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
                    
11* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
                    
13* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
                    
14* @see http://hsivonen.iki.fi/php-utf8/
                    
15* @package utf8
                    
25* Returns false if the input string isn't a valid UTF-8 octet sequence
                    
26* and raises a PHP error at level E_USER_WARNING
                    
27* Note: this function has been modified slightly in this library to
                    
32* @see utf8_from_unicode
                    
33* @see http://hsivonen.iki.fi/php-utf8/
                    
34* @package utf8
                    
                
%%6C^6C6^6C6DAB8F%%submissionEmailLog.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 135 lines
                    
2         compiled from sectionEditor/submissionEmailLog.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'sectionEditor/submissionEmailLog.tpl', 17, false),array('function', 'page_info', 'sectionEditor/submissionEmailLog.tpl', 68, false),array('function', 'page_links', 'sectionEditor/submissionEmailLog.tpl', 69, false),array('block', 'iterate', 'sectionEditor/submissionEmailLog.tpl', 46, false),array('modifier', 'date_format', 'sectionEditor/submissionEmailLog.tpl', 48, false),array('modifier', 'truncate', 'sectionEditor/submissionEmailLog.tpl', 50, false),array('modifier', 'escape', 'sectionEditor/submissionEmailLog.tpl', 50, false),)), $this); ?>
                    
85</strong></td>
                    
86		<td align="right"><?php if ($this->_tpl_vars['logEntry']->getAssocType()): ?><a href="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
                    
87/submissionEmailLogType/<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
                    
90" class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.related"), $this);?>
                    
91</a>&nbsp;<?php endif; ?><a href="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
                    
92/submissionEmailLog/<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
                    
94" class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.view"), $this);?>
                    
95</a><?php if ($this->_tpl_vars['isEditor']): ?>&nbsp;<a href="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
                    
96/clearSubmissionEmailLog/<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
                    
102	<tr valign="top">
                    
103		<td colspan="6" class="<?php if ($this->_tpl_vars['emailLogEntries']->eof()): ?>end<?php endif; ?>separator">&nbsp;</td>
                    
104	</tr>
                    
                
fetch.php https://github.com/mchurchward/moodle.git | PHP | 283 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
261        $instance->out($pagesize, true);
                    
262        $tablehtml = ob_get_contents();
                    
263        ob_end_clean();
                    
                
bad.php https://github.com/rietn/minima.git | PHP | 421 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version $Id: bad.php 16235 2010-04-20 04:13:25Z pasamio $
                    
4* Tools for locating / replacing bad bytes in UTF-8 strings
                    
9* the Initial Developer. All Rights Reserved.
                    
10* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
                    
11* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
                    
13* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
                    
14* @see http://hsivonen.iki.fi/php-utf8/
                    
15* @package utf8
                    
126    }
                    
127    $result = ob_get_contents();
                    
128    ob_end_clean();
                    
165    }
                    
166    $result = ob_get_contents();
                    
167    ob_end_clean();
                    
                
bad.php https://github.com/karpenoktem/punbb.git | PHP | 421 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version $Id: bad.php,v 1.2 2006/02/26 13:20:44 harryf Exp $
                    
4* Tools for locating / replacing bad bytes in UTF-8 strings
                    
9* the Initial Developer. All Rights Reserved.
                    
10* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
                    
11* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
                    
13* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
                    
14* @see http://hsivonen.iki.fi/php-utf8/
                    
15* @package utf8
                    
126    }
                    
127    $result = ob_get_contents();
                    
128    ob_end_clean();
                    
165    }
                    
166    $result = ob_get_contents();
                    
167    ob_end_clean();
                    
                
datainstallstep.php https://gitlab.com/alexprowars/bitrix | PHP | 326 lines
                    
1<?php
                    
2namespace Bitrix\Sale\CrmSiteMaster\Steps;
                    
15
                    
16require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/wizards/bitrix/portal/wizard.php");
                    
17
                    
17
                    
18/** @noinspection PhpUndefinedClassInspection */
                    
19/**
                    
100		<script type="text/javascript">
                    
101			BX.message(<?=\CUtil::PhpToJSObject($messages)?>);
                    
102			var ajaxForm = new CAjaxForm("<?=$formName?>", "iframe-post-form", "<?=$nextStepVarName?>");
                    
106		<?
                    
107		$content = ob_get_contents();
                    
108		ob_end_clean();
                    
129		{
                    
130			/** @noinspection PhpVariableNamingConventionInspection */
                    
131			global $APPLICATION;
                    
                
unicode.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
9* the Initial Developer. All Rights Reserved.
                    
10* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
                    
11* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
                    
13* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
                    
14* @see http://hsivonen.iki.fi/php-utf8/
                    
15* @package utf8
                    
25* Returns false if the input string isn't a valid UTF-8 octet sequence
                    
26* and raises a PHP error at level E_USER_WARNING
                    
27* Note: this function has been modified slightly in this library to
                    
32* @see utf8_from_unicode
                    
33* @see http://hsivonen.iki.fi/php-utf8/
                    
34* @package utf8
                    
192* surrogates or are outside the Unicode range
                    
193* and raises a PHP error at level E_USER_WARNING
                    
194* Note: this function has been modified slightly in this library to use
                    
                
gallery.php https://github.com/ECP-Black/ECP.git | PHP | 276 lines
                    
1<?php
                    
2function admin_gallery () {
                    
17	$tplc->display(DESIGN.'/tpl/admin/gallery_kate_overview.html');
                    
18	$content = ob_get_contents();
                    
19	ob_end_clean();
                    
30	$tplc->display(DESIGN.'/tpl/admin/gallery_overview.html');
                    
31	$content = ob_get_contents();
                    
32	ob_end_clean();
                    
35	$tpl->display(DESIGN.'/tpl/admin/gallery.html');
                    
36	$content = ob_get_contents();
                    
37	ob_end_clean();
                    
181			$tpl->display(DESIGN.'/tpl/admin/gallery_view_overview.html');
                    
182			$content = ob_get_contents();
                    
183			ob_end_clean();
                    
189		$tpl->display(DESIGN.'/tpl/admin/gallery_view'.(UPLOAD_METHOD == 'old' ? '_old' : '').'.html');
                    
190		$content = ob_get_contents();
                    
191		ob_end_clean();
                    
                
theme.php https://gitlab.com/Gashler/dp | PHP | 296 lines
                    
1<?php
                    
2/**
                    
25	if ( empty( $redirect ) )
                    
26		$redirect = wp_nonce_url('themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet);
                    
27	if ( false === ($credentials = request_filesystem_credentials($redirect)) ) {
                    
27	if ( false === ($credentials = request_filesystem_credentials($redirect)) ) {
                    
28		$data = ob_get_contents();
                    
29		ob_end_clean();
                    
30		if ( ! empty($data) ){
                    
31			include_once( ABSPATH . 'wp-admin/admin-header.php');
                    
32			echo $data;
                    
32			echo $data;
                    
33			include( ABSPATH . 'wp-admin/admin-footer.php');
                    
34			exit;
                    
40		request_filesystem_credentials($redirect, '', true); // Failed to connect, Error and request again
                    
41		$data = ob_get_contents();
                    
42		ob_end_clean();
                    
                
ecofilm-edicion-player.php https://gitlab.com/eco-film-festival/ecof-developer-2016 | PHP | 265 lines
                    
1<?
                    
2require 'ecofilm-csv.php';
                    
3
                    
93			</div>			
                    
94			<!--<code><?php //print_r($_result); ?></code> -->
                    
95			<?php
                    
95			<?php
                    
96			$list_markup = ob_get_contents();
                    
97			ob_end_clean();
                    
                
ext_std_output.php https://gitlab.com/iranjith4/hhvm | PHP | 302 lines
                    
27 * function has two parameters, the second parameter is filled with a
                    
28 * bit-field consisting of PHP_OUTPUT_HANDLER_START, PHP_OUTPUT_HANDLER_CONT
                    
29 * and PHP_OUTPUT_HANDLER_END.  If output_callback returns FALSE original
                    
36 * the output buffering functions like print_r($expression, true) or
                    
37 * highlight_file($filename, true) from a callback function.  In PHP 4.0.4,
                    
38 * ob_gzhandler() was introduced to facilitate sending gz-encoded data to web
                    
98
                    
99/* Flushes the write buffers of PHP and whatever backend PHP is using (CGI, a
                    
100 * web server, etc). This attempts to push current output all the way to the
                    
134<<__Native>>
                    
135function ob_get_contents(): mixed;
                    
136
                    
283<<__HipHopSpecific, __Native("NoInjection")>>
                    
284function hphp_get_hardware_counters(): mixed;
                    
285
                    
                
overview.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 255 lines
                    
44/**
                    
45 * http://www.php.net/manual/en/function.phpinfo.php
                    
46 * code at adspeed dot com
                    
112				<tr>
                    
113					<td><?php _e('PHP Version', 'ckeditor_wordpress'); ?></td><td><?php echo phpversion(); ?></td>
                    
114				</tr>
                    
118				<tr>
                    
119					<td><?php _e('PHP Max Upload Size', 'ckeditor_wordpress'); ?></td><td><?php echo $upload_max; ?></td>
                    
120				</tr>
                    
121				<tr>
                    
122					<td><?php _e('PHP Max Post Size', 'ckeditor_wordpress'); ?></td><td><?php echo $post_max; ?></td>
                    
123				</tr>
                    
124				<tr>
                    
125					<td><?php _e('PHP Memory Limit', 'ckeditor_wordpress'); ?></td><td><?php echo $memory_limit; ?></td>
                    
126				</tr>
                    
                
write.real.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 295 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
9//                                                             //
                    
10// write.real.php                                              //
                    
11// module for writing RealAudio/RealVideo tags                 //
                    
11// module for writing RealAudio/RealVideo tags                 //
                    
12// dependencies: module.tag.real.php                           //
                    
13//                                                            ///
                    
113							unlink($tempfilename);
                    
114							$this->errors[] = 'FAILED: copy('.$tempfilename.', '.$this->filename.') - '.strip_tags(ob_get_contents());
                    
115
                    
117
                    
118							$this->errors[] = 'Could not open '.$tempfilename.' mode "wb" - '.strip_tags(ob_get_contents());
                    
119
                    
270						unlink($tempfilename);
                    
271						$this->errors[] = 'FAILED: copy('.$tempfilename.', '.$this->filename.') - '.strip_tags(ob_get_contents());
                    
272
                    
                
theme.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
25	if ( empty( $redirect ) )
                    
26		$redirect = wp_nonce_url('themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet);
                    
27	if ( false === ($credentials = request_filesystem_credentials($redirect)) ) {
                    
27	if ( false === ($credentials = request_filesystem_credentials($redirect)) ) {
                    
28		$data = ob_get_contents();
                    
29		ob_end_clean();
                    
30		if ( ! empty($data) ){
                    
31			include_once( ABSPATH . 'wp-admin/admin-header.php');
                    
32			echo $data;
                    
32			echo $data;
                    
33			include( ABSPATH . 'wp-admin/admin-footer.php');
                    
34			exit;
                    
40		request_filesystem_credentials($url, '', true); // Failed to connect, Error and request again
                    
41		$data = ob_get_contents();
                    
42		ob_end_clean();
                    
                
class-wp-image-editor.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 403 lines
                    
1<?php
                    
2/**
                    
339		if ( $result && $stream ) {
                    
340			$contents = ob_get_contents();
                    
341
                    
                
error_api.php https://github.com/fusenigk/mantisbt-1.git | PHP | 449 lines
                    
1<?php
                    
2# MantisBT - A PHP based bugtracking system
                    
25 *
                    
26 * @uses compress_api.php
                    
27 * @uses config_api.php
                    
27 * @uses config_api.php
                    
28 * @uses constant_api.php
                    
29 * @uses database_api.php
                    
29 * @uses database_api.php
                    
30 * @uses html_api.php
                    
31 * @uses lang_api.php
                    
33
                    
34require_api( 'compress_api.php' );
                    
35require_api( 'config_api.php' );
                    
35require_api( 'config_api.php' );
                    
36require_api( 'constant_inc.php' );
                    
37require_api( 'database_api.php' );
                    
                
move_posts.php https://github.com/PanPan50/lesitedecuisine.git | PHP | 319 lines
                    
86	<div class="main-head">
                    
87		<h2 class="hn"><span><?php echo end($forum_page['crumbs']) ?></span></h2>
                    
88	</div>
                    
96					<div class="sf-box select">
                    
97						<label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_pun_move_posts['Destination forum']?></span></label><br />
                    
98						<span class="fld-input"><select id="<?php echo $forum_page['fld_count'] ?>" name="move_to_forum">
                    
136
                    
137	require FORUM_ROOT.'footer.php';
                    
138}
                    
205					<div class="sf-box select">
                    
206						<label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_pun_move_posts['Destination topic']?></span></label><br />
                    
207						<span class="fld-input"><select id="<?php echo $forum_page['fld_count'] ?>" name="move_to_topic">
                    
230						<span class="fld-input"><input type="checkbox" id="fld2" name="change_time" value="1" /></span>
                    
231						<label for="fld2"><span><?php echo $lang_pun_move_posts['Ignore dates']?></span> <?php echo $lang_pun_move_posts['Ignore text']?></label>
                    
232					</div>
                    
                
CBaseListViewUI.php https://github.com/rvma07/siga.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
16 * @author Qiang Xue <qiang.xue@gmail.com>
                    
17 * @version $Id: CBaseListView.php 196 2010-06-28 21:44:54Z qiang.xue $
                    
18 * @package zii.widgets
                    
158			$this->$method();
                    
159			$html=ob_get_contents();
                    
160			ob_clean();
                    
                
color.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 361 lines
                    
1<?php
                    
2	foreach($_REQUEST as $key => $value){
                    
85					imagepng($im);
                    
86					 $changed_file = base64_encode(ob_get_contents());
                    
87					 ob_end_clean();
                    
122						imagepng($im);
                    
123					 $changed_file = base64_encode(ob_get_contents());
                    
124					 ob_end_clean();
                    
146					imagepng($im);
                    
147					 $changed_file = base64_encode(ob_get_contents());
                    
148					 ob_end_clean();
                    
188						imagepng($im);
                    
189					 $changed_file = base64_encode(ob_get_contents());
                    
190					 ob_end_clean();
                    
226						imagepng($im);
                    
227					 $changed_file = base64_encode(ob_get_contents());
                    
228					 ob_end_clean();
                    
                
bad.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 395 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version $Id: bad.php 4 2012-08-07 21:08:48Z cmb69 $
                    
4* Tools for locating / replacing bad bytes in UTF-8 strings
                    
9* the Initial Developer. All Rights Reserved.
                    
10* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
                    
11* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
                    
13* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
                    
14* @see http://hsivonen.iki.fi/php-utf8/
                    
15* @package utf8
                    
120    }
                    
121    $result = ob_get_contents();
                    
122    ob_end_clean();
                    
157    }
                    
158    $result = ob_get_contents();
                    
159    ob_end_clean();
                    
                
%%18^180^180E8F63%%edit.tpl.php https://github.com/roycocup/Tests.git | PHP | 192 lines
                    
28						<?php endif; ?>
                    
29						<option <?php if ($this->_tpl_vars['posted']['client']['id'] == $this->_tpl_vars['client']->id): ?> selected <?php endif; ?>value="<?php echo $this->_tpl_vars['client']->id; ?>
                    
30"><?php echo $this->_tpl_vars['client']->name; ?>
                    
52						<?php endif; ?>
                    
53						<option <?php if ($this->_tpl_vars['posted']['jobId'] == $this->_tpl_vars['job']->job_id): ?> selected <?php endif; ?> value="<?php echo $this->_tpl_vars['job']->job_id; ?>
                    
54"><?php echo $this->_tpl_vars['job']->job_number; ?>
                    
107'); " /><?php endif; ?>
                    
108				Alter description (optional) <input type="text" name="editJob[thumbAlt]" class="medium" <?php if ($this->_tpl_vars['posted']['media']['thumbs']['0']['description'] != ''): ?> value="<?php echo $this->_tpl_vars['posted']['media']['thumbs']['0']['description']; ?>
                    
109" <?php endif; ?> />
                    
123				<div id="date">
                    
124					<input type="text" id="editJob[datePublished]" name="editJob[datePublished]" <?php if ($this->_tpl_vars['posted']['datePublished'] != ''): ?> value=<?php echo $this->_tpl_vars['posted']['datePublished']->tostring('dd/MM/YYYY'); ?>
                    
125 <?php endif; ?> />
                    
134?>
                    
135						<option <?php if ($this->_tpl_vars['posted']['status']->id == $this->_tpl_vars['state']['id']): ?> selected <?php endif; ?> value="<?php echo $this->_tpl_vars['state']['id']; ?>
                    
136"><?php echo $this->_tpl_vars['state']['name']; ?>
                    
                
developer_task.php https://github.com/mihalyf/gallery3-contrib.git | PHP | 335 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
60    case 5:               // Generate admin controller
                    
61      $file = "{$context['module_path']}/controllers/admin_{$context['module']}.php";
                    
62      ob_start();
                    
67      print $v->render();
                    
68      file_put_contents($file, ob_get_contents());
                    
69      ob_end_clean();
                    
71    case 6:               // Generate admin form
                    
72      $file = "{$context['module_path']}/views/admin_{$context['module']}.html.php";
                    
73      ob_start();
                    
78      print $v->render();
                    
79      file_put_contents($file, ob_get_contents());
                    
80      ob_end_clean();
                    
82    case 7:               // Generate controller
                    
83      $file = "{$context['module_path']}/controllers/{$context['module']}.php";
                    
84      ob_start();
                    
                
Minify.php https://github.com/seanrowe/Swarm-Admin-OS.git | PHP | 377 lines
                    
1<?php
                    
2
                    
53		$dependencies = array(
                    
54			new CFileCacheDependency(Yii::app()->basePath . DS . 'config' . DS . 'js.php'),
                    
55			new CFileCacheDependency(Yii::app()->basePath . DS . 'config' . DS . 'css.php')
                    
99
                    
100			if (false === isset($file['php']))
                    
101			{
                    
101			{
                    
102				$file['php'] = false;
                    
103			}
                    
107			{
                    
108				if (true === $file['php'])
                    
109				{
                    
111					require($file['file']);
                    
112					$str = ob_get_contents();
                    
113					ob_end_clean();
                    
                
lib.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 287 lines
                    
1<?php
                    
2
                    
28
                    
29require_once(__DIR__ . '/../lib.php');            // interface definition
                    
30require_once(__DIR__ . '/../../locallib.php');    // workshop internal API
                    
30require_once(__DIR__ . '/../../locallib.php');    // workshop internal API
                    
31require_once(__DIR__ . '/../random/lib.php');     // random allocator
                    
32require_once(__DIR__ . '/settings_form.php');     // our settings form
                    
120        $this->mform->display();
                    
121        $out .= ob_get_contents();
                    
122        ob_end_clean();
                    
275    // let's have some fun!
                    
276    require_once($CFG->dirroot.'/mod/workshop/locallib.php');
                    
277
                    
                
bad.php https://github.com/Shigaru/shigaru.git | PHP | 421 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version $Id: bad.php 10381 2008-06-01 03:35:53Z pasamio $
                    
4* Tools for locating / replacing bad bytes in UTF-8 strings
                    
9* the Initial Developer. All Rights Reserved.
                    
10* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
                    
11* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
                    
13* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
                    
14* @see http://hsivonen.iki.fi/php-utf8/
                    
15* @package utf8
                    
126    }
                    
127    $result = ob_get_contents();
                    
128    ob_end_clean();
                    
165    }
                    
166    $result = ob_get_contents();
                    
167    ob_end_clean();
                    
                
Debug.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 142 lines
                    
1<?php
                    
2/*
                    
63        var_dump($var);
                    
64        $dump = ob_get_contents();
                    
65        ob_end_clean();
                    
                
c8627ecba3e646b036151fcaa8d06a98c8c7b824.file.payment_execution.tpl.php https://gitlab.com/nghiep5890/prestashop | PHP | 126 lines
                    
33
                    
34<?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?><?php echo smartyTranslate(array('s'=>'Check payment','mod'=>'cheque'),$_smarty_tpl);?>
                    
35<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                    
36if (!empty($_capture_buffer)) {
                    
37 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    
38 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
                    
71				<?php if ($_smarty_tpl->tpl_vars['use_taxes']->value==1) {?>
                    
72					<?php echo smartyTranslate(array('s'=>'(tax incl.)','mod'=>'cheque'),$_smarty_tpl);?>
                    
73
                    
91							<option value="<?php echo $_smarty_tpl->tpl_vars['currency']->value['id_currency'];?>
                    
92"<?php if (isset($_smarty_tpl->tpl_vars['currencies']->value)&&$_smarty_tpl->tpl_vars['currency']->value['id_currency']==$_smarty_tpl->tpl_vars['cust_currency']->value) {?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['currency']->value['name'];?>
                    
93</option>
                    
108				<br />
                    
109				- <?php echo smartyTranslate(array('s'=>'Please confirm your order by clicking \'I confirm my order\'','mod'=>'cheque'),$_smarty_tpl);?>
                    
110.
                    
                
module.graphic.jpg.php https://github.com/KenBoyer/CompactCMS.git | PHP | 343 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
9//                                                             //
                    
10// module.graphic.jpg.php                                      //
                    
11// module for analyzing JPEG Image files                       //
                    
11// module for analyzing JPEG Image files                       //
                    
12// dependencies: PHP compiled with --enable-exif (optional)    //
                    
13//               module.tag.xmp.php (optional)                 //
                    
35		if (isset($imageinfo['APP13'])) {
                    
36			// http://php.net/iptcparse
                    
37			// http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html
                    
66							$ThisFileInfo['jpg']['exif'] = exif_read_data($ThisFileInfo['filenamepath'], '', true, false);
                    
67							$errors = ob_get_contents();
                    
68							if ($errors) {
                    
76					} else {
                    
77						$ThisFileInfo['warning'][] = 'EXIF parsing only available when '.(GETID3_OS_ISWINDOWS ? 'php_exif.dll enabled' : 'compiled with --enable-exif');
                    
78					}
                    
                
helper-functions.php https://gitlab.com/websumon/tosnib | PHP | 308 lines
                    
1<?php
                    
2/**
                    
31
                    
32	include_once( cmb2_dir( "includes/{$class_name}.php" ) );
                    
33}
                    
224	cmb2_print_metabox_form( $cmb, $object_id, $args );
                    
225	$form = ob_get_contents();
                    
226	ob_end_clean();
                    
                
Reporting.php https://gitlab.com/yousafsyed/easternglamor | PHP | 318 lines
                    
19} else {
                    
20    include_once 'PHP/CodeSniffer.php';
                    
21}
                    
109     * 
                    
110     * @param PHP_CodeSniffer_File $phpcsFile The file that has been processed.
                    
111     * @param array                $cliValues An array of command line arguments.
                    
114     */
                    
115    public function cacheFileReport(PHP_CodeSniffer_File $phpcsFile, array $cliValues)
                    
116    {
                    
232     *
                    
233     * @param PHP_CodeSniffer_File $phpcsFile The file that has been processed.
                    
234     *
                    
236     */
                    
237    public function prepareFileReport(PHP_CodeSniffer_File $phpcsFile)
                    
238    {
                    
                
application.php https://github.com/rietn/minima.git | PHP | 366 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: application.php 20478 2011-01-28 17:48:29Z infograf768 $
                    
4 * @package		Joomla.Installation
                    
75		// Import the controller.
                    
76		require_once JPATH_COMPONENT.'/controller.php';
                    
77
                    
83		// Get output from the buffer and clean it.
                    
84		$contents = ob_get_contents();
                    
85		ob_end_clean();
                    
88			'template'	=> 'template',
                    
89			'file'		=> 'index.php',
                    
90			'directory' => JPATH_THEMES,
                    
                
template.class.php https://github.com/konfirm/konsolidate.git | PHP | 383 lines
                    
1<?php
                    
2
                    
53		/**
                    
54		 *  Does the server support short PHP open tags
                    
55		 *  @name    _shortopentag
                    
158						case "NULL":
                    
159						case "user function": // depricated since PHP 4
                    
160						case "unknown type": // omgwtfbbq!1one!
                    
260
                    
261				//  include the template, so the PHP code inside is executed and the content is send to the output buffer
                    
262				if ( $sTemplate{0} != "/" )
                    
267
                    
268				//  get the buffer contents and convert the request-time PHP tags to normal PHP tags
                    
269				$sCapture = strtr( ob_get_contents(), Array( "<!?"=>"<?", "?!>"=>"?>" ) );
                    
277					$sCapture = preg_replace( "/<\?=\s*/", "<?php echo ", $sCapture );
                    
278					$sCapture = preg_replace( "/<\?[^php]/", "<?php", $sCapture );
                    
279				}
                    
                
Image.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 544 lines
                    
10 * file that was distributed with this source code. For the full list of
                    
11 * contributors, visit https://github.com/PHPOffice/PHPWord/contributors.
                    
12 *
                    
12 *
                    
13 * @link        https://github.com/PHPOffice/PHPWord
                    
14 * @copyright   2010-2016 PHPWord contributors
                    
17
                    
18namespace PhpOffice\PhpWord\Element;
                    
19
                    
20use PhpOffice\PhpWord\Exception\CreateTemporaryFileException;
                    
21use PhpOffice\PhpWord\Exception\InvalidImageException;
                    
22use PhpOffice\PhpWord\Exception\UnsupportedImageTypeException;
                    
433     *
                    
434     * @throws \PhpOffice\PhpWord\Exception\CreateTemporaryFileException
                    
435     */
                    
                
helper.php https://bitbucket.org/eternaware/joomus.git | PHP | 523 lines
                    
1<?php
                    
2/**
                    
160		$module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module);
                    
161		$path = JPATH_BASE . '/modules/' . $module->module . '/' . $module->module . '.php';
                    
162
                    
176			include $path;
                    
177			$module->content = ob_get_contents() . $content;
                    
178			ob_end_clean();
                    
186
                    
187		include_once JPATH_THEMES . '/system/html/modules.php';
                    
188		$chromePath = JPATH_THEMES . '/' . $template . '/html/modules.php';
                    
229				$chromeMethod($module, $params, $attribs);
                    
230				$module->content = ob_get_contents();
                    
231				ob_end_clean();
                    
270		// Build the template and base path for the layout
                    
271		$tPath = JPATH_THEMES . '/' . $template . '/html/' . $module . '/' . $layout . '.php';
                    
272		$bPath = JPATH_BASE . '/modules/' . $module . '/tmpl/' . $defaultLayout . '.php';
                    
                
helper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 515 lines
                    
1<?php
                    
2/**
                    
161		$module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module);
                    
162		$path = JPATH_BASE . '/modules/' . $module->module . '/' . $module->module . '.php';
                    
163
                    
176			include $path;
                    
177			$module->content = ob_get_contents() . $content;
                    
178			ob_end_clean();
                    
186
                    
187		include_once JPATH_THEMES . '/system/html/modules.php';
                    
188		$chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/modules.php';
                    
222				$chromeMethod($module, $params, $attribs);
                    
223				$module->content = ob_get_contents();
                    
224				ob_end_clean();
                    
263		// Build the template and base path for the layout
                    
264		$tPath = JPATH_THEMES . '/' . $template . '/html/' . $module . '/' . $layout . '.php';
                    
265		$bPath = JPATH_BASE . '/modules/' . $module . '/tmpl/' . $defaultLayout . '.php';
                    
                
importlib_test.php https://github.com/mackensen/moodle.git | PHP | 204 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17/**
                    
18 * Unit tests for grade/import/lib.php.
                    
19 *
                    
20 * @package   core_grades
                    
21 * @category  phpunit
                    
22 * @copyright 2015 Adrian Greeve <adrian@moodle.com>
                    
28global $CFG;
                    
29require_once($CFG->dirroot . '/grade/import/lib.php');
                    
30
                    
198        $status = grade_import_commit($course->id, $importcode);
                    
199        $output = ob_get_contents();
                    
200        ob_end_clean();
                    
                
ErrorProcessorTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 339 lines
                    
1<?php
                    
2/**
                    
16
                    
17class ErrorProcessorTest extends \PHPUnit_Framework_TestCase
                    
18{
                    
24
                    
25    /** @var \PHPUnit_Framework_MockObject_MockObject */
                    
26    protected $_appStateMock;
                    
87        /** Get output buffer. */
                    
88        $actualResult = ob_get_contents();
                    
89        ob_end_clean();
                    
125        $this->_errorProcessor->renderErrorMessage('Message', 'Message trace.', 401);
                    
126        $actualResult = ob_get_contents();
                    
127        ob_end_clean();
                    
142        /** Get output buffer. */
                    
143        $actualResult = ob_get_contents();
                    
144        ob_end_clean();
                    
                
XML.php https://github.com/mwturnage/frapi-1.git | PHP | 373 lines
                    
1<?php
                    
2/**
                    
94            ob_start();
                    
95            echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
                    
96            include $file;
                    
96            include $file;
                    
97            $xml = ob_get_contents();
                    
98            ob_end_clean();
                    
105            ob_start();
                    
106            echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
                    
107            include $file;
                    
107            include $file;
                    
108            $xml = ob_get_contents();
                    
109            ob_end_clean();
                    
160    /**
                    
161     * Generate XML representation of PHP Array
                    
162     *
                    
                
dumper.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 359 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: dumper.php 1782 2008-04-25 17:09:06Z pp11 $
                    
7 */
                    
353        print_r($variable);
                    
354        $formatted = ob_get_contents();
                    
355        ob_end_clean();
                    
                
VarCloner.php https://gitlab.com/ealexis.t/trends | PHP | 300 lines
                    
1<?php
                    
2
                    
143                    case 'object':
                    
144                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
145                            $stub = new Stub();
                    
159                                } else {
                    
160                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
161                                }
                    
276        $obj = (object) array();
                    
277        self::$hashOffset = 16 - PHP_INT_SIZE;
                    
278        self::$hashMask = -1;
                    
283            // check if we are nested in an output buffering handler to prevent a fatal error with ob_start() below
                    
284            $obFuncs = array('ob_clean', 'ob_end_clean', 'ob_flush', 'ob_end_flush', 'ob_get_contents', 'ob_get_flush');
                    
285            foreach (debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) as $frame) {
                    
297
                    
298        self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE));
                    
299    }
                    
                
test_ext_curl.cpp https://github.com/kevlund/hiphop-php.git | C++ | 398 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   +----------------------------------------------------------------------+
                    
165    f_curl_exec(c);
                    
166    String res = f_ob_get_contents();
                    
167    VS(res, "curl_write_func called with OK");
                    
                
HTML.php https://bitbucket.org/lordgnu/php_codesniffer.git | PHP | 292 lines
                    
12 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
                    
13 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
14 */
                    
16if (class_exists('PHP_CodeSniffer_DocGenerators_Generator', true) === false) {
                    
17    throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_DocGenerators_Generator not found');
                    
18}
                    
33 * @version   Release: @package_version@
                    
34 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
35 */
                    
35 */
                    
36class PHP_CodeSniffer_DocGenerators_HTML extends PHP_CodeSniffer_DocGenerators_Generator
                    
37{
                    
193        echo 'Documentation generated on '.date('r');
                    
194        echo ' by <a href="http://pear.php.net/package/PHP_CodeSniffer">PHP_CodeSniffer @package_version@</a>';
                    
195        echo '</div>'.PHP_EOL;
                    
                
bad.php https://github.com/mbehiels/pkp-lib.git | PHP | 421 lines
                    
1<?php
                    
2/**
                    
9* the Initial Developer. All Rights Reserved.
                    
10* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
                    
11* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
                    
13* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
                    
14* @see http://hsivonen.iki.fi/php-utf8/
                    
15* @package utf8
                    
126    }
                    
127    $result = ob_get_contents();
                    
128    ob_end_clean();
                    
165    }
                    
166    $result = ob_get_contents();
                    
167    ob_end_clean();
                    
245* @see utf8_bad_explain
                    
246* @see http://hsivonen.iki.fi/php-utf8/
                    
247* @package utf8
                    
                
class.mvc_view.php https://bitbucket.org/kenaku/karate.git | PHP | 288 lines
                    
1<?php
                    
2
                    
10    
                    
11    function define($template, $params=array(), $engine='php', $context=FALSE)
                    
12    {
                    
22     */
                    
23    function initialize($template, $params=array(), $engine='php', $context=FALSE)
                    
24    {
                    
141    		
                    
142    		$content = ob_get_contents();
                    
143    		ob_clean();
                    
239       // Append the suffix
                    
240       $path = $path . '.php';
                    
241
                    
                
easysimpleimage.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 440 lines
                    
1<?php
                    
2/**
                    
4 * @copyright	Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
                    
5 * @license		GNU/GPL, see LICENSE.php
                    
6 *
                    
10 * other free or open source software licenses.
                    
11 * See COPYRIGHT.php for copyright notices and details.
                    
12 */
                    
14/*
                    
15* File: SimpleImage.php
                    
16* Author: Simon Jarvis
                    
18* Date: 08/11/06
                    
19* Link: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php
                    
20*
                    
286		// currently this only support jpeg
                    
287		// see http://php.net/manual/en/function.imagerotate.php
                    
288		if( $this->image_type == IMAGETYPE_JPEG )
                    
                
ConsoleTest.php https://bitbucket.org/fsilva/slick-framework.git | PHP | 332 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP version 5
                    
7 *
                    
116            $this->_console->log("Info");
                    
117            $output = ob_get_contents();
                    
118            ob_clean();
                    
120            $this->_console->log("Error log", 'debug');
                    
121            $colorPutput = ob_get_contents();
                    
122        ob_end_clean();
                    
156            $this->_console->out($txt, true);
                    
157            $output = ob_get_contents();
                    
158        ob_end_clean();
                    
173                ->out('Done!');
                    
174            $output = ob_get_contents();
                    
175        ob_end_clean();
                    
                
Block.php https://github.com/pixelplant/ZeroG.git | PHP | 487 lines
                    
1<?php
                    
2/**
                    
41		/**
                    
42		 * The actual template resource (php code for the view)
                    
43		 *
                    
48		/**
                    
49		 * The PHP/HTML code loaded from the block's template
                    
50		 *
                    
173				$this->_template = $this->getPath().$template;
                    
174			// old code, where we first loaded the php/html code
                    
175			/*if ($template != '')
                    
191		/**
                    
192		 * Render the current php/html block
                    
193		 * @return <string> The final generated HTML code
                    
209					echo $this->_code;
                    
210				//$renderedCode = ob_get_contents();
                    
211				//ob_end_clean();
                    
                
function.ob-start.html https://bitbucket.org/thncr/manuals.git | HTML | 236 lines
                    
11 <div class="up"><a href="ref.outcontrol.html">Output Control 函数</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="function.ob-start" class="refentry">
                    
15  <h1 class="refname">ob_start</h1>
                    
16  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">ob_start</span> &mdash; <span class="dc-title">打开输出控制缓冲</span></p>
                    
17
                    
32  <p class="para">
                    
33    内部缓冲区的内容可以用  <span class="function"><a href="function.ob-get-contents.html" class="function">ob_get_contents()</a></span> 函数复制到一个字符串变量中。
                    
34    想要输出存储在内部缓冲区中的内容,可以使用  <span class="function"><a href="function.ob-end-flush.html" class="function">ob_end_flush()</a></span> 函数。另外,
                    
73       如果回调函数有两个参数,第二个参数会由一个位域补充,该位域由
                    
74       <strong><code>PHP_OUTPUT_HANDLER_START</code></strong>,
                    
75       <strong><code>PHP_OUTPUT_HANDLER_CONT</code></strong> 和
                    
193<div class="phpcode"><code><span style="color: #000000">
                    
194<span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">callback</span><span style="color: #007700">(</span><span style="color: #0000BB">$buffer</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;replace&nbsp;all&nbsp;the&nbsp;apples&nbsp;with&nbsp;oranges<br />&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;(</span><span style="color: #0000BB">str_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">"apples"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"oranges"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$buffer</span><span style="color: #007700">));<br />}<br /><br /></span><span style="color: #0000BB">ob_start</span><span style="color: #007700">(</span><span style="color: #DD0000">"callback"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;<br /></span>&lt;html&gt;<br />&lt;body&gt;<br />&lt;p&gt;It's&nbsp;like&nbsp;comparing&nbsp;apples&nbsp;to&nbsp;oranges.&lt;/p&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /><span style="color: #0000BB">&lt;?php<br /><br />ob_end_flush</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">?&gt;</span>
                    
195</span>
                    
                
fe600b33e86b4eccedcff28f9d43a798285df20d.file.addresses.tpl.php https://gitlab.com/nghiep5890/prestashop | PHP | 145 lines
                    
35),false); /*/%%SmartyHeaderCode%%*/?>
                    
36<?php if ($_valid && !is_callable('content_583717750a0988_84899217')) {function content_583717750a0988_84899217($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_replace')) include 'C:\\xampp\\htdocs\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php';
                    
37?>
                    
37?>
                    
38<?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
                    
39"><?php echo smartyTranslate(array('s'=>'My account'),$_smarty_tpl);?>
                    
76    	<div class="col-xs-12 col-sm-6 address">
                    
77			<ul class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {?>last_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {?>first_item<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index']%2) {?> alternate_item<?php } else { ?> item<?php }?> box">
                    
78                <li><h3 class="page-subheading"><?php echo $_smarty_tpl->tpl_vars['address']->value['object']['alias'];?>
                    
135</span></a></li>
                    
136	<li><a class="btn btn-default button button-small" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value)&&$_smarty_tpl->tpl_vars['force_ssl']->value) {?><?php echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value;?>
                    
137<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
                    
137<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
                    
138<?php }?>"><span><i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Home'),$_smarty_tpl);?>
                    
139</span></a></li>
                    
                
navigation.php https://gitlab.com/ppapadatis/Videolearn | PHP | 292 lines
                    
81                                <ul class="menu">
                    
82                                    <li class="<?php echo ($view == 'discover' ? 'active ' : false); ?>media-medianav-discover"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=discover'); ?>"><?php echo JText::_('COM_HWDMS_DISCOVER'); ?></a></li>
                    
83                                    <li class="<?php echo (($view == 'media' || $view == 'mediaitem') ? 'active ' : false); ?>media-medianav-media"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=media'); ?>"><?php echo JText::_('COM_HWDMS_MEDIA'); ?></a></li>
                    
83                                    <li class="<?php echo (($view == 'media' || $view == 'mediaitem') ? 'active ' : false); ?>media-medianav-media"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=media'); ?>"><?php echo JText::_('COM_HWDMS_MEDIA'); ?></a></li>
                    
84                                    <li class="<?php echo (($view == 'categories' || $view == 'category') ? 'active ' : false); ?>media-medianav-categories"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=categories'); ?>"><?php echo JText::_('COM_HWDMS_CATEGORIES'); ?></a></li>
                    
85                                    <li class="<?php echo (($view == 'albums' || $view == 'album') ? 'active ' : false); ?>media-medianav-albums"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=albums'); ?>"><?php echo JText::_('COM_HWDMS_ALBUMS'); ?></a></li>
                    
90                                    <li class="<?php echo ($view == 'account' ? 'active ' : false); ?>media-medianav-account"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=account'); ?>"><?php echo JText::_('COM_HWDMS_MY_ACCOUNT'); ?></a></li>
                    
91                                    <li class="<?php echo ($view == 'search' ? 'active ' : false); ?>media-medianav-search"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=search'); ?>"><?php echo JText::_('COM_HWDMS_SEARCH'); ?></a></li>
                    
92                                </ul>
                    
125                    <li class="media-accountnav-favourites"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=account&layout=favourites'); ?>"><?php echo JText::_('COM_HWDMS_MY_FAVOURITES'); ?></a></li>
                    
126                    <?php if ($config->get('enable_albums')): ?><li class="media-accountnav-albums"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=account&layout=albums'); ?>"><?php echo JText::_('COM_HWDMS_MY_ALBUMS'); ?></a></li><?php endif; ?>
                    
127                    <?php if ($config->get('enable_groups')): ?><li class="media-accountnav-groups"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=account&layout=groups'); ?>"><?php echo JText::_('COM_HWDMS_MY_GROUPS'); ?></a></li><?php endif; ?>
                    
128                    <?php if ($config->get('enable_playlists')): ?><li class="media-accountnav-playlists"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=account&layout=playlists'); ?>"><?php echo JText::_('COM_HWDMS_MY_PLAYLISTS'); ?></a></li><?php endif; ?>
                    
129                    <?php if ($config->get('enable_subscriptions')): ?><li class="media-accountnav-subscriptions"><a href="<?php echo JRoute::_('index.php?option=com_hwdmediashare&view=account&layout=subscriptions'); ?>"><?php echo JText::_('COM_HWDMS_MY_SUBSCRIPTIONS'); ?></a></li><?php endif; ?>
                    
130                  </ul>
                    
                
CoreMacros.php https://bitbucket.org/iiic/iszp.git | PHP | 413 lines
                    
1<?php
                    
2
                    
17	Nette\Latte\MacroNode,
                    
18	Nette\Latte\PhpWriter;
                    
19
                    
32 * - {!=expression} echo without escaping
                    
33 * - {?expression} evaluate PHP statement
                    
34 * - {_expression} echo translation with escaping
                    
73		$me->addMacro('debugbreak', array($me, 'macroDebugbreak'));
                    
74		$me->addMacro('l', '?>{<?php');
                    
75		$me->addMacro('r', '?>}<?php');
                    
110	 */
                    
111	public function macroIf(MacroNode $node, PhpWriter $writer)
                    
112	{
                    
126	 */
                    
127	public function macroEndIf(MacroNode $node, PhpWriter $writer)
                    
128	{
                    
                
media.php https://gitlab.com/ppapadatis/Videolearn | PHP | 309 lines
                    
15{
                    
16	require_once( JPATH_BASE.'/components/com_community/libraries/core.php');
                    
17}
                    
42
                    
43                JLoader::register('hwdMediaShareFactory', JPATH_ROOT.'/components/com_hwdmediashare/libraries/factory.php');
                    
44                JLoader::register('hwdMediaShareHelperRoute', JPATH_ROOT.'/components/com_hwdmediashare/helpers/route.php');
                    
137                ob_start();
                    
138                require 'assets/tmpl/default.php';
                    
139                $html = ob_get_contents();
                    
211                JLoader::register('hwdMediaShareFactory', JPATH_ROOT.'/components/com_hwdmediashare/libraries/factory.php');
                    
212                JLoader::register('hwdMediaShareHelperRoute', JPATH_ROOT.'/components/com_hwdmediashare/helpers/route.php');
                    
213
                    
237          <div class="media-item-format-1-<?php echo $item->media_type; ?>">
                    
238             <img src="<?php echo JHtml::_('hwdicon.overlay', '1-'.$item->media_type, $item); ?>" alt="<?php echo JText::_('COM_HWDMS_MEDIA_TYPE'); ?>" />
                    
239          </div>
                    
                
baseservicehandler.php https://gitlab.com/alexprowars/bitrix | PHP | 453 lines
                    
1<?php
                    
2namespace Bitrix\Sale\PaySystem;
                    
83
                    
84				$buffer = ob_get_contents();
                    
85				if ($buffer <> '')
                    
131		{
                    
132			$templatePath = $documentRoot.$folder.'/'.$template.'.php';
                    
133
                    
192		$handlerDir = $dirs[$this->handlerType];
                    
193		$file = $documentRoot.$handlerDir.static::getName().'/.description.php';
                    
194
                    
274	 * 
                    
275	 * ```php
                    
276	 * 	public function getClientType($psMode)
                    
                
%%3B^3BA^3BABD3B3%%EditView.tpl.php https://github.com/joshbhamilton/sugar.git | PHP | 106 lines
                    
2         compiled from include/SugarFields/Fields/Relate/EditView.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'sugarvar', 'include/SugarFields/Fields/Relate/EditView.tpl', 38, false),)), $this); ?>
                    
41*}
                    
42<?php ob_start();  echo smarty_function_sugarvar(array('key' => 'name'), $this); $this->_smarty_vars['capture']['idname'] = ob_get_contents();  $this->assign('idname', ob_get_contents());ob_end_clean();  if (! empty ( $this->_tpl_vars['displayParams']['idName'] )): ?>
                    
43    <?php $this->assign('idname', $this->_tpl_vars['displayParams']['idName']);  endif; ?>
                    
44<input type="text" name="<?php echo $this->_tpl_vars['idname']; ?>
                    
45" class=<?php if (empty ( $this->_tpl_vars['displayParams']['class'] )): ?>"sqsEnabled"<?php else: ?> "<?php echo $this->_tpl_vars['displayParams']['class']; ?>
                    
46" <?php endif; ?> tabindex="<?php echo $this->_tpl_vars['tabindex']; ?>
                    
59" 
                    
60	<?php if (! empty ( $this->_tpl_vars['vardef']['id_name'] )): ?>value="<?php echo smarty_function_sugarvar(array('memberName' => 'vardef.id_name','key' => 'value'), $this);?>
                    
61"<?php endif; ?>>
                    
80	true
                    
81);' <?php if (isset ( $this->_tpl_vars['displayParams']['javascript']['btn'] )):  echo $this->_tpl_vars['displayParams']['javascript']['btn'];  endif; ?>><img src="{sugar_getimagepath file="id-ff-select.png"}"></button><?php if (empty ( $this->_tpl_vars['displayParams']['selectOnly'] )): ?><button type="button" name="btn_clr_<?php echo $this->_tpl_vars['idname']; ?>
                    
82" id="btn_clr_<?php echo $this->_tpl_vars['idname']; ?>
                    
                
shipwire_functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 188 lines
                    
1<?php
                    
2function shipwire_build_xml($log_id) {
                    
148	$OrderList = urlencode($xml);
                    
149	$shipwire_ch = curl_init("https://www.shipwire.com/exec/InventoryServices.php");
                    
150	curl_setopt ($shipwire_ch, CURLOPT_POST, 1);
                    
154	curl_exec($shipwire_ch);
                    
155	$orderSubmitted = ob_get_contents();
                    
156	ob_end_clean();
                    
162	$OrderList = urlencode($xml);
                    
163	$shipwire_ch = curl_init("https://www.shipwire.com/exec/FulfillmentServices.php");
                    
164	curl_setopt ($shipwire_ch, CURLOPT_POST, 1);
                    
168	curl_exec($shipwire_ch);
                    
169	$orderSubmitted = ob_get_contents();
                    
170	ob_end_clean();
                    
176	$OrderList = urlencode($xml);
                    
177	$shipwire_ch = curl_init("https://www.shipwire.com/exec/TrackingServices.php");
                    
178	curl_setopt ($shipwire_ch, CURLOPT_POST, 1);
                    
                
quickpage.php https://gitlab.com/ricardosanchez/prueba | PHP | 183 lines
                    
1<?php
                    
2/**
                    
13
                    
14require_once JPATH_LIBRARIES . '/regularlabs/helpers/functions.php';
                    
15
                    
32		$allowed = array(
                    
33			'administrator/components/com_dbreplacer/ajax.php',
                    
34			'administrator/modules/mod_addtomenu/popup.php',
                    
34			'administrator/modules/mod_addtomenu/popup.php',
                    
35			'media/rereplacer/images/popup.php',
                    
36			'plugins/editors-xtd/articlesanywhere/popup.php',
                    
36			'plugins/editors-xtd/articlesanywhere/popup.php',
                    
37			'plugins/editors-xtd/conditionalcontent/popup.php',
                    
38			'plugins/editors-xtd/contenttemplater/data.php',
                    
38			'plugins/editors-xtd/contenttemplater/data.php',
                    
39			'plugins/editors-xtd/contenttemplater/popup.php',
                    
40			'plugins/editors-xtd/dummycontent/popup.php',
                    
                
index.php https://gitlab.com/tangsengjiu/Talk | PHP | 172 lines
                    
1<?PHP
                    
2
                    
2
                    
3include "../index.php";
                    
4
                    
43<?
                    
44$shell['script'] = ob_get_contents();
                    
45ob_end_clean();
                    
57<?
                    
58$shell['html_head_pre'] = ob_get_contents();
                    
59ob_end_clean();
                    
119<?
                    
120$shell['html_head'] = ob_get_contents();
                    
121ob_end_clean();
                    
162<?
                    
163$shell['html_body'] = ob_get_contents();
                    
164ob_end_clean();
                    
                
0b53fce194feb0845b82c52065b2dbdff5dd0f92.file.order-follow.tpl.php https://gitlab.com/nghiep5890/prestashop | PHP | 261 lines
                    
42),false); /*/%%SmartyHeaderCode%%*/?>
                    
43<?php if ($_valid && !is_callable('content_5837177c80bdd7_82633817')) {function content_5837177c80bdd7_82633817($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include 'C:\\xampp\\htdocs\\prestashop\\tools\\smarty\\plugins\\modifier.regex_replace.php';
                    
44?>
                    
130	<p class="alert alert-danger">
                    
131		<?php echo smartyTranslate(array('s'=>'For each product you wish to add, please specify the desired quantity.'),$_smarty_tpl);?>
                    
132
                    
179?>
                    
180				<tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {?>first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {?>last_item<?php } else { ?>item<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index']%2) {?>alternate_item<?php }?>">
                    
181					<td class="bold">
                    
215						<?php if ($_smarty_tpl->tpl_vars['return']->value['state']==2) {?>
                    
216							<a class="link-button" href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['return']->value['id_order_return']);?>
                    
217<?php $_tmp54=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-order-return',true,null,"id_order_return=".$_tmp54), ENT_QUOTES, 'UTF-8', true);?>
                    
250	<li>
                    
251		<a class="btn btn-default button button-small" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value)&&$_smarty_tpl->tpl_vars['force_ssl']->value) {?><?php echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value;?>
                    
252<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
                    
                
dumper.php https://github.com/quarkness/piwik.git | PHP | 360 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $
                    
7 */
                    
354        print_r($variable);
                    
355        $formatted = ob_get_contents();
                    
356        ob_end_clean();
                    
                
localplay.ajax.php https://gitlab.com/x33n/ampache | PHP | 201 lines
                    
1<?php
                    
2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
                    
44        ob_start();
                    
45        require_once AmpConfig::get('prefix') . '/templates/sidebar.inc.php';
                    
46        $results['sidebar-content'] = ob_get_contents();
                    
77                $objects = $localplay->get();
                    
78                require_once AmpConfig::get('prefix') . '/templates/show_localplay_status.inc.php';
                    
79                $results['localplay_status'] = ob_get_contents();
                    
90                $browse->store();
                    
91                $results[$browse->get_content_div()] = ob_get_contents();
                    
92                ob_end_clean();
                    
103                $browse->store();
                    
104                $results[$browse->get_content_div()] = ob_get_contents();
                    
105                ob_end_clean();
                    
138        $browse->store();
                    
139        $results[$browse->get_content_div()] = ob_get_contents();
                    
140        ob_end_clean();
                    
                
index.php https://github.com/ddumas/php-simple-proxy.git | PHP | 249 lines
                    
1<?PHP
                    
2
                    
2
                    
3include "../index.php";
                    
4
                    
18  $('#params').submit(function(){
                    
19    var proxy = '../../ba-simple-proxy.php',
                    
20      url = proxy + '?' + $('#params').serialize();
                    
86<?
                    
87$shell['script'] = ob_get_contents();
                    
88ob_end_clean();
                    
154<?
                    
155$shell['html_head'] = ob_get_contents();
                    
156ob_end_clean();
                    
166<p>
                    
167  With <a href="http://benalman.com/projects/php-simple-proxy/">Simple PHP Proxy</a>, your JavaScript can
                    
168  access content in remote webpages, without cross-domain security limitations, even if it's not available
                    
                
theme.php https://github.com/terry69/fluxflex_wordpress.git | PHP | 405 lines
                    
1<?php
                    
2/**
                    
56	if ( empty( $redirect ) )
                    
57		$redirect = wp_nonce_url('themes.php?action=delete&template=' . $template, 'delete-theme_' . $template);
                    
58	if ( false === ($credentials = request_filesystem_credentials($redirect)) ) {
                    
58	if ( false === ($credentials = request_filesystem_credentials($redirect)) ) {
                    
59		$data = ob_get_contents();
                    
60		ob_end_clean();
                    
61		if ( ! empty($data) ){
                    
62			include_once( ABSPATH . 'wp-admin/admin-header.php');
                    
63			echo $data;
                    
63			echo $data;
                    
64			include( ABSPATH . 'wp-admin/admin-footer.php');
                    
65			exit;
                    
71		request_filesystem_credentials($url, '', true); // Failed to connect, Error and request again
                    
72		$data = ob_get_contents();
                    
73		ob_end_clean();
                    
                
image.php https://gitlab.com/Ltaimao/wecenter | PHP | 437 lines
                    
1<?php
                    
2/*
                    
380						$func_output($dst_img);
                    
381						$sae_storage->write('uploads', $this->new_image, ob_get_contents());
                    
382
                    
396						$func_output($dst_img, null, $this->quality);
                    
397						$sae_storage->write('uploads', $this->new_image, ob_get_contents());
                    
398
                    
                
ext_std_output.cpp https://gitlab.com/0072016/0072016-PHP.LLC | C++ | 309 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2015 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        |
                    
45const int64_t k_PHP_OUTPUT_HANDLER_STDFLAGS =
                    
46  k_PHP_OUTPUT_HANDLER_CLEANABLE | k_PHP_OUTPUT_HANDLER_FLUSHABLE |
                    
47  k_PHP_OUTPUT_HANDLER_REMOVABLE;
                    
64void HHVM_FUNCTION(ob_clean) {
                    
65  // PHP_OUTPUT_HANDLER_START is included by PHP5
                    
66  g_context->obClean(k_PHP_OUTPUT_HANDLER_START | k_PHP_OUTPUT_HANDLER_CLEAN);
                    
                
WikiSyncQXML.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 352 lines
                    
1<?php
                    
2/**
                    
27 * * Place the files from the extension archive there.
                    
28 * * Add this line at the end of your LocalSettings.php file :
                    
29 * require_once "$IP/extensions/WikiSync/WikiSync.php";
                    
91		var_dump( $tag );
                    
92		$tagdump = ob_get_contents();
                    
93		ob_end_clean();
                    
                
View.php git://github.com/concrete5/concrete5.git | PHP | 478 lines
                    
1<?php
                    
2namespace Concrete\Core\View;
                    
210        if (!$this->innerContentFile) { // will already be set in a legacy tools file
                    
211            $this->setInnerContentFile($env->getPath($this->viewRootDirectoryName.'/'.trim($this->viewPath, '/').'.php', $this->viewPkgHandle));
                    
212        }
                    
267        include $this->innerContentFile;
                    
268        $innerContent = ob_get_contents();
                    
269        ob_end_clean();
                    
291        $this->onAfterGetContents();
                    
292        $contents = ob_get_contents();
                    
293        ob_end_clean();
                    
466
                    
467        $_record = $_locator->getRecord(DIRNAME_ELEMENTS . '/' . $_file . '.php');
                    
468        $_file = $_record->getFile();
                    
                
helper.php https://github.com/mathc/joomla-platform.git | PHP | 458 lines
                    
1<?php
                    
2/**
                    
155		$module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module);
                    
156		$path = JPATH_BASE.'/modules/'.$module->module.'/'.$module->module.'.php';
                    
157
                    
169			require $path;
                    
170			$module->content = ob_get_contents().$content;
                    
171			ob_end_clean();
                    
178
                    
179		require_once JPATH_THEMES.'/system/html/modules.php';
                    
180		$chromePath = JPATH_THEMES.'/'.$app->getTemplate().'/html/modules.php';
                    
209				$chromeMethod($module, $params, $attribs);
                    
210				$module->content = ob_get_contents();
                    
211				ob_end_clean();
                    
248		// Build the template and base path for the layout
                    
249		$tPath = JPATH_THEMES.'/'.$template.'/html/'.$module.'/'.$layout.'.php';
                    
250		$bPath = JPATH_BASE.'/modules/'.$module.'/tmpl/'.$defaultLayout.'.php';
                    
                
articles.php https://github.com/vaughnpaul/NOS.git | PHP | 249 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3  $Id: articles.php, v1.0 2003/12/04 12:00:00 ra Exp $
                    
4
                    
215      ob_start();
                    
216    //  include(DIR_WS_BOXES . 'articles.php');
                    
217      include(DIR_WS_BOXES . FILENAME_ARTICLESS);
                    
217      include(DIR_WS_BOXES . FILENAME_ARTICLESS);
                    
218      $cache_output = ob_get_contents();
                    
219      ob_end_clean();
                    
238      ob_start();
                    
239      //include(DIR_WS_BOXES . 'authors.php');
                    
240      include(DIR_WS_BOXES . FILENAME_AUTHORS);
                    
240      include(DIR_WS_BOXES . FILENAME_AUTHORS);
                    
241      $cache_output = ob_get_contents();
                    
242      ob_end_clean();
                    
                
class.redux_filesystem.php https://gitlab.com/websumon/tosnib | PHP | 285 lines
                    
1<?php
                    
2
                    
30                    'type'    => 'error',
                    
31                    'msg'     => '<strong>' . __( 'File Permission Issues', 'redux-framework' ) . '</strong><br/>' . sprintf( __( 'We were unable to modify required files. Please check your permissions, or modify your wp-config.php file to contain your FTP login credentials as <a href="%s" target="_blank">outlined here</a>.', 'redux-framework' ), 'https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants' ),
                    
32                    'id'      => 'redux-wp-login',
                    
59                    echo '<div class="wrap"><div class="error"><p>';
                    
60                    echo '<strong>' . __( 'File Permission Issues', 'redux-framework' ) . '</strong><br/>' . sprintf( __( 'We were unable to modify required files. Please ensure that <code>%1s</code> has the proper read-write permissions, or modify your wp-config.php file to contain your FTP login credentials as <a href="%2s" target="_blank">outlined here</a>.', 'redux-framework' ), Redux_Helpers::cleanFilePath( trailingslashit( WP_CONTENT_DIR ) ) . '/uploads/', 'https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants' );
                    
61                    echo '</p></div><h2></h2>' . '</div>';
                    
76                    $this->creds            = array();
                    
77                    $this->parent->ftp_form = ob_get_contents();
                    
78                    ob_end_clean();
                    
93                    request_filesystem_credentials( $form_url, '', true, $context );
                    
94                    $this->parent->ftp_form = ob_get_contents();
                    
95                    ob_end_clean();
                    
269                        'type'    => 'error',
                    
270                        'msg'     => '<strong>' . __( 'File Permission Issues', 'redux-framework' ) . '</strong><br/>' . sprintf( __( 'We were unable to modify required files. Please ensure that <code>%1s</code> has the proper read-write permissions, or modify your wp-config.php file to contain your FTP login credentials as <a href="%2s" target="_blank">outlined here</a>.', 'redux-framework' ), Redux_Helpers::cleanFilePath( trailingslashit( WP_CONTENT_DIR ) ) . '/uploads/', 'https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants' ),
                    
271                        'id'      => 'redux-wp-login',
                    
                
53cae59f7da932e5ce8905ed1a48264eb0ab0bba.file.mywishlist.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 223 lines
                    
1<?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:51
                    
2         compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\modules\blockwishlist\views\templates\front\mywishlist.tpl" */ ?>
                    
2         compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\modules\blockwishlist\views\templates\front\mywishlist.tpl" */ ?>
                    
3<?php /*%%SmartyHeaderCode:367757c495db35a4e8-51639538%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
                    
4$_valid = $_smarty_tpl->decodeProperties(array (
                    
34),false); /*/%%SmartyHeaderCode%%*/?>
                    
35<?php if ($_valid && !is_callable('content_57c495dbbb2891_86974144')) {function content_57c495dbbb2891_86974144($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\tools\\smarty\\plugins\\modifier.date_format.php';
                    
36?>
                    
38<div id="mywishlist">
                    
39	<?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?>
                    
40		<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
                    
41">
                    
42			<?php echo smartyTranslate(array('s'=>'My account','mod'=>'blockwishlist'),$_smarty_tpl);?>
                    
43
                    
77					</label>
                    
78					<input type="text" id="name" name="name" class="inputTxt form-control" value="<?php if (isset($_POST['name'])&&count($_smarty_tpl->tpl_vars['errors']->value)>0) {?><?php echo htmlspecialchars($_POST['name'], ENT_QUOTES, 'UTF-8', true);?>
                    
79<?php }?>" />
                    
                
pop_loan_receipt.php https://gitlab.com/mucill/majalengka | PHP | 174 lines
                    
72  font-size: <?php echo $sysconf['print']['receipt']['receipt_header_fontSize']; ?>;
                    
73  border-top: <?php echo $sysconf['print']['receipt']['receipt_border']; ?>;    
                    
74}
                    
78    <div class="receiptHeader">
                    
79      <div id="receiptTitle"><?php echo $sysconf['library_name'] ?><br /><?php echo $sysconf['library_subname'] ?></div></td>
                    
80        <td><div id="receiptMember"><?php echo $_SESSION['receipt_record']['memberName'] ?> (<?php echo $_SESSION['receipt_record']['memberID'] ?>)</div>
                    
87        <?php if (isset($_SESSION['receipt_record']['loan']) || isset($_SESSION['receipt_record']['extend'])) { ?>
                    
88        <div class="receiptHeader">Type of Transaction: <?php echo __('Loan'); ?>/<?php echo __('Extended'); ?> (<?php echo mt_rand(000000000, 999999999); ?>)</div>
                    
89        <hr size="1" noshade="noshade" />
                    
140        <?php if (isset($_SESSION['receipt_record']['return']) AND (count($_SESSION['receipt_record']['return']) != 0)) { ?>
                    
141        <div class="receiptHeader">Type of Transaction: <?php echo __('Return'); ?> (<?php echo mt_rand(000000000, 999999999); ?>)</div>
                    
142        <hr size="1" noshade="noshade" />
                    
167</div>
                    
168<?php $buffer_receipt = ob_get_contents(); ob_end_clean(); echo $buffer_receipt; ?>
                    
169<script type="text/javascript">window.print()</script>
                    
                
url_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 594 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 *
                    
345	var l=new Array();
                    
346	<?php
                    
347	$i = 0;
                    
347	$i = 0;
                    
348	foreach ($x as $val){ ?>l[<?php echo $i++; ?>]='<?php echo $val; ?>';<?php } ?>
                    
349
                    
353	//]]>
                    
354	</script><?php
                    
355
                    
355
                    
356		$buffer = ob_get_contents();
                    
357		ob_end_clean();
                    
                
functions.php https://gitlab.com/thiagotalma/stalag13 | PHP | 431 lines
                    
1<?php
                    
2
                    
47
                    
48   if (!@include_once (SM_PATH . 'config/config_multiple_attachments.php'))
                    
49      if (!@include_once (SM_PATH . 'plugins/multiple_attachments/config.php'))
                    
49      if (!@include_once (SM_PATH . 'plugins/multiple_attachments/config.php'))
                    
50         if (!@include_once (SM_PATH . 'plugins/multiple_attachments/config_default.php'))
                    
51            return FALSE;
                    
56   return load_config('multiple_attachments',
                    
57                      array('../../config/config_multiple_attachments.php',
                    
58                            'config.php',
                    
58                            'config.php',
                    
59                            'config_default.php'),
                    
60                      TRUE, TRUE);
                    
118
                    
119   $output .= ob_get_contents();
                    
120   ob_end_clean();
                    
                
service.php https://gitlab.com/alexprowars/bitrix | PHP | 514 lines
                    
1<?php
                    
2
                    
18	array(
                    
19		__NAMESPACE__.'\Reliability' => 'handlers/delivery/additional/ruspost/reliability/reliability.php',
                    
20		__NAMESPACE__.'\ReliabilityCollection' => 'handlers/delivery/additional/ruspost/reliability/reliabilitycollection.php',
                    
20		__NAMESPACE__.'\ReliabilityCollection' => 'handlers/delivery/additional/ruspost/reliability/reliabilitycollection.php',
                    
21		__NAMESPACE__.'\Requester' => 'handlers/delivery/additional/ruspost/reliability/requester.php'
                    
22	)
                    
350
                    
351		$value = ob_get_contents();
                    
352		ob_end_clean();
                    
                
system_view.php https://github.com/Bigjoos/U-232-V3.git | PHP | 202 lines
                    
28$htmlout = '';
                    
29if (isset($_GET['phpinfo']) AND $_GET['phpinfo']) {
                    
30    @ob_start();
                    
42    // PREVENT WRAP: LS_COLORS env
                    
43    $php_body = str_replace(":*.", "<br />:*.", $php_body);
                    
44    // PREVENT WRAP: PATH env
                    
48    // PREVENT WRAP: Cookie , split
                    
49    $php_body = preg_replace("#,(\d+),#", ",<br />\\1,", $php_body);
                    
50    $php_style = "<style type='text/css'>
                    
60</style>\n";
                    
61    $html = $php_style.$php_body;
                    
62    echo $html;
                    
80}
                    
81$php_version = phpversion()." (".@php_sapi_name().") ( <a href='{$INSTALLER09['baseurl']}/staffpanel.php?tool=system_view&amp;action=system_view&amp;phpinfo=1'>PHP INFO</a> )";
                    
82$server_software = php_uname();
                    
                
plugin.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 368 lines
                    
1<?php
                    
2
                    
88            if ($type == 'plugin' && $group == 'system') {
                    
89                require_once(JPATH_LIBRARIES . '/joomla/installer/adapters/plugin.php');
                    
90                // create adapter
                    
159                    // Install failed, rollback changes
                    
160                    $this->parent->abort(WFText::_('WF_INSTALLER_PLUGIN_INSTALL') . ' : ' . WFText::_('WF_INSTALLER_PHP_INSTALL_FILE_ERROR'));
                    
161                    return false;
                    
176                    // Install failed, rollback changes
                    
177                    $this->parent->abort(JText('WF_INSTALLER_PLUGIN_INSTALL') . ' : ' . WFText::_('WF_INSTALLER_PHP_UNINSTALL_FILE_ERROR'));
                    
178                    return false;
                    
210                }
                    
211                $msg = ob_get_contents();
                    
212                ob_end_clean();
                    
325                    }
                    
326                    $msg = ob_get_contents();
                    
327                    ob_end_clean();
                    
                
FunctionFrontendTest.php https://github.com/sidealice/zf2.git | PHP | 219 lines
                    
1<?php
                    
2/**
                    
54 */
                    
55class FunctionFrontendTest extends \PHPUnit_Framework_TestCase
                    
56{
                    
101        $return = $this->_instance->call('foobar', array('param1', 'param2'));
                    
102        $data = ob_get_contents();
                    
103        ob_end_clean();
                    
113        $return = $this->_instance->call('\ZendTest\Cache\foobar', array('param3', 'param4'));
                    
114        $data = ob_get_contents();
                    
115        ob_end_clean();
                    
127        $return = $this->_instance->call('\ZendTest\Cache\foobar', array('param1', 'param2'));
                    
128        $data = ob_get_contents();
                    
129        ob_end_clean();
                    
143        $return = $this->_instance->call('foobar', array('param1', 'param2'));
                    
144        $data = ob_get_contents();
                    
145        ob_end_clean();
                    
                
news.php https://github.com/ECP-Black/ECP.git | PHP | 334 lines
                    
1<?php
                    
2function admin_news() {
                    
28	$tpl->display(DESIGN.'/tpl/admin/news.html');
                    
29	$content = ob_get_contents();
                    
30	ob_end_clean();
                    
72			foreach($files AS $lang) {
                    
73				if(strpos($lang, '.php')) {
                    
74					$lang = substr($lang,0,strpos($lang, '.'));
                    
83			$tpl->display(DESIGN.'/tpl/admin/news_add_edit.html');
                    
84			$content = ob_get_contents();
                    
85			ob_end_clean();
                    
132		foreach($files AS $lang) {
                    
133			if(strpos($lang, '.php')) {
                    
134				$lang = substr($lang,0,strpos($lang, '.'));
                    
142		$tpl->display(DESIGN.'/tpl/admin/news_add_edit.html');
                    
143		$content = ob_get_contents();
                    
144		ob_end_clean();
                    
                
SmartyExt.class.php https://github.com/kennethjiang/Wolke.git | PHP | 292 lines
                    
1<?php
                    
2
                    
23        
                    
24        $this->compiler_file = "Smarty_CompilerExt.class.php";
                    
25        $this->compiler_class = "Smarty_CompilerExt";
                    
65            $_params = array();
                    
66            require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
                    
67            $_debug_start_time = smarty_core_get_microtime($_params, $this);
                    
90            );
                    
91            require_once(SMARTY_CORE_DIR . 'core.read_cache_file.php');
                    
92            if (smarty_core_read_cache_file($_params, $this)) {
                    
95                    $_params = array('plugins' => $this->_cache_info['insert_tags']);
                    
96                    require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
97                    smarty_core_load_plugins($_params, $this);
                    
98                    $_params = array('results' => $_smarty_results);
                    
99                    require_once(SMARTY_CORE_DIR . 'core.process_cached_inserts.php');
                    
100                    $_smarty_results = smarty_core_process_cached_inserts($_params, $this);
                    
                
ascii.php https://github.com/fusenigk/mantisbt-1.git | PHP | 220 lines
                    
1<?php
                    
2/**
                    
3* Tools to help with ASCII in UTF-8
                    
4* @version $Id: ascii.php,v 1.5 2006/10/16 20:38:12 harryf Exp $
                    
5* @package utf8
                    
13* needs handling as UTF-8 or not, potentially offering performance
                    
14* benefits by using the native PHP equivalent if it's just ASCII e.g.;
                    
15*
                    
17* if ( utf8_is_ascii($someString) ) {
                    
18*     // It's just ASCII - use the native PHP version
                    
19*     $someString = strtolower($someString);
                    
77    }
                    
78    $result = ob_get_contents();
                    
79    ob_end_clean();
                    
102    }
                    
103    $result = ob_get_contents();
                    
104    ob_end_clean();
                    
                
dumper.php https://github.com/orchestra-io/sample-openx.git | PHP | 360 lines
                    
1<?php
                    
2    /**
                    
5     *	@subpackage	UnitTester
                    
6     *	@version	$Id: dumper.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $
                    
7     */
                    
354            print_r($variable);
                    
355            $formatted = ob_get_contents();
                    
356            ob_end_clean();
                    
                
test_ext_mailparse.cpp https://github.com/diegoIta/hiphop-php.git | C++ | 412 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   +----------------------------------------------------------------------+
                    
49bool TestExtMailparse::test_mail() {
                    
50  //VCB("<?php ");
                    
51  return Count(true);
                    
                
MetadataInfo.php https://gitlab.com/nitm/yii2-widgets | PHP | 320 lines
                    
1<?php
                    
2/**
                    
124            echo ucfirst($title).':&nbsp;'.$value;
                    
125            $item = ob_get_contents();
                    
126            ob_end_clean();
                    
156            echo "</$tag>";
                    
157            $item = ob_get_contents();
                    
158            ob_end_clean();
                    
186            echo "</$tag>";
                    
187            $item = ob_get_contents();
                    
188            ob_end_clean();
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 371 lines
                    
1<?php
                    
2
                    
11{
                    
12	/** @var CPHPCache $obCache */
                    
13	protected $obCache;
                    
100
                    
101								$strReturn = CAdvBanner::PrepareHTML(ob_get_contents(), $banner);
                    
102								$strReturn = CAdvBanner::ReplaceURL($strReturn, $banner);
                    
137
                    
138						$strReturn = CAdvBanner::PrepareHTML(ob_get_contents(), $banner);
                    
139						$strReturn = CAdvBanner::ReplaceURL($strReturn, $banner);
                    
189
                    
190						$strReturn = ob_get_contents();
                    
191						ob_end_clean();
                    
246
                    
247					$strReturn = CAdvBanner::PrepareHTML(ob_get_contents(), $banner);
                    
248					ob_end_clean();
                    
                
Template.class.php https://bitbucket.org/dlsbdaniel/fpconvert.git | PHP | 445 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Template Management for PHP5
                    
4 * 
                    
5 * The Template engine allows to keep the HTML code in some external files
                    
6 * which are completely free of PHP code. This way, it's possible keep logical 
                    
7 * programmin (PHP code) away from visual structure (HTML or XML, CSS, etc).
                    
8 *
                    
9 * If you are familiar with PHP template concept, this class includes these 
                    
10 * features: object support, auto-detect blocks, auto-clean children blocks, 
                    
159		if (!file_exists($filename)) throw new InvalidArgumentException("file $filename does not exist");
                    
160		// If it's PHP file, parse it
                    
161		if($this->isPHP($filename)){
                    
180	private function isPHP($filename){
                    
181		foreach(array('.php', '.php5', '.cgi') as $php){
                    
182			if(0 == strcasecmp($php, substr($filename, strripos($filename, $php)))) return true;
                    
                
widget.php https://gitlab.com/12chakram/Bigkart | PHP | 459 lines
                    
1<?php
                    
2/******************************************************
                    
125	  		require( DIR_TEMPLATE .  $this->getLayout('product') );
                    
126	  		$output = ob_get_contents();
                    
127      		ob_end_clean( );
                    
151	  		require( DIR_TEMPLATE .  $this->getLayout('feed') );
                    
152	  		$output = ob_get_contents();
                    
153	  		ob_end_clean( );
                    
191  		require( DIR_TEMPLATE .  $this->getLayout('banner') );
                    
192  		$output = ob_get_contents();
                    
193  		ob_end_clean( );
                    
214  		require( DIR_TEMPLATE .  $this->getLayout('image') );
                    
215  		$output = ob_get_contents();
                    
216  		ob_end_clean( );
                    
246			require( DIR_TEMPLATE .  $this->getLayout('product_list') );
                    
247			$output = ob_get_contents();
                    
248			ob_end_clean( );
                    
                
javascript.php https://github.com/cgajardo/repositorium.git | PHP | 721 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
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://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.libs.view.helpers
                    
17 * @since         CakePHP(tm) v 0.10.0.1076
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
27 * @subpackage    cake.cake.libs.view.helpers
                    
28 * @link http://book.cakephp.org/view/1450/Javascript
                    
29 */
                    
                
debug.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 929 lines
                    
1<?php
                    
2/**
                    
53		{
                    
54			JLog::addLogger(array('text_file' => 'deprecated.php'), JLog::ALL, array('deprecated'));
                    
55		}
                    
135		// Capture output
                    
136		$contents = ob_get_contents();
                    
137
                    
325		{
                    
326			$html .= $key . ' &rArr;' . $session . PHP_EOL;
                    
327		}
                    
                
package.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 631 lines
                    
1<?php
                    
2/**
                    
173		// Create msg object; first use here
                    
174		$msg = ob_get_contents();
                    
175		ob_end_clean();
                    
309		// Append messages
                    
310		$msg .= ob_get_contents();
                    
311		ob_end_clean();
                    
361		// Append messages
                    
362		$msg .= ob_get_contents();
                    
363		ob_end_clean();
                    
481
                    
482		$msg = ob_get_contents();
                    
483		ob_end_clean();
                    
                
file.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 815 lines
                    
1<?php
                    
2/**
                    
162		// Create msg object; first use here
                    
163		$msg = ob_get_contents();
                    
164		ob_end_clean();
                    
349		// Append messages
                    
350		$msg .= ob_get_contents();
                    
351		ob_end_clean();
                    
409		// Append messages
                    
410		$msg .= ob_get_contents();
                    
411		ob_end_clean();
                    
530
                    
531			$msg = ob_get_contents();
                    
532			ob_end_clean();
                    
                
component.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 1746 lines
                    
1<?php
                    
2/**
                    
70	/**
                    
71	 * A path to the PHP file that the scriptfile declaration in
                    
72	 * the manifest refers to.
                    
79	/**
                    
80	 * For legacy installations this is a path to the PHP file that the scriptfile declaration in the
                    
81	 * manifest refers to.
                    
307		// Create msg object; first use here
                    
308		$msg = ob_get_contents();
                    
309		ob_end_clean();
                    
456		// Append messages
                    
457		$msg .= ob_get_contents();
                    
458		ob_end_clean();
                    
                
comment.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 695 lines
                    
1<?php
                    
2/**
                    
4 * @copyright	Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
                    
5 * @license		GNU/GPL, see LICENSE.php
                    
6 *
                    
10 * other free or open source software licenses.
                    
11 * See COPYRIGHT.php for copyright notices and details.
                    
12 */
                    
19 */
                    
20require_once( EBLOG_HELPERS . DIRECTORY_SEPARATOR . 'helper.php' );
                    
21
                    
74
                    
75		$file	= JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_jomcomment' . DIRECTORY_SEPARATOR . 'jomcomment.php';
                    
76
                    
81
                    
82		$file	= JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_jcomments' . DIRECTORY_SEPARATOR . 'jcomments.php';
                    
83
                    
                
renderer.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 603 lines
                    
1<?php
                    
2
                    
63                ob_start();
                    
64                include($CFG->dirroot.'/mod/lesson/tabs.php');
                    
65                $output .= ob_get_contents();
                    
97        $output .=  $message;
                    
98        $output .=  $this->output->box('<a href="'.$CFG->wwwroot.'/course/view.php?id='. $this->page->course->id .'">'. get_string('returnto', 'lesson', format_string($this->page->course->fullname, true)) .'</a>', 'lessonbutton standardbutton');
                    
99        $output .=  $this->output->box_end();
                    
113        $output .= $this->output->box_start('generalbox boxaligncenter');
                    
114        $output .=  '<form id="password" method="post" action="'.$CFG->wwwroot.'/mod/lesson/view.php" autocomplete="off">';
                    
115        $output .=  '<fieldset class="invisiblefieldset center">';
                    
171
                    
172        $yeslink = html_writer::link(new moodle_url('/mod/lesson/view.php', array('id'=>$this->page->cm->id, 'pageid'=>$lastpageseenid, 'startlastseen'=>'yes')), get_string('yes'));
                    
173        $output .= html_writer::tag('span', $yeslink, array('class'=>'lessonbutton standardbutton'));
                    
175
                    
176        $nolink = html_writer::link(new moodle_url('/mod/lesson/view.php', array('id'=>$this->page->cm->id, 'pageid'=>$lesson->firstpageid, 'startlastseen'=>'no')), get_string('no'));
                    
177        $output .= html_writer::tag('span', $nolink, array('class'=>'lessonbutton standardbutton'));
                    
                
pgsql_native_moodle_database.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1343 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27require_once(__DIR__.'/moodle_database.php');
                    
28require_once(__DIR__.'/pgsql_native_moodle_recordset.php');
                    
28require_once(__DIR__.'/pgsql_native_moodle_recordset.php');
                    
29require_once(__DIR__.'/pgsql_native_moodle_temptables.php');
                    
30
                    
48    /**
                    
49     * Detects if all needed PHP stuff installed.
                    
50     * Note: can be used before connect()
                    
54        if (!extension_loaded('pgsql')) {
                    
55            return get_string('pgsqlextensionisnotpresentinphp', 'install');
                    
56        }
                    
166        }
                    
167        $dberr = ob_get_contents();
                    
168        ob_end_clean();
                    
                
mysqli_native_moodle_database.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1327 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27require_once(__DIR__.'/moodle_database.php');
                    
28require_once(__DIR__.'/mysqli_native_moodle_recordset.php');
                    
28require_once(__DIR__.'/mysqli_native_moodle_recordset.php');
                    
29require_once(__DIR__.'/mysqli_native_moodle_temptables.php');
                    
30
                    
76        $conn = new mysqli($dbhost, $dbuser, $dbpass, '', $dbport, $dbsocket); // Connect without db
                    
77        $dberr = ob_get_contents();
                    
78        ob_end_clean();
                    
102    /**
                    
103     * Detects if all needed PHP stuff installed.
                    
104     * Note: can be used before connect()
                    
108        if (!extension_loaded('mysqli')) {
                    
109            return get_string('mysqliextensionisnotpresentinphp', 'install');
                    
110        }
                    
                
deprecatedlib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1518 lines
                    
18/**
                    
19 * deprecatedlib.php - Old functions retained only for backward compatibility
                    
20 *
                    
33/**
                    
34 * Hack to find out the GD version by parsing phpinfo output
                    
35 *
                    
54        phpinfo(INFO_MODULES);
                    
55        $phpinfo = ob_get_contents();
                    
56        ob_end_clean();
                    
57
                    
58        $phpinfo = explode("\n", $phpinfo);
                    
59
                    
60
                    
61        foreach ($phpinfo as $text) {
                    
62            $parts = explode('</td>', $text);
                    
                
logger_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 392 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
18 * @package    core_backup
                    
19 * @category   phpunit
                    
20 * @copyright  2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
                    
27global $CFG;
                    
28require_once($CFG->dirroot . '/backup/util/interfaces/checksumable.class.php');
                    
29require_once($CFG->dirroot . '/backup/backup.class.php');
                    
29require_once($CFG->dirroot . '/backup/backup.class.php');
                    
30require_once($CFG->dirroot . '/backup/util/loggers/base_logger.class.php');
                    
31require_once($CFG->dirroot . '/backup/util/loggers/error_log_logger.class.php');
                    
31require_once($CFG->dirroot . '/backup/util/loggers/error_log_logger.class.php');
                    
32require_once($CFG->dirroot . '/backup/util/loggers/output_text_logger.class.php');
                    
33require_once($CFG->dirroot . '/backup/util/loggers/output_indented_logger.class.php');
                    
33require_once($CFG->dirroot . '/backup/util/loggers/output_indented_logger.class.php');
                    
34require_once($CFG->dirroot . '/backup/util/loggers/database_logger.class.php');
                    
35require_once($CFG->dirroot . '/backup/util/loggers/file_logger.class.php');
                    
                
e5eb1f180a068abb225563452f2d671f2b496641.file.manufacturer-list.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 209 lines
                    
35),false); /*/%%SmartyHeaderCode%%*/?>
                    
36<?php if ($_valid && !is_callable('content_57c495cd02dc63_74728356')) {function content_57c495cd02dc63_74728356($_smarty_tpl) {?><?php if (!is_callable('smarty_function_math')) include 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\tools\\smarty\\plugins\\function.math.php';
                    
37?>
                    
38
                    
39<?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?><?php echo smartyTranslate(array('s'=>'Manufacturers:'),$_smarty_tpl);?>
                    
40<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                    
50    <span class="heading-counter"><?php if ($_smarty_tpl->tpl_vars['nbManufacturers']->value==0) {?><?php echo smartyTranslate(array('s'=>'There are no manufacturers.'),$_smarty_tpl);?>
                    
51<?php } else { ?><?php if ($_smarty_tpl->tpl_vars['nbManufacturers']->value==1) {?><?php echo smartyTranslate(array('s'=>'There is 1 brand'),$_smarty_tpl);?>
                    
52<?php } else { ?><?php echo smartyTranslate(array('s'=>'There are %d brands','sprintf'=>$_smarty_tpl->tpl_vars['nbManufacturers']->value),$_smarty_tpl);?>
                    
118
                    
119	            <?php if ($_smarty_tpl->tpl_vars['totModulo']->value==0) {?><?php $_smarty_tpl->tpl_vars['totModulo'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLine']->value, null, 0);?><?php }?>
                    
120	            <?php if ($_smarty_tpl->tpl_vars['totModuloTablet']->value==0) {?><?php $_smarty_tpl->tpl_vars['totModuloTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, null, 0);?><?php }?>
                    
120	            <?php if ($_smarty_tpl->tpl_vars['totModuloTablet']->value==0) {?><?php $_smarty_tpl->tpl_vars['totModuloTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, null, 0);?><?php }?>
                    
121				<li class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLine']->value==0) {?> last-in-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLine']->value==1) {?> first-in-line<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total']-$_smarty_tpl->tpl_vars['totModulo']->value)) {?>last-line<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value==0) {?>last-item-of-tablet-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value==1) {?>first-item-of-tablet-line<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total']-$_smarty_tpl->tpl_vars['totModuloTablet']->value)) {?>last-tablet-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['last']) {?> item-last<?php }?> col-xs-12">
                    
122					<div class="mansup-container">
                    
                
modulestep.php https://gitlab.com/alexprowars/bitrix | PHP | 342 lines
                    
1<?php
                    
2namespace Bitrix\Sale\BsmSiteMaster\Steps;
                    
114			<?
                    
115			$content = ob_get_contents();
                    
116			ob_end_clean();
                    
154		}
                    
155		$content = ob_get_contents();
                    
156		ob_end_clean();
                    
274		<div class="adm-bsm-site-master-paragraph-wrapper">
                    
275			<?php if ($isMarketPlace && $isUpdateSystem):?>
                    
276				<div class="adm-bsm-site-master-paragraph"><?=Loc::getMessage("SALE_BSM_WIZARD_MODULESTEP_ALL_DESCR", [
                    
276				<div class="adm-bsm-site-master-paragraph"><?=Loc::getMessage("SALE_BSM_WIZARD_MODULESTEP_ALL_DESCR", [
                    
277						"#MARKET_PLACE_LINK#" => "/bitrix/admin/update_system_market.php?module=bitrix.eshop&lang=".LANGUAGE_ID,
                    
278						"#UPDATE_SYSTEM_LINK#" => "/bitrix/admin/update_system.php?lang=".LANGUAGE_ID,
                    
280				</div>
                    
281			<?php elseif ($isMarketPlace):?>
                    
282				<div class="adm-bsm-site-master-paragraph"><?=Loc::getMessage("SALE_BSM_WIZARD_MODULESTEP_MARKET_PLACE_DESCR", [
                    
                
 

Source

Language