2011-03-28 14:21:28 +00:00
< ?
$UserID = $_REQUEST [ 'userid' ];
2013-04-17 08:00:58 +00:00
if ( ! is_number ( $UserID )) {
2011-03-28 14:21:28 +00:00
error ( 404 );
}
2013-04-26 08:00:25 +00:00
global $Cache ;
2011-03-28 14:21:28 +00:00
2013-05-16 16:15:57 +00:00
$DB -> query ( "
SELECT
m . Username ,
m . Email ,
m . IRCKey ,
m . Paranoia ,
i . Info ,
i . Avatar ,
i . Country ,
i . StyleID ,
i . StyleURL ,
i . SiteOptions ,
i . UnseededAlerts ,
p . Level AS Class
FROM users_main AS m
JOIN users_info AS i ON i . UserID = m . ID
2013-06-23 08:00:54 +00:00
LEFT JOIN permissions AS p ON p . ID = m . PermissionID
2013-05-16 16:15:57 +00:00
WHERE m . ID = '".db_string($UserID)."' " );
list ( $Username , $Email , $IRCKey , $Paranoia , $Info , $Avatar , $Country , $StyleID , $StyleURL , $SiteOptions , $UnseededAlerts , $Class ) = $DB -> next_record ( MYSQLI_NUM , array ( 3 , 9 ));
2011-03-28 14:21:28 +00:00
2013-04-17 08:00:58 +00:00
if ( $UserID != $LoggedUser [ 'ID' ] && ! check_perms ( 'users_edit_profiles' , $Class )) {
2011-03-28 14:21:28 +00:00
error ( 403 );
}
$Paranoia = unserialize ( $Paranoia );
2013-04-17 08:00:58 +00:00
if ( ! is_array ( $Paranoia )) {
2012-11-16 08:00:21 +00:00
$Paranoia = array ();
2011-03-28 14:21:28 +00:00
}
function paranoia_level ( $Setting ) {
2013-02-07 08:00:47 +00:00
global $Paranoia ;
// 0: very paranoid; 1: stats allowed, list disallowed; 2: not paranoid
return ( in_array ( $Setting . '+' , $Paranoia )) ? 0 : ( in_array ( $Setting , $Paranoia ) ? 1 : 2 );
2011-03-28 14:21:28 +00:00
}
function display_paranoia ( $FieldName ) {
2013-02-07 08:00:47 +00:00
$Level = paranoia_level ( $FieldName );
2013-06-03 08:00:52 +00:00
print " \t \t \t \t \t <label><input type= \" checkbox \" name= \" p_ { $FieldName } _c \" " . checked ( $Level >= 1 ) . ' onchange="AlterParanoia()" /> Show count</label>' . " \n " ;
print " \t \t \t \t \t <label><input type= \" checkbox \" name= \" p_ { $FieldName } _l \" " . checked ( $Level >= 2 ) . ' onchange="AlterParanoia()" /> Show list</label>' . " \n " ;
2011-03-28 14:21:28 +00:00
}
function checked ( $Checked ) {
2013-06-03 08:00:52 +00:00
return ( $Checked ? ' checked="checked"' : '' );
2011-03-28 14:21:28 +00:00
}
2012-11-16 08:00:21 +00:00
if ( $SiteOptions ) {
$SiteOptions = unserialize ( $SiteOptions );
} else {
2011-03-28 14:21:28 +00:00
$SiteOptions = array ();
}
2013-06-27 08:01:06 +00:00
View :: show_header ( $Username . ' > Settings' , 'user,jquery-ui,release_sort,password_validate,validate,push_settings,cssgallery,preview_paranoia,bbcode' );
2012-10-27 08:00:09 +00:00
2013-06-03 08:00:52 +00:00
$DB -> query ( "
SELECT username
FROM lastfm_users
WHERE ID = '$UserID' " );
2013-04-17 08:00:58 +00:00
$LastFMUsername = '' ;
2013-01-02 08:00:26 +00:00
list ( $LastFMUsername ) = $DB -> next_record ();
2011-03-28 14:21:28 +00:00
echo $Val -> GenerateJS ( 'userform' );
?>
< div class = " thin " >
2012-08-19 08:00:19 +00:00
< div class = " header " >
2012-10-11 08:00:15 +00:00
< h2 >< ? = Users :: format_username ( $UserID , false , false , false ) ?> > Settings</h2>
2012-08-19 08:00:19 +00:00
</ div >
2013-06-06 08:01:03 +00:00
< form class = " edit_form " name = " user " id = " userform " action = " " method = " post " onsubmit = " return userform_submit(); " autocomplete = " off " >
2011-03-28 14:21:28 +00:00
< div >
< input type = " hidden " name = " action " value = " takeedit " />
< input type = " hidden " name = " userid " value = " <?= $UserID ?> " />
< input type = " hidden " name = " auth " value = " <?= $LoggedUser['AuthKey'] ?> " />
</ div >
2013-02-24 08:00:18 +00:00
< table cellpadding = " 6 " cellspacing = " 1 " border = " 0 " width = " 100% " class = " layout border user_options " >
2011-03-28 14:21:28 +00:00
< tr class = " colhead_dark " >
< td colspan = " 2 " >
< strong > Site preferences </ strong >
</ td >
</ tr >
< tr >
< td class = " label " >< strong > Stylesheet </ strong ></ td >
< td >
< select name = " stylesheet " id = " stylesheet " >
2013-06-03 08:00:52 +00:00
< ? foreach ( $Stylesheets as $Style ) { ?>
2013-06-06 08:01:03 +00:00
< option value = " <?=( $Style['ID'] )?> " < ? if ( $Style [ 'ID' ] == $StyleID ) { ?> selected="selected"<? } ?>><?=($Style['ProperName'])?></option>
2013-06-03 08:00:52 +00:00
< ? } ?>
2013-04-18 08:00:54 +00:00
</ select >& nbsp ; & nbsp ;
< a href = " # " id = " toggle_css_gallery " class = " brackets " > Show gallery </ a >
& nbsp ; & nbsp ; & nbsp ; & nbsp ; - Or -& nbsp ; & nbsp ; & nbsp ; & nbsp ;
2011-03-28 14:21:28 +00:00
External CSS : < input type = " text " size = " 40 " name = " styleurl " id = " styleurl " value = " <?=display_str( $StyleURL )?> " />
2013-04-18 08:00:54 +00:00
< div id = " css_gallery " >
2013-06-03 08:00:52 +00:00
< ? foreach ( $Stylesheets as $Style ) { ?>
< div class = " preview_wrapper " >
2013-06-06 08:01:03 +00:00
< div class = " preview_image " name = " <?=( $Style['Name'] )?> " style = " background: url('<?=(STATIC_SERVER.'stylespreview/thumb_'. $Style['Name'] .'.png')?>') no-repeat scroll center top #CCC; " ></ div >
2013-06-03 08:00:52 +00:00
< p class = " preview_name " >< input type = " radio " name = " stylesheet_gallery " value = " <?=( $Style['ID'] )?> " /> < ? = ( $Style [ 'ProperName' ]) ?> </p>
</ div >
< ? } ?>
2013-04-18 08:00:54 +00:00
</ div >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
2013-06-06 08:01:03 +00:00
< tr >
< td class = " label " >< strong > OpenDyslexic </ strong ></ td >
< td >
< input type = " checkbox " name = " useopendyslexic " id = " useopendyslexic " < ? if ( ! empty ( $SiteOptions [ 'UseOpenDyslexic' ])) { ?> checked="checked"<? } ?> />
< label for = " useopendyslexic " > Use the OpenDyslexic font </ label >
< p > Read about OpenDyslexic , a < span title = " Creative Commons Attribution 3.0 Unported License " > CC - BY 3.0 </ span > licensed font designed for users with dyslexia , at < a href = " http://opendyslexic.org " target = " _blank " > http :// opendyslexic . org /</ a >.</ p >
< p > This is an experimental feature , and some stylesheets will have display issues .</ p >
</ td >
</ tr >
2013-06-17 08:01:02 +00:00
< ? if ( check_perms ( 'users_mod' )) { ?>
< tr >
< td class = " label " >< strong > Profile stats </ strong ></ td >
< td >
< label >
2013-06-23 08:00:54 +00:00
< input type = " checkbox " name = " autoload_comm_stats " < ? Format :: selected ( 'AutoloadCommStats' , 1 , 'checked' , $SiteOptions ); ?> />
2013-06-17 08:01:02 +00:00
Automatically fetch the snatch and peer stats on profile pages .
</ label >
</ td >
</ tr >
< ? } ?>
2013-06-06 08:01:03 +00:00
< tr class = " colhead_dark " >
< td colspan = " 2 " >
< strong > Torrent options </ strong >
</ td >
</ tr >
< ? if ( check_perms ( 'site_advanced_search' )) { ?>
2011-03-28 14:21:28 +00:00
< tr >
2012-12-27 08:00:27 +00:00
< td class = " label " >< strong > Default search type </ strong ></ td >
2011-03-28 14:21:28 +00:00
< td >
2013-06-23 08:00:54 +00:00
< ul class = " options_list nobullet " >
< li >
< input type = " radio " name = " searchtype " id = " search_type_simple " value = " 0 " < ? if ( $SiteOptions [ 'SearchType' ] == 0 ) { ?> checked="checked" <? } ?>/>
< label for = " search_type_simple " > Simple </ label >
</ li >
< li >
< input type = " radio " name = " searchtype " id = " search_type_advanced " value = " 1 " < ? if ( $SiteOptions [ 'SearchType' ] == 1 ) { ?> checked="checked" <? } ?>/>
< label for = " search_type_advanced " > Advanced </ label >
</ li >
</ ul >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
2013-06-06 08:01:03 +00:00
< ? } ?>
2011-03-28 14:21:28 +00:00
< tr >
2012-12-27 08:00:27 +00:00
< td class = " label " >< strong > Torrent grouping </ strong ></ td >
2011-03-28 14:21:28 +00:00
< td >
2013-06-28 08:01:04 +00:00
< div class = " option_group " >
< input type = " checkbox " name = " disablegrouping " id = " disablegrouping " < ? Format :: selected ( 'DisableGrouping2' , 0 , 'checked' , $SiteOptions ); ?> />
< label for = " disablegrouping " > Group torrents by default </ label >
</ div >
< div class = " option_group " >
< p > By default , torrent groups are :</ p >
< ul class = " options_list nobullet " >
< li >
< input type = " radio " name = " torrentgrouping " id = " torrent_grouping_open " value = " 0 " < ? if ( $SiteOptions [ 'TorrentGrouping' ] == 0 ) { ?> checked="checked" <? } ?>/>
< label for = " torrent_grouping_open " > Open </ label >
</ li >
< li >
< input type = " radio " name = " torrentgrouping " id = " torrent_grouping_closed " value = " 1 " < ? if ( $SiteOptions [ 'TorrentGrouping' ] == 1 ) { ?> checked="checked" <? } ?>/>
< label for = " torrent_grouping_closed " > Closed </ label >
</ li >
</ ul >
</ div >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
2013-06-23 08:00:54 +00:00
< td class = " label " >< strong > Default discography view </ strong ></ td >
2011-03-28 14:21:28 +00:00
< td >
2013-06-23 08:00:54 +00:00
< ul class = " options_list nobullet " >
< li >
< input type = " radio " name = " discogview " id = " discog_view_open " value = " 0 " < ? if ( $SiteOptions [ 'DiscogView' ] == 0 ) { ?> checked="checked" <? } ?>/>
< label for = " discog_view_open " > Open </ label >
</ li >
< li >
< input type = " radio " name = " discogview " id = " discog_view_closed " value = " 1 " < ? if ( $SiteOptions [ 'DiscogView' ] == 1 ) { ?> checked="checked" <? } ?>/>
< label for = " discog_view_closed " > Closed </ label >
</ li >
</ ul >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
2012-10-27 08:00:09 +00:00
< tr >
2013-01-15 08:00:37 +00:00
< td class = " label " >< strong > Show snatched torrents </ strong ></ td >
2012-10-27 08:00:09 +00:00
< td >
2013-02-07 08:00:47 +00:00
< input type = " checkbox " name = " showsnatched " id = " showsnatched " < ? if ( ! empty ( $SiteOptions [ 'ShowSnatched' ])) { ?> checked="checked" <? } ?>/>
2013-01-15 08:00:37 +00:00
< label for = " showsnatched " > Display " Snatched! " next to snatched torrents </ label >
2012-10-27 08:00:09 +00:00
</ td >
</ tr >
2011-03-28 14:21:28 +00:00
< tr >
2013-04-19 08:00:55 +00:00
< td class = " label " >< strong > Sort / hide release types </ strong ></ td >
2011-03-28 14:21:28 +00:00
< td >
2012-11-16 08:00:21 +00:00
< noscript > Please enable JavaScript to use these options .</ noscript >
2013-02-23 08:00:22 +00:00
< a href = " # " id = " toggle_sortable " class = " brackets " > Expand </ a >
2012-11-16 08:00:21 +00:00
< div id = " sortable_container " style = " display: none; " >
2013-02-23 08:00:22 +00:00
< a href = " # " id = " reset_sortable " class = " brackets " > Reset to default </ a >
2012-11-16 08:00:21 +00:00
< ul class = " sortable_list " id = " sortable " >
< ? Users :: release_order () ?>
</ ul >
< p >< small > Note : Checked items will be hidden .</ small ></ p >
2013-03-09 08:00:18 +00:00
< script type = " text/javascript " id = " sortable_default " >//<! [ CDATA [
2012-11-16 08:00:21 +00:00
var sortable_list_default = < ? = Users :: release_order_default_js () ?> ;
2013-03-09 08:00:18 +00:00
//]]>
2012-11-16 08:00:21 +00:00
</ script >
</ div >
< input type = " hidden " id = " sorthide " name = " sorthide " value = " " />
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
2011-11-20 08:00:18 +00:00
<!-- < tr >
2011-03-28 14:21:28 +00:00
< td class = " label " >< strong > Collage album art view </ strong ></ td >
< td >
< select name = " hidecollage " id = " hidecollage " >
2013-01-15 08:00:37 +00:00
< option value = " 0 " < ? if ( $SiteOptions [ 'HideCollage' ] == 0 ) { ?> selected="selected"<? } ?>>Show album art</option>
< option value = " 1 " < ? if ( $SiteOptions [ 'HideCollage' ] == 1 ) { ?> selected="selected"<? } ?>>Hide album art</option>
2011-03-28 14:21:28 +00:00
</ select >
</ td >
2011-11-20 08:00:18 +00:00
</ tr >-->
2013-02-25 21:16:55 +00:00
< tr >
2013-03-09 08:00:18 +00:00
< td class = " label " >< strong > Cover art </ strong ></ td >
2013-02-25 21:16:55 +00:00
< td >
2013-06-02 08:01:02 +00:00
< ul class = " options_list nobullet " >
< li >
< input type = " hidden " name = " coverart " value = " " />
< input type = " checkbox " name = " coverart " id = " coverart " < ? = ( $SiteOptions [ 'CoverArt' ] ? ' checked="checked"' : '' ) ?> />
< label for = " coverart " > Show cover artwork next to torrent information </ label >
</ li >
< li >
< input type = " checkbox " name = " show_extra_covers " id = " show_extra_covers " < ? = ( $SiteOptions [ 'ShowExtraCovers' ] ? ' checked="checked"' : '' ) ?> />
< label for = " show_extra_covers " > Show all additional cover art on torrent pages by default </ label >
</ li >
</ ul >
2013-02-25 21:16:55 +00:00
</ td >
</ tr >
2011-11-20 08:00:18 +00:00
< tr >
< td class = " label " >< strong > Collage album covers to show per page </ strong ></ td >
< td >
< select name = " collagecovers " id = " collagecovers " >
2013-01-15 08:00:37 +00:00
< option value = " 10 " < ? if ( $SiteOptions [ 'CollageCovers' ] == 10 ) { ?> selected="selected"<? } ?>>10</option>
< option value = " 25 " < ? if (( $SiteOptions [ 'CollageCovers' ] == 25 ) || ! isset ( $SiteOptions [ 'CollageCovers' ])) { ?> selected="selected"<? } ?>>25 (default)</option>
< option value = " 50 " < ? if ( $SiteOptions [ 'CollageCovers' ] == 50 ) { ?> selected="selected"<? } ?>>50</option>
< option value = " 100 " < ? if ( $SiteOptions [ 'CollageCovers' ] == 100 ) { ?> selected="selected"<? } ?>>100</option>
< option value = " 1000000 " < ? if ( $SiteOptions [ 'CollageCovers' ] == 1000000 ) { ?> selected="selected"<? } ?>>All</option>
< option value = " 0 " < ? if (( $SiteOptions [ 'CollageCovers' ] === 0 ) || ( ! isset ( $SiteOptions [ 'CollageCovers' ]) && $SiteOptions [ 'HideCollage' ])) { ?> selected="selected"<? } ?>>None</option>
2011-11-20 08:00:18 +00:00
</ select >
</ td >
2011-03-28 14:21:28 +00:00
</ tr >
< tr >
2013-02-24 08:00:18 +00:00
< td class = " label " >< strong > Torrent search </ strong ></ td >
2011-03-28 14:21:28 +00:00
< td >
2013-02-24 08:00:18 +00:00
< ul class = " options_list nobullet " >
< li >
2013-06-06 08:01:03 +00:00
< input type = " checkbox " name = " showtfilter " id = " showtfilter " < ? = ( ! isset ( $SiteOptions [ 'ShowTorFilter' ]) || $SiteOptions [ 'ShowTorFilter' ] ? ' checked="checked"' : '' ) ?> />
2013-06-23 08:00:54 +00:00
< label for = " showtfilter " > Show filter controls </ label >
2013-02-24 08:00:18 +00:00
</ li >
< li >
2013-06-23 08:00:54 +00:00
< input type = " checkbox " name = " showtags " id = " showtags " < ? Format :: selected ( 'ShowTags' , 1 , 'checked' , $SiteOptions ); ?> />
< label for = " showtags " > Show filters for official tags </ label >
2013-02-24 08:00:18 +00:00
</ li >
</ ul >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
2013-06-06 08:01:03 +00:00
< td class = " label " >< strong > Voting links </ strong ></ td >
2011-03-28 14:21:28 +00:00
< td >
2013-06-06 08:01:03 +00:00
< input type = " checkbox " name = " novotelinks " id = " novotelinks " < ? if ( ! empty ( $SiteOptions [ 'NoVoteLinks' ])) { ?> checked="checked" <? } ?>/>
< label for = " novotelinks " > Disable voting links on artist pages , collages , and snatched lists </ label >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
2012-10-27 08:00:09 +00:00
< tr >
2013-06-06 08:01:03 +00:00
< td class = " label " >< strong > Download torrents as text files </ strong ></ td >
2012-10-27 08:00:09 +00:00
< td >
2013-06-06 08:01:03 +00:00
< input type = " checkbox " name = " downloadalt " id = " downloadalt " < ? if ( $DownloadAlt ) { ?> checked="checked" <? } ?>/>
< label for = " downloadalt " > For users whose ISP blocks the downloading of torrent files </ label >
</ td >
</ tr >
< tr class = " colhead_dark " >
< td colspan = " 2 " >
< strong > Community options </ strong >
</ td >
</ tr >
< tr >
< td class = " label " >< strong > Forum posts per page </ strong ></ td >
< td >
< select name = " postsperpage " id = " postsperpage " >
< option value = " 25 " < ? if ( $SiteOptions [ 'PostsPerPage' ] == 25 ) { ?> selected="selected"<? } ?>>25 (Default)</option>
< option value = " 50 " < ? if ( $SiteOptions [ 'PostsPerPage' ] == 50 ) { ?> selected="selected"<? } ?>>50</option>
< option value = " 100 " < ? if ( $SiteOptions [ 'PostsPerPage' ] == 100 ) { ?> selected="selected"<? } ?>>100</option>
</ select >
2012-10-27 08:00:09 +00:00
</ td >
</ tr >
2013-06-03 08:00:52 +00:00
< tr >
< td class = " label " >< strong > Inbox message sorting </ strong ></ td >
< td >
< input type = " checkbox " name = " list_unread_pms_first " id = " list_unread_pms_first " < ? if ( ! empty ( $SiteOptions [ 'ListUnreadPMsFirst' ])) { ?> checked="checked"<? } ?> />
< label for = " list_unread_pms_first " > List unread private messages first </ label >
</ td >
</ tr >
2011-03-28 14:21:28 +00:00
< tr >
< td class = " label " >< strong > Smileys </ strong ></ td >
< td >
2013-02-18 08:00:22 +00:00
< input type = " checkbox " name = " disablesmileys " id = " disablesmileys " < ? if ( ! empty ( $SiteOptions [ 'DisableSmileys' ])) { ?> checked="checked"<? } ?> />
2011-03-28 14:21:28 +00:00
< label for = " disablesmileys " > Disable smileys </ label >
</ td >
</ tr >
< tr >
2013-02-07 08:00:47 +00:00
< td class = " label " >< strong > Mature content </ strong ></ td >
< td >
2013-02-18 08:00:22 +00:00
< input type = " checkbox " name = " enablematurecontent " id = " enablematurecontent " < ? if ( ! empty ( $SiteOptions [ 'EnableMatureContent' ])) { ?> checked="checked"<? } ?> />
2013-02-07 08:00:47 +00:00
< label for = " enablematurecontent " > Show mature content </ label >
</ td >
</ tr >
< tr >
< td class = " label " >< strong > Avatars </ strong ></ td >
< td >
< select name = " disableavatars " id = " disableavatars " onclick = " ToggleIdenticons(); " >
2013-04-17 08:00:58 +00:00
< option value = " 1 " < ? if ( $SiteOptions [ 'DisableAvatars' ] == 1 ) { ?> selected="selected"<? } ?>>Disable avatars</option>
< option value = " 0 " < ? if ( $SiteOptions [ 'DisableAvatars' ] == 0 ) { ?> selected="selected"<? } ?>>Show avatars</option>
< option value = " 2 " < ? if ( $SiteOptions [ 'DisableAvatars' ] == 2 ) { ?> selected="selected"<? } ?>>Show avatars or:</option>
< option value = " 3 " < ? if ( $SiteOptions [ 'DisableAvatars' ] == 3 ) { ?> selected="selected"<? } ?>>Replace all avatars with:</option>
2013-02-07 08:00:47 +00:00
</ select >
< select name = " identicons " id = " identicons " >
2013-04-17 08:00:58 +00:00
< option value = " 0 " < ? if ( $SiteOptions [ 'Identicons' ] == 0 ) { ?> selected="selected"<? } ?>>Identicon</option>
< option value = " 1 " < ? if ( $SiteOptions [ 'Identicons' ] == 1 ) { ?> selected="selected"<? } ?>>MonsterID</option>
< option value = " 2 " < ? if ( $SiteOptions [ 'Identicons' ] == 2 ) { ?> selected="selected"<? } ?>>Wavatar</option>
< option value = " 3 " < ? if ( $SiteOptions [ 'Identicons' ] == 3 ) { ?> selected="selected"<? } ?>>Retro</option>
< option value = " 4 " < ? if ( $SiteOptions [ 'Identicons' ] == 4 ) { ?> selected="selected"<? } ?>>Robots 1</option>
< option value = " 5 " < ? if ( $SiteOptions [ 'Identicons' ] == 5 ) { ?> selected="selected"<? } ?>>Robots 2</option>
< option value = " 6 " < ? if ( $SiteOptions [ 'Identicons' ] == 6 ) { ?> selected="selected"<? } ?>>Robots 3</option>
2013-02-07 08:00:47 +00:00
</ select >
</ td >
</ tr >
2013-01-11 08:00:38 +00:00
< tr >
2013-01-15 08:00:37 +00:00
< td class = " label " >< strong > Auto - save text </ strong ></ td >
2013-01-11 08:00:38 +00:00
< td >
2013-02-07 08:00:47 +00:00
< input type = " checkbox " name = " disableautosave " id = " disableautosave " < ? if ( ! empty ( $SiteOptions [ 'DisableAutoSave' ])) { ?> checked="checked" <? } ?>/>
2013-01-11 08:00:38 +00:00
< label for = " disableautosave " > Disable reply text from being saved automatically when changing pages in a thread </ label >
</ td >
</ tr >
2013-06-06 08:01:03 +00:00
< tr class = " colhead_dark " >
< td colspan = " 2 " >
< strong > Notifications </ strong >
</ td >
</ tr >
2013-01-11 08:00:38 +00:00
< tr >
2013-06-06 08:01:03 +00:00
< td class = " label " >< strong > Subscriptions </ strong ></ td >
2013-01-11 08:00:38 +00:00
< td >
2013-06-06 08:01:03 +00:00
< input type = " checkbox " name = " autosubscribe " id = " autosubscribe " < ? if ( ! empty ( $SiteOptions [ 'AutoSubscribe' ])) { ?> checked="checked"<? } ?> />
< label for = " autosubscribe " > Subscribe to topics when posting </ label >
2013-01-11 08:00:38 +00:00
</ td >
</ tr >
< tr >
2013-06-06 08:01:03 +00:00
< td class = " label " >< strong > Quote notifications </ strong ></ td >
2013-01-11 08:00:38 +00:00
< td >
2013-06-06 08:01:03 +00:00
< input type = " checkbox " name = " notifyquotes " id = " notifyquotes " < ? if ( ! empty ( $SiteOptions [ 'NotifyOnQuote' ])) { ?> checked="checked"<? } ?> />
2013-06-23 08:00:54 +00:00
< label for = " notifyquotes " > Receive notifications when someone quotes you in the forum </ label >
2013-01-11 08:00:38 +00:00
</ td >
</ tr >
< tr >
< td class = " label " >< strong > Unseeded torrent alerts </ strong ></ td >
< td >
2013-06-03 08:00:52 +00:00
< input type = " checkbox " name = " unseededalerts " id = " unseededalerts " < ? = checked ( $UnseededAlerts ) ?> />
2013-01-11 08:00:38 +00:00
< label for = " unseededalerts " > Receive a PM alert before your uploads are deleted for being unseeded </ label >
</ td >
</ tr >
2011-03-28 14:21:28 +00:00
< tr class = " colhead_dark " >
< td colspan = " 2 " >
2013-02-18 08:00:22 +00:00
< strong > User information </ strong >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
< td class = " label " >< strong > Avatar URL </ strong ></ td >
< td >
< input type = " text " size = " 50 " name = " avatar " id = " avatar " value = " <?=display_str( $Avatar )?> " />
< p class = " min_padding " > Width should be 150 pixels ( will be resized if necessary ) </ p >
</ td >
</ tr >
< tr >
2013-03-09 08:00:18 +00:00
< td class = " label " >< strong > Email address </ strong ></ td >
2011-03-28 14:21:28 +00:00
< td >< input type = " text " size = " 50 " name = " email " id = " email " value = " <?=display_str( $Email )?> " />
2012-12-27 08:00:27 +00:00
< p class = " min_padding " > If changing this field , you must enter your current password in the " Current password " field before saving your changes .</ p >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
2013-03-09 08:00:18 +00:00
< tr >
< td class = " label " >< strong > Last . fm username </ strong ></ td >
< td >< input type = " text " size = " 50 " name = " lastfm_username " id = " lastfm_username " value = " <?=display_str( $LastFMUsername )?> " />
2013-06-23 08:00:54 +00:00
< p class = " min_padding " > Used to display Last . fm information on your profile which can be seen by other users .</ p >
2013-03-09 08:00:18 +00:00
</ td >
</ tr >
2011-03-28 14:21:28 +00:00
< tr >
< td class = " label " >< strong > Info </ strong ></ td >
2012-10-27 08:00:09 +00:00
< td >< ? php $textarea = new TEXTAREA_PREVIEW ( 'info' , 'info' , display_str ( $Info ), 50 , 8 ); ?> </td>
2011-03-28 14:21:28 +00:00
</ tr >
< tr >
< td class = " label " >< strong > IRCKey </ strong ></ td >
< td >
< input type = " text " size = " 50 " name = " irckey " id = " irckey " value = " <?=display_str( $IRCKey )?> " />
2012-09-20 08:00:49 +00:00
< p class = " min_padding " > If set , this field will be used in place of the password in the IRC login .</ p >
2011-03-28 14:21:28 +00:00
< p class = " min_padding " > Note : This value is stored in plaintext and should not be your password .</ p >
< p class = " min_padding " > Note : In order to be accepted as correct , your IRCKey must be between 6 and 32 characters .</ p >
</ td >
</ tr >
< tr class = " colhead_dark " >
< td colspan = " 2 " >
< strong > Paranoia settings </ strong >
</ td >
</ tr >
< tr >
< td class = " label " >& nbsp ; </ td >
< td >
2012-09-24 08:00:33 +00:00
< p >< span class = " warning " > Note : Paranoia has nothing to do with your security on this site ; the only thing affected by this setting is other users ' ability to see your site activity and taste in music .</ span ></ p >
2013-06-25 08:00:52 +00:00
< p > Select the elements < strong > you want to show </ strong > on your profile . For example , if you select " Show count " for " Snatched " , users will be able to see how many torrents you have snatched . If you select " Show list " , they will be able to see the full list of torrents you have snatched .</ p >
2011-03-28 14:21:28 +00:00
< p >< span class = " warning " > Some information will still be available in the site log .</ span ></ p >
</ td >
</ tr >
< tr >
< td class = " label " > Recent activity </ td >
< td >
2013-06-03 08:00:52 +00:00
< label >< input type = " checkbox " name = " p_lastseen " < ? = checked ( ! in_array ( 'lastseen' , $Paranoia )) ?> /> Last seen</label>
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
< td class = " label " > Preset </ td >
< td >
2013-06-01 08:00:52 +00:00
< input type = " button " onclick = " ParanoiaResetOff() " value = " Show everything " />
< input type = " button " onclick = " ParanoiaResetStats() " value = " Show stats only " />
2013-05-14 08:00:34 +00:00
<!--< input type = " button " onclick = " ParanoiaResetOn() " > Show nothing </ input >-->
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
< td class = " label " > Stats </ td >
< td >
< ?
$UploadChecked = checked ( ! in_array ( 'uploaded' , $Paranoia ));
$DownloadChecked = checked ( ! in_array ( 'downloaded' , $Paranoia ));
$RatioChecked = checked ( ! in_array ( 'ratio' , $Paranoia ));
?>
2012-09-20 08:00:49 +00:00
< label >< input type = " checkbox " name = " p_uploaded " onchange = " AlterParanoia() " < ? = $UploadChecked ?> /> Uploaded</label>
< label >< input type = " checkbox " name = " p_downloaded " onchange = " AlterParanoia() " < ? = $DownloadChecked ?> /> Downloaded</label>
< label >< input type = " checkbox " name = " p_ratio " onchange = " AlterParanoia() " < ? = $RatioChecked ?> /> Ratio</label>
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
< td class = " label " > Torrent comments </ td >
< td >
< ? display_paranoia ( 'torrentcomments' ); ?>
</ td >
</ tr >
< tr >
< td class = " label " > Collages started </ td >
< td >
< ? display_paranoia ( 'collages' ); ?>
</ td >
</ tr >
< tr >
< td class = " label " > Collages contributed to </ td >
< td >
< ? display_paranoia ( 'collagecontribs' ); ?>
</ td >
</ tr >
2012-09-20 08:00:49 +00:00
< tr >
2011-03-28 14:21:28 +00:00
< td class = " label " > Requests filled </ td >
< td >
< ?
$RequestsFilledCountChecked = checked ( ! in_array ( 'requestsfilled_count' , $Paranoia ));
$RequestsFilledBountyChecked = checked ( ! in_array ( 'requestsfilled_bounty' , $Paranoia ));
$RequestsFilledListChecked = checked ( ! in_array ( 'requestsfilled_list' , $Paranoia ));
?>
2013-06-03 08:00:52 +00:00
< label >< input type = " checkbox " name = " p_requestsfilled_count " onchange = " AlterParanoia() " < ? = $RequestsFilledCountChecked ?> /> Show count</label>
< label >< input type = " checkbox " name = " p_requestsfilled_bounty " onchange = " AlterParanoia() " < ? = $RequestsFilledBountyChecked ?> /> Show bounty</label>
< label >< input type = " checkbox " name = " p_requestsfilled_list " onchange = " AlterParanoia() " < ? = $RequestsFilledListChecked ?> /> Show list</label>
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
2012-09-20 08:00:49 +00:00
< tr >
2011-03-28 14:21:28 +00:00
< td class = " label " > Requests voted </ td >
< td >
< ?
$RequestsVotedCountChecked = checked ( ! in_array ( 'requestsvoted_count' , $Paranoia ));
$RequestsVotedBountyChecked = checked ( ! in_array ( 'requestsvoted_bounty' , $Paranoia ));
$RequestsVotedListChecked = checked ( ! in_array ( 'requestsvoted_list' , $Paranoia ));
?>
2013-06-03 08:00:52 +00:00
< label >< input type = " checkbox " name = " p_requestsvoted_count " onchange = " AlterParanoia() " < ? = $RequestsVotedCountChecked ?> /> Show count</label>
< label >< input type = " checkbox " name = " p_requestsvoted_bounty " onchange = " AlterParanoia() " < ? = $RequestsVotedBountyChecked ?> /> Show bounty</label>
< label >< input type = " checkbox " name = " p_requestsvoted_list " onchange = " AlterParanoia() " < ? = $RequestsVotedListChecked ?> /> Show list</label>
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
< td class = " label " > Uploaded </ td >
< td >
< ? display_paranoia ( 'uploads' ); ?>
</ td >
</ tr >
< tr >
< td class = " label " > Unique groups </ td >
< td >
< ? display_paranoia ( 'uniquegroups' ); ?>
</ td >
</ tr >
< tr >
< td class = " label " > " Perfect " FLACs </ td >
< td >
< ? display_paranoia ( 'perfectflacs' ); ?>
</ td >
</ tr >
< tr >
< td class = " label " > Seeding </ td >
< td >
< ? display_paranoia ( 'seeding' ); ?>
</ td >
</ tr >
< tr >
< td class = " label " > Leeching </ td >
< td >
< ? display_paranoia ( 'leeching' ); ?>
</ td >
</ tr >
< tr >
< td class = " label " > Snatched </ td >
< td >
< ? display_paranoia ( 'snatched' ); ?>
</ td >
</ tr >
< tr >
< td class = " label " > Miscellaneous </ td >
< td >
2013-06-03 08:00:52 +00:00
< ul class = " options_list nobullet " >
< li >
< label >< input type = " checkbox " name = " p_requiredratio " < ? = checked ( ! in_array ( 'requiredratio' , $Paranoia )) ?> /> Required ratio</label>
</ li >
2011-03-28 14:21:28 +00:00
< ?
2013-06-03 08:00:52 +00:00
$DB -> query ( "
SELECT COUNT ( UserID )
FROM users_info
WHERE Inviter = '$UserID' " );
2011-03-28 14:21:28 +00:00
list ( $Invited ) = $DB -> next_record ();
?>
2013-06-03 08:00:52 +00:00
< li >
< label >< input type = " checkbox " name = " p_invitedcount " < ? = checked ( ! in_array ( 'invitedcount' , $Paranoia )) ?> /> Number of users invited</label>
</ li >
2011-03-28 14:21:28 +00:00
< ?
2013-06-03 08:00:52 +00:00
$DB -> query ( "
SELECT COUNT ( ta . ArtistID )
FROM torrents_artists AS ta
WHERE ta . UserID = $UserID " );
2011-03-28 14:21:28 +00:00
list ( $ArtistsAdded ) = $DB -> next_record ();
?>
2013-06-03 08:00:52 +00:00
< li >
< label >< input type = " checkbox " name = " p_artistsadded " < ? = checked ( ! in_array ( 'artistsadded' , $Paranoia )) ?> /> Number of artists added</label>
</ li >
< li >
< label >< input type = " checkbox " name = " p_notifications " < ? = checked ( ! in_array ( 'notifications' , $Paranoia )) ?> /> Allow users to subscribe to my uploads</label>
</ li >
</ ul >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
2013-05-16 16:15:57 +00:00
< tr >
< td ></ td >
2013-06-17 08:01:02 +00:00
< td >< a href = " # " id = " preview_paranoia " class = " brackets " > Preview paranoia </ a >< noscript > ( Requires JavaScript ) </ noscript ></ td >
2013-05-16 16:15:57 +00:00
</ tr >
2012-07-13 08:00:19 +00:00
< tr class = " colhead_dark " >
< td colspan = " 2 " >
2012-12-27 08:00:27 +00:00
< strong > Reset passkey </ strong >
2012-07-13 08:00:19 +00:00
</ td >
</ tr >
< tr >
< td class = " label " >< strong > Reset passkey </ strong ></ td >
< td >
2013-05-14 08:00:34 +00:00
< label >< input type = " checkbox " name = " resetpasskey " id = " resetpasskey " />
2012-07-13 08:00:19 +00:00
Any active torrents must be downloaded again to continue leeching / seeding .</ label > < br />
2013-01-15 08:00:37 +00:00
< a href = " wiki.php?action=article&name=Passkey " > See this wiki article for more information .</ a >
2012-07-13 08:00:19 +00:00
</ td >
</ tr >
2011-03-28 14:21:28 +00:00
< tr class = " colhead_dark " >
< td colspan = " 2 " >
< strong > Change password </ strong >
</ td >
</ tr >
2012-06-17 08:00:18 +00:00
< tr >
2013-06-12 08:00:46 +00:00
< td />
2012-06-17 08:00:18 +00:00
< td >
2012-07-13 08:00:19 +00:00
< p class = " min_padding " > A strong password is between 8 and 40 characters long </ p >
2012-06-17 08:00:18 +00:00
< p class = " min_padding " > Contains at least 1 lowercase and uppercase letter </ p >
< p class = " min_padding " > Contains at least a number or symbol </ p >
</ td >
</ tr >
2011-03-28 14:21:28 +00:00
< tr >
< td class = " label " >< strong > Current password </ strong ></ td >
< td >< input type = " password " size = " 40 " name = " cur_pass " id = " cur_pass " value = " " /></ td >
</ tr >
< tr >
< td class = " label " >< strong > New password </ strong ></ td >
2012-09-20 08:00:49 +00:00
< td >< input type = " password " size = " 40 " name = " new_pass_1 " id = " new_pass_1 " value = " " maxlength = " 40 " /> < strong id = " pass_strength " ></ strong ></ td >
2011-03-28 14:21:28 +00:00
</ tr >
< tr >
< td class = " label " >< strong > Re - type new password </ strong ></ td >
2012-09-20 08:00:49 +00:00
< td >< input type = " password " size = " 40 " name = " new_pass_2 " id = " new_pass_2 " value = " " maxlength = " 40 " /> < strong id = " pass_match " ></ strong ></ td >
2011-03-28 14:21:28 +00:00
</ tr >
< tr >
< td colspan = " 2 " class = " right " >
2013-06-23 08:00:54 +00:00
< input type = " submit " value = " Save profile " />
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
</ table >
</ form >
</ div >
2012-10-11 08:00:15 +00:00
< ? View :: show_footer (); ?>