本文整理匯總了PHP中Server::getEnlaceCarpeta方法的典型用法代碼示例。如果您正苦於以下問題:PHP Server::getEnlaceCarpeta方法的具體用法?PHP Server::getEnlaceCarpeta怎麽用?PHP Server::getEnlaceCarpeta使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server
的用法示例。
在下文中一共展示了Server::getEnlaceCarpeta方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: recoverUser
private static function recoverUser()
{
$email = Request::req("email");
$bd = new DataBase();
$gestor = new ManageUser($bd);
$user = $gestor->get($email);
if ($user->getEmail() == $email && $user->getActivo() == 1) {
$id = md5(Constant::PEZARANA . $email);
$direccion = Server::getEnlaceCarpeta("index.php?id={$id}&email={$email}&action=view&target=cambiarclave");
$direccion = "<a href='{$direccion}'>Recuperar contraseña de: {$email}</a>";
self::viewLogin($direccion, "info");
} else {
self::viewLogin("Email incorrecto o usuario inactivo", "danger");
}
}
示例2: DataBase
<?php
require '../clases/AutoCarga.php';
$bd = new DataBase();
$sesion = new Session();
$gestor = new ManageUser($bd);
$sesion->autentificado();
$user = $sesion->getUser();
$error = Request::get("error");
$r = $gestor->desactivar($user->getEmail());
$sesion->destroy();
if ($r == 1) {
$id = md5(Constant::PEZARANA . $user->getEmail());
$email = $user->getEmail();
$direccion = Server::getEnlaceCarpeta("phpconfirmar.php?id={$id}&email={$email}");
header("Location: bienvenida.php?direccion={$direccion}");
exit;
}
header("Location:viewuser.php?r={$r}");
示例3: DataBase
<?php
require '../clases/AutoCarga.php';
$bd = new DataBase();
$email = Request::post("email");
$id = md5(Constant::PEZARANA . $email);
$direccion = Server::getEnlaceCarpeta("viewcambiar.php?id={$id}&email={$email}");
header("Location: cambiar.php?direccion={$direccion}");
exit;
header("Location: viewalta.php?error={$r}");