htaccess fini
This commit is contained in:
parent
5071d5f2f3
commit
b75ae2542a
22 changed files with 101 additions and 105 deletions
|
|
@ -48,7 +48,7 @@ class UserCtrl extends MotherCtrl {
|
|||
setcookie('remember_me', $token, time() + (15*24*60*60), "/", "", true, true);
|
||||
|
||||
}
|
||||
header("Location:index.php");
|
||||
header("Location:".$_ENV['BASE_URL']);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
@ -75,7 +75,7 @@ class UserCtrl extends MotherCtrl {
|
|||
|
||||
$_SESSION['success'] = "Vous êtes bien déconnecté";
|
||||
|
||||
header("Location:index.php");
|
||||
header("Location:".$_ENV['BASE_URL']);
|
||||
exit;
|
||||
|
||||
}
|
||||
|
|
@ -143,7 +143,7 @@ class UserCtrl extends MotherCtrl {
|
|||
|
||||
if ($boolInsert === true) {
|
||||
$_SESSION['success'] = "Compte créé avec succès";
|
||||
header("Location:index.php?ctrl=user&action=login");
|
||||
header("Location:".$_ENV['BASE_URL']."/user/login");
|
||||
exit;
|
||||
} else {
|
||||
$arrError['global'] = "Erreur lors de l'ajout";
|
||||
|
|
@ -169,7 +169,7 @@ class UserCtrl extends MotherCtrl {
|
|||
$arrUserData = $objUserModel->findUserByPseudo($strPseudo);
|
||||
|
||||
if ($arrUserData === false) {
|
||||
header("Location: index.php");
|
||||
header("Location: ".$_ENV['BASE_URL']);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
@ -195,7 +195,7 @@ class UserCtrl extends MotherCtrl {
|
|||
*/
|
||||
public function edit(){
|
||||
if(!isset($_SESSION['user'])){
|
||||
header("Location: index.php");
|
||||
header("Location: ".$_ENV['BASE_URL']);
|
||||
exit;
|
||||
}
|
||||
$objUserModel = new UserModel;
|
||||
|
|
@ -298,7 +298,7 @@ class UserCtrl extends MotherCtrl {
|
|||
$arrNewInfo = $objUserModel->findUserByPseudo($objUser->getPseudo());
|
||||
$_SESSION['user'] = $arrNewInfo;
|
||||
$_SESSION['success'] = "Compte modifier avec succès";
|
||||
header("Location:?ctrl=user&action=user&pseudo=".$objUser->getPseudo());
|
||||
header('Location:'.$_ENV['BASE_URL'].'/user/user/'.$objUser->getPseudo());
|
||||
exit;
|
||||
} else {
|
||||
$arrError['global'] = "Erreur lors de l'update";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue