本文整理汇总了PHP中PMA_getHtmlForUserOverview函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_getHtmlForUserOverview函数的具体用法?PHP PMA_getHtmlForUserOverview怎么用?PHP PMA_getHtmlForUserOverview使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PMA_getHtmlForUserOverview函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
}
if (isset($_REQUEST['adduser'])) {
// Add user
$response->addHTML(PMA_getHtmlForAddUser(isset($dbname) ? $dbname : ''));
} elseif (isset($_REQUEST['checkprivsdb'])) {
if (isset($_REQUEST['checkprivstable'])) {
// check the privileges for a particular table.
$response->addHTML(PMA_getHtmlForSpecificTablePrivileges($_REQUEST['checkprivsdb'], $_REQUEST['checkprivstable']));
} else {
// check the privileges for a particular database.
$response->addHTML(PMA_getHtmlForSpecificDbPrivileges($_REQUEST['checkprivsdb']));
}
} else {
if (!isset($username)) {
// No username is given --> display the overview
$response->addHTML(PMA_getHtmlForUserOverview($pmaThemeImage, $text_dir));
} else {
// A user was selected -> display the user's properties
// In an Ajax request, prevent cached values from showing
if ($GLOBALS['is_ajax_request'] == true) {
header('Cache-Control: no-cache');
}
if (isset($dbname) && !is_array($dbname)) {
$url_dbname = urlencode(str_replace(array('\\_', '\\%'), array('_', '%'), $_REQUEST['dbname']));
}
$response->addHTML(PMA_getHtmlForUserProperties(isset($dbname_is_wildcard) ? $dbname_is_wildcard : '', isset($url_dbname) ? $url_dbname : '', $username, $hostname, isset($dbname) ? $dbname : '', isset($tablename) ? $tablename : ''));
}
}
if (isset($_REQUEST['viewing_mode']) && $_REQUEST['viewing_mode'] == 'server' && $GLOBALS['cfgRelation']['menuswork']) {
$response->addHTML('</div>');
}
示例2: testPMAGetHtmlForUserOverview
/**
* Tests for PMA_getHtmlForUserOverview
*
* @return void
*/
function testPMAGetHtmlForUserOverview()
{
$actual = PMA_getHtmlForUserOverview('theme', '');
$this->assertContains('Note: MySQL privilege names are expressed in English.', $actual);
$this->assertContains('Note: phpMyAdmin gets the users\' privileges directly ' . 'from MySQL\'s privilege tables.', $actual);
}
示例3: urlencode
}
} else {
if (isset($dbname) && ! is_array($dbname)) {
$url_dbname = urlencode(
str_replace(
array('\_', '\%'),
array('_', '%'),
$_REQUEST['dbname']
)
);
}
if (! isset($username)) {
// No username is given --> display the overview
$response->addHTML(
PMA_getHtmlForUserOverview($pmaThemeImage, $text_dir)
);
} else if (!empty($routinename)) {
$response->addHTML(
PMA_getHtmlForRoutineSpecificPrivilges(
$username, $hostname, $dbname, $routinename,
(isset($url_dbname) ? $url_dbname : '')
)
);
} else {
// A user was selected -> display the user's properties
// In an Ajax request, prevent cached values from showing
if ($response->isAjax()) {
header('Cache-Control: no-cache');
}