Empty commit

This commit is contained in:
Git 2011-09-13 08:00:15 +00:00
parent ca98a86b12
commit 9725ab2dfa
6 changed files with 27 additions and 21 deletions

View File

@ -431,8 +431,12 @@ function site_ban_ip($IP) {
$TorIPs = $Cache->get_value('tor_ips'); $TorIPs = $Cache->get_value('tor_ips');
if (!is_array($TorIPs)) { if (!is_array($TorIPs)) {
$TorIPs = file('https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=' . SITE_IP, FILE_IGNORE_NEW_LINES); $TorIPs = file('https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=' . SITE_IP, FILE_IGNORE_NEW_LINES);
if($TorIPs === false) {
$Cache->cache_value('tor_ips', array(), 1800);
} else {
$Cache->cache_value('tor_ips', $TorIPs, 3600 * 4); $Cache->cache_value('tor_ips', $TorIPs, 3600 * 4);
} }
}
if (in_array($IP, $TorIPs)) { if (in_array($IP, $TorIPs)) {
return true; return true;
} }

View File

@ -89,6 +89,7 @@
<? } ?> <? } ?>
</ul> </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> </div>
<h3>What you will <strong>not</strong> receive</h3> <h3>What you will <strong>not</strong> receive</h3>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">

View File

@ -69,7 +69,7 @@
?> ?>
<form action="friends.php" method="post"> <form action="friends.php" method="post">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<table class="forum_post vertical_margin"> <table class="friends_table vertical_margin">
<tr> <tr>
<td class="colhead" colspan="3"> <td class="colhead" colspan="3">
<span style="float:left;"><?=format_username($FriendID, $Username, $Donor, $Warned, $Enabled == 2 ? false : true, $Class)?> <span style="float:left;"><?=format_username($FriendID, $Username, $Donor, $Warned, $Enabled == 2 ? false : true, $Class)?>

View File

@ -448,16 +448,16 @@
<table id="request_table" cellpadding="6" cellspacing="1" border="0" class="border" width="100%"> <table id="request_table" cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
<tr class="colhead_dark"> <tr class="colhead_dark">
<td style="width: 38%;"> <td style="width: 38%;">
<strong>Request Name</strong> / <a href="requests.php?order=year&amp;sort=<?=(($CurrentOrder == 'year') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Year</strong></a> <strong>Request Name</strong> / <a href="?order=year&amp;sort=<?=(($CurrentOrder == 'year') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Year</strong></a>
</td> </td>
<td> <td>
<a href="requests.php?order=votes&amp;sort=<?=(($CurrentOrder == 'votes') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Votes</strong></a> <a href="?order=votes&amp;sort=<?=(($CurrentOrder == 'votes') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Votes</strong></a>
</td> </td>
<td> <td>
<a href="requests.php?order=bounty&amp;sort=<?=(($CurrentOrder == 'bounty') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Bounty</strong></a> <a href="?order=bounty&amp;sort=<?=(($CurrentOrder == 'bounty') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Bounty</strong></a>
</td> </td>
<td> <td>
<a href="requests.php?order=filled&amp;sort=<?=(($CurrentOrder == 'filled') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Filled</strong></a> <a href="?order=filled&amp;sort=<?=(($CurrentOrder == 'filled') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Filled</strong></a>
</td> </td>
<td> <td>
<strong>Filled by</strong> <strong>Filled by</strong>
@ -466,10 +466,10 @@
<strong>Requested by</strong> <strong>Requested by</strong>
</td> </td>
<td> <td>
<a href="requests.php?order=created&amp;sort=<?=(($CurrentOrder == 'created') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Created</strong></a> <a href="?order=created&amp;sort=<?=(($CurrentOrder == 'created') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Created</strong></a>
</td> </td>
<td> <td>
<a href="requests.php?order=lastvote&amp;sort=<?=(($CurrentOrder == 'lastvote') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Last Vote</strong></a> <a href="?order=lastvote&amp;sort=<?=(($CurrentOrder == 'lastvote') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Last Vote</strong></a>
</td> </td>
</tr> </tr>
<? if($NumResults == 0) { ?> <? if($NumResults == 0) { ?>
@ -523,7 +523,7 @@
<? <?
$TagList = array(); $TagList = array();
foreach($Tags as $TagID => $TagName) { foreach($Tags as $TagID => $TagName) {
$TagList[] = "<a href='requests.php?tags=".$TagName."'>".display_str($TagName)."</a>"; $TagList[] = "<a href='?tags=".$TagName.($BookmarkView ? "&amp;type=requests" : "")."'>".display_str($TagName)."</a>";
} }
$TagList = implode(', ', $TagList); $TagList = implode(', ', $TagList);
?> ?>

View File

@ -4,7 +4,8 @@
$Latest = $Alias->article($ArticleID); $Latest = $Alias->article($ArticleID);
list($Revision, $Title, $Body, $Read, $Edit, $Date, $AuthorID, $AuthorName) = array_shift($Latest); 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); show_header("Revisions of ".$Title);
?> ?>