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


PHP PMA_profilingSupported函数代码示例

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


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

示例1: unset

        $pma->userlink = $userlink;
        $pma->controllink = $controllink;
        /**
         * some resetting has to be done when switching servers
         */
        if (isset($_SESSION['tmp_user_values']['previous_server']) && $_SESSION['tmp_user_values']['previous_server'] != $GLOBALS['server']) {
            unset($_SESSION['tmp_user_values']['navi_limit_offset']);
        }
        $_SESSION['tmp_user_values']['previous_server'] = $GLOBALS['server'];
    }
    // end server connecting
    /**
     * check if profiling was requested and remember it
     * (note: when $cfg['ServerDefault'] = 0, constant is not defined)
     */
    if (isset($_REQUEST['profiling']) && PMA_profilingSupported()) {
        $_SESSION['profiling'] = true;
    } elseif (isset($_REQUEST['profiling_form'])) {
        // the checkbox was unchecked
        unset($_SESSION['profiling']);
    }
    // library file for blobstreaming
    include_once './libraries/blobstreaming.lib.php';
    // checks for blobstreaming plugins and databases that support
    // blobstreaming (by having the necessary tables for blobstreaming)
    checkBLOBStreamingPlugins();
}
// end if !defined('PMA_MINIMUM_COMMON')
// load user preferences
$GLOBALS['PMA_Config']->loadUserPreferences();
// remove sensitive values from session
开发者ID:GStepOne,项目名称:CI,代码行数:31,代码来源:common.inc.php

示例2: PMA_profilingCheckbox

/**
 * Displays a form with the Profiling checkbox
 *
 * @param string $sql_query sql query
 *
 * @access  public
 */
function PMA_profilingCheckbox($sql_query)
{
    if (PMA_profilingSupported()) {
        echo '<form action="sql.php" method="post">' . "\n";
        echo PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']);
        echo '<input type="hidden" name="sql_query" value="' . htmlspecialchars($sql_query) . '" />' . "\n";
        echo '<input type="hidden" name="profiling_form" value="1" />' . "\n";
        PMA_display_html_checkbox('profiling', __('Profiling'), isset($_SESSION['profiling']), true);
        echo '<noscript><input type="submit" value="' . __('Go') . '" /></noscript>' . "\n";
        echo '</form>' . "\n";
    }
}
开发者ID:AmberWish,项目名称:laba_web,代码行数:19,代码来源:common.lib.php

示例3: define

        define('PMA_MULTIBYTE_ENCODING', 1);
    }
    // end if
    /**
     * save some settings in cookies
     * @todo should be done in PMA_Config
     */
    PMA_setCookie('pma_lang', $GLOBALS['lang']);
    PMA_setCookie('pma_charset', $GLOBALS['convcharset']);
    PMA_setCookie('pma_collation_connection', $GLOBALS['collation_connection']);
    $_SESSION['PMA_Theme_Manager']->setThemeCookie();
    /**
     * check if profiling was requested and remember it
     * (note: when $cfg['ServerDefault'] = 0, constant is not defined)
     */
    if (PMA_profilingSupported() && isset($_REQUEST['profiling'])) {
        $_SESSION['profiling'] = true;
    } elseif (isset($_REQUEST['profiling_form'])) {
        // the checkbox was unchecked
        unset($_SESSION['profiling']);
    }
}
// end if !defined('PMA_MINIMUM_COMMON')
// remove sensitive values from session
$_SESSION['PMA_Config']->set('blowfish_secret', '');
$_SESSION['PMA_Config']->set('Servers', '');
$_SESSION['PMA_Config']->set('default_server', '');
if (!empty($__redirect) && in_array($__redirect, $goto_whitelist)) {
    /**
     * include subform target page
     */
开发者ID:nexusvista,项目名称:phpmyadmin,代码行数:31,代码来源:common.inc.php

示例4: PMA_DBI_query

         if (!is_numeric($value)) {
             $value = "'" . $value . "'";
         }
         if (!preg_match("/[^a-zA-Z0-9_]+/", $_REQUEST['varName'])) {
             PMA_DBI_query('SET GLOBAL ' . $_REQUEST['varName'] . ' = ' . $value);
         }
     }
     $loggingVars = PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES WHERE Variable_name IN ("general_log","slow_query_log","long_query_time","log_output")', 0, 1);
     exit(json_encode($loggingVars));
 }
 if (isset($_REQUEST['query_analyzer'])) {
     $return = array();
     if (strlen($_REQUEST['database'])) {
         PMA_DBI_select_db($_REQUEST['database']);
     }
     if ($profiling = PMA_profilingSupported()) {
         PMA_DBI_query('SET PROFILING=1;');
     }
     // Do not cache query
     $query = preg_replace('/^(\\s*SELECT)/i', '\\1 SQL_NO_CACHE', $_REQUEST['query']);
     $result = PMA_DBI_try_query($query);
     $return['affectedRows'] = $GLOBALS['cached_affected_rows'];
     $result = PMA_DBI_try_query('EXPLAIN ' . $query);
     while ($row = PMA_DBI_fetch_assoc($result)) {
         $return['explain'][] = $row;
     }
     // In case an error happened
     $return['error'] = PMA_DBI_getError();
     PMA_DBI_free_result($result);
     if ($profiling) {
         $return['profiling'] = array();
开发者ID:AmberWish,项目名称:laba_web,代码行数:31,代码来源:server_status.php

示例5: PMA_profilingCheckbox

/**
 * Displays a form with the Profiling checkbox 
 *
 * @param   string  $sql_query
 * @access  public
 *
 * @author   Marc Delisle 
 */
function PMA_profilingCheckbox($sql_query)
{
    if (PMA_profilingSupported()) {
        echo '<form action="sql.php" method="post">' . "\n";
        echo PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']);
        echo '<input type="hidden" name="sql_query" value="' . htmlspecialchars($sql_query) . '" />' . "\n";
        echo '<input type="hidden" name="profiling_form" value="1" />' . "\n";
        echo '<input type="checkbox" name="profiling" id="profiling"' . (isset($_SESSION['profiling']) ? ' checked="checked"' : '') . ' onclick="this.form.submit();" /><label for="profiling">' . $GLOBALS['strProfiling'] . '</label>' . "\n";
        echo '<noscript><input type="submit" value="' . $GLOBALS['strGo'] . '" /></noscript>' . "\n";
        echo '</form>' . "\n";
    }
}
开发者ID:bharathi26,项目名称:openemr,代码行数:20,代码来源:common.lib.php

示例6: PMA_getProfilingForm

/**
 * Displays a form with the Profiling checkbox
 *
 * @param string $sql_query sql query
 *
 * @return void
 *
 * @access  public
 */
function PMA_getProfilingForm($sql_query)
{
    $retval = '';
    if (PMA_profilingSupported()) {
        $retval .= '<form action="sql.php" method="post">' . "\n";
        $retval .= PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']);
        $retval .= '<input type="hidden" name="sql_query" value="' . htmlspecialchars($sql_query) . '" />' . "\n";
        $retval .= '<input type="hidden" name="profiling_form" value="1" />' . "\n";
        $retval .= PMA_getCheckbox('profiling', __('Profiling'), isset($_SESSION['profiling']), true);
        $retval .= ' </form>' . "\n";
    }
    return $retval;
}
开发者ID:rizwanaabbas,项目名称:phpmyadmin,代码行数:22,代码来源:common.lib.php


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