@@ -17,8 +17,8 @@ |
||
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 | } |
@@ -15,8 +15,7 @@ |
||
15 | 15 | $id = $_REQUEST['id']; |
16 | 16 | |
17 | 17 | $movCheck = $movie->getMovieInfo($id); |
18 | - if (!$movCheck || (isset($_REQUEST['update']) && $_REQUEST['update'] == 1)) |
|
19 | - { |
|
18 | + if (!$movCheck || (isset($_REQUEST['update']) && $_REQUEST['update'] == 1)) { |
|
20 | 19 | if($movie->updateMovieInfo($id)) { |
21 | 20 | header("Location:".WWW_TOP."/movie-list.php"); |
22 | 21 | die(); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | // set the current action |
11 | 11 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view'; |
12 | 12 | |
13 | -switch($action) |
|
13 | +switch ($action) |
|
14 | 14 | { |
15 | 15 | case 'submit': |
16 | 16 | if (isset($_POST['groupfilter']) && !empty($_POST['groupfilter'])) { |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | break; |
24 | 24 | } |
25 | 25 | |
26 | -$page->smarty->assign('groupmsglist',$msgs); |
|
27 | -$page->smarty->assign('yesno_ids', array(1,0)); |
|
28 | -$page->smarty->assign('yesno_names', array( 'Yes', 'No')); |
|
26 | +$page->smarty->assign('groupmsglist', $msgs); |
|
27 | +$page->smarty->assign('yesno_ids', array(1, 0)); |
|
28 | +$page->smarty->assign('yesno_names', array('Yes', 'No')); |
|
29 | 29 | |
30 | 30 | $page->title = "Bulk Add Newsgroups"; |
31 | 31 | $page->content = $page->smarty->fetch('group-bulk.tpl'); |
@@ -10,8 +10,7 @@ |
||
10 | 10 | // set the current action |
11 | 11 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view'; |
12 | 12 | |
13 | -switch($action) |
|
14 | -{ |
|
13 | +switch($action) { |
|
15 | 14 | case 'submit': |
16 | 15 | if (isset($_POST['groupfilter']) && !empty($_POST['groupfilter'])) { |
17 | 16 | $groups = new Groups; |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | |
26 | 26 | switch($action) |
27 | 27 | { |
28 | - case 'submit': |
|
29 | - $coverLoc = WWW_DIR."covers/console/".$id.'.jpg'; |
|
28 | + case 'submit': |
|
29 | + $coverLoc = WWW_DIR."covers/console/".$id.'.jpg'; |
|
30 | 30 | |
31 | 31 | if($_FILES['cover']['size'] > 0) |
32 | 32 | { |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | $console->update($id, $_POST["title"], $_POST['asin'], $_POST['url'], $_POST["salesrank"], $_POST["platform"], $_POST["publisher"], $_POST["releasedate"], $_POST["esrb"], $_POST["cover"], $_POST["genre"]); |
46 | 46 | |
47 | 47 | header("Location:".WWW_TOP."/console-list.php"); |
48 | - die(); |
|
49 | - break; |
|
50 | - case 'view': |
|
51 | - default: |
|
48 | + die(); |
|
49 | + break; |
|
50 | + case 'view': |
|
51 | + default: |
|
52 | 52 | $page->title = "Console Edit"; |
53 | 53 | $page->smarty->assign('console', $con); |
54 | 54 | $page->smarty->assign('genres', $gen->getGenres(Genres::CONSOLE_TYPE)); |
@@ -23,16 +23,16 @@ discard block |
||
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/console/".$id.'.jpg'; |
|
29 | + $coverLoc = WWW_DIR . "covers/console/" . $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 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $console->update($id, $_POST["title"], $_POST['asin'], $_POST['url'], $_POST["salesrank"], $_POST["platform"], $_POST["publisher"], $_POST["releasedate"], $_POST["esrb"], $_POST["cover"], $_POST["genre"]); |
46 | 46 | |
47 | - header("Location:".WWW_TOP."/console-list.php"); |
|
47 | + header("Location:" . WWW_TOP . "/console-list.php"); |
|
48 | 48 | die(); |
49 | 49 | break; |
50 | 50 | case 'view': |
@@ -14,8 +14,7 @@ discard block |
||
14 | 14 | // set the current action |
15 | 15 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view'; |
16 | 16 | |
17 | -if (isset($_REQUEST["id"])) |
|
18 | -{ |
|
17 | +if (isset($_REQUEST["id"])) { |
|
19 | 18 | $id = $_REQUEST["id"]; |
20 | 19 | $mus = $music->getMusicInfo($id); |
21 | 20 | |
@@ -23,17 +22,14 @@ discard block |
||
23 | 22 | $page->show404(); |
24 | 23 | } |
25 | 24 | |
26 | - switch($action) |
|
27 | - { |
|
25 | + switch($action) { |
|
28 | 26 | case 'submit': |
29 | 27 | $coverLoc = WWW_DIR."covers/music/".$id.'.jpg'; |
30 | 28 | |
31 | - if($_FILES['cover']['size'] > 0) |
|
32 | - { |
|
29 | + if($_FILES['cover']['size'] > 0) { |
|
33 | 30 | $tmpName = $_FILES['cover']['tmp_name']; |
34 | 31 | $file_info = getimagesize($tmpName); |
35 | - if(!empty($file_info)) |
|
36 | - { |
|
32 | + if(!empty($file_info)) { |
|
37 | 33 | move_uploaded_file($_FILES['cover']['tmp_name'], $coverLoc); |
38 | 34 | } |
39 | 35 | } |
@@ -12,16 +12,16 @@ |
||
12 | 12 | $gamecount = $game->getCount(); |
13 | 13 | |
14 | 14 | $offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0; |
15 | -$page->smarty->assign('pagertotalitems',$gamecount); |
|
16 | -$page->smarty->assign('pageroffset',$offset); |
|
17 | -$page->smarty->assign('pageritemsperpage',ITEMS_PER_PAGE); |
|
18 | -$page->smarty->assign('pagerquerybase', WWW_TOP."/game-list.php?offset="); |
|
15 | +$page->smarty->assign('pagertotalitems', $gamecount); |
|
16 | +$page->smarty->assign('pageroffset', $offset); |
|
17 | +$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE); |
|
18 | +$page->smarty->assign('pagerquerybase', WWW_TOP . "/game-list.php?offset="); |
|
19 | 19 | $pager = $page->smarty->fetch("pager.tpl"); |
20 | 20 | $page->smarty->assign('pager', $pager); |
21 | 21 | |
22 | 22 | $gamelist = $game->getRange($offset, ITEMS_PER_PAGE); |
23 | 23 | |
24 | -$page->smarty->assign('gamelist',$gamelist); |
|
24 | +$page->smarty->assign('gamelist', $gamelist); |
|
25 | 25 | |
26 | 26 | $page->content = $page->smarty->fetch('game-list.tpl'); |
27 | 27 | $page->render(); |
@@ -8,11 +8,11 @@ |
||
8 | 8 | $admin = new AdminPage; |
9 | 9 | $s = new Sites(); |
10 | 10 | |
11 | -if (isset($_GET['action'])) |
|
12 | -{ |
|
13 | - if ($_GET['action'] == "1") |
|
14 | - $s->updateItem("showadminwelcome", 1); |
|
15 | - else |
|
16 | - $s->updateItem("showadminwelcome", 0); |
|
17 | -} |
|
11 | +if (isset($_GET['action'])) { |
|
12 | + if ($_GET['action'] == "1") { |
|
13 | + $s->updateItem("showadminwelcome", 1); |
|
14 | + } else { |
|
15 | + $s->updateItem("showadminwelcome", 0); |
|
16 | + } |
|
17 | + } |
|
18 | 18 |
@@ -14,10 +14,10 @@ |
||
14 | 14 | $frelcount = $failed->getCount(); |
15 | 15 | |
16 | 16 | $offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0; |
17 | -$page->smarty->assign('pagertotalitems',$frelcount); |
|
18 | -$page->smarty->assign('pageroffset',$offset); |
|
19 | -$page->smarty->assign('pageritemsperpage',ITEMS_PER_PAGE); |
|
20 | -$page->smarty->assign('pagerquerybase', WWW_TOP."/failrel-list.php?offset="); |
|
17 | +$page->smarty->assign('pagertotalitems', $frelcount); |
|
18 | +$page->smarty->assign('pageroffset', $offset); |
|
19 | +$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE); |
|
20 | +$page->smarty->assign('pagerquerybase', WWW_TOP . "/failrel-list.php?offset="); |
|
21 | 21 | $pager = $page->smarty->fetch("pager.tpl"); |
22 | 22 | $page->smarty->assign('pager', $pager); |
23 | 23 |
@@ -14,15 +14,15 @@ |
||
14 | 14 | $releasecount = $releases->getCount(); |
15 | 15 | |
16 | 16 | $offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0; |
17 | -$page->smarty->assign('pagertotalitems',$releasecount); |
|
18 | -$page->smarty->assign('pageroffset',$offset); |
|
19 | -$page->smarty->assign('pageritemsperpage',ITEMS_PER_PAGE); |
|
20 | -$page->smarty->assign('pagerquerybase', WWW_TOP."/release-list.php?offset="); |
|
17 | +$page->smarty->assign('pagertotalitems', $releasecount); |
|
18 | +$page->smarty->assign('pageroffset', $offset); |
|
19 | +$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE); |
|
20 | +$page->smarty->assign('pagerquerybase', WWW_TOP . "/release-list.php?offset="); |
|
21 | 21 | $pager = $page->smarty->fetch("pager.tpl"); |
22 | 22 | $page->smarty->assign('pager', $pager); |
23 | 23 | |
24 | 24 | $releaselist = $releases->getRange($offset, ITEMS_PER_PAGE); |
25 | -$page->smarty->assign('releaselist',$releaselist); |
|
25 | +$page->smarty->assign('releaselist', $releaselist); |
|
26 | 26 | |
27 | 27 | $page->content = $page->smarty->fetch('release-list.tpl'); |
28 | 28 | $page->render(); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | // set the current action |
18 | 18 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view'; |
19 | 19 | |
20 | -switch($action) |
|
20 | +switch ($action) |
|
21 | 21 | { |
22 | 22 | case 'submit': |
23 | 23 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | { |
53 | 53 | $site = $ret; |
54 | 54 | $returnid = $site['id']; |
55 | - header("Location:".WWW_TOP."/site-edit.php?id=".$returnid); |
|
55 | + header("Location:" . WWW_TOP . "/site-edit.php?id=" . $returnid); |
|
56 | 56 | } |
57 | 57 | else |
58 | 58 | { |
@@ -72,11 +72,11 @@ discard block |
||
72 | 72 | break; |
73 | 73 | } |
74 | 74 | |
75 | -$page->smarty->assign('yesno_ids', array(1,0)); |
|
76 | -$page->smarty->assign('yesno_names', array( 'Yes', 'No')); |
|
75 | +$page->smarty->assign('yesno_ids', array(1, 0)); |
|
76 | +$page->smarty->assign('yesno_names', array('Yes', 'No')); |
|
77 | 77 | |
78 | -$page->smarty->assign('passwd_ids', array(1,0)); |
|
79 | -$page->smarty->assign('passwd_names', array( 'Deep (requires unrar)', 'None')); |
|
78 | +$page->smarty->assign('passwd_ids', array(1, 0)); |
|
79 | +$page->smarty->assign('passwd_names', array('Deep (requires unrar)', 'None')); |
|
80 | 80 | |
81 | 81 | /*0 = English, 2 = Danish, 3 = French, 1 = German*/ |
82 | 82 | $page->smarty->assign('langlist_ids', [0, 2, 3, 1]); |
@@ -94,22 +94,22 @@ discard block |
||
94 | 94 | ]); |
95 | 95 | |
96 | 96 | $page->smarty->assign('sabintegrationtype_ids', array(SABnzbd::INTEGRATION_TYPE_USER, SABnzbd::INTEGRATION_TYPE_SITEWIDE, SABnzbd::INTEGRATION_TYPE_NONE)); |
97 | -$page->smarty->assign('sabintegrationtype_names', array( 'User', 'Site-wide', 'None (Off)')); |
|
97 | +$page->smarty->assign('sabintegrationtype_names', array('User', 'Site-wide', 'None (Off)')); |
|
98 | 98 | |
99 | -$page->smarty->assign('sabapikeytype_ids', array(SABnzbd::API_TYPE_NZB,SABnzbd::API_TYPE_FULL)); |
|
100 | -$page->smarty->assign('sabapikeytype_names', array( 'Nzb Api Key', 'Full Api Key')); |
|
99 | +$page->smarty->assign('sabapikeytype_ids', array(SABnzbd::API_TYPE_NZB, SABnzbd::API_TYPE_FULL)); |
|
100 | +$page->smarty->assign('sabapikeytype_names', array('Nzb Api Key', 'Full Api Key')); |
|
101 | 101 | |
102 | 102 | $page->smarty->assign('sabpriority_ids', array(SABnzbd::PRIORITY_FORCE, SABnzbd::PRIORITY_HIGH, SABnzbd::PRIORITY_NORMAL, SABnzbd::PRIORITY_LOW)); |
103 | -$page->smarty->assign('sabpriority_names', array( 'Force', 'High', 'Normal', 'Low')); |
|
103 | +$page->smarty->assign('sabpriority_names', array('Force', 'High', 'Normal', 'Low')); |
|
104 | 104 | |
105 | -$page->smarty->assign('curlproxytype_names', array( '', 'HTTP', 'SOCKS5')); |
|
105 | +$page->smarty->assign('curlproxytype_names', array('', 'HTTP', 'SOCKS5')); |
|
106 | 106 | |
107 | -$page->smarty->assign('newgroupscan_names', array('Days','Posts')); |
|
107 | +$page->smarty->assign('newgroupscan_names', array('Days', 'Posts')); |
|
108 | 108 | |
109 | 109 | $page->smarty->assign('registerstatus_ids', array(Settings::REGISTER_STATUS_API_ONLY, Settings::REGISTER_STATUS_OPEN, Settings::REGISTER_STATUS_INVITE, Settings::REGISTER_STATUS_CLOSED)); |
110 | 110 | $page->smarty->assign('registerstatus_names', array('API Only', 'Open', 'Invite', 'Closed')); |
111 | 111 | |
112 | -$page->smarty->assign('passworded_ids', array(0,1,2)); |
|
112 | +$page->smarty->assign('passworded_ids', array(0, 1, 2)); |
|
113 | 113 | $page->smarty->assign('passworded_names', [ |
114 | 114 | 'Hide passworded or potentially passworded (*yes)', |
115 | 115 | 'Hide passworded or potentially passworded (*no)', |
@@ -122,25 +122,25 @@ discard block |
||
122 | 122 | $page->smarty->assign('lookuplanguage_iso', array('en', 'de', 'es', 'fr', 'it', 'nl', 'pt', 'sv')); |
123 | 123 | $page->smarty->assign('lookuplanguage_names', array('English', 'Deutsch', 'Español', 'Français', 'Italiano', 'Nederlands', 'Português', 'Svenska')); |
124 | 124 | |
125 | -$page->smarty->assign('imdb_urls', array(0,1)); |
|
125 | +$page->smarty->assign('imdb_urls', array(0, 1)); |
|
126 | 126 | $page->smarty->assign('imdburl_names', array('imdb.com', 'akas.imdb.com')); |
127 | 127 | |
128 | -$page->smarty->assign('lookupbooks_ids', [0,1,2]); |
|
128 | +$page->smarty->assign('lookupbooks_ids', [0, 1, 2]); |
|
129 | 129 | $page->smarty->assign('lookupbooks_names', ['Disabled', 'Lookup All Books', 'Lookup Renamed Books']); |
130 | 130 | |
131 | -$page->smarty->assign('lookupgames_ids', [0,1,2]); |
|
131 | +$page->smarty->assign('lookupgames_ids', [0, 1, 2]); |
|
132 | 132 | $page->smarty->assign('lookupgames_names', ['Disabled', 'Lookup All Consoles', 'Lookup Renamed Consoles']); |
133 | 133 | |
134 | -$page->smarty->assign('lookupmusic_ids', [0,1,2]); |
|
134 | +$page->smarty->assign('lookupmusic_ids', [0, 1, 2]); |
|
135 | 135 | $page->smarty->assign('lookupmusic_names', ['Disabled', 'Lookup All Music', 'Lookup Renamed Music']); |
136 | 136 | |
137 | -$page->smarty->assign('lookupmovies_ids', [0,1,2]); |
|
137 | +$page->smarty->assign('lookupmovies_ids', [0, 1, 2]); |
|
138 | 138 | $page->smarty->assign('lookupmovies_names', ['Disabled', 'Lookup All Movies', 'Lookup Renamed Movies']); |
139 | 139 | |
140 | -$page->smarty->assign('lookuptv_ids', [0,1,2]); |
|
140 | +$page->smarty->assign('lookuptv_ids', [0, 1, 2]); |
|
141 | 141 | $page->smarty->assign('lookuptv_names', ['Disabled', 'Lookup All TV', 'Lookup Renamed TV']); |
142 | 142 | |
143 | -$page->smarty->assign('lookup_reqids_ids', array(0,1,2)); |
|
143 | +$page->smarty->assign('lookup_reqids_ids', array(0, 1, 2)); |
|
144 | 144 | $page->smarty->assign('lookup_reqids_names', array('Disabled', 'Lookup Request IDs', 'Lookup Request IDs Threaded')); |
145 | 145 | |
146 | 146 | $page->smarty->assign('coversPath', NN_COVERS); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | |
172 | 172 | $page->smarty->assign('themelist', Utility::getThemesList()); |
173 | 173 | |
174 | -if (strpos(NNTP_SERVER, "astra")===false) |
|
174 | +if (strpos(NNTP_SERVER, "astra") === false) |
|
175 | 175 | $page->smarty->assign('compress_headers_warning', "compress_headers_warning"); |
176 | 176 | |
177 | 177 | $page->content = $page->smarty->fetch('site-edit.tpl'); |
@@ -17,8 +17,7 @@ discard block |
||
17 | 17 | // set the current action |
18 | 18 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view'; |
19 | 19 | |
20 | -switch($action) |
|
21 | -{ |
|
20 | +switch($action) { |
|
22 | 21 | case 'submit': |
23 | 22 | |
24 | 23 | if (!empty($_POST['book_reqids'])) { |
@@ -28,34 +27,31 @@ discard block |
||
28 | 27 | } |
29 | 28 | $error = ""; |
30 | 29 | $ret = $page->settings->update($_POST); |
31 | - if (is_int($ret)) |
|
32 | - { |
|
33 | - if ($ret == Settings::ERR_BADUNRARPATH) |
|
34 | - $error = "The unrar path does not point to a valid binary"; |
|
35 | - elseif ($ret == Settings::ERR_BADFFMPEGPATH) |
|
36 | - $error = "The ffmpeg path does not point to a valid binary"; |
|
37 | - elseif ($ret == Settings::ERR_BADMEDIAINFOPATH) |
|
38 | - $error = "The mediainfo path does not point to a valid binary"; |
|
39 | - elseif ($ret == Settings::ERR_BADNZBPATH) |
|
40 | - $error = "The nzb path does not point to a valid directory"; |
|
41 | - elseif ($ret == Settings::ERR_DEEPNOUNRAR) |
|
42 | - $error = "Deep password check requires a valid path to unrar binary"; |
|
43 | - elseif ($ret == Settings::ERR_BADTMPUNRARPATH) |
|
44 | - $error = "The temp unrar path is not a valid directory"; |
|
45 | - elseif ($ret == Sites::ERR_BADLAMEPATH) |
|
46 | - $error = "The lame path is not a valid directory"; |
|
47 | - elseif ($ret == Sites::ERR_SABCOMPLETEPATH) |
|
48 | - $error = "The sab complete path is not a valid directory"; |
|
30 | + if (is_int($ret)) { |
|
31 | + if ($ret == Settings::ERR_BADUNRARPATH) { |
|
32 | + $error = "The unrar path does not point to a valid binary"; |
|
33 | + } elseif ($ret == Settings::ERR_BADFFMPEGPATH) { |
|
34 | + $error = "The ffmpeg path does not point to a valid binary"; |
|
35 | + } elseif ($ret == Settings::ERR_BADMEDIAINFOPATH) { |
|
36 | + $error = "The mediainfo path does not point to a valid binary"; |
|
37 | + } elseif ($ret == Settings::ERR_BADNZBPATH) { |
|
38 | + $error = "The nzb path does not point to a valid directory"; |
|
39 | + } elseif ($ret == Settings::ERR_DEEPNOUNRAR) { |
|
40 | + $error = "Deep password check requires a valid path to unrar binary"; |
|
41 | + } elseif ($ret == Settings::ERR_BADTMPUNRARPATH) { |
|
42 | + $error = "The temp unrar path is not a valid directory"; |
|
43 | + } elseif ($ret == Sites::ERR_BADLAMEPATH) { |
|
44 | + $error = "The lame path is not a valid directory"; |
|
45 | + } elseif ($ret == Sites::ERR_SABCOMPLETEPATH) { |
|
46 | + $error = "The sab complete path is not a valid directory"; |
|
47 | + } |
|
49 | 48 | } |
50 | 49 | |
51 | - if ($error == "") |
|
52 | - { |
|
50 | + if ($error == "") { |
|
53 | 51 | $site = $ret; |
54 | 52 | $returnid = $site['id']; |
55 | 53 | header("Location:".WWW_TOP."/site-edit.php?id=".$returnid); |
56 | - } |
|
57 | - else |
|
58 | - { |
|
54 | + } else { |
|
59 | 55 | $page->smarty->assign('error', $error); |
60 | 56 | $site = $sites->row2Object($_POST); |
61 | 57 | $page->smarty->assign('site', $site); |
@@ -151,8 +147,7 @@ discard block |
||
151 | 147 | // setup the display lists for these categories, this could have been static, but then if names changed they would be wrong |
152 | 148 | $book_reqids_ids = []; |
153 | 149 | $book_reqids_names = []; |
154 | -foreach ($result as $bookcategory) |
|
155 | -{ |
|
150 | +foreach ($result as $bookcategory) { |
|
156 | 151 | $book_reqids_ids[] = $bookcategory["id"]; |
157 | 152 | $book_reqids_names[] = $bookcategory["title"]; |
158 | 153 | } |
@@ -171,8 +166,9 @@ discard block |
||
171 | 166 | |
172 | 167 | $page->smarty->assign('themelist', Utility::getThemesList()); |
173 | 168 | |
174 | -if (strpos(NNTP_SERVER, "astra")===false) |
|
169 | +if (strpos(NNTP_SERVER, "astra")===false) { |
|
175 | 170 | $page->smarty->assign('compress_headers_warning', "compress_headers_warning"); |
171 | +} |
|
176 | 172 | |
177 | 173 | $page->content = $page->smarty->fetch('site-edit.tpl'); |
178 | 174 | $page->render(); |
@@ -46,7 +46,8 @@ |
||
46 | 46 | $page->content = $page->smarty->fetch('user-list.tpl'); |
47 | 47 | $page->render(); |
48 | 48 | |
49 | -function checkREQUEST($param) { |
|
49 | +function checkREQUEST($param) |
|
50 | +{ |
|
50 | 51 | global $uSearch, $variables; |
51 | 52 | if (isset($_REQUEST[$param])) { |
52 | 53 | $variables[$param] = $_REQUEST[$param]; |