当前位置: 首页>>代码示例>>PHP>>正文


PHP PMA_outBufferPre函数代码示例

本文整理汇总了PHP中PMA_outBufferPre函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_outBufferPre函数的具体用法?PHP PMA_outBufferPre怎么用?PHP PMA_outBufferPre使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PMA_outBufferPre函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PMA_outBufferPre

    exit;
}
/**
 *
 */
require_once './libraries/common.inc.php';
/**
 * This is not an Ajax request so we need to generate all this output.
 */
if (isset($GLOBALS['is_ajax_request']) && !$GLOBALS['is_ajax_request']) {
    if (empty($GLOBALS['is_header_sent'])) {
        /**
         * Gets a core script and starts output buffering work
         */
        require_once './libraries/ob.lib.php';
        PMA_outBufferPre();
        // if database storage for user preferences is transient, offer to load
        // exported settings from localStorage (detection will be done in JavaScript)
        $userprefs_offer_import = $GLOBALS['PMA_Config']->get('user_preferences') == 'session' && !isset($_SESSION['userprefs_autoload']);
        if ($userprefs_offer_import) {
            $GLOBALS['js_include'][] = 'config.js';
        }
        // For re-usability, moved http-headers and stylesheets
        // to a seperate file. It can now be included by header.inc.php,
        // querywindow.php.
        require_once './libraries/header_http.inc.php';
        require_once './libraries/header_meta_style.inc.php';
        require_once './libraries/header_scripts.inc.php';
        ?>
        <meta name="OBGZip" content="<?php 
        echo $GLOBALS['cfg']['OBGzip'] ? 'true' : 'false';
开发者ID:davidmottet,项目名称:automne,代码行数:31,代码来源:header.inc.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


注:本文中的PMA_outBufferPre函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。