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


PHP PMA_fixPMATables函数代码示例

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


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

示例1: unset

unset($dummy);
// here, the function does not exist with this configuration:
// $cfg['ServerDefault'] = 0;
$GLOBALS['is_superuser'] = isset($GLOBALS['dbi']) && $GLOBALS['dbi']->isSuperuser();
if (!empty($__redirect) && in_array($__redirect, $goto_whitelist)) {
    /**
     * include subform target page
     */
    include $__redirect;
    exit;
}
// If Zero configuration mode enabled, check PMA tables in current db.
if (!defined('PMA_MINIMUM_COMMON') && !empty($GLOBALS['server']) && isset($GLOBALS['cfg']['ZeroConf']) && $GLOBALS['cfg']['ZeroConf'] == true) {
    if (!empty($GLOBALS['db'])) {
        $cfgRelation = PMA_getRelationsParam();
        if (empty($cfgRelation['db'])) {
            PMA_fixPMATables($GLOBALS['db'], false);
        }
    }
    $cfgRelation = PMA_getRelationsParam();
    if (empty($cfgRelation['db'])) {
        foreach ($GLOBALS['pma']->databases as $database) {
            if ($database == 'phpmyadmin') {
                PMA_fixPMATables($database, false);
            }
        }
    }
}
if (!defined('PMA_MINIMUM_COMMON')) {
    include_once 'libraries/config/page_settings.class.php';
}
开发者ID:mi-squared,项目名称:openemr,代码行数:31,代码来源:common.inc.php

示例2: PMA_fixPMATables

<?php

require_once 'libraries/common.inc.php';
// If request for creating all PMA tables.
if (isset($_REQUEST['create_pmadb'])) {
    PMA_fixPMATables($GLOBALS['db']);
}
$cfgRelation = PMA_getRelationsParam();
// If request for creating missing PMA tables.
if (isset($_REQUEST['fix_pmadb'])) {
    PMA_fixPMATables($cfgRelation['db']);
}
$response = PMA_Response::getInstance();
$response->addHTML(PMA_getRelationsParamDiagnostic($cfgRelation));
开发者ID:Osming,项目名称:hello-word,代码行数:14,代码来源:chk_rel.php

示例3: PMA_fatalError

    PMA_fatalError(__('possible exploit'));
}
/**
 * Check for numeric keys
 * (if register_globals is on, numeric key can be found in $GLOBALS)
 */
foreach ($GLOBALS as $key => $dummy) {
    if (is_numeric($key)) {
        PMA_fatalError(__('numeric key detected'));
    }
}
unset($dummy);
// here, the function does not exist with this configuration:
// $cfg['ServerDefault'] = 0;
$GLOBALS['is_superuser'] = isset($GLOBALS['dbi']) && $GLOBALS['dbi']->isSuperuser();
if (!empty($__redirect) && in_array($__redirect, $goto_whitelist)) {
    /**
     * include subform target page
     */
    include $__redirect;
    exit;
}
// If Zero configuration mode enabled, check PMA tables in current db.
if (!defined('PMA_MINIMUM_COMMON') && isset($GLOBALS['cfg']['ZeroConf']) && $GLOBALS['cfg']['ZeroConf'] == true) {
    if (!empty($GLOBALS['db'])) {
        $cfgRelation = PMA_getRelationsParam();
        if (empty($cfgRelation['db'])) {
            PMA_fixPMATables($GLOBALS['db'], false);
        }
    }
}
开发者ID:sruthikudaravalli,项目名称:QuickCabs,代码行数:31,代码来源:common.inc.php

示例4: PMA_checkAndFixPMATablesInCurrentDb

/**
 * Checks and fixes configuration storage in current DB.
 *
 * @return void
 */
function PMA_checkAndFixPMATablesInCurrentDb()
{
    if (isset($GLOBALS['db']) && !empty($GLOBALS['db'])) {
        if (isset($GLOBALS['cfg']['Server']['pmadb']) && empty($GLOBALS['cfg']['Server']['pmadb'])) {
            $default_tables = PMA_getDefaultPMATableNames();
            if (PMA_searchPMATablesInDb($GLOBALS['db'], array_keys($default_tables))) {
                PMA_fixPMATables($GLOBALS['db']);
                // Since configuration storage is updated, we need to
                // re-initialize the favorite and recent tables stored in the
                // session from the current configuration storage.
                include_once 'libraries/RecentFavoriteTable.class.php';
                $fav_tables = PMA_RecentFavoriteTable::getInstance('favorite');
                $recent_tables = PMA_RecentFavoriteTable::getInstance('recent');
                $_SESSION['tmpval']['favorite_tables'][$GLOBALS['server']] = $fav_tables->getFromDb();
                $_SESSION['tmpval']['recent_tables'][$GLOBALS['server']] = $recent_tables->getFromDb();
                // Reload navi panel to update the recent/favorite lists.
                $GLOBALS['reload'] = true;
            }
        }
    }
}
开发者ID:harryboulderdash,项目名称:PlayGFC,代码行数:26,代码来源:core.lib.php

示例5: PMA_fixPMATables

<?php

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Displays status of phpMyAdmin configuration storage
 *
 * @package PhpMyAdmin
 */
require_once 'libraries/common.inc.php';
// If request for fixing PMA tables.
if (isset($_REQUEST['fix_pmadb'])) {
    PMA_fixPMATables($GLOBALS['db']);
}
$response = PMA_Response::getInstance();
$response->addHTML(PMA_getRelationsParamDiagnostic(PMA_getRelationsParam()));
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:15,代码来源:chk_rel.php


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