diff --git a/classes/script_start.php b/classes/script_start.php index 9ae9ceef..83cd3e0e 100644 --- a/classes/script_start.php +++ b/classes/script_start.php @@ -431,7 +431,11 @@ function site_ban_ip($IP) { $TorIPs = $Cache->get_value('tor_ips'); if (!is_array($TorIPs)) { $TorIPs = file('https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=' . SITE_IP, FILE_IGNORE_NEW_LINES); - $Cache->cache_value('tor_ips', $TorIPs, 3600 * 4); + if($TorIPs === false) { + $Cache->cache_value('tor_ips', array(), 1800); + } else { + $Cache->cache_value('tor_ips', $TorIPs, 3600 * 4); + } } if (in_array($IP, $TorIPs)) { return true; diff --git a/sections/donate/donate.php b/sections/donate/donate.php index a36e7abe..f83cb378 100644 --- a/sections/donate/donate.php +++ b/sections/donate/donate.php @@ -89,6 +89,7 @@ +

Please be aware that by making a donation you aren't purchasing donor status or invites. You are helping us pay the bills and cover the costs of running the site. We are doing our best to give the benefits to donors but sometimes it might take more than 48 hours. If it has been more than 48 hours and you were not credited, let us know by sending us a Staff PM. We will answer as quickly as possible.

What you will not receive

diff --git a/sections/friends/friends.php b/sections/friends/friends.php index 88f3e8d1..27b55430 100644 --- a/sections/friends/friends.php +++ b/sections/friends/friends.php @@ -69,7 +69,7 @@ ?>
- +
diff --git a/sections/requests/requests.php b/sections/requests/requests.php index e219f904..e0d245c4 100644 --- a/sections/requests/requests.php +++ b/sections/requests/requests.php @@ -448,16 +448,16 @@ @@ -523,7 +523,7 @@ $TagName) { - $TagList[] = "".display_str($TagName).""; + $TagList[] = "".display_str($TagName).""; } $TagList = implode(', ', $TagList); ?> diff --git a/sections/wiki/revisions.php b/sections/wiki/revisions.php index 5f2f09ef..148ad775 100644 --- a/sections/wiki/revisions.php +++ b/sections/wiki/revisions.php @@ -4,7 +4,8 @@ $Latest = $Alias->article($ArticleID); list($Revision, $Title, $Body, $Read, $Edit, $Date, $AuthorID, $AuthorName) = array_shift($Latest); -if($Edit > $LoggedUser['Class']){ error(404); } +if($Read > $LoggedUser['Class']){ error(404); } +if($Edit > $LoggedUser['Class']){ error(403); } show_header("Revisions of ".$Title); ?> diff --git a/static/functions/bbcode.js b/static/functions/bbcode.js index 6f2a527e..bf9e9850 100644 --- a/static/functions/bbcode.js +++ b/static/functions/bbcode.js @@ -1,11 +1,11 @@ -var BBCode = { - spoiler: function(link) { - if($(link.nextSibling).has_class('hidden')) { - $(link.nextSibling).show(); - $(link).html('Hide'); - } else { - $(link.nextSibling).hide(); - $(link).html('Show'); - } - } -}; +var BBCode = { + spoiler: function(link) { + if($(link.nextSibling).has_class('hidden')) { + $(link.nextSibling).show(); + $(link).html('Hide'); + } else { + $(link.nextSibling).hide(); + $(link).html('Show'); + } + } +};
- Request Name / Year + Request Name / Year - Votes + Votes - Bounty + Bounty - Filled + Filled Filled by @@ -466,10 +466,10 @@ Requested by - Created + Created - Last Vote + Last Vote