本文整理匯總了PHP中Authenticate::updateProfile方法的典型用法代碼示例。如果您正苦於以下問題:PHP Authenticate::updateProfile方法的具體用法?PHP Authenticate::updateProfile怎麽用?PHP Authenticate::updateProfile使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Authenticate
的用法示例。
在下文中一共展示了Authenticate::updateProfile方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: renameResources
header('Location:../?view=register&feedback=Thank you for registering');
} else {
if ($reply == "Username and/or email taken!") {
header('Location:../?view=register&feedback=Username and/or email taken!');
} else {
header('Location:../?view=register&feedback=Could not create a new user. An Error Occured!');
}
}
}
if (isset($_POST["usname_up"])) {
//getVariables
$id = $_SESSION["user_id"];
$email = htmlentities(htmlspecialchars($_POST["email_up"]));
$phone = htmlentities(htmlspecialchars($_POST["phone_up"]));
$address = htmlentities(htmlspecialchars($_POST["address_up"]));
$username = htmlentities(htmlspecialchars($_POST["usname_up"]));
$reply = $auth->updateProfile($id, $username, $email, $phone, $address);
if ($reply) {
header('Location:../?view=register&feedback=Profile Details Updated Succesfully!');
} else {
header('Location:../?view=register&feedback=Could not Update Your Profile. An Error Occured!');
}
}
function renameResources($location, $name, $extension, $rand)
{
if (rename($location . $name, $location . $rand . "." . $extension)) {
return true;
} else {
return false;
}
}