Esempio n. 1
0
list($RequestID, $RequestorID, $RequestorName, $TimeAdded, $LastVote, $CategoryID, $Title, $Year, $Image, $Description, $CatalogueNumber, $ReleaseType,
	$BitrateList, $FormatList, $MediaList, $LogCue, $FillerID, $FillerName, $TorrentID, $TimeFilled) = $Request;

//Convenience variables
$IsFilled = !empty($TorrentID);
$CanVote = (empty($TorrentID) && check_perms('site_vote'));

if($CategoryID == 0) {
	$CategoryName = "Unknown";
} else {
	$CategoryName = $Categories[$CategoryID - 1];
}

//Do we need to get artists?
if($CategoryName == "Music") {
	$ArtistForm = get_request_artists($RequestID);
	$ArtistName = display_artists($ArtistForm, false, true);
	$ArtistLink = display_artists($ArtistForm, true, true);
	
	if($IsFilled) {
		$DisplayLink = $ArtistLink."<a href='torrents.php?torrentid=".$TorrentID."'>".$Title."</a> [".$Year."]";
	} else {
		$DisplayLink = $ArtistLink.$Title." [".$Year."]";
	}
	$FullName = $ArtistName.$Title." [".$Year."]";
	
	if($BitrateList != "") {
		$BitrateString = implode(", ", explode("|", $BitrateList));
		$FormatString = implode(", ", explode("|", $FormatList));
		$MediaString = implode(", ", explode("|", $MediaList));
	} else {
Esempio n. 2
0
	include(SERVER_ROOT.'/sections/requests/functions.php');	
	$DB->query("SELECT
		r.ID AS RequestID,
		r.CategoryID,
		r.Title AS Title,
		r.Year,
		r.CatalogueNumber,
		r.ReleaseType,
		r.Image
		FROM requests AS r
		WHERE r.ID=".$_GET['requestid']);
	
	list($Properties) = $DB->to_array(false,MYSQLI_BOTH);
	$UploadForm = $Categories[$Properties['CategoryID']-1];
	$Properties['CategoryName'] = $Categories[$Properties['CategoryID']-1];
	$Properties['Artists'] = get_request_artists($_GET['requestid']);
	$Properties['TagList'] = implode(", ", get_request_tags($_GET['requestid']));
}

if(!empty($ArtistForm)) {
	$Properties['Artists'] = $ArtistForm;
}

require(SERVER_ROOT.'/classes/class_torrent_form.php');
$TorrentForm = new TORRENT_FORM($Properties, $Err);

if(!isset($Text)) {
	include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class
	$Text = new TEXT;
}