@@ -18,8 +18,8 @@ |
||
| 18 | 18 | { |
| 19 | 19 | |
| 20 | 20 | print "<ul class=\"ui-tooltip-nntmux\">\n"; |
| 21 | - print "<li>".htmlentities($rel["title"], ENT_QUOTES)."</li>\n"; |
|
| 22 | - print "<li>Aired on ".date("F j, Y", strtotime($rel["firstaired"]))."</li>\n"; |
|
| 21 | + print "<li>" . htmlentities($rel["title"], ENT_QUOTES) . "</li>\n"; |
|
| 22 | + print "<li>Aired on " . date("F j, Y", strtotime($rel["firstaired"])) . "</li>\n"; |
|
| 23 | 23 | print "</ul>"; |
| 24 | 24 | |
| 25 | 25 | if (isset($rel["videos_id"]) && $rel["videos_id"] > 0) |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | // Remove any suffixed id with .nzb which is added to help weblogging programs see nzb traffic. |
| 40 | 40 | if (isset($_GET['id'])) { |
| 41 | - $_GET['id'] = str_ireplace('.nzb','', $_GET['id']); |
|
| 41 | + $_GET['id'] = str_ireplace('.nzb', '', $_GET['id']); |
|
| 42 | 42 | } |
| 43 | 43 | // |
| 44 | 44 | // A hash of the users ip to record against the download |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | header("Content-type: application/octet-stream"); |
| 85 | - header("Content-disposition: attachment; filename=" . date("Ymdhis") . ".nzb.zip"); |
|
| 85 | + header("Content-disposition: attachment; filename=" . date("Ymdhis") . ".nzb.zip"); |
|
| 86 | 86 | exit($zip); |
| 87 | 87 | } else { |
| 88 | 88 | $page->show404(); |
@@ -137,33 +137,33 @@ |
||
| 137 | 137 | $rf = new ReleaseFiles; |
| 138 | 138 | $releasefiles = $rf->get($data["id"]); |
| 139 | 139 | |
| 140 | - $page->smarty->assign('releasefiles',$releasefiles); |
|
| 141 | - $page->smarty->assign('release',$data); |
|
| 142 | - $page->smarty->assign('reVideo',$reVideo); |
|
| 143 | - $page->smarty->assign('reAudio',$reAudio); |
|
| 144 | - $page->smarty->assign('reSubs',$reSubs); |
|
| 145 | - $page->smarty->assign('nfo',$nfo); |
|
| 146 | - $page->smarty->assign('show',$showInfo); |
|
| 147 | - $page->smarty->assign('movie',$mov); |
|
| 140 | + $page->smarty->assign('releasefiles', $releasefiles); |
|
| 141 | + $page->smarty->assign('release', $data); |
|
| 142 | + $page->smarty->assign('reVideo', $reVideo); |
|
| 143 | + $page->smarty->assign('reAudio', $reAudio); |
|
| 144 | + $page->smarty->assign('reSubs', $reSubs); |
|
| 145 | + $page->smarty->assign('nfo', $nfo); |
|
| 146 | + $page->smarty->assign('show', $showInfo); |
|
| 147 | + $page->smarty->assign('movie', $mov); |
|
| 148 | 148 | $page->smarty->assign('xxx', $xxx); |
| 149 | - $page->smarty->assign('episode',$episodeArray); |
|
| 150 | - $page->smarty->assign('anidb',$AniDBAPIArray); |
|
| 151 | - $page->smarty->assign('music',$mus); |
|
| 152 | - $page->smarty->assign('con',$con); |
|
| 149 | + $page->smarty->assign('episode', $episodeArray); |
|
| 150 | + $page->smarty->assign('anidb', $AniDBAPIArray); |
|
| 151 | + $page->smarty->assign('music', $mus); |
|
| 152 | + $page->smarty->assign('con', $con); |
|
| 153 | 153 | $page->smarty->assign('game', $game); |
| 154 | - $page->smarty->assign('book',$book); |
|
| 154 | + $page->smarty->assign('book', $book); |
|
| 155 | 155 | $page->smarty->assign('predb', $pre); |
| 156 | - $page->smarty->assign('comments',$comments); |
|
| 157 | - $page->smarty->assign('searchname',$releases->getSimilarName($data['searchname'])); |
|
| 156 | + $page->smarty->assign('comments', $comments); |
|
| 157 | + $page->smarty->assign('searchname', $releases->getSimilarName($data['searchname'])); |
|
| 158 | 158 | $page->smarty->assign('similars', $similars); |
| 159 | - $page->smarty->assign('privateprofiles', ($page->settings->getSetting('privateprofiles') == 1) ? true : false ); |
|
| 159 | + $page->smarty->assign('privateprofiles', ($page->settings->getSetting('privateprofiles') == 1) ? true : false); |
|
| 160 | 160 | $page->smarty->assign('failed', $failed); |
| 161 | 161 | $page->smarty->assign('cpapi', $cpapi); |
| 162 | 162 | $page->smarty->assign('cpurl', $cpurl); |
| 163 | 163 | |
| 164 | 164 | $page->meta_title = "View NZB"; |
| 165 | 165 | $page->meta_keywords = "view,nzb,description,details"; |
| 166 | - $page->meta_description = "View NZB for".$data["searchname"] ; |
|
| 166 | + $page->meta_description = "View NZB for" . $data["searchname"]; |
|
| 167 | 167 | |
| 168 | 168 | $page->content = $page->smarty->fetch('viewnzb.tpl'); |
| 169 | 169 | $page->render(); |
@@ -1,4 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | $page->users->logout(); |
| 3 | 3 | |
| 4 | -header("Location: ".WWW_TOP."/login"); |
|
| 4 | +header("Location: " . WWW_TOP . "/login"); |
|
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | // login check |
| 8 | 8 | $admin = new AdminPage; |
| 9 | -$bin = new Binaries(); |
|
| 9 | +$bin = new Binaries(); |
|
| 10 | 10 | |
| 11 | 11 | if (isset($_GET['action']) && $_GET['action'] == "2") |
| 12 | 12 | { |
@@ -21,27 +21,27 @@ discard block |
||
| 21 | 21 | $page->show404(); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - switch($action) |
|
| 24 | + switch ($action) |
|
| 25 | 25 | { |
| 26 | 26 | case 'submit': |
| 27 | - $coverLoc = WWW_DIR."covers/movies/".$id.'-cover.jpg'; |
|
| 28 | - $backdropLoc = WWW_DIR."covers/movies/".$id.'-backdrop.jpg'; |
|
| 27 | + $coverLoc = WWW_DIR . "covers/movies/" . $id . '-cover.jpg'; |
|
| 28 | + $backdropLoc = WWW_DIR . "covers/movies/" . $id . '-backdrop.jpg'; |
|
| 29 | 29 | |
| 30 | - if($_FILES['cover']['size'] > 0) |
|
| 30 | + if ($_FILES['cover']['size'] > 0) |
|
| 31 | 31 | { |
| 32 | 32 | $tmpName = $_FILES['cover']['tmp_name']; |
| 33 | 33 | $file_info = getimagesize($tmpName); |
| 34 | - if(!empty($file_info)) |
|
| 34 | + if (!empty($file_info)) |
|
| 35 | 35 | { |
| 36 | 36 | move_uploaded_file($_FILES['cover']['tmp_name'], $coverLoc); |
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - if($_FILES['backdrop']['size'] > 0) |
|
| 40 | + if ($_FILES['backdrop']['size'] > 0) |
|
| 41 | 41 | { |
| 42 | 42 | $tmpName = $_FILES['backdrop']['tmp_name']; |
| 43 | 43 | $file_info = getimagesize($tmpName); |
| 44 | - if(!empty($file_info)) |
|
| 44 | + if (!empty($file_info)) |
|
| 45 | 45 | { |
| 46 | 46 | move_uploaded_file($_FILES['backdrop']['tmp_name'], $backdropLoc); |
| 47 | 47 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | 'year' => $_POST["year"] |
| 66 | 66 | ]); |
| 67 | 67 | |
| 68 | - header("Location:".WWW_TOP."/movie-list.php"); |
|
| 68 | + header("Location:" . WWW_TOP . "/movie-list.php"); |
|
| 69 | 69 | die(); |
| 70 | 70 | break; |
| 71 | 71 | case 'view': |
@@ -4,13 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | use nntmux\Videos; |
| 6 | 6 | |
| 7 | -$page = new AdminPage(); |
|
| 7 | +$page = new AdminPage(); |
|
| 8 | 8 | $tv = new smartyTV(['Settings' => $page->settings]); |
| 9 | 9 | $video = new Videos(['Settings' => $page->settings]); |
| 10 | 10 | |
| 11 | 11 | switch ((isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view')) { |
| 12 | - case 'submit': |
|
| 13 | - //TODO: Use a function that allows overwrites |
|
| 12 | + case 'submit' : //TODO: Use a function that allows overwrites |
|
| 14 | 13 | //$tv->update($_POST["id"], $_POST["title"],$_POST["summary"], $_POST['countries_id']); |
| 15 | 14 | |
| 16 | 15 | if (isset($_POST['from']) && !empty($_POST['from'])) { |
@@ -21,14 +21,14 @@ discard block |
||
| 21 | 21 | $page->show404(); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - switch($action) { |
|
| 24 | + switch ($action) { |
|
| 25 | 25 | case 'submit': |
| 26 | 26 | $coverLoc = NN_COVERS . "games/" . $id . '.jpg'; |
| 27 | 27 | |
| 28 | - if($_FILES['cover']['size'] > 0) { |
|
| 28 | + if ($_FILES['cover']['size'] > 0) { |
|
| 29 | 29 | $tmpName = $_FILES['cover']['tmp_name']; |
| 30 | 30 | $file_info = getimagesize($tmpName); |
| 31 | - if(!empty($file_info)) { |
|
| 31 | + if (!empty($file_info)) { |
|
| 32 | 32 | move_uploaded_file($_FILES['cover']['tmp_name'], $coverLoc); |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | $games->update($id, $_POST["title"], $_POST['asin'], $_POST['url'], $_POST["publisher"], $_POST["releasedate"], $_POST["esrb"], $_POST["cover"], $_POST['trailerurl'], $_POST["genre"]); |
| 40 | 40 | |
| 41 | - header("Location:".WWW_TOP."/game-list.php"); |
|
| 41 | + header("Location:" . WWW_TOP . "/game-list.php"); |
|
| 42 | 42 | die(); |
| 43 | 43 | break; |
| 44 | 44 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | switch ($action) { |
| 35 | 35 | case 'add': |
| 36 | - $user += [ |
|
| 36 | + $user += [ |
|
| 37 | 37 | 'role' => $defaultRole, |
| 38 | 38 | 'notes' => '', |
| 39 | 39 | 'invites' => $defaultInvites, |