Passed
Push — dev ( 76ce63...ac1a94 )
by Darko
11:33
created
www/admin/anidb-list.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,19 +19,19 @@
 block discarded – undo
19 19
 $animecount = $AniDB->getAnimeCount($aname);
20 20
 
21 21
 $offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
22
-$asearch = ($aname != "") ? 'animetitle='.$aname.'&' : '';
22
+$asearch = ($aname != "") ? 'animetitle=' . $aname . '&' : '';
23 23
 
24
-$page->smarty->assign('pagertotalitems',$animecount);
25
-$page->smarty->assign('pageroffset',$offset);
26
-$page->smarty->assign('pageritemsperpage',ITEMS_PER_PAGE);
27
-$page->smarty->assign('pagerquerybase', WWW_TOP."/anidb-list.php?".$asearch."&offset=");
24
+$page->smarty->assign('pagertotalitems', $animecount);
25
+$page->smarty->assign('pageroffset', $offset);
26
+$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
27
+$page->smarty->assign('pagerquerybase', WWW_TOP . "/anidb-list.php?" . $asearch . "&offset=");
28 28
 $pager = $page->smarty->fetch("pager.tpl");
29 29
 $page->smarty->assign('pager', $pager);
30 30
 
31
-$page->smarty->assign('animetitle',$aname);
31
+$page->smarty->assign('animetitle', $aname);
32 32
 
33 33
 $anidblist = $AniDB->getAnimeRange($offset, ITEMS_PER_PAGE, $aname);
34
-$page->smarty->assign('anidblist',$anidblist);
34
+$page->smarty->assign('anidblist', $anidblist);
35 35
 
36 36
 $page->content = $page->smarty->fetch('anidb-list.tpl');
37 37
 $page->render();
Please login to merge, or discard this patch.
www/admin/tmux-edit.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 // Set the current action.
12 12
 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view';
13 13
 
