Empty commit

This commit is contained in:
Git 2013-03-23 08:00:43 +00:00
parent 3916c9ffc0
commit 96faadd82e
8 changed files with 104 additions and 95 deletions

View File

@ -10,9 +10,9 @@ class View
* This function is to include the header file on a page.
*
* @param $PageTitle the title of the page
* @param $JSIncludes is a comma separated list of js files to be inclides on
* the page, ONLY PUT THE RELATIVE LOCATION WITHOUT .js
* ex: 'somefile,somdire/somefile'
* @param $JSIncludes is a comma-separated list of JS files to be included on
* the page. ONLY PUT THE RELATIVE LOCATION WITHOUT '.js'
* example: 'somefile,somedir/somefile'
*/
public static function show_header($PageTitle='',$JSIncludes='')
{
@ -93,7 +93,7 @@ public static function render_template ($TemplateName, $Args)
* variables.
*
* All files must be placed within {self::IncludePath}. Create and organize
* new paths and files. (eg: /design/views/artist/, design/view/forums/, etc.)
* new paths and files. (e.g.: /design/views/artist/, design/view/forums/, etc.)
*
* @static
* @param string $TemplateFile A relative path to a PHTML file

View File

@ -19,10 +19,10 @@
$Load = sys_getloadavg();
?>
<p>
Site and design &copy; <?=date("Y")?> <?=SITE_NAME?>
</p>
<? if(!empty($LastActive)){ ?><p><a href="user.php?action=sessions" title="Manage Sessions">Last activity <?=time_diff($LastActive['LastUpdate'])?> from <?=$LastActive['IP']?>.</a></p><? } ?>
<p>Site and design &copy; <?=date("Y")?> <?=SITE_NAME?></p>
<? if(!empty($LastActive)) { ?>
<p><a href="user.php?action=sessions" title="Manage sessions">Last activity <?=time_diff($LastActive['LastUpdate'])?> from <?=$LastActive['IP']?>.</a></p>
<? } ?>
<p>
<strong>Time:</strong> <?=number_format(((microtime(true)-$ScriptStartTime)*1000),5)?> ms
<strong>Used:</strong> <?=Format::get_size(memory_get_usage(true))?>

View File

@ -20,13 +20,16 @@
<link rel="alternate" type="application/rss+xml" href="feeds.php?feed=feed_news&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>" title="<?=SITE_NAME?> - News" />
<link rel="alternate" type="application/rss+xml" href="feeds.php?feed=feed_blog&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>" title="<?=SITE_NAME?> - Blog" />
<link rel="alternate" type="application/rss+xml" href="feeds.php?feed=torrents_notify_<?=$LoggedUser['torrent_pass']?>&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>" title="<?=SITE_NAME?> - P.T.N." />
<? if(isset($LoggedUser['Notify'])) {
foreach($LoggedUser['Notify'] as $Filter) {
<?
if (isset($LoggedUser['Notify'])) {
foreach ($LoggedUser['Notify'] as $Filter) {
list($FilterID, $FilterName) = $Filter;
?>
<link rel="alternate" type="application/rss+xml" href="feeds.php?feed=torrents_notify_<?=$FilterID?>_<?=$LoggedUser['torrent_pass']?>&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;name=<?=urlencode($FilterName)?>" title="<?=SITE_NAME?> - <?=display_str($FilterName)?>" />
<? }
}?>
<?
}
}
?>
<link rel="alternate" type="application/rss+xml" href="feeds.php?feed=torrents_all&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>" title="<?=SITE_NAME?> - All Torrents" />
<link rel="alternate" type="application/rss+xml" href="feeds.php?feed=torrents_music&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>" title="<?=SITE_NAME?> - Music Torrents" />
<link rel="alternate" type="application/rss+xml" href="feeds.php?feed=torrents_apps&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>" title="<?=SITE_NAME?> - Application Torrents" />
@ -45,13 +48,17 @@
<? if ($Mobile) { ?>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0, user-scalable=no;" />
<link href="<?=STATIC_SERVER ?>styles/mobile/style.css" rel="stylesheet" type="text/css" />
<? } else { ?>
<? if (empty($LoggedUser['StyleURL'])) { ?>
<?
} else {
if (empty($LoggedUser['StyleURL'])) {
?>
<link href="<?=STATIC_SERVER?>styles/<?=$LoggedUser['StyleName']?>/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/'.$LoggedUser['StyleName'].'/style.css')?>" title="<?=$LoggedUser['StyleName']?>" rel="stylesheet" type="text/css" media="screen" />
<? } else { ?>
<? } else { ?>
<link href="<?=$LoggedUser['StyleURL']?>" title="External CSS" rel="stylesheet" type="text/css" media="screen" />
<? } ?>
<? } ?>
<?
}
}
?>
<script src="<?=STATIC_SERVER?>functions/sizzle.js" type="text/javascript"></script>
<script src="<?=STATIC_SERVER?>functions/script_start.js?v=<?=filemtime(SERVER_ROOT.'/static/functions/script_start.js')?>" type="text/javascript"></script>
@ -61,22 +68,23 @@
var userid = <?=$LoggedUser['ID']?>;
//]]></script>
<script src="<?=STATIC_SERVER?>functions/global.js?v=<?=filemtime(SERVER_ROOT.'/static/functions/global.js')?>" type="text/javascript"></script>
<?
<?
$Scripts=explode(',',$JSIncludes);
foreach ($Scripts as $Script) {
if (empty($Script)) { continue; }
if (empty($Script)) {
continue;
}
?>
<script src="<?=STATIC_SERVER?>functions/<?=$Script?>.js?v=<?=filemtime(SERVER_ROOT.'/static/functions/'.$Script.'.js')?>" type="text/javascript"></script>
<?
if ($Script == 'jquery') { ?>
<script type="text/javascript">
$.noConflict();
$.noConflict();
</script>
<?
} ?>
<?
}
}
if ($Mobile) { ?>
<script src="<?=STATIC_SERVER?>styles/mobile/style.js" type="text/javascript"></script>
@ -100,7 +108,7 @@
<ul id="userinfo_major">
<li id="nav_upload" class="brackets<?=Format::add_class($PageID, array('upload'), 'active', false)?>"><a href="upload.php">Upload</a></li>
<?
if(check_perms('site_send_unlimited_invites')) {
if (check_perms('site_send_unlimited_invites')) {
$Invites = ' (∞)';
} elseif ($LoggedUser['Invites']>0) {
$Invites = ' ('.$LoggedUser['Invites'].')';
@ -111,22 +119,22 @@
<li id="nav_invite" class="brackets<?=Format::add_class($PageID, array('user','invite'), 'active', false)?>"><a href="user.php?action=invite">Invite<?=$Invites?></a></li>
<li id="nav_donate" class="brackets<?=Format::add_class($PageID, array('donate'), 'active', false)?>"><a href="donate.php">Donate</a></li>
</ul>
</ul>
<ul id="userinfo_stats">
<li id="stats_seeding"><a href="torrents.php?type=seeding&amp;userid=<?=$LoggedUser['ID']?>">Up</a>: <span class="stat" title="<?=Format::get_size($LoggedUser['BytesUploaded'], 5)?>"><?=Format::get_size($LoggedUser['BytesUploaded'])?></span></li>
<li id="stats_leeching"><a href="torrents.php?type=leeching&amp;userid=<?=$LoggedUser['ID']?>">Down</a>: <span class="stat" title="<?=Format::get_size($LoggedUser['BytesDownloaded'], 5)?>"><?=Format::get_size($LoggedUser['BytesDownloaded'])?></span></li>
<li id="stats_ratio">Ratio: <span class="stat"><?=Format::get_ratio_html($LoggedUser['BytesUploaded'], $LoggedUser['BytesDownloaded'])?></span></li>
<? if(!empty($LoggedUser['RequiredRatio'])) {?>
<? if (!empty($LoggedUser['RequiredRatio'])) {?>
<li id="stats_required"><a href="rules.php?p=ratio">Required</a>: <span class="stat" title="<?=number_format($LoggedUser['RequiredRatio'], 5)?>"><?=number_format($LoggedUser['RequiredRatio'], 2)?></span></li>
<? }
if($LoggedUser['FLTokens'] > 0) { ?>
if ($LoggedUser['FLTokens'] > 0) { ?>
<li id="fl_tokens"><a href="wiki.php?action=article&amp;id=754">Tokens</a>: <span class="stat"><a href="userhistory.php?action=token_history&amp;userid=<?=$LoggedUser['ID']?>"><?=$LoggedUser['FLTokens']?></a></span></li>
<? } ?>
</ul>
<?
$NewSubscriptions = $Cache->get_value('subscriptions_user_new_'.$LoggedUser['ID']);
if($NewSubscriptions === FALSE) {
if($LoggedUser['CustomForums']) {
if ($NewSubscriptions === false) {
if ($LoggedUser['CustomForums']) {
unset($LoggedUser['CustomForums']['']);
$RestrictedForums = implode("','", array_keys($LoggedUser['CustomForums'], 0));
$PermittedForums = implode("','", array_keys($LoggedUser['CustomForums'], 1));
@ -179,9 +187,9 @@
$ModBar = array();
//Quotes
if($LoggedUser['NotifyOnQuote']) {
if ($LoggedUser['NotifyOnQuote']) {
$QuoteNotificationsCount = $Cache->get_value('notify_quoted_'.$LoggedUser['ID']);
if($QuoteNotificationsCount === FALSE) {
if ($QuoteNotificationsCount === false) {
if ($LoggedUser['CustomForums']) {
unset($LoggedUser['CustomForums']['']);
$RestrictedForums = implode("','", array_keys($LoggedUser['CustomForums'], 0));
@ -191,22 +199,22 @@
FROM users_notify_quoted AS q
LEFT JOIN forums_topics AS t ON t.ID = q.PageID
LEFT JOIN forums AS f ON f.ID = t.ForumID
WHERE q.UserID='".$LoggedUser['ID']."' AND q.UnRead AND q.Page = 'forums' AND ((f.MinClassRead <= '$LoggedUser[Class]'";
if(!empty($RestrictedForums)) {
$sql.=' AND f.ID NOT IN (\''.$RestrictedForums.'\')';
WHERE q.UserID=$LoggedUser[ID] AND q.UnRead=1 AND q.Page = 'forums' AND ((f.MinClassRead<='$LoggedUser[Class]'";
if (!empty($RestrictedForums)) {
$sql .= " AND f.ID NOT IN ('$RestrictedForums')";
}
$sql .= ')';
if(!empty($PermittedForums)) {
$sql.=' OR f.ID IN (\''.$PermittedForums.'\')';
if (!empty($PermittedForums)) {
$sql .= " OR f.ID IN ('$PermittedForums')";
}
$sql .= ')';
$DB->query($sql);
list($QuoteNotificationsCount) = $DB->next_record();
$Cache->cache_value('notify_quoted_'.$LoggedUser['ID'], $QuoteNotificationsCount, 0);
}
if($QuoteNotificationsCount > 0) {
$Alerts[] = '<a href="userhistory.php?action=quote_notifications">'. 'New quote'. ($QuoteNotificationsCount > 1 ? 's' : '') . '</a>';
}
}
if ($QuoteNotificationsCount > 0) {
$Alerts[] = '<a href="userhistory.php?action=quote_notifications">'. 'New quote'. ($QuoteNotificationsCount > 1 ? 's' : '') . '</a>';
}
}
// News
@ -242,7 +250,7 @@
}
// Staff blog
if(check_perms('users_mod')) {
if (check_perms('users_mod')) {
global $SBlogReadTime, $LatestSBlogTime;
if (!$SBlogReadTime && ($SBlogReadTime = $Cache->get_value('staff_blog_read_'.$LoggedUser['ID'])) === false) {
$DB->query("SELECT Time FROM staff_blog_visits WHERE UserID = ".$LoggedUser['ID']);
@ -291,9 +299,9 @@
$Alerts[] = '<a href="inbox.php">'.'You have '.$NewMessages.(($NewMessages > 1) ? ' new messages' : ' new message').'</a>';
}
if($LoggedUser['RatioWatch']) {
if ($LoggedUser['RatioWatch']) {
$Alerts[] = '<a href="rules.php?p=ratio">'.'Ratio Watch'.'</a>: '.'You have '.time_diff($LoggedUser['RatioWatchEnds'], 3).' to get your ratio over your required ratio or your leeching abilities will be disabled.';
} else if($LoggedUser['CanLeech'] != 1) {
} elseif ($LoggedUser['CanLeech'] != 1) {
$Alerts[] = '<a href="rules.php?p=ratio">'.'Ratio Watch'.'</a>: '.'Your downloading privileges are disabled until you meet your required ratio.';
}
@ -314,14 +322,14 @@
}
// Collage subscriptions
if(check_perms('site_collages_subscribe')) {
if (check_perms('site_collages_subscribe')) {
$NewCollages = $Cache->get_value('collage_subs_user_new_'.$LoggedUser['ID']);
if($NewCollages === FALSE) {
if ($NewCollages === false) {
$DB->query("SELECT COUNT(DISTINCT s.CollageID)
FROM users_collage_subs as s
JOIN collages as c ON s.CollageID = c.ID
JOIN collages_torrents as ct on ct.CollageID = c.ID
WHERE s.UserID = ".$LoggedUser['ID']." AND ct.AddedOn > s.LastVisit AND c.Deleted = '0'");
WHERE s.UserID = $LoggedUser[ID] AND ct.AddedOn > s.LastVisit AND c.Deleted = '0'");
list($NewCollages) = $DB->next_record();
$Cache->cache_value('collage_subs_user_new_'.$LoggedUser['ID'], $NewCollages, 0);
}
@ -329,16 +337,16 @@
$Alerts[] = '<a href="userhistory.php?action=subscribed_collages">'.'You have '.$NewCollages.(($NewCollages > 1) ? ' new collage updates' : ' new collage update').'</a>';
}
}
if(check_perms('users_mod')) {
if (check_perms('users_mod')) {
$ModBar[] = '<a href="tools.php">'.'Toolbox'.'</a>';
}
if (check_perms('users_mod') || $LoggedUser['PermissionID'] == FORUM_MOD) {
$NumStaffPMs = $Cache->get_value('num_staff_pms_'.$LoggedUser['ID']);
if ($NumStaffPMs === false) {
if(check_perms('users_mod')) {
if (check_perms('users_mod')) {
$DB->query("SELECT COUNT(ID) FROM staff_pm_conversations WHERE Status='Unanswered' AND (AssignedToUser=".$LoggedUser['ID']." OR (Level >= ".max(700,$Classes[MOD]['Level'])." AND Level <=".$LoggedUser['Class']."))");
}
if($LoggedUser['PermissionID'] == FORUM_MOD) {
if ($LoggedUser['PermissionID'] == FORUM_MOD) {
$DB->query("SELECT COUNT(ID) FROM staff_pm_conversations WHERE Status='Unanswered' AND (AssignedToUser=".$LoggedUser['ID']." OR Level = '". $Classes[FORUM_MOD]['Level'] . "')");
}
list($NumStaffPMs) = $DB->next_record();
@ -349,7 +357,7 @@
$ModBar[] = '<a href="staffpm.php">'.$NumStaffPMs.' Staff PMs</a>';
}
}
if(check_perms('admin_reports')) {
if (check_perms('admin_reports')) {
$NumTorrentReports = $Cache->get_value('num_torrent_reportsv2');
if ($NumTorrentReports === false) {
$DB->query("SELECT COUNT(ID) FROM reportsv2 WHERE Status='New'");
@ -360,7 +368,7 @@
$ModBar[] = '<a href="reportsv2.php">'.$NumTorrentReports.(($NumTorrentReports == 1) ? ' Report' : ' Reports').'</a>';
}
if(check_perms('admin_reports')) {
if (check_perms('admin_reports')) {
$NumOtherReports = $Cache->get_value('num_other_reports');
if ($NumOtherReports === false) {
$DB->query("SELECT COUNT(ID) FROM reports WHERE Status='New'");
@ -371,7 +379,7 @@
if ($NumOtherReports > 0) {
$ModBar[] = '<a href="reports.php">'.$NumOtherReports.(($NumTorrentReports == 1) ? ' Other report' : ' Other reports').'</a>';
}
} else if(check_perms('project_team')) {
} elseif (check_perms('project_team')) {
$NumUpdateReports = $Cache->get_value('num_update_reports');
if ($NumUpdateReports === false) {
$DB->query("SELECT COUNT(ID) FROM reports WHERE Status='New' AND Type = 'request_update'");
@ -382,7 +390,7 @@
if ($NumUpdateReports > 0) {
$ModBar[] = '<a href="reports.php">'.'Request update reports'.'</a>';
}
} else if(check_perms('site_moderate_forums')) {
} elseif (check_perms('site_moderate_forums')) {
$NumForumReports = $Cache->get_value('num_forum_reports');
if ($NumForumReports === false) {
$DB->query("SELECT COUNT(ID) FROM reports WHERE Status='New' AND Type IN('collages_comment', 'Post', 'requests_comment', 'thread', 'torrents_comment')");
@ -400,19 +408,17 @@
if (!empty($Alerts) || !empty($ModBar)) {
?>
<div id="alerts">
<? foreach ($Alerts as $Alert) { ?>
<? foreach ($Alerts as $Alert) { ?>
<div class="alertbar"><?=$Alert?></div>
<? }
if (!empty($ModBar)) { ?>
<? }
if (!empty($ModBar)) { ?>
<div class="alertbar blend"><?=implode(' | ',$ModBar)?></div>
<? } ?>
<? } ?>
</div>
<?
}
//Done handling alertbars
?>
<div id="searchbars">
<ul>
<li id="searchbar_torrents">
@ -427,7 +433,7 @@
spellcheck="false"
onfocus="if (this.value == 'Torrents') this.value='';"
onblur="if (this.value == '') this.value='Torrents';"
<? if(isset($LoggedUser['SearchType']) && $LoggedUser['SearchType']) { // Advanced search ?>
<? if (isset($LoggedUser['SearchType']) && $LoggedUser['SearchType']) { // Advanced search ?>
value="Torrents" type="text" name="groupname" size="17"
<? } else { ?>
value="Torrents" type="text" name="searchstr" size="17"
@ -512,6 +518,5 @@
</li>
</ul>
</div>
</div>
<div id="content">

View File

@ -1,10 +1,12 @@
<?
authorize();
if(!check_perms('torrents_edit')) { error(403); }
if (!check_perms('torrents_edit')) {
error(403);
}
$AliasID = $_GET['aliasid'];
if(!is_number($AliasID)) {
if (!is_number($AliasID)) {
error(0);
}
@ -13,25 +15,25 @@
JOIN artists_alias AS aa2 ON aa.ArtistID=aa2.ArtistID
WHERE aa.AliasID=".$AliasID);
if($DB->record_count() == 1) {
if ($DB->record_count() == 1) {
//This is the last alias on the artist
error("That alias is the last alias for that artist, removing it would cause bad things to happen.");
error("That alias is the last alias for that artist; removing it would cause bad things to happen.");
}
$DB->query("SELECT GroupID FROM torrents_artists WHERE AliasID='$AliasID'");
if($DB->record_count() > 0) {
if ($DB->record_count() > 0) {
list($GroupID) = $DB->next_record();
if($GroupID != 0) {
error("That alias still has the group ($GroupID) attached, fix that first.");
if ($GroupID != 0) {
error("That alias still has the group (<a href=\"torrents.php?id=$GroupID\">$GroupID</a>) attached. Fix that first.");
}
}
$DB->query("SELECT aa.ArtistID, ag.Name, aa.Name FROM artists_alias AS aa JOIN artists_group AS ag ON aa.ArtistID=ag.ArtistID WHERE aa.AliasID=".$AliasID);
$DB->query("SELECT aa.ArtistID, ag.Name, aa.Name FROM artists_alias AS aa JOIN artists_group AS ag ON aa.ArtistID=ag.ArtistID WHERE aa.AliasID=$AliasID");
list($ArtistID, $ArtistName, $AliasName) = $DB->next_record(MYSQLI_NUM, false);
$DB->query("DELETE FROM artists_alias WHERE AliasID='$AliasID'");
$DB->query("UPDATE artists_alias SET Redirect='0' WHERE Redirect='$AliasID'");
Misc::write_log("The alias ".$AliasID." (".$AliasName.") was removed from the artist ".$ArtistID." (".$ArtistName.") by user ".$LoggedUser['ID']." (".$LoggedUser['Username'].")");
Misc::write_log("The alias $AliasID ($AliasName) was removed from the artist $ArtistID ($ArtistName) by user $LoggedUser[ID] ($LoggedUser[Username])");
header('Location: '.$_SERVER['HTTP_REFERER']);
header("Location: $_SERVER[HTTP_REFERER]");

View File

@ -219,7 +219,7 @@
<li id="r2.1.19.3"><a href="#r2.1.19"><strong>&uarr;_</strong></a> <a href="#r2.1.19.3">2.1.19.3.</a> <strong>Bonus discs may be uploaded separately in accordance with <a href="#h2.4">2.4</a>.</strong> Please note that individual bonus tracks cannot be uploaded without the rest of the album. Bonus tracks are not bonus discs. Enhanced audio CDs with data or video tracks must be uploaded without the non-audio tracks. If you want to share the videos or data, you may host the files off-site with a file sharing service and include the link to that service in your torrent description.</li>
</ul>
</li>
<li id="r2.1.20"><a href="#h2.1"><strong>&uarr;_</strong></a> <a href="#r2.1.20">2.1.20.</a> <strong>User made discographies may not be uploaded.</strong> Multi-album torrents are not allowed on the site under any circumstances. That means no discographies, Pitchfork compilations, etc. If releases (e.g., CD singles) were never released as a bundled set, do not upload them together. Live Soundboard material should be uploaded as one torrent per night, per show, or per venue. Including more than one show in a torrent results in a multi-album torrent. Exceptions: Only official boxsets and official compilation collections can contain multiple albums.</li>
<li id="r2.1.20"><a href="#h2.1"><strong>&uarr;_</strong></a> <a href="#r2.1.20">2.1.20.</a> <strong>User made discographies may not be uploaded.</strong> Multi-album torrents are not allowed on the site under any circumstances. That means no discographies, Pitchfork compilations, etc. If releases (e.g., CD singles) were never released as a bundled set, do not upload them together. Live soundboard material should be uploaded as one torrent per night, per show, or per venue. Including more than one show in a torrent results in a multi-album torrent. Exceptions: Only official boxsets and official compilation collections can contain multiple albums.</li>
<li id="r2.1.21"><a href="#h2.1"><strong>&uarr;_</strong></a> <a href="#r2.1.21">2.1.21.</a> <strong><a href="wiki.php?action=article&amp;id=386">Pre-emphasis</a> is allowed in lossless torrents only.</strong> Lossless FLAC torrents with pre-emphasis are allowed on the site. They are allowed to coexist with lossless de-emphasized torrents (both in their separate album edition groups). In contrast, lossy formats may not have pre-emphasis and will be deleted if uploaded.</li>
<li id="r2.1.22"><a href="#h2.1"><strong>&uarr;_</strong></a> <a href="#r2.1.22">2.1.22.</a> <strong>Edition Information must be provided for digitally-sourced torrents.</strong> Digitally-sourced (including CD-sourced) rips of albums that were first released before the availability of their source medium must have accurate edition information. For example, if a CD rip is of an album whose original release date was 1957, predating the creation and distribution of CDs, then the uploader must make note of the correct year in which the CD was pressed, and preferably note the catalog identification as well. Rips for which Edition Information cannot be provided must be marked as an "Unknown Release." Under no circumstances may you guess or feign knowledge of the Edition Information. See <a href="wiki.php?action=article&amp;id=367">this wiki</a> for more information on album editions.</li>
<li id="r2.1.23"><a href="#h2.1"><strong>&uarr;_</strong></a> <a href="#r2.1.23">2.1.23.</a> <strong>Audio can only be ripped from a video game CD under very specific circumstances. Audio ripped from a video game DVD is not allowed on site.</strong>
@ -423,7 +423,7 @@
</li>
<li id="r2.6.4"><a href="#h2.6"><strong>&uarr;_</strong></a> <a href="#r2.6.4">2.6.4.</a> <strong>Soundboards must comprise complete shows.</strong> Incomplete shows will be deleted.</li>
<li id="r2.6.5"><a href="#h2.6"><strong>&uarr;_</strong></a> <a href="#r2.6.5">2.6.5.</a> <strong>Soundboards may not include soundchecks.</strong> Those uploaded with a soundcheck will be deleted.</li>
<li id="r2.6.6"><a href="#h2.6"><strong>&uarr;_</strong></a> <a href="#r2.6.6">2.6.6.</a> <strong>One Tape generation and one CD-R generation are allowed for each Soundboard upload.</strong>
<li id="r2.6.6"><a href="#h2.6"><strong>&uarr;_</strong></a> <a href="#r2.6.6">2.6.6.</a> <strong>One tape generation and one CD-R generation are allowed for each soundboard upload.</strong>
<ul>
<li id="r2.6.6.1"><a href="#r2.6.6"><strong>&uarr;_</strong></a> <a href="#r2.6.6.1">2.6.6.1.</a> <strong>The tape generation must be the first generation.</strong> For example, there can be a master tape and then a subsequent tape (with no other transfer in between). Any additional tape generations beyond the secondary tape will require staff approval (see <a href="#h2.10">2.10</a>).</li>
<li id="r2.6.6.2"><a href="#r2.6.6"><strong>&uarr;_</strong></a> <a href="#r2.6.6.2">2.6.6.2.</a> <strong>If a limited number of tracks (at the discretion of the staff member involved) have been patched with a short amount of tape-sourced data you may still upload the recording but this information must be clearly stated in the lineage and the album description.</strong> </li>

View File

@ -64,18 +64,18 @@
$PageLinks=Format::get_pages($Page,$Results,BANS_PER_PAGE,11);
View::show_header('IP Bans');
View::show_header('IP Address Bans');
$DB->set_query_id($Bans);
?>
<div class="header">
<h2>IP Bans</h2>
<h2>IP Address Bans</h2>
</div>
<div>
<form class="search_form" name="bans" action="" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr>
<td class="label"><label for="ip">IP:</label></td>
<td class="label"><label for="ip">IP address:</label></td>
<td>
<input type="hidden" name="action" value="ip_ban" />
<input type="text" id="ip" name="ip" size="20" value="<?=(!empty($_GET['ip']) ? display_str($_GET['ip']) : '')?>" />
@ -95,11 +95,13 @@
<br />
<h3>Manage</h3>
<div class="linkbox">
<?=$PageLinks?>
</div>
<table width="100%">
<tr class="colhead">
<td colspan="2">
<span title="The IP addresses specified are &#42;inclusive&#42;. The left box is the beginning of the IP range, and the right box is the end of the IP range.">Range</span>
<span title="The IP addresses specified are &#42;inclusive&#42;. The left box is the beginning of the IP address range, and the right box is the end of the IP address range.">Range</span>
</td>
<td>Notes</td>
<td>Submit</td>
@ -122,7 +124,7 @@
</tr>
<?
$Row = 'a';
while(list($ID, $Start, $End, $Reason) = $DB->next_record()){
while(list($ID, $Start, $End, $Reason) = $DB->next_record()) {
$Row = ($Row === 'a' ? 'b' : 'a');
$Start=long2ip($Start);
$End=long2ip($End);
@ -149,5 +151,7 @@
}
?>
</table>
<div class="linkbox">
<?=$PageLinks?>
</div>
<? View::show_footer(); ?>

View File

@ -31,10 +31,10 @@
$Cache->delete_value('genre_tags');
}
View::show_header('Official Tags');
View::show_header('Official Tags Manager');
?>
<div class="header">
<h2>Official Tags</h2>
<h2>Official Tags Manager</h2>
</div>
<div style="text-align: center">
<div style="display: inline-block;">
@ -69,7 +69,7 @@
<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 style="text-align: center"><?=number_format($TagUses1)?></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td style="text-align: center">
<? if ($TagID2) { ?>
@ -77,7 +77,7 @@
<? } ?>
</td>
<td><?=$TagName2?></td>
<td style="text-align: center"><?=$TagUses2?></td>
<td style="text-align: center"><?=number_format($TagUses2)?></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td style="text-align: center">
<? if ($TagID3) { ?>
@ -85,7 +85,7 @@
<? } ?>
</td>
<td><?=$TagName3?></td>
<td style="text-align: center"><?=$TagUses3?></td>
<td style="text-align: center"><?=number_format($TagUses3)?></td>
</tr>
<?
}
@ -94,7 +94,7 @@
<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>
<td colspan="11" style="text-align: center"><input type="submit" value="Submit changes" /></td>
</tr>
</table>

View File

@ -58,9 +58,7 @@
<? if($CategoryID == 1) { ?>
<select id="releasetype" name="releasetype">
<? foreach ($ReleaseTypes as $Key => $Val) { ?>
<option value='<?=$Key?>' <?=($Key == $ReleaseType ? " selected='selected'" : '')?>>
<?=$Val?>
</option>
<option value="<?=$Key?>"<?=($Key == $ReleaseType ? ' selected="selected"' : '')?>><?=$Val?></option>
<? } ?>
</select>
<? if (check_perms('torrents_edit_vanityhouse')) { ?>
@ -102,24 +100,24 @@
</td>
</tr>
<tr>
<td class="label">Catalogue Number</td>
<td class="label">Catalogue number</td>
<td>
<input type="text" name="catalogue_number" size="40" value="<?=$CatalogueNumber?>" />
</td>
</tr>
<? if(check_perms('torrents_freeleech')) { ?>
<tr>
<td class="label">Freeleech <strong>Group</strong></td>
<td class="label">Torrent <strong>group</strong> leech status</td>
<td>
<input type="checkbox" name="unfreeleech" /> Reset
<input type="checkbox" name="freeleech" /> Freeleech
<input type="checkbox" name="neutralleech" /> Neutral Leech
<input type="checkbox" id="unfreeleech" name="unfreeleech" /><label for="unfreeleech"> Reset</label>
<input type="checkbox" id="freeleech" name="freeleech" /><label for="freeleech"> Freeleech</label>
<input type="checkbox" id="neutralleech" name="neutralleech" /><label for="neutralleech"> Neutral Leech</label>
because
<select name="freeleechtype">
<? $FL = array("N/A", "Staff Pick", "Perma-FL", "Vanity House");
<? $FL = array("N/A", "Staff Pick", "Perma-FL", "Vanity House");
foreach($FL as $Key => $FLType) { ?>
<option value="<?=$Key?>" <?=($Key == $Torrent['FreeLeechType'] ? ' selected="selected"' : '')?>><?=$FLType?></option>
<? } ?>
<option value="<?=$Key?>"<?=($Key == $Torrent['FreeLeechType'] ? ' selected="selected"' : '')?>><?=$FLType?></option>
<? } ?>
</select>
</td>
</tr>