Empty commit

This commit is contained in:
Git 2012-11-08 08:00:19 +00:00
parent e1f1367e0c
commit 976060a69d
2 changed files with 8 additions and 9 deletions

View File

@ -99,7 +99,7 @@
</tr>
<?
if (check_perms('forums_polls_create')) {
if (check_perms('forums_polls_create')) {
?>
<script type="text/javascript">
var AnswerCount = 1;
@ -143,19 +143,15 @@ function RemoveAnswerField() {
[<a href="#" onclick="RemoveAnswerField();return false;">-</a>]
</td>
</tr>
<tr>
<td colspan="2" class="center">
<input type="button" value="Preview" onclick="Newthread_Preview(1);" id="newthreadpreviewbutton" />
<input type="button" value="Editor" onclick="Newthread_Preview(0);" id="newthreadeditbutton" class="hidden" />
<input type="submit" id="submit_button" value="Create thread" />
</td>
</tr>
<? } ?>
</table>
<div id="subscribediv" class="hidden">
<input id="subscribeboxpreview" type="checkbox" name="subscribe"<?=!empty($HeavyInfo['AutoSubscribe'])?' checked="checked"':''?> />
<label for="subscribebox">Subscribe to topic</label>
</div>
<input type="button" value="Preview" onclick="Newthread_Preview(1);" id="newthreadpreviewbutton" />
<input type="button" value="Editor" onclick="Newthread_Preview(0);" id="newthreadeditbutton" class="hidden" />
<input type="submit" id="submit_button" value="Create thread" />
</form>
</div>
</div>

View File

@ -392,7 +392,7 @@ function next_hour() {
$DB->query("UPDATE users_main SET RequiredRatio=$MinRatio WHERE Downloaded >= '$Download' AND Downloaded < '$DownloadBarrier' AND RequiredRatio<$MinRatio");
$DB->query("UPDATE users_main SET RequiredRatio=$Ratio WHERE Downloaded >= '$Download' AND Downloaded < '$DownloadBarrier' AND can_leech='0' AND Enabled='1'");
//$DB->query("UPDATE users_main SET RequiredRatio=$Ratio WHERE Downloaded >= '$Download' AND Downloaded < '$DownloadBarrier' AND can_leech='0' AND Enabled='1'");
$DownloadBarrier = $Download;
}
@ -521,6 +521,9 @@ function next_hour() {
' , i.AdminComment)
WHERE m.ID IN(".implode(',',$UserIDs).")");
$DB->query("DELETE FROM users_torrent_history WHERE UserID IN (".implode(',',$UserIDs).")");
}
foreach($UserIDs as $UserID) {