mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 12:11:36 +00:00
Swap Post/Preview buttons on request page
Clean up some code Broken markup if open registration is disabled Clear ip_bans key after ban addition
This commit is contained in:
parent
dedc15976d
commit
3b0f7f967a
@ -147,7 +147,6 @@ function permissions_form(){ ?>
|
|||||||
<? display_perm('site_collages_recover', 'Can recover \'deleted\' collages.'); ?>
|
<? display_perm('site_collages_recover', 'Can recover \'deleted\' collages.'); ?>
|
||||||
<? display_perm('site_forums_double_post', 'Can double post in the forums.'); ?>
|
<? display_perm('site_forums_double_post', 'Can double post in the forums.'); ?>
|
||||||
<? display_perm('project_team', 'Part of the project team.'); ?>
|
<? display_perm('project_team', 'Part of the project team.'); ?>
|
||||||
<??>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -189,7 +188,6 @@ function permissions_form(){ ?>
|
|||||||
<? display_perm('users_make_invisible', 'Can make users invisible'); ?>
|
<? display_perm('users_make_invisible', 'Can make users invisible'); ?>
|
||||||
<? display_perm('users_logout', 'Can log users out'); ?>
|
<? display_perm('users_logout', 'Can log users out'); ?>
|
||||||
<? display_perm('users_mod', 'Can access basic moderator tools (Admin comment)'); ?>
|
<? display_perm('users_mod', 'Can access basic moderator tools (Admin comment)'); ?>
|
||||||
<??>
|
|
||||||
*Everything is only applicable to users with the same or lower class level
|
*Everything is only applicable to users with the same or lower class level
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -243,7 +241,6 @@ function permissions_form(){ ?>
|
|||||||
<? display_perm('admin_login_watch', 'Can manage login watch.'); ?>
|
<? display_perm('admin_login_watch', 'Can manage login watch.'); ?>
|
||||||
<? display_perm('admin_manage_wiki', 'Can manage wiki access.'); ?>
|
<? display_perm('admin_manage_wiki', 'Can manage wiki access.'); ?>
|
||||||
<? display_perm('admin_update_geoip', 'Can update geoip data.'); ?>
|
<? display_perm('admin_update_geoip', 'Can update geoip data.'); ?>
|
||||||
<??>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -31,18 +31,17 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="head">
|
<div id="head">
|
||||||
<?=($SSL)?'<span>SSL</span>':''?>
|
<?=($SSL)?'<span>SSL</span>':''?>
|
||||||
<?
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
<table id="maincontent">
|
<table id="maincontent">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" valign="middle">
|
<td align="center" valign="middle">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="index.php<?=($Lang != DEFAULT_LOCALE ? '?lang='.$Lang : '')?>">Home</a></li>
|
<li><a href="index.php">Home</a></li>
|
||||||
<li><a href="login.php<?=($Lang != DEFAULT_LOCALE ? '?lang='.$Lang : '')?>">Login</a></li>
|
<li><a href="login.php">Login</a></li>
|
||||||
<? if (OPEN_REGISTRATION) { ?>
|
<? if (OPEN_REGISTRATION) { ?>
|
||||||
<li><a href="register.php<?=($Lang != DEFAULT_LOCALE ? '?lang='.$Lang : '')?>">Register</a></li>
|
<li><a href="register.php">Register</a></li>
|
||||||
|
<? } ?>
|
||||||
</ul>
|
</ul>
|
||||||
<? } ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
|
||||||
<ShortName><?=SITE_NAME.' '.ucfirst($Type)?> </ShortName>
|
<ShortName><?=SITE_NAME.' '.ucfirst($Type)?> </ShortName>
|
||||||
<Description>Search <?=SITE_NAME?> for <?=ucfirst($Type)?></Description>
|
<Description>Search <?=SITE_NAME?> for <?=ucfirst($Type)?></Description>
|
||||||
<Developer><??></Developer>
|
<Developer></Developer>
|
||||||
<Image width="16" height="16" type="image/x-icon">http<?=($SSL?'s':'')?>://<?=SITE_URL?>/favicon.ico</Image>
|
<Image width="16" height="16" type="image/x-icon">http<?=($SSL?'s':'')?>://<?=SITE_URL?>/favicon.ico</Image>
|
||||||
<?
|
<?
|
||||||
switch ($Type) {
|
switch ($Type) {
|
||||||
|
@ -248,9 +248,6 @@ function compare($X, $Y){
|
|||||||
<a href="bookmarks.php?action=remove_snatched&auth=<?=$LoggedUser['AuthKey']?>" onclick="return confirm('Are you sure you want to remove the bookmarks for all items you\'ve snatched?');">[Remove Snatched]</a>
|
<a href="bookmarks.php?action=remove_snatched&auth=<?=$LoggedUser['AuthKey']?>" onclick="return confirm('Are you sure you want to remove the bookmarks for all items you\'ve snatched?');">[Remove Snatched]</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="head"><strong>Stats</strong></div>
|
<div class="head"><strong>Stats</strong></div>
|
||||||
<ul class="stats nobullet">
|
<ul class="stats nobullet">
|
||||||
|
@ -106,8 +106,6 @@
|
|||||||
<td valign="top">
|
<td valign="top">
|
||||||
<input type="hidden" name="friendid" value="<?=$FriendID?>" />
|
<input type="hidden" name="friendid" value="<?=$FriendID?>" />
|
||||||
|
|
||||||
<?
|
|
||||||
?>
|
|
||||||
<textarea name="comment" rows="4" cols="80"><?=$Comment?></textarea>
|
<textarea name="comment" rows="4" cols="80"><?=$Comment?></textarea>
|
||||||
</td>
|
</td>
|
||||||
<td class="left" valign="top">
|
<td class="left" valign="top">
|
||||||
@ -115,9 +113,6 @@
|
|||||||
<input type="submit" name="action" value="Defriend" /><br />
|
<input type="submit" name="action" value="Defriend" /><br />
|
||||||
<input type="submit" name="action" value="Contact" /><br />
|
<input type="submit" name="action" value="Contact" /><br />
|
||||||
|
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -65,10 +65,6 @@
|
|||||||
?>
|
?>
|
||||||
<div class="thin">
|
<div class="thin">
|
||||||
<h2><?=$Subject.($ForwardedID > 0 ? ' (Forwarded to '.$ForwardedName.')':'')?></h2>
|
<h2><?=$Subject.($ForwardedID > 0 ? ' (Forwarded to '.$ForwardedName.')':'')?></h2>
|
||||||
<?
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<a href="inbox.php">[Back to inbox]</a>
|
<a href="inbox.php">[Back to inbox]</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -97,7 +97,6 @@
|
|||||||
<? } else { ?>
|
<? } else { ?>
|
||||||
<form action="inbox.php" method="get" id="searchbox">
|
<form action="inbox.php" method="get" id="searchbox">
|
||||||
<div>
|
<div>
|
||||||
<??>
|
|
||||||
<input type="radio" name="searchtype" value="user" checked="checked" /> User
|
<input type="radio" name="searchtype" value="user" checked="checked" /> User
|
||||||
<input type="radio" name="searchtype" value="subject" /> Subject
|
<input type="radio" name="searchtype" value="subject" /> Subject
|
||||||
<input type="radio" name="searchtype" value="message" /> Message
|
<input type="radio" name="searchtype" value="message" /> Message
|
||||||
@ -156,7 +155,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</table>
|
</table>
|
||||||
<? ?>
|
|
||||||
<input type="submit" value="Delete message(s)" />
|
<input type="submit" value="Delete message(s)" />
|
||||||
</form>
|
</form>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
@ -197,9 +197,6 @@
|
|||||||
<li>Seeders: <?=number_format($SeederCount) ?></li>
|
<li>Seeders: <?=number_format($SeederCount) ?></li>
|
||||||
<li>Leechers: <?=number_format($LeecherCount) ?></li>
|
<li>Leechers: <?=number_format($LeecherCount) ?></li>
|
||||||
<li>Seeder/Leecher Ratio: <?=$Ratio?></li>
|
<li>Seeder/Leecher Ratio: <?=$Ratio?></li>
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
|
@ -196,6 +196,7 @@ function log_attempt($UserID) {
|
|||||||
$DB->query("INSERT INTO ip_bans
|
$DB->query("INSERT INTO ip_bans
|
||||||
(FromIP, ToIP, Reason) VALUES
|
(FromIP, ToIP, Reason) VALUES
|
||||||
('$IP','$IP', 'Automated ban per >60 failed login attempts')");
|
('$IP','$IP', 'Automated ban per >60 failed login attempts')");
|
||||||
|
$Cache->delete_value('ip_bans');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -159,8 +159,6 @@
|
|||||||
<? } else { ?>
|
<? } else { ?>
|
||||||
<?=$LinkName?>
|
<?=$LinkName?>
|
||||||
<a href="torrents.php?action=download&id=<?=$TorrentID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">[DL]</a>
|
<a href="torrents.php?action=download&id=<?=$TorrentID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">[DL]</a>
|
||||||
<?
|
|
||||||
?>
|
|
||||||
uploaded by <a href="user.php?id=<?=$UploaderID?>"><?=$UploaderName?></a> <?=time_diff($Time)?>
|
uploaded by <a href="user.php?id=<?=$UploaderID?>"><?=$UploaderName?></a> <?=time_diff($Time)?>
|
||||||
<br />
|
<br />
|
||||||
<div style="text-align: right;">was reported by <a href="user.php?id=<?=$ReporterID?>"><?=$ReporterName?></a> <?=time_diff($ReportedTime)?> for the reason: <strong><?=$ReportType['title']?></strong></div>
|
<div style="text-align: right;">was reported by <a href="user.php?id=<?=$ReporterID?>"><?=$ReporterName?></a> <?=time_diff($ReportedTime)?> for the reason: <strong><?=$ReportType['title']?></strong></div>
|
||||||
@ -303,9 +301,6 @@
|
|||||||
<?=($First ? "" : "<br />")?>
|
<?=($First ? "" : "<br />")?>
|
||||||
<?=$ExtraLinkName?>
|
<?=$ExtraLinkName?>
|
||||||
<a href="torrents.php?action=download&id=<?=$ExtraID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">[DL]</a>
|
<a href="torrents.php?action=download&id=<?=$ExtraID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">[DL]</a>
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
uploaded by <a href="user.php?id=<?=$ExtraUploaderID?>"><?=$ExtraUploaderName?></a> <?=time_diff($ExtraTime)?> [<a href="#" onclick="Switch(<?=$ReportID?>, <?=$TorrentID?>, <?=$ExtraID?>); return false;">Switch</a>]
|
uploaded by <a href="user.php?id=<?=$ExtraUploaderID?>"><?=$ExtraUploaderName?></a> <?=time_diff($ExtraTime)?> [<a href="#" onclick="Switch(<?=$ReportID?>, <?=$TorrentID?>, <?=$ExtraID?>); return false;">Switch</a>]
|
||||||
<?
|
<?
|
||||||
$First = false;
|
$First = false;
|
||||||
|
@ -301,9 +301,6 @@
|
|||||||
<? } else {?>
|
<? } else {?>
|
||||||
<?=$LinkName?>
|
<?=$LinkName?>
|
||||||
<a href="torrents.php?action=download&id=<?=$TorrentID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">[DL]</a>
|
<a href="torrents.php?action=download&id=<?=$TorrentID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">[DL]</a>
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
uploaded by <a href="user.php?id=<?=$UploaderID?>"><?=$UploaderName?></a> <?=time_diff($Time)?>
|
uploaded by <a href="user.php?id=<?=$UploaderID?>"><?=$UploaderName?></a> <?=time_diff($Time)?>
|
||||||
<br />
|
<br />
|
||||||
<div style="text-align: right;">was reported by <a href="user.php?id=<?=$ReporterID?>"><?=$ReporterName?></a> <?=time_diff($ReportedTime)?> for the reason: <strong><?=$ReportType['title']?></strong></div>
|
<div style="text-align: right;">was reported by <a href="user.php?id=<?=$ReporterID?>"><?=$ReporterName?></a> <?=time_diff($ReportedTime)?> for the reason: <strong><?=$ReportType['title']?></strong></div>
|
||||||
@ -448,9 +445,6 @@
|
|||||||
<?=($First ? "" : "<br />")?>
|
<?=($First ? "" : "<br />")?>
|
||||||
<?=$ExtraLinkName?>
|
<?=$ExtraLinkName?>
|
||||||
<a href="torrents.php?action=download&id=<?=$ExtraID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">[DL]</a>
|
<a href="torrents.php?action=download&id=<?=$ExtraID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">[DL]</a>
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
uploaded by <a href="user.php?id=<?=$ExtraUploaderID?>"><?=$ExtraUploaderName?></a> <?=time_diff($ExtraTime)?> [<a href="#" onclick="Switch(<?=$ReportID?>, <?=$TorrentID?>, <?=$ExtraID?>); return false;">Switch</a>]
|
uploaded by <a href="user.php?id=<?=$ExtraUploaderID?>"><?=$ExtraUploaderName?></a> <?=time_diff($ExtraTime)?> [<a href="#" onclick="Switch(<?=$ReportID?>, <?=$TorrentID?>, <?=$ExtraID?>); return false;">Switch</a>]
|
||||||
<?
|
<?
|
||||||
$First = false;
|
$First = false;
|
||||||
|
@ -463,8 +463,8 @@
|
|||||||
<input type="hidden" name="requestid" value="<?=$RequestID?>" />
|
<input type="hidden" name="requestid" value="<?=$RequestID?>" />
|
||||||
<textarea id="quickpost" name="body" cols="70" rows="8"></textarea> <br />
|
<textarea id="quickpost" name="body" cols="70" rows="8"></textarea> <br />
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" value="Post reply" />
|
|
||||||
<input id="post_preview" type="button" value="Preview" onclick="if(this.preview){Quick_Edit();}else{Quick_Preview();}" />
|
<input id="post_preview" type="button" value="Preview" onclick="if(this.preview){Quick_Edit();}else{Quick_Preview();}" />
|
||||||
|
<input type="submit" value="Post reply" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
@ -65,7 +65,6 @@
|
|||||||
<? } ?>
|
<? } ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<??>
|
|
||||||
<div class="box pad" style="padding:0px 10px 10px 10px;">
|
<div class="box pad" style="padding:0px 10px 10px 10px;">
|
||||||
|
|
||||||
<?
|
<?
|
||||||
|
@ -602,9 +602,6 @@ function header_link($SortKey,$DefaultWay="desc") {
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="linkbox"><?=$Pages?></div>
|
<div class="linkbox"><?=$Pages?></div>
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
<? if(count($Results)==0) {
|
<? if(count($Results)==0) {
|
||||||
$DB->query("SELECT
|
$DB->query("SELECT
|
||||||
tags.Name,
|
tags.Name,
|
||||||
|
@ -431,7 +431,6 @@ function filelist($Str) {
|
|||||||
| <a href="torrents.php?action=delete&torrentid=<?=$TorrentID ?>" title="Remove">RM</a>
|
| <a href="torrents.php?action=delete&torrentid=<?=$TorrentID ?>" title="Remove">RM</a>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
||||||
<??>
|
|
||||||
| <a href="torrents.php?torrentid=<?=$TorrentID ?>" title="Permalink">PL</a>
|
| <a href="torrents.php?torrentid=<?=$TorrentID ?>" title="Permalink">PL</a>
|
||||||
]</span>
|
]</span>
|
||||||
<a href="#" onclick="$('#torrent_<?=$TorrentID?>').toggle(); return false;">» <?=$ExtraInfo; ?></a>
|
<a href="#" onclick="$('#torrent_<?=$TorrentID?>').toggle(); return false;">» <?=$ExtraInfo; ?></a>
|
||||||
@ -459,8 +458,6 @@ function filelist($Str) {
|
|||||||
|
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
||||||
<?
|
|
||||||
?>
|
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<? if(check_perms('site_moderate_requests')) { ?>
|
<? if(check_perms('site_moderate_requests')) { ?>
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
|
@ -93,9 +93,6 @@
|
|||||||
if(check_perms('torrents_edit') && $Properties['CategoryID'] == 1) {
|
if(check_perms('torrents_edit') && $Properties['CategoryID'] == 1) {
|
||||||
?>
|
?>
|
||||||
<div class="thin">
|
<div class="thin">
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
<h2>Change Group</h2>
|
<h2>Change Group</h2>
|
||||||
<form action="torrents.php" method="post">
|
<form action="torrents.php" method="post">
|
||||||
<input type="hidden" name="action" value="editgroupid" />
|
<input type="hidden" name="action" value="editgroupid" />
|
||||||
@ -150,9 +147,6 @@
|
|||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
<br />
|
<br />
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
} // if check_perms('torrents_edit')
|
} // if check_perms('torrents_edit')
|
||||||
|
@ -77,9 +77,6 @@ function checked($Checked) {
|
|||||||
<strong>Site preferences</strong>
|
<strong>Site preferences</strong>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
|
||||||
|
|
||||||
?>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label"><strong>Stylesheet</strong></td>
|
<td class="label"><strong>Stylesheet</strong></td>
|
||||||
<td>
|
<td>
|
||||||
@ -215,8 +212,6 @@ function checked($Checked) {
|
|||||||
<label for="disableavatars">Disable avatars</label>
|
<label for="disableavatars">Disable avatars</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
|
||||||
?>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label"><strong>Download torrents as text files</strong></td>
|
<td class="label"><strong>Download torrents as text files</strong></td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -1021,7 +1021,6 @@ function check_paranoia_here($Setting) {
|
|||||||
<input type="checkbox" name="DisableLeech" id="DisableLeech"<? if ($DisableLeech==0) { ?>checked="checked"<? } ?> /><label for="DisableLeech">Leech</label> |
|
<input type="checkbox" name="DisableLeech" id="DisableLeech"<? if ($DisableLeech==0) { ?>checked="checked"<? } ?> /><label for="DisableLeech">Leech</label> |
|
||||||
<input type="checkbox" name="DisablePM" id="DisablePM"<? if ($DisablePM==1) { ?>checked="checked"<? } ?> /><label for="DisablePM">PM</label> |
|
<input type="checkbox" name="DisablePM" id="DisablePM"<? if ($DisablePM==1) { ?>checked="checked"<? } ?> /><label for="DisablePM">PM</label> |
|
||||||
<input type="checkbox" name="DisableIRC" id="DisableIRC"<? if ($DisableIRC==1) { ?>checked="checked"<? } ?> /><label for="DisableIRC">IRC</label>
|
<input type="checkbox" name="DisableIRC" id="DisableIRC"<? if ($DisableIRC==1) { ?>checked="checked"<? } ?> /><label for="DisableIRC">IRC</label>
|
||||||
<??>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user