PageRenderTime 467ms queryTime 30ms sortTime 6ms getByIdsTime 37ms findMatchingLines 154ms

100+ results results for 'php ob_start repo:daviebf/cake1_2_9' (467 ms)

Not the results you expected?
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        }
                    
265
                    
266        ob_start();
                    
267        include $this->innerContentFile;
                    
283
                    
284        ob_start();
                    
285
                    
466
                    
467        $_record = $_locator->getRecord(DIRNAME_ELEMENTS . '/' . $_file . '.php');
                    
468        $_file = $_record->getFile();
                    
                
5256ddbd4aa1b361656b10a2a59d421438391591fab15dc5973b5627674eab52.php https://bitbucket.org/rubbystar/carimod.git | PHP | 199 lines
                    
1<?php
                    
2
                    
31        // line 7
                    
32        ob_start();
                    
33        // line 8
                    
119                echo "        ";
                    
120                ob_start();
                    
121                // line 27
                    
135            // line 31
                    
136            ob_start();
                    
137            // line 32
                    
                
App.php http://dyhb-frame.googlecode.com/svn/trunk/ | PHP | 212 lines
                    
13else{
                    
14	$arrLang=(array)include(dirname(__FILE__).'/App/Zh-cn/App.lang.php');
                    
15}
                    
92	$sAppName='home';
                    
93	$sEnterPath=$sAppPath.'/index.php';
                    
94	$sOutput='';
                    
151			<?php foreach($arrListLang as $sListLang):?>
                    
152			<option value="?lang=<?php echo $sListLang;?>" <?php if(strtolower($sLang)==$sListLang):?>selected<?endif;?>><?php echo $sListLang;?></option>
                    
153			<?endforeach;?>
                    
159</div>
                    
160	 <form id="form1" name="form1" method="post" action="App.php?lang=<?php echo strtolower($sLang);?>">
                    
161		<p>
                    
207
                    
208<?php endif; ?>
                    
209<div class="footer"><?php echo $arrLang[22];?></div>
                    
                
analyzer.php git://github.com/mageekguy/atoum.git | PHP | 223 lines
                    
1<?php
                    
2
                    
4
                    
5require_once __DIR__ . '/../../../runner.php';
                    
6
                    
55					$this->function->gettype = 'array',
                    
56					$this->function->sizeof = $size = rand(1, PHP_INT_MAX)
                    
57				)
                    
68			->if(
                    
69				$this->function->ob_start->doesNothing(),
                    
70				$this->function->var_dump->doesNothing(),
                    
70				$this->function->var_dump->doesNothing(),
                    
71				$this->function->ob_get_clean = ('     ' . ($dump = uniqid()) . '        ' . PHP_EOL)
                    
72			)
                    
                
helper-functions.php https://bitbucket.org/Netbog/mormirkam.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
43
                    
44	include_once( cmb2_dir( "$path/{$class_name}.php" ) );
                    
45}
                    
274
                    
275	ob_start();
                    
276	// Get cmb form
                    
366	/**
                    
367	 * Reimplementation of DateTime::createFromFormat for PHP < 5.3. :(
                    
368	 * Borrowed from http://stackoverflow.com/questions/5399075/php-datetimecreatefromformat-in-5-2
                    
                
Template.php git://github.com/jeromeschneider/Baikal.git | PHP | 451 lines
                    
1<?php
                    
2
                    
155    {
                    
156        ob_start();
                    
157        $this->displayParentBlock($name, $context, $blocks);
                    
175    {
                    
176        ob_start();
                    
177        $this->displayBlock($name, $context, $blocks);
                    
247        $level = ob_get_level();
                    
248        ob_start();
                    
249        try {
                    
288     * implementation detail that has been introduced to optimize variable
                    
289     * access for versions of PHP before 5.4. This is not a way to override
                    
290     * the way to get a variable value.
                    
                
class-walker-nav-menu-edit.php git://github.com/wordpress/wordpress.git | PHP | 313 lines
                    
120				<div class="menu-item-handle">
                    
121					<span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span>
                    
122					<span class="item-controls">
                    
187							<?php _e( 'URL' ); ?><br />
                    
188							<input type="text" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->url ); ?>" />
                    
189						</label>
                    
194						<?php _e( 'Navigation Label' ); ?><br />
                    
195						<input type="text" id="edit-menu-item-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->title ); ?>" />
                    
196					</label>
                    
200						<?php _e( 'Title Attribute' ); ?><br />
                    
201						<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
                    
202					</label>
                    
224						<?php _e( 'Description' ); ?><br />
                    
225						<textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
                    
226						<span class="description"><?php _e( 'The description will be displayed in the menu if the current theme supports it.' ); ?></span>
                    
                
DataBaseAction.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 417 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
67			$this->display();
                    
68			ob_start();
                    
69			ob_end_flush(); 
                    
85		
                    
86		ob_start();
                    
87		ob_end_flush(); 
                    
93            $table_data = '$table_data = '.var_export($table_data, true).";";
                    
94			$db_table_file = $back_dir."tables.php";
                    
95			@file_put_contents($db_table_file,"<?php\n$table_data\n?>");
                    
200		$this->display();
                    
201		ob_start();
                    
202		ob_end_flush(); 
                    
                
i18n_example_script.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 190 lines
                    
105				<h3>(current time format used: <?php echo $format_date->getTimeFormat(); ?>)</h3>
                    
106					<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>#date" name="select_timeformat" id="select_timeformat">
                    
107						<select name="timeformat" id="timeformat">
                    
146				<p class="sample" id="formatnumber_sample">
                    
147					Formating ť<?php echo $money; ?>Ť <small>(currency small)</small>: <samp><?php echo $format_number->currency($money, 'full', 'gb', FALSE); ?></samp>
                    
148				</p>
                    
149				<p class="sample" id="formatnumber_sample">
                    
150					Formating ť<?php echo $money; ?>Ť <small>(currency symbol left)</small>: <samp><?php echo $format_number->currency($money, 'symbol', 'gb', TRUE, 'before'); ?></samp>
                    
151				</p>
                    
154				<h3>(current measure output format used: <?php echo $measure->getOutput(); ?>)</h3>
                    
155					<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>#measure" name="select_measure" id="select_measure">
                    
156						<select name="measure" id="measure2">
                    
171				<p class="sample" id="formatmeasure_sample">
                    
172					Formating ť<?php echo $number; ?> mmŤ: <samp><?php echo $measure->linear($number, 0, 0) , ' ' ,  $measure->Unit(2); ?></samp>
                    
173				</p>
                    
                
serverside.php https://github.com/Patchworkx/Patchwork.git | PHP | 462 lines
                    
1<?php /*********************************************************************
                    
2 *
                    
42
                    
43		ob_start();
                    
44		try {self::loadAgent(p::resolveAgentClass($agent, $_GET), false, false);}
                    
71			{
                    
72				ob_start(array(__CLASS__, 'ob_htmlspecialchars'), 32768);
                    
73				++p::$ob_level;
                    
212			{
                    
213				ob_start();
                    
214				++p::$ob_level;
                    
246
                    
247		$ctemplate = p::getContextualCachePath('templates/' . $template, (p::$binaryMode ? 'bin' : 'html') . '.php');
                    
248		$ftemplate = 'template' . md5($ctemplate);
                    
259				p::openMeta('agent__template/' . $template, false);
                    
260				$compiler = new ptlCompiler_php($template, p::$binaryMode);
                    
261				$ftemplate = "<?php function {$ftemplate}(&\$v,&\$a,&\$g){global \$a\x9D,\$c\x9D;\$d=\$v;" . $compiler->compile() . "} {$ftemplate}(\$v,\$a,\$g);";
                    
                
InlineFragmentRendererTest.php https://github.com/symfony/symfony.git | PHP | 290 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\EventDispatcher\EventDispatcher;
                    
131            ->willReturn(function () {
                    
132                ob_start();
                    
133                echo 'bar';
                    
148        // simulate a main request with output buffering
                    
149        ob_start();
                    
150        echo 'Foo';
                    
                
phpt_test.php.inc git://pkgs.fedoraproject.org/php-pear-PEAR-Command-Packaging | PHP | 415 lines
                    
1<?php
                    
2@include_once 'Text/Diff.php';
                    
2@include_once 'Text/Diff.php';
                    
3@include_once 'Text/Diff/Renderer.php';
                    
4@include_once 'Text/Diff/Renderer/unified.php';
                    
4@include_once 'Text/Diff/Renderer/unified.php';
                    
5require_once 'PEAR/ErrorStack.php';
                    
6require_once 'PEAR.php';
                    
6require_once 'PEAR.php';
                    
7class PEAR_PHPTest
                    
8{
                    
10    var $_errors;
                    
11    function PEAR_PHPTest($diffonly = false, $noStackCatch = false)
                    
12    {
                    
360    {
                    
361        ob_start();
                    
362        print "dumping registry...\n";
                    
                
Rack.php https://github.com/creationix/rack-php.git | PHP | 141 lines
                    
7  
                    
8  // This converts the native PHP $_SERVER array into a rack hash and then removes the contents of
                    
9  // the $_SERVER variable.  This ensures loose coupling and allows for middleware and mock requests.
                    
49      // There must be a valid input stream in rack.input.
                    
50      'rack.input' => fopen('php://input', 'r'),
                    
51
                    
52      // There must be a valid error stream in rack.errors.
                    
53      'rack.errors' => fopen('php://stderr', 'w'),
                    
54
                    
81    $env =& static::get_env();
                    
82    ob_start();
                    
83    $result = self::runMiddleware($app, $env);
                    
97    fclose($env['rack.errors']);
                    
98    $headers['X-Powered-By'] = "rack-php ".implode('.',$env['rack.version']);
                    
99    $headers['Status'] = $status;
                    
                
class-walker-comment.php https://bitbucket.org/w1nterheart/nmm-nature-is-lit-wp.git | PHP | 400 lines
                    
239?>
                    
240		<<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( '', $comment ); ?>>
                    
241			<div class="comment-body">
                    
241			<div class="comment-body">
                    
242				<?php _e( 'Pingback:' ); ?> <?php comment_author_link( $comment ); ?> <?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
                    
243			</div>
                    
266?>
                    
267		<<?php echo $tag; ?> <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?> id="comment-<?php comment_ID(); ?>">
                    
268		<?php if ( 'div' != $args['style'] ) : ?>
                    
294				</a>
                    
295				<?php
                    
296				edit_comment_link( __( '(Edit)' ), '&nbsp;&nbsp;', '' );
                    
345?>
                    
346		<<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>>
                    
347			<article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
                    
                
connector.php https://xzwebshop.svn.codeplex.com/svn | PHP | 193 lines
                    
70
                    
71if ($fckphp_config['Debug']===true && $fckphp_config['Debug_Output']) ob_start();
                    
72outputHeaders();
                    
129		echo "Invalid resource type.";
                    
130		if ($fckphp_config['Debug']===true  && $fckphp_config['Debug_Output']) recordOutput();
                    
131		exit(0);
                    
138	$action->run();
                    
139	if ($fckphp_config['Debug']===true && $fckphp_config['Debug_Output']) recordOutput();
                    
140	
                    
144	echo str_replace("\n","<br />",print_r($_GET,true));
                    
145	if ($fckphp_config['Debug']===true  && $fckphp_config['Debug_Output']) recordOutput();
                    
146	exit(0);
                    
152
                    
153	if ($fckphp_config['Debug']===true  && $fckphp_config['Debug_Output']) {
                    
154		$contents=ob_get_contents();
                    
                
meagerBase.php https://github.com/mcgrew/meager.git | PHP | 547 lines
                    
1<?php
                    
2
                    
19	$modules = new ModuleHandler( );
                    
20	$modules->register( 'test', 'test.php', array( 'option1' => 'yes' ));
                    
21	$test = $modules->get( 'test' );
                    
64	function to_string( ) {
                    
65		ob_start( );
                    
66		$this->load( );
                    
184	$modules = new ModuleHandler( );
                    
185	$modules->register( 'test', 'test.php', array( 'option1' => 'yes' ));
                    
186	(end)
                    
199			name - A string containing the name for the module.
                    
200			file - A string containing the php filename for the module
                    
201			options (optional) - An associative array containing any options which the 
                    
407	if ( !file_exists( $meager_current_page )) {
                    
408		if ( file_exists( meager_config( 'doc_root' ).$meager_current_page.".php" )) $meager_current_page .= '.php';
                    
409		if ( file_exists( meager_config( 'doc_root' ).$meager_current_page.".html" )) $meager_current_page .= '.html';
                    
                
adminPage.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 356 lines
                    
1<?php
                    
2
                    
6 * @package
                    
7 * @version $Id: adminPage.php 1903 2008-04-24 07:06:22Z ever $
                    
8 * @copyright 2003-2007 ShopEx
                    
12
                    
13require('pageFactory.php');
                    
14
                    
50                $this->ajaxdata=array();
                    
51                ob_start();
                    
52            }
                    
94            if($type=='noaccount'){
                    
95                echo $url = 'index.php?ctl=passport&act=loginaccount';exit;
                    
96            }else{
                    
96            }else{
                    
97                $url = 'index.php?ctl=passport&act=login';
                    
98            }            
                    
                
ChangeLogController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 105 lines
                    
15use function ob_get_clean;
                    
16use function ob_start;
                    
17use function preg_replace;
                    
40                $filename,
                    
41                '<a href="https://www.phpmyadmin.net/">phpmyadmin.net</a>'
                    
42            );
                    
48        if (substr($filename, -3) === '.gz') {
                    
49            ob_start();
                    
50            readgzfile($filename);
                    
60
                    
61        $github_url = 'https://github.com/phpmyadmin/phpmyadmin/';
                    
62        $faq_url = 'https://docs.phpmyadmin.net/en/latest/faq.html';
                    
80            // PMASAentries
                    
81            '/(PMASA-[0-9]+-[0-9]+)/' => '<a href="url.php?url=https://www.phpmyadmin.net/security/\\1/">\\1</a>',
                    
82
                    
                
Modules.php https://bitbucket.org/haloweb/halogy-1.0/ | PHP | 205 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
2
                    
3/* PHP5 spl_autoload */
                    
4spl_autoload_register('Modules::autoload');
                    
6/**
                    
7 * Modular Extensions - PHP5
                    
8 *
                    
15 *
                    
16 * Install this file as application/libraries/Modules.php
                    
17 *
                    
61			if (method_exists($class, $method))	{
                    
62				ob_start();
                    
63				$args = func_get_args();
                    
                
CakeHtmlReporter.php git://github.com/hugodias/cakeStrap.git | PHP | 385 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @since         CakePHP(tm) v 1.2.0.4433
                    
16 * @since         CakePHP(tm) v 1.2.0.4433
                    
17 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
18 */
                    
104		foreach ($testCases as $testCase) {
                    
105			$title = explode(DS, str_replace('.test.php', '', $testCase));
                    
106			$title[count($title) - 1] = Inflector::camelize($title[count($title) - 1]);
                    
134 *
                    
135 * @param PHPUnit_Framework_TestResult $result Result object
                    
136 * @return void
                    
                
portfolio.php https://bitbucket.org/iroshbrianskye/genteelfinal.git | PHP | 234 lines
                    
19	), $atts));
                    
20	ob_start();
                    
21	?>
                    
63	                
                    
64	        <?php if ($category == "") : ?>
                    
65	        <?php if ($show_filters == "yes") : ?>
                    
80	        <?php endif; ?>
                    
81	        <?php endif; ?>
                    
82	        
                    
197
                    
