@@ -10,8 +10,7 @@ |
||
| 10 | 10 | $regex = ['id' => '', 'groupname' => '', 'regex' => '', 'description' => '']; |
| 11 | 11 | |
| 12 | 12 | switch ((isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view')) { |
| 13 | - case 'submit': |
|
| 14 | - if ($_POST["groupname"] == '') { |
|
| 13 | + case 'submit' : if ($_POST["groupname"] == '') { |
|
| 15 | 14 | $error = "Group must be a valid usenet group"; |
| 16 | 15 | break; |
| 17 | 16 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | use nzedb\Category; |
| 5 | 5 | |
| 6 | -$page = new AdminPage(); |
|
| 6 | +$page = new AdminPage(); |
|
| 7 | 7 | $page->title = "Category List"; |
| 8 | 8 | $page->smarty->assign('categorylist', (new Category(['Settings' => $page->settings]))->getFlat()); |
| 9 | 9 | |
@@ -10,8 +10,7 @@ |
||
| 10 | 10 | $regex = ['id' => '', 'regex' => '', 'description' => '', 'group_regex' => '', 'ordinal' => '']; |
| 11 | 11 | |
| 12 | 12 | switch ((isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view')) { |
| 13 | - case 'submit': |
|
| 14 | - if ($_POST["group_regex"] == '') { |
|
| 13 | + case 'submit' : if ($_POST["group_regex"] == '') { |
|
| 15 | 14 | $error = "Group regex must not be empty!"; |
| 16 | 15 | break; |
| 17 | 16 | } |
@@ -9,8 +9,7 @@ |
||
| 9 | 9 | $release = []; |
| 10 | 10 | |
| 11 | 11 | switch ((isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view')) { |
| 12 | - case 'submit': |
|
| 13 | - $values = parseResponse($_POST); |
|
| 12 | + case 'submit' : $values = parseResponse($_POST); |
|
| 14 | 13 | if ($values === false) { |
| 15 | 14 | $page->smarty->assign('error', 'Your search criteria is wrong.'); |
| 16 | 15 | } else { |
@@ -14,8 +14,7 @@ |
||
| 14 | 14 | $genre = ['id' => '', 'title' => '', 'disabled' => '']; |
| 15 | 15 | |
| 16 | 16 | switch ((isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view')) { |
| 17 | - case 'submit': |
|
| 18 | - $ret = $genres->update($_POST["id"], $_POST["disabled"]); |
|
| 17 | + case 'submit' : $ret = $genres->update($_POST["id"], $_POST["disabled"]); |
|
| 19 | 18 | header("Location:" . WWW_TOP . "/musicgenre-list.php"); |
| 20 | 19 | break; |
| 21 | 20 | |
@@ -10,8 +10,7 @@ |
||
| 10 | 10 | $regex = ['id' => '', 'group_regex' => '', 'regex' => '', 'description' => '', 'ordinal' => '']; |
| 11 | 11 | |
| 12 | 12 | switch ((isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view')) { |
| 13 | - case 'submit': |
|
| 14 | - if ($_POST["group_regex"] == '') { |
|
| 13 | + case 'submit' : if ($_POST["group_regex"] == '') { |
|
| 15 | 14 | $error = "Group regex must not be empty!"; |
| 16 | 15 | break; |
| 17 | 16 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | |
| 4 | 4 | use nzedb\Videos; |
| 5 | 5 | |
| 6 | -$page = new AdminPage(); |
|
| 6 | +$page = new AdminPage(); |
|
| 7 | 7 | $tv = new Videos(['Settings' => $page->settings]); |
| 8 | 8 | |
| 9 | 9 | $page->title = "TV Shows List"; |
@@ -22,8 +22,7 @@ |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | switch ((isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view')) { |
| 25 | - case 'add': |
|
| 26 | - $user += [ |
|
| 25 | + case 'add' : $user += [ |
|
| 27 | 26 | 'role' => $defaultRole, |
| 28 | 27 | 'invites' => $defaultInvites, |
| 29 | 28 | 'movieview' => '1', |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | spl_autoload_register( |
| 4 | - function ($className) { |
|
| 4 | + function($className) { |
|
| 5 | 5 | $paths = [ |
| 6 | 6 | nZEDb_WWW . 'pages' . DS, |
| 7 | 7 | nZEDb_WWW . 'pages' . DS . 'admin' . DS, |