From 8924aabba1c3427250a07910c05028c53db07871 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 21 Jul 2018 00:25:49 -0400 Subject: Remove old content --- examples/model/auth.mod.php | 115 ------------------------------- examples/model/dashboard.mod.php | 29 -------- examples/model/deauth.mod.php | 31 --------- examples/model/except.mod.php | 30 -------- examples/model/master.mod.php | 56 --------------- examples/model/obj.mod.php | 30 -------- examples/view/dashboard/default.view.php | 27 -------- examples/view/except/default.view.php | 47 ------------- examples/view/master/foot.view.php | 29 -------- examples/view/master/topp.view.php | 62 ----------------- 10 files changed, 456 deletions(-) delete mode 100644 examples/model/auth.mod.php delete mode 100644 examples/model/dashboard.mod.php delete mode 100644 examples/model/deauth.mod.php delete mode 100644 examples/model/except.mod.php delete mode 100644 examples/model/master.mod.php delete mode 100644 examples/model/obj.mod.php delete mode 100644 examples/view/dashboard/default.view.php delete mode 100644 examples/view/except/default.view.php delete mode 100644 examples/view/master/foot.view.php delete mode 100644 examples/view/master/topp.view.php (limited to 'examples') diff --git a/examples/model/auth.mod.php b/examples/model/auth.mod.php deleted file mode 100644 index 000db95..0000000 --- a/examples/model/auth.mod.php +++ /dev/null @@ -1,115 +0,0 @@ -getAllUsers_orderByName()) == 0) - { - $this->noaccounts = true; - $this->activeTab['signup'] = "in active"; - $this->tabSwap = false; - } - - else - { - $this->activeTab['login'] = "in active"; - $this->tabSwap = Setting::allowPublicSignup(); - } - } - - /* - * Attempt to register a new account - */ - function signup($input) - { - $userTbl = new User(); - - if (!Setting::allowPublicSignup() && count($userTbl->getAllUsers_orderByName()) > 0) - { - $this->logError("You may not signup at this time"); - return; - } - - $form = new Form(); - $form->field_text("username"); - $form->field_text("password", null, false); - $form->field_text("cPassword", null, false); - - if (!$form->populate($input)) - { - $this->logFormErrors($form); - return; - } - - if ($form->password != $form->cPassword) - { - $this->logError("Passwords do not match"); - return; - } - - $user = new User(); - - if (!$user->createNewUser($form->username, $form->password)) - { - $this->logError("Your requested username is already in use"); - return; - } - - $this->setCurrentUser($user); - $this->redirectTo($this->ap() . "/"); - } - - /* - * Attempt to login - */ - function login($input) - { - $form = new Form(); - $form->field_text("username"); - $form->field_text("password", null, false); - - if (!$form->populate($input)) - { - $this->logFormErrors($form); - return; - } - - $user = new User(); - - if (!($user->initByUsername($form->username) && $user->validatePassword($form->password))) - { - $this->logError("Username or password is incorrect"); - return; - } - - $this->setCurrentUser($user); - $this->redirectTo($this->ap() . "/"); - } -} - -?> diff --git a/examples/model/dashboard.mod.php b/examples/model/dashboard.mod.php deleted file mode 100644 index 00fb759..0000000 --- a/examples/model/dashboard.mod.php +++ /dev/null @@ -1,29 +0,0 @@ - diff --git a/examples/model/deauth.mod.php b/examples/model/deauth.mod.php deleted file mode 100644 index 8991606..0000000 --- a/examples/model/deauth.mod.php +++ /dev/null @@ -1,31 +0,0 @@ -setCurrentUser(); - $this->redirectTo($this->ar() . "/"); - } -} - -?> diff --git a/examples/model/except.mod.php b/examples/model/except.mod.php deleted file mode 100644 index fb81315..0000000 --- a/examples/model/except.mod.php +++ /dev/null @@ -1,30 +0,0 @@ -message = $message; - } -} - -?> diff --git a/examples/model/master.mod.php b/examples/model/master.mod.php deleted file mode 100644 index 5aaafa8..0000000 --- a/examples/model/master.mod.php +++ /dev/null @@ -1,56 +0,0 @@ -isError()) - return "alert-danger"; - - if ($this->isWarning()) - return "alert-warning"; - - if ($this->isNotice()) - return "alert-info"; - - return ""; - } - - /* - * Get the appropriate glyphicon to use when showing the notice modal - */ - function getNoticeModalGlyphicon() - { - if ($this->isError()) - return "glyphicon glyphicon-remove-sign"; - - if ($this->isWarning()) - return "glyphicon glyphicon-exclamation-sign"; - - if ($this->isNotice()) - return "glyphicon glyphicon-info-sign"; - - return ""; - } -} - -?> diff --git a/examples/model/obj.mod.php b/examples/model/obj.mod.php deleted file mode 100644 index 159c962..0000000 --- a/examples/model/obj.mod.php +++ /dev/null @@ -1,30 +0,0 @@ - diff --git a/examples/view/dashboard/default.view.php b/examples/view/dashboard/default.view.php deleted file mode 100644 index caf78da..0000000 --- a/examples/view/dashboard/default.view.php +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - Scrott - Dashboard - - - - - - - diff --git a/examples/view/except/default.view.php b/examples/view/except/default.view.php deleted file mode 100644 index 01cf123..0000000 --- a/examples/view/except/default.view.php +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - Scrott - Application Exception - - - - - - - -
-
-

Scrott derped

-
System internals reported this:
- -
-

message?>

-
- - - Go to Scrott Dashboard - -
-
- - - - diff --git a/examples/view/master/foot.view.php b/examples/view/master/foot.view.php deleted file mode 100644 index 6279b05..0000000 --- a/examples/view/master/foot.view.php +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - -isError() || $mod->isWarning() || $mod->isNotice()) { ?> - - diff --git a/examples/view/master/topp.view.php b/examples/view/master/topp.view.php deleted file mode 100644 index 9a0b0fe..0000000 --- a/examples/view/master/topp.view.php +++ /dev/null @@ -1,62 +0,0 @@ - - -isError() || $mod->isWarning() || $mod->isNotice()) { ?> - - -- cgit v1.2.3