100+ results for 'php ob_start'

Not the results you expected?

GifCreator.php (https://gitlab.com/billyprice1/mc-skintools) PHP · 349 lines

1 <?php

2

3 namespace GifCreator;

8 * @link https://github.com/Sybio/GifCreator

9 * @author Sybio (Clément Guillemain / @Sybio01)

10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License

11 * @copyright Clément Guillemain

12 * @modified by Max Korlaar

97 $resourceImg = $frames[$i];

98

99 ob_start();

100 imagegif($frames[$i]);

101 $this->frameSources[] = ob_get_contents();

111 $resourceImg = imagecreatefromstring($frames[$i]);

112

113 ob_start();

114 imagegif($resourceImg);

115 $this->frameSources[] = ob_get_contents();

core.php (https://github.com/cookcrowd/Backend.git) PHP · 422 lines

1 <?php

2 namespace Zurv;

3

368 header('Content-Type: text/html; charset="utf8"');

369

370 ob_start();

371 extract($vars);

372 include $this->_template;

sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines

1 <?php

2 class SiteMailer

3 {

51

52 $this->headers .= "MIME-Version: 1.0\r\n";

53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";

54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

55 }

89 /*if ($this->attachment != '')

90 {

91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

92 $this->msgBody .= $this->attachment;

93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

104 private function getContent($filepath) {

105 $content = '';

106 ob_start();

107 include($filepath);

108 $content = ob_get_contents();

manager.php (https://gitlab.com/ebrjose/comcebu) PHP · 339 lines

1 <?php

2 namespace Elementor\Core\Settings\Base;

3

269 ?>

270 <#

271 const tabs = elementor.config.settings.<?php

272 // PHPCS - the variable $name does not contain a user input value.

273 echo $name; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

274 ?>.tabs;

275

277 <div class="elementor-panel-navigation">

278 <# _.each( tabs, function( tabTitle, tabSlug ) {

279 $e.bc.ensureTab( 'panel/<?php

280 // PHPCS - the variable $name does not contain a user input value.

unicode.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 269 lines

1 <?php

2 /**

3 * @version $Id: unicode.php,v 1.1 2008/10/10 20:52:53 mj Exp $

8 * Portions created by the Initial Developer are Copyright (C) 1998

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)

12 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUTF8ToUnicode.cpp

13 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp

14 * @see http://hsivonen.iki.fi/php-utf8/

15 * @package utf8

16 * @subpackage unicode

24 * are not allowed.

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

28 * trigger errors on encountering bad bytes

Intl.php (https://github.com/gimler/symfony.git) PHP · 279 lines

1 <?php

2

3 /*

200 try {

201 $reflector = new \ReflectionExtension('intl');

202 ob_start();

203 $reflector->info();

204 $output = strip_tags(ob_get_clean());

smarty_internal_cacheresource_file.php (https://github.com/taptouchclick/The-Event-Day.git) PHP · 207 lines

1 <?php

2

3 /**

54 $_cache_dir .= DS;

55 }

56 return $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';

57 }

58

78 {

79 if (!$no_render) {

80 ob_start();

81 }

82 $_smarty_tpl = $_template;

unicode.php (https://github.com/ameximes/akelos.git) PHP · 269 lines

1 <?php

2 /**

3 * @version $Id: unicode.php,v 1.2 2006/02/26 13:20:44 harryf Exp $

8 * Portions created by the Initial Developer are Copyright (C) 1998

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)

12 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUTF8ToUnicode.cpp

13 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp

14 * @see http://hsivonen.iki.fi/php-utf8/

15 * @package utf8

16 * @subpackage unicode

24 * are not allowed.

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

28 * trigger errors on encountering bad bytes

tabs_helper.php (https://github.com/rickogden/joind.in.git) PHP · 337 lines

1 <?php

2 /**

3 * Helpers for creating Accessible Tabs.

4 *

5 * PHP version 5

6 *

7 * @category Joind.in

136 return '';

137 }

138 ob_start();

139 $contentList = array();

140 reset($this->_tabs);

145 }

146 ?>

147 <div id="<?php echo $this->_containerName; ?>-tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">

148 <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">

149 <?php

ca039f4b8d9ec9dadbda9a728bcd.php (https://github.com/fabiorestrepo/PGE.git) PHP · 190 lines

1 <?php

2

3 /* WebProfilerBundle:Collector:events.html.twig */

125 ));

126

127 ob_start();

