mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 10:31:37 +00:00
Empty commit
This commit is contained in:
parent
ca98a86b12
commit
9725ab2dfa
@ -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;
|
||||
|
@ -89,6 +89,7 @@
|
||||
|
||||
<? } ?>
|
||||
</ul>
|
||||
<p>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 <a href="http://what.cd/staffpm.php">Staff PM</a>. We will answer as quickly as possible.</p>
|
||||
</div>
|
||||
<h3>What you will <strong>not</strong> receive</h3>
|
||||
<div class="box pad" style="padding:10px 10px 10px 20px;">
|
||||
|
@ -69,7 +69,7 @@
|
||||
?>
|
||||
<form action="friends.php" method="post">
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<table class="forum_post vertical_margin">
|
||||
<table class="friends_table vertical_margin">
|
||||
<tr>
|
||||
<td class="colhead" colspan="3">
|
||||
<span style="float:left;"><?=format_username($FriendID, $Username, $Donor, $Warned, $Enabled == 2 ? false : true, $Class)?>
|
||||
|
@ -448,16 +448,16 @@
|
||||
<table id="request_table" cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<tr class="colhead_dark">
|
||||
<td style="width: 38%;">
|
||||
<strong>Request Name</strong> / <a href="requests.php?order=year&sort=<?=(($CurrentOrder == 'year') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Year</strong></a>
|
||||
<strong>Request Name</strong> / <a href="?order=year&sort=<?=(($CurrentOrder == 'year') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Year</strong></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="requests.php?order=votes&sort=<?=(($CurrentOrder == 'votes') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Votes</strong></a>
|
||||
<a href="?order=votes&sort=<?=(($CurrentOrder == 'votes') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Votes</strong></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="requests.php?order=bounty&sort=<?=(($CurrentOrder == 'bounty') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Bounty</strong></a>
|
||||
<a href="?order=bounty&sort=<?=(($CurrentOrder == 'bounty') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Bounty</strong></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="requests.php?order=filled&sort=<?=(($CurrentOrder == 'filled') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Filled</strong></a>
|
||||
<a href="?order=filled&sort=<?=(($CurrentOrder == 'filled') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Filled</strong></a>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Filled by</strong>
|
||||
@ -466,10 +466,10 @@
|
||||
<strong>Requested by</strong>
|
||||
</td>
|
||||
<td>
|
||||
<a href="requests.php?order=created&sort=<?=(($CurrentOrder == 'created') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Created</strong></a>
|
||||
<a href="?order=created&sort=<?=(($CurrentOrder == 'created') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Created</strong></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="requests.php?order=lastvote&sort=<?=(($CurrentOrder == 'lastvote') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Last Vote</strong></a>
|
||||
<a href="?order=lastvote&sort=<?=(($CurrentOrder == 'lastvote') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Last Vote</strong></a>
|
||||
</td>
|
||||
</tr>
|
||||
<? if($NumResults == 0) { ?>
|
||||
@ -523,7 +523,7 @@
|
||||
<?
|
||||
$TagList = array();
|
||||
foreach($Tags as $TagID => $TagName) {
|
||||
$TagList[] = "<a href='requests.php?tags=".$TagName."'>".display_str($TagName)."</a>";
|
||||
$TagList[] = "<a href='?tags=".$TagName.($BookmarkView ? "&type=requests" : "")."'>".display_str($TagName)."</a>";
|
||||
}
|
||||
$TagList = implode(', ', $TagList);
|
||||
?>
|
||||
|
@ -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);
|
||||
?>
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user