Empty commit

This commit is contained in:
Git 2012-08-19 08:00:19 +00:00
parent d41d2fb8fd
commit cc32775f24
105 changed files with 626 additions and 416 deletions

View File

@ -465,10 +465,11 @@ function compare($X, $Y){
show_header($Name, 'browse,requests,bbcode'); show_header($Name, 'browse,requests,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=display_str($Name)?><? if ($RevisionID) { ?> (Revision #<?=$RevisionID?>)<? } if ($VanityHouseArtist) { ?> [Vanity House] <? } ?></h2> <div class="header">
<div class="linkbox"> <h2><?=display_str($Name)?><? if ($RevisionID) { ?> (Revision #<?=$RevisionID?>)<? } if ($VanityHouseArtist) { ?> [Vanity House] <? } ?></h2>
<div class="linkbox">
<? if (check_perms('site_submit_requests')) { ?> <? if (check_perms('site_submit_requests')) { ?>
<a href="requests.php?action=new&amp;artistid=<?=$ArtistID?>">[Add Request]</a> <a href="requests.php?action=new&amp;artistid=<?=$ArtistID?>">[Add Request]</a>
<? } <? }
if (check_perms('site_torrents_notify')) { if (check_perms('site_torrents_notify')) {
@ -479,41 +480,42 @@ function compare($X, $Y){
} }
if (stripos($Notify['Artists'], '|'.$Name.'|') === false) { if (stripos($Notify['Artists'], '|'.$Name.'|') === false) {
?> ?>
<a href="artist.php?action=notify&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Notify of new uploads]</a> <a href="artist.php?action=notify&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Notify of new uploads]</a>
<? <?
} else { } else {
?> ?>
<a href="artist.php?action=notifyremove&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Do not notify of new uploads]</a> <a href="artist.php?action=notifyremove&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Do not notify of new uploads]</a>
<? <?
} }
} }
if (has_bookmarked('artist', $ArtistID)) { if (has_bookmarked('artist', $ArtistID)) {
?> ?>
<a href="#" id="bookmarklink_artist_<?=$ArtistID?>" onclick="Unbookmark('artist', <?=$ArtistID?>,'[Bookmark]');return false;">[Remove bookmark]</a> <a href="#" id="bookmarklink_artist_<?=$ArtistID?>" onclick="Unbookmark('artist', <?=$ArtistID?>,'[Bookmark]');return false;">[Remove bookmark]</a>
<? <?
} else { } else {
?> ?>
<a href="#" id="bookmarklink_artist_<?=$ArtistID?>" onclick="Bookmark('artist', <?=$ArtistID?>,'[Remove bookmark]');return false;">[Bookmark]</a> <a href="#" id="bookmarklink_artist_<?=$ArtistID?>" onclick="Bookmark('artist', <?=$ArtistID?>,'[Remove bookmark]');return false;">[Bookmark]</a>
<? <?
} }
if (check_perms('site_edit_wiki')) { if (check_perms('site_edit_wiki')) {
?> ?>
<a href="artist.php?action=edit&amp;artistid=<?=$ArtistID?>">[Edit]</a> <a href="artist.php?action=edit&amp;artistid=<?=$ArtistID?>">[Edit]</a>
<? } ?> <? } ?>
<a href="artist.php?action=history&amp;artistid=<?=$ArtistID?>">[View history]</a> <a href="artist.php?action=history&amp;artistid=<?=$ArtistID?>">[View history]</a>
<? if (check_perms('site_delete_artist') && check_perms('torrents_delete')) { ?> <? if (check_perms('site_delete_artist') && check_perms('torrents_delete')) { ?>
<a href="artist.php?action=delete&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Delete]</a> <a href="artist.php?action=delete&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Delete]</a>
<? } <? }
if ($RevisionID && check_perms('site_edit_wiki')) { if ($RevisionID && check_perms('site_edit_wiki')) {
?> ?>
<a href="artist.php?action=revert&amp;artistid=<?=$ArtistID?>&amp;revisionid=<?=$RevisionID?>&amp;auth=<?=$LoggedUser['AuthKey']?>"> <a href="artist.php?action=revert&amp;artistid=<?=$ArtistID?>&amp;revisionid=<?=$RevisionID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">
[Revert to this revision] [Revert to this revision]
</a> </a>
<? } ?> <? } ?>
</div>
</div> </div>
<div class="sidebar"> <div class="sidebar">
<? if($Image) { ?> <? if($Image) { ?>

View File

@ -390,17 +390,18 @@ function display_name($ReleaseType) {
show_header($Name, 'browse,requests,artists,bbcode'); show_header($Name, 'browse,requests,artists,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=$Name?><? if ($RevisionID) { ?> (Revision #<?=$RevisionID?>)<? } if ($VanityHouseArtist) { ?> [Vanity House] <? } ?></h2> <div class="header">
<span style="font-size: 0.7em;float:right;"> <h2><?=$Name?><? if ($RevisionID) { ?> (Revision #<?=$RevisionID?>)<? } if ($VanityHouseArtist) { ?> [Vanity House] <? } ?></h2>
<a href="#" onclick="editOrdering();return false;" class="" id="editlayout">[Edit ordering]</a> <span style="font-size: 0.7em;float:right;">
<span class="hidden" id="savinglayout">Saving ordering...</span> <a href="#" onclick="editOrdering();return false;" class="" id="editlayout">[Edit ordering]</a>
<a href="#" onclick="saveOrdering();return false;" class="hidden" id="savelayout">[Save ordering]</a> <span class="hidden" id="savinglayout">Saving ordering...</span>
</span> <a href="#" onclick="saveOrdering();return false;" class="hidden" id="savelayout">[Save ordering]</a>
</h2> </span>
<div id="emptylinkbox" class="linkbox hidden"></div> </h2>
<div id="linkbox" class="linkbox"> <div id="emptylinkbox" class="linkbox hidden"></div>
<div id="linkbox" class="linkbox">
<? if (check_perms('site_submit_requests')) { ?> <? if (check_perms('site_submit_requests')) { ?>
<a href="requests.php?action=new&amp;artistid=<?=$ArtistID?>">[Add Request]</a> <a href="requests.php?action=new&amp;artistid=<?=$ArtistID?>">[Add Request]</a>
<? } <? }
if (check_perms('site_torrents_notify')) { if (check_perms('site_torrents_notify')) {
@ -411,41 +412,42 @@ function display_name($ReleaseType) {
} }
if (stripos($Notify['Artists'], '|'.$Name.'|') === FALSE) { if (stripos($Notify['Artists'], '|'.$Name.'|') === FALSE) {
?> ?>
<a href="artist.php?action=notify&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Notify of new uploads]</a> <a href="artist.php?action=notify&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Notify of new uploads]</a>
<? <?
} else { } else {
?> ?>
<a href="artist.php?action=notifyremove&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Do not notify of new uploads]</a> <a href="artist.php?action=notifyremove&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Do not notify of new uploads]</a>
<? <?
} }
} }
if (has_bookmarked('artist', $ArtistID)) { if (has_bookmarked('artist', $ArtistID)) {
?> ?>
<a href="#" id="bookmarklink_artist_<?=$ArtistID?>" onclick="Unbookmark('artist', <?=$ArtistID?>,'[Bookmark]');return false;">[Remove bookmark]</a> <a href="#" id="bookmarklink_artist_<?=$ArtistID?>" onclick="Unbookmark('artist', <?=$ArtistID?>,'[Bookmark]');return false;">[Remove bookmark]</a>
<? <?
} else { } else {
?> ?>
<a href="#" id="bookmarklink_artist_<?=$ArtistID?>" onclick="Bookmark('artist', <?=$ArtistID?>,'[Remove bookmark]');return false;">[Bookmark]</a> <a href="#" id="bookmarklink_artist_<?=$ArtistID?>" onclick="Bookmark('artist', <?=$ArtistID?>,'[Remove bookmark]');return false;">[Bookmark]</a>
<? <?
} }
if (check_perms('site_edit_wiki')) { if (check_perms('site_edit_wiki')) {
?> ?>
<a href="artist.php?action=edit&amp;artistid=<?=$ArtistID?>">[Edit]</a> <a href="artist.php?action=edit&amp;artistid=<?=$ArtistID?>">[Edit]</a>
<? } ?> <? } ?>
<a href="artist.php?action=history&amp;artistid=<?=$ArtistID?>">[View history]</a> <a href="artist.php?action=history&amp;artistid=<?=$ArtistID?>">[View history]</a>
<? if (check_perms('site_delete_artist') && check_perms('torrents_delete')) { ?> <? if (check_perms('site_delete_artist') && check_perms('torrents_delete')) { ?>
<a href="artist.php?action=delete&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Delete]</a> <a href="artist.php?action=delete&amp;artistid=<?=$ArtistID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Delete]</a>
<? } <? }
if ($RevisionID && check_perms('site_edit_wiki')) { if ($RevisionID && check_perms('site_edit_wiki')) {
?> ?>
<a href="artist.php?action=revert&amp;artistid=<?=$ArtistID?>&amp;revisionid=<?=$RevisionID?>&amp;auth=<?=$LoggedUser['AuthKey']?>"> <a href="artist.php?action=revert&amp;artistid=<?=$ArtistID?>&amp;revisionid=<?=$RevisionID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">
[Revert to this revision] [Revert to this revision]
</a> </a>
<? } ?> <? } ?>
</div>
</div> </div>
<div class="sidebar"> <div class="sidebar">
<? if($Image) { ?> <? if($Image) { ?>

View File

@ -122,7 +122,9 @@
} else { } else {
show_header('Merging Artists'); show_header('Merging Artists');
?> ?>
<h2>Confirm merge</h2> <div class="header">
<h2>Confirm merge</h2>
</div>
<form action="artist.php" method="post"> <form action="artist.php" method="post">
<input type="hidden" name="action" value="change_artistid" /> <input type="hidden" name="action" value="change_artistid" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -33,7 +33,9 @@
show_header('Edit artist'); show_header('Edit artist');
?> ?>
<div class="thin"> <div class="thin">
<h2>Edit <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2> <div class="header">
<h2>Edit <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2>
</div>
<div class="box pad"> <div class="box pad">
<form action="artist.php" method="post"> <form action="artist.php" method="post">
<input type="hidden" name="action" value="edit" /> <input type="hidden" name="action" value="edit" />

View File

@ -26,7 +26,9 @@
// Start printing form // Start printing form
?> ?>
<div class="thin"> <div class="thin">
<h2>Revision history for <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2> <div class="header">
<h2>Revision history for <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2>
</div>
<? <?
$Wiki->revision_history(); // the wiki class takes over from here $Wiki->revision_history(); // the wiki class takes over from here
?> ?>

View File

@ -25,20 +25,21 @@
$Results = get_groups($GroupIDs); $Results = get_groups($GroupIDs);
$Results = $Results['matches']; $Results = $Results['matches'];
?> ?>
<div class="linkbox"> <div class="header">
<? if($All) { ?> <? if($All) { ?>
<a href="better.php?method=files">Just those you've snatched</a> <h2>All torrents trumpable for bad file names</h2>
<? } else { ?> <? } else { ?>
<a href="better.php?method=files&amp;filter=all">Show all</a> <h2>Torrents trumpable for bad file names, that you've snatched</h2>
<? } ?> <? } ?>
<div class="linkbox">
<? if($All) { ?>
<a href="better.php?method=files">Just those you've snatched</a>
<? } else { ?>
<a href="better.php?method=files&amp;filter=all">Show all</a>
<? } ?>
</div>
</div> </div>
<? if($All) { ?>
<h2>All torrents trumpable for bad file names</h2>
<? } else { ?>
<h2>Torrents trumpable for bad file names, that you've snatched</h2>
<? } ?>
<div class="thin box pad"> <div class="thin box pad">
<h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3> <h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3>
<table> <table>

View File

@ -25,20 +25,22 @@
$Results = get_groups($GroupIDs); $Results = get_groups($GroupIDs);
$Results = $Results['matches']; $Results = $Results['matches'];
?> ?>
<div class="linkbox"> <div class="header">
<? if($All) { ?>
<a href="better.php?method=folders">Just those you've snatched</a>
<? } else { ?>
<a href="better.php?method=folders&amp;filter=all">Show all</a>
<? } ?>
</div>
<? if($All) { ?> <? if($All) { ?>
<h2>All torrents trumpable for folder names</h2> <h2>All torrents trumpable for folder names</h2>
<? } else { ?> <? } else { ?>
<h2>Torrents trumpable for folder names, that you've snatched</h2> <h2>Torrents trumpable for folder names, that you've snatched</h2>
<? } ?> <? } ?>
<div class="linkbox">
<? if($All) { ?>
<a href="better.php?method=folders">Just those you've snatched</a>
<? } else { ?>
<a href="better.php?method=folders&amp;filter=all">Show all</a>
<? } ?>
</div>
</div>
<div class="thin box pad"> <div class="thin box pad">
<h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3> <h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3>
<table> <table>

View File

@ -25,19 +25,21 @@
$Results = get_groups($GroupIDs); $Results = get_groups($GroupIDs);
$Results = $Results['matches']; $Results = $Results['matches'];
?> ?>
<div class="linkbox"> <div class="header">
<? if($All) { ?> <? if($All) { ?>
<a href="better.php?method=tags">Just those you've snatched</a> <h2>All torrents trumpable for tags</h2>
<? } else { ?> <? } else { ?>
<a href="better.php?method=tags&amp;filter=all">Show all</a> <h2>Torrents trumpable for tags, that you've snatched</h2>
<? } ?> <? } ?>
</div>
<div class="linkbox">
<? if($All) { ?> <? if($All) { ?>
<h2>All torrents trumpable for tags</h2> <a href="better.php?method=tags">Just those you've snatched</a>
<? } else { ?> <? } else { ?>
<h2>Torrents trumpable for tags, that you've snatched</h2> <a href="better.php?method=tags&amp;filter=all">Show all</a>
<? } ?> <? } ?>
</div>
</div>
<div class="thin box pad"> <div class="thin box pad">
<h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3> <h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3>

View File

@ -31,12 +31,14 @@
?> ?>
<div class="thin"> <div class="thin">
<h2><?=$Title?></h2> <div class="header">
<div class="linkbox"> <h2><?=$Title?></h2>
<a href="bookmarks.php?type=torrents">[Torrents]</a> <div class="linkbox">
<a href="bookmarks.php?type=artists">[Artists]</a> <a href="bookmarks.php?type=torrents">[Torrents]</a>
<a href="bookmarks.php?type=collages">[Collages]</a> <a href="bookmarks.php?type=artists">[Artists]</a>
<a href="bookmarks.php?type=requests">[Requests]</a> <a href="bookmarks.php?type=collages">[Collages]</a>
<a href="bookmarks.php?type=requests">[Requests]</a>
</div>
</div> </div>
<div class="box pad" align="center"> <div class="box pad" align="center">
<? if (count($ArtistList) == 0) { ?> <? if (count($ArtistList) == 0) { ?>

View File

@ -310,16 +310,18 @@ function compare($X, $Y){
show_header($Title, 'browse,collage'); show_header($Title, 'browse,collage');
?> ?>
<div class="thin"> <div class="thin">
<h2><? if (!$Sneaky) { ?><a href="feeds.php?feed=torrents_bookmarks_t_<?=$LoggedUser['torrent_pass']?>&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;name=<?=urlencode(SITE_NAME.': Bookmarked Torrents')?>"><img src="<?=STATIC_SERVER?>/common/symbols/rss.png" alt="RSS feed" /></a>&nbsp;<? } ?><?=$Title?></h2> <div class="header">
<div class="linkbox"> <h2><? if (!$Sneaky) { ?><a href="feeds.php?feed=torrents_bookmarks_t_<?=$LoggedUser['torrent_pass']?>&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;name=<?=urlencode(SITE_NAME.': Bookmarked Torrents')?>"><img src="<?=STATIC_SERVER?>/common/symbols/rss.png" alt="RSS feed" /></a>&nbsp;<? } ?><?=$Title?></h2>
<a href="bookmarks.php?type=torrents">[Torrents]</a> <div class="linkbox">
<a href="bookmarks.php?type=artists">[Artists]</a> <a href="bookmarks.php?type=torrents">[Torrents]</a>
<a href="bookmarks.php?type=collages">[Collages]</a> <a href="bookmarks.php?type=artists">[Artists]</a>
<a href="bookmarks.php?type=requests">[Requests]</a> <a href="bookmarks.php?type=collages">[Collages]</a>
<a href="bookmarks.php?type=requests">[Requests]</a>
<? if (count($TorrentList) > 0) { ?> <? if (count($TorrentList) > 0) { ?>
<br /><br /> <br /><br />
<a href="bookmarks.php?action=remove_snatched&amp;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&amp;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>
<? if (count($TorrentList) == 0) { ?> <? if (count($TorrentList) == 0) { ?>
<div class="box pad" align="center"> <div class="box pad" align="center">

View File

@ -8,7 +8,9 @@
if(empty($IRCKey)) { if(empty($IRCKey)) {
?> ?>
<div class="thin"> <div class="thin">
<h3 id="irc">IRC Rules - Please read these carefully!</h3> <div class="header">
<h3 id="irc">IRC Rules - Please read these carefully!</h3>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<p> <p>
<strong>Please set your IRC Key on your <a href="user.php?action=edit&amp;userid=<?=$LoggedUser['ID']?>">profile</a> first! For more information on IRC, please read the <a href="wiki.php?action=article&amp;name=IRC+-+How+to+join">wiki article</a>.</strong> <strong>Please set your IRC Key on your <a href="user.php?action=edit&amp;userid=<?=$LoggedUser['ID']?>">profile</a> first! For more information on IRC, please read the <a href="wiki.php?action=article&amp;name=IRC+-+How+to+join">wiki article</a>.</strong>
@ -20,7 +22,9 @@
if(!isset($_POST["accept"])) { if(!isset($_POST["accept"])) {
?> ?>
<div class="thin"> <div class="thin">
<h3 id="irc">IRC Rules - Please read these carefully!</h3> <div class="header">
<h3 id="irc">IRC Rules - Please read these carefully!</h3>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<ul> <ul>
<li> <li>
@ -88,7 +92,9 @@
} }
?> ?>
<div class="thin"> <div class="thin">
<h3 id="general">IRC</h3> <div class="header">
<h3 id="general">IRC</h3>
</div>
<div class="box pad" style="padding:10px 0px 10px 0px;"> <div class="box pad" style="padding:10px 0px 10px 0px;">
<div style="padding:0px 10px 10px 20px;"> <div style="padding:0px 10px 10px 20px;">
<p>If you have an IRC client, visit <a href="wiki.php?action=article&amp;name=IRC+-+How+to+join">this wiki entry</a> for more information how to connect. (IRC Applet users are automatically identified with Drone.)</p> <p>If you have an IRC client, visit <a href="wiki.php?action=article&amp;name=IRC+-+How+to+join">this wiki entry</a> for more information how to connect. (IRC Applet users are automatically identified with Drone.)</p>

View File

@ -53,15 +53,17 @@
show_header('Comments for collage '.$Name, 'comments,bbcode'); show_header('Comments for collage '.$Name, 'comments,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<h2> <div class="header">
<a href="collages.php">Collages</a> &gt; <h2>
<a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a> <a href="collages.php">Collages</a> &gt;
</h2> <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a>
<div class="linkbox"> </h2>
<div class="linkbox">
<? <?
$Pages=get_pages($Page,$Posts,POSTS_PER_PAGE,9); $Pages=get_pages($Page,$Posts,POSTS_PER_PAGE,9);
echo $Pages; echo $Pages;
?> ?>
</div>
</div> </div>
<? <?

View File

@ -141,11 +141,13 @@
show_header(($BookmarkView)?'Your bookmarked collages':'Browse collages'); show_header(($BookmarkView)?'Your bookmarked collages':'Browse collages');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<? if ($BookmarkView) { ?> <? if ($BookmarkView) { ?>
<h2>Your bookmarked collages</h2> <h2>Your bookmarked collages</h2>
<? } else { ?> <? } else { ?>
<h2>Browse collages<?=(!empty($UserLink) ? (isset($CollageIDs) ? ' with contributions by '.$UserLink : ' started by '.$UserLink) : '')?></h2> <h2>Browse collages<?=(!empty($UserLink) ? (isset($CollageIDs) ? ' with contributions by '.$UserLink : ' started by '.$UserLink) : '')?></h2>
<? } ?> <? } ?>
</div>
<? if (!$BookmarkView) { ?> <? if (!$BookmarkView) { ?>
<div> <div>
<form action="" method="get"> <form action="" method="get">

View File

@ -364,33 +364,35 @@ function compare($X, $Y){
show_header($Name,'browse,collage,bbcode'); show_header($Name,'browse,collage,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=$Name?></h2> <div class="header">
<div class="linkbox"> <h2><?=$Name?></h2>
<a href="collages.php">[List of collages]</a> <div class="linkbox">
<a href="collages.php">[List of collages]</a>
<? if (check_perms('site_collages_create')) { ?> <? if (check_perms('site_collages_create')) { ?>
<a href="collages.php?action=new">[New collage]</a> <a href="collages.php?action=new">[New collage]</a>
<? } ?> <? } ?>
<br /><br /> <br /><br />
<? if(check_perms('site_collages_subscribe')) { ?> <? if(check_perms('site_collages_subscribe')) { ?>
<a href="#" onclick="CollageSubscribe(<?=$CollageID?>);return false;" id="subscribelink<?=$CollageID?>">[<?=(in_array($CollageID, $CollageSubscriptions) ? 'Unsubscribe' : 'Subscribe')?>]</a> <a href="#" onclick="CollageSubscribe(<?=$CollageID?>);return false;" id="subscribelink<?=$CollageID?>">[<?=(in_array($CollageID, $CollageSubscriptions) ? 'Unsubscribe' : 'Subscribe')?>]</a>
<? } <? }
if (check_perms('site_edit_wiki') && !$Locked) { ?> if (check_perms('site_edit_wiki') && !$Locked) { ?>
<a href="collages.php?action=edit&amp;collageid=<?=$CollageID?>">[Edit description]</a> <a href="collages.php?action=edit&amp;collageid=<?=$CollageID?>">[Edit description]</a>
<? } <? }
if(has_bookmarked('collage', $CollageID)) { if(has_bookmarked('collage', $CollageID)) {
?> ?>
<a href="#" id="bookmarklink_collage_<?=$CollageID?>" onclick="Unbookmark('collage', <?=$CollageID?>,'[Bookmark]');return false;">[Remove bookmark]</a> <a href="#" id="bookmarklink_collage_<?=$CollageID?>" onclick="Unbookmark('collage', <?=$CollageID?>,'[Bookmark]');return false;">[Remove bookmark]</a>
<? } else { ?> <? } else { ?>
<a href="#" id="bookmarklink_collage_<?=$CollageID?>" onclick="Bookmark('collage', <?=$CollageID?>,'[Remove bookmark]');return false;">[Bookmark]</a> <a href="#" id="bookmarklink_collage_<?=$CollageID?>" onclick="Bookmark('collage', <?=$CollageID?>,'[Remove bookmark]');return false;">[Bookmark]</a>
<? } <? }
if (check_perms('site_collages_manage') && !$Locked) { ?> if (check_perms('site_collages_manage') && !$Locked) { ?>
<a href="collages.php?action=manage&amp;collageid=<?=$CollageID?>">[Manage torrents]</a> <a href="collages.php?action=manage&amp;collageid=<?=$CollageID?>">[Manage torrents]</a>
<? } ?> <? } ?>
<a href="reports.php?action=report&amp;type=collage&amp;id=<?=$CollageID?>">[Report Collage]</a> <a href="reports.php?action=report&amp;type=collage&amp;id=<?=$CollageID?>">[Report Collage]</a>
<? if (check_perms('site_collages_delete') || $CreatorID == $LoggedUser['ID']) { ?> <? if (check_perms('site_collages_delete') || $CreatorID == $LoggedUser['ID']) { ?>
<a href="collages.php?action=delete&amp;collageid=<?=$CollageID?>&amp;auth=<?=$LoggedUser['AuthKey']?>" onclick="return confirm('Are you sure you want to delete this collage?.');">[Delete]</a> <a href="collages.php?action=delete&amp;collageid=<?=$CollageID?>&amp;auth=<?=$LoggedUser['AuthKey']?>" onclick="return confirm('Are you sure you want to delete this collage?.');">[Delete]</a>
<? } ?> <? } ?>
</div>
</div> </div>
<div class="sidebar"> <div class="sidebar">
<div class="box box_category"> <div class="box box_category">

View File

@ -11,7 +11,9 @@
show_header('Edit collage'); show_header('Edit collage');
?> ?>
<div class="thin"> <div class="thin">
<h2>Edit collage <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a></h2> <div class="header">
<h2>Edit collage <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a></h2>
</div>
<form action="collages.php" method="post"> <form action="collages.php" method="post">
<input type="hidden" name="action" value="edit_handle" /> <input type="hidden" name="action" value="edit_handle" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -37,7 +37,9 @@
<script src="static/functions/jquery.tablesorter.min.js" type="text/javascript"></script> <script src="static/functions/jquery.tablesorter.min.js" type="text/javascript"></script>
<script src="static/functions/sort.js" type="text/javascript"></script> <script src="static/functions/sort.js" type="text/javascript"></script>
<div class="thin"> <div class="thin">
<h2>Manage collage <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a></h2> <div class="header">
<h2>Manage collage <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a></h2>
</div>
<table width="100%"> <table width="100%">
<tr class="colhead"><td>Sorting</td></tr> <tr class="colhead"><td>Sorting</td></tr>
<tr> <tr>
@ -70,7 +72,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?
$Number = 0; $Number = 0;
foreach ($TorrentList as $GroupID=>$Group) { foreach ($TorrentList as $GroupID=>$Group) {
@ -113,7 +115,7 @@
</td> </td>
</form> </form>
</tr> </tr>
<?php } ?> <? } ?>
</tbody> </tbody>
</table> </table>
<div class="drag_drop_save hidden"> <div class="drag_drop_save hidden">
@ -129,4 +131,4 @@
</div> </div>
</form> </form>
</div> </div>
<?php show_footer(); ?> <? show_footer(); ?>

View File

@ -93,16 +93,18 @@
$DB->set_query_id($Comments); $DB->set_query_id($Comments);
?><div class="thin"> ?><div class="thin">
<h2> <div class="header">
<?=$Header?> <h2><?=$Header?></h2>
</h2> <? if ($OtherLink !== '') { ?>
<div class="linkbox">
<div class="linkbox"> <?=$OtherLink?>
<?=$OtherLink?> </div>
<br /><br /> <? } ?>
<?=$Pages?>
</div> </div>
<?php <div class="linkbox">
<?=$Pages?>
</div>
<?
while(list($UserID, $TorrentID, $GroupID, $Title, $PostID, $Body, $AddedTime, $EditedTime, $EditorID) = $DB->next_record()) { while(list($UserID, $TorrentID, $GroupID, $Title, $PostID, $Body, $AddedTime, $EditedTime, $EditorID) = $DB->next_record()) {
$UserInfo = user_info($UserID); $UserInfo = user_info($UserID);

View File

@ -3,7 +3,9 @@
show_header('Donation Canceled'); show_header('Donation Canceled');
?> ?>
<div class="thin"> <div class="thin">
<h3 id="forums">Donation Canceled</h3> <div class="header">
<h3 id="forums">Donation Canceled</h3>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<p>It's the thought that counts. Please reconsider donating in the future.</p> <p>It's the thought that counts. Please reconsider donating in the future.</p>
</div> </div>

View File

@ -3,7 +3,9 @@
show_header('Donation Complete'); show_header('Donation Complete');
?> ?>
<div class="thin"> <div class="thin">
<h3 id="forums">Donation Complete</h3> <div class="header">
<h3 id="forums">Donation Complete</h3>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<p>Thank you for your donation! If this is your first time donating you will now have received 2 invitations and a <img src="<?=STATIC_SERVER?>common/symbols/donor.png" alt="Donor" />.</p> <p>Thank you for your donation! If this is your first time donating you will now have received 2 invitations and a <img src="<?=STATIC_SERVER?>common/symbols/donor.png" alt="Donor" />.</p>
</div> </div>

View File

@ -23,7 +23,9 @@
<!-- Donate --> <!-- Donate -->
<div class="thin"> <div class="thin">
<? if (check_perms('site_debug')) { ?> <? if (check_perms('site_debug')) { ?>
<h3>Test IPN</h3> <div class="header">
<h3>Test IPN</h3>
</div>
<div class="box pad"> <div class="box pad">
<form method="post" action="donate.php"> <form method="post" action="donate.php">
<input type="hidden" name="action" value="ipn"> <input type="hidden" name="action" value="ipn">
@ -43,7 +45,9 @@
<? <?
} }
?> ?>
<h3>Donate</h3> <div class="header">
<h3>Donate</h3>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<p>We accept donations to cover the costs associated with running the site and tracker. These costs come from the rental and purchase of the hardware the site runs on (Servers, Components, etc.), in addition to operating expenses (Bandwidth, Power, etc.).</p> <p>We accept donations to cover the costs associated with running the site and tracker. These costs come from the rental and purchase of the hardware the site runs on (Servers, Components, etc.), in addition to operating expenses (Bandwidth, Power, etc.).</p>
<p>Because we do not have any advertisements or sponsorships and this service is provided free of charge, we are entirely reliant upon user donations. If you are financially able, please consider making a donation to help us pay the bills!</p> <p>Because we do not have any advertisements or sponsorships and this service is provided free of charge, we are entirely reliant upon user donations. If you are financially able, please consider making a donation to help us pay the bills!</p>

View File

@ -22,7 +22,9 @@
<!-- Donate --> <!-- Donate -->
<div class="thin"> <div class="thin">
<? if (check_perms('site_debug')) { ?> <? if (check_perms('site_debug')) { ?>
<h3>Test IPN</h3> <div class="header">
<h3>Test IPN</h3>
</div>
<div class="box pad"> <div class="box pad">
<form method="post" action="donate.php"> <form method="post" action="donate.php">
<input type="hidden" name="action" value="ipn"> <input type="hidden" name="action" value="ipn">
@ -42,7 +44,9 @@
<? <?
} }
?> ?>
<h3>Donate</h3> <div class="header">
<h3>Donate</h3>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<p>We accept donations to cover the costs associated with running the site and tracker. These costs come from the rental and purchase of the hardware the site runs on (Servers, Components, etc.), in addition to operating expenses (Bandwidth, Power, etc.).</p> <p>We accept donations to cover the costs associated with running the site and tracker. These costs come from the rental and purchase of the hardware the site runs on (Servers, Components, etc.), in addition to operating expenses (Bandwidth, Power, etc.).</p>
<p>Because we do not have any advertisements or sponsorships and this service is provided free of charge, we are entirely reliant upon user donations. If you are financially able, please consider making a donation to help us pay the bills!</p> <p>Because we do not have any advertisements or sponsorships and this service is provided free of charge, we are entirely reliant upon user donations. If you are financially able, please consider making a donation to help us pay the bills!</p>

View File

@ -50,7 +50,9 @@ function notify ($Channel, $Message) {
show_header($Title); show_header($Title);
?> ?>
<div class="thin"> <div class="thin">
<h2><?=$Title?></h2> <div class="header">
<h2><?=$Title?></h2>
</div>
<div class="box pad"> <div class="box pad">
<p><?=$Description?></p> <p><?=$Description?></p>
</div> </div>

View File

@ -33,13 +33,15 @@
show_header(); show_header();
?> ?>
<div class="thin box pad"> <div class="thin box pad">
<h2> <div class="header">
<a href="forums.php">Forums</a> <h2>
&gt; <a href="forums.php">Forums</a>
<a href="forums.php?action=viewforum&amp;forumid=<?=$ForumID?>"><?=$Forums[$ForumID]['Name']?></a> &gt;
&gt; <a href="forums.php?action=viewforum&amp;forumid=<?=$ForumID?>"><?=$Forums[$ForumID]['Name']?></a>
Edit forum specific rules &gt;
</h2> Edit forum specific rules
</h2>
</div>
<table> <table>
<tr class="colhead"> <tr class="colhead">
<td>Thread ID</td> <td>Thread ID</td>

View File

@ -47,7 +47,9 @@
// Start printing stuff // Start printing stuff
?> ?>
<div class="thin"> <div class="thin">
<h2>Friends list</h2> <div class="header">
<h2>Friends list</h2>
</div>
<div class="linkbox"> <div class="linkbox">
<? <?
// Pagination // Pagination

View File

@ -20,7 +20,9 @@
show_header('Compose', 'inbox,bbcode'); show_header('Compose', 'inbox,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<h2>Send a message to <a href="user.php?id=<?=$ToID?>"><?=$Username?></a></h2> <div class="header">
<h2>Send a message to <a href="user.php?id=<?=$ToID?>"><?=$Username?></a></h2>
</div>
<form action="inbox.php" method="post" id="messageform"> <form action="inbox.php" method="post" id="messageform">
<div class="box pad"> <div class="box pad">
<input type="hidden" name="action" value="takecompose" /> <input type="hidden" name="action" value="takecompose" />

View File

@ -41,7 +41,9 @@
$DB->set_query_id($Log); $DB->set_query_id($Log);
?> ?>
<div class="thin"> <div class="thin">
<h2>Site log</h2> <div class="header">
<h2>Site log</h2>
</div>
<div> <div>
<form action="" method="get"> <form action="" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
@ -57,8 +59,6 @@
</form> </form>
</div> </div>
<div class="linkbox"> <div class="linkbox">
<? <?
$Pages=get_pages($Page,$Results,LOG_ENTRIES_PER_PAGE,9); $Pages=get_pages($Page,$Results,LOG_ENTRIES_PER_PAGE,9);

View File

@ -68,7 +68,9 @@ function toggle_visibility(id) {
} }
?> ?>
<div class="thin"> <div class="thin">
<h3 id="general">Disabled IRC</h3> <div class="header">
<h3 id="general">Disabled IRC</h3>
</div>
<div class="box pad" style="padding:10px 0px 10px 0px;"> <div class="box pad" style="padding:10px 0px 10px 0px;">
<div style="padding:0px 10px 10px 20px;"> <div style="padding:0px 10px 10px 20px;">
<p>Please read the topic carefully.</p> <p>Please read the topic carefully.</p>

View File

@ -103,7 +103,9 @@
show_header('Report a '.$Type['title'],'bbcode'); show_header('Report a '.$Type['title'],'bbcode');
?> ?>
<div class="thin"> <div class="thin">
<h2>Report <?=$Type['title']?></h2> <div class="header">
<h2>Report <?=$Type['title']?></h2>
</div>
<h3>Reporting guidelines</h3> <h3>Reporting guidelines</h3>
<div class="box pad"> <div class="box pad">
<p>Following these guidelines will help the moderators deal with your report in a timely fashion. </p> <p>Following these guidelines will help the moderators deal with your report in a timely fashion. </p>

View File

@ -71,40 +71,42 @@
// Start printing stuff // Start printing stuff
?> ?>
<div class="thin"> <div class="thin">
<h2>Active Reports</h2> <div class="header">
<div class="linkbox"> <h2>Active Reports</h2>
<a href="reports.php">New</a> | <div class="linkbox">
<a href="reports.php?view=old">Old</a> | <a href="reports.php">New</a> |
<a href="reports.php?action=stats">Stats</a> <a href="reports.php?view=old">Old</a> |
</div> <a href="reports.php?action=stats">Stats</a>
<div class="linkbox"> </div>
</div>
<div class="linkbox">
<? <?
// pagination // pagination
$Pages = get_pages($Page,$Results,REPORTS_PER_PAGE,11); $Pages = get_pages($Page,$Results,REPORTS_PER_PAGE,11);
echo $Pages; echo $Pages;
?> ?>
</div> </div>
<? <?
while(list($ReportID, $SnitchID, $SnitchName, $ThingID, $Short, $ReportedTime, $Reason, $Status) = $DB->next_record()) { while(list($ReportID, $SnitchID, $SnitchName, $ThingID, $Short, $ReportedTime, $Reason, $Status) = $DB->next_record()) {
$Type = $Types[$Short]; $Type = $Types[$Short];
$Reference = "reports.php?id=".$ReportID."#report".$ReportID; $Reference = "reports.php?id=".$ReportID."#report".$ReportID;
?> ?>
<div id="report<?=$ReportID?>"> <div id="report<?=$ReportID?>">
<form action="reports.php" method="post"> <form action="reports.php" method="post">
<div> <div>
<input type="hidden" name="reportid" value="<?=$ReportID?>" /> <input type="hidden" name="reportid" value="<?=$ReportID?>" />
<input type="hidden" name="action" value="takeresolve" /> <input type="hidden" name="action" value="takeresolve" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
</div> </div>
<table cellpadding="5" id="report_<?=$ReportID?>"> <table cellpadding="5" id="report_<?=$ReportID?>">
<tr> <tr>
<td><strong><a href="<?=$Reference?>">Report</a></strong></td> <td><strong><a href="<?=$Reference?>">Report</a></strong></td>
<td><strong><?=$Type['title']?></strong> was reported by <a href="user.php?id=<?=$SnitchID?>"><?=$SnitchName?></a> <?=time_diff($ReportedTime)?></td> <td><strong><?=$Type['title']?></strong> was reported by <a href="user.php?id=<?=$SnitchID?>"><?=$SnitchName?></a> <?=time_diff($ReportedTime)?></td>
</tr> </tr>
<tr> <tr>
<td class="center" colspan="2"> <td class="center" colspan="2">
<strong> <strong>
<? <?
switch($Short) { switch($Short) {
case "user" : case "user" :
@ -191,32 +193,32 @@
break; break;
} }
?> ?>
</strong> </strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"><?=$Text->full_format($Reason)?></td> <td colspan="2"><?=$Text->full_format($Reason)?></td>
</tr> </tr>
<? if($Status != "Resolved") { ?> <? if($Status != "Resolved") { ?>
<tr> <tr>
<td class="center" colspan="2"> <td class="center" colspan="2">
<input type="submit" name="submit" value="Resolved" /> <input type="submit" name="submit" value="Resolved" />
</td> </td>
</tr> </tr>
<? } ?> <? } ?>
</table> </table>
</form> </form>
</div> </div>
<br /> <br />
<? <?
$DB->set_query_id($Reports); $DB->set_query_id($Reports);
} }
?> ?>
</div> <div class="linkbox">
<div class="linkbox">
<? <?
echo $Pages; echo $Pages;
?> ?>
</div>
</div> </div>
<? <?
show_footer(); show_footer();

View File

@ -7,11 +7,13 @@
show_header('Other reports stats'); show_header('Other reports stats');
?> ?>
<h2>Other reports stats!</h2> <div class="header">
<div class="linkbox"> <h2>Other reports stats!</h2>
<a href="reports.php">New</a> | <div class="linkbox">
<a href="reports.php?view=old">Old</a> | <a href="reports.php">New</a> |
<a href="reports.php?action=stats">Stats</a> <a href="reports.php?view=old">Old</a> |
<a href="reports.php?action=stats">Stats</a>
</div>
</div> </div>
<div class="box pad thin" style="padding: 0px 0px 0px 20px; margin-left: auto; margin-right: auto"> <div class="box pad thin" style="padding: 0px 0px 0px 20px; margin-left: auto; margin-right: auto">
<? <?

View File

@ -19,7 +19,9 @@
?> ?>
<div class="thin"> <div class="thin">
<h2>Report a torrent</h2> <div class="header">
<h2>Report a torrent</h2>
</div>
<form action="reportsv2.php?action=takereport" enctype="multipart/form-data" method="post" id="report_table"> <form action="reportsv2.php?action=takereport" enctype="multipart/form-data" method="post" id="report_table">
<div> <div>

View File

@ -22,10 +22,11 @@ function Taste(torrent_id, report_id, taste) {
}); });
} }
</script> </script>
<?
include('header.php'); <div class="header">
?> <h2>New reports, auto assigned!</h2>
<h2>New reports, auto assigned!</h2> <? include('header.php'); ?>
</div>
<div class="buttonbox thin center"> <div class="buttonbox thin center">
<input type="button" onclick="AddMore();" value="Add More" /><input type="text" name="repop_amount" id="repop_amount" size="2" value="10" /> <input type="button" onclick="AddMore();" value="Add More" /><input type="text" name="repop_amount" id="repop_amount" size="2" value="10" />
| <span title="Changes whether to automatically replace resolved ones with new ones"><input type="checkbox" checked="checked" id="dynamic"/> <label for="dynamic">Dynamic</label></span> | <span title="Changes whether to automatically replace resolved ones with new ones"><input type="checkbox" checked="checked" id="dynamic"/> <label for="dynamic">Dynamic</label></span>

View File

@ -7,9 +7,12 @@
} }
show_header('Reports V2!', 'reportsv2'); show_header('Reports V2!', 'reportsv2');
include('header.php');
?> ?>
<h2>Search</h2> <div class="header">
<h2>Search</h2>
<? include('header.php'); ?>
</div>
<br /> <br />
On hold until FZeroX fixes the main torrents search, then I will steal all his work and claim it as my own. On hold until FZeroX fixes the main torrents search, then I will steal all his work and claim it as my own.
<? <?

View File

@ -187,10 +187,12 @@
$PageLinks=get_pages($Page,$Results,REPORTS_PER_PAGE,11); $PageLinks=get_pages($Page,$Results,REPORTS_PER_PAGE,11);
show_header('Reports V2!', 'reportsv2,bbcode'); show_header('Reports V2!', 'reportsv2,bbcode');
include('header.php');
?> ?>
<h2><?=$Title?></h2> <div class="header">
<h2><?=$Title?></h2>
<? include('header.php'); ?>
</div>
<div class="buttonbox thin center"> <div class="buttonbox thin center">
<? if($View != "resolved") { ?> <? if($View != "resolved") { ?>
<span title="Resolves *all* checked reports with their respective resolutions"><input type="button" onclick="MultiResolve();" value="Multi-Resolve" /></span> <span title="Resolves *all* checked reports with their respective resolutions"><input type="button" onclick="MultiResolve();" value="Multi-Resolve" /></span>

View File

@ -10,7 +10,7 @@
} }
show_header('Reports V2!', 'reportsv2'); show_header('Reports V2!', 'reportsv2');
include('header.php');
//Grab owners ID, just for examples //Grab owners ID, just for examples
$DB->query("SELECT ID, Username FROM users_main ORDER BY ID ASC LIMIT 1"); $DB->query("SELECT ID, Username FROM users_main ORDER BY ID ASC LIMIT 1");
@ -18,7 +18,10 @@
$Owner = display_str($Owner); $Owner = display_str($Owner);
?> ?>
<h2>Reports v2 Information!</h2> <div class="header">
<h2>Reports v2 Information!</h2>
<? include('header.php'); ?>
</div>
<br /> <br />
<div class="box pad thin" style="padding: 0px 0px 0px 20px; width: 70%; margin-left: auto; margin-right: auto"> <div class="box pad thin" style="padding: 0px 0px 0px 20px; width: 70%; margin-left: auto; margin-right: auto">
<table><tr><td style="width: 50%;"> <table><tr><td style="width: 50%;">

View File

@ -121,7 +121,9 @@
show_header(($NewRequest ? "Create a request" : "Edit a request"), 'requests'); show_header(($NewRequest ? "Create a request" : "Edit a request"), 'requests');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=($NewRequest ? "Create a request" : "Edit a request")?></h2> <div class="header">
<h2><?=($NewRequest ? "Create a request" : "Edit a request")?></h2>
</div>
<div class="box pad"> <div class="box pad">
<form action="" method="post" id="request_form" onsubmit="Calculate();"> <form action="" method="post" id="request_form" onsubmit="Calculate();">

View File

@ -85,25 +85,26 @@
?> ?>
<div class="thin"> <div class="thin">
<h2><a href="requests.php">Requests</a> &gt; <?=$CategoryName?> &gt; <?=$DisplayLink?></h2> <div class="header">
<div class="linkbox"> <h2><a href="requests.php">Requests</a> &gt; <?=$CategoryName?> &gt; <?=$DisplayLink?></h2>
<div class="linkbox">
<? if($CanEdit) { ?> <? if($CanEdit) { ?>
<a href="requests.php?action=edit&amp;id=<?=$RequestID?>">[Edit]</a> <a href="requests.php?action=edit&amp;id=<?=$RequestID?>">[Edit]</a>
<? } <? }
if($UserCanEdit || check_perms('users_mod')) { //check_perms('site_moderate_requests')) { ?> if($UserCanEdit || check_perms('users_mod')) { //check_perms('site_moderate_requests')) { ?>
<a href="requests.php?action=delete&amp;id=<?=$RequestID?>">[Delete]</a> <a href="requests.php?action=delete&amp;id=<?=$RequestID?>">[Delete]</a>
<? } ?> <? } ?>
<? if(has_bookmarked('request', $RequestID)) { ?> <? if(has_bookmarked('request', $RequestID)) { ?>
<a href="#" id="bookmarklink_request_<?=$RequestID?>" onclick="Unbookmark('request', <?=$RequestID?>,'[Bookmark]');return false;">[Remove bookmark]</a> <a href="#" id="bookmarklink_request_<?=$RequestID?>" onclick="Unbookmark('request', <?=$RequestID?>,'[Bookmark]');return false;">[Remove bookmark]</a>
<? } else { ?> <? } else { ?>
<a href="#" id="bookmarklink_request_<?=$RequestID?>" onclick="Bookmark('request', <?=$RequestID?>,'[Remove bookmark]');return false;">[Bookmark]</a> <a href="#" id="bookmarklink_request_<?=$RequestID?>" onclick="Bookmark('request', <?=$RequestID?>,'[Remove bookmark]');return false;">[Bookmark]</a>
<? } ?> <? } ?>
<a href="reports.php?action=report&amp;type=request&amp;id=<?=$RequestID?>">[Report Request]</a> <a href="reports.php?action=report&amp;type=request&amp;id=<?=$RequestID?>">[Report Request]</a>
<? if(!$IsFilled) { ?> <? if(!$IsFilled) { ?>
<a href="upload.php?requestid=<?=$RequestID?><?=($GroupID?"&groupid=$GroupID":'')?>">[Upload Request]</a> <a href="upload.php?requestid=<?=$RequestID?><?=($GroupID?"&groupid=$GroupID":'')?>">[Upload Request]</a>
<? } <? }
if(!$IsFilled && (($CategoryID == 0) || ($CategoryName == "Music" && $Year == 0))) { ?> if(!$IsFilled && (($CategoryID == 0) || ($CategoryName == "Music" && $Year == 0))) { ?>
<a href="reports.php?action=report&amp;type=request_update&amp;id=<?=$RequestID?>">[Request Update]</a> <a href="reports.php?action=report&amp;type=request_update&amp;id=<?=$RequestID?>">[Request Update]</a>
<? } ?> <? } ?>
<? <?
@ -118,11 +119,10 @@
$google_url = "https://www.google.com/search?&tbm=shop&q=" . $encoded_artist . " " . $encoded_title; $google_url = "https://www.google.com/search?&tbm=shop&q=" . $encoded_artist . " " . $encoded_title;
?> ?>
<a href="<? echo $worldcat_url; ?>">[Find in Library]</a> <a href="<? echo $worldcat_url; ?>">[Find in Library]</a>
<a href="<? echo $google_url; ?>">[Find in Stores]</a> <a href="<? echo $google_url; ?>">[Find in Stores]</a>
</div>
</div> </div>
<div class="sidebar"> <div class="sidebar">
<? if($CategoryID != 0) { ?> <? if($CategoryID != 0) { ?>
<div class="box box_image box_image_albumart box_albumart"><!-- .box_albumart deprecated --> <div class="box box_image box_image_albumart box_albumart"><!-- .box_albumart deprecated -->

View File

@ -285,8 +285,9 @@
?> ?>
<div class="thin"> <div class="thin">
<h2><?=$Title?></h2> <div class="header">
<div class="linkbox"> <h2><?=$Title?></h2>
<div class="linkbox">
<? if (!$BookmarkView) { ?> <? if (!$BookmarkView) { ?>
<? if(check_perms('site_submit_requests')){ ?> <? if(check_perms('site_submit_requests')){ ?>
<a href="requests.php?action=new">[New request]</a> <a href="requests.php?action=new">[New request]</a>
@ -301,6 +302,7 @@
<a href="bookmarks.php?type=collages">[Collages]</a> <a href="bookmarks.php?type=collages">[Collages]</a>
<a href="bookmarks.php?type=requests">[Requests]</a> <a href="bookmarks.php?type=requests">[Requests]</a>
<? } ?> <? } ?>
</div>
</div> </div>
<div> <div>
<form action="" method="get"> <form action="" method="get">

View File

@ -245,15 +245,17 @@ show_header($Title, 'requests');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=$Title?></h2> <div class="header">
<div class="linkbox"> <h2><?=$Title?></h2>
<div class="linkbox">
<? if(check_perms('site_submit_requests')){ ?> <? if(check_perms('site_submit_requests')){ ?>
<a href="requests.php?action=new">[New request]</a> <a href="requests.php?action=new">[New request]</a>
<a href="requests.php?type=created">[My requests]</a> <a href="requests.php?type=created">[My requests]</a>
<? } <? }
if(check_perms('site_vote')){?> if(check_perms('site_vote')){?>
<a href="requests.php?type=voted">[Requests I've voted on]</a> <a href="requests.php?type=voted">[Requests I've voted on]</a>
<? } ?> <? } ?>
</div>
</div> </div>
<div class="center"> <div class="center">
<form action="" method="get"> <form action="" method="get">

View File

@ -8,14 +8,16 @@
} }
?> ?>
<div class="thin"> <div class="thin">
<h2 class="center">Client Whitelist</h2> <div class="header">
<div class="box pad"> <h2 class="center">Client Whitelist</h2>
<p>Client rules are how we maintain the integrity of our swarms. This allows us to filter out disruptive and dishonest clients that may hurt the performance of either the tracker or individual peers.</p> </div>
<table cellpadding="5" cellspacing="1" border="0" class="border" width="100%"> <div class="box pad">
<tr class="colhead"> <p>Client rules are how we maintain the integrity of our swarms. This allows us to filter out disruptive and dishonest clients that may hurt the performance of either the tracker or individual peers.</p>
<td style="width:150px;"><strong>Allowed Client</strong></td> <table cellpadding="5" cellspacing="1" border="0" class="border" width="100%">
<!-- td style="width:400px;"><strong>Additional Notes</strong></td> --> <tr class="colhead">
</tr> <td style="width:150px;"><strong>Allowed Client</strong></td>
<!-- td style="width:400px;"><strong>Additional Notes</strong></td> -->
</tr>
<? <?
$Row = 'a'; $Row = 'a';
foreach($WhitelistedClients as $Client) { foreach($WhitelistedClients as $Client) {

View File

@ -3,7 +3,9 @@
show_header('Collages Rules'); show_header('Collages Rules');
?> ?>
<div class="thin"> <div class="thin">
<h2 class="center">Collages</h2> <div class="header">
<h2 class="center">Collages</h2>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<ul> <ul>
<li>Collages in the Discography, Staff Picks, Label, and Charts categories must be based on fact, and not opinion. If something is a published Best Of (for instance, "Pitchfork's Best Albums of the 1990's") then it should go in the Charts category.</li> <li>Collages in the Discography, Staff Picks, Label, and Charts categories must be based on fact, and not opinion. If something is a published Best Of (for instance, "Pitchfork's Best Albums of the 1990's") then it should go in the Charts category.</li>

View File

@ -3,7 +3,9 @@
show_header('Ratio Requirements'); show_header('Ratio Requirements');
?> ?>
<div class="thin"> <div class="thin">
<h2 class="center">Ratio Rules</h2> <div class="header">
<h2 class="center">Ratio Rules</h2>
</div>
<div class="box pad"> <div class="box pad">
<p> <p>
Your ratio is the amount you've uploaded divided by the amount you've downloaded. Your ratio is the amount you've uploaded divided by the amount you've downloaded.

View File

@ -3,7 +3,9 @@
show_header('Request Rules'); show_header('Request Rules');
?> ?>
<div class="thin"> <div class="thin">
<h2 class="center">Requests</h2> <div class="header">
<h2 class="center">Requests</h2>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<ul> <ul>
<li> <li>

View File

@ -4,7 +4,9 @@
?> ?>
<!-- General Rules --> <!-- General Rules -->
<div class="thin"> <div class="thin">
<h3 id="general">Golden Rules</h3> <div class="header">
<h3 id="general">Golden Rules</h3>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<ul> <ul>
<li> <li>

View File

@ -4,7 +4,9 @@
?> ?>
<!-- General Rules --> <!-- General Rules -->
<div class="thin"> <div class="thin">
<h3 id="general">Tagging rules</h3> <div class="header">
<h3 id="general">Tagging rules</h3>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
<ul> <ul>
<li>Tags should be comma separated, and you should use a period ('.') to separate words inside a tag - eg. '<strong style="color:green;">hip.hop</strong>'. <li>Tags should be comma separated, and you should use a period ('.') to separate words inside a tag - eg. '<strong style="color:green;">hip.hop</strong>'.

View File

@ -292,17 +292,29 @@ function next_hour() {
$DB->query("UPDATE users_info SET Warned='0000-00-00 00:00:00' WHERE Warned<'$sqltime'"); $DB->query("UPDATE users_info SET Warned='0000-00-00 00:00:00' WHERE Warned<'$sqltime'");
// If a user has downloaded more than 10 gigs while on ratio watch, banhammer // If a user has downloaded more than 10 gigs while on ratio watch disable leeching and send message
$DB->query("SELECT ID FROM users_info AS i JOIN users_main AS m ON m.ID=i.UserID $DB->query("SELECT ID FROM users_info AS i JOIN users_main AS m ON m.ID=i.UserID
WHERE i.RatioWatchEnds!='0000-00-00 00:00:00' WHERE i.RatioWatchEnds!='0000-00-00 00:00:00'
AND i.RatioWatchDownload+10*1024*1024*1024<m.Downloaded AND i.RatioWatchDownload+10*1024*1024*1024<m.Downloaded
And m.Enabled='1'"); And m.Enabled='1'");
$UserIDs = $DB->collect('ID'); $UserIDs = $DB->collect('ID' );
if(count($UserIDs) > 0) { if(count($UserIDs) > 0) {
disable_users($UserIDs, "Disabled by ratio watch system for downloading more than 10 gigs on ratio watch.", 2); $Subject = 'Leeching Disabled';
$Message = 'You have downloaded more then 10gb while on Ratio Watch. Your Leeching privleges have been disabled. Please reread the rules and refer to this guide on how to improve your ratio https://ssl.what.cd/wiki.php?action=article&id=110';
foreach($UserIDs as $UserID) {
send_pm($UserID,0,db_string($Subject),db_string($Message));
} }
$DB->query("UPDATE users_info AS i JOIN users_main AS m ON m.ID=i.UserID
SET
m.can_leech='0',
i.AdminComment=CONCAT('$sqltime - Leeching ability disabled by ratio watch system - required ratio: ', m.RequiredRatio,'
' , i.AdminComment)
WHERE m.ID IN(".implode(',',$UserIDs).")");
}
} }
/*************************************************************************\ /*************************************************************************\

View File

@ -10,7 +10,9 @@
?> ?>
<div class="thin"> <div class="thin">
<h2><?=SITE_NAME?> Staff</h2> <div class="header">
<h2><?=SITE_NAME?> Staff</h2>
</div>
<div class="box pad" style="padding:0px 10px 10px 10px;"> <div class="box pad" style="padding:0px 10px 10px 10px;">
<br /> <br />
<h3>Contact Staff</h3> <h3>Contact Staff</h3>

View File

@ -11,20 +11,22 @@
?> ?>
<div class="thin"> <div class="thin">
<h2>Staff PMs - Manage common responses</h2> <div class="header">
<div class="linkbox"> <h2>Staff PMs - Manage common responses</h2>
<div class="linkbox">
<? if ($IsStaff) { ?> <? if ($IsStaff) { ?>
<a href="staffpm.php">[My unanswered]</a> <a href="staffpm.php">[My unanswered]</a>
<? } ?> <? } ?>
<a href="staffpm.php?view=unanswered">[All unanswered]</a> <a href="staffpm.php?view=unanswered">[All unanswered]</a>
<a href="staffpm.php?view=open">[Open]</a> <a href="staffpm.php?view=open">[Open]</a>
<a href="staffpm.php?view=resolved">[Resolved]</a> <a href="staffpm.php?view=resolved">[Resolved]</a>
<? if ($ConvID = (int)$_GET['convid']) { ?> <? if ($ConvID = (int)$_GET['convid']) { ?>
<a href="staffpm.php?action=viewconv&id=<?=$ConvID?>">[Back to conversation]</a> <a href="staffpm.php?action=viewconv&id=<?=$ConvID?>">[Back to conversation]</a>
<? } ?> <? } ?>
<br /> </div>
<br />
</div> </div>
<br />
<br />
<div id="commonresponses" class="center"> <div id="commonresponses" class="center">
<br /> <br />
<div id="ajax_message_0" class="hidden center alertbar"></div> <div id="ajax_message_0" class="hidden center alertbar"></div>

View File

@ -79,16 +79,20 @@
// Start page // Start page
?> ?>
<div class="thin"> <div class="thin">
<h2><?=$ViewString?> Staff PMs</h2> <div class="header">
<div class="linkbox"> <h2><?=$ViewString?> Staff PMs</h2>
<div class="linkbox">
<? if ($IsStaff) { <? if ($IsStaff) {
?> <a href="staffpm.php">[My unanswered]</a> ?> <a href="staffpm.php">[My unanswered]</a>
<? } ?> <? } ?>
<a href="staffpm.php?view=unanswered">[All unanswered]</a> <a href="staffpm.php?view=unanswered">[All unanswered]</a>
<a href="staffpm.php?view=open">[Open]</a> <a href="staffpm.php?view=open">[Open]</a>
<a href="staffpm.php?view=resolved">[Resolved]</a> <a href="staffpm.php?view=resolved">[Resolved]</a>
<br /> </div>
<br /> </div>
<br />
<br />
<div class="linkbox">
<?=$Pages?> <?=$Pages?>
</div> </div>
<div class="box pad" id="inbox"> <div class="box pad" id="inbox">

View File

@ -23,12 +23,14 @@
// Start page // Start page
?> ?>
<div class="thin"> <div class="thin">
<h2>Staff PMs</h2> <div class="header">
<div class="linkbox"> <h2>Staff PMs</h2>
<a href="#" onClick="$('#compose').toggle();">[Compose New]</a> <div class="linkbox">
<br /> <a href="#" onClick="$('#compose').toggle();">[Compose New]</a>
<br /> </div>
</div> </div>
<br />
<br />
<? print_compose_staff_pm(true); ?> <? print_compose_staff_pm(true); ?>
<div class="box pad" id="inbox"> <div class="box pad" id="inbox">
<? <?

View File

@ -30,34 +30,35 @@
?> ?>
<div id="thin"> <div id="thin">
<h2>Staff PM - <?=display_str($Subject)?></h2> <div class="header">
<div class="linkbox"> <h2>Staff PM - <?=display_str($Subject)?></h2>
<div class="linkbox">
<? <?
// Staff only // Staff only
if ($IsStaff) { if ($IsStaff) {
?> ?>
<a href="staffpm.php">[My unanswered]</a> <a href="staffpm.php">[My unanswered]</a>
<? <?
} }
// FLS/Staff // FLS/Staff
if ($IsFLS) { if ($IsFLS) {
?> ?>
<a href="staffpm.php?view=unanswered">[All unanswered]</a> <a href="staffpm.php?view=unanswered">[All unanswered]</a>
<a href="staffpm.php?view=open">[Open]</a> <a href="staffpm.php?view=open">[Open]</a>
<a href="staffpm.php?view=resolved">[Resolved]</a> <a href="staffpm.php?view=resolved">[Resolved]</a>
<? <?
// User // User
} else { } else {
?> ?>
<a href="staffpm.php">[Back to inbox]</a> <a href="staffpm.php">[Back to inbox]</a>
<? <?
} }
?> ?> </div>
<br />
<br />
</div> </div>
<br />
<br />
<div id="inbox"> <div id="inbox">
<? <?
// Get messages // Get messages

View File

@ -11,7 +11,9 @@
WHERE BitcoinAddress IS NOT NULL ORDER BY m.Username ASC"); WHERE BitcoinAddress IS NOT NULL ORDER BY m.Username ASC");
?> ?>
<div class="thin"> <div class="thin">
<h3><?=$Balance?></h3> <div class="header">
<h3><?=$Balance?></h3>
</div>
<table> <table>
<tr> <tr>
<th>Username</th> <th>Username</th>

View File

@ -74,8 +74,9 @@
$DB->set_query_id($Bans); $DB->set_query_id($Bans);
?> ?>
<h2>IP Bans</h2> <div class="header">
<h2>IP Bans</h2>
</div>
<div> <div>
<form action="" method="get"> <form action="" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">

View File

@ -12,7 +12,9 @@
LEFT JOIN users_main AS um ON um.ID=d.UserID LEFT JOIN users_main AS um ON um.ID=d.UserID
ORDER BY d.Time DESC"); ORDER BY d.Time DESC");
?> ?>
<h2>Do Not Uploads</h2> <div class="header">
<h2>Do Not Uploads</h2>
</div>
<table> <table>
<tr class="colhead"> <tr class="colhead">
<td>Name</td> <td>Name</td>

View File

@ -12,7 +12,9 @@
FROM email_blacklist AS eb FROM email_blacklist AS eb
ORDER BY eb.Time DESC"); ORDER BY eb.Time DESC");
?> ?>
<h2>Email Blacklist</h2> <div class="header">
<h2>Email Blacklist</h2>
</div>
<table> <table>
<tr class="colhead"> <tr class="colhead">
<td>Email</td> <td>Email</td>

View File

@ -48,8 +48,9 @@ function class_list($Selected=0){
FROM forums FROM forums
ORDER BY CategoryID, Sort ASC'); ORDER BY CategoryID, Sort ASC');
?> ?>
<div class="header">
<h2>Forum control panel</h2> <h2>Forum control panel</h2>
</div>
<table width="100%"> <table width="100%">
<tr class="colhead"> <tr class="colhead">
<td>Category</td> <td>Category</td>

View File

@ -21,22 +21,24 @@
ORDER BY l.BannedUntil ASC'); ORDER BY l.BannedUntil ASC');
?> ?>
<div class="thin"> <div class="thin">
<h2>Login Watch Management</h2> <div class="header">
<table width="100%"> <h2>Login Watch Management</h2>
<tr class="colhead"> </div>
<td>IP</td> <table width="100%">
<td>User</td> <tr class="colhead">
<td>Bans</td> <td>IP</td>
<td>Remaining</td> <td>User</td>
<td>Submit</td> <td>Bans</td>
<? if(check_perms('admin_manage_ipbans')) { ?> <td>Submit</td><? } ?> <td>Remaining</td>
</tr> <td>Submit</td>
<? if(check_perms('admin_manage_ipbans')) { ?> <td>Submit</td><? } ?>
</tr>
<? <?
$Row = 'b'; $Row = 'b';
while(list($ID, $IP, $UserID, $LastAttempt, $Attempts, $BannedUntil, $Bans) = $DB->next_record()){ while(list($ID, $IP, $UserID, $LastAttempt, $Attempts, $BannedUntil, $Bans) = $DB->next_record()){
$Row = ($Row === 'a' ? 'b' : 'a'); $Row = ($Row === 'a' ? 'b' : 'a');
?> ?>
<tr class="row<?=$Row?>"> <tr class="row<?=$Row?>">
<td> <td>
<?=$IP?> <?=$IP?>
</td> </td>
@ -70,10 +72,10 @@
</form> </form>
</td> </td>
<? } ?> <? } ?>
</tr> </tr>
<? <?
} }
?> ?>
</table> </table>
</div> </div>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -28,7 +28,9 @@
} }
?> ?>
<div class="thin"> <div class="thin">
<h2><?= ($_GET['action'] == 'news')? 'Create a news post' : 'Edit news post';?></h2> <div class="header">
<h2><?= ($_GET['action'] == 'news')? 'Create a news post' : 'Edit news post';?></h2>
</div>
<form action="tools.php" method="post"> <form action="tools.php" method="post">
<div class="box pad"> <div class="box pad">
<input type="hidden" name="action" value="<?= ($_GET['action'] == 'news')? 'takenewnews' : 'takeeditnews';?>" /> <input type="hidden" name="action" value="<?= ($_GET['action'] == 'news')? 'takenewnews' : 'takeeditnews';?>" />

View File

@ -1 +1 @@
<? if (!check_perms('users_mod')) { error(403); } if (isset($_POST['doit'])) { authorize(); if (isset($_POST['oldtags'])) { $OldTagIDs = $_POST['oldtags']; foreach ($OldTagIDs AS $OldTagID) { if (!is_number($OldTagID)) { error(403); } } $OldTagIDs = implode(', ', $OldTagIDs); $DB->query("UPDATE tags SET TagType = 'other' WHERE ID IN ($OldTagIDs)"); } if ($_POST['newtag']) { $TagName = sanitize_tag($_POST['newtag']); $DB->query("SELECT t.ID FROM tags AS t WHERE t.Name LIKE '".$TagName."'"); list($TagID) = $DB->next_record(); if($TagID) { $DB->query("UPDATE tags SET TagType = 'genre' WHERE ID = $TagID"); } else { // Tag doesn't exist yet - create tag $DB->query("INSERT INTO tags (Name, UserID, TagType, Uses) VALUES ('".$TagName."', ".$LoggedUser['ID'].", 'genre', 0)"); $TagID = $DB->inserted_id(); } } $Cache->delete_value('genre_tags'); } show_header('Official Tags'); ?> if (isset($_POST['oldtags'])) { } > <div style="text-align: center"> <div style="display: inline-block;"> <form method="post"> <input type="hidden" name="action" value="official_tags" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="doit" value="1" /> <table> <tr class="colhead_dark"> <td style="font-weight: bold" style="text-align: center">Remove</td> <td style="font-weight: bold">Tag</td> <td style="font-weight: bold">Uses</td> <td>&nbsp;&nbsp;&nbsp;</td> <td style="font-weight: bold" style="text-align: center">Remove</td> <td style="font-weight: bold">Tag</td> <td style="font-weight: bold">Uses</td> <td>&nbsp;&nbsp;&nbsp;</td> <td style="font-weight: bold" style="text-align: center">Remove</td> <td style="font-weight: bold">Tag</td> <td style="font-weight: bold">Uses</td> </tr> <? $i = 0; $DB->query("SELECT ID, Name, Uses FROM tags WHERE TagType='genre' ORDER BY Name ASC"); $TagCount = $DB->record_count(); $Tags = $DB->to_array(); for ($i = 0; $i < $TagCount / 3; $i++) { list($TagID1, $TagName1, $TagUses1) = $Tags[$i]; list($TagID2, $TagName2, $TagUses2) = $Tags[ceil($TagCount/3) + $i]; list($TagID3, $TagName3, $TagUses3) = $Tags[2*ceil($TagCount/3) + $i]; ?> <tr class="<?=(($i % 2)?'rowa':'rowb')?>"> <td style="text-align: center"><input type="checkbox" name="oldtags[]" value="<?=$TagID1?>" /></td> <td><?=$TagName1?></td> <td style="text-align: center"><?=$TagUses1?></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align: center"> <? if ($TagID2) { ?> <input type="checkbox" name="oldtags[]" value="<?=$TagID2?>" /> <? } ?> </td> <td><?=$TagName2?></td> <td style="text-align: center"><?=$TagUses2?></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align: center"> <? if ($TagID3) { ?> <input type="checkbox" name="oldtags[]" value="<?=$TagID3?>" /> <? } ?> </td> <td><?=$TagName3?></td> <td style="text-align: center"><?=$TagUses3?></td> </tr> <? } ?> <tr class="<?=(($i % 2)?'rowa':'rowb')?>"> <td colspan="11"><label for="newtag">New official tag: </label><input type="text" name="newtag" /></td> </tr> <tr style="border-top: thin solid"> <td colspan="11" style="text-align: center"><input type="submit" value="Submit Changes" /></td> </tr> </table> </form> </div> </div> <? show_footer(); ?> <? if (!check_perms('users_mod')) { error(403); } if (isset($_POST['doit'])) { authorize(); $OldTagIDs = $_POST['oldtags']; if (isset($_POST['oldtags'])) { $OldTagIDs = $_POST['oldtags']; foreach ($OldTagIDs AS $OldTagID) { if (!is_number($OldTagID)) { error(403); } } $OldTagIDs = implode(', ', $OldTagIDs); $DB->query("UPDATE tags SET TagType = 'other' WHERE ID IN ($OldTagIDs)"); } $OldTagIDs = $_POST['oldtags']; if ($_POST['newtag']) { $TagName = sanitize_tag($_POST['newtag']); $DB->query("SELECT t.ID FROM tags AS t WHERE t.Name LIKE '".$TagName."'"); list($TagID) = $DB->next_record(); $OldTagIDs = $_POST['oldtags']; if($TagID) { $DB->query("UPDATE tags SET TagType = 'genre' WHERE ID = $TagID"); } else { // Tag doesn't exist yet - create tag $DB->query("INSERT INTO tags (Name, UserID, TagType, Uses) VALUES ('".$TagName."', ".$LoggedUser['ID'].", 'genre', 0)"); $TagID = $DB->inserted_id(); } } $OldTagIDs = $_POST['oldtags']; $Cache->delete_value('genre_tags'); } show_header('Official Tags'); ?> if (isset($_POST['oldtags'])) { $OldTagIDs = implode(', ', $OldTagIDs); <h2>Official Tags</h2> </div> <div style="text-align: center"> <div style="display: inline-block;"> <form method="post"> <input type="hidden" name="action" value="official_tags" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="doit" value="1" /> <table> <tr class="colhead_dark"> <td style="font-weight: bold" style="text-align: center">Remove</td> <td style="font-weight: bold">Tag</td> <td style="font-weight: bold">Uses</td> <td>&nbsp;&nbsp;&nbsp;</td> <td style="font-weight: bold" style="text-align: center">Remove</td> <td style="font-weight: bold">Tag</td> <td style="font-weight: bold">Uses</td> <td>&nbsp;&nbsp;&nbsp;</td> <td style="font-weight: bold" style="text-align: center">Remove</td> <td style="font-weight: bold">Tag</td> <td style="font-weight: bold">Uses</td> </tr> <? $i = 0; $DB->query("SELECT ID, Name, Uses FROM tags WHERE TagType='genre' ORDER BY Name ASC"); $TagCount = $DB->record_count(); $Tags = $DB->to_array(); for ($i = 0; $i < $TagCount / 3; $i++) { list($TagID1, $TagName1, $TagUses1) = $Tags[$i]; list($TagID2, $TagName2, $TagUses2) = $Tags[ceil($TagCount/3) + $i]; list($TagID3, $TagName3, $TagUses3) = $Tags[2*ceil($TagCount/3) + $i]; ?> <tr class="<?=(($i % 2)?'rowa':'rowb')?>"> <td style="text-align: center"><input type="checkbox" name="oldtags[]" value="<?=$TagID1?>" /></td> <td><?=$TagName1?></td> <td style="text-align: center"><?=$TagUses1?></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align: center"> <? if ($TagID2) { ?> <input type="checkbox" name="oldtags[]" value="<?=$TagID2?>" /> <? } ?> </td> <td><?=$TagName2?></td> <td style="text-align: center"><?=$TagUses2?></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align: center"> <? if ($TagID3) { ?> <input type="checkbox" name="oldtags[]" value="<?=$TagID3?>" /> <? } ?> </td> <td><?=$TagName3?></td> <td style="text-align: center"><?=$TagUses3?></td> </tr> <? } ?> <tr class="<?=(($i % 2)?'rowa':'rowb')?>"> <td colspan="11"><label for="newtag">New official tag: </label><input type="text" name="newtag" /></td> </tr> <tr style="border-top: thin solid"> <td colspan="11" style="text-align: center"><input type="submit" value="Submit Changes" /></td> </tr> </table> </form> </div> </div> <? show_footer(); ?>

View File

@ -12,9 +12,11 @@ function confirmDelete(id) {
//]]> //]]>
</script> </script>
<div class="thin"> <div class="thin">
<div class="linkbox"> <div class="header">
[<a href="tools.php?action=permissions&amp;id=new">Create a new permission set</a>] <div class="linkbox">
[<a href="tools.php">Back to Tools</a>] [<a href="tools.php?action=permissions&amp;id=new">Create a new permission set</a>]
[<a href="tools.php">Back to Tools</a>]
</div>
</div> </div>
<? <?
$DB->query("SELECT p.ID,p.Name,p.Level,p.Secondary,COUNT(u.ID)+COUNT(DISTINCT l.UserID) $DB->query("SELECT p.ID,p.Name,p.Level,p.Secondary,COUNT(u.ID)+COUNT(DISTINCT l.UserID)

View File

@ -27,13 +27,13 @@
} }
} }
?> ?>
<div class="header">
<div class="linkbox"> <h2>Tag Aliases</h2>
[<a href="tools.php?action=tag_aliases&order=goodtags">Sort by Good Tags</a>] <div class="linkbox">
[<a href="tools.php?action=tag_aliases&order=badtags">Sort by Bad Tags</a>] [<a href="tools.php?action=tag_aliases&order=goodtags">Sort by Good Tags</a>]
[<a href="tools.php?action=tag_aliases&order=badtags">Sort by Bad Tags</a>]
</div> </div>
</div>
<h2>Tag Aliases</h2>
<table width="100%"> <table width="100%">
<tr class="colhead"> <tr class="colhead">
<td>Tag</td> <td>Tag</td>

View File

@ -49,9 +49,12 @@
show_header('Add tokens sitewide'); show_header('Add tokens sitewide');
?> ?>
<h2>Add freeleech tokens to all enabled users</h2> <div class="header">
<h2>Add freeleech tokens to all enabled users</h2>
<div class="linkbox"><a href="tools.php?action=tokens&showabusers=1">[Show Abusers]</a></div> <div class="linkbox">
<a href="tools.php?action=tokens&showabusers=1">[Show Abusers]</a>
</div>
</div>
<div class="box pad" style="margin-left: auto; margin-right: auto; text-align:center; max-width: 40%"> <div class="box pad" style="margin-left: auto; margin-right: auto; text-align:center; max-width: 40%">
<?=$message?> <?=$message?>
<form action="" method="post"> <form action="" method="post">

View File

@ -4,7 +4,9 @@
show_header('Whitelist Management'); show_header('Whitelist Management');
$DB->query('SELECT id, vstring, peer_id FROM xbt_client_whitelist ORDER BY peer_id ASC'); $DB->query('SELECT id, vstring, peer_id FROM xbt_client_whitelist ORDER BY peer_id ASC');
?> ?>
<h2>Allowed Clients</h2> <div class="header">
<h2>Allowed Clients</h2>
</div>
<table width="100%"> <table width="100%">
<tr class="colhead"> <tr class="colhead">
<td>Client</td> <td>Client</td>

View File

@ -5,7 +5,9 @@
show_header('Case Analysis'); show_header('Case Analysis');
?> ?>
<h2>Case Analysis (<a href="<?=display_str($Analysis['url'])?>"><?=$_GET['case']?></a>)</h2> <div class="header">
<h2>Case Analysis (<a href="<?=display_str($Analysis['url'])?>"><?=$_GET['case']?></a>)</h2>
</div>
<pre id="#debug_report"><?=display_str($Analysis['message'])?></pre> <pre id="#debug_report"><?=display_str($Analysis['message'])?></pre>
<? <?
$Debug->flag_table($Analysis['flags']); $Debug->flag_table($Analysis['flags']);

View File

@ -18,8 +18,9 @@
} }
} }
?> ?>
<h2>Clear a cache key</h2> <div class="header">
<h2>Clear a cache key</h2>
</div>
<form method="get" action="" name="clear_cache"> <form method="get" action="" name="clear_cache">
<input type="hidden" name="action" value="clear_cache" /> <input type="hidden" name="action" value="clear_cache" />
<table cellpadding="2" cellspacing="1" border="0" align="center"> <table cellpadding="2" cellspacing="1" border="0" align="center">

View File

@ -24,8 +24,9 @@
} }
?> ?>
<div class="header">
<h2>IRC highlight on (fishy) invites sent to countries</h2> <h2>IRC highlight on (fishy) invites sent to countries</h2>
</div>
<table width="100%"> <table width="100%">
<tr class="colhead"> <tr class="colhead">
<td>Country</td> <td>Country</td>

View File

@ -74,7 +74,9 @@
} else { } else {
?> ?>
<h2>Create a User</h2> <div class="header">
<h2>Create a User</h2>
</div>
<form method="post" action="" name="create_user"> <form method="post" action="" name="create_user">
<input type="hidden" name="action" value="create_user" /> <input type="hidden" name="action" value="create_user" />

View File

@ -4,14 +4,15 @@
show_header('Top 10 Torrents history!'); show_header('Top 10 Torrents history!');
?> ?>
<div class="thin"> <div class="thin">
<h2> Top 10 Torrents </h2> <div class="header">
<div class="linkbox"> <h2>Top 10 Torrents</h2>
<a href="top10.php?type=torrents"><strong>[Torrents]</strong></a> <div class="linkbox">
<a href="top10.php?type=users">[Users]</a> <a href="top10.php?type=torrents"><strong>[Torrents]</strong></a>
<a href="top10.php?type=tags">[Tags]</a> <a href="top10.php?type=users">[Users]</a>
<a href="top10.php?type=history">[History]</a> <a href="top10.php?type=tags">[Tags]</a>
<a href="top10.php?type=history">[History]</a>
</div>
</div> </div>
<div class="pad box"> <div class="pad box">
<form method="get" action=""> <form method="get" action="">
<input type="hidden" name="type" value="history" /> <input type="hidden" name="type" value="history" />

View File

@ -13,11 +13,13 @@
show_header('Top 10 Tags'); show_header('Top 10 Tags');
?> ?>
<div class="thin"> <div class="thin">
<h2> Top 10 Tags </h2> <div class="header">
<div class="linkbox"> <h2>Top 10 Tags</h2>
<a href="top10.php?type=torrents">[Torrents]</a> <div class="linkbox">
<a href="top10.php?type=users">[Users]</a> <a href="top10.php?type=torrents">[Torrents]</a>
<a href="top10.php?type=tags"><strong>[Tags]</strong></a> <a href="top10.php?type=users">[Users]</a>
<a href="top10.php?type=tags"><strong>[Tags]</strong></a>
</div>
</div> </div>
<? <?

View File

@ -41,11 +41,13 @@
show_header('Top '.$Limit.' Torrents'); show_header('Top '.$Limit.' Torrents');
?> ?>
<div class="thin"> <div class="thin">
<h2> Top <?=$Limit?> Torrents </h2> <div class="header">
<div class="linkbox"> <h2>Top <?=$Limit?> Torrents</h2>
<a href="top10.php?type=torrents"><strong>[Torrents]</strong></a> <div class="linkbox">
<a href="top10.php?type=users">[Users]</a> <a href="top10.php?type=torrents"><strong>[Torrents]</strong></a>
<a href="top10.php?type=tags">[Tags]</a> <a href="top10.php?type=users">[Users]</a>
<a href="top10.php?type=tags">[Tags]</a>
</div>
</div> </div>
<? <?

View File

@ -13,13 +13,14 @@
show_header('Top 10 Users'); show_header('Top 10 Users');
?> ?>
<div class="thin"> <div class="thin">
<h2> Top 10 Users </h2> <div class="header">
<div class="linkbox"> <h2>Top 10 Users</h2>
<a href="top10.php?type=torrents">[Torrents]</a> <div class="linkbox">
<a href="top10.php?type=users"><strong>[Users]</strong></a> <a href="top10.php?type=torrents">[Torrents]</a>
<a href="top10.php?type=tags">[Tags]</a> <a href="top10.php?type=users"><strong>[Users]</strong></a>
<a href="top10.php?type=tags">[Tags]</a>
</div>
</div> </div>
<? <?
// defaults to 10 (duh) // defaults to 10 (duh)

View File

@ -90,30 +90,31 @@ function compare($X, $Y){
show_header($Title,'browse,comments,torrent,bbcode'); show_header($Title,'browse,comments,torrent,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=$DisplayName?></h2> <div class="header">
<div class="linkbox"> <h2><?=$DisplayName?></h2>
<div class="linkbox">
<? if(check_perms('site_edit_wiki')) { ?> <? if(check_perms('site_edit_wiki')) { ?>
<a href="torrents.php?action=editgroup&amp;groupid=<?=$GroupID?>">[Edit description]</a> <a href="torrents.php?action=editgroup&amp;groupid=<?=$GroupID?>">[Edit description]</a>
<? } ?> <? } ?>
<a href="torrents.php?action=history&amp;groupid=<?=$GroupID?>">[View history]</a> <a href="torrents.php?action=history&amp;groupid=<?=$GroupID?>">[View history]</a>
<? if($RevisionID && check_perms('site_edit_wiki')) { ?> <? if($RevisionID && check_perms('site_edit_wiki')) { ?>
<a href="/torrents.php?action=revert&amp;groupid=<?=$GroupID ?>&amp;revisionid=<?=$RevisionID ?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Revert to this revision]</a> <a href="/torrents.php?action=revert&amp;groupid=<?=$GroupID ?>&amp;revisionid=<?=$RevisionID ?>&amp;auth=<?=$LoggedUser['AuthKey']?>">[Revert to this revision]</a>
<? } <? }
if(has_bookmarked('torrent', $GroupID)) { if(has_bookmarked('torrent', $GroupID)) {
?> ?>
<a href="#" id="bookmarklink_torrent_<?=$GroupID?>" onclick="Unbookmark('torrent', <?=$GroupID?>,'[Bookmark]');return false;">[Remove bookmark]</a> <a href="#" id="bookmarklink_torrent_<?=$GroupID?>" onclick="Unbookmark('torrent', <?=$GroupID?>,'[Bookmark]');return false;">[Remove bookmark]</a>
<? } else { ?> <? } else { ?>
<a href="#" id="bookmarklink_torrent_<?=$GroupID?>" onclick="Bookmark('torrent', <?=$GroupID?>,'[Remove bookmark]');return false;">[Bookmark]</a> <a href="#" id="bookmarklink_torrent_<?=$GroupID?>" onclick="Bookmark('torrent', <?=$GroupID?>,'[Remove bookmark]');return false;">[Bookmark]</a>
<? } <? }
if($Categories[$GroupCategoryID-1] == 'Music') { ?> if($Categories[$GroupCategoryID-1] == 'Music') { ?>
<a href="upload.php?groupid=<?=$GroupID?>">[Add format]</a> <a href="upload.php?groupid=<?=$GroupID?>">[Add format]</a>
<? } <? }
if(check_perms('site_submit_requests')) { ?> if(check_perms('site_submit_requests')) { ?>
<a href="requests.php?action=new&amp;groupid=<?=$GroupID?>">[Request format]</a> <a href="requests.php?action=new&amp;groupid=<?=$GroupID?>">[Request format]</a>
<? }?> <? }?>
<a href="torrents.php?action=grouplog&amp;groupid=<?=$GroupID?>">[View log]</a> <a href="torrents.php?action=grouplog&amp;groupid=<?=$GroupID?>">[View log]</a>
</div>
</div> </div>
<div class="sidebar"> <div class="sidebar">
<div class="box box_image box_image_albumart box_albumart"><!-- .box_albumart deprecated --> <div class="box box_image box_image_albumart box_albumart"><!-- .box_albumart deprecated -->
<div class="head"><strong>Cover</strong></div> <div class="head"><strong>Cover</strong></div>

View File

@ -42,7 +42,9 @@
// Start printing form // Start printing form
?> ?>
<div class="thin"> <div class="thin">
<h2>Edit <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2> <div class="header">
<h2>Edit <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2>
</div>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form action="torrents.php" method="post">
<div> <div>
@ -77,7 +79,7 @@
<? $DB->query("SELECT UserID FROM torrents WHERE GroupID = ".$GroupID); <? $DB->query("SELECT UserID FROM torrents WHERE GroupID = ".$GroupID);
//Users can edit the group info if they've uploaded a torrent to the group or have torrents_edit //Users can edit the group info if they've uploaded a torrent to the group or have torrents_edit
if(in_array($LoggedUser['ID'], $DB->collect('UserID')) || check_perms('torrents_edit')) { ?> if(in_array($LoggedUser['ID'], $DB->collect('UserID')) || check_perms('torrents_edit')) { ?>
<h2>Non-wiki group editing</h2> <h3>Non-wiki group editing</h3>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form action="torrents.php" method="post">
<input type="hidden" name="action" value="nonwikiedit" /> <input type="hidden" name="action" value="nonwikiedit" />
@ -130,7 +132,7 @@
} }
if(check_perms('torrents_edit')) { if(check_perms('torrents_edit')) {
?> ?>
<h2>Rename (won't merge)</h2> <h3>Rename (won't merge)</h3>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form action="torrents.php" method="post">
<div> <div>
@ -145,7 +147,7 @@
</div> </div>
</form> </form>
</div> </div>
<h2>Merge with another group</h2> <h3>Merge with another group</h3>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form action="torrents.php" method="post">
<div> <div>

View File

@ -40,22 +40,24 @@
show_header(); show_header();
?> ?>
<div class="thin"> <div class="thin">
<h2>Change Group Confirm!</h2> <div class="header">
<div class="box pad"> <h2>Change Group Confirm!</h2>
<form action="torrents.php" method="post"> </div>
<input type="hidden" name="action" value="editgroupid" /> <div class="box pad">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <form action="torrents.php" method="post">
<input type="hidden" name="confirm" value="true" /> <input type="hidden" name="action" value="editgroupid" />
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="oldgroupid" value="<?=$OldGroupID?>" /> <input type="hidden" name="confirm" value="true" />
<input type="hidden" name="groupid" value="<?=$GroupID?>" /> <input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
<h2>You are attempting to move the torrent with ID <?=$TorrentID?> from the group:</h2> <input type="hidden" name="oldgroupid" value="<?=$OldGroupID?>" />
<ul><li><?= display_artists($Artists[$OldGroupID], true, false)?> - <a href="torrents.php?id=<?=$OldGroupID?>"><?=$Name?></a></li></ul> <input type="hidden" name="groupid" value="<?=$GroupID?>" />
<h2>Into the group:</h2> <h3>You are attempting to move the torrent with ID <?=$TorrentID?> from the group:</h3>
<ul><li><?= display_artists($Artists[$GroupID], true, false)?> - <a href="torrents.php?id=<?=$GroupID?>"><?=$NewName?></a></li></ul> <ul><li><?= display_artists($Artists[$OldGroupID], true, false)?> - <a href="torrents.php?id=<?=$OldGroupID?>"><?=$Name?></a></li></ul>
<input type="submit" value="Confirm" /> <h3>Into the group:</h3>
</form> <ul><li><?= display_artists($Artists[$GroupID], true, false)?> - <a href="torrents.php?id=<?=$GroupID?>"><?=$NewName?></a></li></ul>
</div> <input type="submit" value="Confirm" />
</form>
</div>
</div> </div>
<? <?
show_footer(); show_footer();

View File

@ -14,8 +14,9 @@
?> ?>
<div class="thin"> <div class="thin">
<h2>History for <?=$Title?></h2> <div class="header">
<h2>History for <?=$Title?></h2>
</div>
<table> <table>
<tr class="colhead"> <tr class="colhead">
<td>Date</td> <td>Date</td>

View File

@ -31,7 +31,9 @@
// Start printing form // Start printing form
?> ?>
<div class="thin"> <div class="thin">
<h2>Revision history for <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2> <div class="header">
<h2>Revision history for <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2>
</div>
<? <?
$Wiki->revision_history(); // the wiki class takes over from here $Wiki->revision_history(); // the wiki class takes over from here
?> ?>

View File

@ -40,7 +40,9 @@
?> ?>
<div class="thin"> <div class="thin">
<h2>Send PM To All Snatchers Of "<?=$Properties['ArtistName']?> - <?=$Properties['Title']?>"</h2> <div class="header">
<h2>Send PM To All Snatchers Of "<?=$Properties['ArtistName']?> - <?=$Properties['Title']?>"</h2>
</div>
<form action="torrents.php" method="post"> <form action="torrents.php" method="post">
<input type="hidden" name="action" value="takemasspm" /> <input type="hidden" name="action" value="takemasspm" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -29,7 +29,9 @@
show_header(); show_header();
?> ?>
<div class="center thin"> <div class="center thin">
<h2>Merge Confirm!</h2> <div class="header">
<h2>Merge Confirm!</h2>
</div>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form action="torrents.php" method="post">
<input type="hidden" name="action" value="merge" /> <input type="hidden" name="action" value="merge" />
@ -37,9 +39,9 @@
<input type="hidden" name="confirm" value="true" /> <input type="hidden" name="confirm" value="true" />
<input type="hidden" name="groupid" value="<?=$GroupID?>" /> <input type="hidden" name="groupid" value="<?=$GroupID?>" />
<input type="hidden" name="targetgroupid" value="<?=$NewGroupID?>" /> <input type="hidden" name="targetgroupid" value="<?=$NewGroupID?>" />
<h2>You are attempting to merge the group:</h2> <h3>You are attempting to merge the group:</h3>
<ul><li><?= display_artists($Artists[$GroupID], true, false)?> - <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></li></ul> <ul><li><?= display_artists($Artists[$GroupID], true, false)?> - <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></li></ul>
<h2>Into the group:</h2> <h3>Into the group:</h3>
<ul><li><?= display_artists($Artists[$NewGroupID], true, false)?> - <a href="torrents.php?id=<?=$NewGroupID?>"><?=$NewName?></a></li></ul> <ul><li><?= display_artists($Artists[$NewGroupID], true, false)?> - <a href="torrents.php?id=<?=$NewGroupID?>"><?=$NewName?></a></li></ul>
<input type="submit" value="Confirm" /> <input type="submit" value="Confirm" />
</form> </form>

View File

@ -46,7 +46,9 @@
show_header('My notifications', 'notifications'); show_header('My notifications', 'notifications');
$DB->set_query_id($Results); $DB->set_query_id($Results);
?> ?>
<h2>Latest notifications <a href="torrents.php?action=notify_clear&amp;auth=<?=$LoggedUser['AuthKey']?>">(clear all)</a> <a href="javascript:SuperGroupClear()">(clear selected)</a> <a href="user.php?action=notify">(edit filters)</a></h2> <div class="header">
<h2>Latest notifications <a href="torrents.php?action=notify_clear&amp;auth=<?=$LoggedUser['AuthKey']?>">(clear all)</a> <a href="javascript:SuperGroupClear()">(clear selected)</a> <a href="user.php?action=notify">(edit filters)</a></h2>
</div>
<div class="linkbox"> <div class="linkbox">
<?=$Pages?> <?=$Pages?>
</div> </div>

View File

@ -62,7 +62,9 @@
show_header(); show_header();
?> ?>
<div class="thin"> <div class="thin">
<h2>Successfully sent re-seed request</h2> <div class="header">
<h2>Successfully sent re-seed request</h2>
</div>
<p>Successfully sent re-seed request for torrent <a href="torrents.php?id=<?=$GroupID?>&amp;torrentid=<?=$TorrentID?>"><?=display_str($Name)?></a> to <?=$NumUsers?> user(s).</p> <p>Successfully sent re-seed request for torrent <a href="torrents.php?id=<?=$GroupID?>&amp;torrentid=<?=$TorrentID?>"><?=display_str($Name)?></a> to <?=$NumUsers?> user(s).</p>
</div> </div>
<?show_footer();?> <?show_footer();?>

View File

@ -271,8 +271,9 @@ function header_link($SortKey,$DefaultWay="DESC") {
?> ?>
<div class="thin"> <div class="thin">
<h2><a href="user.php?id=<?=$UserID?>"><?=$User['Username']?></a><?='\'s '.$Action.' torrents'?></h2> <div class="header">
<h2><a href="user.php?id=<?=$UserID?>"><?=$User['Username']?></a><?='\'s '.$Action.' torrents'?></h2>
</div>
<div> <div>
<form action="" method="get"> <form action="" method="get">
<table> <table>

View File

@ -35,7 +35,9 @@
show_header('Connectability Checker'); show_header('Connectability Checker');
?> ?>
<div class="thin"> <div class="thin">
<h2><a href="user.php?id=<?=$LoggedUser['ID']?>"><?=$LoggedUser['Username']?></a> &gt; Connectability Checker</h2> <div class="header">
<h2><a href="user.php?id=<?=$LoggedUser['ID']?>"><?=$LoggedUser['Username']?></a> &gt; Connectability Checker</h2>
</div>
<form action="javascript:check_ip();" method="get"> <form action="javascript:check_ip();" method="get">
<table> <table>
<tr> <tr>

View File

@ -65,7 +65,9 @@ function checked($Checked) {
echo $Val->GenerateJS('userform'); echo $Val->GenerateJS('userform');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=format_username($UserID, false, false, false)?> &gt; Settings</h2> <div class="header">
<h2><?=format_username($UserID, false, false, false)?> &gt; Settings</h2>
</div>
<form id="userform" name="userform" action="" method="post" onsubmit="return formVal();" autocomplete="off"> <form id="userform" name="userform" action="" method="post" onsubmit="return formVal();" autocomplete="off">
<div> <div>
<input type="hidden" name="action" value="takeedit" /> <input type="hidden" name="action" value="takeedit" />

View File

@ -88,9 +88,11 @@
show_header('Invites'); show_header('Invites');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=format_username($UserID, false, false, false)?> &gt; Invites</h2> <div class="header">
<div class="linkbox"> <h2><?=format_username($UserID, false, false, false)?> &gt; Invites</h2>
[<a href="user.php?action=invitetree<? if($Sneaky){ echo '&amp;userid='.$UserID; }?>">Invite tree</a>] <div class="linkbox">
[<a href="user.php?action=invitetree<? if($Sneaky){ echo '&amp;userid='.$UserID; }?>">Invite tree</a>]
</div>
</div> </div>
<? if ($UserCount >= USER_LIMIT && !check_perms('site_can_invite_always')) { ?> <? if ($UserCount >= USER_LIMIT && !check_perms('site_can_invite_always')) { ?>
<div class="box pad notice"> <div class="box pad notice">

View File

@ -23,7 +23,9 @@
show_header($Username.' &gt; Invites &gt; Tree'); show_header($Username.' &gt; Invites &gt; Tree');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=format_username($UserID, false, false, false)?> &gt; <a href="user.php?action=invite&amp;userid=<?=$UserID?>">Invites</a> &gt; Tree</h2> <div class="header">
<h2><?=format_username($UserID, false, false, false)?> &gt; <a href="user.php?action=invite&amp;userid=<?=$UserID?>">Invites</a> &gt; Tree</h2>
</div>
<div class="box pad"> <div class="box pad">
<? $Tree->make_tree(); ?> <? $Tree->make_tree(); ?>
</div> </div>

View File

@ -3,7 +3,9 @@
show_header('Manage notifications'); show_header('Manage notifications');
?> ?>
<div class="thin"> <div class="thin">
<h2>Notify me of all new torrents with...<a href="torrents.php?action=notify">(View)</a></h2> <div class="header">
<h2>Notify me of all new torrents with...<a href="torrents.php?action=notify">(View)</a></h2>
</div>
<? <?
$DB->query("SELECT ID, Label, Artists, ExcludeVA, NewGroupsOnly, Tags, NotTags, ReleaseTypes, Categories, Formats, Encodings, Media, FromYear, ToYear FROM users_notify_filters WHERE UserID='$LoggedUser[ID]' UNION ALL SELECT NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL"); $DB->query("SELECT ID, Label, Artists, ExcludeVA, NewGroupsOnly, Tags, NotTags, ReleaseTypes, Categories, Formats, Encodings, Media, FromYear, ToYear FROM users_notify_filters WHERE UserID='$LoggedUser[ID]' UNION ALL SELECT NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL");
$i = 0; $i = 0;

View File

@ -64,9 +64,11 @@ function reset() {
} }
} }
</script> </script>
<h2><?=format_username($UserID, false, false, false)?> > Permissions</h2> <div class="header">
<div class="linkbox"> <h2><?=format_username($UserID, false, false, false)?> > Permissions</h2>
[<a href="#" onclick="reset();return false;">Defaults</a>] <div class="linkbox">
[<a href="#" onclick="reset();return false;">Defaults</a>]
</div>
</div> </div>
<div class="box pad"> <div class="box pad">
Before using permissions, please understand that it allows you to both add and remove access to specific features. If you think that to add access to a feature, you need to uncheck everything else, <strong>YOU ARE WRONG</strong>. The checkmarks on the left, which are grayed out, are the standard permissions granted by their class (and donor/artist status), any changes you make to the right side will overwrite this. It's not complicated, and if you screw up, click the defaults link at the top. It will reset the user to their respective features granted by class, then you can check or uncheck the one or two things you want to change. <strong>DO NOT UNCHECK EVERYTHING.</strong> If you need further clarification, ask A9 before using this tool. Before using permissions, please understand that it allows you to both add and remove access to specific features. If you think that to add access to a feature, you need to uncheck everything else, <strong>YOU ARE WRONG</strong>. The checkmarks on the left, which are grayed out, are the standard permissions granted by their class (and donor/artist status), any changes you make to the right side will overwrite this. It's not complicated, and if you screw up, click the defaults link at the top. It will reset the user to their respective features granted by class, then you can check or uncheck the one or two things you want to change. <strong>DO NOT UNCHECK EVERYTHING.</strong> If you need further clarification, ask A9 before using this tool.

View File

@ -40,7 +40,9 @@
show_header('User search'); show_header('User search');
?> ?>
<div class="thin"> <div class="thin">
<h3>Search results</h3> <div class="header">
<h3>Search results</h3>
</div>
<div class="linkbox"> <div class="linkbox">
<? <?
$Pages=get_pages($Page,$NumResults,USERS_PER_PAGE,9); $Pages=get_pages($Page,$NumResults,USERS_PER_PAGE,9);

View File

@ -68,7 +68,9 @@
} }
$History = $DB->to_array(); $History = $DB->to_array();
?> ?>
<h2>Email history for <a href="user.php?id=<?=$UserID ?>"><?=$Username ?></a></h2> <div class="header">
<h2>Email history for <a href="user.php?id=<?=$UserID ?>"><?=$Username ?></a></h2>
</div>
<table width="100%"> <table width="100%">
<tr class="colhead"> <tr class="colhead">
<td>Email</td> <td>Email</td>

View File

@ -155,11 +155,12 @@
// Start page with current email // Start page with current email
?> ?>
<h2>Email history for <a href="user.php?id=<?=$UserID ?>"><?=$Username ?></a></h2>
<div class="thin"> <div class="thin">
<br /> <div class="header">
<div class="center"> <h2>Email history for <a href="user.php?id=<?=$UserID ?>"><?=$Username ?></a></h2>
<a href="userhistory.php?action=email&userid=<?=$UserID?>"><strong>Old email history</strong></a> <div class=" linkbox center">
<a href="userhistory.php?action=email&userid=<?=$UserID?>"><strong>Old email history</strong></a>
</div>
</div> </div>
<br /> <br />
<table width="100%"> <table width="100%">

View File

@ -69,7 +69,6 @@ function UnBan(ip, id, elemID) {
} }
*/ */
</script> </script>
<div class="thin">
<? <?
list($Page,$Limit) = page_limit(IPS_PER_PAGE); list($Page,$Limit) = page_limit(IPS_PER_PAGE);
@ -120,7 +119,10 @@ function UnBan(ip, id, elemID) {
$Pages=get_pages($Page,$NumResults,IPS_PER_PAGE,9); $Pages=get_pages($Page,$NumResults,IPS_PER_PAGE,9);
?> ?>
<h2>IP history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2> <div class="thin">
<div class="header">
<h2>IP history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2>
</div>
<div class="linkbox"><?=$Pages?></div> <div class="linkbox"><?=$Pages?></div>
<table> <table>
<tr class="colhead"> <tr class="colhead">

View File

@ -33,7 +33,6 @@ function ShowIPs(rowname) {
$('tr[name="'+rowname+'"]').toggle(); $('tr[name="'+rowname+'"]').toggle();
} }
</script> </script>
<div class="thin">
<? <?
list($Page,$Limit) = page_limit(IPS_PER_PAGE); list($Page,$Limit) = page_limit(IPS_PER_PAGE);
@ -46,7 +45,10 @@ function ShowIPs(rowname) {
$Pages=get_pages($Page,$NumResults,IPS_PER_PAGE,9); $Pages=get_pages($Page,$NumResults,IPS_PER_PAGE,9);
?> ?>
<h2>Tracker IP history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2> <div class="thin">
<div class="header">
<h2>Tracker IP history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2>
</div>
<div class="linkbox"><?=$Pages?></div> <div class="linkbox"><?=$Pages?></div>
<table> <table>
<tr class="colhead"> <tr class="colhead">

View File

@ -32,7 +32,9 @@
ORDER BY ChangeTime DESC"); ORDER BY ChangeTime DESC");
?> ?>
<h2>Passkey history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2> <div class="header">
<h2>Passkey history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2>
</div>
<table width="100%"> <table width="100%">
<tr class="colhead"> <tr class="colhead">
<td>Old</td> <td>Old</td>

View File

@ -30,7 +30,9 @@
ORDER BY ChangeTime DESC"); ORDER BY ChangeTime DESC");
?> ?>
<h2>Password reset history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2> <div class="header">
<h2>Password reset history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2>
</div>
<table width="100%"> <table width="100%">
<tr class="colhead"> <tr class="colhead">
<td>Changed</td> <td>Changed</td>

View File

@ -185,7 +185,8 @@
?> ?>
<div class="thin"> <div class="thin">
<h2> <div class="header">
<h2>
<? <?
if($ShowGrouped) { if($ShowGrouped) {
echo "Grouped ".($ShowUnread?"unread ":"")."post history for <a href=\"user.php?id=$UserID\">$Username</a>"; echo "Grouped ".($ShowUnread?"unread ":"")."post history for <a href=\"user.php?id=$UserID\">$Username</a>";
@ -197,9 +198,8 @@
echo "Post history for <a href=\"user.php?id=$UserID\">$Username</a>"; echo "Post history for <a href=\"user.php?id=$UserID\">$Username</a>";
} }
?> ?>
</h2> </h2>
<div class="linkbox">
<div class="linkbox">
<? <?
if($ViewingOwn) { if($ViewingOwn) {
if(($UserSubscriptions = $Cache->get_value('subscriptions_user_'.$LoggedUser['ID'])) === FALSE) { if(($UserSubscriptions = $Cache->get_value('subscriptions_user_'.$LoggedUser['ID'])) === FALSE) {
@ -232,8 +232,8 @@
<a href="userhistory.php?action=subscriptions">Go to subscriptions</a> <a href="userhistory.php?action=subscriptions">Go to subscriptions</a>
<? <?
} }
?> ?>
</div>
</div> </div>
<? <?
if(empty($Results)) { if(empty($Results)) {

View File

@ -39,9 +39,10 @@
$CollageSubs = $DB->to_array(); $CollageSubs = $DB->to_array();
?> ?>
<div class="thin"> <div class="thin">
<h2>Subscribed collages<?=($ShowAll?'':' with new additions')?></h2> <div class="header">
<h2>Subscribed collages<?=($ShowAll?'':' with new additions')?></h2>
<div class="linkbox"> <div class="linkbox">
<? <?
if($ShowAll) { if($ShowAll) {
?> ?>
@ -56,6 +57,7 @@
} }
?> ?>
[<a href="userhistory.php?action=catchup_collages&auth=<?=$LoggedUser['AuthKey']?>">Catch up</a>]&nbsp;&nbsp;&nbsp; [<a href="userhistory.php?action=catchup_collages&auth=<?=$LoggedUser['AuthKey']?>">Catch up</a>]&nbsp;&nbsp;&nbsp;
</div>
</div> </div>
<? <?
if(!$NumResults) { if(!$NumResults) {

View File

@ -92,9 +92,10 @@
} }
?> ?>
<div class="thin"> <div class="thin">
<h2><?='Subscribed topics'.($ShowUnread?' with unread posts':'')?></h2> <div class="header">
<h2><?='Subscribed topics'.($ShowUnread?' with unread posts':'')?></h2>
<div class="linkbox"> <div class="linkbox">
<? <?
if(!$ShowUnread) { if(!$ShowUnread) {
?> ?>
@ -115,6 +116,7 @@
?> ?>
<a href="userhistory.php?action=catchup&amp;auth=<?=$LoggedUser['AuthKey']?>">Catch up</a>&nbsp;&nbsp;&nbsp; <a href="userhistory.php?action=catchup&amp;auth=<?=$LoggedUser['AuthKey']?>">Catch up</a>&nbsp;&nbsp;&nbsp;
<a href="userhistory.php?action=posts&amp;userid=<?=$LoggedUser['ID']?>">Go to post history</a>&nbsp;&nbsp;&nbsp; <a href="userhistory.php?action=posts&amp;userid=<?=$LoggedUser['ID']?>">Go to post history</a>&nbsp;&nbsp;&nbsp;
</div>
</div> </div>
<? <?
if(!$NumResults) { if(!$NumResults) {

View File

@ -67,8 +67,9 @@
$Pages=get_pages($Page, $NumResults, 25); $Pages=get_pages($Page, $NumResults, 25);
?> ?>
<h2>Freeleech token history for <?=format_username($UserID, true, true, true)?></h2> <div class="header">
<h2>Freeleech token history for <?=format_username($UserID, true, true, true)?></h2>
</div>
<div class="linkbox"><?=$Pages?></div> <div class="linkbox"><?=$Pages?></div>
<table> <table>
<tr class="colhead_dark"> <tr class="colhead_dark">

View File

@ -8,11 +8,13 @@
show_header($Title." Aliases"); show_header($Title." Aliases");
?> ?>
<h2><a href="wiki.php?action=article&id=<?=$ArticleID?>"><?=$Title?></a> Aliases</h2>
<div class="linkbox">
Aliases are exact search strings or names that can be used to link to an article. [[Alias]]
</div>
<div class="thin"> <div class="thin">
<div class="header">
<h2><a href="wiki.php?action=article&id=<?=$ArticleID?>"><?=$Title?></a> Aliases</h2>
<div class="linkbox">
Aliases are exact search strings or names that can be used to link to an article. [[Alias]]
</div>
</div>
<form action="wiki.php" method="get"> <form action="wiki.php" method="get">
<input type="hidden" name="action" id="action" value="compare" /> <input type="hidden" name="action" id="action" value="compare" />
<input type="hidden" name="id" id="id" value="<?=$ArticleID?>" /> <input type="hidden" name="id" id="id" value="<?=$ArticleID?>" />

View File

@ -15,7 +15,9 @@
show_header('No article found'); show_header('No article found');
?> ?>
<div class="thin"> <div class="thin">
<h2>No article found</h2> <div class="header">
<h2>No article found</h2>
</div>
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">
There is no article matching the name you requested. There is no article matching the name you requested.
<ul> <ul>
@ -36,8 +38,9 @@
show_header($Title,'wiki,bbcode'); show_header($Title,'wiki,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<h2><?=$Title?></h2> <div class="header">
<div class="linkbox box"> <h2><?=$Title?></h2>
<div class="linkbox box">
<a href="wiki.php?action=create">[Create]</a> <a href="wiki.php?action=create">[Create]</a>
<a href="wiki.php?action=edit&amp;id=<?=$ArticleID?>">[Contribute]</a> <a href="wiki.php?action=edit&amp;id=<?=$ArticleID?>">[Contribute]</a>
<a href="wiki.php?action=revisions&amp;id=<?=$ArticleID?>">[History]</a> <a href="wiki.php?action=revisions&amp;id=<?=$ArticleID?>">[History]</a>
@ -45,8 +48,8 @@
<a href="wiki.php?action=delete&amp;id=<?=$ArticleID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>" onclick="return confirm('Are you sure you want to delete?\nYes, DELETE, not as in \'Oh hey, if this is wrong we can get someone to magically undelete it for us later\' it will be GONE.\nGiven this new information, do you still want to DELETE this article and all its revisions and all its alias\' and act like it never existed?')">[Delete]</a> <a href="wiki.php?action=delete&amp;id=<?=$ArticleID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>" onclick="return confirm('Are you sure you want to delete?\nYes, DELETE, not as in \'Oh hey, if this is wrong we can get someone to magically undelete it for us later\' it will be GONE.\nGiven this new information, do you still want to DELETE this article and all its revisions and all its alias\' and act like it never existed?')">[Delete]</a>
<? } ?> <? } ?>
<!--<a href="reports.php?action=submit&amp;type=wiki&amp;article=<?=$ArticleID ?>">[Report]</a>--> <!--<a href="reports.php?action=submit&amp;type=wiki&amp;article=<?=$ArticleID ?>">[Report]</a>-->
</div>
</div> </div>
<br />
<div class="sidebar"> <div class="sidebar">
<!-- <!--
<div class="box pad"> <div class="box pad">

Some files were not shown because too many files have changed in this diff Show More