當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PMA_outBufferModeGet函數代碼示例

本文整理匯總了PHP中PMA_outBufferModeGet函數的典型用法代碼示例。如果您正苦於以下問題:PHP PMA_outBufferModeGet函數的具體用法?PHP PMA_outBufferModeGet怎麽用?PHP PMA_outBufferModeGet使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了PMA_outBufferModeGet函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: PMA_outBufferPost

/**
 * This function will need to run at the bottom of all pages if output
 * buffering is turned on.  It also needs to be passed $mode from the
 * PMA_outBufferModeGet() function or it will be useless.
 *
 */
function PMA_outBufferPost()
{
    if (ob_get_status() && PMA_outBufferModeGet()) {
        ob_flush();
    }
    /**
     * previously we had here an "else flush()" but some PHP versions
     * (at least PHP 5.2.11) have a bug (49816) that produces garbled
     * data
     */
}
開發者ID:nicokaiser,項目名稱:phpmyadmin,代碼行數:17,代碼來源:ob.lib.php

示例2: PMA_outBufferModeGet

<?php

require_once './libraries/common.lib.php';
if (empty($GLOBALS['is_header_sent'])) {
    /**
     * Gets a core script and starts output buffering work
     */
    require_once './libraries/common.lib.php';
    require_once './libraries/ob.lib.php';
    if ($GLOBALS['cfg']['OBGzip']) {
        $GLOBALS['ob_mode'] = PMA_outBufferModeGet();
        if ($GLOBALS['ob_mode']) {
            PMA_outBufferPre($GLOBALS['ob_mode']);
        }
    }
    require_once './libraries/header_http.inc.php';
    require_once './libraries/header_meta_style.inc.php';
    $title = 'Portable phpMyAdmin';
    // here, the function does not exist with this configuration: $cfg['ServerDefault'] = 0;
    $is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser();
    ?>
	<script>
	// <![CDATA[
	<?php 
    // Add some javascript instructions if required
    if (isset($js_to_run) && $js_to_run == 'functions.js') {
        echo "\n";
        ?>
		// js form validation stuff
		var errorMsg0   = '<?php 
        echo str_replace('\'', '\\\'', $GLOBALS['strFormEmpty']);
開發者ID:johangas,項目名稱:moped,代碼行數:31,代碼來源:header.inc.php

示例3: PMA_outBufferModeGet

<?php

/* $Id: header_printview.inc.php,v 2.4 2004/01/23 15:56:39 rabus Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
 * Gets a core script and starts output buffering work
 */
require_once './libraries/common.lib.php';
require_once './libraries/ob.lib.php';
if ($cfg['OBGzip']) {
    $ob_mode = PMA_outBufferModeGet();
    if ($ob_mode) {
        PMA_outBufferPre($ob_mode);
    }
}
// Check parameters
PMA_checkParameters(array('db', 'full_sql_query'));
// garvin: For re-usability, moved http-headers
// to a seperate file. It can now be included by header.inc.php,
// queryframe.php, querywindow.php.
require_once './libraries/header_http.inc.php';
/**
 * Sends the beginning of the html page then returns to the calling script
 */
// Gets the font sizes to use
PMA_setFontSizes();
// Defines the cell alignment values depending on text direction
if ($text_dir == 'ltr') {
    $cell_align_left = 'left';
    $cell_align_right = 'right';
} else {
開發者ID:dapfru,項目名稱:gladiators,代碼行數:31,代碼來源:header_printview.inc.php

示例4: PMA_outBufferPost

/**
 * This function will need to run at the bottom of all pages if output
 * buffering is turned on.  It also needs to be passed $mode from the
 * PMA_outBufferModeGet() function or it will be useless.
 *
 * @uses    PMA_outBufferModeGet()
 * @uses    ob_flush()
 * @uses    flush()
 * @param   integer  $mode  DEPRECATED
 * @return  boolean  whether data has been send from the buffer or not
 */
function PMA_outBufferPost($mode = null)
{
    switch (PMA_outBufferModeGet()) {
        case 1:
            # This output buffer doesn't need a footer.
            ob_flush();
            $retval = true;
            break;
        case 0:
        default:
            flush();
            $retval = false;
            break;
    }
    // end switch
    return $retval;
}
開發者ID:tmhaoge,項目名稱:moped,代碼行數:28,代碼來源:ob.lib.php

示例5: PMA_outBufferPost

/**
 * This function will need to run at the bottom of all pages if output
 * buffering is turned on.  It also needs to be passed $mode from the
 * PMA_outBufferModeGet() function or it will be useless.
 *
 * @uses    PMA_outBufferModeGet()
 * @uses    ob_flush()
 * @uses    flush()
 */
function PMA_outBufferPost()
{
    if (ob_get_status() && PMA_outBufferModeGet()) {
        ob_flush();
    } else {
        flush();
    }
}
開發者ID:bharathi26,項目名稱:openemr,代碼行數:17,代碼來源:ob.lib.php


注:本文中的PMA_outBufferModeGet函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。