2013-05-28 08:01:02 +00:00
< ? php
2013-04-01 08:00:47 +00:00
function compare ( $X , $Y ) {
2011-03-28 14:21:28 +00:00
return ( $Y [ 'score' ] - $X [ 'score' ]);
}
2012-11-02 08:00:18 +00:00
header ( 'Access-Control-Allow-Origin: *' );
2011-03-28 14:21:28 +00:00
2012-03-29 08:00:19 +00:00
define ( 'MAX_PERS_COLLAGES' , 3 ); // How many personal collages should be shown by default
2013-04-19 08:00:55 +00:00
define ( 'MAX_COLLAGES' , 5 ); // How many normal collages should be shown by default
2012-02-20 08:00:22 +00:00
2013-08-28 23:08:41 +00:00
$GroupID = ceil ( $_GET [ 'id' ]);
2013-04-01 08:00:47 +00:00
if ( ! empty ( $_GET [ 'revisionid' ]) && is_number ( $_GET [ 'revisionid' ])) {
2011-03-28 14:21:28 +00:00
$RevisionID = $_GET [ 'revisionid' ];
2013-04-01 08:00:47 +00:00
} else {
$RevisionID = 0 ;
}
2011-03-28 14:21:28 +00:00
include ( SERVER_ROOT . '/sections/torrents/functions.php' );
$TorrentCache = get_group_info ( $GroupID , true , $RevisionID );
$TorrentDetails = $TorrentCache [ 0 ];
$TorrentList = $TorrentCache [ 1 ];
// Group details
2012-10-16 08:00:18 +00:00
list ( $WikiBody , $WikiImage , $GroupID , $GroupName , $GroupYear ,
$GroupRecordLabel , $GroupCatalogueNumber , $ReleaseType , $GroupCategoryID ,
$GroupTime , $GroupVanityHouse , $TorrentTags , $TorrentTagIDs , $TorrentTagUserIDs ,
2012-12-06 08:00:17 +00:00
$TagPositiveVotes , $TagNegativeVotes , $GroupFlags ) = array_values ( $TorrentDetails );
2011-03-28 14:21:28 +00:00
2013-12-28 08:01:02 +00:00
$DisplayName = " <span dir= \" ltr \" > $GroupName </span> " ;
2013-04-17 08:00:58 +00:00
$AltName = $GroupName ; // Goes in the alt text of the image
$Title = $GroupName ; // goes in <title>
2013-12-12 08:01:01 +00:00
$WikiBody = Text :: full_format ( $WikiBody );
2011-03-28 14:21:28 +00:00
2012-10-11 08:00:15 +00:00
$Artists = Artists :: get_artist ( $GroupID );
2011-03-28 14:21:28 +00:00
2013-04-01 08:00:47 +00:00
if ( $Artists ) {
2013-12-28 08:01:02 +00:00
$DisplayName = Artists :: display_artists ( $Artists , true ) . " $DisplayName " ;
2013-08-28 23:08:41 +00:00
$AltName = display_str ( Artists :: display_artists ( $Artists , false )) . $AltName ;
2011-03-28 14:21:28 +00:00
$Title = $AltName ;
}
2013-04-01 08:00:47 +00:00
if ( $GroupYear > 0 ) {
2013-08-28 23:08:41 +00:00
$DisplayName .= " [ $GroupYear ] " ;
$AltName .= " [ $GroupYear ] " ;
$Title .= " [ $GroupYear ] " ;
2011-03-28 14:21:28 +00:00
}
2013-04-17 08:00:58 +00:00
if ( $GroupVanityHouse ) {
2013-08-28 23:08:41 +00:00
$DisplayName .= ' [Vanity House]' ;
$AltName .= ' [Vanity House]' ;
2011-08-09 21:03:28 +00:00
}
2013-04-01 08:00:47 +00:00
if ( $GroupCategoryID == 1 ) {
2013-08-28 23:08:41 +00:00
$DisplayName .= ' [' . $ReleaseTypes [ $ReleaseType ] . ']' ;
$AltName .= ' [' . $ReleaseTypes [ $ReleaseType ] . ']' ;
2011-03-28 14:21:28 +00:00
}
$Tags = array ();
if ( $TorrentTags != '' ) {
2013-08-28 23:08:41 +00:00
$TorrentTags = explode ( '|' , $TorrentTags );
$TorrentTagIDs = explode ( '|' , $TorrentTagIDs );
$TorrentTagUserIDs = explode ( '|' , $TorrentTagUserIDs );
$TagPositiveVotes = explode ( '|' , $TagPositiveVotes );
$TagNegativeVotes = explode ( '|' , $TagNegativeVotes );
2013-02-18 08:00:22 +00:00
2011-03-28 14:21:28 +00:00
foreach ( $TorrentTags as $TagKey => $TagName ) {
$Tags [ $TagKey ][ 'name' ] = $TagName ;
$Tags [ $TagKey ][ 'score' ] = ( $TagPositiveVotes [ $TagKey ] - $TagNegativeVotes [ $TagKey ]);
2013-04-17 08:00:58 +00:00
$Tags [ $TagKey ][ 'id' ] = $TorrentTagIDs [ $TagKey ];
$Tags [ $TagKey ][ 'userid' ] = $TorrentTagUserIDs [ $TagKey ];
2011-03-28 14:21:28 +00:00
}
uasort ( $Tags , 'compare' );
}
/* if ( check_perms ( 'site_debug' )) {
print_r ( $TorrentTags );
print_r ( $Tags );
print_r ( $TorrentTagUserIDs );
die ();
} */
2013-08-28 23:08:41 +00:00
$CoverArt = $Cache -> get_value ( " torrents_cover_art_ $GroupID " );
2013-05-27 08:00:58 +00:00
if ( ! $CoverArt ) {
$DB -> query ( "
SELECT ID , Image , Summary , UserID , Time
FROM cover_art
2013-05-28 08:01:02 +00:00
WHERE GroupID = '$GroupID'
ORDER BY Time ASC " );
2013-05-27 08:00:58 +00:00
$CoverArt = array ();
$CoverArt = $DB -> to_array ();
2013-07-10 00:08:53 +00:00
if ( $DB -> has_results ()) {
2013-08-28 23:08:41 +00:00
$Cache -> cache_value ( " torrents_cover_art_ $GroupID " , $CoverArt , 0 );
2013-05-27 08:00:58 +00:00
}
}
2014-04-22 08:00:44 +00:00
// Comments (must be loaded before View::show_header so that subscriptions and quote notifications are handled properly)
list ( $NumComments , $Page , $Thread , $LastRead ) = Comments :: load ( 'torrents' , $GroupID );
2013-05-27 08:00:58 +00:00
2011-03-28 14:21:28 +00:00
// Start output
2013-08-28 23:08:41 +00:00
View :: show_header ( $Title , 'browse,comments,torrent,bbcode,recommend,cover_art,subscriptions' );
2011-03-28 14:21:28 +00:00
?>
< div class = " thin " >
2012-08-19 08:00:19 +00:00
< div class = " header " >
< h2 >< ? = $DisplayName ?> </h2>
< div class = " linkbox " >
2013-04-01 08:00:47 +00:00
< ? if ( check_perms ( 'site_edit_wiki' )) { ?>
2013-01-24 08:00:24 +00:00
< a href = " torrents.php?action=editgroup&groupid=<?= $GroupID ?> " class = " brackets " > Edit description </ a >
2011-03-28 14:21:28 +00:00
< ? } ?>
2013-01-24 08:00:24 +00:00
< a href = " torrents.php?action=history&groupid=<?= $GroupID ?> " class = " brackets " > View history </ a >
2013-04-01 08:00:47 +00:00
< ? if ( $RevisionID && check_perms ( 'site_edit_wiki' )) { ?>
2013-04-17 08:00:58 +00:00
< a href = " torrents.php?action=revert&groupid=<?= $GroupID ?>&revisionid=<?= $RevisionID ?>&auth=<?= $LoggedUser['AuthKey'] ?> " class = " brackets " > Revert to this revision </ a >
2013-08-28 23:08:41 +00:00
< ?
}
2013-04-01 08:00:47 +00:00
if ( Bookmarks :: has_bookmarked ( 'torrent' , $GroupID )) {
2011-03-28 14:21:28 +00:00
?>
2013-08-28 23:08:41 +00:00
< a href = " # " id = " bookmarklink_torrent_<?= $GroupID ?> " class = " remove_bookmark brackets " onclick = " Unbookmark('torrent', <?= $GroupID ?>, 'Bookmark'); return false; " > Remove bookmark </ a >
2013-04-01 08:00:47 +00:00
< ? } else { ?>
2013-08-28 23:08:41 +00:00
< a href = " # " id = " bookmarklink_torrent_<?= $GroupID ?> " class = " add_bookmark brackets " onclick = " Bookmark('torrent', <?= $GroupID ?>, 'Remove bookmark'); return false; " > Bookmark </ a >
2013-05-27 08:00:58 +00:00
< ? } ?>
2013-08-28 23:08:41 +00:00
< a href = " # " id = " subscribelink_torrents<?= $GroupID ?> " class = " brackets " onclick = " SubscribeComments('torrents', <?= $GroupID ?>); return false; " >< ? = Subscriptions :: has_subscribed_comments ( 'torrents' , $GroupID ) !== false ? 'Unsubscribe' : 'Subscribe' ?> </a>
2013-03-06 08:00:23 +00:00
<!-- < a href = " # " id = " recommend " class = " brackets " > Recommend </ a > -->
2013-03-05 08:00:26 +00:00
< ?
2013-04-01 08:00:47 +00:00
if ( $Categories [ $GroupCategoryID - 1 ] == 'Music' ) { ?>
2013-01-24 08:00:24 +00:00
< a href = " upload.php?groupid=<?= $GroupID ?> " class = " brackets " > Add format </ a >
2013-08-28 23:08:41 +00:00
< ?
}
2013-04-01 08:00:47 +00:00
if ( check_perms ( 'site_submit_requests' )) { ?>
2013-01-24 08:00:24 +00:00
< a href = " requests.php?action=new&groupid=<?= $GroupID ?> " class = " brackets " > Request format </ a >
2013-04-01 08:00:47 +00:00
< ? } ?>
2013-01-24 08:00:24 +00:00
< a href = " torrents.php?action=grouplog&groupid=<?= $GroupID ?> " class = " brackets " > View log </ a >
2012-08-19 08:00:19 +00:00
</ div >
2011-03-28 14:21:28 +00:00
</ div >
2013-03-06 08:00:23 +00:00
< ? /* Misc::display_recommend($GroupID, "torrent"); */ ?>
2011-03-28 14:21:28 +00:00
< div class = " sidebar " >
2012-08-17 08:00:13 +00:00
< div class = " box box_image box_image_albumart box_albumart " ><!-- . box_albumart deprecated -->
2013-05-27 08:00:58 +00:00
< div class = " head " >
< strong >< ? = ( count ( $CoverArt ) > 0 ? 'Covers (' . ( count ( $CoverArt ) + 1 ) . ')' : 'Cover' ) ?> </strong>
2013-08-28 23:08:41 +00:00
< ?
if ( count ( $CoverArt ) > 0 ) {
2013-05-30 08:00:30 +00:00
if ( empty ( $LoggedUser [ 'ShowExtraCovers' ])) {
for ( $Index = 0 ; $Index <= count ( $CoverArt ); $Index ++ ) { ?>
2013-05-27 08:00:58 +00:00
< span id = " cover_controls_<?=( $Index )?> " < ? = ( $Index > 0 ? ' style="display: none;"' : '' ) ?> >
2013-05-30 08:00:30 +00:00
< ? if ( $Index == count ( $CoverArt )) { ?>
2013-05-27 08:00:58 +00:00
< a class = " brackets prev_cover " data - gazelle - prev - cover = " <?=( $Index - 1)?> " href = " # " > Prev </ a >
< a class = " brackets show_all_covers " href = " # " > Show all </ a >
2013-05-28 08:01:02 +00:00
< span class = " brackets next_cover " > Next </ span >
2013-05-30 08:00:30 +00:00
< ? } elseif ( $Index > 0 ) { ?>
2013-05-27 08:00:58 +00:00
< a class = " brackets prev_cover " data - gazelle - prev - cover = " <?=( $Index - 1)?> " href = " # " > Prev </ a >
< a class = " brackets show_all_covers " href = " # " > Show all </ a >
< a class = " brackets next_cover " data - gazelle - next - cover = " <?=( $Index + 1)?> " href = " # " > Next </ a >
2013-05-30 08:00:30 +00:00
< ? } elseif ( $Index == 0 && count ( $CoverArt ) > 0 ) { ?>
2013-05-28 08:01:02 +00:00
< span class = " brackets prev_cover " > Prev </ span >
2013-05-27 08:00:58 +00:00
< a class = " brackets show_all_covers " href = " # " > Show all </ a >
< a class = " brackets next_cover " data - gazelle - next - cover = " <?=( $Index + 1)?> " href = " # " > Next </ a >
2013-05-30 08:00:30 +00:00
< ? } ?>
</ span >
2013-08-28 23:08:41 +00:00
< ?
}
2013-05-30 08:00:30 +00:00
} else { ?>
< span >
< a class = " brackets show_all_covers " href = " # " > Hide </ a >
2013-05-27 08:00:58 +00:00
</ span >
2013-08-28 23:08:41 +00:00
< ?
}
2013-05-30 08:00:30 +00:00
} ?>
2013-05-27 08:00:58 +00:00
</ div >
2013-08-28 23:08:41 +00:00
< ? $Index = 0 ; ?>
2013-05-27 08:00:58 +00:00
< div id = " covers " >
2013-06-08 08:01:02 +00:00
< div id = " cover_div_<?= $Index ?> " class = " pad " >
2013-05-30 08:00:30 +00:00
< ? if ( $WikiImage != '' ) { ?>
2013-06-20 08:01:00 +00:00
< p align = " center " >< img width = " 100% " src = " <?=ImageTools::process( $WikiImage , true)?> " alt = " <?= $AltName ?> " onclick = " lightbox.init('<?=ImageTools::process( $WikiImage )?>', 220); " /></ p >
2013-05-30 08:00:30 +00:00
< ? } else { ?>
2013-11-21 08:00:44 +00:00
< p align = " center " >< img width = " 100% " src = " <?=STATIC_SERVER?>common/noartwork/<?= $CategoryIcons [ $GroupCategoryID - 1]?> " alt = " <?= $Categories [ $GroupCategoryID - 1]?> " class = " brackets tooltip " title = " <?= $Categories [ $GroupCategoryID - 1]?> " height = " 220 " border = " 0 " /></ p >
2011-03-28 14:21:28 +00:00
< ?
2013-05-30 08:00:30 +00:00
}
2013-05-27 08:00:58 +00:00
$Index ++ ;
?>
</ div >
< ? foreach ( $CoverArt as $Cover ) {
list ( $ImageID , $Image , $Summary , $AddedBy ) = $Cover ;
?>
2013-08-28 23:08:41 +00:00
< div id = " cover_div_<?= $Index ?> " class = " pad " < ? = ( empty ( $LoggedUser [ 'ShowExtraCovers' ]) ? ' style="display: none;"' : '' ) ?> >
2013-05-27 08:00:58 +00:00
< p align = " center " >
2013-08-28 23:08:41 +00:00
< ?
if ( empty ( $LoggedUser [ 'ShowExtraCovers' ])) {
2013-05-30 08:00:30 +00:00
$Src = 'src="" data-gazelle-temp-src="' . ImageTools :: process ( $Image , true ) . '"' ;
} else {
$Src = 'src="' . ImageTools :: process ( $Image , true ) . '"' ;
}
2011-03-28 14:21:28 +00:00
?>
2013-08-28 23:08:41 +00:00
< img id = " cover_<?= $Index ?> " width = " 100% " < ? = $Src ?> alt="<?=$Summary?>" onclick="lightbox.init('<?=ImageTools::process($Image)?>', 220);" />
2013-05-27 08:00:58 +00:00
</ p >
< ul class = " stats nobullet " >
< li >
< ? = $Summary ?>
< ? = ( check_perms ( 'users_mod' ) ? ' added by ' . Users :: format_username ( $AddedBy , false , false , false , false , false ) : '' ) ?>
2013-10-16 08:01:00 +00:00
< span class = " remove remove_cover_art " >< a href = " # " onclick = " if (confirm('Do not delete valid alternative cover art. Are you sure you want to delete this cover art?') == true) { ajax.get('torrents.php?action=remove_cover_art&auth=<?= $LoggedUser['AuthKey'] ?>&id=<?= $ImageID ?>&groupid=<?= $GroupID ?>'); this.parentNode.parentNode.parentNode.style.display = 'none'; this.parentNode.parentNode.parentNode.previousElementSibling.style.display = 'none'; } else { return false; } " class = " brackets tooltip " title = " Remove image " > X </ a ></ span >
2013-05-27 08:00:58 +00:00
</ li >
</ ul >
</ div >
2013-08-28 23:08:41 +00:00
< ?
$Index ++ ;
2013-05-27 08:00:58 +00:00
} ?>
</ div >
< ?
if ( check_perms ( 'site_edit_wiki' ) && $WikiImage != '' ) { ?>
< div id = " add_cover_div " >
< div style = " padding: 10px; " >
< span style = " float: right; " class = " additional_add_artists " >
< a onclick = " addCoverField(); return false; " href = " # " class = " brackets " > Add alternate cover </ a >
</ span >
</ div >
< div class = " body " >
< form class = " add_form " name = " covers " id = " add_covers_form " action = " torrents.php " method = " post " >
< div id = " add_cover " >
< input type = " hidden " name = " action " value = " add_cover_art " />
< input type = " hidden " name = " auth " value = " <?= $LoggedUser['AuthKey'] ?> " />
< input type = " hidden " name = " groupid " value = " <?= $GroupID ?> " />
</ div >
</ form >
</ div >
2011-03-28 14:21:28 +00:00
</ div >
2013-05-27 08:00:58 +00:00
< ? } ?>
</ div >
2011-03-28 14:21:28 +00:00
< ?
2013-04-17 08:00:58 +00:00
if ( $Categories [ $GroupCategoryID - 1 ] == 'Music' ) {
2011-03-28 14:21:28 +00:00
$ShownWith = false ;
?>
< div class = " box box_artists " >
< div class = " head " >< strong > Artists </ strong >
2013-09-24 08:00:48 +00:00
< ? = check_perms ( 'torrents_edit' ) ? '<span style="float: right;" class="edit_artists"><a onclick="ArtistManager(); return false;" href="#" class="brackets">Edit</a></span>' : '' ?>
2011-03-28 14:21:28 +00:00
</ div >
< ul class = " stats nobullet " id = " artist_list " >
2013-08-28 23:08:41 +00:00
< ?
if ( ! empty ( $Artists [ 4 ]) && count ( $Artists [ 4 ]) > 0 ) {
2012-11-14 08:00:19 +00:00
print ' <li class="artists_composers"><strong class="artists_label">Composers:</strong></li>' ;
2013-04-01 08:00:47 +00:00
foreach ( $Artists [ 4 ] as $Artist ) {
2011-11-20 08:00:18 +00:00
?>
< li class = " artists_composers " >
2012-10-29 08:00:20 +00:00
< ? = Artists :: display_artist ( $Artist ) . ' ‎' ?>
2013-08-28 23:08:41 +00:00
< ?
if ( check_perms ( 'torrents_edit' )) {
2013-05-27 08:00:58 +00:00
$DB -> query ( "
SELECT AliasID
FROM artists_alias
WHERE ArtistID = " . $Artist['id'] . "
AND ArtistID != AliasID
AND Name = '".db_string($Artist[' name '])."' " );
2011-11-20 08:00:18 +00:00
list ( $AliasID ) = $DB -> next_record ();
if ( empty ( $AliasID )) {
$AliasID = $Artist [ 'id' ];
}
?>
2013-08-28 23:08:41 +00:00
( < span class = " tooltip " title = " Artist alias ID " >< ? = $AliasID ?> </span>)
2013-11-05 08:01:12 +00:00
< span class = " remove remove_artist " >< a href = " javascript:void(0); " onclick = " ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?= $GroupID ?>&artistid=<?= $Artist['id'] ?>&importance=4'); this.parentNode.parentNode.style.display = 'none'; " class = " brackets tooltip " title = " Remove artist " > X </ a ></ span >
2011-11-20 08:00:18 +00:00
< ? } ?>
</ li >
2013-08-28 23:08:41 +00:00
< ?
}
2011-11-20 08:00:18 +00:00
}
if ( ! empty ( $Artists [ 6 ]) && count ( $Artists [ 6 ]) > 0 ) {
2012-11-14 08:00:19 +00:00
print ' <li class="artists_dj"><strong class="artists_label">DJ / Compiler:</strong></li>' ;
2013-04-01 08:00:47 +00:00
foreach ( $Artists [ 6 ] as $Artist ) {
2011-11-20 08:00:18 +00:00
?>
< li class = " artists_dj " >
2012-10-29 08:00:20 +00:00
< ? = Artists :: display_artist ( $Artist ) . ' ‎' ?>
2013-04-24 08:00:23 +00:00
< ? if ( check_perms ( 'torrents_edit' )) {
2013-06-20 08:01:00 +00:00
$DB -> query ( "
SELECT AliasID
FROM artists_alias
WHERE ArtistID = " . $Artist['id'] . "
AND ArtistID != AliasID
AND Name = '".db_string($Artist[' name '])."' " );
2012-10-29 08:00:20 +00:00
list ( $AliasID ) = $DB -> next_record ();
if ( empty ( $AliasID )) {
$AliasID = $Artist [ 'id' ];
}
2011-11-20 08:00:18 +00:00
?>
2013-08-28 23:08:41 +00:00
( < span class = " tooltip " title = " Artist alias ID " >< ? = $AliasID ?> </span>)
< span class = " remove remove_artist " >< a href = " javascript:void(0); " onclick = " ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?= $GroupID ?>&artistid=<?= $Artist['id'] ?>&importance=6'); this.parentNode.parentNode.style.display = 'none'; " class = " brackets tooltip " title = " Remove artist " > X </ a ></ span >
2012-10-29 08:00:20 +00:00
< ? } ?>
2011-11-20 08:00:18 +00:00
</ li >
2011-03-28 14:21:28 +00:00
< ?
2011-11-20 08:00:18 +00:00
}
}
2013-09-08 08:00:57 +00:00
if ( ! empty ( $Artists [ 6 ]) && ! empty ( $Artists [ 1 ])) {
2012-11-14 08:00:19 +00:00
print ' <li class="artists_main"><strong class="artists_label">Artists:</strong></li>' ;
2013-09-09 08:00:52 +00:00
} elseif ( ! empty ( $Artists [ 4 ]) && ! empty ( $Artists [ 1 ])) {
2012-11-14 08:00:19 +00:00
print ' <li class="artists_main"><strong class="artists_label">Performers:</strong></li>' ;
2011-11-20 08:00:18 +00:00
}
2013-04-01 08:00:47 +00:00
foreach ( $Artists [ 1 ] as $Artist ) {
2011-03-28 14:21:28 +00:00
?>
< li class = " artist_main " >
2012-10-29 08:00:20 +00:00
< ? = Artists :: display_artist ( $Artist ) . ' ‎' ?>
2013-08-28 23:08:41 +00:00
< ?
if ( check_perms ( 'torrents_edit' )) {
2011-03-28 14:21:28 +00:00
$AliasID = $Artist [ 'aliasid' ];
if ( empty ( $AliasID )) {
$AliasID = $Artist [ 'id' ];
}
?>
2013-08-28 23:08:41 +00:00
( < span class = " tooltip " title = " Artist alias ID " >< ? = $AliasID ?> </span>)
< span class = " remove remove_artist " >< a href = " javascript:void(0); " onclick = " ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?= $GroupID ?>&artistid=<?= $Artist['id'] ?>&importance=1'); this.parentNode.parentNode.style.display = 'none'; " class = " brackets tooltip " title = " Remove artist " > X </ a ></ span >
2011-03-28 14:21:28 +00:00
< ? } ?>
</ li >
< ?
}
2013-04-01 08:00:47 +00:00
if ( ! empty ( $Artists [ 2 ]) && count ( $Artists [ 2 ]) > 0 ) {
2012-11-14 08:00:19 +00:00
print ' <li class="artists_with"><strong class="artists_label">With:</strong></li>' ;
2013-04-01 08:00:47 +00:00
foreach ( $Artists [ 2 ] as $Artist ) {
2011-03-28 14:21:28 +00:00
?>
< li class = " artist_guest " >
2012-10-29 08:00:20 +00:00
< ? = Artists :: display_artist ( $Artist ) . ' ‎' ?>
2013-04-24 08:00:23 +00:00
< ? if ( check_perms ( 'torrents_edit' )) {
2013-06-20 08:01:00 +00:00
$DB -> query ( "
SELECT AliasID
FROM artists_alias
WHERE ArtistID = " . $Artist['id'] . "
AND ArtistID != AliasID
AND Name = '".db_string($Artist[' name '])."' " );
2011-03-28 14:21:28 +00:00
list ( $AliasID ) = $DB -> next_record ();
if ( empty ( $AliasID )) {
$AliasID = $Artist [ 'id' ];
}
?>
2013-08-28 23:08:41 +00:00
( < span class = " tooltip " title = " Artist alias ID " >< ? = $AliasID ?> </span>)
< span class = " remove remove_artist " >< a href = " javascript:void(0); " onclick = " ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?= $GroupID ?>&artistid=<?= $Artist['id'] ?>&importance=2'); this.parentNode.parentNode.style.display = 'none'; " class = " brackets tooltip " title = " Remove artist " > X </ a ></ span >
2011-03-28 14:21:28 +00:00
< ? } ?>
</ li >
2011-11-20 08:00:18 +00:00
< ?
}
}
2013-04-01 08:00:47 +00:00
if ( ! empty ( $Artists [ 5 ]) && count ( $Artists [ 5 ]) > 0 ) {
2012-11-14 08:00:19 +00:00
print ' <li class="artists_conductors"><strong class="artists_label">Conducted by:</strong></li>' ;
2013-04-01 08:00:47 +00:00
foreach ( $Artists [ 5 ] as $Artist ) {
2011-11-20 08:00:18 +00:00
?>
< li class = " artists_conductors " >
2012-10-29 08:00:20 +00:00
< ? = Artists :: display_artist ( $Artist ) . ' ‎' ?>
2013-04-24 08:00:23 +00:00
< ? if ( check_perms ( 'torrents_edit' )) {
2013-06-20 08:01:00 +00:00
$DB -> query ( "
SELECT AliasID
FROM artists_alias
WHERE ArtistID = " . $Artist['id'] . "
AND ArtistID != AliasID
AND Name = '".db_string($Artist[' name '])."' " );
2011-11-20 08:00:18 +00:00
list ( $AliasID ) = $DB -> next_record ();
if ( empty ( $AliasID )) {
$AliasID = $Artist [ 'id' ];
}
?>
2013-08-28 23:08:41 +00:00
( < span class = " tooltip " title = " Artist alias ID " >< ? = $AliasID ?> </span>)
< span class = " remove remove_artist " >< a href = " javascript:void(0); " onclick = " ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?= $GroupID ?>&artistid=<?= $Artist['id'] ?>&importance=5'); this.parentNode.parentNode.style.display = 'none'; " class = " brackets tooltip " title = " Remove conductor " > X </ a ></ span >
2011-11-20 08:00:18 +00:00
< ? } ?>
</ li >
2011-03-28 14:21:28 +00:00
< ?
}
}
if ( ! empty ( $Artists [ 3 ]) && count ( $Artists [ 3 ]) > 0 ) {
2012-11-14 08:00:19 +00:00
print ' <li class="artists_remix"><strong class="artists_label">Remixed by:</strong></li>' ;
2013-04-01 08:00:47 +00:00
foreach ( $Artists [ 3 ] as $Artist ) {
2011-03-28 14:21:28 +00:00
?>
< li class = " artists_remix " >
2012-10-29 08:00:20 +00:00
< ? = Artists :: display_artist ( $Artist ) . ' ‎' ?>
2013-04-24 08:00:23 +00:00
< ? if ( check_perms ( 'torrents_edit' )) {
2013-06-20 08:01:00 +00:00
$DB -> query ( "
SELECT AliasID
FROM artists_alias
WHERE ArtistID = " . $Artist['id'] . "
AND ArtistID != AliasID
AND Name = '".db_string($Artist[' name '])."' " );
2013-04-01 08:00:47 +00:00
list ( $AliasID ) = $DB -> next_record ();
if ( empty ( $AliasID )) {
$AliasID = $Artist [ 'id' ];
}
2011-03-28 14:21:28 +00:00
?>
2013-08-28 23:08:41 +00:00
( < span class = " tooltip " title = " Artist alias ID " >< ? = $AliasID ?> </span>)
< span class = " remove remove_artist " >< a href = " javascript:void(0); " onclick = " ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?= $GroupID ?>&artistid=<?= $Artist['id'] ?>&importance=3'); this.parentNode.parentNode.style.display = 'none'; " class = " brackets tooltip " title = " Remove artist " > X </ a ></ span >
2013-04-01 08:00:47 +00:00
< ? } ?>
2011-03-28 14:21:28 +00:00
</ li >
2012-02-19 08:00:19 +00:00
< ?
}
}
if ( ! empty ( $Artists [ 7 ]) && count ( $Artists [ 7 ]) > 0 ) {
2012-11-14 08:00:19 +00:00
print ' <li class="artists_producer"><strong class="artists_label">Produced by:</strong></li>' ;
2013-04-01 08:00:47 +00:00
foreach ( $Artists [ 7 ] as $Artist ) {
2012-02-19 08:00:19 +00:00
?>
< li class = " artists_producer " >
2012-10-29 08:00:20 +00:00
< ? = Artists :: display_artist ( $Artist ) . ' ‎' ?>
2013-06-20 08:01:00 +00:00
< ?
if ( check_perms ( 'torrents_edit' )) {
$DB -> query ( "
SELECT AliasID
FROM artists_alias
WHERE ArtistID = " . $Artist['id'] . "
AND ArtistID != AliasID
AND Name = '".db_string($Artist[' name '])."' " );
list ( $AliasID ) = $DB -> next_record ();
if ( empty ( $AliasID )) {
$AliasID = $Artist [ 'id' ];
}
2012-02-19 08:00:19 +00:00
?>
2013-08-28 23:08:41 +00:00
( < span class = " tooltip " title = " Artist alias ID " >< ? = $AliasID ?> </span>)
< span class = " remove remove_artist " >< a href = " javascript:void(0); " onclick = " ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?= $GroupID ?>&artistid=<?= $Artist['id'] ?>&importance=7'); this.parentNode.parentNode.style.display = 'none'; " class = " brackets tooltip " title = " Remove producer " > X </ a ></ span >
2013-04-01 08:00:47 +00:00
< ? } ?>
2012-02-19 08:00:19 +00:00
</ li >
2011-03-28 14:21:28 +00:00
< ?
}
}
?>
</ ul >
</ div >
2013-05-27 08:00:58 +00:00
< ? if ( check_perms ( 'torrents_add_artist' )) { ?>
2011-03-28 14:21:28 +00:00
< div class = " box box_addartists " >
2013-05-15 08:00:54 +00:00
< div class = " head " >< strong > Add artist </ strong >< span style = " float: right; " class = " additional_add_artist " >< a onclick = " AddArtistField(); return false; " href = " # " class = " brackets " >+</ a ></ span ></ div >
2011-03-28 14:21:28 +00:00
< div class = " body " >
2012-09-15 08:00:25 +00:00
< form class = " add_form " name = " artists " action = " torrents.php " method = " post " >
2011-03-28 14:21:28 +00:00
< div id = " AddArtists " >
< input type = " hidden " name = " action " value = " add_alias " />
< input type = " hidden " name = " auth " value = " <?= $LoggedUser['AuthKey'] ?> " />
< input type = " hidden " name = " groupid " value = " <?= $GroupID ?> " />
2013-07-04 08:00:56 +00:00
< input type = " text " id = " artist " name = " aliasname[] " size = " 17 " < ? Users :: has_autocomplete_enabled ( 'other' ); ?> />
2011-03-28 14:21:28 +00:00
< select name = " importance[] " >
< option value = " 1 " > Main </ option >
< option value = " 2 " > Guest </ option >
2011-11-20 08:00:18 +00:00
< option value = " 4 " > Composer </ option >
< option value = " 5 " > Conductor </ option >
< option value = " 6 " > DJ / Compiler </ option >
2011-03-28 14:21:28 +00:00
< option value = " 3 " > Remixer </ option >
2012-02-19 08:00:19 +00:00
< option value = " 7 " > Producer </ option >
2011-03-28 14:21:28 +00:00
</ select >
</ div >
< input type = " submit " value = " Add " />
</ form >
</ div >
</ div >
2013-08-28 23:08:41 +00:00
< ?
}
2012-10-29 08:00:20 +00:00
}
2012-11-07 08:00:18 +00:00
include ( SERVER_ROOT . '/sections/torrents/vote_ranks.php' );
2012-10-29 08:00:20 +00:00
include ( SERVER_ROOT . '/sections/torrents/vote.php' );
2012-11-14 08:00:19 +00:00
?>
2011-03-28 14:21:28 +00:00
< div class = " box box_tags " >
2013-05-21 08:01:09 +00:00
< div class = " head " >
< strong > Tags </ strong >
2013-05-26 08:00:59 +00:00
< ?
2013-08-28 23:08:41 +00:00
$DeletedTag = $Cache -> get_value ( " deleted_tags_ $GroupID " . '_' . $LoggedUser [ 'ID' ]);
2013-05-26 08:00:59 +00:00
if ( ! empty ( $DeletedTag )) { ?>
2013-05-21 08:01:09 +00:00
< form style = " display: none; " id = " undo_tag_delete_form " name = " tags " action = " torrents.php " method = " post " >
< input type = " hidden " name = " action " value = " add_tag " />
< input type = " hidden " name = " auth " value = " <?= $LoggedUser['AuthKey'] ?> " />
< input type = " hidden " name = " groupid " value = " <?= $GroupID ?> " />
< input type = " hidden " name = " tagname " value = " <?= $DeletedTag ?> " />
< input type = " hidden " name = " undo " value = " true " />
</ form >
2013-09-11 08:00:55 +00:00
< a class = " brackets " href = " # " onclick = " $ ('#undo_tag_delete_form').raw().submit(); return false; " > Undo delete </ a >
2013-05-21 08:01:09 +00:00
2013-05-26 08:00:59 +00:00
< ? } ?>
2013-05-21 08:01:09 +00:00
</ div >
2011-03-28 14:21:28 +00:00
< ?
2013-04-01 08:00:47 +00:00
if ( count ( $Tags ) > 0 ) {
2011-03-28 14:21:28 +00:00
?>
< ul class = " stats nobullet " >
< ?
2013-04-01 08:00:47 +00:00
foreach ( $Tags as $TagKey => $Tag ) {
2011-03-28 14:21:28 +00:00
?>
< li >
2013-05-15 08:00:54 +00:00
< a href = " torrents.php?taglist=<?= $Tag['name'] ?> " style = " float: left; display: block; " >< ? = display_str ( $Tag [ 'name' ]) ?> </a>
< div style = " float: right; display: block; letter-spacing: -1px; " class = " edit_tags_votes " >
2013-10-05 08:01:00 +00:00
< a href = " torrents.php?action=vote_tag&way=up&groupid=<?= $GroupID ?>&tagid=<?= $Tag['id'] ?>&auth=<?= $LoggedUser['AuthKey'] ?> " title = " Vote this tag up " class = " brackets tooltip vote_tag_up " >& and ; </ a >
2011-03-28 14:21:28 +00:00
< ? = $Tag [ 'score' ] ?>
2013-10-05 08:01:00 +00:00
< a href = " torrents.php?action=vote_tag&way=down&groupid=<?= $GroupID ?>&tagid=<?= $Tag['id'] ?>&auth=<?= $LoggedUser['AuthKey'] ?> " title = " Vote this tag down " class = " brackets tooltip vote_tag_down " >& or ; </ a >
2013-04-01 08:00:47 +00:00
< ? if ( check_perms ( 'users_warn' )) { ?>
2013-08-28 23:08:41 +00:00
< a href = " user.php?id=<?= $Tag['userid'] ?> " title = " View the profile of the user that added this tag " class = " brackets tooltip view_tag_user " > U </ a >
2011-03-28 14:21:28 +00:00
< ? } ?>
2013-04-01 08:00:47 +00:00
< ? if ( empty ( $LoggedUser [ 'DisableTagging' ]) && check_perms ( 'site_delete_tag' )) { ?>
2013-08-28 23:08:41 +00:00
< span class = " remove remove_tag " >< a href = " torrents.php?action=delete_tag&groupid=<?= $GroupID ?>&tagid=<?= $Tag['id'] ?>&auth=<?= $LoggedUser['AuthKey'] ?> " class = " brackets tooltip " title = " Remove tag " > X </ a ></ span >
2011-03-28 14:21:28 +00:00
< ? } ?>
</ div >
2013-05-25 08:01:03 +00:00
< br style = " clear: both; " />
2011-03-28 14:21:28 +00:00
</ li >
< ?
}
?>
</ ul >
< ?
2012-10-05 08:00:20 +00:00
} else { // The "no tags to display" message was wrapped in <ul> tags to pad the text.
2011-03-28 14:21:28 +00:00
?>
2012-10-05 08:00:20 +00:00
< ul >< li > There are no tags to display .</ li ></ ul >
2011-03-28 14:21:28 +00:00
< ?
}
?>
</ div >
2012-11-17 08:00:19 +00:00
< ?
if ( empty ( $LoggedUser [ 'DisableTagging' ])) {
?>
2012-08-17 08:00:13 +00:00
< div class = " box box_addtag " >
2011-03-28 14:21:28 +00:00
< div class = " head " >< strong > Add tag </ strong ></ div >
< div class = " body " >
2012-09-15 08:00:25 +00:00
< form class = " add_form " name = " tags " action = " torrents.php " method = " post " >
2011-03-28 14:21:28 +00:00
< input type = " hidden " name = " action " value = " add_tag " />
< input type = " hidden " name = " auth " value = " <?= $LoggedUser['AuthKey'] ?> " />
< input type = " hidden " name = " groupid " value = " <?= $GroupID ?> " />
2013-07-04 08:00:56 +00:00
< input type = " text " name = " tagname " id = " tagname " size = " 20 " < ? Users :: has_autocomplete_enabled ( 'other' ); ?> />
2011-03-28 14:21:28 +00:00
< input type = " submit " value = " + " />
</ form >
< br />< br />
2013-03-09 08:00:18 +00:00
< strong >< a href = " rules.php?p=tag " class = " brackets " > View tagging rules </ a ></ strong >
2011-03-28 14:21:28 +00:00
</ div >
</ div >
2012-11-17 08:00:19 +00:00
< ?
}
?>
2011-03-28 14:21:28 +00:00
</ div >
< div class = " main_column " >
2012-12-06 08:00:17 +00:00
< table class = " torrent_table details<?= $GroupFlags['IsSnatched'] ? ' snatched' : ''?> " id = " torrent_details " >
2011-03-28 14:21:28 +00:00
< tr class = " colhead_dark " >
< td width = " 80% " >< strong > Torrents </ strong ></ td >
< td >< strong > Size </ strong ></ td >
2013-11-01 08:01:02 +00:00
< td class = " sign snatches " >< img src = " static/styles/<?= $LoggedUser['StyleName'] ?>/images/snatched.png " class = " tooltip " alt = " Snatches " title = " Snatches " /></ td >
< td class = " sign seeders " >< img src = " static/styles/<?= $LoggedUser['StyleName'] ?>/images/seeders.png " class = " tooltip " alt = " Seeders " title = " Seeders " /></ td >
< td class = " sign leechers " >< img src = " static/styles/<?= $LoggedUser['StyleName'] ?>/images/leechers.png " class = " tooltip " alt = " Leechers " title = " Leechers " /></ td >
2011-03-28 14:21:28 +00:00
</ tr >
< ?
function filelist ( $Str ) {
2012-10-11 08:00:15 +00:00
return " </td><td> " . Format :: get_size ( $Str [ 1 ]) . " </td></tr> " ;
2011-03-28 14:21:28 +00:00
}
$LastRemasterYear = '-' ;
$LastRemasterTitle = '' ;
$LastRemasterRecordLabel = '' ;
$LastRemasterCatalogueNumber = '' ;
2011-09-04 08:00:07 +00:00
$EditionID = 0 ;
2011-03-28 14:21:28 +00:00
foreach ( $TorrentList as $Torrent ) {
2012-10-16 08:00:18 +00:00
//t.ID, t.Media, t.Format, t.Encoding, t.Remastered, t.RemasterYear,
//t.RemasterTitle, t.RemasterRecordLabel, t.RemasterCatalogueNumber, t.Scene,
//t.HasLog, t.HasCue, t.LogScore, t.FileCount, t.Size, t.Seeders, t.Leechers,
//t.Snatched, t.FreeTorrent, t.Time, t.Description, t.FileList,
2012-12-07 08:00:19 +00:00
//t.FilePath, t.UserID, t.last_action, HEX(t.info_hash), (bad tags), (bad folders), (bad filenames),
2012-10-16 08:00:18 +00:00
//(cassette approved), (lossy master approved), (lossy web approved), t.LastReseedRequest,
//LogInDB, (has file), Torrents::torrent_properties()
list ( $TorrentID , $Media , $Format , $Encoding , $Remastered , $RemasterYear ,
$RemasterTitle , $RemasterRecordLabel , $RemasterCatalogueNumber , $Scene ,
$HasLog , $HasCue , $LogScore , $FileCount , $Size , $Seeders , $Leechers ,
$Snatched , $FreeTorrent , $TorrentTime , $Description , $FileList ,
2012-12-07 08:00:19 +00:00
$FilePath , $UserID , $LastActive , $InfoHash , $BadTags , $BadFolders , $BadFiles ,
2012-10-16 08:00:18 +00:00
$CassetteApproved , $LossymasterApproved , $LossywebApproved , $LastReseedRequest ,
2012-10-28 08:00:19 +00:00
$LogInDB , $HasFile , $PersonalFL , $IsSnatched ) = array_values ( $Torrent );
2011-03-28 14:21:28 +00:00
2013-04-01 08:00:47 +00:00
if ( $Remastered && ! $RemasterYear ) {
2011-09-05 08:00:07 +00:00
$FirstUnknown = ! isset ( $FirstUnknown );
2011-03-28 14:21:28 +00:00
}
$Reported = false ;
unset ( $ReportedTimes );
2013-11-07 08:00:43 +00:00
$Reports = Torrents :: get_reports ( $TorrentID );
$NumReports = count ( $Reports );
2013-10-19 08:01:09 +00:00
2013-11-07 08:00:43 +00:00
if ( $NumReports > 0 ) {
2011-03-28 14:21:28 +00:00
$Reported = true ;
include ( SERVER_ROOT . '/sections/reportsv2/array.php' );
2013-10-18 08:00:55 +00:00
$ReportInfo = '
< table class = " reportinfo_table " >
< tr class = " colhead_dark " style = " font-weight: bold; " >
2013-10-19 08:01:09 +00:00
< td > This torrent has '.$NumReports.' active '.($NumReports === 1 ? ' report ' : ' reports ' ) . " :</td>
2013-10-18 08:00:55 +00:00
</ tr > " ;
2011-03-28 14:21:28 +00:00
2013-04-01 08:00:47 +00:00
foreach ( $Reports as $Report ) {
2013-11-07 08:00:43 +00:00
if ( check_perms ( 'admin_reports' )) {
$ReporterID = $Report [ 'ReporterID' ];
$Reporter = Users :: user_info ( $ReporterID );
$ReporterName = $Reporter [ 'Username' ];
$ReportLinks = " <a href= \" user.php?id= $ReporterID\ " > $ReporterName </ a > < a href = \ " reportsv2.php?view=report&id= $Report[ID] \" >reported it</a> " ;
} else {
$ReportLinks = 'Someone reported it' ;
2013-10-19 08:01:09 +00:00
}
2013-11-07 08:00:43 +00:00
if ( isset ( $Types [ $GroupCategoryID ][ $Report [ 'Type' ]])) {
$ReportType = $Types [ $GroupCategoryID ][ $Report [ 'Type' ]];
} elseif ( isset ( $Types [ 'master' ][ $Report [ 'Type' ]])) {
$ReportType = $Types [ 'master' ][ $Report [ 'Type' ]];
2011-03-28 14:21:28 +00:00
} else {
//There was a type but it wasn't an option!
$ReportType = $Types [ 'master' ][ 'other' ];
}
2013-10-19 08:01:09 +00:00
$ReportInfo .= "
< tr >
2013-11-07 08:00:43 +00:00
< td > $ReportLinks " .time_diff( $Report['ReportedTime'] , 2, true, true).' for the reason " '.$ReportType[' title '].' " :
2013-12-12 08:01:01 +00:00
< blockquote > '.Text::full_format($Report[' UserComment ']).' </ blockquote >
2013-10-19 08:01:09 +00:00
</ td >
</ tr > ' ;
2011-03-28 14:21:28 +00:00
}
2013-10-19 08:01:09 +00:00
$ReportInfo .= " \n \t \t </table> " ;
2011-03-28 14:21:28 +00:00
}
2013-02-18 08:00:22 +00:00
2011-03-28 14:21:28 +00:00
$CanEdit = ( check_perms ( 'torrents_edit' ) || (( $UserID == $LoggedUser [ 'ID' ] && ! $LoggedUser [ 'DisableWiki' ]) && ! ( $Remastered && ! $RemasterYear )));
2013-02-11 08:00:34 +00:00
$RegenLink = check_perms ( 'users_mod' ) ? ' <a href="torrents.php?action=regen_filelist&torrentid=' . $TorrentID . '" class="brackets">Regenerate</a>' : '' ;
$FileTable = '
< table class = " filelist_table " >
2013-10-19 08:01:09 +00:00
< tr class = " colhead_dark " >
< td >
< div class = " filelist_title " style = " float: left; " > File Names ' . $RegenLink . ' </ div >
< div class = " filelist_path " style = " float: right; " > ' . ($FilePath ? "/$FilePath/" : ' ') . ' </ div >
</ td >
2013-12-25 08:01:15 +00:00
< td class = " nobr " >
2013-10-19 08:01:09 +00:00
< strong > Size </ strong >
</ td >
</ tr > ' ;
2013-02-11 08:00:34 +00:00
if ( substr ( $FileList , - 3 ) == '}}}' ) { // Old style
$FileListSplit = explode ( '|||' , $FileList );
foreach ( $FileListSplit as $File ) {
$NameEnd = strrpos ( $File , '{{{' );
$Name = substr ( $File , 0 , $NameEnd );
if ( $Spaces = strspn ( $Name , ' ' )) {
$Name = str_replace ( ' ' , ' ' , substr ( $Name , 0 , $Spaces )) . substr ( $Name , $Spaces );
}
2013-05-21 08:01:09 +00:00
$FileSize = substr ( $File , $NameEnd + 3 , - 3 );
2013-12-25 08:01:15 +00:00
$FileTable .= sprintf ( " \n <tr><td>%s</td><td class= \" number_column nobr \" >%s</td></tr> " , $Name , Format :: get_size ( $FileSize ));
2013-02-11 08:00:34 +00:00
}
} else {
$FileListSplit = explode ( " \n " , $FileList );
foreach ( $FileListSplit as $File ) {
$FileInfo = Torrents :: filelist_get_file ( $File );
2013-12-25 08:01:15 +00:00
$FileTable .= sprintf ( " \n <tr><td>%s</td><td class= \" number_column nobr \" >%s</td></tr> " , $FileInfo [ 'name' ], Format :: get_size ( $FileInfo [ 'size' ]));
2013-02-11 08:00:34 +00:00
}
}
$FileTable .= '
</ table > ' ;
2011-03-28 14:21:28 +00:00
2013-05-21 08:01:09 +00:00
$ExtraInfo = '' ; // String that contains information on the torrent (e.g. format and encoding)
$AddExtra = '' ; // Separator between torrent properties
2011-03-28 14:21:28 +00:00
2012-10-11 08:00:15 +00:00
// similar to Torrents::torrent_info()
2013-04-01 08:00:47 +00:00
if ( $Format ) { $ExtraInfo .= display_str ( $Format ); $AddExtra = ' / ' ; }
if ( $Encoding ) { $ExtraInfo .= $AddExtra . display_str ( $Encoding ); $AddExtra = ' / ' ; }
if ( $HasLog ) { $ExtraInfo .= $AddExtra . 'Log' ; $AddExtra = ' / ' ; }
2013-10-30 08:01:19 +00:00
if ( $HasLog && $LogInDB ) { $ExtraInfo .= ' (' . ( int ) $LogScore . '%)' ; }
2013-04-01 08:00:47 +00:00
if ( $HasCue ) { $ExtraInfo .= $AddExtra . 'Cue' ; $AddExtra = ' / ' ; }
if ( $Scene ) { $ExtraInfo .= $AddExtra . 'Scene' ; $AddExtra = ' / ' ; }
if ( ! $ExtraInfo ) {
2011-03-28 14:21:28 +00:00
$ExtraInfo = $GroupName ; $AddExtra = ' / ' ;
}
2013-04-01 08:00:47 +00:00
if ( $IsSnatched ) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Snatched!' ); $AddExtra = ' / ' ; }
if ( $FreeTorrent == '1' ) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Freeleech!' ); $AddExtra = ' / ' ; }
if ( $FreeTorrent == '2' ) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Neutral Leech!' ); $AddExtra = ' / ' ; }
if ( $PersonalFL ) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Personal Freeleech!' ); $AddExtra = ' / ' ; }
if ( $Reported ) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Reported' ); $AddExtra = ' / ' ; }
if ( ! empty ( $BadTags )) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Bad Tags' ); $AddExtra = ' / ' ; }
if ( ! empty ( $BadFolders )) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Bad Folders' ); $AddExtra = ' / ' ; }
if ( ! empty ( $CassetteApproved )) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Cassette Approved' ); $AddExtra = ' / ' ; }
if ( ! empty ( $LossymasterApproved )) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Lossy Master Approved' ); $AddExtra = ' / ' ; }
if ( ! empty ( $LossywebApproved )) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Lossy WEB Approved' ); $AddExtra = ' / ' ; }
if ( ! empty ( $BadFiles )) { $ExtraInfo .= $AddExtra . Format :: torrent_label ( 'Bad File Names' ); $AddExtra = ' / ' ; }
if ( $GroupCategoryID == 1
2011-03-28 14:21:28 +00:00
&& ( $RemasterTitle != $LastRemasterTitle
|| $RemasterYear != $LastRemasterYear
2013-02-18 08:00:22 +00:00
|| $RemasterRecordLabel != $LastRemasterRecordLabel
2011-03-28 14:21:28 +00:00
|| $RemasterCatalogueNumber != $LastRemasterCatalogueNumber
2011-09-04 08:00:07 +00:00
|| $FirstUnknown
|| $Media != $LastMedia )) {
2013-02-18 08:00:22 +00:00
2011-09-04 08:00:07 +00:00
$EditionID ++ ;
2011-03-28 14:21:28 +00:00
?>
2011-09-04 08:00:07 +00:00
< tr class = " releases_<?= $ReleaseType ?> groupid_<?= $GroupID ?> edition group_torrent " >
2015-11-15 08:00:28 +00:00
< td colspan = " 5 " class = " edition_info " >< strong >< a href = " # " onclick = " toggle_edition(<?= $GroupID ?>, <?= $EditionID ?>, this, event); " title = " Collapse this edition. Hold [Command] <em>(Mac)</em> or [Ctrl] <em>(PC)</em> while clicking to collapse all editions in this torrent group. " class = " tooltip " >& minus ; </ a > < ? = Torrents :: edition_string ( $Torrent , $TorrentDetails ) ?> </strong></td>
2011-03-28 14:21:28 +00:00
</ tr >
< ?
}
$LastRemasterTitle = $RemasterTitle ;
$LastRemasterYear = $RemasterYear ;
$LastRemasterRecordLabel = $RemasterRecordLabel ;
$LastRemasterCatalogueNumber = $RemasterCatalogueNumber ;
2011-09-04 08:00:07 +00:00
$LastMedia = $Media ;
2011-03-28 14:21:28 +00:00
?>
2013-05-21 08:01:09 +00:00
< tr class = " torrent_row releases_<?= $ReleaseType ?> groupid_<?= $GroupID ?> edition_<?= $EditionID ?> group_torrent<?=( $IsSnatched ? ' snatched_torrent' : '')?> " style = " font-weight: normal; " id = " torrent<?= $TorrentID ?> " >
2011-03-28 14:21:28 +00:00
< td >
2013-10-26 08:00:58 +00:00
< span > [ < a href = " torrents.php?action=download&id=<?= $TorrentID ?>&authkey=<?= $LoggedUser['AuthKey'] ?>&torrent_pass=<?= $LoggedUser['torrent_pass'] ?> " class = " tooltip " title = " Download " >< ? = ( $HasFile ? 'DL' : 'Missing' ) ?> </a>
2012-10-28 08:00:19 +00:00
< ? if ( Torrents :: can_use_token ( $Torrent )) { ?>
2013-10-26 08:00:58 +00:00
| < a href = " torrents.php?action=download&id=<?= $TorrentID ?>&authkey=<?= $LoggedUser['AuthKey'] ?>&torrent_pass=<?= $LoggedUser['torrent_pass'] ?>&usetoken=1 " class = " tooltip " title = " Use a FL Token " onclick = " return confirm('Are you sure you want to use a freeleech token here?'); " > FL </ a >
2013-02-18 08:00:22 +00:00
< ? } ?>
2013-10-26 08:00:58 +00:00
| < a href = " reportsv2.php?action=report&id=<?= $TorrentID ?> " class = " tooltip " title = " Report " > RP </ a >
2013-04-01 08:00:47 +00:00
< ? if ( $CanEdit ) { ?>
2013-10-26 08:00:58 +00:00
| < a href = " torrents.php?action=edit&id=<?= $TorrentID ?> " class = " tooltip " title = " Edit " > ED </ a >
2013-05-16 16:15:57 +00:00
< ? }
if ( check_perms ( 'torrents_delete' ) || $UserID == $LoggedUser [ 'ID' ]) { ?>
2013-10-26 08:00:58 +00:00
| < a href = " torrents.php?action=delete&torrentid=<?= $TorrentID ?> " class = " tooltip " title = " Remove " > RM </ a >
2013-05-16 16:15:57 +00:00
< ? } ?>
2013-10-26 08:00:58 +00:00
| < a href = " torrents.php?torrentid=<?= $TorrentID ?> " class = " tooltip " title = " Permalink " > PL </ a >
2011-03-28 14:21:28 +00:00
] </ span >
2013-06-17 08:01:02 +00:00
& raquo ; < a href = " # " onclick = " $ ('#torrent_<?= $TorrentID ?>').gtoggle(); return false; " >< ? = $ExtraInfo ; ?> </a>
2011-03-28 14:21:28 +00:00
</ td >
2013-08-28 23:08:41 +00:00
< td class = " number_column nobr " >< ? = Format :: get_size ( $Size ) ?> </td>
< td class = " number_column " >< ? = number_format ( $Snatched ) ?> </td>
< td class = " number_column " >< ? = number_format ( $Seeders ) ?> </td>
< td class = " number_column " >< ? = number_format ( $Leechers ) ?> </td>
2011-03-28 14:21:28 +00:00
</ tr >
2013-06-26 08:01:00 +00:00
< tr class = " releases_<?= $ReleaseType ?> groupid_<?= $GroupID ?> edition_<?= $EditionID ?> torrentdetails pad <? if (!isset( $_GET['torrentid'] ) || $_GET['torrentid'] != $TorrentID ) { ?>hidden<? } ?> " id = " torrent_<?= $TorrentID ; ?> " >
2011-03-28 14:21:28 +00:00
< td colspan = " 5 " >
2013-04-01 08:00:47 +00:00
< div id = " release_<?= $TorrentID ?> " class = " no_overflow " >
< blockquote >
Uploaded by < ? = Users :: format_username ( $UserID , false , false , false ) ?> <?=time_diff($TorrentTime);?>
2013-05-16 16:15:57 +00:00
< ? if ( $Seeders == 0 ) {
if ( $LastActive != '0000-00-00 00:00:00' && time () - strtotime ( $LastActive ) >= 1209600 ) { ?>
2013-04-01 08:00:47 +00:00
< br />< strong > Last active : < ? = time_diff ( $LastActive ); ?> </strong>
2013-05-16 16:15:57 +00:00
< ? } else { ?>
2013-04-01 08:00:47 +00:00
< br /> Last active : < ? = time_diff ( $LastActive ); ?>
2013-05-16 16:15:57 +00:00
< ? }
2013-06-03 08:00:52 +00:00
}
2013-07-20 08:00:47 +00:00
if (( $Seeders == 0 && $LastActive != '0000-00-00 00:00:00' && time () - strtotime ( $LastActive ) >= 345678 && time () - strtotime ( $LastReseedRequest ) >= 864000 ) || check_perms ( 'users_mod' )) { ?>
2016-01-08 08:00:30 +00:00
< br />< a href = " torrents.php?action=reseed&torrentid=<?= $TorrentID ?>&groupid=<?= $GroupID ?> " class = " brackets " onclick = " return confirm('Are you sure you want to request a re-seed of this torrent?'); " > Request re - seed </ a >
2013-06-03 08:00:52 +00:00
< ? }
2013-04-01 08:00:47 +00:00
2013-06-03 08:00:52 +00:00
?>
2013-04-01 08:00:47 +00:00
</ blockquote >
</ div >
< ? if ( check_perms ( 'site_moderate_requests' )) { ?>
2011-03-28 14:21:28 +00:00
< div class = " linkbox " >
2013-01-24 08:00:24 +00:00
< a href = " torrents.php?action=masspm&id=<?= $GroupID ?>&torrentid=<?= $TorrentID ?> " class = " brackets " > Mass PM snatchers </ a >
2011-03-28 14:21:28 +00:00
</ div >
2013-04-01 08:00:47 +00:00
< ? } ?>
2011-03-28 14:21:28 +00:00
< div class = " linkbox " >
2013-06-26 08:01:00 +00:00
< a href = " # " class = " brackets " onclick = " show_peers('<?= $TorrentID ?>', 0); return false; " > View peer list </ a >
2013-04-01 08:00:47 +00:00
< ? if ( check_perms ( 'site_view_torrent_snatchlist' )) { ?>
2013-08-28 23:08:41 +00:00
< a href = " # " class = " brackets tooltip " onclick = " show_downloads('<?= $TorrentID ?>', 0); return false; " title = " View the list of users that have clicked the "DL" button. " > View download list </ a >
< a href = " # " class = " brackets tooltip " onclick = " show_snatches('<?= $TorrentID ?>', 0); return false; " title = " View the list of users that have reported a snatch to the tracker. " > View snatch list </ a >
2013-11-25 08:00:49 +00:00
< ? } ?>
2013-06-26 08:01:00 +00:00
< a href = " # " class = " brackets " onclick = " show_files('<?= $TorrentID ?>'); return false; " > View file list </ a >
2013-04-01 08:00:47 +00:00
< ? if ( $Reported ) { ?>
2013-06-26 08:01:00 +00:00
< a href = " # " class = " brackets " onclick = " show_reported('<?= $TorrentID ?>'); return false; " > View report information </ a >
2013-04-01 08:00:47 +00:00
< ? } ?>
2011-03-28 14:21:28 +00:00
</ div >
2013-01-26 08:00:19 +00:00
< div id = " peers_<?= $TorrentID ?> " class = " hidden " ></ div >
< div id = " downloads_<?= $TorrentID ?> " class = " hidden " ></ div >
< div id = " snatches_<?= $TorrentID ?> " class = " hidden " ></ div >
2013-02-11 08:00:34 +00:00
< div id = " files_<?= $TorrentID ?> " class = " hidden " >< ? = $FileTable ?> </div>
2013-04-01 08:00:47 +00:00
< ? if ( $Reported ) { ?>
2013-01-26 08:00:19 +00:00
< div id = " reported_<?= $TorrentID ?> " class = " hidden " >< ? = $ReportInfo ?> </div>
2013-11-25 08:00:49 +00:00
< ?
}
2013-04-01 08:00:47 +00:00
if ( ! empty ( $Description )) {
2013-12-12 08:01:01 +00:00
echo " \n <blockquote> " . Text :: full_format ( $Description ) . '</blockquote>' ;
2013-11-25 08:00:49 +00:00
}
2013-04-01 08:00:47 +00:00
?>
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
2013-04-01 08:00:47 +00:00
< ? } ?>
2011-03-28 14:21:28 +00:00
</ table >
< ?
2012-02-03 08:00:22 +00:00
$Requests = get_group_requests ( $GroupID );
2013-05-07 08:00:23 +00:00
if ( empty ( $LoggedUser [ 'DisableRequests' ]) && count ( $Requests ) > 0 ) {
2012-02-03 08:00:22 +00:00
$i = 0 ;
?>
< div class = " box " >
2013-10-26 08:00:58 +00:00
< div class = " head " >
< span style = " font-weight: bold; " > Requests ( < ? = number_format ( count ( $Requests )) ?> )</span>
< a href = " # " style = " float: right; " onclick = " $ ('#requests').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false; " class = " brackets " > Show </ a >
</ div >
2012-09-01 08:00:24 +00:00
< table id = " requests " class = " request_table hidden " >
2012-02-03 08:00:22 +00:00
< tr class = " colhead " >
< td > Format / Bitrate / Media </ td >
< td > Votes </ td >
< td > Bounty </ td >
</ tr >
2013-04-01 08:00:47 +00:00
< ? foreach ( $Requests as $Request ) {
2013-05-13 08:00:33 +00:00
$RequestVotes = Requests :: get_votes_array ( $Request [ 'ID' ]);
2012-02-03 08:00:22 +00:00
2013-05-15 08:00:54 +00:00
if ( $Request [ 'BitrateList' ] != '' ) {
$BitrateString = implode ( ', ' , explode ( '|' , $Request [ 'BitrateList' ]));
$FormatString = implode ( ', ' , explode ( '|' , $Request [ 'FormatList' ]));
$MediaString = implode ( ', ' , explode ( '|' , $Request [ 'MediaList' ]));
2012-02-07 08:00:20 +00:00
if ( $Request [ 'LogCue' ]) {
$FormatString .= ' - ' . $Request [ 'LogCue' ];
}
2012-02-03 08:00:22 +00:00
} else {
2013-05-15 08:00:54 +00:00
$BitrateString = 'Unknown' ;
$FormatString = 'Unknown' ;
$MediaString = 'Unknown' ;
2012-02-03 08:00:22 +00:00
}
?>
2013-05-15 08:00:54 +00:00
< tr class = " requestrows <?=(++ $i % 2 ? 'rowa' : 'rowb')?> " >
2012-09-09 08:00:26 +00:00
< td >< a href = " requests.php?action=view&id=<?= $Request['ID'] ?> " >< ? = $FormatString ?> / <?=$BitrateString?> / <?=$MediaString?></a></td>
2012-02-03 08:00:22 +00:00
< td >
2013-02-20 08:00:33 +00:00
< span id = " vote_count_<?= $Request['ID'] ?> " >< ? = count ( $RequestVotes [ 'Voters' ]) ?> </span>
2013-04-01 08:00:47 +00:00
< ? if ( check_perms ( 'site_vote' )) { ?>
2013-02-20 08:00:33 +00:00
& nbsp ; & nbsp ; < a href = " javascript:Vote(0, <?= $Request['ID'] ?>) " class = " brackets " >+</ a >
< ? } ?>
2012-02-03 08:00:22 +00:00
</ td >
2012-10-11 08:00:15 +00:00
< td >< ? = Format :: get_size ( $RequestVotes [ 'TotalBounty' ]) ?> </td>
2012-02-03 08:00:22 +00:00
</ tr >
< ? } ?>
</ table >
</ div >
< ?
}
2013-06-26 08:01:00 +00:00
$Collages = $Cache -> get_value ( " torrent_collages_ $GroupID " );
2013-04-01 08:00:47 +00:00
if ( ! is_array ( $Collages )) {
2013-05-15 08:00:54 +00:00
$DB -> query ( "
SELECT c . Name , c . NumTorrents , c . ID
FROM collages AS c
2013-06-26 08:01:00 +00:00
JOIN collages_torrents AS ct ON ct . CollageID = c . ID
WHERE ct . GroupID = '$GroupID'
AND Deleted = '0'
AND CategoryID != '0' " );
2011-03-28 14:21:28 +00:00
$Collages = $DB -> to_array ();
2013-08-28 23:08:41 +00:00
$Cache -> cache_value ( " torrent_collages_ $GroupID " , $Collages , 3600 * 6 );
2011-03-28 14:21:28 +00:00
}
2013-04-01 08:00:47 +00:00
if ( count ( $Collages ) > 0 ) {
2012-08-10 08:00:14 +00:00
if ( count ( $Collages ) > MAX_COLLAGES ) {
// Pick some at random
2013-05-15 08:00:54 +00:00
$Range = range ( 0 , count ( $Collages ) - 1 );
2012-08-10 08:00:14 +00:00
shuffle ( $Range );
$Indices = array_slice ( $Range , 0 , MAX_COLLAGES );
2013-06-17 08:01:02 +00:00
$SeeAll = ' <a href="#" onclick="$(\'.collage_rows\').gtoggle(); return false;">(See all)</a>' ;
2012-08-10 08:00:14 +00:00
} else {
2013-05-15 08:00:54 +00:00
$Indices = range ( 0 , count ( $Collages ) - 1 );
2012-08-10 08:00:14 +00:00
$SeeAll = '' ;
}
2011-03-28 14:21:28 +00:00
?>
2012-09-01 08:00:24 +00:00
< table class = " collage_table " id = " collages " >
2011-03-28 14:21:28 +00:00
< tr class = " colhead " >
2013-05-15 08:00:54 +00:00
< td width = " 85% " >< a href = " # " >& uarr ; </ a >& nbsp ; This album is in < ? = number_format ( count ( $Collages )) ?> collage<?=((count($Collages) > 1) ? 's' : '')?><?=$SeeAll?></td>
2011-03-28 14:21:28 +00:00
< td > # torrents</td>
</ tr >
2013-02-18 08:00:22 +00:00
< ? foreach ( $Indices as $i ) {
2012-08-10 08:00:14 +00:00
list ( $CollageName , $CollageTorrents , $CollageID ) = $Collages [ $i ];
unset ( $Collages [ $i ]);
2011-03-28 14:21:28 +00:00
?>
< tr >
< td >< a href = " collages.php?id=<?= $CollageID ?> " >< ? = $CollageName ?> </a></td>
2013-08-28 23:08:41 +00:00
< td class = " number_column " >< ? = number_format ( $CollageTorrents ) ?> </td>
2011-03-28 14:21:28 +00:00
</ tr >
2012-08-10 08:00:14 +00:00
< ? }
2013-02-18 08:00:22 +00:00
foreach ( $Collages as $Collage ) {
2012-08-10 08:00:14 +00:00
list ( $CollageName , $CollageTorrents , $CollageID ) = $Collage ;
?>
< tr class = " collage_rows hidden " >
< td >< a href = " collages.php?id=<?= $CollageID ?> " >< ? = $CollageName ?> </a></td>
2013-08-28 23:08:41 +00:00
< td class = " number_column " >< ? = number_format ( $CollageTorrents ) ?> </td>
2012-08-10 08:00:14 +00:00
</ tr >
2011-03-28 14:21:28 +00:00
< ? } ?>
</ table >
< ?
}
2012-02-20 08:00:22 +00:00
2013-06-26 08:01:00 +00:00
$PersonalCollages = $Cache -> get_value ( " torrent_collages_personal_ $GroupID " );
2013-04-01 08:00:47 +00:00
if ( ! is_array ( $PersonalCollages )) {
2013-05-15 08:00:54 +00:00
$DB -> query ( "
SELECT c . Name , c . NumTorrents , c . ID
FROM collages AS c
2013-06-26 08:01:00 +00:00
JOIN collages_torrents AS ct ON ct . CollageID = c . ID
WHERE ct . GroupID = '$GroupID'
AND Deleted = '0'
AND CategoryID = '0' " );
2012-03-29 08:00:19 +00:00
$PersonalCollages = $DB -> to_array ( false , MYSQLI_NUM );
2013-06-26 08:01:00 +00:00
$Cache -> cache_value ( " torrent_collages_personal_ $GroupID " , $PersonalCollages , 3600 * 6 );
2012-02-20 08:00:22 +00:00
}
2013-04-01 08:00:47 +00:00
if ( count ( $PersonalCollages ) > 0 ) {
2012-02-20 08:00:22 +00:00
if ( count ( $PersonalCollages ) > MAX_PERS_COLLAGES ) {
2012-08-10 08:00:14 +00:00
// Pick some at random
2012-02-20 08:00:22 +00:00
$Range = range ( 0 , count ( $PersonalCollages ) - 1 );
shuffle ( $Range );
$Indices = array_slice ( $Range , 0 , MAX_PERS_COLLAGES );
2013-06-17 08:01:02 +00:00
$SeeAll = ' <a href="#" onclick="$(\'.personal_rows\').gtoggle(); return false;">(See all)</a>' ;
2012-02-20 08:00:22 +00:00
} else {
2013-05-15 08:00:54 +00:00
$Indices = range ( 0 , count ( $PersonalCollages ) - 1 );
2012-02-20 08:00:22 +00:00
$SeeAll = '' ;
}
?>
2012-09-01 08:00:24 +00:00
< table class = " collage_table " id = " personal_collages " >
2012-02-20 08:00:22 +00:00
< tr class = " colhead " >
2013-05-15 08:00:54 +00:00
< td width = " 85% " >< a href = " # " >& uarr ; </ a >& nbsp ; This album is in < ? = number_format ( count ( $PersonalCollages )) ?> personal collage<?=((count($PersonalCollages) > 1) ? 's' : '')?><?=$SeeAll?></td>
2012-02-20 08:00:22 +00:00
< td > # torrents</td>
</ tr >
2013-02-18 08:00:22 +00:00
< ? foreach ( $Indices as $i ) {
2012-02-20 08:00:22 +00:00
list ( $CollageName , $CollageTorrents , $CollageID ) = $PersonalCollages [ $i ];
unset ( $PersonalCollages [ $i ]);
?>
< tr >
< td >< a href = " collages.php?id=<?= $CollageID ?> " >< ? = $CollageName ?> </a></td>
2013-08-28 23:08:41 +00:00
< td class = " number_column " >< ? = number_format ( $CollageTorrents ) ?> </td>
2012-02-20 08:00:22 +00:00
</ tr >
< ? }
2013-02-18 08:00:22 +00:00
foreach ( $PersonalCollages as $Collage ) {
2012-02-20 08:00:22 +00:00
list ( $CollageName , $CollageTorrents , $CollageID ) = $Collage ;
?>
< tr class = " personal_rows hidden " >
< td >< a href = " collages.php?id=<?= $CollageID ?> " >< ? = $CollageName ?> </a></td>
2013-08-28 23:08:41 +00:00
< td class = " number_column " >< ? = number_format ( $CollageTorrents ) ?> </td>
2012-02-20 08:00:22 +00:00
</ tr >
< ? } ?>
</ table >
< ?
}
2012-10-27 08:00:09 +00:00
// Matched Votes
2012-10-28 08:00:19 +00:00
include ( SERVER_ROOT . '/sections/torrents/voter_picks.php' );
2011-03-28 14:21:28 +00:00
?>
2013-11-10 08:00:49 +00:00
< div class = " box torrent_description " >
2012-12-23 08:00:46 +00:00
< div class = " head " >< a href = " # " >& uarr ; </ a >& nbsp ; < strong >< ? = ( ! empty ( $ReleaseType ) ? $ReleaseTypes [ $ReleaseType ] . ' info' : 'Info' ) ?> </strong></div>
2013-05-15 08:00:54 +00:00
< div class = " body " >< ? if ( $WikiBody != '' ) { echo $WikiBody ; } else { echo 'There is no information on this torrent.' ; } ?> </div>
2011-03-28 14:21:28 +00:00
</ div >
< ?
2012-10-27 08:00:09 +00:00
// --- Comments ---
2013-08-28 23:08:41 +00:00
$Pages = Format :: get_pages ( $Page , $NumComments , TORRENT_COMMENTS_PER_PAGE , 9 , '#comments' );
2011-03-28 14:21:28 +00:00
?>
2013-11-10 08:00:49 +00:00
< div id = " torrent_comments " >
2013-08-28 23:08:41 +00:00
< div class = " linkbox " >< a name = " comments " ></ a >
< ? = $Pages ?>
</ div >
2011-03-28 14:21:28 +00:00
< ?
2013-08-28 23:08:41 +00:00
CommentsView :: render_comments ( $Thread , $LastRead , " torrents.php?id= $GroupID " );
2012-10-29 08:00:20 +00:00
?>
2011-03-28 14:21:28 +00:00
< div class = " linkbox " >
2013-08-28 23:08:41 +00:00
< ? = $Pages ?>
2011-03-28 14:21:28 +00:00
</ div >
2013-01-23 08:00:38 +00:00
< ?
View :: parse ( 'generic/reply/quickreply.php' , array (
2013-08-28 23:08:41 +00:00
'InputName' => 'pageid' ,
'InputID' => $GroupID ,
'Action' => 'comments.php?page=torrents' ,
'InputAction' => 'take_post' ,
'TextareaCols' => 65 ,
'SubscribeBox' => true
));
2013-01-23 08:00:38 +00:00
?>
2013-11-10 08:00:49 +00:00
</ div >
2011-03-28 14:21:28 +00:00
</ div >
</ div >
2012-10-11 08:00:15 +00:00
< ? View :: show_footer (); ?>