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,6 +465,7 @@ function compare($X, $Y){
show_header($Name, 'browse,requests,bbcode'); show_header($Name, 'browse,requests,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=display_str($Name)?><? if ($RevisionID) { ?> (Revision #<?=$RevisionID?>)<? } if ($VanityHouseArtist) { ?> [Vanity House] <? } ?></h2> <h2><?=display_str($Name)?><? if ($RevisionID) { ?> (Revision #<?=$RevisionID?>)<? } if ($VanityHouseArtist) { ?> [Vanity House] <? } ?></h2>
<div class="linkbox"> <div class="linkbox">
<? if (check_perms('site_submit_requests')) { ?> <? if (check_perms('site_submit_requests')) { ?>
@ -515,6 +516,7 @@ function compare($X, $Y){
</a> </a>
<? } ?> <? } ?>
</div> </div>
</div>
<div class="sidebar"> <div class="sidebar">
<? if($Image) { ?> <? if($Image) { ?>
<div class="box box_image"> <div class="box box_image">

View File

@ -390,6 +390,7 @@ function display_name($ReleaseType) {
show_header($Name, 'browse,requests,artists,bbcode'); show_header($Name, 'browse,requests,artists,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=$Name?><? if ($RevisionID) { ?> (Revision #<?=$RevisionID?>)<? } if ($VanityHouseArtist) { ?> [Vanity House] <? } ?></h2> <h2><?=$Name?><? if ($RevisionID) { ?> (Revision #<?=$RevisionID?>)<? } if ($VanityHouseArtist) { ?> [Vanity House] <? } ?></h2>
<span style="font-size: 0.7em;float:right;"> <span style="font-size: 0.7em;float:right;">
<a href="#" onclick="editOrdering();return false;" class="" id="editlayout">[Edit ordering]</a> <a href="#" onclick="editOrdering();return false;" class="" id="editlayout">[Edit ordering]</a>
@ -447,6 +448,7 @@ function display_name($ReleaseType) {
</a> </a>
<? } ?> <? } ?>
</div> </div>
</div>
<div class="sidebar"> <div class="sidebar">
<? if($Image) { ?> <? if($Image) { ?>
<div class="box box_image"> <div class="box box_image">

View File

@ -122,7 +122,9 @@
} else { } else {
show_header('Merging Artists'); show_header('Merging Artists');
?> ?>
<div class="header">
<h2>Confirm merge</h2> <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">
<div class="header">
<h2>Edit <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2> <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">
<div class="header">
<h2>Revision history for <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2> <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) { ?>
<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>
<? if($All) { ?> <? if($All) { ?>
<h2>All torrents trumpable for bad file names</h2> <h2>All torrents trumpable for bad file names</h2>
<? } else { ?> <? } else { ?>
<h2>Torrents trumpable for bad file names, that you've snatched</h2> <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 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,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=tags">Just those you've snatched</a>
<? } else { ?>
<a href="better.php?method=tags&amp;filter=all">Show all</a>
<? } ?>
</div>
<? if($All) { ?> <? if($All) { ?>
<h2>All torrents trumpable for tags</h2> <h2>All torrents trumpable for tags</h2>
<? } else { ?> <? } else { ?>
<h2>Torrents trumpable for tags, that you've snatched</h2> <h2>Torrents trumpable for tags, that you've snatched</h2>
<? } ?> <? } ?>
<div class="linkbox">
<? if($All) { ?>
<a href="better.php?method=tags">Just those you've snatched</a>
<? } else { ?>
<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>
<table> <table>

View File

@ -31,6 +31,7 @@
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=$Title?></h2> <h2><?=$Title?></h2>
<div class="linkbox"> <div class="linkbox">
<a href="bookmarks.php?type=torrents">[Torrents]</a> <a href="bookmarks.php?type=torrents">[Torrents]</a>
@ -38,6 +39,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 class="box pad" align="center"> <div class="box pad" align="center">
<? if (count($ArtistList) == 0) { ?> <? if (count($ArtistList) == 0) { ?>
<br /><h2>You have not bookmarked any artists.</h2> <br /><h2>You have not bookmarked any artists.</h2>

View File

@ -310,6 +310,7 @@ function compare($X, $Y){
show_header($Title, 'browse,collage'); show_header($Title, 'browse,collage');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<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> <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="linkbox"> <div class="linkbox">
<a href="bookmarks.php?type=torrents">[Torrents]</a> <a href="bookmarks.php?type=torrents">[Torrents]</a>
@ -321,6 +322,7 @@ function compare($X, $Y){
<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">
<h2>You have not bookmarked any torrents.</h2> <h2>You have not bookmarked any torrents.</h2>

View File

@ -8,7 +8,9 @@
if(empty($IRCKey)) { if(empty($IRCKey)) {
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h3 id="irc">IRC Rules - Please read these carefully!</h3> <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">
<div class="header">
<h3 id="irc">IRC Rules - Please read these carefully!</h3> <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">
<div class="header">
<h3 id="general">IRC</h3> <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,6 +53,7 @@
show_header('Comments for collage '.$Name, 'comments,bbcode'); show_header('Comments for collage '.$Name, 'comments,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2> <h2>
<a href="collages.php">Collages</a> &gt; <a href="collages.php">Collages</a> &gt;
<a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a> <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a>
@ -63,6 +64,7 @@
echo $Pages; echo $Pages;
?> ?>
</div> </div>
</div>
<? <?
//---------- Begin printing //---------- Begin printing

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,6 +364,7 @@ function compare($X, $Y){
show_header($Name,'browse,collage,bbcode'); show_header($Name,'browse,collage,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=$Name?></h2> <h2><?=$Name?></h2>
<div class="linkbox"> <div class="linkbox">
<a href="collages.php">[List of collages]</a> <a href="collages.php">[List of collages]</a>
@ -392,6 +393,7 @@ function compare($X, $Y){
<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">
<div class="head"><strong>Category</strong></div> <div class="head"><strong>Category</strong></div>

View File

@ -11,7 +11,9 @@
show_header('Edit collage'); show_header('Edit collage');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2>Edit collage <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a></h2> <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">
<div class="header">
<h2>Manage collage <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a></h2> <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?>
<br /><br /> </div>
<? } ?>
</div>
<div class="linkbox">
<?=$Pages?> <?=$Pages?>
</div> </div>
<?php <?
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">
<div class="header">
<h3 id="forums">Donation Canceled</h3> <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">
<div class="header">
<h3 id="forums">Donation Complete</h3> <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')) { ?>
<div class="header">
<h3>Test IPN</h3> <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 @@
<? <?
} }
?> ?>
<div class="header">
<h3>Donate</h3> <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')) { ?>
<div class="header">
<h3>Test IPN</h3> <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 @@
<? <?
} }
?> ?>
<div class="header">
<h3>Donate</h3> <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">
<div class="header">
<h2><?=$Title?></h2> <h2><?=$Title?></h2>
</div>
<div class="box pad"> <div class="box pad">
<p><?=$Description?></p> <p><?=$Description?></p>
</div> </div>

View File

@ -33,6 +33,7 @@
show_header(); show_header();
?> ?>
<div class="thin box pad"> <div class="thin box pad">
<div class="header">
<h2> <h2>
<a href="forums.php">Forums</a> <a href="forums.php">Forums</a>
&gt; &gt;
@ -40,6 +41,7 @@
&gt; &gt;
Edit forum specific rules Edit forum specific rules
</h2> </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">
<div class="header">
<h2>Friends list</h2> <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">
<div class="header">
<h2>Send a message to <a href="user.php?id=<?=$ToID?>"><?=$Username?></a></h2> <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">
<div class="header">
<h2>Site log</h2> <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">
<div class="header">
<h3 id="general">Disabled IRC</h3> <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">
<div class="header">
<h2>Report <?=$Type['title']?></h2> <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,26 +71,28 @@
// 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>
<div class="linkbox">
<a href="reports.php">New</a> | <a href="reports.php">New</a> |
<a href="reports.php?view=old">Old</a> | <a href="reports.php?view=old">Old</a> |
<a href="reports.php?action=stats">Stats</a> <a href="reports.php?action=stats">Stats</a>
</div> </div>
<div class="linkbox"> </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" />
@ -205,18 +207,18 @@
</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>
<div class="linkbox">
<a href="reports.php">New</a> | <a href="reports.php">New</a> |
<a href="reports.php?view=old">Old</a> | <a href="reports.php?view=old">Old</a> |
<a href="reports.php?action=stats">Stats</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">
<div class="header">
<h2>Report a torrent</h2> <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">
<div class="header">
<h2><?=($NewRequest ? "Create a request" : "Edit a request")?></h2> <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,6 +85,7 @@
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><a href="requests.php">Requests</a> &gt; <?=$CategoryName?> &gt; <?=$DisplayLink?></h2> <h2><a href="requests.php">Requests</a> &gt; <?=$CategoryName?> &gt; <?=$DisplayLink?></h2>
<div class="linkbox"> <div class="linkbox">
<? if($CanEdit) { ?> <? if($CanEdit) { ?>
@ -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,6 +285,7 @@
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=$Title?></h2> <h2><?=$Title?></h2>
<div class="linkbox"> <div class="linkbox">
<? if (!$BookmarkView) { ?> <? if (!$BookmarkView) { ?>
@ -302,6 +303,7 @@
<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">
<? if ($BookmarkView) { ?> <? if ($BookmarkView) { ?>

View File

@ -245,6 +245,7 @@ show_header($Title, 'requests');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=$Title?></h2> <h2><?=$Title?></h2>
<div class="linkbox"> <div class="linkbox">
<? if(check_perms('site_submit_requests')){ ?> <? if(check_perms('site_submit_requests')){ ?>
@ -255,6 +256,7 @@ show_header($Title, 'requests');
<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">
<input type="hidden" name="submit" value="true" /> <input type="hidden" name="submit" value="true" />

View File

@ -8,7 +8,9 @@
} }
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2 class="center">Client Whitelist</h2> <h2 class="center">Client Whitelist</h2>
</div>
<div class="box pad"> <div class="box pad">
<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> <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>
<table cellpadding="5" cellspacing="1" border="0" class="border" width="100%"> <table cellpadding="5" cellspacing="1" border="0" class="border" width="100%">

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">
<div class="header">
<h3 id="general">Golden Rules</h3> <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">
<div class="header">
<h3 id="general">Tagging rules</h3> <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,16 +292,28 @@ 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">
<div class="header">
<h2><?=SITE_NAME?> Staff</h2> <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,6 +11,7 @@
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2>Staff PMs - Manage common responses</h2> <h2>Staff PMs - Manage common responses</h2>
<div class="linkbox"> <div class="linkbox">
<? if ($IsStaff) { ?> <? if ($IsStaff) { ?>
@ -22,9 +23,10 @@
<? 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 />
<br />
</div> </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,6 +79,7 @@
// Start page // Start page
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=$ViewString?> Staff PMs</h2> <h2><?=$ViewString?> Staff PMs</h2>
<div class="linkbox"> <div class="linkbox">
<? if ($IsStaff) { <? if ($IsStaff) {
@ -87,8 +88,11 @@
<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>
</div>
</div>
<br /> <br />
<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">
<div class="header">
<h2>Staff PMs</h2> <h2>Staff PMs</h2>
<div class="linkbox"> <div class="linkbox">
<a href="#" onClick="$('#compose').toggle();">[Compose New]</a> <a href="#" onClick="$('#compose').toggle();">[Compose New]</a>
<br />
<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,6 +30,7 @@
?> ?>
<div id="thin"> <div id="thin">
<div class="header">
<h2>Staff PM - <?=display_str($Subject)?></h2> <h2>Staff PM - <?=display_str($Subject)?></h2>
<div class="linkbox"> <div class="linkbox">
<? <?
@ -54,10 +55,10 @@
<? <?
} }
?> ?> </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">
<div class="header">
<h3><?=$Balance?></h3> <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,8 +21,10 @@
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>
</div>
<table width="100%">
<tr class="colhead"> <tr class="colhead">
<td>IP</td> <td>IP</td>
<td>User</td> <td>User</td>
@ -74,6 +76,6 @@
<? <?
} }
?> ?>
</table> </table>
</div> </div>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -28,7 +28,9 @@
} }
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?= ($_GET['action'] == 'news')? 'Create a news post' : 'Edit news post';?></h2> <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,10 +12,12 @@ function confirmDelete(id) {
//]]> //]]>
</script> </script>
<div class="thin"> <div class="thin">
<div class="header">
<div class="linkbox"> <div class="linkbox">
[<a href="tools.php?action=permissions&amp;id=new">Create a new permission set</a>] [<a href="tools.php?action=permissions&amp;id=new">Create a new permission set</a>]
[<a href="tools.php">Back to Tools</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)
FROM permissions AS p FROM permissions AS p

View File

@ -27,13 +27,13 @@
} }
} }
?> ?>
<div class="header">
<div class="linkbox"> <h2>Tag Aliases</h2>
<div class="linkbox">
[<a href="tools.php?action=tag_aliases&order=goodtags">Sort by Good 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>] [<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 @@
} }
} }
?> ?>
<div class="header">
<h2>Clear a cache key</h2> <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 {
?> ?>
<div class="header">
<h2>Create a User</h2> <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">
<h2>Top 10 Torrents</h2>
<div class="linkbox"> <div class="linkbox">
<a href="top10.php?type=torrents"><strong>[Torrents]</strong></a> <a href="top10.php?type=torrents"><strong>[Torrents]</strong></a>
<a href="top10.php?type=users">[Users]</a> <a href="top10.php?type=users">[Users]</a>
<a href="top10.php?type=tags">[Tags]</a> <a href="top10.php?type=tags">[Tags]</a>
<a href="top10.php?type=history">[History]</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,12 +13,14 @@
show_header('Top 10 Tags'); show_header('Top 10 Tags');
?> ?>
<div class="thin"> <div class="thin">
<h2> Top 10 Tags </h2> <div class="header">
<h2>Top 10 Tags</h2>
<div class="linkbox"> <div class="linkbox">
<a href="top10.php?type=torrents">[Torrents]</a> <a href="top10.php?type=torrents">[Torrents]</a>
<a href="top10.php?type=users">[Users]</a> <a href="top10.php?type=users">[Users]</a>
<a href="top10.php?type=tags"><strong>[Tags]</strong></a> <a href="top10.php?type=tags"><strong>[Tags]</strong></a>
</div> </div>
</div>
<? <?

View File

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

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">
<h2>Top 10 Users</h2>
<div class="linkbox"> <div class="linkbox">
<a href="top10.php?type=torrents">[Torrents]</a> <a href="top10.php?type=torrents">[Torrents]</a>
<a href="top10.php?type=users"><strong>[Users]</strong></a> <a href="top10.php?type=users"><strong>[Users]</strong></a>
<a href="top10.php?type=tags">[Tags]</a> <a href="top10.php?type=tags">[Tags]</a>
</div> </div>
</div>
<? <?
// defaults to 10 (duh) // defaults to 10 (duh)

View File

@ -90,6 +90,7 @@ function compare($X, $Y){
show_header($Title,'browse,comments,torrent,bbcode'); show_header($Title,'browse,comments,torrent,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=$DisplayName?></h2> <h2><?=$DisplayName?></h2>
<div class="linkbox"> <div class="linkbox">
<? if(check_perms('site_edit_wiki')) { ?> <? if(check_perms('site_edit_wiki')) { ?>
@ -113,7 +114,7 @@ function compare($X, $Y){
<? }?> <? }?>
<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">
<div class="header">
<h2>Edit <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2> <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,7 +40,9 @@
show_header(); show_header();
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2>Change Group Confirm!</h2> <h2>Change Group 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="editgroupid" /> <input type="hidden" name="action" value="editgroupid" />
@ -49,9 +51,9 @@
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" /> <input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
<input type="hidden" name="oldgroupid" value="<?=$OldGroupID?>" /> <input type="hidden" name="oldgroupid" value="<?=$OldGroupID?>" />
<input type="hidden" name="groupid" value="<?=$GroupID?>" /> <input type="hidden" name="groupid" value="<?=$GroupID?>" />
<h2>You are attempting to move the torrent with ID <?=$TorrentID?> from the group:</h2> <h3>You are attempting to move the torrent with ID <?=$TorrentID?> from the group:</h3>
<ul><li><?= display_artists($Artists[$OldGroupID], true, false)?> - <a href="torrents.php?id=<?=$OldGroupID?>"><?=$Name?></a></li></ul> <ul><li><?= display_artists($Artists[$OldGroupID], true, false)?> - <a href="torrents.php?id=<?=$OldGroupID?>"><?=$Name?></a></li></ul>
<h2>Into the group:</h2> <h3>Into 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[$GroupID], true, false)?> - <a href="torrents.php?id=<?=$GroupID?>"><?=$NewName?></a></li></ul>
<input type="submit" value="Confirm" /> <input type="submit" value="Confirm" />
</form> </form>

View File

@ -14,8 +14,9 @@
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2>History for <?=$Title?></h2> <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">
<div class="header">
<h2>Revision history for <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2> <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">
<div class="header">
<h2>Send PM To All Snatchers Of "<?=$Properties['ArtistName']?> - <?=$Properties['Title']?>"</h2> <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">
<div class="header">
<h2>Merge Confirm!</h2> <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">
<div class="header">
<h2>Successfully sent re-seed request</h2> <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">
<div class="header">
<h2><a href="user.php?id=<?=$UserID?>"><?=$User['Username']?></a><?='\'s '.$Action.' torrents'?></h2> <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">
<div class="header">
<h2><a href="user.php?id=<?=$LoggedUser['ID']?>"><?=$LoggedUser['Username']?></a> &gt; Connectability Checker</h2> <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">
<div class="header">
<h2><?=format_username($UserID, false, false, false)?> &gt; Settings</h2> <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,10 +88,12 @@
show_header('Invites'); show_header('Invites');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=format_username($UserID, false, false, false)?> &gt; Invites</h2> <h2><?=format_username($UserID, false, false, false)?> &gt; Invites</h2>
<div class="linkbox"> <div class="linkbox">
[<a href="user.php?action=invitetree<? if($Sneaky){ echo '&amp;userid='.$UserID; }?>">Invite tree</a>] [<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">
<p>Because the user limit has been reached you are unable to send invites at this time.</p> <p>Because the user limit has been reached you are unable to send invites at this time.</p>

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">
<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> <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">
<div class="header">
<h2>Notify me of all new torrents with...<a href="torrents.php?action=notify">(View)</a></h2> <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>
<div class="linkbox">
[<a href="#" onclick="reset();return false;">Defaults</a>] [<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">
<div class="header">
<h3>Search results</h3> <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,12 +155,13 @@
// 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>
<div class=" linkbox center">
<a href="userhistory.php?action=email&userid=<?=$UserID?>"><strong>Old email history</strong></a> <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%">
<tr class="colhead"> <tr class="colhead">

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);
?> ?>
<div class="thin">
<div class="header">
<h2>IP history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2> <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);
?> ?>
<div class="thin">
<div class="header">
<h2>Tracker IP history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2> <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,6 +185,7 @@
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2> <h2>
<? <?
if($ShowGrouped) { if($ShowGrouped) {
@ -198,7 +199,6 @@
} }
?> ?>
</h2> </h2>
<div class="linkbox"> <div class="linkbox">
<? <?
if($ViewingOwn) { if($ViewingOwn) {
@ -232,9 +232,9 @@
<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,6 +39,7 @@
$CollageSubs = $DB->to_array(); $CollageSubs = $DB->to_array();
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2>Subscribed collages<?=($ShowAll?'':' with new additions')?></h2> <h2>Subscribed collages<?=($ShowAll?'':' with new additions')?></h2>
<div class="linkbox"> <div class="linkbox">
@ -57,6 +58,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,6 +92,7 @@
} }
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?='Subscribed topics'.($ShowUnread?' with unread posts':'')?></h2> <h2><?='Subscribed topics'.($ShowUnread?' with unread posts':'')?></h2>
<div class="linkbox"> <div class="linkbox">
@ -116,6 +117,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">
<div class="header">
<h2>No article found</h2> <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,6 +38,7 @@
show_header($Title,'wiki,bbcode'); show_header($Title,'wiki,bbcode');
?> ?>
<div class="thin"> <div class="thin">
<div class="header">
<h2><?=$Title?></h2> <h2><?=$Title?></h2>
<div class="linkbox box"> <div class="linkbox box">
<a href="wiki.php?action=create">[Create]</a> <a href="wiki.php?action=create">[Create]</a>
@ -46,7 +49,7 @@
<? } ?> <? } ?>
<!--<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>
<br /> </div>
<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