mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 02:21:36 +00:00
Empty commit
This commit is contained in:
parent
7c7573eb48
commit
a49bc32a52
@ -139,7 +139,7 @@ function foot() {
|
||||
<td colspan="2" style="text-align: center;">
|
||||
<p>Be sure that your torrent is approved by the <a href="rules.php?p=upload" target="_blank">rules</a>. Not doing this will result in a <strong class="important_text">warning</strong> or <strong class="important_text">worse</strong>.</p>
|
||||
<? if($this->NewTorrent) { ?>
|
||||
<p>After uploading the torrent, you will have a one hour grace period during which no one other than you can fill requests with this torrent. Make use of this time wisely, and search the requests.</p>
|
||||
<p>After uploading the torrent, you will have a one hour grace period during which no one other than you can fill requests with this torrent. Make use of this time wisely, and <a href="requests.php">search the list of requests</a>.</p>
|
||||
<? } ?>
|
||||
<input id="post" type="submit" <? if($this->NewTorrent) { echo "value=\"Upload torrent\""; } else { echo "value=\"Edit torrent\"";} ?> />
|
||||
</td>
|
||||
@ -588,17 +588,17 @@ function show() {
|
||||
<? } ?>
|
||||
<input type="text" id="tags" name="tags" size="40" value="<?=display_str($Torrent['TagList']) ?>" <?=$this->Disabled?>/>
|
||||
<br />
|
||||
Tags should be comma separated, and you should use a period ('.') to separate words inside a tag - eg. '<strong class="important_text_alt">hip.hop</strong>'.
|
||||
Tags should be comma-separated, and you should use a period (".") to separate words inside a tag — e.g. "<strong class="important_text_alt">hip.hop</strong>".
|
||||
<br /><br />
|
||||
There is a list of official tags to the left of the text box. Please use these tags instead of 'unofficial' tags (e.g. use the official '<strong class="important_text_alt">drum.and.bass</strong>' tag, instead of an unofficial '<strong class="important_text">dnb</strong>' tag). <strong>Please note that the '2000s' tag refers to music produced between 2000 and 2009.</strong>
|
||||
There is a list of official tags to the left of the text box. Please use these tags instead of "unofficial" tags (e.g. use the official "<strong class="important_text_alt">drum.and.bass</strong>" tag, instead of an unofficial "<strong class="important_text">dnb</strong>" tag). <strong>Please note that the "<strong class="important_text_alt">2000s</strong>" tag refers to music produced between 2000 and 2009.</strong>
|
||||
<br /><br />
|
||||
Avoid abbreviations if at all possible. So instead of tagging an album as '<strong class="important_text">alt</strong>', tag it as '<strong class="important_text_alt">alternative</strong>'. Make sure that you use correct spelling.
|
||||
Avoid abbreviations if at all possible. So instead of tagging an album as "<strong class="important_text">alt</strong>", tag it as "<strong class="important_text_alt">alternative</strong>". Make sure that you use correct spelling.
|
||||
<br /><br />
|
||||
Avoid using multiple synonymous tags. Using both '<strong class="important_text">prog.rock</strong>' and '<strong class="important_text_alt">progressive.rock</strong>' is redundant and annoying - just use the official '<strong class="important_text_alt">progressive.rock</strong>' tag.
|
||||
Avoid using multiple synonymous tags. Using both "<strong class="important_text">prog.rock</strong>" and "<strong class="important_text_alt">progressive.rock</strong>" is redundant and annoying—just use the official "<strong class="important_text_alt">progressive.rock</strong>" tag.
|
||||
<br /><br />
|
||||
Don't use 'useless' tags, such as '<strong class="important_text">seen.live</strong>', '<strong class="important_text">awesome</strong>', '<strong class="important_text">rap</strong>' (is encompassed by '<strong class="important_text_alt">hip.hop</strong>'), etc. If an album is live, you can tag it as '<strong class="important_text_alt">live</strong>'.
|
||||
Do not add "useless" tags, such as "<strong class="important_text">seen.live</strong>", "<strong class="important_text">awesome</strong>", "<strong class="important_text">rap</strong>" (is encompassed by "<strong class="important_text_alt">hip.hop</strong>"), etc. If an album is live, you can tag it as "<strong class="important_text_alt">live</strong>".
|
||||
<br /><br />
|
||||
Only tag information on the album itself - NOT THE INDIVIDUAL RELEASE. Tags such as '<strong class="important_text">v0</strong>', '<strong class="important_text">eac</strong>', '<strong class="important_text">vinyl</strong>', '<strong class="important_text">from.oink</strong>' etc. are strictly forbidden. Remember that these tags will be used for other versions of the same album.
|
||||
Only tag information on the album itself—NOT THE INDIVIDUAL RELEASE. Tags such as "<strong class="important_text">v0</strong>", "<strong class="important_text">eac</strong>", "<strong class="important_text">vinyl</strong>", "<strong class="important_text">from.oink</strong>", etc. are strictly forbidden. Remember that these tags will be used for other versions of the same album.
|
||||
<br /><br />
|
||||
<strong>You should be able to build up a list of tags using only the official tags to the left of the text box. If you are in any doubt about whether or not a tag is acceptable, do not add it.</strong>
|
||||
</td>
|
||||
|
@ -11,11 +11,11 @@ public static function vote_link($GroupID, $Vote = '') {
|
||||
if (!$LoggedUser['NoVoteLinks'] && check_perms('site_album_votes')) { ?>
|
||||
<span class="votespan brackets" style="white-space: nowrap">
|
||||
Vote:
|
||||
<a href="#" onclick="UpVoteGroup(<?=$GroupID?>, '<?=$LoggedUser['AuthKey']?>'); return false;" class="small_upvote vote_link_<?=$GroupID?><?=(!empty($Vote)?' hidden':'')?>">↑</a>
|
||||
<span class="voted_type small_upvoted voted_up_<?=$GroupID?><?=(($Vote == 'Down' || empty($Vote))?' hidden':'')?>">↑</span>
|
||||
<a href="#" onclick="DownVoteGroup(<?=$GroupID?>, '<?=$LoggedUser['AuthKey']?>'); return false;" class="small_downvote vote_link_<?=$GroupID?><?=(!empty($Vote)?' hidden':'')?>">↓</a>
|
||||
<span class="voted_type small_downvoted voted_down_<?=$GroupID?><?=(($Vote == 'Up'|| empty($Vote))?' hidden':'')?>">↓</span>
|
||||
<a href="#" onclick="UnvoteGroup(<?=$GroupID?>, '<?=$LoggedUser['AuthKey']?>'); return false;" class="small_clearvote vote_clear_<?=$GroupID?><?=(empty($Vote)?' hidden':'')?>">x</a>
|
||||
<a href="#" onclick="UpVoteGroup(<?=$GroupID?>, '<?=$LoggedUser['AuthKey']?>'); return false;" class="small_upvote vote_link_<?=$GroupID?><?=(!empty($Vote)?' hidden':'')?>" title="Upvote">↑</a>
|
||||
<span class="voted_type small_upvoted voted_up_<?=$GroupID?><?=(($Vote == 'Down' || empty($Vote))?' hidden':'')?>" title="Upvoted">↑</span>
|
||||
<a href="#" onclick="DownVoteGroup(<?=$GroupID?>, '<?=$LoggedUser['AuthKey']?>'); return false;" class="small_downvote vote_link_<?=$GroupID?><?=(!empty($Vote)?' hidden':'')?>" title="Downvote">↓</a>
|
||||
<span class="voted_type small_downvoted voted_down_<?=$GroupID?><?=(($Vote == 'Up'|| empty($Vote))?' hidden':'')?>" title="Downvoted">↓</span>
|
||||
<a href="#" onclick="UnvoteGroup(<?=$GroupID?>, '<?=$LoggedUser['AuthKey']?>'); return false;" class="small_clearvote vote_clear_<?=$GroupID?><?=(empty($Vote)?' hidden':'')?>" title="Clear your vote">x</a>
|
||||
</span>
|
||||
<? }
|
||||
}
|
||||
|
@ -113,7 +113,6 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
foreach ($SearchBitrates as $ID=>$Val) {
|
||||
$SearchBitrates[$ID] = strtolower($Val);
|
||||
}
|
||||
|
||||
foreach ($Formats as $ID => $Val) {
|
||||
$SearchFormats[$ID] = strtolower($Val);
|
||||
}
|
||||
|
@ -57,6 +57,7 @@
|
||||
|
||||
$JsonTorrentList = array();
|
||||
foreach ($TorrentList as $Torrent) {
|
||||
$Userinfo = Users::user_info($Torrent['UserID']);
|
||||
$JsonTorrentList[] = array(
|
||||
'id' => (int) $Torrent['ID'],
|
||||
'media' => $Torrent['Media'],
|
||||
@ -82,7 +83,7 @@
|
||||
'fileList' => $Torrent['FileList'],
|
||||
'filePath' => $Torrent['FilePath'],
|
||||
'userId' => (int) $Torrent['UserID'],
|
||||
'username' => $Torrent['Username']
|
||||
'username' => $Userinfo['Username']
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
SQL template:
|
||||
SELECT
|
||||
CASE
|
||||
WHEN t.Format='Ogg Vorbis' THEN 0
|
||||
WHEN t.Format='MP3' AND t.Encoding='V0 (VBR)' THEN 1
|
||||
WHEN t.Format='MP3' AND t.Encoding='V2 (VBR)' THEN 2
|
||||
ELSE 100
|
||||
@ -100,7 +99,6 @@
|
||||
case '36': $SQL .= "t.Format='FLAC' AND t.Encoding='Lossless' AND HasLog='1'"; break;
|
||||
case '37': $SQL .= "t.Format='FLAC' AND t.Encoding='Lossless'"; break;
|
||||
case '40': $SQL .= "t.Format='DTS'"; break;
|
||||
case '41': $SQL .= "t.Format='Ogg Vorbis'"; break;
|
||||
case '42': $SQL .= "t.Format='AAC' AND t.Encoding='320'"; break;
|
||||
case '43': $SQL .= "t.Format='AAC' AND t.Encoding='256'"; break;
|
||||
case '44': $SQL .= "t.Format='AAC' AND t.Encoding='q5.5'"; break;
|
||||
|
@ -101,7 +101,7 @@ function compare($X, $Y){
|
||||
<span style="float:left;"><strong><?=$DisplayName?></strong></span>
|
||||
<span style="float:right;text-align:right">
|
||||
<? if(!$Sneaky){ ?>
|
||||
<a href="#group_<?=$GroupID?>" class="remove_bookmark" title="Remove bookmark" onclick="Unbookmark('torrent', <?=$GroupID?>, '');return false;">Unbookmark</a>
|
||||
<a href="#group_<?=$GroupID?>" class="brackets remove_bookmark" title="Remove bookmark" onclick="Unbookmark('torrent', <?=$GroupID?>, '');return false;">Unbookmark</a>
|
||||
<br />
|
||||
<? } ?>
|
||||
<?=time_diff($AddedTime);?>
|
||||
@ -220,7 +220,7 @@ function compare($X, $Y){
|
||||
<strong><?=$DisplayName?></strong>
|
||||
<?=$TorrentTags?>
|
||||
<? if(!$Sneaky){ ?>
|
||||
<span style="float:left;"><a href="#group_<?=$GroupID?>" class="remove_bookmark" title="Remove bookmark" onclick="Unbookmark('torrent', <?=$GroupID?>, '');return false;">Unbookmark</a></span>
|
||||
<span style="float:left;"><a href="#group_<?=$GroupID?>" class="brackets remove_bookmark" title="Remove bookmark" onclick="Unbookmark('torrent', <?=$GroupID?>, '');return false;">Unbookmark</a></span>
|
||||
<? } ?>
|
||||
<span style="float:right;"><?=time_diff($AddedTime);?></span>
|
||||
|
||||
|
@ -50,6 +50,10 @@ function AddTorrent($CollageID, $GroupID) {
|
||||
if ($MaxGroups > 0 && $NumTorrents >= $MaxGroups) {
|
||||
$Err = "This collage already holds its maximum allowed number of torrents";
|
||||
}
|
||||
|
||||
if (isset($Err)) {
|
||||
error($Err);
|
||||
}
|
||||
}
|
||||
|
||||
if ($MaxGroupsPerUser > 0) {
|
||||
|
@ -26,7 +26,6 @@
|
||||
SQL template:
|
||||
SELECT
|
||||
CASE
|
||||
WHEN t.Format='Ogg Vorbis' THEN 0
|
||||
WHEN t.Format='MP3' AND t.Encoding='V0 (VBR)' THEN 1
|
||||
WHEN t.Format='MP3' AND t.Encoding='V2 (VBR)' THEN 2
|
||||
ELSE 100
|
||||
@ -95,7 +94,6 @@
|
||||
case '36': $SQL .= "t.Format='FLAC' AND t.Encoding='Lossless' AND HasLog='1'"; break;
|
||||
case '37': $SQL .= "t.Format='FLAC' AND t.Encoding='Lossless'"; break;
|
||||
case '40': $SQL .= "t.Format='DTS'"; break;
|
||||
case '41': $SQL .= "t.Format='Ogg Vorbis'"; break;
|
||||
case '42': $SQL .= "t.Format='AAC' AND t.Encoding='320'"; break;
|
||||
case '43': $SQL .= "t.Format='AAC' AND t.Encoding='256'"; break;
|
||||
case '44': $SQL .= "t.Format='AAC' AND t.Encoding='q5.5'"; break;
|
||||
|
@ -53,22 +53,26 @@
|
||||
}
|
||||
|
||||
// Searching for posts in a specific thread
|
||||
if(!empty($_GET['threadid'])) {
|
||||
$ThreadID = db_string($_GET['threadid']);
|
||||
if (!empty($_GET['threadid']) && is_number($_GET['threadid'])) {
|
||||
$ThreadID = $_GET['threadid'];
|
||||
$Type = 'body';
|
||||
$SQL = "SELECT Title FROM forums_topics AS t
|
||||
JOIN forums AS f ON f.ID=t.ForumID
|
||||
WHERE f.MinClassRead <= '$LoggedUser[Class]'
|
||||
AND t.ID=$ThreadID";
|
||||
WHERE t.ID=$ThreadID
|
||||
AND ((f.MinClassRead <= '$LoggedUser[Class]'";
|
||||
if (!empty($RestrictedForums)) {
|
||||
$SQL .= " AND f.ID NOT IN ('".$RestrictedForums."')";
|
||||
$SQL .= " AND f.ID NOT IN ('$RestrictedForums')";
|
||||
}
|
||||
$SQL .= ")";
|
||||
if (!empty($PermittedForums)) {
|
||||
$SQL .= " OR f.ID IN ('$PermittedForums')";
|
||||
}
|
||||
$SQL .= ")";
|
||||
$DB->query($SQL);
|
||||
if (list($Title) = $DB->next_record()) {
|
||||
$Title = " > <a href=\"forums.php?action=viewthread&threadid=$ThreadID\">$Title</a>";
|
||||
} else {
|
||||
$Title = '';
|
||||
$ThreadID = '';
|
||||
error(404);
|
||||
}
|
||||
} else {
|
||||
$ThreadID = '';
|
||||
|
@ -456,26 +456,6 @@
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<?
|
||||
//<strip>
|
||||
if(check_perms("users_mod")) {
|
||||
$RequestLog = Requests::get_request_log($RequestID);
|
||||
if($RequestLog) {
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2" class="center"><strong><a href="#" onclick="$('#request_log').toggle(); return false;">Request log</a></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="request_log" class="hidden padding">
|
||||
<?=$Text->full_format($RequestLog)?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<? }
|
||||
}
|
||||
//<strip>
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2" class="center"><strong>Description</strong></td>
|
||||
</tr>
|
||||
|
@ -491,9 +491,9 @@ function generate_torrent_table($Caption, $Tag, $Details, $Limit) {
|
||||
<?
|
||||
if($IsBookmarked) {
|
||||
?>
|
||||
<a href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="brackets remove_bookmark" title="Remove bookmark" onclick="Unbookmark('torrent',<?=$GroupID?>,'Bookmark');return false;">Unbookmark</a>
|
||||
<a href="#" class="bookmarklink_torrent_<?=$GroupID?> brackets remove_bookmark" title="Remove bookmark" onclick="Unbookmark('torrent',<?=$GroupID?>,'Bookmark');return false;">Unbookmark</a>
|
||||
<? } else { ?>
|
||||
<a href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="brackets add_bookmark" title="Add bookmark" onclick="Bookmark('torrent',<?=$GroupID?>,'Unbookmark');return false;">Bookmark</a>
|
||||
<a href="#" class="bookmarklink_torrent_<?=$GroupID?> brackets add_bookmark" title="Add bookmark" onclick="Bookmark('torrent',<?=$GroupID?>,'Unbookmark');return false;">Bookmark</a>
|
||||
<? } ?>
|
||||
</span>
|
||||
|
||||
|
@ -221,9 +221,9 @@
|
||||
<td>
|
||||
<strong><?=$DisplayName?></strong> <!--<?Votes::vote_link($GroupID,$UserVotes[$GroupID]['Type']);?>-->
|
||||
<? if($IsBookmarked) { ?>
|
||||
<span class="bookmark" style="float:right;"><a href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="brackets remove_bookmark" title="Remove bookmark" onclick="Unbookmark('torrent',<?=$GroupID?>,'Bookmark');return false;">Unbookmark</a></span>
|
||||
<span class="bookmark" style="float:right;"><a href="#" class="bookmarklink_torrent_<?=$GroupID?> brackets remove_bookmark" title="Remove bookmark" onclick="Unbookmark('torrent',<?=$GroupID?>,'Bookmark');return false;">Unbookmark</a></span>
|
||||
<? } else { ?>
|
||||
<span class="bookmark" style="float:right;"><a href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="brackets add_bookmark" title="Add bookmark" onclick="Bookmark('torrent',<?=$GroupID?>,'Unbookmark');return false;">Bookmark</a></span>
|
||||
<span class="bookmark" style="float:right;"><a href="#" class="bookmarklink_torrent_<?=$GroupID?> brackets add_bookmark" title="Add bookmark" onclick="Bookmark('torrent',<?=$GroupID?>,'Unbookmark');return false;">Bookmark</a></span>
|
||||
<? } ?>
|
||||
<?=$TorrentTags?>
|
||||
</td>
|
||||
|
@ -151,7 +151,6 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
foreach ($SearchBitrates as $ID=>$Val) {
|
||||
$SearchBitrates[$ID] = strtolower($Val);
|
||||
}
|
||||
|
||||
foreach ($Formats as $ID => $Val) {
|
||||
$SearchFormats[$ID] = strtolower($Val);
|
||||
}
|
||||
|
@ -79,8 +79,6 @@
|
||||
$Properties['FreeLeechType'] = $FreeType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//******************************************************************************//
|
||||
//--------------- Validate data in edit form -----------------------------------//
|
||||
|
||||
|
@ -27,6 +27,31 @@
|
||||
if(!empty($_GET['action']) && $_GET['action'] == 'revert') { // if we're reverting to a previous revision
|
||||
$RevisionID=$_GET['revisionid'];
|
||||
if(!is_number($RevisionID)) { error(0); }
|
||||
|
||||
// to cite from merge: "Everything is legit, let's just confim they're not retarded"
|
||||
if(empty($_GET['confirm'])) {
|
||||
View::show_header();
|
||||
?>
|
||||
<div class="center thin">
|
||||
<div class="header">
|
||||
<h2>Revert Confirm!</h2>
|
||||
</div>
|
||||
<div class="box pad">
|
||||
<form class="confirm_form" name="torrent_group" action="torrents.php" method="get">
|
||||
<input type="hidden" name="action" value="revert" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="confirm" value="true" />
|
||||
<input type="hidden" name="groupid" value="<?=$GroupID?>" />
|
||||
<input type="hidden" name="revisionid" value="<?=$RevisionID?>" />
|
||||
<h3>You are attempting to revert to the revision <a href="torrents.php?id=<?=$GroupID?>&revisionid=<?=$RevisionID?>"><?=$RevisionID?></a>.</h3>
|
||||
<input type="submit" value="Confirm" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
View::show_footer();
|
||||
die();
|
||||
}
|
||||
} else { // with edit, the variables are passed with POST
|
||||
$Body = $_POST['body'];
|
||||
$Image = $_POST['image'];
|
||||
|
@ -19,13 +19,40 @@
|
||||
error(0);
|
||||
}
|
||||
|
||||
//Everything is legit, let's just confim they're not retarded
|
||||
if(empty($_POST['confirm'])) {
|
||||
View::show_header();
|
||||
?>
|
||||
<div class="center thin">
|
||||
<div class="header">
|
||||
<h2>Split Confirm!</h2>
|
||||
</div>
|
||||
<div class="box pad">
|
||||
<form class="confirm_form" name="torrent_group" action="torrents.php" method="post">
|
||||
<input type="hidden" name="action" value="newgroup" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="confirm" value="true" />
|
||||
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
|
||||
<input type="hidden" name="oldgroupid" value="<?=$OldGroupID?>" />
|
||||
<input type="hidden" name="artist" value="<?=display_str($_POST['artist'])?>" />
|
||||
<input type="hidden" name="title" value="<?=display_str($_POST['title'])?>" />
|
||||
<input type="hidden" name="year" value="<?=$Year?>" />
|
||||
<h3>You are attempting to split the torrent <a href="torrents.php?torrentid=<?=$TorrentID?>"><?=$TorrentID?></a> off into a new group:</h3>
|
||||
<ul><li><?=display_str($_POST['artist'])?> - <?=display_str($_POST['title'])?> [<?=$Year?>]</li></ul>
|
||||
<input type="submit" value="Confirm" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
View::show_footer();
|
||||
} else {
|
||||
$DB->query("SELECT ArtistID, AliasID, Redirect, Name FROM artists_alias WHERE Name = '$ArtistName'");
|
||||
if($DB->record_count() == 0) {
|
||||
$Redirect = 0;
|
||||
$DB->query("INSERT INTO artists_group (Name) VALUES ('$ArtistName')");
|
||||
$ArtistID = $DB->inserted_id();
|
||||
$DB->query("INSERT INTO artists_alias (ArtistID, Name) VALUES ('$ArtistID', '$ArtistName')");
|
||||
list($AliasID) = $DB->next_record();
|
||||
$AliasID = $DB->inserted_id();
|
||||
} else {
|
||||
list($ArtistID, $AliasID, $Redirect, $ArtistName) = $DB->next_record();
|
||||
if($Redirect) {
|
||||
@ -62,4 +89,5 @@
|
||||
Misc::write_log("Torrent $TorrentID was edited by " . $LoggedUser['Username']);
|
||||
|
||||
header("Location: torrents.php?id=$GroupID");
|
||||
}
|
||||
?>
|
||||
|
@ -40,7 +40,6 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
}
|
||||
|
||||
$SearchWhere = array();
|
||||
|
||||
if(!empty($_GET['format'])) {
|
||||
if(in_array($_GET['format'], $Formats)) {
|
||||
$SearchWhere[]="t.Format='".db_string($_GET['format'])."'";
|
||||
|
@ -8,6 +8,10 @@
|
||||
$ExtraFile = fopen($Name, 'rb'); // open file for reading
|
||||
$ExtraContents = fread($ExtraFile, 10000000);
|
||||
$ExtraTor = new TORRENT($ExtraContents); // New TORRENT object
|
||||
if (isset($ExtraTor->Val['info']->Val['encrypted_files'])) {
|
||||
$Err = "At least one of the torrents contain an encrypted file list which is not supported here";
|
||||
break;
|
||||
}
|
||||
|
||||
// Remove uploader's passkey from the torrent.
|
||||
// We put the downloader's passkey in on download, so it doesn't matter what's in there now,
|
||||
@ -36,14 +40,13 @@
|
||||
}
|
||||
|
||||
// Add file and size to array
|
||||
$ExtraTmpFileList[] = $ExtraName . '{{{' . $ExtraSize . '}}}'; // Name {{{Size}}}
|
||||
$ExtraTmpFileList[] = Torrents::filelist_format_file($ExtraFile);
|
||||
}
|
||||
|
||||
// To be stored in the database
|
||||
$ExtraFilePath = isset($ExtraTor->Val['info']->Val['files']) ? db_string(Format::make_utf8($ExtraDirName)) : "";
|
||||
$ExtraTorrentsInsert[$Name]['FilePath'] = $ExtraFilePath;
|
||||
// Name {{{Size}}}|||Name {{{Size}}}|||Name {{{Size}}}|||Name {{{Size}}}
|
||||
$ExtraFileString = "'" . db_string(Format::make_utf8(implode('|||', $ExtraTmpFileList))) . "'";
|
||||
$ExtraFileString = db_string(implode("\n", $ExtraTmpFileList));
|
||||
$ExtraTorrentsInsert[$Name]['FileString'] = $ExtraFileString;
|
||||
// Number of files described in torrent
|
||||
$ExtraNumFiles = count($ExtraFileList);
|
||||
|
@ -12,7 +12,7 @@
|
||||
Description, LogScore, FreeTorrent, FreeLeechType)
|
||||
VALUES
|
||||
(" . $GroupID . ", " . $LoggedUser['ID'] . ", " . $T['Media'] . ", " . $ExtraTorrent['Format'] . ", " . $ExtraTorrent['Encoding'] . ",
|
||||
" . $T['Remastered'] . ", " . $T['RemasterYear'] . ", " . $T['RemasterTitle'] . ", " . $T['RemasterRecordLabel'] . ", " . $T['RemasterCatalogueNumber'] . ", " . $ExtraHasLog . ", " . $ExtraHasCue . ", '" . db_string($ExtraTorrent['InfoHash']) . "', " . $ExtraTorrent['NumFiles'] . ", " . $ExtraTorrent['FileString'] . ", '" . $ExtraTorrent['FilePath'] . "', " . $ExtraTorrent['TotalSize'] . ", '" . sqltime() . "',
|
||||
" . $T['Remastered'] . ", " . $T['RemasterYear'] . ", " . $T['RemasterTitle'] . ", " . $T['RemasterRecordLabel'] . ", " . $T['RemasterCatalogueNumber'] . ", " . $ExtraHasLog . ", " . $ExtraHasCue . ", '" . db_string($ExtraTorrent['InfoHash']) . "', " . $ExtraTorrent['NumFiles'] . ", '" . $ExtraTorrent['FileString'] . "', '" . $ExtraTorrent['FilePath'] . "', " . $ExtraTorrent['TotalSize'] . ", '" . sqltime() . "',
|
||||
" . $ExtraTorrent['TorrentDescription'] . ", '" . (($HasLog == "'1'") ? $LogScoreAverage : 0) . "', '" . $T['FreeLeech'] . "', '" . $T['FreeLeechType'] . "')");
|
||||
|
||||
$Cache->increment('stats_torrent_count');
|
||||
|
@ -351,6 +351,9 @@
|
||||
$Contents = fread($File, 10000000);
|
||||
$Tor = new TORRENT($Contents); // New TORRENT object
|
||||
|
||||
if (isset($Tor->Val['info']->Val['encrypted_files'])) {
|
||||
$Err = "This torrent contains an encrypted file list which is not supported here";
|
||||
}
|
||||
// Remove uploader's passkey from the torrent.
|
||||
// We put the downloader's passkey in on download, so it doesn't matter what's in there now,
|
||||
// so long as it's not useful to any leet hax0rs looking in an unprotected /torrents/ directory
|
||||
|
@ -51,7 +51,7 @@
|
||||
<? if (($Override=check_paranoia_here('collagecontribs+'))) { ?>
|
||||
<li<?= $Override===2 ? ' class="paranoia_override"' : ''?>>Collages contributed to: <? echo number_format($NumCollageContribs); ?>
|
||||
<? if (($Override=check_paranoia_here('collagecontribs'))) { ?>
|
||||
<a href="collages.php?userid=<?$UserID?>&contrib=1" class="brackets<?= ($Override===2) ? ' paranoia_override' : '' ?>" title="View">View</a>
|
||||
<a href="collages.php?userid=<?=$UserID?>&contrib=1" class="brackets<?= ($Override===2) ? ' paranoia_override' : '' ?>" title="View">View</a>
|
||||
<? } ?>
|
||||
</li>
|
||||
<? } ?>
|
||||
|
@ -4,7 +4,10 @@
|
||||
?>
|
||||
<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...</h2>
|
||||
<div class="linkbox">
|
||||
<a href="torrents.php?action=notify" class="brackets">View notifications</a>
|
||||
</div>
|
||||
</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");
|
||||
@ -46,7 +49,7 @@
|
||||
<td class="label"><strong>Label</strong></td>
|
||||
<td>
|
||||
<input type="text" name="label<?=$i?>" style="width: 100%" />
|
||||
<p class="min_padding">A label for the filter set, to tell different filters apart.</p>
|
||||
<p class="min_padding">A label/name for the filter set to tell different filters apart.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -61,7 +64,7 @@
|
||||
<td class="label"><strong>One of these artists</strong></td>
|
||||
<td>
|
||||
<textarea name="artists<?=$i?>" style="width:100%" rows="5"><?=display_str($N['Artists'])?></textarea>
|
||||
<p class="min_padding">Comma-separated list - eg. <em>Pink Floyd, Led Zeppelin, Neil Young</em></p>
|
||||
<p class="min_padding">Comma-separated list — e.g. <em>Pink Floyd, Led Zeppelin, Neil Young</em></p>
|
||||
<input type="checkbox" name="excludeva<?=$i?>" id="excludeva_<?=$N['ID']?>"<? if($N['ExcludeVA']=="1") { echo ' checked="checked"';} ?> />
|
||||
<label for="excludeva_<?=$N['ID']?>">Exclude Various Artists releases</label>
|
||||
</td>
|
||||
@ -70,14 +73,14 @@
|
||||
<td class="label"><strong>At least one of these tags</strong></td>
|
||||
<td>
|
||||
<textarea name="tags<?=$i?>" style="width:100%" rows="2"><?=display_str($N['Tags'])?></textarea>
|
||||
<p class="min_padding">Comma-separated list - eg. <em>rock, jazz, pop</em></p>
|
||||
<p class="min_padding">Comma-separated list — e.g. <em>rock, jazz, pop</em></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><strong>None of these tags</strong></td>
|
||||
<td>
|
||||
<textarea name="nottags<?=$i?>" style="width:100%" rows="2"><?=display_str($N['NotTags'])?></textarea>
|
||||
<p class="min_padding">Comma-separated list - eg. <em>rock, jazz, pop</em></p>
|
||||
<p class="min_padding">Comma-separated list — e.g. <em>rock, jazz, pop</em></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -199,11 +199,11 @@ function check_paranoia_here($Setting) {
|
||||
<? }
|
||||
if (check_perms('users_mod')) {
|
||||
?>
|
||||
<a href="userhistory.php?action=token_history&userid=<?=$UserID?>" class="brackets">FL Tokens</a>
|
||||
<a href="userhistory.php?action=token_history&userid=<?=$UserID?>" class="brackets">FL tokens</a>
|
||||
<? }
|
||||
if (check_perms('admin_clear_cache') && check_perms('users_override_paranoia')) {
|
||||
?>
|
||||
<a href="user.php?action=clearcache&id=<?=$UserID?>" class="brackets">Clear Cache</a>
|
||||
<a href="user.php?action=clearcache&id=<?=$UserID?>" class="brackets">Clear cache</a>
|
||||
<? } ?>
|
||||
</div>
|
||||
|
||||
@ -311,17 +311,17 @@ function check_paranoia_here($Setting) {
|
||||
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?> title="<?=Format::get_size($Downloaded)?>">Data downloaded: <?=$DownloadedRank === false ? 'Server busy' : number_format($DownloadedRank)?></li>
|
||||
<? } ?>
|
||||
<? if (($Override=check_paranoia_here('uploads+'))) { ?>
|
||||
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?> title="<?=$Uploads?>">Torrents uploaded: <?=$UploadsRank === false ? 'Server busy' : number_format($UploadsRank)?></li>
|
||||
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?> title="<?=number_format($Uploads)?>">Torrents uploaded: <?=$UploadsRank === false ? 'Server busy' : number_format($UploadsRank)?></li>
|
||||
<? } ?>
|
||||
<? if (($Override=check_paranoia_here('requestsfilled_count'))) { ?>
|
||||
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?> title="<?=$RequestsFilled?>">Requests filled: <?=$RequestRank === false ? 'Server busy' : number_format($RequestRank)?></li>
|
||||
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?> title="<?=number_format($RequestsFilled)?>">Requests filled: <?=$RequestRank === false ? 'Server busy' : number_format($RequestRank)?></li>
|
||||
<? } ?>
|
||||
<? if (($Override=check_paranoia_here('requestsvoted_bounty'))) { ?>
|
||||
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?> title="<?=Format::get_size($TotalSpent)?>">Bounty spent: <?=$BountyRank === false ? 'Server busy' : number_format($BountyRank)?></li>
|
||||
<? } ?>
|
||||
<li title="<?=$ForumPosts?>">Posts made: <?=$PostRank === false ? 'Server busy' : number_format($PostRank)?></li>
|
||||
<li title="<?=number_format($ForumPosts)?>">Posts made: <?=$PostRank === false ? 'Server busy' : number_format($PostRank)?></li>
|
||||
<? if (($Override=check_paranoia_here('artistsadded'))) { ?>
|
||||
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?> title="<?=$ArtistsAdded?>">Artists added: <?=$ArtistsRank === false ? 'Server busy' : number_format($ArtistsRank)?></li>
|
||||
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?> title="<?=number_format($ArtistsAdded)?>">Artists added: <?=$ArtistsRank === false ? 'Server busy' : number_format($ArtistsRank)?></li>
|
||||
<? } ?>
|
||||
<? if (check_paranoia_here(array('uploaded', 'downloaded', 'uploads+', 'requestsfilled_count', 'requestsvoted_bounty', 'artistsadded'))) { ?>
|
||||
<li><strong>Overall rank: <?=$OverallRank === false ? 'Server busy' : number_format($OverallRank)?></strong></li>
|
||||
|
Loading…
Reference in New Issue
Block a user