- - ↑_ 5.4.1. All comic page scans must have zero-padded numbers and may be archived in .pdf, .rar (.cbr) or .zip (.cbz) files. The contents of the archive or directory must be image files (either JPEG or PNG), which are named sequentially so that they display in the correct order by comic reading software such as CDisplay and FFView. The page numbers and books must be zero-padded for this same reason. For example, this constitutes good numbering: file01.jpg, file02.jpg,... file30.jpg; and this constitutes bad numbering: file1.jpg, file2.jpg, file3.jpg,... file30.jpg.
+ - ↑_ 5.4.1. All comic page scans must have zero-padded numbers and may be archived in .pdf, .rar (.cbr) or .zip (.cbz) files. The contents of the archive or directory must be image files (either JPEG or PNG), which are named sequentially so that they display in the correct order by comic reading software such as CDisplay and FFView. The page numbers and books must be zero-padded for this same reason. For example, this constitutes good numbering: file01.jpg, file02.jpg,... file30.jpg; and this constitutes bad numbering: file1.jpg, file2.jpg, file3.jpg,... file30.jpg.
- ↑_ 5.4.2. Comic book archive file names must be informative. The archive names should include at least the book's name (e.g., "Uncanny X-Men"), the volume (if there's more than one volume for that book), and the issue number. Including the cover year, scanner information (to differentiate between different scans of the same book), and the issue's title (e.g., "Days of Future Past") is strongly recommended. For example: Buffy the Vampire Slayer Season Eight - #01 - 2007 - The Long Way Home Part 1.cbr and Amazing Spiderman - Volume 1 - #10 - 1964.cbz.
- ↑_ 5.4.3. The directory name should uniquely identify its contents. You should include the title, as well as the issue numbers included (if applicable). The title, volume, cover year, and story name can often be found in small type at the bottom of the page opposite the inside cover. Directories should be named with the title of the series and the issue numbers. For example: ../Buffy the Vampire Slayer Season Eight - #01-#08/ and ../Amazing Spiderman - Volume 1 - #10-#20/.
diff --git a/sections/schedule/index.php b/sections/schedule/index.php
index 42bfae25..4a902229 100644
--- a/sections/schedule/index.php
+++ b/sections/schedule/index.php
@@ -319,7 +319,7 @@ function next_hour() {
//------------- Lower Login Attempts ------------------------------------//
$DB->query("UPDATE login_attempts SET Attempts=Attempts-1 WHERE Attempts>0");
- $DB->query("DELETE FROM login_attempts WHERE LastAttempt<'".time_minus(3600*24*90)."'");
+ $DB->query("DELETE FROM login_attempts WHERE LastAttempt<'".time_minus(3600 * 24 * 90)."'");
//------------- Remove expired warnings ---------------------------------//
$DB->query("SELECT UserID FROM users_info WHERE Warned<'$sqltime'");
@@ -520,23 +520,25 @@ function next_hour() {
// Put user on ratio watch if he doesn't meet the standards
sleep(10);
- $DB->query("SELECT m.ID,
- m.Downloaded
- FROM users_info AS i
- JOIN users_main AS m ON m.ID=i.UserID
- WHERE m.Uploaded/m.Downloaded < m.RequiredRatio
- AND i.RatioWatchEnds='0000-00-00 00:00:00'
- AND m.Enabled='1'
- AND m.can_leech='1'");
+ $DB->query("
+ SELECT m.ID,
+ m.Downloaded
+ FROM users_info AS i
+ JOIN users_main AS m ON m.ID=i.UserID
+ WHERE m.Uploaded/m.Downloaded < m.RequiredRatio
+ AND i.RatioWatchEnds='0000-00-00 00:00:00'
+ AND m.Enabled='1'
+ AND m.can_leech='1'");
$OnRatioWatch = $DB->collect('ID');
- if (count($OnRatioWatch)>0) {
- $DB->query("UPDATE users_info AS i
- JOIN users_main AS m ON m.ID=i.UserID
- SET i.RatioWatchEnds='".time_plus(60 * 60 * 24 * 14)."',
- i.RatioWatchTimes = i.RatioWatchTimes+1,
- i.RatioWatchDownload = m.Downloaded
- WHERE m.ID IN(".implode(",", $OnRatioWatch).")");
+ if (count($OnRatioWatch) > 0) {
+ $DB->query("
+ UPDATE users_info AS i
+ JOIN users_main AS m ON m.ID=i.UserID
+ SET i.RatioWatchEnds='".time_plus(60 * 60 * 24 * 14)."',
+ i.RatioWatchTimes = i.RatioWatchTimes+1,
+ i.RatioWatchDownload = m.Downloaded
+ WHERE m.ID IN(".implode(',', $OnRatioWatch).')');
}
foreach ($OnRatioWatch as $UserID) {
@@ -551,17 +553,21 @@ function next_hour() {
//------------- Rescore 0.95 logs of disabled users
- $LogQuery = $DB->query("SELECT DISTINCT t.ID
- FROM torrents AS t
- JOIN users_main AS um ON t.UserID = um.ID
- JOIN torrents_logs_new AS tl ON tl.TorrentID = t.ID
- WHERE um.Enabled = '2' and t.HasLog = '1' and LogScore = 100 and Log LIKE 'EAC extraction logfile from%'");
+ $LogQuery = $DB->query("
+ SELECT DISTINCT t.ID
+ FROM torrents AS t
+ JOIN users_main AS um ON t.UserID = um.ID
+ JOIN torrents_logs_new AS tl ON tl.TorrentID = t.ID
+ WHERE um.Enabled = '2'
+ AND t.HasLog = '1'
+ AND LogScore = 100
+ AND Log LIKE 'EAC extraction logfile from%'");
$Details = array();
$Details[] = "Ripped with EAC v0.95, -1 point [1]";
$Details = serialize($Details);
while (list($TorrentID) = $DB->next_record()) {
$DB->query("UPDATE torrents SET LogScore = 99 WHERE ID = ".$TorrentID);
- $DB->query("UPDATE torrents_logs_new SET Score = 99, Details = '".$Details."' WHERE TorrentID = ".$TorrentID);
+ $DB->query("UPDATE torrents_logs_new SET Score = 99, Details = '$Details' WHERE TorrentID = ".$TorrentID);
}
sleep(5);
@@ -569,21 +575,23 @@ function next_hour() {
//------------- Disable downloading ability of users on ratio watch
- $UserQuery = $DB->query("SELECT ID, torrent_pass
- FROM users_info AS i
- JOIN users_main AS m ON m.ID=i.UserID
- WHERE i.RatioWatchEnds!='0000-00-00 00:00:00'
- AND i.RatioWatchEnds<'$sqltime'
- AND m.Enabled='1'
- AND m.can_leech!='0'");
+ $UserQuery = $DB->query("
+ SELECT ID, torrent_pass
+ FROM users_info AS i
+ JOIN users_main AS m ON m.ID=i.UserID
+ WHERE i.RatioWatchEnds!='0000-00-00 00:00:00'
+ AND i.RatioWatchEnds<'$sqltime'
+ AND m.Enabled='1'
+ AND m.can_leech!='0'");
$UserIDs = $DB->collect('ID');
if (count($UserIDs) > 0) {
- $DB->query("UPDATE users_info AS i
- JOIN users_main AS m ON m.ID=i.UserID
- SET m.can_leech='0',
- i.AdminComment=CONCAT('$sqltime - Leeching ability disabled by ratio watch system - required ratio: ', m.RequiredRatio,'', i.AdminComment)
- WHERE m.ID IN(".implode(',',$UserIDs).")");
+ $DB->query("
+ UPDATE users_info AS i
+ JOIN users_main AS m ON m.ID=i.UserID
+ SET m.can_leech='0',
+ i.AdminComment=CONCAT('$sqltime - Leeching ability disabled by ratio watch system - required ratio: ', m.RequiredRatio,'', i.AdminComment)
+ WHERE m.ID IN(".implode(',',$UserIDs).")");
$DB->query("DELETE FROM users_torrent_history WHERE UserID IN (".implode(',',$UserIDs).")");
diff --git a/sections/tools/index.php b/sections/tools/index.php
index 178cae92..26768799 100644
--- a/sections/tools/index.php
+++ b/sections/tools/index.php
@@ -97,15 +97,15 @@
break;
case 'email_blacklist':
- include('managers/eb.php');
+ include('managers/email_blacklist.php');
break;
- case 'eb_alter':
- include('managers/eb_alter.php');
+ case 'email_blacklist_alter':
+ include('managers/email_blacklist_alter.php');
break;
- case 'eb_search':
- include('managers/eb_search.php');
+ case 'email_blacklist_search':
+ include('managers/email_blacklist_search.php');
break;
case 'dnu':
@@ -237,25 +237,30 @@
if (!$Err) {
if (!is_numeric($_REQUEST['id'])) {
- $DB->query("INSERT INTO permissions (Level,Name,Secondary,PermittedForums,`Values`,DisplayStaff)
- VALUES ('".db_string($Level)."',
- '".db_string($Name)."',
- ".$Secondary.",
- '".db_string($Forums)."',
- '".db_string(serialize($Values))."',
- '".db_string($DisplayStaff)."')");
+ $DB->query("
+ INSERT INTO permissions (Level,Name,Secondary,PermittedForums,`Values`,DisplayStaff)
+ VALUES ('".db_string($Level)."',
+ '".db_string($Name)."',
+ $Secondary,
+ '".db_string($Forums)."',
+ '".db_string(serialize($Values))."',
+ '".db_string($DisplayStaff)."')");
} else {
- $DB->query("UPDATE permissions
- SET Level='".db_string($Level)."',
- Name='".db_string($Name)."',
- Secondary=".$Secondary.",
- PermittedForums='".db_string($Forums)."',
- `Values`='".db_string(serialize($Values))."',
- DisplayStaff='".db_string($DisplayStaff)."'
- WHERE ID='".db_string($_REQUEST['id'])."'");
+ $DB->query("
+ UPDATE permissions
+ SET Level='".db_string($Level)."',
+ Name='".db_string($Name)."',
+ Secondary=$Secondary,
+ PermittedForums='".db_string($Forums)."',
+ `Values`='".db_string(serialize($Values))."',
+ DisplayStaff='".db_string($DisplayStaff)."'
+ WHERE ID='".db_string($_REQUEST['id'])."'");
$Cache->delete_value('perm_'.$_REQUEST['id']);
if ($Secondary) {
- $DB->query("SELECT DISTINCT UserID FROM users_levels WHERE PermissionID = ".db_string($_REQUEST['id']));
+ $DB->query("
+ SELECT DISTINCT UserID
+ FROM users_levels
+ WHERE PermissionID = ".db_string($_REQUEST['id']));
while ($UserID = $DB->next_record()) {
$Cache->delete_value('user_info_heavy_'.$UserID);
}
@@ -309,7 +314,7 @@
include('data/donation_log.php');
break;
-
+
case 'upscale_pool':
include('data/upscale_pool.php');
break;
@@ -317,6 +322,7 @@
case 'invite_pool':
include('data/invite_pool.php');
break;
+
case 'torrent_stats':
include('data/torrent_stats.php');
break;
@@ -348,9 +354,9 @@
case 'browser_support':
include('data/browser_support.php');
break;
- //END Data
+ //END Data
- //Misc
+ //Misc
case 'update_geoip':
include('misc/update_geoip.php');
break;
@@ -378,10 +384,10 @@
case 'analysis':
include('misc/analysis.php');
break;
-
+
case 'rerender_gallery':
- include('misc/rerender_gallery.php');
- break;
+ include('misc/rerender_gallery.php');
+ break;
case 'sandbox1':
include('misc/sandbox1.php');
diff --git a/sections/tools/managers/dnu_list.php b/sections/tools/managers/dnu_list.php
index 22ffb400..86de603d 100644
--- a/sections/tools/managers/dnu_list.php
+++ b/sections/tools/managers/dnu_list.php
@@ -2,8 +2,9 @@
if (!check_perms('admin_dnu')) {
error(403);
}
+$Title = 'Manage the "Do Not Upload" list';
-View::show_header('Manage "Do Not Upload" list');
+View::show_header($Title);
$DB->query("
SELECT
d.ID,
@@ -16,9 +17,27 @@
ORDER BY d.Time DESC");
?>
View::show_footer(); ?>
diff --git a/sections/tools/managers/eb.php b/sections/tools/managers/email_blacklist.php
similarity index 90%
rename from sections/tools/managers/eb.php
rename to sections/tools/managers/email_blacklist.php
index 2489107c..dfc9cbd7 100644
--- a/sections/tools/managers/eb.php
+++ b/sections/tools/managers/email_blacklist.php
@@ -39,11 +39,11 @@
Submit |