198	                    <div class="portfolio-box hidden <?php echo esc_html($portfolio_item_width); ?> <?php echo esc_html($portfolio_item_height); ?> <?php echo esc_html($term_slug_class); ?>">
                    
199	                        
                    
199	                        
                    
200	                        <a href="<?php echo get_permalink(get_the_ID()); ?>" class="portfolio-box-inner hover-effect-link" style="background-color:<?php echo esc_html($portfolio_color_option); ?>">
                    
201	                            
                    
                
mdl.trigger.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 330 lines
                    
1<?php
                    
2require_once('shopObject.php');
                    
79    function object_fire_event($action , &$object, $member_id,&$target){
                    
80        //ob_start();'system.event_listener'
                    
81        if(false===strpos($action,':')){
                    
233            if(!function_exists('shop_match_network')){
                    
234                require(CORE_INCLUDE_DIR.'/shop/core.match_network.php');
                    
235            }
                    
                
PhutilDaemonOverseer.php git://github.com/facebook/phabricator.git | PHP | 410 lines
                    
1<?php
                    
2
                    
42    $args->setSynopsis(<<<EOHELP
                    
43**launch_daemon.php** [__options__] __daemon__
                    
44    Launch and oversee an instance of __daemon__.
                    
95    }
                    
96    $config = @file_get_contents('php://stdin');
                    
97    $config = id(new PhutilJSONParser())->parse($config);
                    
130      fclose(STDERR);
                    
131      ob_start();
                    
132
                    
                
spView.php http://student-test.googlecode.com/svn/trunk/ | PHP | 297 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
2/////////////////////////////////////////////////////////////////
                    
3// SpeedPHP??PHP??, Copyright (C) 2008 - 2010 SpeedPHP.com //
                    
4/////////////////////////////////////////////////////////////////
                    
24		if(FALSE == $GLOBALS['G_SP']['view']['enabled'])return FALSE;
                    
25		if(FALSE != $GLOBALS['G_SP']['view']['auto_ob_start'])ob_start();
                    
26		$this->engine = spClass($GLOBALS['G_SP']['view']['engine_name'],null,$GLOBALS['G_SP']['view']['engine_path']);
                    
149				$cachedata = $this->curl_get_file_contents($remoteurl);
                    
150				if( FALSE === $cachedata )spError("????????????????<br />1. spUrl?????????<a href='{$remoteurl}' target='_blank'>??????</a>?<br />2. ??php.ini?allow_url_fopen?On?<br />3. ??????????APACHE/PHP?????<br />4. ????CURL????");
                    
151			}
                    
                
ManagerCest.php git://github.com/phalcon/cphalcon.git | PHP | 361 lines
                    
1<?php
                    
2
                    
345
                    
346        ob_start();
                    
347        $manager->fire($eventType, $this);
                    
                
Image.php http://hppg.googlecode.com/svn/trunk/ | PHP | 362 lines
                    
1<?php
                    
2/**
                    
6 */
                    
7require_once 'modules/lhcaptcha/pear/Text/CAPTCHA.php';
                    
8require_once 'modules/lhcaptcha/pear/Image/Text.php';
                    
15 * 
                    
16 * @license PHP License, version 3.0
                    
17 * @author Christian Wenz <wenz@php.net>
                    
288        if (is_resource($this->_im)) {
                    
289            ob_start();
                    
290            imagepng($this->_im);
                    
315        if (is_resource($this->_im)) {
                    
316            ob_start();
                    
317            imagejpeg($this->_im);
                    
342        if (is_resource($this->_im)) {
                    
343            ob_start();
                    
344            imagegif($this->_im);
                    
                
HtmlDumperTest.php https://bitbucket.org/laravelhemraj/vamaaddress.git | PHP | 146 lines
                    
1<?php
                    
2
                    
19 */
                    
20class HtmlDumperTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
23    {
                    
24        require __DIR__.'/Fixtures/dumb-var.php';
                    
25
                    
25
                    
26        $dumper = new HtmlDumper('php://output');
                    
27        $dumper->setDumpHeader('<foo></foo>');
                    
38
                    
39        ob_start();
                    
40        $dumper->dump($data);
                    
41        $out = ob_get_clean();
                    
42        $closureLabel = PHP_VERSION_ID >= 50400 ? 'public method' : 'function';
                    
43        $out = preg_replace('/[ \t]+$/m', '', $out);
                    
                
index.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
1<?php
                    
2/*
                    
10// application initialization
                    
11ob_start();
                    
12session_start();
                    
12session_start();
                    
13require_once "includes/config.php";
                    
14$strSetupDir = (empty($ThUserData['domain'])) ? "" : $ThUserData['domain'];
                    
16$strSetupDir = (is_dir("setup/{$strSetupDir}")) ? $strSetupDir . '/' : "";
                    
17$strSettingScript = "setup" . $strSetupDir . "setting.php";
                    
18include_once $strSettingScript;
                    
18include_once $strSettingScript;
                    
19//include_once 'ebpls5501.php';
                    
20require_once "lib/ebpls.lib.php";
                    
52
                    
53$ses = isset($_COOKIE['PHPSESSID'])?$_COOKIE['PHPSESSID']:'';  //2008.05.06
                    
54
                    
                
FlashBase.php git://github.com/phalcon/cphalcon.git | PHP | 276 lines
                    
1<?php
                    
2
                    
87            $expected = sprintf(
                    
88                '<div%s>%s</div>' . PHP_EOL,
                    
89                $this->getClass($function),
                    
144    {
                    
145        ob_start();
                    
146        $flash->$function($message);
                    
                
%%A1^A1B^A1B35AFB%%SN1_Serial_NumberEditViewfault_description.tpl.php https://bitbucket.org/allexblacker/suitecrm.git | PHP | 401 lines
                    
1<?php /* Smarty version 2.6.29, created on 2018-03-15 01:35:35
                    
2         compiled from cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl */ ?>
                    
2         compiled from cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 10, false),array('function', 'sugar_getimagepath', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 43, false),array('modifier', 'lookup', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 38, false),array('modifier', 'count', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 143, false),)), $this); ?>
                    
6
                    
7<?php if (! isset ( $this->_tpl_vars['config']['enable_autocomplete'] ) || $this->_tpl_vars['config']['enable_autocomplete'] == false): ?>
                    
8	<select name="<?php echo $this->_tpl_vars['fields']['fault_description']['name']; ?>
                    
9" 
                    
10	id="<?php echo $this->_tpl_vars['fields']['fault_description']['name']; ?>
                    
11" 
                    
24	<?php $this->assign('field_options', $this->_tpl_vars['fields']['fault_description']['options']); ?>
                    
25	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['fault_description']['value']; ?>
                    
26<?php $this->_smarty_vars['capture']['field_val'] = ob_get_contents(); ob_end_clean(); ?>
                    
27	<?php $this->assign('field_val', $this->_smarty_vars['capture']['field_val']); ?>
                    
28	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['fault_description']['name']; ?>
                    
29<?php $this->_smarty_vars['capture']['ac_key'] = ob_get_contents(); ob_end_clean(); ?>
                    
                
ListTest.php git://github.com/tanakahisateru/pinoco.git | PHP | 273 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . '/../../src/Pinoco/_bootstrap.php';
                    
3
                    
4class ListTest extends PHPUnit_Framework_TestCase
                    
5{
                    
220    {
                    
221        ob_start();
                    
222        $l = Pinoco_List::fromArray(array(1, 2, 3));
                    
                
shell.test.php git://github.com/abalonepaul/eav_behavior.git | PHP | 501 lines
                    
8 *
                    
9 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.tests.cases.console.libs
                    
19 * @since         CakePHP v 1.2.0.7726
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
370
                    
371		$path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php';
                    
372		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
409		$path = TMP . 'shell_test';
                    
410		$file = $path . DS . 'file1.php';
                    
411
                    
                
funnel.html https://github.com/hank/life.git | HTML | 224 lines
                    
1<?php ob_start('ob_gzhandler') ?>
                    
2<!DOCTYPE html>
                    
158    
                    
159                <a title="Share RGraph on Facebook" href="" onclick="window.open('http://www.facebook.com/sharer.php?u=http://www.rgraph.net&t=RGraph:%20HTML5%20canvas%20graph%20library', 'facebook_window', 'width=500,height=300,top=100,left=100'); return false">
                    
160                    <img src="../images/facebook.png" width="22" height="22" alt="Post to Facebook" align="absmiddle" style="position: relative; top: -2px; border: 0" border="0"/>
                    
                
customize.php git://github.com/wordpress/wordpress.git | PHP | 270 lines
                    
47		 *
                    
48		 * Because WP_Customize_Manager is not instantiated for customize.php with the `settings_previewed=false`
                    
49		 * argument, settings cannot be reliably saved. Some logic short-circuits if the current value is the
                    
62		?>
                    
63		<?php wp_print_scripts( array( 'wp-util' ) ); ?>
                    
64		<script>
                    
155<script type="text/javascript">
                    
156var ajaxurl = <?php echo wp_json_encode( admin_url( 'admin-ajax.php', 'relative' ) ); ?>,
                    
157	pagenow = 'customize';
                    
187				<span class="controls"><?php _e( 'Customize' ); ?></span>
                    
188				<span class="preview"><?php _e( 'Preview' ); ?></span>
                    
189			</button>
                    
248						?>
                    
249						<button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ); ?>" data-device="<?php echo esc_attr( $device ); ?>">
                    
250							<span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span>
                    
                
radar.html https://github.com/makoto/node-websocket-activity-monitor.git | HTML | 219 lines
                    
1<?php ob_start('ob_gzhandler') ?>
                    
2<!DOCTYPE html>
                    
                
Image.php https://bitbucket.org/paulafaria/navaranda-wp.git | PHP | 329 lines
                    
1<?php
                    
2
                    
221		ob_start(); ?>
                    
222		<span class="ac-image cpac-cover" data-media-id="<?php echo esc_attr( $media_id ); ?>" style="width:<?php echo esc_attr( $width ); ?>px;height:<?php echo esc_attr( $height ); ?>px;background-size:cover;background-image:url(<?php echo esc_attr( $src ); ?>);background-position:center;"<?php echo $this->get_file_tooltip_attr( $media_id ); ?>></span>
                    
223
                    
223
                    
224		<?php
                    
225		return ob_get_clean();
                    
235		ob_start(); ?>
                    
236		<span class="ac-image<?php echo $class; ?>" data-media-id="<?php echo esc_attr( $media_id ); ?>"<?php echo $this->get_file_tooltip_attr( $media_id ); ?>>
                    
237			<img style="max-width:<?php echo esc_attr( $width ); ?>px;max-height:<?php echo esc_attr( $height ); ?>px;" src="<?php echo esc_attr( $src ); ?>">
                    
238
                    
239			<?php if ( $add_extension ) : ?>
                    
240				<span class="ac-extension"><?php echo esc_attr( $this->get_file_extension( $media_id ) ); ?></span>
                    
240				<span class="ac-extension"><?php echo esc_attr( $this->get_file_extension( $media_id ) ); ?></span>
                    
241			<?php endif; ?>
                    
242
                    
                
txp_auth.php http://textpattern.googlecode.com/svn/development/4.x/ | PHP | 277 lines
                    
1<?php
                    
2
                    
56
                    
57    ob_start();
                    
58}
                    
72
                    
73    include txpath.'/lib/txplib_head.php';
                    
74    $event = 'login';
                    
102            graf(
                    
103                href(gTxt('back_to_login'), 'index.php')
                    
104            , array('class' => 'login-return')).
                    
253
                    
254        include_once txpath.'/lib/txplib_admin.php';
                    
255
                    
266        if ($nonce and $confirm === pack('H*', substr(md5($nonce), 0, 10)).$name) {
                    
267            include_once txpath.'/lib/txplib_admin.php';
                    
268
                    
                
functions.php https://bitbucket.org/matthewselby/wpdev.git | PHP | 459 lines
                    
1<?php
                    
2//* Start the engine
                    
2//* Start the engine
                    
3include_once( get_template_directory() . '/lib/init.php' );
                    
4
                    
25//* Add Accent color to customizer
                    
26require_once( get_stylesheet_directory() . '/lib/customize.php' );
                    
27
                    
105	if ( is_active_sidebar( 'author-box-custom' ) ) {
                    
106		ob_start();
                    
107		genesis_widget_area( 'author-box-custom', array( 'before' => '<div class="author-box-custom">', 'after' => '</div>', ) );
                    
253		return $menu;
                    
254	ob_start();
                    
255	genesis_widget_area('nav-widget-area');
                    
386	 <style type="text/css">
                    
387		<?php if ( 0 < count( strlen( ( $home_top_background_image_url = get_theme_mod( 'pc_home_top_background_image' ) ) ) ) ) { ?>
                    
388			.home-top {
                    
                
debugger.test.php git://github.com/abalonepaul/eav_behavior.git | PHP | 372 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.5432
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
97
                    
98		$expected = '<code><span style="color: #000000">&lt;?php';
                    
99		$expected .= '</span></code>';
                    
123
                    
124		ob_start();
                    
125		Debugger::output('txt');
                    
                
functions.php http://j-ecard-28022011.googlecode.com/svn/trunk/ | PHP | 459 lines
                    
1<?php
                    
2defined('_JEXEC') or die('Restricted access'); // no direct access
                    
32
                    
33		ob_start();
                    
34?>
                    
47		
                    
48		<?php if ($hasCaption): ?>
                    
49<h2 class="art-postheader"> 
                    
49<h2 class="art-postheader"> 
                    
50		<?php echo $caption; ?>
                    
51
                    
53		
                    
54		<?php endif; ?>
                    
55		<?php if ($hasContent): ?>
                    
58		
                    
59		<?php echo artxReplaceButtons($content); ?>
                    
60
                    
                
functions.php https://bitbucket.org/matthewselby/wpdev.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
12//* Start the engine
                    
13require_once( get_template_directory() . '/lib/init.php' );
                    
14
                    
26//* Add Color Selection to WordPress Theme Customizer
                    
27require_once( get_stylesheet_directory() . '/lib/customize.php' );
                    
28
                    
29//* Setup Theme
                    
30include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' );
                    
31
                    
32//* Add Widget Spaces
                    
33require_once( get_stylesheet_directory() . '/lib/widgets.php' );
                    
34
                    
35//* Install Plugins
                    
36require_once( get_stylesheet_directory() . '/lib/plugins/tgm-plugin-activation/register-plugins.php' );
                    
37
                    
                
comment.php git://github.com/s9y/Serendipity.git | PHP | 237 lines
                    
1<?php
                    
2# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
                    
6
                    
7include('serendipity_config.inc.php');
                    
8include S9Y_INCLUDE_PATH . 'include/functions_entries_admin.inc.php';
                    
10header('Content-Type: text/html; charset=' . LANG_CHARSET);
                    
11$raw_post_data = file_get_contents("php://input");
                    
12
                    
34    );
                    
35    include S9Y_INCLUDE_PATH . 'include/genpage.inc.php';
                    
36    $serendipity['smarty']->display(serendipity_getTemplateFile('index.tpl', 'serendipityPath'));
                    
48    );
                    
49    include S9Y_INCLUDE_PATH . 'include/genpage.inc.php';
                    
50    $serendipity['smarty']->display(serendipity_getTemplateFile('index.tpl', 'serendipityPath'));
                    
67    if ($pb_logging) {
                    
68        ob_start();
                    
69        print_r($raw_post_data);
                    
                
Badge.php https://github.com/radicalsuz/amp.git | PHP | 170 lines
                    
1<?php
                    
2
                    
2
                    
3require_once( 'AMP/System/Data/Item.inc.php');
                    
4
                    
57    function getDefaultArguments( ) {
                    
58        require_once( 'AMP/Content/Page.inc.php');
                    
59        $page = AMPContent_Page::instance( );
                    
86		$output = false;
                    
87		if ($output = $this->render_php_include()) return $output;
                    
88		if ($output = $this->render_html()) return $output;
                    
96
                    
97	function render_php_include() {
                    
98		if (!($include_filename = $this->getInclude() )) return false;
                    
116		//default, just include the file
                    
117		ob_start();
                    
118		include( $include_filename );
                    
                
tasksTest.php https://github.com/openpne/OpenPNE3.git | PHP | 132 lines
                    
1<?php
                    
2
                    
3$_test_dir = realpath(__DIR__.'/..');
                    
4require_once($_test_dir.'/../lib/vendor/lime/lime.php');
                    
5require_once($_test_dir.'/../lib/util/sfToolkit.class.php');
                    
10{
                    
11  public $php_cli = null;
                    
12  public $tmp_dir = null;
                    
32
                    
33    $this->php_cli = sfToolkit::getPhpCli();
                    
34  }
                    
102// test:*
                    
103copy(__DIR__.'/fixtures/test/unit/testTest.php', $c->tmp_dir.DS.'test'.DS.'unit'.DS.'testTest.php');
                    
104
                    
119mkdir($pluginDir = $c->tmp_dir.DS.'plugins'.DS.'myFooPlugin'.DS.'lib'.DS.'task', 0777, true);
                    
120copy(__DIR__.'/fixtures/task/myPluginTask.class.php', $pluginDir.DS.'myPluginTask.class.php');
                    
121file_put_contents(
                    
                
modmanagerresponse.class.php https://github.com/pixelchutes/revolution.git | PHP | 311 lines
                    
1<?php
                    
2/**
                    
6 */
                    
7require_once MODX_CORE_PATH . 'model/modx/modresponse.class.php';
                    
8/**
                    
146        if (!class_exists($className)) {
                    
147            $classFile = strtolower($f).'.class.php';
                    
148            $classPath = null;
                    
151                if (!file_exists($controllersPath.$classFile)) {
                    
152                    if (file_exists($controllersPath.strtolower($f).'/index.class.php')) {
                    
153                        $classPath = $controllersPath.strtolower($f).'/index.class.php';
                    
163                $className = 'modManagerControllerDeprecated';
                    
164                $classPath = MODX_CORE_PATH.'model/modx/modmanagercontrollerdeprecated.class.php';
                    
165            }
                    
167            if (!file_exists($classPath)) {
                    
168                if (file_exists(strtolower($f).'/index.class.php')) {
                    
169                    $classPath = strtolower($f).'/index.class.php';
                    
                
class-ms-view-settings-import-settings.php https://bitbucket.org/matthewselby/wpdev.git | PHP | 465 lines
                    
1<?php
                    
2/**
                    
68
                    
69		ob_start();
                    
70		MS_Helper_Html::settings_box(
                    
376			'title' 		=> __( 'Batch size for import', 'membership2' ),
                    
377			'desc' 			=> __( 'Big batches will be processed faster but may result in PHP Memory errors.', 'membership2' ),
                    
378			'value' 		=> 10,
                    
                
ControlTest.php git://github.com/nella/framework.git | PHP | 137 lines
                    
1<?php
                    
2/**
                    
108
                    
109		ob_start();
                    
110		$this->control->render();
                    
                
category_items.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 338 lines
                    
135
                    
136			<?php if ($catid!=$currcatid) { ?> <a class='fc_cat_title' href="<?php echo JRoute::_( FlexicontentHelperRoute::getCategoryRoute($sub->slug) ); ?>"> <?php } else { echo "<span class='fc_cat_title'>"; } ?>
                    
137				<!-- BOF subcategory title -->
                    
185					?>
                    
186					<li id="faqlist_cat_<?php echo $catid; ?>item_<?php echo $i; ?>" class="<?php echo $fc_item_classes; ?>">
                    
187						
                    
205									<?php if ( isset($this->comments[ $item->id ]->total) ) : ?>
                    
206									<div class="fc_comments_count_nopad hasTip" alt="<?php echo JText::_('FLEXI_NUM_OF_COMMENTS');?>" title="<?php echo JText::_('FLEXI_NUM_OF_COMMENTS');?>::<?php echo JText::_('FLEXI_NUM_OF_COMMENTS_TIP');?>">
                    
207										<?php echo $this->comments[ $item->id ]->total; ?>
                    
266									<?php if ($field->label) : ?>
                    
267									<span class="flexi label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span>
                    
268									<?php endif; ?>
                    
279								<li class="flexi-field">
                    
280									<div class="flexi value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></div>
                    
281								</li>
                    
                
oauthv1.php https://gitlab.com/ImaPotato/Mahara.git | PHP | 202 lines
                    
1<?php
                    
2/**
                    
46
                    
47// Catch anything that goes wrong in init.php
                    
48ob_start();
                    
48ob_start();
                    
49    require(dirname(dirname(__FILE__)) . '/init.php');
                    
50    $errors = trim(ob_get_contents());
                    
52
                    
53require_once(dirname(__FILE__) . '/lib.php');
                    
54
                    
73 */
                    
74require_once(get_config('docroot') . 'webservice/libs/oauth-php/OAuthServer.php');
                    
75require_once(get_config('docroot') . 'webservice/libs/oauth-php/OAuthStore.php');
                    
92        # logon
                    
93        require_once('pieforms/pieform.php');
                    
94        if (!$USER->is_logged_in()) {
                    
                
install.php https://bitbucket.org/speedealing/speedealing.git | PHP | 385 lines
                    
1<?php
                    
2
                    
20/**
                    
21 *       \file       htdocs/install/ajax/install.php
                    
22 *       \brief      File to get all status for install process
                    
23 */
                    
24require '../inc.php';
                    
25
                    
40// For avoid error with destroy cookie
                    
41ob_start();
                    
42
                    
44
                    
45// This variable are loaded by inc.php
                    
46// $main_couchdb_host
                    
58		// We must ignore errors as an existing old file may already exists and not be replacable or
                    
59		// the installer (like for ubuntu) may not have permission to create another file than conf.php.
                    
60		// Also no other process must be able to read file or we expose the new file, so content with password.
                    
                
debugger.test.php git://github.com/Datawalke/Coordino.git | PHP | 372 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.5432
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
97
                    
98		$expected = '<code><span style="color: #000000">&lt;?php';
                    
99		$expected .= '</span></code>';
                    
123
                    
124		ob_start();
                    
125		Debugger::output('txt');
                    
                
conditions.php https://bitbucket.org/hcdesenvolvimentos/abracei_loja.git | PHP | 271 lines
                    
1<?php
                    
2$name_for_condition = $name;
                    
15                    <select class="br_cond_type">
                    
16                        <?php
                    
17                        foreach($condition_types as $condition_type_slug => $condition_type_name) {
                    
30        <div class="br_cond_example" style="display:none;">
                    
31            <?php
                    
32            foreach($condition_types as $condition_type_slug => $condition_type_name) {
                    
43        <div class="br_conditions">
                    
44            <?php
                    
45            $last_id = 0;
                    
47                $current_id = 1;
                    
48                ob_start();
                    
49                foreach($data as $current => $conditions) {
                    
53                    ?>
                    
54                    <div class="br_cond_select" data-current="<?php echo $current; ?>">
                    
55                        <span>
                    
                
Tabbed_View.php https://bitbucket.org/RickCalder/mcc.git | PHP | 381 lines
                    
1<?php
                    
2
                    
342
                    
343		ob_start();
                    
344
                    
378	public function get_default_template_path() {
                    
379		return Tribe__Main::instance()->plugin_path . '/src/admin-views/tabbed-view/tabbed-view.php';
                    
380	}
                    
                
transport.php https://bitbucket.org/effectal/ondi.git | PHP | 282 lines
                    
1<?php
                    
2
                    
170    function read() {
                    
171        ob_start();
                    
172        fpassthru($this->socket);
                    
                
block_rss_client_action.php https://github.com/nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 303 lines
                    
1<?php //$Id: block_rss_client_action.php,v 1.54.2.6 2008/06/08 18:29:51 dongsheng Exp $
                    
2
                    
7* @author Daryl Hawes
                    
8* @version  $Id: block_rss_client_action.php,v 1.54.2.6 2008/06/08 18:29:51 dongsheng Exp $
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
                    
12
                    
13require_once('../../config.php');
                    
14require_once($CFG->libdir .'/rsslib.php');
                    
70$straddedit = get_string('feedsaddedit', 'block_rss_client');
                    
71$link = $CFG->wwwroot.'/course/view.php?id='.$id;
                    
72if (empty($course)) {
                    
75$navlinks = array();
                    
76$navlinks = array(array('name' => get_string('administration'), 'link' => "$CFG->wwwroot/$CFG->admin/index.php", 'type' => 'misc'));
                    
77$navlinks[] = array('name' => get_string('managemodules'), 'link' => null, 'type' => 'misc');
                    
78$navlinks[] = array('name' => get_string('blocks'), 'link' => null, 'type' => 'misc');
                    
79$navlinks[] = array('name' => get_string('feedstitle', 'block_rss_client'), 'link' => "$CFG->wwwroot/$CFG->admin/settings.php?section=blocksettingrss_client", 'type' => 'misc');
                    
80$navlinks[] = array('name' => get_string('addnew', 'block_rss_client'), 'link' => null,  'type' => 'misc');
                    
                
DumpDatabase.php https://github.com/lefedor/mjncms.git | PHP | 335 lines
                    
1<?php
                    
2/**********************************************************************************
                    
2/**********************************************************************************
                    
3* DumpDatabase.php                                                                *
                    
4***********************************************************************************
                    
73		if (empty($modSettings['enableCompressedOutput']))
                    
74			@ob_start('ob_gzhandler');
                    
75		// Try to clean any data already outputted.
                    
78			ob_end_clean();
                    
79			@ob_start('ob_gzhandler');
                    
80		}
                    
                
AuthenticationConfigTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 115 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin\Tests\Plugins\Auth;
                    
6
                    
6
                    
7use PhpMyAdmin\DatabaseInterface;
                    
8use PhpMyAdmin\ErrorHandler;
                    
8use PhpMyAdmin\ErrorHandler;
                    
9use PhpMyAdmin\Plugins\Auth\AuthenticationConfig;
                    
10use PhpMyAdmin\Tests\AbstractTestCase;
                    
12use function ob_get_clean;
                    
13use function ob_start;
                    
14
                    
34        $GLOBALS['table'] = 'table';
                    
35        $GLOBALS['PMA_PHP_SELF'] = 'index.php';
                    
36        $GLOBALS['token_provided'] = true;
                    
                
module.graphic.jpg.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 173 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
9//                                                             //
                    
10// module.graphic.jpg.php                                      //
                    
11// module for analyzing JPEG Image files                       //
                    
34        {
                    
35            // http://php.net/iptcparse
                    
36            // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html
                    
59                
                    
60                if (version_compare(phpversion(), '4.2.0', '>='))
                    
61                {
                    
65                        
                    
66                        ob_start();
                    
67                        $ThisFileInfo['jpg']['exif'] = exif_read_data($ThisFileInfo['filenamepath'], '', true, false);
                    
87                    
                    
88                    $ThisFileInfo['warning'][] = 'EXIF parsing only available in PHP v4.2.0 and higher compiled with --enable-exif (or php_exif.dll enabled for Windows). You are using PHP v' . phpversion();
                    
89                
                    
                
blog_item.php http://j-ecard-28022011.googlecode.com/svn/trunk/ | PHP | 138 lines
                    
1<?php
                    
2defined('_JEXEC') or die('Restricted access'); // no direct access
                    
4?>
                    
5<?php if ($this->item->state == 0) : ?>
                    
6<div class="system-unpublished">
                    
6<div class="system-unpublished">
                    
7<?php endif; ?>
                    
8
                    
20<div class="art-post-inner">
                    
21<?php
                    
22if ($this->item->params->get('show_title')) {
                    
22if ($this->item->params->get('show_title')) {
                    
23 ob_start();
                    
24?>
                    
25 <h2 class="art-postheader"> 
                    
26<?php
                    
27 artxFragmentBegin(ob_get_clean());
                    
                
sfPHPView.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 191 lines
                    
1<?php
                    
2
                    
12/**
                    
13 * A view that uses PHP as the templating engine.
                    
14 *
                    
18 * @author     Sean Kerr <sean@code-box.org>
                    
19 * @version    SVN: $Id: sfPHPView.class.php 11783 2008-09-25 16:21:27Z fabien $
                    
20 */
                    
20 */
                    
21class sfPHPView extends sfView
                    
22{
                    
74    // render
                    
75    ob_start();
                    
76    ob_implicit_flush(0);
                    
84   *
                    
85   * Note: This will return null because PHP itself has no engine reference.
                    
86   *
                    
                
headfoot.inc git://pkgs.fedoraproject.org/nordugrid-arc | PHP | 275 lines
                    
1<?php
                    
2
                    
49      ob_implicit_flush(0);
                    
50      ob_start();
                    
51      //      ini_set("max_execution_time","120");
                    
172    echo "     <img src=\"./mon-icons/icon-print.png\" vspace=\"4\" width=\"24\" height=\"24\" border=\"0\" align=\"absmiddle\" title=\"".$this->errors["302"]."\" alt=\"".$this->errors["302"]."\"></a>\n";
                    
173    echo "     <a href=\"javascript:monitor('help.php?module=".$this->module."&lang=".$lang."',400,300,10);\" onClick=\"javascript:monitor('help.php?module=".$this->module."',400,300,10);\">\n";
                    
174    echo "     <img src=\"./mon-icons/icon-help.png\" vspace=\"4\" width=\"24\" height=\"24\" border=\"0\" align=\"absmiddle\" title=\"".$this->errors["303"]."\" alt=\"".$this->errors["303"]."\"></a>\n";
                    
                
serendipity_admin_image_selector.php git://github.com/s9y/Serendipity.git | PHP | 306 lines
                    
1<?php
                    
2# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
                    
4
                    
5include('serendipity_config.inc.php');
                    
6
                    
87                    $media['case'] = 'external';
                    
88                    ob_start();
                    
89                    include S9Y_INCLUDE_PATH . 'include/admin/images.inc.php';
                    
95                    $media['case'] = 'external';
                    
96                    ob_start();
                    
97                    include S9Y_INCLUDE_PATH . 'include/admin/images.inc.php';
                    
101                        $media['is_uploaded'] = true;
                    
102                        $serendipity['GET']['image'] = $media['imgID'] = (int)$image_id; // $image_id is passed from images.inc.php
                    
103                        break;
                    
140        $media['case'] = 'external';
                    
141        ob_start();
                    
142        include S9Y_INCLUDE_PATH . 'include/admin/images.inc.php';
                    
                
functions.php http://section-cms.googlecode.com/svn/trunk/ | PHP | 292 lines
                    
1<?php
                    
2// Buffer Function
                    
5	global $mod, $table, $sid, $id, $sPage, $sId, $block, $_GET, $_POST, $_COOKIE, $_FILES, $_SESSION;
                    
6	ob_start();               # Start Buffer
                    
7	include($f);              # Include File
                    
132{
                    
133    // Define Vars so PHP Would not Print Errors
                    
134    $build = '';
                    
241            
                    
242            if($file != '.' && $file != '..' && $file != 'modinit.php' && $pos === false)
                    
243            {
                    
246                $trap[] = array(
                    
247                    0 => 'modules/'.$tmp[0].'.php',
                    
248                    1 => $tmp[0]
                    
                
process_booking.php https://bitbucket.org/isaacoheneayisi/book2wheelmainproject.git | PHP | 271 lines
                    
16if (empty($_SESSION['total'])){
                    
17  header('Location: index.php',true,301);
                    
18  exit;
                    
84            ?>
                    
85            <div class="total">20% of the Total<span class="price">PHP  <?php echo $twenty_per;  ?></span></div>
                    
86          </div>
                    
95        <input type="hidden" name="item_name" value="MotoBike Booking">
                    
96        <input type="hidden" name="item_number" value="<?php echo $_SESSION['num_days']; ?>">
                    
97        <input type="hidden" name="amount" value="<?php echo $twenty_per;  ?>">
                    
184                <div class="form-group col-sm-12">
                    
185                <label for="card-number" style="font-size: 20px">PHP <?php echo  $twenty_per ?> = <?php echo  $euro_charge ?> EUR </label>
                    
186               <input id="card-number" type="hidden" id="amount" name="amount" class="form-control" value="<?php echo $euro_charge;  ?>" aria-label="Card Holder" aria-describedby="basic-addon1">
                    
243
                    
244<?php  include ('search_footer.php'); ?>
                    
245 <script type="text/javascript" src="js/script.js"></script>
                    
                
class-wc-api.php https://gitlab.com/CarlCDavid/woocommerce.git | PHP | 268 lines
                    
1<?php
                    
2/**
                    
74		// REST API
                    
75		add_rewrite_rule( '^wc-api/v([1-2]{1})/?$', 'index.php?wc-api-version=$matches[1]&wc-api-route=/', 'top' );
                    
76		add_rewrite_rule( '^wc-api/v([1-2]{1})(.*)?', 'index.php?wc-api-version=$matches[1]&wc-api-route=$matches[2]', 'top' );
                    
134		// API server / response handlers
                    
135		include_once( 'api/class-wc-api-exception.php' );
                    
136		include_once( 'api/class-wc-api-server.php' );
                    
136		include_once( 'api/class-wc-api-server.php' );
                    
137		include_once( 'api/interface-wc-api-handler.php' );
                    
138		include_once( 'api/class-wc-api-json-handler.php' );
                    
140		// authentication
                    
141		include_once( 'api/class-wc-api-authentication.php' );
                    
142		$this->authentication = new WC_API_Authentication();
                    
143
                    
144		include_once( 'api/class-wc-api-resource.php' );
                    
145		include_once( 'api/class-wc-api-orders.php' );
                    
                
roots.php https://gitlab.com/BGCX261/zombiecms-svn-to-git.git | PHP | 97 lines
                    
1<?php ob_start(); ?>
                    
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
                    
19		<script type="text/javascript" src="lib/js/scripts.js"></script>
                    
20		<?php if($GLOBALS["enable_contextmenu"]) { ?><script type="text/javascript" src="lib/js/context.js"></script><?php } ?>
                    
21		<link rel="shortcut icon" href="images/favicon.ico" />
                    
28		<div id="top"><img src="images/logo.png" alt="logo" id="logo" /><div id="quickboard"><a href="#search" id="show_search"><img src="images/icons/search.png" alt="search" /></a><a href="settings.php"><img src="images/icons/settings.png" alt="settings" /></a><a href="#empty"><img src="images/icons/about.png" alt="about" /></a><a href="log.php?dir=out"><img src="images/icons/logout.png" alt="logout" /></a></div>
                    
29		<div id="menu"><?php include ("zombie_menu.inc.php"); ?></div></div>
                    
30		<div id="main">
                    
42						else echo "<tr class=\"dark_blue\">";
                    
43						echo "<td style=\"width: 60%\"><a href=\"roots.php?id=".$row["id"]."\">",$row["name"],"</a></td><td style=\"width: 20%\">",$row["rights"],"/5</td><td style=\"width: 10%\"><img src=\"images/icons/pm.png\" alt=\"pm\" /></td><td style=\"width: 10%\">"; if($row['rights'] < 5 || $row["id"] == 1) { echo "<a href=\"engine.php?action=del_root&amp;id=".$row["id"]."\"><img src=\"images/icons/inline/trash.png\" alt=\"trash\"/></a>";} echo "</td></tr>";
                    
44						$i++; }
                    
51				<ul class="tabs" title="blue">
                    
52					<?php if(isset($_GET["id"])) { ?><li class="tab blue"><a href="#empty" id="mod_tab"><img src="images/icons/inline/modify.png" alt="modify"/>Modify</a></li><?php } ?>
                    
53					<li class="tab blue"><a href="#empty" id="add_tab"><img src="images/icons/inline/add.png" alt="add"/>Add</a></li>
                    
62						<p>
                    
63							<label for="mod_rights">Rights</label><select name="mod_rights" id="mod_rights"><option value="<?php echo $root["rights"]; ?>"><?php echo $root["rights"];?></option>
                    
64							<option>----------------------------</option>
                    
                
cake.test.php git://github.com/klevo/wildflower.git | PHP | 500 lines
                    
9 *
                    
10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc.
                    
16 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc.
                    
17 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
18 * @package       cake
                    
19 * @subpackage    cake.tests.cases.console
                    
20 * @since         CakePHP(tm) v 1.2.0.5432
                    
21 * @version       $Revision$
                    
185		$params = array(
                    
186			'cake.php',
                    
187			'-app',
                    
241		$params = array(
                    
242			'./console/cake.php',
                    
243			'bake',
                    
                
error.test.php git://github.com/klevo/wildflower.git | PHP | 464 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
9 *
                    
10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
18 * @package       cake
                    
23 * @lastmodified  $Date$
                    
24 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
25 */
                    
330	function testMissingTable() {
                    
331		ob_start();
                    
332		$TestErrorHandler = new TestErrorHandler('missingTable', array('className' => 'Article', 'table' => 'articles'));
                    
343	function testMissingDatabase() {
                    
344		ob_start();
                    
345		$TestErrorHandler = new TestErrorHandler('missingDatabase', array());
                    
                
eclipse.php git://github.com/moodle/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/**#@-*/
                    
286    function before($method){
                    
287        ob_start();
                    
288        $this->_invoker->before($method);
                    
                
basics.test.php http://skygames.googlecode.com/svn/trunk/ | PHP | 433 lines
                    
1<?php
                    
2/* SVN FILE: $Id: basics.test.php 7805 2008-10-30 17:30:26Z AD7six $ */
                    
3/**
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
19 * @package       cake.tests
                    
24 * @lastmodified  $Date: 2008-10-30 12:30:26 -0500 (Thu, 30 Oct 2008) $
                    
25 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
26 */
                    
                
fc799be489be98216ba32724b9aee1877f691ec3.file.new-products.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 36 lines
                    
2         compiled from "C:\D\prestashoplf\prestashop/themes/ling/new-products.tpl" */ ?>
                    
3<?php /*%%SmartyHeaderCode:39714efc8dff7b9087-90893982%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
                    
4$_smarty_tpl->decodeProperties(array (
                    
19)); /*/%%SmartyHeaderCode%%*/?>
                    
20<?php ob_start(); ?><?php echo smartyTranslate(array('s'=>'New products'),$_smarty_tpl);?>
                    
21<?php  Smarty::$_smarty_vars['capture']['path']=ob_get_clean();?>
                    
21<?php  Smarty::$_smarty_vars['capture']['path']=ob_get_clean();?>
                    
22<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
                    
23 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
                    
23 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
                    
24<h1><?php echo smartyTranslate(array('s'=>'New products'),$_smarty_tpl);?>
                    
25</h1>
                    
26<?php if ($_smarty_tpl->getVariable('products')->value){?>
                    
27	<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./product-sort.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
                    
28 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
                    
                
auto_enroll_filter_courses.php https://github.com/atutor/ATutor.git | PHP | 213 lines
                    
116				<option value="-1">- - - <?php echo _AT('cats_all'); ?> - - -</option>
                    
117				<option value="0" <?php if ($_POST['category'] == 0) { echo 'selected="selected"'; } ?>>- - - <?php echo _AT('cats_uncategorized'); ?> - - -</option>
                    
118				<?php echo $categories_select; ?>
                    
123		<div class="row">
                    
124			<label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
                    
125
                    
142		<tr>
                    
143			<th scope="col"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all_add" title="<?php echo _AT('select_all'); ?>" name="selectall_add" onclick="CheckAll('add_ids[]', 'selectall_add');" /></th>
                    
144			<th scope="col"><?php echo _AT('title'); ?></th>
                    
171	?>
                    
172		<tr onmousedown="document.form['a<?php echo $row['course_id']; ?>'].checked = !document.form['a<?php echo $row['course_id']; ?>'].checked; togglerowhighlight(this, 'a<?php echo $row['course_id']; ?>');" id="ra<?php echo $row['course_id']; ?>">
                    
173			<td width="10"><label for="ta<?php echo $row['course_id']; ?>"><input type="checkbox" name="add_ids[]" value="<?php echo $row['course_id']; ?>" id="a<?php echo $row['course_id']; ?>" onmouseup="this.checked=!this.checked" /></label></td>
                    
173			<td width="10"><label for="ta<?php echo $row['course_id']; ?>"><input type="checkbox" name="add_ids[]" value="<?php echo $row['course_id']; ?>" id="a<?php echo $row['course_id']; ?>" onmouseup="this.checked=!this.checked" /></label></td>
                    
174			<td id="ta<?php echo $row['course_id']; ?>"><?php echo $row['title']; ?></td>
                    
175			<td><?php echo $cats[$row['cat_id']]; ?></td>
                    
                
admin.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 152 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * This file is designed for inclusion by /site/templates/admin.php template and all the variables 
                    
7 * it references are from your template namespace. 
                    
49		htmlentities($_SERVER['HTTP_HOST'], ENT_QUOTES, 'UTF-8') . "' - " . 
                    
50		__('Please update your $config->httpHosts setting in /site/config.php') . " - " . 
                    
51		"<a target='_blank' href='https://processwire.com/api/variables/config/#httphosts'>" . __('read more') . "</a>", 
                    
76// enable modules to output their own ajax responses if they choose to
                    
77if($config->ajax) ob_start();
                    
78
                    
90		$controller->setProcessName($page->process); 
                    
91		$initFile = $config->paths->adminTemplates . 'init.php'; 
                    
92		if(is_file($initFile)) include($initFile); 
                    
148	if(!strlen($content)) $content = '<p>' . __('The process returned no content.') . '</p>';
                    
149	require($config->paths->adminTemplates . 'default.php'); 
                    
150	$session->removeNotices();
                    
                
phptal.php git://github.com/nojimage/CakePHP-TALTAL.git | PHP | 232 lines
                    
24if (!class_exists('PHPTAL')) {
                    
25    App::import('Vendor', 'Taltal.PHPTAL', array('file' => 'phptal' . DS . 'PHPTAL.php'));
                    
26}
                    
48        parent::__construct($controller);
                    
49        $this->Phptal = new PHPTAL();
                    
50        $this->Phptal->setEncoding(Configure::read('App.encoding'));
                    
50        $this->Phptal->setEncoding(Configure::read('App.encoding'));
                    
51        $this->Phptal->setPhpCodeDestination(CACHE . 'views');
                    
52        $this->_createUrlModifier();
                    
192                } else if (preg_match('/^[a-z0-9_]+\(/i', $src)) {
                    
193                    $src = phptal_tales('php:' . $src, $nothrow);
                    
194                } else {
                    
207                } else if (preg_match('/^[a-z0-9_]+\(/i', $src)) {
                    
208                    $src = phptal_tales('php:' . $src, $nothrow);
                    
209                } else {
                    
                
CakeHtmlReporter.php git://github.com/cakephp/cakephp.git | PHP | 351 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @since         CakePHP(tm) v 1.2.0.4433
                    
15 * @since         CakePHP(tm) v 1.2.0.4433
                    
16 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
17 */
                    
90		foreach ($testCases as $testCaseFile => $testCase) {
                    
91			$title = explode(DS, str_replace('.test.php', '', $testCase));
                    
92			$title[count($title) - 1] = Inflector::camelize($title[count($title) - 1]);
                    
120 *
                    
121 * @param PHPUnit_Framework_TestResult $result Result object
                    
122 * @return void
                    
                
fetchscript.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 258 lines
                    
11* 
                    
12* @version $Id: fetchscript.php 1367 2008-04-10 19:30:20Z soeren_nb $
                    
13* @package VirtueMart
                    
15* @copyright Copyright (C) 2006-2007 soeren - All rights reserved.
                    
16* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
17* VirtueMart is free software. This version may have been modified pursuant
                    
20* other free or open source software licenses.
                    
21* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
22*
                    
36	if ($gzip) {
                    
37		$phpver 	= phpversion();
                    
38		$useragent 	= isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : '';
                    
63				// zlib.output_compression is activated here
                    
64				ob_start( 'ob_gzhandler' );
                    
65				
                    
                
class-lp-modal-search-items.php https://bitbucket.org/lemse/unilemse.git | PHP | 369 lines
                    
1<?php
                    
2
                    
229		public function get_html_items() {
                    
230			ob_start();
                    
231			if ( $items = $this->get_items() ) {
                    
341					$message = __( 'There are no available lessons for this course, please use ', 'learnpress' );
                    
342					$message .= '<a target="_blank" href="' . admin_url( 'post-new.php?post_type=lp_lesson' ) . '">' . esc_html__( 'Add new item', 'learnpress' ) . '</a>';
                    
343					break;
                    
345					$message = __( 'There are no available quizzes for this course, please use ', 'learnpress' );
                    
346					$message .= '<a target="_blank" href="' . admin_url( 'post-new.php?post_type=lp_quiz' ) . '">' . esc_html__( 'Add new item', 'learnpress' ) . '</a>';
                    
347					break;
                    
349					$message = __( 'There are no available questions for this quiz, please use ', 'learnpress' );
                    
350					$message .= '<a target="_blank" href="' . admin_url( 'post-new.php?post_type=lp_question' ) . '">' . esc_html__( 'Add new item', 'learnpress' ) . '</a>';
                    
351					break;
                    
                
Pagesetup.php https://gitlab.com/mrjkvcs/usnationalcommercial.git | PHP | 332 lines
                    
1<?php
                    
2
                    
295		if ($page) {
                    
296			if (file_exists('views/' . $page . '.php')) {
                    
297				if (DEBUG_MODE) {
                    
299				}
                    
300				ob_start();
                    
301				include('views/' . $page . '.php');
                    
308		} else {
                    
309			ob_start();
                    
310			UniAdmin::app()->render();
                    
316		if (strpos(UniAdmin::app()->config['layout'], '.') !== false) {
                    
317			$path = str_replace('.', '/', UniAdmin::app()->config['layout']) . '.php';
                    
318		} else {
                    
318		} else {
                    
319			$path = 'views/' . UniAdmin::app()->config['layout'] . '.php';
                    
320		}
                    
                
pre.php https://gitlab.com/oslc-cm-server/olbergers-ff5-oslc.git | PHP | 204 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * pre.php - Automatically prepend to every page.
                    
4 *
                    
12// escaping lib
                    
13require_once('common/include/escapingUtils.php');
                    
14
                    
23if (!isset($no_gz_buffer) || !$no_gz_buffer) {
                    
24	ob_start("ob_gzhandler");
                    
25}
                    
29// get constants used for flags or status
                    
30require('common/include/constants.php');
                    
31
                    
38//library to determine browser settings
                    
39require_once('www/include/browser.php');
                    
40
                    
                
edit-post.php https://bitbucket.org/matthewselby/wpdev.git | PHP | 271 lines
                    
87				?>
                    
88				<a id="mcc_copy_link" class="button-primary" href="<?php echo esc_url( $link ); ?>"><?php _e( 'Copy', MULTISTE_CC_LANG_DOMAIN ); ?></a>
                    
89			<?php
                    
135					</label>
                    
136					<select name="<?php echo $prefix_slug; ?>blog_group" id="<?php echo $prefix_slug; ?>blog_group">
                    
137						<?php mcc_get_groups_dropdown(); ?>
                    
143						<label>
                    
144							<input type="radio" name="<?php echo $prefix_slug; ?>dest_blog_type" class="<?php echo $prefix_slug; ?>dest_blog_type" value="nbt-group">
                    
145							<?php _e( 'Blog Templates Group', MULTISTE_CC_LANG_DOMAIN ); ?>
                    
146						</label>
                    
147						<select name="<?php echo $prefix_slug; ?>nbt_blog_group" id="<?php echo $prefix_slug; ?>nbt_blog_group">
                    
148							<?php mcc_get_nbt_groups_dropdown(); ?>
                    
169				<?php foreach ( $options as $option_slug => $label ): ?>
                    
170					<li><label><input type="checkbox" class="mcc_options" name="<?php echo $option_slug; ?>" value="<?php echo $option_slug; ?>"></input> <?php echo $label; ?></label></li>
                    
171				<?php endforeach; ?>
                    
                
CBaseController.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 304 lines
                    
1<?php
                    
2/**
                    
63 * @author Qiang Xue <qiang.xue@gmail.com>
                    
64 * @version $Id: CBaseController.php 242 2012-03-29 15:18:01Z mole1230 $
                    
65 * @package system.web
                    
108	 * Renders a view file.
                    
109	 * This method includes the view file as a PHP script
                    
110	 * and captures the display result if required.
                    
124		{
                    
125			ob_start();
                    
126			ob_implicit_flush(false);
                    
164		{
                    
165			ob_start();
                    
166			ob_implicit_flush(false);
                    
                
DebugClassLoaderTest.php git://github.com/symfony/symfony.git | PHP | 316 lines
                    
1<?php
                    
2
                    
16
                    
17class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase
                    
18{
                    
62    {
                    
63        if (PHP_VERSION_ID >= 70000) {
                    
64            $this->markTestSkipped('PHP7 throws exceptions, unsilencing is not required anymore.');
                    
69
                    
70        ob_start();
                    
71
                    
86        // the ContextErrorException must not be loaded to test the workaround
                    
87        // for https://bugs.php.net/65322.
                    
88        if (class_exists('Symfony\Component\Debug\Exception\ContextErrorException', false)) {
                    
110            $this->assertStringStartsWith(__FILE__, $exception->getFile());
                    
111            if (PHP_VERSION_ID < 70000) {
                    
112                $this->assertRegExp('/^Runtime Notice: Declaration/', $exception->getMessage());
                    
                
fx.php https://github.com/ntulip/TwitApps.git | PHP | 181 lines
                    
1<?php
                    
2	ini_set('precision', 20);
                    
7	
                    
8	require ROOTDIR.'../common/shared.php';
                    
9	require ROOTDIR.'../common/twitter.class.php';
                    
9	require ROOTDIR.'../common/twitter.class.php';
                    
10	require ROOTDIR.'../common/phpmailer/class.phpmailer.php';
                    
11
                    
11
                    
12	require CODEDIR.'queue.class.php';
                    
13	require CODEDIR.'user.class.php';
                    
19	require ROOTDIR.'config.php';
                    
20	if (file_exists(ROOTDIR.'config_dev.php')) require ROOTDIR.'config_dev.php';
                    
21	
                    
146		{
                    
147			if (!isset($users[$_SERVER['PHP_AUTH_USER']]) or $users[$_SERVER['PHP_AUTH_USER']] != $_SERVER['PHP_AUTH_PW'])
                    
148				die('<h1>Unauthorised</h1><p>You are not authorised to view this page: Invalid credentials</p>');
                    
                
image.php git://github.com/enormego/EightPHP.git | PHP | 463 lines
                    
1<?php
                    
2/**
                    
6 * @subpackage	Helpers
                    
7 * @author		EightPHP Development Team
                    
8 * @copyright	(c) 2009-2010 EightPHP
                    
8 * @copyright	(c) 2009-2010 EightPHP
                    
9 * @license		http://license.eightphp.com
                    
10 */
                    
367		$type = ltrim(rtrim(strtolower($type)));
                    
368		ob_start();
                    
369			switch($type) {
                    
                
add_noticias.php https://bitbucket.org/dougg0k/s-d-curriculos-cms.git | PHP | 149 lines
                    
1<?php
                    
2	require('includes/config.php');
                    
3
                    
4	ob_start("sanitize_output");
                    
5
                    
10
                    
11	require('layout/header.php');
                    
12
                    
42			<ul class="nav navbar-top-links navbar-right">
                    
43				<li><a href="logout.php" id="logout-btn"><i class="fa fa-sign-out fa-fw"></i> Sair</a></li>
                    
44			</ul>
                    
50							<li>
                    
51								<a href="noticias.php" class="active"><i class="fa fa-list" id="icons-color"></i><span
                    
52										id="icons-color"> Noticias</span></a>
                    
54							<li>
                    
55								<a href="vagas.php" class="not-active"><i class="fa fa-briefcase" id="icons-color"></i><span
                    
56										id="icons-color"> Vagas</span></a>
                    
                
class.clef-utils.php https://bitbucket.org/ChendeyY/docklandsmedia.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
26     *
                    
27     * @param string $name The name (with no .php extension) of a file in
                    
28     *   templates/.
                    
40        }
                    
41        ob_start();
                    
42        require(CLEF_TEMPLATE_PATH . $name . '.php');
                    
                
Client.php https://bitbucket.org/ishtiaq_anik/datasysweb.git | PHP | 204 lines
                    
1<?php
                    
2
                    
84                $r = new \ReflectionClass($class);
                    
85                $file = dirname(dirname($r->getFileName())).'/autoload.php';
                    
86                if (file_exists($file)) {
                    
96        $code = <<<EOF
                    
97<?php
                    
98
                    
146     *
                    
147     * If the size of a file is greater than the allowed size (from php.ini) then
                    
148     * an invalid UploadedFile is returned with an error set to UPLOAD_ERR_INI_SIZE.
                    
197        // this is needed to support StreamedResponse
                    
198        ob_start();
                    
199        $response->sendContent();
                    
                
VarClonerTest.php git://github.com/symfony/symfony.git | PHP | 532 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\VarDumper\Cloner\VarCloner;
                    
15use Symfony\Component\VarDumper\Cloner\VarCloner;
                    
16use Symfony\Component\VarDumper\Tests\Fixtures\Php74;
                    
17
                    
24    {
                    
25        $data = [PHP_INT_MAX => 123];
                    
26
                    
62EOTXT;
                    
63        $this->assertSame(sprintf($expected, PHP_INT_MAX), print_r($clone, true));
                    
64    }
                    
392EOTXT;
                    
393        ob_start();
                    
394        var_dump($clone);
                    
                
Addon.php https://bitbucket.org/mediastuttgart/sallycms-trunk | PHP | 479 lines
                    
1<?php
                    
2/*
                    
7 *
                    
8 * http://www.opensource.org/licenses/mit-license.php
                    
9 */
                    
195			while (ob_get_level()) ob_end_clean();
                    
196			ob_start('ob_gzhandler');
                    
197
                    
                
PartialHelper.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 390 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: PartialHelper.php 10227 2008-07-11 19:36:32Z fabien $
                    
18 */
                    
160 * The partial name is composed as follows: 'mymodule/mypartial'.
                    
161 * The partial file name is _mypartial.php and is looked for in modules/mymodule/templates/.
                    
162 * If the partial name doesn't include a module name,
                    
254
                    
255  ob_start();
                    
256  ob_implicit_flush(0);
                    
                
quickpage.php https://bitbucket.org/saltwaterdev/offshorefinancial.com.git | 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',
                    
                
Capsule.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 266 lines
                    
1<?php
                    
2
                    
4 * Capsule is a simple "template" engine that essentially provides an isolated context
                    
5 * for PHP scripts.
                    
6 * 
                    
132        
                    
133        if (!empty($php_errormsg)) {
                    
134            throw new Exception("Unable to parse template " . $__template . ": " . $php_errormsg);
                    
151        // hopefully this works recursively ... fingers crossed.    
                    
152        ob_start();
                    
153        
                    
                
new-menu.php http://jfxcms.googlecode.com/svn/ | PHP | 199 lines
                    
1<?php
                    
2###############   COPYLEFT GPLv3 LICENSE   ###############
                    
22
                    
23ob_start();
                    
24
                    
                
PreferencesPresenter.class.php https://gitlab.com/prenaud76/tuleap.git | PHP | 391 lines
                    
1<?php
                    
2/**
                    
254    public function user_legal() {
                    
255        ob_start();
                    
256        include $GLOBALS['Language']->getContent('account/user_legal');
                    
                
b2ff40a02a96c078a8de06b15caa.php https://bitbucket.org/polipetr/cms.git | PHP | 183 lines
                    
1<?php
                    
2
                    
115                echo "                                ";
                    
116                ob_start();
                    
117                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["template"]) ? $context["template"] : $this->getContext($context, "template")), "renderBlock", array(0 => "menu", 1 => array("collector" => $this->getAttribute((isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile")), "getcollector", array(0 => (isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "method"))), "method"), "html", null, true);
                    
                
View.php git://github.com/AlephTav/Aleph.git | PHP | 340 lines
                    
1<?php
                    
2/**
                    
25/**
                    
26 * The simple view class using PHP as template language.
                    
27 *
                    
156        $this->level++;
                    
157        ob_start();
                    
158        ob_implicit_flush(false);
                    
218        } else {
                    
219            ob_start();
                    
220            ob_implicit_flush(false);
                    
327        $view = $this->getTemplate();
                    
328        if (strlen($view) <= PHP_MAXPATHLEN && is_file($view)) {
                    
329            return $view;
                    
333            $file = $dir . DIRECTORY_SEPARATOR . $view . $ext;
                    
334            if (strlen($file) <= PHP_MAXPATHLEN && is_file($file)) {
                    
335                return $file;
                    
                
Revslider.php https://bitbucket.org/maconeto/proman.git | PHP | 114 lines
                    
1<?php
                    
2
                    
31		if ( is_null($this->_slider) ) {
                    
32			ob_start();
                    
33			$this->_slider = RevSliderOutput::putSlider($this->getData('alias'));
                    
                
doc.php https://gitlab.com/BillRocha/plim.git | PHP | 438 lines
                    
1<?php
                    
2/**
                    
176        ob_end_clean();
                    
177        ob_start('ob_gzhandler');
                    
178        header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');
                    
223    */
                    
224    function produce($php = false, $brade = false, $sTag = true){
                    
225        //With blade ???
                    
252        //Eval PHP in HTML
                    
253        if($php) $this->evalPHP();
                    
254
                    
350                        restore_error_handler();
                    
351                        ob_start();
                    
352                        $ret = eval('return '.$out.';');
                    
                
css.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 331 lines
                    
1<?php
                    
2/**
                    
11if(!defined('DOKU_DISABLE_GZIP_OUTPUT')) define('DOKU_DISABLE_GZIP_OUTPUT',1); // we gzip ourself here
                    
12require_once(DOKU_INC.'inc/init.php');
                    
13require_once(DOKU_INC.'inc/pageutils.php');
                    
13require_once(DOKU_INC.'inc/pageutils.php');
                    
14require_once(DOKU_INC.'inc/httputils.php');
                    
15require_once(DOKU_INC.'inc/io.php');
                    
15require_once(DOKU_INC.'inc/io.php');
                    
16require_once(DOKU_INC.'inc/confutils.php');
                    
17
                    
104    // start output buffering and build the stylesheet
                    
105    ob_start();
                    
106
                    
                
smarty_internal_parsetree.php git://github.com/jasonhinkle/phreeze.git | PHP | 393 lines
                    
85        $var = sprintf('$_tmp%d', ++Smarty_Internal_Templateparser::$prefix_number);
                    
86        $this->parser->compiler->prefix_code[] = sprintf('<?php ob_start();?>%s<?php %s=ob_get_clean();?>', $this->data, $var);
                    
87
                    
118     */
                    
119    public function to_smarty_php()
                    
120    {
                    
188            } else {
                    
189                $more_php = $subtree->to_smarty_php();
                    
190            }
                    
191
                    
192            $code .= $more_php;
                    
193
                    
292            if (substr($code, -1) == '<') {
                    
293                $subtree = $this->subtrees[$key]->to_smarty_php();
                    
294                if (substr($subtree, 0, 1) == '?') {
                    
                
Abstract.php https://bitbucket.org/awylie199/s5t.git | PHP | 385 lines
                    
1<?php
                    
2/**
                    
262        if ($this->_captureLock) {
                    
263            //--//require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';
                    
264            $e = new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');
                    
273        }
                    
274        ob_start();
                    
275    }
                    
336     *
                    
337     * as defined by the PHP manual
                    
338     * @return int
                    
                
upgrade.php http://wordcraft.googlecode.com/svn/trunk/ | PHP | 103 lines
                    
1<?php
                    
2
                    
16// do this so session check will not fail
                    
17ob_start();
                    
18
                    
18
                    
19require_once "../include/common.php";
                    
20require_once "./admin_functions.php";
                    
21
                    
22require_once "./header.php";
                    
23
                    
77
                    
78        <?php if(isset($next)){ ?>
                    
79            <p>
                    
81            </p>
                    
82            <form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
                    
83                <input type="submit" value="Continue">
                    
                
Element.php https://github.com/depage/depage-forms.git | PHP | 300 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @file    element.php
                    
4 * @brief   element class
                    
226     * If the element is constructed with a custom log object the logging
                    
227     * happens there, otherwise the PHP error_log function is used.
                    
228     *
                    
238            if (gettype($argument) != 'string') {
                    
239                ob_start();
                    
240                print_r($argument);
                    
299
                    
300/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
                    
301
                    
                
6ABE93E6%%Address.tpl.php https://github.com/bhirsch/voipdev.git | PHP | 177 lines
                    
34            <td>
                    
35                <a href="#" title="<?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Delete Address Block<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>" onClick="removeBlock( 'Address', '<?php echo $this->_tpl_vars['blockId']; ?>
                    
36' ); return false;"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>delete<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></a>
                    
51&nbsp;&nbsp;<span id="show_address"></span>
                    
52				<?php if ($this->_tpl_vars['mailToHouseholdID']): ?><div id="shared_address"><?php echo $this->_tpl_vars['sharedHouseholdAddress']; ?>
                    
53</div><?php endif; ?>
                    
82        <td><a href="#" onclick="buildAdditionalBlocks( 'Address', '<?php echo $this->_tpl_vars['className']; ?>
                    
83' );return false;"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>add address<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></a></td>
                    
84     </tr>
                    
138var newContactText = "'; ?>
                    
139(<?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>new contact record<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>)<?php echo '";
                    
140cj(\'#shared_household\').autocomplete( dataUrl, { width : 320, selectFirst : false, matchCase : true, matchContains: true
                    
168<?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Location type<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?> <?php echo '" + selectedText + "'; ?>
                    
169 <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>has already been assigned to another address. Please select another location type for this address.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?><?php echo '";
                    
170			    alert( alertText );
                    
                
Modules.php https://bitbucket.org/hery/ci-cms/ | PHP | 247 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
9
                    
10/* PHP5 spl_autoload */
                    
11spl_autoload_register('Modules::autoload');
                    
22 *
                    
23 * Install this file as application/third_party/MX/Modules.php
                    
24 *
                    
65			if (method_exists($class, $method))	{
                    
66				ob_start();
                    
67				$args = func_get_args();
                    
                
common.lib.php git://pkgs.fedoraproject.org/pgfouine | PHP | 297 lines
                    
1<?php
                    
2
                    
56function getFormattedArray(& $array) {
                    
57	ob_start();
                    
58	print_r($array);
                    
131function str_putcsv($input, $delimiter = ',', $enclosure = '"') {
                    
132	 $fp = fopen('php://temp', 'r+');
                    
133	 fputcsv($fp, $input, $delimiter, $enclosure);
                    
                
animated_text.php https://bitbucket.org/aronwp/total.git | PHP | 283 lines
                    
1<?php
                    
2/**
                    
34		public static function output( $atts, $content = null ) {
                    
35			ob_start();
                    
36			include( locate_template( 'vcex_templates/vcex_animated_text.php' ) );
                    
                
yubikey.php https://bitbucket.org/rubbystar/carimod.git | PHP | 371 lines
                    
1<?php
                    
2/**
                    
104		// Start output buffering
                    
105		@ob_start();
                    
106
                    
106
                    
107		// Include the form.php from a template override. If none is found use the default.
                    
108		$path = FOFPlatform::getInstance()->getTemplateOverridePath('plg_twofactorauth_yubikey', true);
                    
111
                    
112		if (JFile::exists($path . '/form.php'))
                    
113		{
                    
113		{
                    
114			include_once $path . '/form.php';
                    
115		}
                    
117		{
                    
118			include_once __DIR__ . '/tmpl/form.php';
                    
119		}
                    
                
GearmanPearManager.php git://github.com/brianlmoon/GearmanManager.git | PHP | 317 lines
                    
1<?php
                    
2
                    
15if (!class_exists("GearmanManager")) {
                    
16    require dirname(__FILE__)."/../GearmanManager.php";
                    
17}
                    
48        if (!class_exists("Net_Gearman_Job_Common")) {
                    
49            require "Net/Gearman/Job/Common.php";
                    
50        }
                    
52        if (!class_exists("Net_Gearman_Job")) {
                    
53            require "Net/Gearman/Job.php";
                    
54        }
                    
56        if (!class_exists("Net_Gearman_Worker")) {
                    
57            require "Net/Gearman/Worker.php";
                    
58        }
                    
95
                    
96        $this->worker->attachCallback(array($this, 'job_start'), \Net_Gearman_Worker::JOB_START);
                    
97        $this->worker->attachCallback(array($this, 'job_complete'), \Net_Gearman_Worker::JOB_COMPLETE);
                    
                
Slider.php https://bitbucket.org/NoOYee/housing-students.git | PHP | 338 lines
                    
1<?php
                    
2
                    
115
                    
116        ob_start();
                    
117        switch ($id) {
                    
243        ));
                    
244        ob_start();
                    
245        $this->render();
                    
271
                    
272        ob_start();
                    
273        $this->render();
                    
                
server.php https://github.com/ronin-ruby/ronin-ruby.github.io.git | PHP | 485 lines
                    
3#
                    
4# Ronin PHP-RPC Server - A PHP-RPC server designed to work in hostile
                    
5# environments.
                    
34    'system_release' => php_uname('r'),
                    
35    'system_version' => php_uname('v'),
                    
36    'machine_type' => php_uname('m'),
                    
37    'host_name' => php_uname('n'),
                    
38    'php_server_api' => php_sapi_name(),
                    
39    'php_version' => phpversion(),
                    
412  <head>
                    
413    <title>Ronin::PHP - AJAX PHP-RPC Console</title>
                    
414    <link rel="stylesheet" type="text/css" href="ajax/css/layout.css">
                    
454            <li><a href="#console_shell"><span>Shell</span></a></li>
                    
455            <li><a href="#console_php"><span>PHP</span></a></li>
                    
456            <li><a href="#console_fingerprint"><span>Fingerprint</span></a></li>
                    
                
Helper.php https://bitbucket.org/nikolaswise/fuel.git | PHP | 458 lines
                    
1<?php
                    
2
                    
16	 * @example
                    
17	 * ```php
                    
18	 * $context = Timber::get_context();
                    
119	 * @example
                    
120	 * ```php
                    
121	 * $start = TimberHelper::start_timer();
                    
142	 * @example
                    
143	 * ```php
                    
144	 * function the_form() {
                    
144	 * function the_form() {
                    
145	 *     echo '<form action="form.php"><input type="text" /><input type="submit /></form>';
                    
146	 * }
                    
158	 * <h1>Apply to my contest!</h1>
                    
159	 * <form action="form.php"><input type="text" /><input type="submit /></form>
                    
160	 * ```
                    
                
functions.wp-cron.php https://github.com/msmalley/GeoPress.git | PHP | 402 lines
                    
1<?php
                    
2// Last sync [WP12462]
                    
218
                    
219		ob_start();
                    
220		wp_redirect( add_query_arg('doing_wp_cron', '', stripslashes($_SERVER['REQUEST_URI'])) );
                    
226
                    
227		@include_once(ABSPATH . 'wp-cron.php');
                    
228		return;
                    
                
ExportXmlTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 436 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin\Tests\Plugins\Export;
                    
6
                    
6
                    
7use PhpMyAdmin\DatabaseInterface;
                    
8use PhpMyAdmin\Plugins\Export\ExportXml;
                    
8use PhpMyAdmin\Plugins\Export\ExportXml;
                    
9use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
                    
10use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
                    
10use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
                    
11use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem;
                    
12use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
                    
12use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
                    
13use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
                    
14use PhpMyAdmin\Table;
                    
                
d9bd5ee495274cb043160a4e2a756b0badfa021d.tygh.pages_search_form.tpl.php https://bitbucket.org/behram_b/cs-card-market-place.git | PHP | 201 lines
                    
37),false); /*/%%SmartyHeaderCode%%*/?>
                    
38<?php if ($_valid && !is_callable('content_5b143e77df4b63_15134568')) {function content_5b143e77df4b63_15134568($_smarty_tpl) {?><?php if (!is_callable('smarty_function_array_to_fields')) include '/Applications/XAMPP/xamppfiles/htdocs/E/market-place/app/functions/smarty_plugins/function.array_to_fields.php';
                    
39if (!is_callable('smarty_modifier_truncate')) include '/Applications/XAMPP/xamppfiles/htdocs/E/market-place/app/functions/smarty_plugins/modifier.truncate.php';
                    
144    <tr>
                    
145        <td class="select-field"><label for="pname" class="checkbox"><input type="checkbox" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['pname']=="Y") {?>checked="checked"<?php }?> name="pname" id="pname"/><?php echo $_smarty_tpl->__("page_name");?>
                    
146</label></td>
                    
165                <option value="">--</option>
                    
166                <option value="A" <?php if ($_smarty_tpl->tpl_vars['search']->value['status']=="A") {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->__("active");?>
                    
167</option>
                    
167</option>
                    
168                <option value="H" <?php if ($_smarty_tpl->tpl_vars['search']->value['status']=="H") {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->__("hidden");?>
                    
169</option>
                    
169</option>
                    
170                <option value="D" <?php if ($_smarty_tpl->tpl_vars['search']->value['status']=="D") {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->__("disabled");?>
                    
171</option>
                    
                
new-ui-tester.php https://bitbucket.org/matthewselby/wpdev.git | PHP | 293 lines
                    
1<?php
                    
2
                    
226
                    
227		$template_filename = "views/$file.php";
                    
228		$template_file = plugin_dir_url( plugin_basename( __FILE__ ) ) . $template_filename;
                    
234		if ( $return ) {
                    
235			ob_start();
                    
236		}
                    
                
TestOfGridController.php git://github.com/ginatrapani/ThinkUp.git | PHP | 303 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * ThinkUp/tests/TestOfGridController.php
                    
5 *
                    
29 */
                    
30require_once dirname(__FILE__).'/init.tests.php';
                    
31require_once THINKUP_WEBAPP_PATH.'_lib/extlib/simpletest/autorun.php';
                    
31require_once THINKUP_WEBAPP_PATH.'_lib/extlib/simpletest/autorun.php';
                    
32require_once THINKUP_WEBAPP_PATH.'config.inc.php';
                    
33
                    
57        $this->assertEqual('You must <a href="'.$config->getValue('site_root_path').
                    
58        'session/login.php">log in</a> to do this.', $v_mgr->getTemplateDataItem('error_msg'));
                    
59    }
                    
63        $controller = new GridController(true);
                    
64        ob_start();
                    
65        $controller->control();
                    
                
extract.test.php git://github.com/klevo/wildflower.git | PHP | 134 lines
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
11 * Copyright 2006-2010, Cake Software Foundation, Inc.
                    
16 * @copyright     Copyright 2006-2010, Cake Software Foundation, Inc.
                    
17 * @link          http://cakefoundation.org/projects/info/cakephp CakePHP Project
                    
18 * @package       cake
                    
19 * @subpackage    cake.tests.cases.console.libs.tasks
                    
20 * @since         CakePHP v 1.2.0.7726
                    
21 * @version       $Revision$
                    
32if (!class_exists('ShellDispatcher')) {
                    
33	ob_start();
                    
34	$argv = false;
                    
                
utility.php http://68kb.googlecode.com/svn/trunk/ | PHP | 334 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
26 * @link		http://68kb.com/user_guide/overview/settings.html
                    
27 * @version 	$Id: utility.php 172 2009-12-11 16:18:32Z suzkaw68 $
                    
28 */
                    
198		$log[] = 'Generating Tree...';
                    
199		ob_start();
                    
200		$this->generate_tree_list($categories, 0, 0);
                    
332
                    
333/* End of file utility.php */
                    
334/* Location: ./upload/includes/application/controllers/admin/utility.php */ 
                    
                
class-front-end.php https://bitbucket.org/callum-harrod/thestudentroom.git | PHP | 328 lines
                    
1<?php
                    
2
                    
124
                    
125		ob_start();
                    
126
                    
236    if ( false !== strpos( $content, '<!--cs-content-end-->' ) ) {
                    
237      ob_start();
                    
238      do_action( 'cs_the_content_late' );
                    
                
ConfigTest.php https://github.com/jorgenils/zend-framework.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once dirname(__FILE__) . '/../TestHelper.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Config.php';
                    
32
                    
39 */
                    
40class Zend_ConfigTest extends PHPUnit_Framework_TestCase
                    
41{
                    
102    {
                    
103        if (version_compare(PHP_VERSION, '5.1', '>=')) {
                    
104            $config = new Zend_Config($this->_all, false);
                    
200
                    
201        ob_start();
                    
202        print_r($config->toArray());
                    
                
our-team.php https://bitbucket.org/Pandababe/boho.git | PHP | 140 lines
                    
18	                <div class="team-slider owl-carousel">
                    
19						<?php 
                    
20			        	if(!empty($our_team)) {
                    
22			        	?>
                    
23			        	<?php if(isset($team->name)) { ?>
                    
24	                    <div class="item">
                    
31	                                                <div class="hexagonal-img-hex-in2">
                    
32	                                                    <img src="<?php echo esc_url(sh_lm_get_image_crop_size($team->img, 250, 230)); ?>" class="hexagonal-image" alt="<?php esc_attr_e('team iamge', 'litmus'); ?>">
                    
33	                                                </div>
                    
45	                                	<?php if($team->fblink) {?>
                    
46	                                	<a href="<?php echo esc_url($team->fblink); ?>" target="_blank"><i class="fa-facebook"></i></a>
                    
47	                                	<?php } ?>
                    
57	                    </div><!--  /.item --> 
                    
58	                    <?php } ?>
                    
59						<?php } } ?>
                    
                
Output.php https://github.com/amant/happy_cms.git | PHP | 461 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 *
                    
263				{
                    
264					ob_start('ob_gzhandler');
                    
265				}
                    
459
                    
460/* End of file Output.php */
                    
461/* Location: ./system/core/Output.php */
                    
                
CBaseController.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
55 * @author Qiang Xue <qiang.xue@gmail.com>
                    
56 * @version $Id: CBaseController.php 2497 2010-09-23 13:28:52Z mdomba $
                    
57 * @package system.web
                    
100	 * Renders a view file.
                    
101	 * This method includes the view file as a PHP script
                    
102	 * and captures the display result if required.
                    
116		{
                    
117			ob_start();
                    
118			ob_implicit_flush(false);
                    
156		{
                    
157			ob_start();
                    
158			ob_implicit_flush(false);
                    
                
shortcodes.php https://bitbucket.org/mikestivala/talentcasino.git | PHP | 438 lines
                    
365
                    
366  ob_start();
                    
367
                    
400
                    
401            <?php while ( $query->have_posts() ) : $query->the_post(); ?>
                    
402
                    
406                    <div class="vh-casino-overlay">
                    
407                        <?php
                    
408                          if ( has_post_thumbnail() ) {
                    
411                            <div class="no-image-radius">
                    
412                              <span><?php $title = get_the_title(); echo $title[0];?></span>
                    
413                            </div>
                    
426                    <div class="grid-casino-rating"><?php if (function_exists('wp_review_show_total')) wp_review_show_total(); ?></div>         
                    
427                    <div <?php if (of_get_option('casino_posts_btn_override')) { ?>onclick="window.open('<?php echo get_field('field_affiliate_url');?>')"<?php } ?> class="button"><?php echo of_get_option( 'casino_posts_btn_text', 'Get Bonus'); ?></div>
                    
428                </a>
                    
                
DumpDataCollectorTest.php https://bitbucket.org/ondemosite/sompo.motor.git | PHP | 138 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\HttpFoundation\Request;
                    
45                'data' => "<pre class=sf-dump id=sf-dump data-indent-pad=\"  \"><span class=sf-dump-num>123</span>\n</pre><script>Sfdump(\"sf-dump\")</script>\n",
                    
46                'name' => 'DumpDataCollectorTest.php',
                    
47                'file' => __FILE__,
                    
67
                    
68        ob_start();
                    
69        $collector->collect(new Request(), new Response());
                    
71
                    
72        $this->assertSame("DumpDataCollectorTest.php on line {$line}:\n123\n", $output);
                    
73        $this->assertSame(1, $collector->getDumpsCount());
                    
86        $xOutput = <<<EOTXT
                    
87<pre class=sf-dump id=sf-dump data-indent-pad="  "><a href="test://{$file}:{$line}" title="{$file}"><span class=sf-dump-meta>DumpDataCollectorTest.php</span></a> on line <span class=sf-dump-meta>{$line}</span>:
                    
88<span class=sf-dump-num>123</span>
                    
                
shell.test.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 501 lines
                    
8 *
                    
9 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2006-2010, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2006-2010, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.tests.cases.console.libs
                    
19 * @since         CakePHP v 1.2.0.7726
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
370
                    
371		$path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php';
                    
372		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
409		$path = TMP . 'shell_test';
                    
410		$file = $path . DS . 'file1.php';
                    
411
                    
                
Abstract.php https://github.com/OpenMage/magento-mirror.git | PHP | 385 lines
                    
1<?php
                    
2/**
                    
262        if ($this->_captureLock) {
                    
263            #require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';
                    
264            $e = new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');
                    
273        }
                    
274        ob_start();
                    
275    }
                    
336     *
                    
337     * as defined by the PHP manual
                    
338     * @return int
                    
                
manage.php https://github.com/wolas/advertball.git | PHP | 177 lines
                    
104                  <div style="border:1px solid #cccccc; padding:5px;width: 500px;">
                    
105        					  <form style="height: 190px;" name="_form" action="<?php echo $_SERVER['php_self']?>" method="post" onSubmit="return yav.performCheck('_form', rules, 'inline');" enctype='multipart/form-data'>
                    
106                    	<table class="edit_table"> 
                    
118                    			<td>Number</td>
                    
119                    			<td><input style="width:200px;" id="number" name="number" size="15" maxlength="30" type="text" value="<?php echo $player->number;?>"/></td>
                    
120                    		  <td class="right_column"><span id="errorsDiv_number"></span></td>
                    
138                    		<tr>
                    
139                    			<td style="text-align:left;"><a href="../teams/show.php?id=<?php echo $team->id?>"><img src="../../images/btn_back.gif" alt="indietro" /></a></td>
                    
140                    			<td><input id="commit" name="commit" class="send" type="submit" value="" /></td>
                    
150      					      <?php $index += 1 ?>
                    
151                      <a href="show.php?id=<?php echo $player->id ?>">
                    
152                        <div class="player_widget" style="background-image: url('../../images/bg_players<?php echo ($index % 2) ? '1' : '2' ?>.gif');">
                    
168      			  </div>
                    
169      			  <div id="footer"><a href="../session/logout.php">Logout</a> &bull; <a href="../../pages/players/manage.php?id=<?php echo $team->id ?>">Public Site</a></div>
                    
170      			</div>
                    
                
Exceptions.php https://github.com/marcoliverteschke/redesign.marcoliverteschke.de.git | PHP | 172 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
65	 *
                    
66	 * This function logs PHP generated error messages
                    
67	 *
                    
123		}
                    
124		ob_start();
                    
125		include(APPPATH.'errors/'.$template.EXT);
                    
133	/**
                    
134	 * Native PHP error handler
                    
135	 *
                    
142	 */
                    
143	function show_php_error($severity, $message, $filepath, $line)
                    
144	{	
                    
                
Source.php git://github.com/llaville/php-compat-info.git | PHP | 138 lines
                    
18 * @category PHP
                    
19 * @package  PHP_CompatInfo
                    
20 * @author   Laurent Laville <pear@laurent-laville.org>
                    
24 */
                    
25class PHP_CompatInfo_Report_Source extends PHP_CompatInfo_Report
                    
26{
                    
88        foreach ($report as $filename => $verbose) {
                    
89            $reflect = new PHP_Reflect();
                    
90            $tokens  = $reflect->scan($filename);
                    
95            echo str_repeat('-', $this->width)           . PHP_EOL;
                    
96            echo 'PHP COMPAT INFO SOURCE SUMMARY'        . PHP_EOL;
                    
97
                    
131            echo str_repeat('-', $this->width) . PHP_EOL;
                    
132            echo PHP_Timer::resourceUsage()    . PHP_EOL;
                    
133            echo str_repeat('-', $this->width) . PHP_EOL;
                    
                
Formatter.php git://github.com/moodle/moodle.git | PHP | 316 lines
                    
8 *
                    
9 * @link http://scssphp.github.io/scssphp
                    
10 */
                    
11
                    
12namespace ScssPhp\ScssPhp;
                    
13
                    
123     *
                    
124     * @param \ScssPhp\ScssPhp\Formatter\OutputBlock $block
                    
125     */
                    
155     *
                    
156     * @param \ScssPhp\ScssPhp\Formatter\OutputBlock $block
                    
157     */
                    
242     * @param \ScssPhp\ScssPhp\Formatter\OutputBlock             $block              An abstract syntax tree
                    
243     * @param \ScssPhp\ScssPhp\SourceMap\SourceMapGenerator|null $sourceMapGenerator Optional source map generator
                    
244     *
                    
                
packageWriter.php git://github.com/peej/phpdoctor.git | PHP | 254 lines
                    
1<?php
                    
2
                    
3/*
                    
4  PHPDoctor: The PHP Documentation Creator
                    
5  Copyright (C) 2004 Paul James <paul@peej.co.uk>
                    
24 *
                    
25 * @package PHPDoctor\Doclets\GithubWiki
                    
26 */
                    
37        $rootDoc = & $this->_doclet->rootDoc();
                    
38        $phpdoctor = & $this->_doclet->phpdoctor();
                    
39
                    
39
                    
40        $displayTree = $phpdoctor->getOption("tree");
                    
41
                    
52
                    
53            ob_start();
                    
54
                    
                
sfException.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 287 lines
                    
1<?php
                    
2
                    
20 * @author     Sean Kerr <sean@code-box.org>
                    
21 * @version    SVN: $Id: sfException.class.php 11837 2008-09-29 08:12:42Z fabien $
                    
22 */
                    
61    {
                    
62      // log all exceptions in php log
                    
63      error_log($exception->getMessage());
                    
73
                    
74      ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : '');
                    
75
                    
121      {
                    
122        $files[] = sfConfig::get('sf_app_config_dir').'/error_500.php';
                    
123      }
                    
123      }
                    
124      $files[] = sfConfig::get('sf_config_dir').'/error_500.php';
                    
125      $files[] = sfConfig::get('sf_web_dir').'/errors/error500.php';
                    
                
WidgetsHelper.php https://github.com/kc5nra/RevTK.git | PHP | 425 lines
                    
1<?php
                    
2/**
                    
51  $view->getParameterHolder()->add(array('links' => $links, 'label' => $label, 'options' => $options));
                    
52  $view->setTemplate(dirname(__FILE__).'/templates/ui_filter_std.php');
                    
53  return $view->render();
                    
87    $view->getParameterHolder()->add(array('pager' => $pager));
                    
88    $view->setTemplate(dirname(__FILE__).'/templates/ui_select_pager.php');
                    
89    echo $view->render();
                    
109{
                    
110  ob_start();
                    
111
                    
118  $view->getParameterHolder()->add(array('table' => $table));
                    
119  $view->setTemplate(dirname(__FILE__).'/templates/ui_select_table.php');
                    
120  echo $view->render();
                    
194  $view->getParameterHolder()->add(array('caption' => $caption, 'links' => $links, 'active_link' => $active_link));
                    
195  $view->setTemplate(dirname(__FILE__).'/templates/ui_data_filter.php');
                    
196  return $view->render();
                    
                
smarty_internal_compile_call.php https://bitbucket.org/ferjmendozap/siace.git | PHP | 130 lines
                    
1<?php
                    
2/**
                    
113            if ($compiler->template->caching) {
                    
114                $_output = "<?php ob_start(); Smarty_Internal_Function_Call_Handler::call ({$call_cache},\$_smarty_tpl,{$_Parametros},'{$_hash}',{$_nocache}); \$_smarty_tpl->assign({$_assign}, ob_get_clean());?>\n";
                    
115            } else {
                    
115            } else {
                    
116                $_output = "<?php ob_start(); {$call_function}(\$_smarty_tpl,{$_Parametros}); \$_smarty_tpl->assign({$_assign}, ob_get_clean());?>\n";
                    
117            }
                    
119            if ($compiler->template->caching) {
                    
120                $_output = "<?php Smarty_Internal_Function_Call_Handler::call ({$call_cache},\$_smarty_tpl,{$_Parametros},'{$_hash}',{$_nocache});?>\n";
                    
121            } else {
                    
121            } else {
                    
122                $_output = "<?php {$call_function}(\$_smarty_tpl,{$_Parametros});?>\n";
                    
123            }
                    
                
HTTPRequestTest.php https://github.com/PHPFrame/PHPFrame.git | PHP | 255 lines
                    
2// Include framework if not inculded yet
                    
3require_once preg_replace("/tests\/.*/", "src/PHPFrame.php", __FILE__);
                    
4
                    
4
                    
5class PHPFrame_HTTPRequestTest extends PHPUnit_Framework_TestCase
                    
6{
                    
108    {
                    
109        $http_request = new PHPFrame_HTTPRequest("http://www.phpframe.org");
                    
110        $http_request->cacheTime(60);
                    
214
                    
215        $file = PHPFrame_Filesystem::getSystemTempDir().DS."www.phpframe.org";
                    
216        if (is_file($file)) {
                    
234    {
                    
235        $http_request = new PHPFrame_HTTPRequest("http://www.phpframe.org");
                    
236
                    
                
PhpSoap.php git://pkgs.fedoraproject.org/horde | PHP | 214 lines
                    
2/**
                    
3 * The Horde_RPC_PhpSoap class provides a PHP 5 Soap implementation
                    
4 * of the Horde RPC system.
                    
5 *
                    
6 * $Horde: framework/RPC/RPC/PhpSoap.php,v 1.1.2.6 2009/11/06 14:35:37 jan Exp $
                    
7 *
                    
16 */
                    
17class Horde_RPC_PhpSoap extends Horde_RPC {
                    
18
                    
67
                    
68        $this->_server = new SoapServer(Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/rpc.php?wsdl', true, -1));
                    
69        $this->_server->addFunction(SOAP_FUNCTIONS_ALL);
                    
83        $beginTime = time();
                    
84        ob_start();
                    
85        $this->_server->handle($request);
                    
                
fixture.test.php git://github.com/abalonepaul/eav_behavior.git | PHP | 373 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.console.libs.tasks
                    
17 * @since         CakePHP(tm) v 1.3
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
179		$this->Task->args = array('article');
                    
180		$filename = '/my/path/article_fixture.php';
                    
181		$this->Task->expectAt(0, 'createFile', array($filename, new PatternExpectation('/class ArticleFixture/')));
                    
205		$this->Task->args = array('Articles');
                    
206		$filename = '/my/path/article_fixture.php';
                    
207		$this->Task->expectAt(2, 'createFile', array($filename, new PatternExpectation('/class ArticleFixture/')));
                    
                
smarty_internal_cacheresource_file.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 205 lines
                    
1<?php
                    
2
                    
55        } 
                    
56        return $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';
                    
57    } 
                    
79    	if (!$no_render) {
                    
80        	ob_start();
                    
81    	}
                    
                
xs_topic.tpl git://github.com/MightyGorgon/icy_phoenix.git | Smarty Template | 212 lines
                    
166	<?php if($config['allow_html'] || (($user->data['user_level'] == ADMIN) && $config['allow_html_only_for_admins'])) { ?>
                    
167	<label><input type="checkbox" name="disable_html" <?php echo ($html_on ? '' : 'checked="checked"'); ?> />&nbsp;<span class="genmed"><?php echo $lang['Disable_HTML_post']; ?></span></label><br />
                    
168	<?php } else { ?><input type="hidden" name="disable_html" value="checked" /><?php } ?>
                    
170	<label><input type="checkbox" name="disable_bbcode" <?php echo ($bbcode_on ? '' : 'checked="checked"'); ?> />&nbsp;<span class="genmed"><?php echo $lang['Disable_BBCode_post']; ?></span></label><br />
                    
171	<?php } else { ?><input type="hidden" name="disable_bbcode" value="checked" /><?php } ?>
                    
172	<?php if($config['allow_smilies']) { ?>
                    
173	<label><input type="checkbox" name="disable_smilies" <?php echo ($smilies_on ? '' : 'checked="checked"'); ?> />&nbsp;<span class="genmed"><?php echo $lang['Disable_Smilies_post']; ?></span></label><br />
                    
174	<?php } else { ?><input type="hidden" name="disable_smilies" value="checked" /><?php } ?>
                    
175	<?php if($user_sig) { ?>
                    
175	<?php if($user_sig) { ?>
                    
176	<label><input type="checkbox" name="attach_sig" <?php echo ($user->data['user_attachsig'] ? 'checked="checked"' : ''); ?> />&nbsp;<span class="genmed"><?php echo $lang['Attach_signature']; ?></span></label><br />
                    
177	<?php } else { ?><input type="hidden" name="attach_sig" value="" /><?php } ?>
                    
177	<?php } else { ?><input type="hidden" name="attach_sig" value="" /><?php } ?>
                    
178	<label><input type="checkbox" name="notify" <?php echo ($user->data['user_notify'] ? 'checked="checked"' : ''); ?> />&nbsp;<span class="genmed"><?php echo $lang['Notify']; ?></span></label><br />
                    
179	<!-- BEGIN switch_lock_topic -->
                    
                
sample_form.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 44 lines
                    
1<?php
                    
2//+----------------------------------------------------------------------+
                    
16error_reporting(E_ALL & E_NOTICE);
                    
17ob_start();
                    
18session_start();
                    
18session_start();
                    
19require_once 'class.valimage.inc.php';
                    
20$vi = new valImage();
                    
35		<h2><?php echo $message; ?></h2>
                    
36		<form name="sampleform" id="sampleform" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
                    
37			<p>Please type the characters in the picture into the input box and hit Validate (Characters are case-sensitive).</p>
                    
38			<img src="image_valimage.php" alt="validateImage" /><br />
                    
39			<input name="<?php echo $vi->getFormName(); ?>" type="text" id="<?php echo $vi->getFormName(); ?>" size="7" /><br />
                    
40			<input name="send" type="submit" value="Validate" />
                    
43</html>
                    
44<?php ob_end_flush(); ?>
                    
                
ajax.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 408 lines
                    
1<?php
                    
2
                    
7
                    
8require('./common.php');
                    
9
                    
21	case 'view_post':
                    
22		require(INC_DIR . 'bbcode.php');
                    
23		break;
                    
26	case 'post_mod_comment':
                    
27		require(INC_DIR . 'bbcode.php');
                    
28		require(INC_DIR . 'functions_post.php');
                    
28		require(INC_DIR . 'functions_post.php');
                    
29		require(INC_DIR . 'functions_admin.php');
                    
30		break;
                    
35	case 'gen_passkey':
                    
36		require(BB_ROOT . 'attach_mod/attachment_mod.php');
                    
37		require(INC_DIR . 'functions_torrent.php');
                    
                
CBaseController.php git://github.com/eryx/php-framework-benchmark.git | PHP | 297 lines
                    
1<?php
                    
2/**
                    
55 * @author Qiang Xue <qiang.xue@gmail.com>
                    
56 * @version $Id: CBaseController.php 2799 2011-01-01 19:31:13Z qiang.xue $
                    
57 * @package system.web
                    
100	 * Renders a view file.
                    
101	 * This method includes the view file as a PHP script
                    
102	 * and captures the display result if required.
                    
116		{
                    
117			ob_start();
                    
118			ob_implicit_flush(false);
                    
156		{
                    
157			ob_start();
                    
158			ob_implicit_flush(false);
                    
                
view_render_php.php http://enaj.googlecode.com/svn/trunk/ | PHP | 479 lines
                    
1<?php
                    
2// $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
3
                    
9 * @license New BSD License {@link http://qeephp.com/license/}
                    
10 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
11 * @package mvc
                    
17 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
18 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
19 * @package mvc
                    
67     *
                    
68     * @var QView_Render_PHP_Parser
                    
69     */
                    
234 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
235 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
236 * @package mvc
                    
                
OutputJsCest.php git://github.com/phalcon/cphalcon.git | PHP | 382 lines
                    
70        $expected = '<script src="/js/script1.js"></script>' . PHP_EOL
                    
71            . '<script src="/js/script2.js"></script>' . PHP_EOL
                    
72            . '<script src="/js/script3.js"></script>' . PHP_EOL;
                    
101
                    
102        $expected = '<script src="/js/script1.js"></script>' . PHP_EOL .
                    
103            '<script src="/js/script2.js"></script>' . PHP_EOL .
                    
140
                    
141        $expected = '<script src="js/script1.js" type="application/javascript"></script>' . PHP_EOL
                    
142            . '<script src="/js/script2.js" type="application/javascript"></script>' . PHP_EOL
                    
315        $expectedJS = sprintf(
                    
316            "%s" . PHP_EOL . "%s" . PHP_EOL,
                    
317            '<script src="http:://cdn.example.com/js/script1.js"></script>',
                    
327        $expectedCSS = sprintf(
                    
328            "%s" . PHP_EOL . "%s" . PHP_EOL,
                    
329            '<link rel="stylesheet" type="text/css" href="http:://cdn.example.com/css/styles1.css" />',
                    
                
DumpDataCollectorTest.php https://bitbucket.org/jorge_2610/medicyteproject.git | PHP | 138 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\HttpKernel\DataCollector\DumpDataCollector;
                    
45                'data' => "<pre class=sf-dump id=sf-dump data-indent-pad=\"  \"><span class=sf-dump-num>123</span>\n</pre><script>Sfdump(\"sf-dump\")</script>\n",
                    
46                'name' => 'DumpDataCollectorTest.php',
                    
47                'file' => __FILE__,
                    
67
                    
68        ob_start();
                    
69        $collector->collect(new Request(), new Response());
                    
71
                    
72        $this->assertSame("DumpDataCollectorTest.php on line {$line}:\n123\n", $output);
                    
73        $this->assertSame(1, $collector->getDumpsCount());
                    
86        $xOutput = <<<EOTXT
                    
87<pre class=sf-dump id=sf-dump data-indent-pad="  "><a href="test://{$file}:{$line}" title="{$file}"><span class=sf-dump-meta>DumpDataCollectorTest.php</span></a> on line <span class=sf-dump-meta>{$line}</span>:
                    
88<span class=sf-dump-num>123</span>
                    
                
admin.php https://LMSU.svn.codeplex.com/svn | PHP | 234 lines
                    
26ob_start(); include("modules/session.php"); ob_end_clean();
                    
27ob_start(); include("modules/database.php"); ob_end_clean();
                    
28ob_start(); include("template/templateBodyGen.php"); ob_end_clean();
                    
66				case "remove":
                    
67					if ( isset( $_GET["accountId"] ) == false ) { header ("Location: admin.php?acao=show&tabela=accounts"); exit(); }
                    
68					$_accountId = $_GET["accountId"];
                    
71					@mysql_free_result($dbResult);
                    
72					header ("Location: admin.php?acao=show&tabela=accounts"); exit();
                    
73				break;
                    
112				case "admin":
                    
113					if ( isset( $_GET["accountId"] ) == false ) { header ("Location: admin.php?acao=show&tabela=accounts"); exit(); }
                    
114					$_accountId = $_GET["accountId"];
                    
149				case "remove":
                    
150					if ( isset( $_GET["clusterId"] ) == false ) { header ("Location: admin.php?acao=show&tabela=clusters"); exit(); }
                    
151					$_clusterId = $_GET["clusterId"];
                    
                
class-wp-customize-panel.php git://github.com/wordpress/wordpress.git | PHP | 394 lines
                    
1<?php
                    
2/**
                    
257	final public function get_content() {
                    
258		ob_start();
                    
259		$this->maybe_render();
                    
324		?>
                    
325		<script type="text/html" id="tmpl-customize-panel-<?php echo esc_attr( $this->type ); ?>-content">
                    
326			<?php $this->content_template(); ?>
                    
327		</script>
                    
328		<script type="text/html" id="tmpl-customize-panel-<?php echo esc_attr( $this->type ); ?>">
                    
329			<?php $this->render_template(); ?>
                    
330		</script>
                    
331		<?php
                    
332	}
                    
348				{{ data.title }}
                    
349				<span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel' ); ?></span>
                    
350			</h3>
                    
                
ExportPhparrayTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 215 lines
                    
1<?php
                    
2
                    
6
                    
7use PhpMyAdmin\Plugins\Export\ExportPhparray;
                    
8use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
                    
9use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
                    
10use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
                    
11use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
                    
20/**
                    
21 * @covers \PhpMyAdmin\Plugins\Export\ExportPhparray
                    
22 * @group medium
                    
44        $GLOBALS['text_dir'] = 'ltr';
                    
45        $GLOBALS['PMA_PHP_SELF'] = '';
                    
46        $this->object = new ExportPhparray();
                    
197                "\n",
                    
198                'phpmyadmin.net/err',
                    
199                'SELECT * FROM `test_db`.`test_table`;'
                    
                
unicode.php https://github.com/scronide/scuttle.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version $Id: unicode.php,v 1.2 2006/02/26 13:20:44 harryf 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
                    
                
Application.php git://github.com/brysonian/vicious.git | PHP | 340 lines
                    
1<?php
                    
2declare(encoding='UTF-8');
                    
7
                    
8	require_once(__DIR__.'/Helpers.php');
                    
9	require_once(__DIR__.'/Config.php');
                    
9	require_once(__DIR__.'/Config.php');
                    
10	require_once(__DIR__.'/Router.php');
                    
11	require_once(__DIR__.'/Renderable.php');
                    
11	require_once(__DIR__.'/Renderable.php');
                    
12	require_once(__DIR__.'/Request.php');
                    
13
                    
79		public function dispatch($uri, $verb=false) {
                    
80			# some PHP polymorphism here.
                    
81			if ($uri instanceof Request) {
                    
104			# run filters and catch output
                    
105			ob_start();			
                    
106			foreach($this->before as $filter) {
                    
                
ExportToGoogleLiveData.php https://bitbucket.org/BennyHudson/touch-oncology.git | PHP | 192 lines
                    
36        $pluginUrlDir = $plugin->getPluginDirUrl();
                    
37        $scriptLink = $pluginUrlDir . 'CFDBGoogleSSLiveData.php';
                    
38        $imageUrlDir = $pluginUrlDir . "help";
                    
122                        <a href="<?php echo $imageUrlDir ?>/GooglePasteScriptEditor.png">
                    
123                            <img src="<?php echo $imageUrlDir ?>/GooglePasteScriptEditor.png" alt="Paste script text" height="68px" width="100px"/>
                    
124
                    
133                    <p><?php _e('<strong>Copy</strong> the text from ', 'contact-form-7-to-database-extension'); ?>
                    
134                        <a target="_gscript" href="<?php echo($scriptLink) ?>"><?php echo htmlspecialchars(__('THIS SCRIPT FILE', 'contact-form-7-to-database-extension')); ?></a>
                    
135                        <?php _e('and <strong>paste</strong> it into the Google script editor', 'contact-form-7-to-database-extension'); ?></p>
                    
168                        <br/><?php echo htmlspecialchars(__('Enter in the cell the formula:', 'contact-form-7-to-database-extension')); ?>
                    
169                        <br/><span style="background-color: yellow"><code><?php echo("=cfdbdata(\"$siteUrl\", \"$formName\", \"$userName\", \"&lt;password&gt;\")") ?></code></span>
                    
170                        <br/><?php _e('Replace <strong>&lt;password&gt;</strong> with your <em>WordPress</em> password', 'contact-form-7-to-database-extension'); ?>
                    
175                    <p>
                    
176                        <a href="<?php echo $scBuilderPageUrl ?>" target="sc"><?php echo htmlspecialchars(__('Customize the output by creating a Google Spreadsheet Function call with additional options', 'contact-form-7-to-database-extension')); ?></a>
                    
177                    </p>
                    
                
postsview.php https://gitlab.com/BGCX261/zhss-svn-to-git.git | PHP | 468 lines
                    
8?>
                    
9<?php include "ewcfg50.php" ?>
                    
10<?php include "ewmysql50.php" ?>
                    
10<?php include "ewmysql50.php" ?>
                    
11<?php include "phpfn50.php" ?>
                    
12<?php include "postsinfo.php" ?>
                    
86?>
                    
87<?php include "header.php" ?>
                    
88<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                    
156		<td<?php echo $posts->title->CellAttributes() ?>>
                    
157<div<?php echo $posts->title->ViewAttributes() ?>><?php echo $posts->title->ViewValue ?><?php echo countword( $posts->content->ViewValue,$key) ?></div>
                    
158</td>
                    
163		<td<?php echo $posts->content->CellAttributes() ?>>
                    
164<div<?php echo $posts->content->ViewAttributes() ?>><?php echo highlight($posts->content->ViewValue,$key) ?></div>
                    
165</td>
                    
                
edit_custom_walker.php https://bitbucket.org/tulsagraphics/themes.git | PHP | 261 lines
                    
134						</span>
                    
135						<a class="item-edit" id="edit-<?php echo esc_attr($item_id); ?>" title="<?php esc_attr_e('Edit Menu Item','uncode'); ?>" href="<?php
                    
136							echo ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? admin_url( 'nav-menus.php' ) : add_query_arg( 'edit-menu-item', $item_id, remove_query_arg( $removed_args, admin_url( 'nav-menus.php#menu-item-settings-' . $item_id ) ) );
                    
164					<label for="edit-menu-item-target-<?php echo esc_attr($item_id); ?>">
                    
165						<input type="checkbox" id="edit-menu-item-target-<?php echo esc_attr($item_id); ?>" value="_blank" name="menu-item-target[<?php echo esc_attr($item_id); ?>]"<?php checked( $item->target, '_blank' ); ?> />
                    
166						<?php esc_html_e( 'Open link in a new window/tab' , 'uncode'); ?>
                    
183						<?php esc_html_e( 'Description' , 'uncode'); ?><br />
                    
184						<textarea id="edit-menu-item-description-<?php echo esc_attr($item_id); ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo esc_attr($item_id); ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
                    
185						<span class="description"><?php esc_html_e('The description will be displayed in the menu if the current theme supports it.', 'uncode'); ?></span>
                    
202				    <label for="edit-menu-item-megamenu-<?php echo esc_attr($item_id); ?>">
                    
203				        <input type="checkbox" id="edit-menu-item-megamenu-<?php echo esc_attr($item_id); ?>" value="megamenu" name="menu-item-megamenu[<?php echo esc_attr($item_id); ?>]"<?php checked( $item->megamenu, 'megamenu' ); ?> />
                    
204				        <?php esc_html_e( 'Megamenu' , 'uncode'); ?>
                    
243						'delete-menu_item_' . $item_id
                    
244					); ?>"><?php esc_html_e( 'Remove' , 'uncode'); ?></a> <span class="meta-sep hide-if-no-js"> | </span> <a class="item-cancel submitcancel hide-if-no-js" id="cancel-<?php echo esc_attr($item_id); ?>" href="<?php echo esc_url( add_query_arg( array( 'edit-menu-item' => $item_id, 'cancel' => time() ), admin_url( 'nav-menus.php' ) ) );
                    
245						?>#menu-item-settings-<?php echo esc_attr($item_id); ?>"><?php esc_html_e('Cancel', 'uncode'); ?></a>
                    
                
jmd_rate.php https://github.com/jmdeldin/jmd_rate.git | PHP | 441 lines
                    
1<?php
                    
2
                    
24{
                    
25	ob_start('jmd_rate_prefs_head');
                    
26	pagetop('jmd_rate_prefs');
                    
329    {
                    
330        ob_start();
                    
331        $this->dbTable = 'jmd_rate';
                    
                
keychain.php git://github.com/joomla/joomla-platform.git | PHP | 383 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
13// Load the Joomla! Platform
                    
14require_once realpath('../libraries/import.php');
                    
15
                    
256	{
                    
257		ob_start();
                    
258		var_dump($var);
                    
                
HtmlDumperTest.php https://bitbucket.org/fanch1/testlb.git | PHP | 171 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\VarDumper\Cloner\VarCloner;
                    
24    {
                    
25        require __DIR__.'/Fixtures/dumb-var.php';
                    
26
                    
26
                    
27        $dumper = new HtmlDumper('php://output');
                    
28        $dumper->setDumpHeader('<foo></foo>');
                    
39
                    
40        ob_start();
                    
41        $dumper->dump($data);
                    
44        $var['file'] = htmlspecialchars($var['file'], ENT_QUOTES, 'UTF-8');
                    
45        $intMax = PHP_INT_MAX;
                    
46        preg_match('/sf-dump-\d+/', $out, $dumpId);
                    
                
mdocs-post-page.php https://bitbucket.org/sokvistweb/npld.git | PHP | 168 lines
                    
127		else if($mdocs_show_non_members  == 'off' && $user_logged_in == false || $user_logged_in == false && $mdocs_hide_all_files_non_members) { ?>
                    
128			<a class="mdocs-download-btn mdocs-float-right btn btn-primary" href="<?php echo wp_login_url($permalink); ?>" ><small><?php echo __('Please Login to download this file','memphis-documents-library'); ?></small></a>
                    
129		<?php } elseif($the_mdoc['non_members'] == 'on' || $user_logged_in ) { ?>
                    
129		<?php } elseif($the_mdoc['non_members'] == 'on' || $user_logged_in ) { ?>
                    
130			<a onclick="mdocs_download_file('<?php echo $the_mdoc['id']; ?>','<?php  echo $the_post->ID; ?>');" class="mdocs-download-btn mdocs-float-right btn btn-primary" value=""><?php echo __('Download','memphis-documents-library'); ?></a>
                    
131		<?php } else { ?>
                    
151		<!--<p><i class="fa fa-arrow-circle-left" aria-hidden="true"></i> Back to Document Library</p>-->
                    
152		<?php if($mdocs_show_ratings) { ?><p><i class="fas fa-star fa-xs" aria-hidden="true"></i> <?php echo $the_rating['average']; ?> <?php _e('Stars', 'memphis-documents-library'); ?> (<?php echo $the_rating['total']; ?>)</p> <?php } ?>
                    
153		<?php if($mdocs_show_downloads) { ?><p class="mdocs-file-info"><i class="fas fa-cloud-download-alt" aria-hidden="true"></i> <em class="mdocs-orange"><?php echo $the_mdoc['downloads'].' '.__('Downloads','memphis-documents-library'); ?></em></p> <?php } ?>
                    
153		<?php if($mdocs_show_downloads) { ?><p class="mdocs-file-info"><i class="fas fa-cloud-download-alt" aria-hidden="true"></i> <em class="mdocs-orange"><?php echo $the_mdoc['downloads'].' '.__('Downloads','memphis-documents-library'); ?></em></p> <?php } ?>
                    
154		<?php if($mdocs_show_author) { ?><p><i class="fa fa-pencil-alt" aria-hidden="true"></i> <?php _e('Owner','memphis-documents-library'); ?>: <i class="mdocs-green"><?php echo get_user_by('login', $the_mdoc['owner'])->display_name; ?></i></p> <?php } ?>
                    
155		<?php if($mdocs_show_version) { ?><p><i class="fa fa-history" aria-hidden="true"></i> <?php _e('Version','memphis-documents-library') ?>:  <em class="mdocs-blue"><?php echo $the_mdoc['version']; ?></em>
                    
156		</p><?php } ?>
                    
157		<?php if($mdocs_show_update) { ?><p><i class="fa fa-calendar" aria-hidden="true"></i> <?php _e('Last Updated','memphis-documents-library'); ?>: <em class="mdocs-red"><?php echo date($date_format, $the_date['date']); ?></em></p><?php } ?>
                    
158		<?php if(is_admin()) { ?>
                    
                
 

Source

Language