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


PHP PMA_getDataForDeleteUsers函數代碼示例

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


在下文中一共展示了PMA_getDataForDeleteUsers函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: list

 */
if (isset($_REQUEST['revokeall'])) {
    list($message, $sql_query) = PMA_getMessageAndSqlQueryForPrivilegesRevoke(isset($dbname) ? $dbname : '', isset($tablename) ? $tablename : '', $username, $hostname);
}
/**
 * Updates the password
 */
if (isset($_REQUEST['change_pw'])) {
    $message = PMA_updatePassword($err_url, $username, $hostname);
}
/**
 * Deletes users
 *   (Changes / copies a user, part IV)
 */
if (isset($_REQUEST['delete']) || isset($_REQUEST['change_copy']) && $_REQUEST['mode'] < 4) {
    $queries = PMA_getDataForDeleteUsers($queries);
    if (empty($_REQUEST['change_copy'])) {
        list($sql_query, $message) = PMA_deleteUser($queries);
    }
}
/**
 * Changes / copies a user, part V
 */
if (isset($_REQUEST['change_copy'])) {
    $queries = PMA_getDataForQueries($queries, $queries_for_display);
    $message = PMA_Message::success();
    $sql_query = join("\n", $queries);
}
/**
 * Reloads the privilege tables into memory
 */
開發者ID:xtreme-jamil-shamy,項目名稱:phpmyadmin-cf,代碼行數:31,代碼來源:server_privileges.php

示例2: testPMAGetDataForDeleteUsers

 /**
  * Test for PMA_getDataForDeleteUsers
  *
  * @return void
  */
 public function testPMAGetDataForDeleteUsers()
 {
     $_REQUEST['change_copy'] = "change_copy";
     $_REQUEST['old_hostname'] = "old_hostname";
     $_REQUEST['old_username'] = "old_username";
     $_SESSION['relation'][1] = array('PMA_VERSION' => PMA_VERSION, 'bookmarkwork' => false, 'historywork' => false, 'recentwork' => false, 'favoritework' => false, 'uiprefswork' => false, 'userconfigwork' => false, 'menuswork' => false, 'navwork' => false, 'savedsearcheswork' => false, 'designersettingswork' => false);
     $queries = array();
     $ret = PMA_getDataForDeleteUsers($queries);
     $item = array("# Deleting 'old_username'@'old_hostname' ...", "DROP USER 'old_username'@'old_hostname';");
     $this->assertEquals($item, $ret);
 }
開發者ID:netroby,項目名稱:phpmyadmin,代碼行數:16,代碼來源:PMA_server_privileges_test.php

示例3: testPMAGetDataForDeleteUsers

 /**
  * Test for PMA_getDataForDeleteUsers
  *
  * @return void
  */
 public function testPMAGetDataForDeleteUsers()
 {
     $_REQUEST['change_copy'] = "change_copy";
     $_REQUEST['old_hostname'] = "old_hostname";
     $_REQUEST['old_username'] = "old_username";
     $queries = array();
     $ret = PMA_getDataForDeleteUsers($queries);
     $item = array("# Deleting 'old_username'@'old_hostname' ...", "DROP USER 'old_username'@'old_hostname';");
     $this->assertEquals($item, $ret);
 }
開發者ID:elenacaseyroby,項目名稱:MetaphoricalFruit,代碼行數:15,代碼來源:PMA_server_privileges_test.php


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