Added routes
This commit is contained in:
@@ -25,15 +25,23 @@ if (isLogin()) {
|
||||
|
||||
//Try to save it
|
||||
if(!$keyword->save()){
|
||||
header("location: ../../../Frontend/index.php?created=failed");
|
||||
header("location: ../../../Frontend/index.html?error=FailedToSave");
|
||||
exit();
|
||||
}else{
|
||||
header("location:../../../Frontend/index.php?created=success");
|
||||
header("location: ../../../Frontend/index.html?success=KeyWordSaved");
|
||||
exit();
|
||||
}
|
||||
}else{
|
||||
header("location: ../../../Frontend/index.html?error=YouCantSubmitAnyMoreKeyWords");
|
||||
exit();
|
||||
}
|
||||
|
||||
//TODO make toast feedback
|
||||
}else{
|
||||
header("location: ../../../Frontend/index.html?error=CouldNotSubmitKeyWord");
|
||||
exit();
|
||||
}
|
||||
}else{
|
||||
header("location: ../Frontend/index.php?login=notLoggein");
|
||||
header("location: ../../../Frontend/index.html?error=NotLogin");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user