diff --git a/web/application/controllers/history.php b/web/application/controllers/history.php index 2ebfff5..da41fab 100644 --- a/web/application/controllers/history.php +++ b/web/application/controllers/history.php @@ -48,7 +48,7 @@ class history extends base } } } catch (\Exception $e) { - header("Location: /"); + header("Location: /kritbit"); } } @@ -62,7 +62,7 @@ class history extends base echo $historyArr[0]->output; } } catch (\Exception $e) { - header("Location: /"); + header("Location: /kritbit"); } } } \ No newline at end of file diff --git a/web/application/controllers/job.php b/web/application/controllers/job.php index 7de2085..573e5a5 100644 --- a/web/application/controllers/job.php +++ b/web/application/controllers/job.php @@ -25,7 +25,7 @@ class job extends base { $data = $_POST; $data["user_id"] = $this->user->id; \application\models\Jobs::create($data)->save(); - header("Location: /"); + header("Location: /kritbit"); } } @@ -35,12 +35,12 @@ class job extends base { if ($job && $job[0]->user_id == $this->user->id) { //secuirty check if (isset($_POST["jobName"])) { $job[0]->update($_POST)->save(); - header("Location: /"); + header("Location: /kritbit"); } else { echo $this->loadRender("add.html", ["job" => $job[0]]); } } else { - header("Location: /"); + header("Location: /kritbit"); } } @@ -49,9 +49,9 @@ class job extends base { if ($job && $job[0]->user_id == $this->user->id) { //secuirty check $job[0]->deleteRelated(["histories"]); $job[0]->delete(); - header("Location: /"); + header("Location: /kritbit"); } else { - header("Location: /"); + header("Location: /kritbit"); } } @@ -64,9 +64,9 @@ class job extends base { $job[0]->force_run = 1; } $job[0]->save(); - header("Location: /"); + header("Location: /kritbit"); } else { - header("Location: /"); + header("Location: /kritbit"); } } diff --git a/web/application/controllers/login.php b/web/application/controllers/login.php index 615ace8..945d299 100644 --- a/web/application/controllers/login.php +++ b/web/application/controllers/login.php @@ -33,7 +33,7 @@ class login extends base { $this->session->data = json_encode(["userId" => $user->id]); $this->session->save(); $this->sessionData = $this->session->data; - header("Location: /"); + header("Location: /kritbit"); } else { header("Location: " . $check); }