128 try {

129 // line 48

analyzer.php (https://github.com/agallou/atoum.git) PHP · 223 lines

1 <?php

2

3 namespace mageekguy\atoum\tests\units\tools\variable;

4

5 require_once __DIR__ . '/../../../runner.php';

6

7 use

54 ->if(

55 $this->function->gettype = 'array',

56 $this->function->sizeof = $size = rand(1, PHP_INT_MAX)

57 )

58 ->then

67

68 ->if(

69 $this->function->ob_start->doesNothing(),

70 $this->function->var_dump->doesNothing(),

71 $this->function->ob_get_clean = (' ' . ($dump = uniqid()) . ' ' . PHP_EOL)

omnisearch-posts.php (https://gitlab.com/Gashler/sg) PHP · 136 lines

1 <?php

2

3 if( ! class_exists( 'WP_List_Table' ) )

4 require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );

5

6 class Jetpack_Omnisearch_Posts extends WP_List_Table {

27 $this->post_type_obj = get_post_type_object( $this->post_type );

28

29 $search_url = esc_url( admin_url( sprintf( 'edit.php?post_type=%s&s=%s', urlencode( $this->post_type_obj->name ), urlencode( $search_term ) ) ) );

30 $search_link = sprintf( ' <a href="%s" class="add-new-h2">%s</a>', $search_url, esc_html( $this->post_type_obj->labels->search_items ) );

31 $html = '<h2>' . esc_html( $this->post_type_obj->labels->name ) . $search_link .'</h2>';

43 $this->prepare_items();

44

45 ob_start();

46 $this->display();

47 $html .= ob_get_clean();

addon.php (https://gitlab.com/hunt9310/ras) PHP · 401 lines

1 <?php

2 /**

3 * Main class for add on

249

250 // show message

251 ob_start();

252

253 switch ( $action ) {

258

259 ?>

260 <div class="<?php echo esc_attr( $type ); ?>">

261 <p>

262 <?php _e( "You can not activate this WR PageBuilder's provider:", WR_PBL ); ?>

263 <br> <b><?php echo esc_html( $addon_name ); ?> </b>

264 </p>

265

gva_quotes_rotator.php (https://gitlab.com/kryber/wizionary) PHP · 125 lines

99 if($style) $style = " style=\"{$style}\"";

100 if($animate) $el_class .= ' wow ' . $animate;

101 ob_start();

102 ?>

103

104 <div class="gsc-quotes-rotator <?php print $skin_text ?> <?php print $el_class ?>" <?php print gavias_content_builder_print_animate_wow('', $animate_delay) ?>>

105 <div class="cbp-qtrotator"<?php print $style ?>>

106 <?php for($i=1; $i<=10; $i++){ ?>

107 <?php

109 $content = "content_{$i}";

110 ?>

111 <?php if($$title){ ?>

112 <div class="cbp-qtcontent">

113 <div class="content-title"><?php print $$title ?></div>

ajaxlib_test.php (https://github.com/markn86/moodle.git) PHP · 129 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

19 *

20 * @package core

21 * @category phpunit

22 * @copyright 2013 Andrew Nicols

23 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License

49 $result = ajax_capture_output();

50

51 // ob_start should normally return without issue.

52 $this->assertTrue($result);

53

64 $result = ajax_capture_output();

65

66 // ob_start should normally return without issue.

67 $this->assertTrue($result);

68

SimpleProcessTest.php (https://gitlab.com/judielsm/Handora) PHP · 222 lines

100 public function testSignal()

101 {

102 $this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException', 'This PHP has been compiled with --enable-sigchild. The process can not be signaled.');

103 parent::testSignal();

104 }

162 public function testKillSignalTerminatesProcessCleanly()

163 {

164 $this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException', 'This PHP has been compiled with --enable-sigchild. The process can not be signaled.');

165

166 try {

178 public function testTermSignalTerminatesProcessCleanly()

179 {

180 $this->expectExceptionIfPHPSigchild('Symfony\Component\Process\Exception\RuntimeException', 'This PHP has been compiled with --enable-sigchild. The process can not be signaled.');

181

182 try {

post.php (https://github.com/quadcodes/wp-front-end-editor.git) PHP · 410 lines

1 <?php

2

3 abstract class FEE_Field_Post extends FEE_Field_Base {

144 $this->set_post_global( $data['post_id'] );

145

146 ob_start();

147 the_content();

148 return $this->placehold( ob_get_clean() );

178 $this->set_post_global( $data['post_id'] );

179

180 ob_start();

181 the_excerpt();

182 return ob_get_clean();

TbInput.php (https://bitbucket.org/whattodomalta/yii-onlinehelp.git) PHP · 470 lines

1 <?php

2 /**

3 * TbInput class file.

4 * @author Christoffer Niska <ChristofferNiska@gmail.com>

5 * @copyright Copyright &copy; Christoffer Niska 2011-

6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License

7 * @package bootstrap.widgets.input

8 */

265 $htmlOptions['class'] = 'add-on';

266

267 ob_start();

268 echo '<div class="'.$this->getAddonCssClass().'">';

269 if (isset($this->prependText))

291 $htmlOptions['class'] = 'add-on';

292

293 ob_start();

294 if (isset($this->appendText))

295 echo CHtml::tag('span', $htmlOptions, $this->appendText);

ResponseEmitterTest.php (https://github.com/LubosRemplik/cakephp.git) PHP · 366 lines

1 <?php

2 /**

3 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)

4 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)

5 *

9 *

10 * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)

11 * @link https://cakephp.org CakePHP(tm) Project

12 * @since 3.3.5

13 * @license https://opensource.org/licenses/mit-license.php MIT License

91 $response->getBody()->write('It worked');

92

93 ob_start();

94 $this->emitter->emit($response);

95 $out = ob_get_clean();

head.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 158 lines

1 <?php

2 /**

3 * @version $Id: head.php 10707 2008-08-21 09:52:47Z eddieajau $

5 * @subpackage Document

6 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.

7 * @license GNU/GPL, see LICENSE.php

8 * Joomla! is free software. This version may have been modified pursuant

9 * to the GNU General Public License, and as distributed it includes or

10 * is derivative of works licensed under the GNU General Public License or

11 * other free or open source software licenses.

12 * See COPYRIGHT.php for copyright notices and details.

13 */

14

35 function render( $head = null, $params = array(), $content = null )

36 {

37 ob_start();

38

39 echo $this->fetchHead($this->_doc);

smarty_internal_compile_private_registered_block.php (https://github.com/pws5068/RSNCorp.git) PHP · 79 lines

1 <?php

2 /**

3 * Smarty Internal Plugin Compile Registered Block

47 // compile code

48 if (!is_array($function)) {

49 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; {$function}({$_params}, null, \$_smarty_tpl->smarty, \$_block_repeat, \$_smarty_tpl);while (\$_block_repeat) { ob_start();?>";

50 } else if (is_object($function[0])) {

51 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; call_user_func(\$_smarty_tpl->smarty->registered_plugins['block']['{$tag}'][0],{$_params}, null, \$_smarty_tpl->smarty, \$_block_repeat, \$_smarty_tpl);while (\$_block_repeat) { ob_start();?>";

52 } else {

53 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; call_user_func(array('{$function[0]}','{$function[1]}'),{$_params}, null, \$_smarty_tpl->smarty, \$_block_repeat, \$_smarty_tpl);while (\$_block_repeat) { ob_start();?>";

54 }

55 } else {

66 // compile code

67 if (!is_array($function)) {

68 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false; echo {$function}({$_params}, \$_block_content, \$_smarty_tpl->smarty, \$_block_repeat, \$_smarty_tpl); } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";

69 } else if (is_object($function[0])) {

70 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false; echo call_user_func(\$_smarty_tpl->smarty->registered_plugins['block']['{$base_tag}'][0],{$_params}, \$_block_content, \$_smarty_tpl->smarty, \$_block_repeat, \$_smarty_tpl); } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";

FrontTest.php (https://github.com/jorgenils/zend-framework.git) PHP · 354 lines

2 require_once 'Zend/Controller/Front.php';

3 require_once 'PHPUnit/Framework/TestCase.php';

4

5 require_once 'Zend/Controller/Request/Http.php';

6 require_once 'Zend/Controller/Response/Cli.php';

7 require_once 'Zend/Controller/Dispatcher.php';

8 require_once 'Zend/Controller/Router.php';

9

10 class Zend_Controller_FrontTest extends PHPUnit_Framework_TestCase

245 public function testDispatch7()

246 {

247 if ('cli' == strtolower(php_sapi_name())) {

248 $this->markTestSkipped('Issues with $_GET in CLI interface prevents test from passing');

249 }

math-fallback.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 113 lines

1 <?php

2

3 if ( ! class_exists( 'Jetpack_Protect_Math_Authenticate' ) ) {

55 $sum = $num1 + $num2;

56 $ans = sha1( $salt . $sum );

57 ob_start();

58 ?>

59 <h2><?php _e( 'Please solve this math problem to prove that you are not a bot. Once you solve it, you will need to log in again.', 'jetpack' ); ?></h2>

60 <?php if ($error): ?>

61 <h3><?php _e( 'Your answer was incorrect, please try again.', 'jetpack' ); ?></h3>

103 <div style="margin: 5px 0 20px;">

104 <strong>Prove your humanity: </strong>

105 <?php echo $num1 ?> &nbsp; + &nbsp; <?php echo $num2 ?> &nbsp; = &nbsp;

106 <input type="input" name="jetpack_protect_num" value="" size="2" />

107 <input type="hidden" name="jetpack_protect_answer" value="<?php echo $ans; ?>" />

attachment.php (https://gitlab.com/sihabudinahmad/asppi) PHP · 303 lines

1 <?php

2

3 /*

65

66 // validate page

67 if( $pagenow === 'post.php' && $typenow === 'attachment' ) {

68

69 return true;

73

74 // validate page

75 if( $pagenow === 'upload.php' && version_compare($wp_version, '4.0', '>=') ) {

76

77 add_action('admin_footer', array($this, 'admin_footer'), 0);

180

181 // get acf_form_data

182 ob_start();

183

184

FormMultiCheckboxTest.php (https://github.com/mfairchild365/zf2.git) PHP · 140 lines

1 <?php

2 /**

3 * Zend Framework

26

27 use Zend\Registry,

28 Zend\View\PhpRenderer as View,

29 Zend\View\Helper\FormMultiCheckbox;

30

40 * @group Zend_View_Helper

41 */

42 class FormMultiCheckboxTest extends \PHPUnit_Framework_TestCase

43 {

44

58 $this->helper = new FormMultiCheckbox();

59 $this->helper->setView($this->view);

60 ob_start();

61 }

62

5256ddbd4aa1b361656b10a2a59d421438391591fab15dc5973b5627674eab52.php (https://bitbucket.org/rubbystar/carimod.git) PHP · 199 lines

1 <?php

2

3 /* @nucleus/layout/container.html.twig */

30 ";

31 // line 7

32 ob_start();

33 // line 8

34 echo " ";

118 // line 26

119 echo " ";

120 ob_start();

121 // line 27

122 echo " <div class=\"g-container";

134 ";

135 // line 31

136 ob_start();

137 // line 32

138 echo " <section id=\"";

formslib_test.php (https://github.com/scriby/moodle.git) PHP · 220 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

16

17 /**

18 * Unit tests for /lib/formslib.php.

19 *

20 * @package core_form

21 * @category phpunit

22 * @copyright 2011 Sam Hemelryk

23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

27

28 global $CFG;

29 require_once($CFG->libdir . '/formslib.php');

30 require_once($CFG->libdir . '/form/radio.php');

class.wpcom-json-api-comment-endpoint.php (https://gitlab.com/thisishayat/itv-2016) PHP · 198 lines

1 <?php

2

3

140 case 'content' :

141 if ( 'display' === $context ) {

142 ob_start();

143 comment_text();

144 $response[$key] = (string) ob_get_clean();

index.php (https://github.com/cybernet/CyBerFuN-xBTiT.git) PHP · 94 lines

1 <?php

2 ob_start();

10 <table class=lista width="474" align="center">

11 <tr>

12 <td class=header align=center width="26"><?php echo $language["OPTION"] ?></td>

13 <td class=header align=center width="319"><?php echo $language["WHAT_ABOUT"] ?></td>

14 <td class=header align=center width="41"><?php echo $language["POINTS"] ?></td>

15 <td class=header align=center width="62"><?php echo $language["EXCHANGE"] ?> </td>

16 </tr>

17 <?php

18 $uid=$CURUSER['uid'];

19 $r=do_sqlquery("SELECT * from {$TABLE_PREFIX}users where id=$uid");

22 while($row = mysql_fetch_array($r)){

23 if($c<$row['points']) { $enb="disabled"; }

24 echo "<form action=seedbonus_exchange.php?id=".$row['id']." method=post><tr>

25 <td class=lista align=center><b>".$row['name']."</b></td>

26 <td class=lista><b>".$row['gb']."".$language["GB_UPLOAD"]."</b></td>

head.php (https://github.com/hideaz2011/Aspire-Fitness.git) PHP · 162 lines

1 <?php

2 /**

3 * @version $Id: head.php 21074 2011-04-04 16:51:40Z dextercowley $

5 * @subpackage Document

6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.

7 * @license GNU/GPL, see LICENSE.php

8 * Joomla! is free software. This version may have been modified pursuant

9 * to the GNU General Public License, and as distributed it includes or

10 * is derivative of works licensed under the GNU General Public License or

11 * other free or open source software licenses.

12 * See COPYRIGHT.php for copyright notices and details.

13 */

14

35 function render( $head = null, $params = array(), $content = null )

36 {

37 ob_start();

38

39 echo $this->fetchHead($this->_doc);

Firebug.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 116 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Magento_Profiler

23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

48 {

49 parent::__construct($filter);

50 ob_start();

51 }

52

commontypes.php (https://github.com/leerbag/zf2.git) PHP · 662 lines

1 <?php

2 /**

3 * Zend Framework

652 function __doRequest($request, $location, $action, $version, $one_way = 0)

653 {

654 ob_start();

655 $this->server->handle($request);

656 $response = ob_get_clean();

views.class.php (https://github.com/cjuarez/Come-en-Colima.git) PHP · 147 lines

1 <?php

2 /* ===========================

3

4 FlavorPHP - because php should have a better taste

5 homepage: http://www.flavorphp.com/

6 git repository: https://github.com/Axloters/FlavorPHP

7

8 FlavorPHP is a free software licensed under the MIT license

18 =========================== */

19 ?>

20 <?php

21

22 class views {

Template.php (https://gitlab.com/arthur_quiroga/dystawork) PHP · 413 lines

1 <?php

2

3 /*

226 public function renderParentBlock($name, array $context, array $blocks = array())

227 {

228 ob_start();

229 $this->displayParentBlock($name, $context, $blocks);

230

249 public function renderBlock($name, array $context, array $blocks = array(), $useBlocks = true)

250 {

251 ob_start();

252 $this->displayBlock($name, $context, $blocks, $useBlocks);

253

368 {

369 $level = ob_get_level();

370 ob_start();

371 try {

372 $this->display($context);

Set.php (https://bitbucket.org/mrblackus/micro-muffin.git) PHP · 117 lines

1 <?php

2

3 /*

40

41 /**

42 * Compiles the node to PHP.

43 *

44 * @param Twig_Compiler A Twig_Compiler instance

67 {

68 $compiler

69 ->write("ob_start();\n")

70 ->subcompile($this->getNode('values'));

71 }

testoutputlib.php (https://github.com/nigeldaley/moodle.git) PHP · 165 lines

1 <?php

2

3 // This file is part of Moodle - http://moodle.org/

18

19 /**

20 * Unit tests for (some of) ../outputlib.php.

21 *

22 * @package moodlecore

28 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page

29 }

30 require_once($CFG->libdir . '/outputlib.php');

31

32

35 *

36 * These tests assume that developer debug mode is on, which, at the time of

37 * writing, is true. admin/tool/unittest/index.php forces it on.

38 *

39 * @copyright 2009 Tim Hunt

Folder.php (https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 231 lines

1 <?php

2 /**

3 * class to hold Folder data

152 'cache_timestamp' => array(Zend_Filter_Input::ALLOW_EMPTY => true),

153 'cache_job_lowestuid' => array(Zend_Filter_Input::ALLOW_EMPTY => true, Zend_Filter_Input::DEFAULT_VALUE => 0),

154 'cache_job_startuid' => array(Zend_Filter_Input::ALLOW_EMPTY => true, Zend_Filter_Input::DEFAULT_VALUE => 0),

155 // estimated number of actions when updating cache

156 'cache_job_actions_est' => array(Zend_Filter_Input::ALLOW_EMPTY => true, Zend_Filter_Input::DEFAULT_VALUE => 0),

Template.php (https://bitbucket.org/wl-framework-dev/weblab-framework.git) PHP · 350 lines

1 <?php

2 /**

3 * Represents a PHP Template file

230 }

231

232 ob_start();

233 $this->_load();

234 return ob_get_clean();

237 /**

238 * Include a component file for current template

239 * $component will be attached behind the filename, including a suffix .php

240 *

241 * @param string $component

255 $theme .= '/';

256

257 $path = $this->_dir . '/' . $theme . $name . $component . '.php';

258

259 if( isset( self::_getConfig()->extract_vars ) && self::_getConfig()->extract_vars && $extract ) {

init.php (https://github.com/xnsimon/dmk.git) PHP · 137 lines

52 else

53 {

54 include(ROOT_PATH . 'includes/config.php');

55 }

56

60 }

61

62 if (PHP_VERSION >= '5.1' && !empty($timezone))

63 {

64 date_default_timezone_set($timezone);

65 }

66

67 $php_self = isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];

68 if ('/' == substr($php_self, -1))

70 $php_self .= 'index.php';

71 }

72 define('PHP_SELF', $php_self);

73

74 require(ROOT_PATH . 'includes/inc_constant.php');

unicode.php (https://github.com/shafiqissani/IgenxSolutions.git) PHP · 269 lines

1 <?php

2 /**

3 * @version $Id: unicode.php 7692 2007-06-08 20:41:29Z tcp $

8 * Portions created by the Initial Developer are Copyright (C) 1998

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)

12 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUTF8ToUnicode.cpp

13 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp

14 * @see http://hsivonen.iki.fi/php-utf8/

15 * @package utf8

16 * @subpackage unicode

24 * are not allowed.

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

28 * trigger errors on encountering bad bytes

Firebug.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 116 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Magento_Profiler

23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

48 {

49 parent::__construct($filter);

50 ob_start();

51 }

52

panel.php (https://github.com/WordPress/wordpress-develop.git) PHP · 242 lines

1 <?php

2

3 /**

15 function setUp() {

16 parent::setUp();

17 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';

18 $GLOBALS['wp_customize'] = new WP_Customize_Manager();

19 $this->manager = $GLOBALS['wp_customize'];

163 $customize_render_panel_count = did_action( 'customize_render_panel' );

164 add_action( 'customize_render_panel', array( $this, 'action_customize_render_panel_test' ) );

165 ob_start();

166 $panel->maybe_render();

167 $content = ob_get_clean();

187

188 $panel = new WP_Customize_Panel( $this->manager, 'baz' );

189 ob_start();

190 $panel->print_template();

191 $content = ob_get_clean();

dumper.php (https://github.com/cgajardo/repositorium.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $

7 */

8 /**

351 */

352 function dump($variable) {

353 ob_start();

354 print_r($variable);

355 $formatted = ob_get_contents();

pegawai.class.php (https://github.com/wildanm/Jibas.git) PHP · 124 lines

58 <td>NIP:</td>

59 <td>

60 <input type='text' class='InputTxt' id='nip' value="<?php echo $this->nip ?>">

61 </td>

62 <td>&nbsp;&nbsp;Nama:</td>

80 global $db_name_sdm;

81 global $db_name_user;

82 ob_start();

83 OpenDb();

84 $sql = "SELECT nip,nama FROM $db_name_sdm.pegawai WHERE 1 $this->filter";

107 <td style="padding: 2px;"><?php echo $row[1] ?></td>

108 <td align="center">

109 <img class='btnSelectPeg' nip='<?php echo $row[0] ?>' nama='<?php echo $row[1] ?>' hp='<?php echo $hp ?>' style="cursor: pointer;" alt="Pilih" src="../images/ico/down.png">

110 </td>

111 </tr>

Ajax.php (https://gitlab.com/che234/adn) PHP · 183 lines

1 <?php

2 /**

3 * @version $Id: Ajax.php 10831 2013-05-29 19:32:17Z btowles $

70

71 while (@ob_end_clean()) ; // clean any pending output buffers

72 ob_start(); // start a fresh one

73

74 $result = null;

133 echo "ERROR [$errno] $errstr\n";

134 echo " Fatal error on line $errline in file $errfile";

135 echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")\n";

136 echo "Aborting...\n";

137 exit(1);

151 }

152

153 /* Don't execute PHP internal error handler */

154 return true;

155 }

class-ms-gateway-manual.php (https://gitlab.com/najomie/fit-hippie) PHP · 196 lines

1 <?php

2 /**

3 * Manual Gateway.

91 if ( empty( $this->payment_info ) ) {

92 $link = MS_Controller_Plugin::get_admin_url( 'settings' );

93 ob_start();

94 ?>

95 <?php _e( 'This is only an example of manual payment gateway instructions', 'membership2' ); ?>

96 <br />

97 <?php

98 printf(

99 __( 'Edit it %shere%s', 'membership2' ),

103 ?>

104 <br /><br />

105 <?php _e( 'Name: Example name.', 'membership2' ); ?>

106 <br />

107 <?php _e( 'Bank: Example bank.', 'membership2' ); ?>

ClassFrontend.php (https://github.com/leerbag/zf2.git) PHP · 255 lines

1 <?php

2 /**

3 * Zend Framework

218 } else {

219 // A cache is not available (or not valid for this frontend)

220 ob_start();

221 ob_implicit_flush(false);

222 $return = call_user_func_array(array($this->_cachedEntity, $name), $parameters);

testoutputlib.php (https://github.com/hatone/moodle.git) PHP · 165 lines

1 <?php

2

3 // This file is part of Moodle - http://moodle.org/

18

19 /**

20 * Unit tests for (some of) ../outputlib.php.

21 *

22 * @package moodlecore

28 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page

29 }

30 require_once($CFG->libdir . '/outputlib.php');

31

32

35 *

36 * These tests assume that developer debug mode is on, which, at the time of

37 * writing, is true. admin/report/unittest/index.php forces it on.

38 *

39 * @copyright 2009 Tim Hunt

Mabilis.class.php (https://github.com/kelios/imshop.git) PHP · 139 lines

1 <?php

2

3 /***************************************************

7 *

8 * author: dev@imagecms.net

9 * version: 0.3 PHP5

10 ***************************************************/

11

58 extract($data);

59

60 ob_start();

61

62 if (file_exists($compiled_file))

95 if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) AND strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== FALSE)

96 {

97 ob_start('ob_gzhandler');

98 }

99 }

smarty_internal_parsetree.php (https://github.com/cabenitez/factuweb.git) PHP · 393 lines

84 {

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

88 return $var;

187 $more_php = $subtree->assign_to_var();

188 } else {

189 $more_php = $subtree->to_smarty_php();

190 }

191

192 $code .= $more_php;

193

194 if (!$subtree instanceof _smarty_dq_content) {

CallbackCache.php (https://github.com/jtai/zf2.git) PHP · 223 lines

1 <?php

2 /**

3 * Zend Framework

74

75 if ( ($cacheOutput = $classOptions->getCacheOutput()) ) {

76 ob_start();

77 ob_implicit_flush(false);

78 }

global.func.php (https://github.com/hxzyzz/ddc.git) PHP · 117 lines

1 <?php

2 /**

3 * Éú³Écss

26 * @param $page µ±Ç°Ò³

27 * @param $addtime ÎÄÕ·¢²¼Ê±¼ä

28 * @param $type ����·���ĸ�ʽ��.html|.php��

29 * @param $site_info Õ¾µãÐÅÏ¢

30 * @param $type ÀàÐÍ ¾²Ì¬µØÖ· $type = 'html', ¶¯Ì¬µØÖ· $type='php'

56 break;

57

58 case 'php':

59 if ($page==1) {

60 $url[0] = APP_PATH.'index.php?m=special&c=index&a=show&id='.$contentid;

61 } else {

62 $url[0] = APP_PATH.'index.php?m=special&c=index&a=show&id='.$contentid.'&page='.$page;

63 }

64 break;

router.php (https://github.com/toxik/iHazNews.git) PHP · 114 lines

1 <?php

2 // if the application doesn't reside in root (nexuspro.info), but in a folder (nexuspro.info/example_app)

3 $basepath = substr($_SERVER['SCRIPT_NAME'],0,-9);

51

52 // verify if the specified module exists

53 if (!file_exists(APP_PATH.'controllers/'.ucwords($module).'.php')) {

54 header("HTTP/1.0 404 Not Found");

55 //header("Location: " . $basepath);

97 .ucwords($module).' pentru Action-ul '.ucwords($action).'!');

98 // "prindem" continutul

99 ob_start();

100 // include the view

101 if (!$page['standalone'])

107 // include the template ( unless a flag is set )

108 if (!$page['single'] && !$page['standalone'])

109 require 'template/index.php';

110 else

111 if (!$page['standalone'])

AORReportsDashlet.php (https://gitlab.com/tjaafar/SuiteCRM) PHP · 106 lines

1 <?php

2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

3

4

5 require_once('include/Dashlets/Dashlet.php');

6 require_once 'modules/AOR_Reports/aor_utils.php';

72

73 public function displayOptions() {

74 ob_start();

75 global $current_language, $app_list_strings;

76 $mod_strings = return_module_language($current_language, 'AOR_Reports');

repeater.class.php (https://gitlab.com/mostafame/team_website) PHP · 128 lines

1 <?php

2

3 /**

55 ?>

56 <div class="siteorigin-widget-field-repeater"

57 data-item-name="<?php echo esc_attr( $this->item_name ) ?>"

58 data-repeater-name="<?php echo esc_attr( $this->base_name ) ?>"

59 data-element-name="<?php echo esc_attr( $this->element_name ) ?>"

60 <?php echo ! empty( $item_label ) ? 'data-item-label="' . esc_attr( $item_label ) . '"' : '' ?>

61 <?php echo ! empty( $this->scroll_count ) ? 'data-scroll-count="' . esc_attr( $this->scroll_count ) . '"' : '' ?>

62 <?php if( ! empty( $this->readonly ) ) echo 'readonly' ?>>

63 <div class="siteorigin-widget-field-repeater-top">

64 <div class="siteorigin-widget-field-repeater-expand"></div>

65 <h3><?php echo esc_html( $this->label ) ?></h3>

66 </div>

67 <div class="siteorigin-widget-field-repeater-items">

Template.php (https://github.com/jackbravo/symfony-sandbox.git) PHP · 293 lines

1 <?php

2

3 /*

112 public function renderParentBlock($name, array $context, array $blocks = array())

113 {

114 ob_start();

115 $this->displayParentBlock($name, $context, $blocks);

116

129 public function renderBlock($name, array $context, array $blocks = array())

130 {

131 ob_start();

132 $this->displayBlock($name, $context, $blocks);

133

166 public function render(array $context)

167 {

168 ob_start();

169 try {

170 $this->display($context);

DebugTest.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 121 lines

1 <?php

2 /**

3 * Zend Framework

24 * Test helper

25 */

26 require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'TestHelper.php';

27

28 /**

29 * Zend_Debug

30 */

31 require_once 'Zend/Debug.php';

32

33 /**

39 * @group Zend_Debug

40 */

41 class Zend_DebugTest extends PHPUnit_Framework_TestCase

42 {

43

Context.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 327 lines

1 <?php

2 /**

3 * @version $Id: Context.php 57540 2012-10-14 18:27:59Z btowles $

62 if (!file_exists($_internal_loading_final_file)) return false;

63 extract($vars, EXTR_REFS | EXTR_SKIP);

64 ob_start();

65 include($_internal_loading_final_file);

66 $output = ob_get_clean();

102 preg_replace('/build/','ignore',$filecontents[$line]);

103 }

104 ob_start();

105

106 include($_internal_loading_final_file);

130

131 extract($vars, EXTR_REFS | EXTR_SKIP);

132 ob_start();

133 foreach ($found_paths as $found_path) {

134 if (!file_exists($_internal_loading_final_file)) continue;

dumper.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 2460 2008-04-08 21:03:22Z mz $

7 */

8 /**

351 */

352 function dump($variable) {

353 ob_start();

354 print_r($variable);

355 $formatted = ob_get_contents();

home.php (https://github.com/essa/sharetronix_ja.git) PHP · 134 lines

1 <?php

2

3 if( $this->user->is_logged ) {

5 }

6

7 $this->load_langfile('inside/global.php');

8 $this->load_langfile('outside/global.php');

9 $this->load_langfile('inside/dashboard.php');

10 $this->load_langfile('outside/home.php');

66 $from = ($D->pg - 1) * $C->PAGING_NUM_POSTS;

67 $res = $db2->query($q2.'LIMIT '.$from.', '.$C->PAGING_NUM_POSTS);

68 ob_start();

69 while($obj = $db2->fetch_object($res)) {

70 $D->p = new post($obj->type, FALSE, $obj);

resource.php (https://bitbucket.org/zenoalbisser/webkit.git) PHP · 119 lines

1 <?php

2 $type = $_GET["type"];

3 $wait = $_GET["wait"];

23 # Enable gzip compression if needed

24 if ($gzip)

25 ob_start("ob_gzhandler");

26

27 # Send headers

64 while(now + seconds > Date.now()) { counter = Number(counter + 1); }

65 }

66 __foo(<?php echo($jsdelay)?>);

67 <?php

action.php (https://gitlab.com/3dplex/3d-plex-main-site) PHP · 119 lines

1 <?php

2 /**

3 * This file demonstrates how to use the Rememberme library.

4 *

5 * Some code (autoload, templating) is just simple boilerplate and no shining

6 * example of how to write php applications.

7 *

8 * @author Gabriel Birke

9 */

10

11 require_once __DIR__.'/../vendor/autoload.php';

12

13 use Birke\Rememberme;

23 session_destroy();

24 }

25 header("Location: index.php");

26 exit;

27 }

smarty_cacheresource.php (https://gitlab.com/staging06/myproject) PHP · 442 lines

1 <?php

2 /**

3 * Smarty Internal Plugin

81 {

82 if ($_template->cached->handler->process($_template)) {

83 ob_start();

84 $_template->properties['unifunc']($_template);

85

template.php (https://github.com/Shigaru/shigaru.git) PHP · 446 lines

1 <?php

2 /**

3 *

27

28 /**

29 * A hack to support __construct() on PHP 4

30 * Hint: descendant classes have no PHP4 class_name() constructors,

122

123 /**

124 * A hack to support __construct() on PHP 4

125 * Hint: descendant classes have no PHP4 class_name() constructors,

230 function load( $template ) {

231

232 $templateFileName = $this->getRoot().DS.$template.'.php';

233

234 if (is_file($templateFileName)) {

dumper.php (https://github.com/teamplus/teamplus.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 6354 2009-04-15 02:41:21Z mvdam $

7 */

8 /**

351 */

352 function dump($variable) {

353 ob_start();

354 print_r($variable);

355 $formatted = ob_get_contents();

TestCase.php (https://github.com/ewandor/horde.git) PHP · 172 lines

1 <?php

2 /**

3 * Test base.

4 *

5 * PHP version 5

6 *

7 * @category Horde

10 * @author Gunnar Wrobel <wrobel@pardus.de>

11 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1

12 * @link http://pear.horde.org/index.php?package=Components

13 */

14

26 * @author Gunnar Wrobel <wrobel@pardus.de>

27 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1

28 * @link http://pear.horde.org/index.php?package=Components

29 */

30 class Components_TestCase

smarty_cacheresource.php (https://github.com/LamCiuLoeng/BookShare.git) PHP · 372 lines

1 <?php

2 /**

3 * Smarty Internal Plugin

73 {

74 if ($_template->cached->handler->process($_template)) {

75 ob_start();

76 $_template->properties['unifunc']($_template);

77 return ob_get_clean();

Ffmpeg.php (https://github.com/sandboxdigital/zephyr-core.git) PHP · 124 lines

1 <?php

2

3 class Tgx_Ffmpeg

8 /*

9 * // get video width and height - 10-14-07

10 // for testing call with: ffmpeg_get_width_height.php?file=video.flv

11

12 $videofile = (isset($_GET['file'])) ? strval($_GET['file']) : 'video.flv';

13

14 ob_start();

15 passthru("ffmpeg-10141.exe -i \"". $videofile . "\" 2>&1");

16 $size = ob_get_contents();

58

59 if (is_resource($process)) {

60 // fwrite($pipes[0], '<?php print_r($_ENV); ?'.'>');

61 // fclose($pipes[0]);

62

digest-intro.php (https://github.com/dannyakakong/Enzyme.git) PHP · 163 lines

1 <?php

2

3 /*-------------------------------------------------------+

16

17

18 include($_SERVER['DOCUMENT_ROOT'] . '/autoload.php');

19

20

29

30 set_time_limit(3500);

31 ob_start();

32

33

widgets.php (https://gitlab.com/Blueprint-Marketing/interoccupy.net) PHP · 164 lines

87

88 <li class="widget-entry-title">

89 <a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>

90 <span class="comments-link">

91 <?php comments_popup_link( __( '0 <span class="reply">comments &rarr;</span>', 'twentyeleven' ), __( '1 <span class="reply">comment &rarr;</span>', 'twentyeleven' ), __( '% <span class="reply">comments &rarr;</span>', 'twentyeleven' ) ); ?>

103 $link_url = get_permalink();

104 ?>

105 <a href="<?php echo esc_url( $link_url ); ?>" title="<?php printf( esc_attr__( 'Link to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?>&nbsp;<span>&rarr;</span></a>

106 <span class="comments-link">

107 <?php comments_popup_link( __( '0 <span class="reply">comments &rarr;</span>', 'twentyeleven' ), __( '1 <span class="reply">comment &rarr;</span>', 'twentyeleven' ), __( '% <span class="reply">comments &rarr;</span>', 'twentyeleven' ) ); ?>

157 <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'twentyeleven' ); ?></label>

158 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p>

159

160 <p><label for="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>"><?php _e( 'Number of posts to show:', 'twentyeleven' ); ?></label>

161 <input id="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'number' ) ); ?>" type="text" value="<?php echo esc_attr( $number ); ?>" size="3" /></p>

162 <?php

Abstract.php (https://github.com/jorgenils/zend-framework.git) PHP · 375 lines

1 <?php

2 /**

3 * Zend Framework

259 {

260 if ($this->_captureLock) {

261 require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';

262 throw new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');

263 }

268 $this->_captureKey = (string) $key;

269 }

270 ob_start();

271 }

272

331 * Next Index

332 *

333 * as defined by the PHP manual

334 * @return int

335 */

helper.php (https://github.com/sengann/iks-school.com.git) PHP · 145 lines

1 <?php

2 /**

3 * @version $Id: helper.php 19482 2010-11-15 18:44:36Z dextercowley $

46 }

47

48 ob_start();

49 require JModuleHelper::getLayoutPath('mod_quickicon', 'default_button');

50 $html = ob_get_clean();

67 self::$buttons = array(

68 array(

69 'link' => JRoute::_('index.php?option=com_content&task=article.add'),

70 'image' => 'icon-48-article-add.png',

71 'text' => JText::_('MOD_QUICKICON_ADD_NEW_ARTICLE'),

73 ),

74 array(

75 'link' => JRoute::_('index.php?option=com_content'),

76 'image' => 'icon-48-article.png',

77 'text' => JText::_('MOD_QUICKICON_ARTICLE_MANAGER'),

smarty_internal_cacheresource_file.php (https://github.com/raphaelbastide/berta.git) PHP · 199 lines

1 <?php

2

3 /**

54 $_cache_dir .= DS;

55 }

56 return $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';

57 }

58

77 public function getCachedContents($_template)

78 {

79 ob_start();

80 $_smarty_tpl = $_template;

81 include $_template->getCachedFilepath();

index.php (https://github.com/taskfreak/cms.git) PHP · 246 lines

1 <?php

2

3 /** This file is part of KCFinder project

8 * @author Pavel Tzonkov <pavelc@users.sourceforge.net>

9 * @copyright 2010 KCFinder Project

10 * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2

11 * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2

14

15 chdir("..");

16 require "core/autoload.php";

17 $mtime = @filemtime(__FILE__);

18 if ($mtime) httpCache::checkMTime($mtime);

19 $browser = new browser();

20 $config = $browser->config;

21 ob_start();

22

23 ?>

view.php (https://github.com/shin2/concrete5.git) PHP · 124 lines

67

68 if ($return) {

69 ob_start();

70 }

71

92 }

93

94 if (file_exists(DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $view . '.php')) {

95 $file = DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $view . '.php';

99 $pkgHandle = PackageList::getHandle($this->attributeType->getPackageID());

100 $dirp = is_dir(DIR_PACKAGES . '/' . $pkgHandle) ? DIR_PACKAGES . '/' . $pkgHandle : DIR_PACKAGES_CORE . '/' . $pkgHandle;

101 if (file_exists($dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $view . '.php')) {

102 $file = $dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $view . '.php';

105

106 if (!isset($file)) {

107 if (file_exists(DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $view . '.php')) {

108 $file = DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $view . '.php';

ObjectCacheTest.php (https://github.com/MontmereLimited/zf2.git) PHP · 262 lines

1 <?php

2 /**

3 * Zend Framework

236 $firstCounter = TestObjectCache::$fooCounter + 1;

237

238 ob_start();

239 ob_implicit_flush(false);

240 $return = call_user_func_array($callback, $args);

246

247 // second call - cached

248 ob_start();

249 ob_implicit_flush(false);

250 $return = call_user_func_array($callback, $args);

AAdminPortlet.php (https://github.com/joannalz/YiiBlocks.git) PHP · 130 lines

1 <?php

2 Yii::import("zii.widgets.CPortlet");

3 /**

69 */

70 public function init() {

71 ob_start();

72 ob_implicit_flush(false);

73

Helper.php (https://gitlab.com/ntphuc/BackendFeedy) PHP · 303 lines

1 <?php

2

3 namespace Yajra\Datatables;

94 $parsed_string = $blade->compileString($str);

95

96 ob_start() && extract($data, EXTR_SKIP);

97

98 try {

Widget.class.php (https://github.com/qhwang0427/backend_php.git) PHP · 83 lines

1 <?php

2 // +----------------------------------------------------------------------

3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]

4 // +----------------------------------------------------------------------

5 // | Copyright (c) 2009 http://thinkphp.cn All rights reserved.

6 // +----------------------------------------------------------------------

7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )

13 /**

14 +------------------------------------------------------------------------------

15 * ThinkPHP Widget类 抽象类

16 +------------------------------------------------------------------------------

17 * @category Think

55 */

56 protected function renderFile($templateFile='',$var='',$charset='utf-8') {

57 ob_start();

58 ob_implicit_flush(0);

59 if(!file_exists_case($templateFile)){

capture_helper.php (https://github.com/akelos/v1.git) PHP · 121 lines

1 <?php

2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

3

24 * == Capturing a block into an instance variable

25 *

26 * <?php $capture_helper->begin (); ?>

27 * [some html...]

28 * <?php $script = $capture_helper->end (); ?>

52 * This page shows an alert box!

53 *

54 * <?php $capture_helper->begin ('script'); ?>

55 * alert('hello world');

56 * <?php $capture_helper->end (); ?>

68 * Example:

69 *

70 * <?php $capture_helper->begin(); ?>

71 * Welcome To my shiny new web page!

72 * <% $greeting = $capture_helper->end(); ?>

CFormulario.php (https://gitlab.com/jakolab/prax-sys) PHP · 192 lines

1 <?php

2 /**

3 * Esta clase esta diseñada para generar formularios a partir de un modelo

74 public function abrir(){

75 $this->trabajoEnBuffer = true;

76 ob_start();

77 }

78

CallbackCache.php (https://github.com/zucchi/zf2.git) PHP · 209 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

66 $cacheOutput = $options->getCacheOutput();

67 if ($cacheOutput) {

68 ob_start();

69 ob_implicit_flush(false);

70 }

Util.php (https://gitlab.com/blueprintmrk/bladencountyrecords) PHP · 197 lines

1 <?php

2

3 // Various utilities

24 $wp_styles = new WP_Styles();

25

26 ob_start();

27 $wp_styles->do_items( ( array ) $handles );

28 $content = str_replace( array( "'", "\n" ), array( '"', '' ), ob_get_clean() );

commandlinelib.php (https://bitbucket.org/Nemcio/kloxo-mr.git) PHP · 226 lines

1 <?php

2

3 function __cmd_desc_add($p, $parent = null)

92 global $gbl, $sgbl, $login, $ghtml;

93

94 ob_start();

95 $resource = $p['resource'];

96

Formatter.php (https://github.com/sbourget/moodle.git) PHP · 364 lines

8 * @license http://opensource.org/licenses/MIT MIT

9 *

10 * @link http://scssphp.github.io/scssphp

11 */

12

141 * Output lines inside a block

142 *

143 * @param \ScssPhp\ScssPhp\Formatter\OutputBlock $block

144 *

145 * @return void

160 * Output block selectors

161 *

162 * @param \ScssPhp\ScssPhp\Formatter\OutputBlock $block

163 *

164 * @return void

class-wc-cp-ajax.php (https://gitlab.com/iamgraeme/royalmile) PHP · 215 lines

1 <?php

2 /**

3 * Composited Products AJAX Handlers

92 $current_options = $product->get_current_component_options( $component_id, $query_args );

93

94 ob_start();

95

96 wc_get_template( 'single-product/component-options.php', array(

105 $component_options_markup = ob_get_clean();

106

107 ob_start();

108

109 wc_get_template( 'single-product/component-options-pagination.php', array(

192 $composite->sync_composite();

193

194 ob_start();

195

196 WC_CP()->api->apply_composited_product_filters( $product, $component_id, $composite );

Class.php (https://github.com/frhumanes/PLM.git) PHP · 244 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Class.php 20379 2010-01-18 14:40:57Z mabe $

21 */

22

24 * @see Zend_Cache_Core

25 */

26 require_once 'Zend/Cache/Core.php';

27

28

217 } else {

218 // A cache is not available (or not valid for this frontend)

219 ob_start();

220 ob_implicit_flush(false);

221 $return = call_user_func_array(array($this->_cachedEntity, $name), $parameters);

class-widget-job_listing-map.php (https://gitlab.com/najomie/ljm) PHP · 118 lines

1 <?php

2 /**

3 * Job Listing: Map

64 $split = $map && ! $just_directions && ( $phone || $web || $address || $directions ) ? 'map-widget-section--split' : '';

65

66 ob_start();

67

68 echo $before_widget;

71 <div class="map-widget-sections">

72

73 <?php if ( $map ) : ?>

74 <div class="map-widget-section <?php echo $split; ?>">

75 <div id="listing-contact-map"></div>

76 </div>

77 <?php endif; ?>

78

79 <?php if ( $phone || $web || $address || $directions ) : ?>

base.php (https://gitlab.com/alexprowars/bitrix) PHP · 248 lines

1 <?php

2

3 namespace Bitrix\Report\VisualConstructor\Views\Component;

166 {

167 global $APPLICATION;

168 ob_start();

169 ShowError($errorText);

170 $result['html'] = ob_get_clean();;

209 {

210 global $APPLICATION;

211 ob_start();

212 $APPLICATION->IncludeComponent(

213 $this->getComponentName(),

Generator.php (https://gitlab.com/bruce.ng/Professional-Ajax) PHP · 240 lines

54 */

55 function getClient() {

56 require_once JPSPAN . 'CodeWriter.php';

57 $Code = & new JPSpan_CodeWriter();

58 $this->ClientGenerator->generate($Code);

113 $this->jsEncodingClass = 'JPSpan_Encode_Xml';

114 } else {

115 $this->jsEncodingClass = 'JPSpan_Encode_PHP';

116 }

117

160 ?>

161 */

162 <?php

163 $Code->append(ob_get_contents());

164 ob_end_clean();

195 oParent.<?php echo $method; ?> = function() {

196 return this.__call('<?php echo $url; ?>',arguments,'<?php echo $method; ?>');

197 };

198 <?php

class-wc-widget-top-rated-products.php (https://gitlab.com/webkod3r/tripolis) PHP · 99 lines

1 <?php

2

3 if ( ! defined( 'ABSPATH' ) ) {

59 }

60

61 ob_start();

62

63 $number = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : $this->settings['number']['std'];

79 while ( $r->have_posts() ) {

80 $r->the_post();

81 wc_get_template( 'content-widget-product.php', array( 'show_rating' => true ) );

82 }

83

connector.php (https://bitbucket.org/tduarte/atmailopen.git) PHP · 87 lines

1 <?php

2 /*

3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net

20 * == END LICENSE ==

21 *

22 * This is the File Manager Connector for PHP.

23 */

24

31 require('./commands.php') ;

32 require('./phpcompat.php') ;

33

34 if ( !$Config['Enabled'] )

35 SendError( 1, 'This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file' ) ;

36

37 DoResponse() ;

ReleaseTest.php (https://github.com/ewandor/horde.git) PHP · 257 lines

1 <?php

2 /**

3 * Test the version processing.

4 *

5 * PHP version 5

6 *

7 * @category Horde

10 * @author Gunnar Wrobel <wrobel@pardus.de>

11 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1

12 * @link http://pear.horde.org/index.php?package=Release

13 */

14

16 * Prepare the test setup.

17 */

18 require_once dirname(__FILE__) . '/../Autoload.php';

19

20 /**

cache.class.php (https://bitbucket.org/AliGH/ghsaffron.git) PHP · 85 lines

1 <?php

2

3 /* ===================================

52

53 public function start() {

54 ob_start();

55 }

56

libgd00100.php (https://github.com/tstarling/hiphop-php.git) PHP · 109 lines

1 <?php

2 $im = imagecreatetruecolor(256, 256);

3

99 imagefilledpolygon($im, $points, 5, $black);

100

101 ob_start();

102 imagepng($im);

103 $png = ob_get_contents();

page_4_2.php (https://gitlab.com/optimistic_mamun/project1) PHP · 290 lines

1 <?php ob_start();?>

2 <?php include("second_header.php"); ?>

3 <?php

4 session_start();

5 $roll=$_SESSION['myValue'];

6 include('connect.php');

7 $query = "SELECT * FROM ice_4_2 WHERE roll='$roll'";

8 $result = mysql_query($query) or die(mysql_error());

33

34 ?>

35 <?php

36 include('connect.php');

page_3_2.php (https://gitlab.com/optimistic_mamun/project1) PHP · 290 lines

1 <?php ob_start();?>

2 <?php include("second_header.php"); ?>

3 <?php

4 session_start();

5 $roll=$_SESSION['myValue'];

6 include('connect.php');

7 $query = "SELECT * FROM ice_3_2 WHERE roll='$roll'";

8 $result = mysql_query($query) or die(mysql_error());

33

34 ?>

35 <?php

36 include('connect.php');

SES_SignupFields.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 199 lines

28 <?php $this->html( 'header' ); /* pre-table point for form plugins... */ ?>

29 <?php if ( @$this->haveData( 'languages' ) ) { ?><div id="languagelinks"><p><?php $this->html( 'languages' ); ?></p></div><?php } ?>

30 <table>

31 <tr>

115 ?></td>

116 <td class="mw-input">

117 <input type="<?php echo htmlspecialchars( $inputItem['type'] ) ?>" name="<?php

118 echo htmlspecialchars( $inputItem['name'] ); ?>"

119 tabindex="<?php echo $tabIndex++; ?>"

131 if ( $inputItem['type'] == 'checkbox' && !empty( $inputItem['msg'] ) ) {

132 ?>

133 <label for="<?php echo htmlspecialchars( $inputItem['name'] ); ?>"><?php

134 $this->msg( $inputItem['msg'] ) ?></label><?php

146 </tr>

147 </table>

148 <?php if ( @$this->haveData( 'uselang' ) ) { ?><input type="hidden" name="uselang" value="<?php $this->text( 'uselang' ); ?>" /><?php } ?>

149 </div>

150 <div id="signupend"><?php $this->msgWiki( 'signupend' ); ?></div>

dumper.php (https://github.com/kugu/limb.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 7198 2008-11-01 11:57:17Z korchasa $

7 */

8 /**

351 */

352 function dump($variable) {

353 ob_start();

354 print_r($variable);

355 $formatted = ob_get_contents();

smarty_internal_cacheresource_file.php (https://github.com/kiang/olc_baker.git) PHP · 208 lines

1 <?php

2

3 /**

56 }

57

58 return $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';

59 }

60

80 {

81 if (!$no_render) {

82 ob_start();

83 }

84 $_smarty_tpl = $_template;

zlib.php (https://github.com/FractalizeR/php-stubs.git) PHP · 371 lines

6 * (PHP 4, PHP 5)<br/>

7 * Output a gz-file

8 * @link http://php.net/manual/en/function.readgzfile.php

9 * @param string $filename <p>

10 * The file name. This file will be opened from the filesystem and its

106

107 /**

108 * (PHP 4, PHP 5)<br/>

109 * Binary-safe gz-file read

110 * @link http://php.net/manual/en/function.gzread.php

166 * (PHP 4, PHP 5)<br/>

167 * Seek on a gz-file pointer

168 * @link http://php.net/manual/en/function.gzseek.php

169 * @param resource $zp <p>

170 * The gz-file pointer. It must be valid, and must point to a file

tests.php4 (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 228 lines ✨ Summary

This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.

1 <?php

2

3 // do we have true global vars or just GETSET functions?

202

203 function var_dump($arg) {

204 ob_start();

205 var_dump($arg);

206 $result=ob_get_contents();