14
-switch($action)
14
+switch ($action)
15 15
 {
16 16
 	case 'submit':
17 17
 		$error = "";
@@ -32,31 +32,31 @@  discard block
 block discarded – undo
32 32
 $page->smarty->assign('yesno_ids', array(1, 0));
33 33
 $page->smarty->assign('yesno_names', array('yes', 'no'));
34 34
 
35
-$page->smarty->assign('backfill_ids', array(0,4,2,1));
35
+$page->smarty->assign('backfill_ids', array(0, 4, 2, 1));
36 36
 $page->smarty->assign('backfill_names', array('Disabled', 'Safe', 'All', 'Interval'));
37
-$page->smarty->assign('backfill_group_ids', array(1,2,3,4,5,6));
37
+$page->smarty->assign('backfill_group_ids', array(1, 2, 3, 4, 5, 6));
38 38
 $page->smarty->assign('backfill_group', array('Newest', 'Oldest', 'Alphabetical', 'Alphabetical - Reverse', 'Most Posts', 'Fewest Posts'));
39 39
 $page->smarty->assign('backfill_days', array('Days per Group', 'Safe Backfill day'));
40
-$page->smarty->assign('backfill_days_ids', array(1,2));
41
-$page->smarty->assign('dehash_ids', array(0,1,2,3));
40
+$page->smarty->assign('backfill_days_ids', array(1, 2));
41
+$page->smarty->assign('dehash_ids', array(0, 1, 2, 3));
42 42
 $page->smarty->assign('dehash_names', array('Disabled', 'Decrypt Hashes', 'Predb', 'All'));
43
-$page->smarty->assign('import_ids', array(0,1,2));
43
+$page->smarty->assign('import_ids', array(0, 1, 2));
44 44
 $page->smarty->assign('import_names', array('Disabled', 'Import - Do Not Use Filenames', 'Import - Use Filenames'));
45
-$page->smarty->assign('releases_ids', array(0,1,2));
45
+$page->smarty->assign('releases_ids', array(0, 1, 2));
46 46
 $page->smarty->assign('releases_names', array('Disabled', 'Update Releases', 'Update Releases Threaded'));
47
-$page->smarty->assign('post_ids', array(0,1,2,3));
47
+$page->smarty->assign('post_ids', array(0, 1, 2, 3));
48 48
 $page->smarty->assign('post_names', array('Disabled', 'PostProcess Additional', 'PostProcess NFOs', 'All'));
49 49
 $page->smarty->assign('fix_crap_radio_ids', array('Disabled', 'All', 'Custom'));
50 50
 $page->smarty->assign('fix_crap_radio_names', array('Disabled', 'All', 'Custom'));
51 51
 $page->smarty->assign('fix_crap_check_ids', array('blacklist', 'blfiles', 'executable', 'gibberish', 'hashed', 'installbin', 'passworded', 'passwordurl', 'sample', 'scr', 'short', 'size', 'huge', 'codec'));
52 52
 $page->smarty->assign('fix_crap_check_names', array('blacklist', 'blfiles', 'executable', 'gibberish', 'hashed', 'installbin', 'passworded', 'passwordurl', 'sample', 'scr', 'short', 'size', 'huge', 'codec'));
53
-$page->smarty->assign('sequential_ids', array(0,1,2));
53
+$page->smarty->assign('sequential_ids', array(0, 1, 2));
54 54
 $page->smarty->assign('sequential_names', array('Disabled', 'Basic Sequential', 'Complete Sequential'));
55
-$page->smarty->assign('binaries_ids', array(0,1,2));
55
+$page->smarty->assign('binaries_ids', array(0, 1, 2));
56 56
 $page->smarty->assign('binaries_names', array('Disabled', 'Simple Threaded Update', 'Complete Threaded Update'));
57
-$page->smarty->assign('lookup_reqids_ids', array(0,1,2));
57
+$page->smarty->assign('lookup_reqids_ids', array(0, 1, 2));
58 58
 $page->smarty->assign('lookup_reqids_names', array('Disabled', 'Lookup Request IDs', 'Lookup Request IDs Threaded'));
59
-$page->smarty->assign('predb_ids', array(0,1));
59
+$page->smarty->assign('predb_ids', array(0, 1));
60 60
 $page->smarty->assign('predb_names', array('Disabled', 'Enabled'));
61 61
 
62 62
 
Please login to merge, or discard this patch.
www/admin/ajax_group-edit.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 use nntmux\Groups;
6 6
 
7 7
 $admin = new AdminPage;
8
-$group  = new Groups(['Settings' => $admin->settings]);
8
+$group = new Groups(['Settings' => $admin->settings]);
9 9
 
10 10
 // session_write_close(); allows the admin to use the site while the ajax request is being processed.
11 11
 if (isset($_GET['action']) && $_GET['action'] == "2") {
@@ -33,11 +33,11 @@  discard block
 block discarded – undo
33 33
 } else {
34 34
 	if (isset($_GET['group_id'])) {
35 35
 		$id = (int)$_GET['group_id'];
36
-		if(isset($_GET['group_status'])) {
36
+		if (isset($_GET['group_status'])) {
37 37
 			$status = isset($_GET['group_status']) ? (int)$_GET['group_status'] : 0;
38 38
 			print $group->updateGroupStatus($id, $status);
39 39
 		}
40
-		if(isset($_GET['backfill_status'])) {
40
+		if (isset($_GET['backfill_status'])) {
41 41
 			$status = isset($_GET['backfill_status']) ? (int)$_GET['backfill_status'] : 0;
42 42
 			print $group->updateBackfillStatus($id, $status);
43 43
 		}
Please login to merge, or discard this patch.
www/admin/group-edit.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 // Set the current action.
13 13
 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view';
14 14
 
15
-switch($action) {
15
+switch ($action) {
16 16
 	case 'submit':
17 17
 		if ($_POST["id"] == "") {
18 18
 			// Add a new group.
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 			// Update an existing group.
25 25
 			$groups->update($_POST);
26 26
 		}
27
-		header("Location:".WWW_TOP."/group-list.php");
27
+		header("Location:" . WWW_TOP . "/group-list.php");
28 28
 		break;
29 29
 
30 30
 	case 'view':
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		break;
53 53
 }
54 54
 
55
-$page->smarty->assign('yesno_ids', [1,0]);
55
+$page->smarty->assign('yesno_ids', [1, 0]);
56 56
 $page->smarty->assign('yesno_names', ['Yes', 'No']);
57 57
 
58 58
 $page->content = $page->smarty->fetch('group-edit.tpl');
Please login to merge, or discard this patch.
www/admin/show-list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 use nntmux\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";
Please login to merge, or discard this patch.
www/admin/spotnab-edit.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@  discard block
 block discarded – undo
12 12
 // set the current action
13 13
 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view';
14 14
 
15
-switch($action)
15
+switch ($action)
16 16
 {
17 17
     case 'add':
18 18
     		$page->title = "Spotnab Source Add";
19 19
 				$source = [];
20 20
 				$source["description"] = '';
21
-				$row = $spotnab->getDefaultValue('spotnabsources','username');
21
+				$row = $spotnab->getDefaultValue('spotnabsources', 'username');
22 22
 				$source["username"] = $row[0]["Default"];
23
-				$row = $spotnab->getDefaultValue('spotnabsources','useremail');
23
+				$row = $spotnab->getDefaultValue('spotnabsources', 'useremail');
24 24
 				$source["useremail"] = $row[0]["Default"];
25
-				$row = $spotnab->getDefaultValue('spotnabsources','usenetgroup');
25
+				$row = $spotnab->getDefaultValue('spotnabsources', 'usenetgroup');
26 26
 				$source["usenetgroup"] = $row[0]["Default"];
27 27
 				$source["publickey"] = '';
28 28
 				$page->smarty->assign('source', $source);
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
 	    	if ($_POST["id"] == "")
32 32
 	    	{
33 33
 					$ret = $spotnab->addSource($_POST['description'], $_POST['username'], $_POST['useremail'], $_POST['usenetgroup'], $_POST['publickey']);
34
-					header("Location:".WWW_TOP."/spotnab-list.php");
34
+					header("Location:" . WWW_TOP . "/spotnab-list.php");
35 35
 	    	}
36 36
 	    	else
37 37
 	    	{
38
-					$ret = $spotnab->updateSource($_POST['id'],$_POST['description'], $_POST['username'], $_POST['useremail'], $_POST['usenetgroup'], $_POST['publickey']);
39
-					header("Location:".WWW_TOP."/spotnab-list.php");
38
+					$ret = $spotnab->updateSource($_POST['id'], $_POST['description'], $_POST['username'], $_POST['useremail'], $_POST['usenetgroup'], $_POST['publickey']);
39
+					header("Location:" . WWW_TOP . "/spotnab-list.php");
40 40
 			}
41 41
       		break;
42 42
     case 'view':
Please login to merge, or discard this patch.
www/admin/book-edit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,16 +23,16 @@  discard block
 block discarded – undo
23 23
 		$page->show404();
24 24
 	}
25 25
 
26
-	switch($action)
26
+	switch ($action)
27 27
 	{
28 28
 	    case 'submit':
29
-	    	$coverLoc = WWW_DIR."covers/book/".$id.'.jpg';
29
+	    	$coverLoc = WWW_DIR . "covers/book/" . $id . '.jpg';
30 30
 
31
-			if($_FILES['cover']['size'] > 0)
31
+			if ($_FILES['cover']['size'] > 0)
32 32
 			{
33 33
 				$tmpName = $_FILES['cover']['tmp_name'];
34 34
 				$file_info = getimagesize($tmpName);
35
-				if(!empty($file_info))
35
+				if (!empty($file_info))
36 36
 				{
37 37
 					move_uploaded_file($_FILES['cover']['tmp_name'], $coverLoc);
38 38
 				}
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 			$_POST['publishdate'] = (empty($_POST['publishdate']) || !strtotime($_POST['publishdate'])) ? $con['publishdate'] : date("Y-m-d H:i:s", strtotime($_POST['publishdate']));
43 43
 			$book->update($id, $_POST["title"], $_POST['asin'], $_POST['url'], $_POST["author"], $_POST["publisher"], $_POST["publishdate"], $_POST["cover"]);
44 44
 
45
-			header("Location:".WWW_TOP."/book-list.php");
45
+			header("Location:" . WWW_TOP . "/book-list.php");
46 46
 	        die();
47 47
 	    break;
48 48
 	    case 'view':
Please login to merge, or discard this patch.
www/admin/group-list-active.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,19 +17,19 @@
 block discarded – undo
17 17
 $offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
18 18
 $groupname = (isset($_REQUEST['groupname']) && !empty($_REQUEST['groupname'])) ? $_REQUEST['groupname'] : '';
19 19
 
20
-$page->smarty->assign('groupname',$groupname);
21
-$page->smarty->assign('pagertotalitems',$groupcount);
22
-$page->smarty->assign('pageroffset',$offset);
23
-$page->smarty->assign('pageritemsperpage',ITEMS_PER_PAGE);
20
+$page->smarty->assign('groupname', $groupname);
21
+$page->smarty->assign('pagertotalitems', $groupcount);
22
+$page->smarty->assign('pageroffset', $offset);
23
+$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
24 24
 
25
-$groupsearch = ($gname != "") ? 'groupname='.$gname.'&' : '';
26
-$page->smarty->assign('pagerquerybase', WWW_TOP."/group-list-active.php?".$groupsearch."offset=");
25
+$groupsearch = ($gname != "") ? 'groupname=' . $gname . '&' : '';
26
+$page->smarty->assign('pagerquerybase', WWW_TOP . "/group-list-active.php?" . $groupsearch . "offset=");
27 27
 $pager = $page->smarty->fetch("pager.tpl");
28 28
 $page->smarty->assign('pager', $pager);
29 29
 
30 30
 $grouplist = $groups->getRange($offset, ITEMS_PER_PAGE, $gname, 1);
31 31
 
32
-$page->smarty->assign('grouplist',$grouplist);
32
+$page->smarty->assign('grouplist', $grouplist);
33 33
 
34 34
 $page->title = "Group List";
35 35
 
Please login to merge, or discard this patch.
www/admin/movie-add.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 	$movCheck = $movie->getMovieInfo($id);
18 18
 	if (!$movCheck || (isset($_REQUEST['update']) && $_REQUEST['update'] == 1))
19 19
 	{
20
-		if($movie->updateMovieInfo($id)) {
21
-			header("Location:".WWW_TOP."/movie-list.php");
20
+		if ($movie->updateMovieInfo($id)) {
21
+			header("Location:" . WWW_TOP . "/movie-list.php");
22 22
 			die();
23 23
 		}
24 24
 	}
Please login to merge, or discard this patch.