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


PHP PMA_getHtmlForUserProperties函數代碼示例

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


在下文中一共展示了PMA_getHtmlForUserProperties函數的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>');
}
開發者ID:xtreme-jamil-shamy,項目名稱:phpmyadmin-cf,代碼行數:31,代碼來源:server_privileges.php

示例2: testPMAGetHtmlForUserProperties

 /**
  * Tests for PMA_getHtmlForUserProperties
  *
  * @return void
  */
 function testPMAGetHtmlForUserProperties()
 {
     $actual = PMA_getHtmlForUserProperties(false, 'db', 'user', 'host', 'db', 'table');
     $this->assertContains('addUsersForm', $actual);
     $this->assertContains('SELECT', $actual);
     $this->assertContains('Allows reading data.', $actual);
     $this->assertContains('INSERT', $actual);
     $this->assertContains('Allows inserting and replacing data.', $actual);
     $this->assertContains('UPDATE', $actual);
     $this->assertContains('Allows changing data.', $actual);
     $this->assertContains('DELETE', $actual);
     $this->assertContains('Allows deleting data.', $actual);
     $this->assertContains('CREATE', $actual);
     $this->assertContains('Allows creating new tables.', $actual);
 }
開發者ID:netroby,項目名稱:phpmyadmin,代碼行數:20,代碼來源:PMA_server_privileges_test.php

示例3: PMA_getHtmlForRoutineSpecificPrivilges

        $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');
        }

        $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>');
}
開發者ID:nijel,項目名稱:phpmyadmin,代碼行數:30,代碼來源:server_privileges.php


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