本文整理匯總了PHP中PMA_updatePassword函數的典型用法代碼示例。如果您正苦於以下問題:PHP PMA_updatePassword函數的具體用法?PHP PMA_updatePassword怎麽用?PHP PMA_updatePassword使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了PMA_updatePassword函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testPMAUpdatePassword
/**
* Test for PMA_updatePassword
*
* @return void
*/
public function testPMAUpdatePassword()
{
$username = 'pma_username';
$hostname = 'pma_hostname';
$err_url = "error.php";
$_POST['pma_pw'] = 'pma_pw';
$message = PMA_updatePassword($err_url, $username, $hostname);
$this->assertEquals("The password for 'pma_username'@'pma_hostname' " . "was changed successfully.", $message->getMessage());
}
示例2: PMA_setUserGroup
*/
if (!empty($_REQUEST['changeUserGroup']) && $cfgRelation['menuswork'] && $GLOBALS['is_superuser'] && $GLOBALS['is_createuser']) {
PMA_setUserGroup($username, $_REQUEST['userGroup']);
$message = PMA_Message::success();
}
/**
* Revokes Privileges
*/
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'])) {