Empty commit

This commit is contained in:
Git 2013-03-09 08:00:18 +00:00
parent 3c9d06c18a
commit b222680ef1
23 changed files with 126 additions and 163 deletions

View File

@ -540,7 +540,7 @@ public function parse_toc ($Min = 3)
*
* @param int $ItemLevel Current item level
* @param int $Level Current list level
* @param str $List reference to an xHTML string
* @param str $List reference to an XHTML string
* @param int $i Iterator digit
* @param int $Offset If the list doesn't start at level 1
*/
@ -581,7 +581,7 @@ private function to_html ($Array) {
$Str.='<span style="text-decoration: underline;">'.$this->to_html($Block['Val']).'</span>';
break;
case 'i':
$Str.='<em>'.$this->to_html($Block['Val'])."</em>";
$Str.='<span style="font-style: italic;">'.$this->to_html($Block['Val'])."</span>";
break;
case 's':
$Str.='<span style="text-decoration: line-through;">'.$this->to_html($Block['Val']).'</span>';
@ -623,7 +623,7 @@ private function to_html ($Array) {
$Str.='<a href="wiki.php?action=article&amp;name='.urlencode($Block['Val']).'">'.$Block['Val'].'</a>';
break;
case 'tex':
$Str.='<img style="vertical-align: middle" src="'.STATIC_SERVER.'blank.gif" onload="if (this.src.substr(this.src.length-9,this.src.length) == \'blank.gif\') { this.src = \'http://chart.apis.google.com/chart?cht=tx&amp;chf=bg,s,FFFFFF00&amp;chl='.urlencode(mb_convert_encoding($Block['Val'],"UTF-8","HTML-ENTITIES")).'&amp;chco=\' + hexify(getComputedStyle(this.parentNode,null).color); }" alt="TeX" />';
$Str.='<img style="vertical-align: middle" src="'.STATIC_SERVER.'blank.gif" onload="if (this.src.substr(this.src.length-9,this.src.length) == \'blank.gif\') { this.src = \'http://chart.apis.google.com/chart?cht=tx&amp;chf=bg,s,FFFFFF00&amp;chl='.urlencode(mb_convert_encoding($Block['Val'],"UTF-8","HTML-ENTITIES")).'&amp;chco=\' + hexify(getComputedStyle(this.parentNode,null).color); }" alt="'.$Block['Val'].'" />';
break;
case 'plain':
$Str.=$Block['Val'];

View File

@ -542,7 +542,7 @@ function to_html($Array) {
$Str.='[img]'.$Block['Val'].'[/img]';
} else {
if(check_perms('site_proxy_images')) {
$Str.='<img style="max-width: 500px;" onclick="lightbox.init(this,500);" alt="'.$Block['Val'].'" src="https://'.SITE_URL.'/image.php?i='.urlencode($Block['Val']).'" />';
$Str.='<img style="max-width: 500px;" onclick="lightbox.init(this,500);" alt="'.$Block['Val'].'" src="http'.($SSL?'s':'').'://'.SITE_URL.'/image.php?i='.urlencode($Block['Val']).'" />';
} else {
$Str.='<img style="max-width: 500px;" onclick="lightbox.init(this,500);" alt="'.$Block['Val'].'" src="'.$Block['Val'].'" />';
}

View File

@ -503,7 +503,7 @@ function to_html($Array) {
$Str.='[img]'.$Block['Val'].'[/img]';
} else {
if(check_perms('site_proxy_images')) {
$Str.='<img style="max-width: 500px;" onclick="lightbox.init(this,500);" alt="'.$Block['Val'].'" src="http://'.SITE_URL.'/image.php?i='.urlencode($Block['Val']).'" />';
$Str.='<img style="max-width: 500px;" onclick="lightbox.init(this,500);" alt="'.$Block['Val'].'" src="http'.($SSL?'s':'').'://'.SITE_URL.'/image.php?i='.urlencode($Block['Val']).'" />';
} else {
$Str.='<img style="max-width: 500px;" onclick="lightbox.init(this,500);" alt="'.$Block['Val'].'" src="'.$Block['Val'].'" />';
}

View File

@ -117,6 +117,9 @@
case 'Requests':
$FileName = 'class_requests';
break;
case 'Rippy':
$FileName = 'rippy.class';
break;
case 'SphinxQL':
case 'SphinxQL_Query':
case 'SphinxQL_Result':

View File

@ -1,6 +1,4 @@
<?
define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php');
$HTTPS = ($_SERVER['SERVER_PORT'] == 443) ? 'ssl_' : '';
?>
@ -87,7 +85,7 @@
?>
</head>
<body id="<?=$Document == 'collages' ? 'collage' : $Document?>" <?= ((!$Mobile && $LoggedUser['Rippy'] == 'On') ? 'onload="say()"' : '') ?>>
<body id="<?=$Document == 'collages' ? 'collage' : $Document?>" <?= ((!$Mobile && Rippy::is_enabled()) ? 'onload="say()"' : '') ?>>
<div id="wrapper">
<h1 class="hidden"><?=SITE_NAME?></h1>
@ -411,44 +409,8 @@
<?
}
//Done handling alertbars
if(!$Mobile && $LoggedUser['Rippy'] != 'Off') {
switch($LoggedUser['Rippy']) {
case 'PM' :
$Says = $Cache->get_value('rippy_message_'.$LoggedUser['ID']);
if($Says === false) {
$Says = $Cache->get_value('global_rippy_message');
}
$Show = ($Says !== false);
$Cache->delete_value('rippy_message_'.$LoggedUser['ID']);
break;
case 'On' :
$Show = true;
$Says = '';
break;
/* Uncomment to always show globals
case 'Off' :
$Says = $Cache->get_value('global_rippy_message');
$Show = ($Says !== false);
break;
*/
}
if($Show) {
?>
<div id="rippywrap" class="rippywrap">
<div id="bubble" style="display: <?=($Says ? 'block' : 'none')?>">
<span class="rbt"></span>
<span id="rippy-says" class="rbm"><?=$Says?></span>
<span class="rbb"></span>
</div>
<div class="rippy" onclick="rippyclick();"></div>
</div>
<?
}
}
?>
<div id="searchbars">
<ul>

View File

@ -28,7 +28,7 @@
<a href="#">&uarr;</a>&nbsp;<strong>Upcoming concerts</strong>
<a href="#" class="brackets" onclick="$('#concertsbody').toggle(); return false;">Toggle</a>
</div>
<div id="concertsbody" <?=$Hidden ? "class='hidden'" : ""?>>
<div id="concertsbody"<?=$Hidden ? ' class="hidden"' : ''?>>
<?=$Concerts?>
</div>
</div>

View File

@ -85,7 +85,7 @@
<strong>OR</strong><br />
<label for="newartistid">Artist name:</label>&nbsp;<input type="text" id="newartistname" name="newartistname" size="40" value="" />
<br /><br />
<input type="submit" value="Change ArtistID" />
<input type="submit" value="Change artist ID" />
</div>
</div>
</form>
@ -100,10 +100,10 @@
while(list($AliasID, $AliasName, $User, $Redirect) = $DB->next_record(MYSQLI_NUM, true)) {
if($AliasName == $Name) { $DefaultRedirectID = $AliasID; }
?>
<li><?=$AliasID?>. <?=$AliasName?>
<? if($User) { ?> <a href="user.php?id=<?=$User?>" class="brackets">User</a> <?}
if($Redirect) { ?> (writes redirect to <?=$Redirect?>)<? } ?>
<a href="artist.php?action=delete_alias&amp;aliasid=<?=$AliasID?>&amp;auth=<?=$LoggedUser['AuthKey']?>" class="brackets">X</a>
<li><span title="Alias ID"><?=$AliasID?></span>. <span title="Alias name"><?=$AliasName?></span>
<? if($User) { ?> <a href="user.php?id=<?=$User?>" title="Alias creator" class="brackets">User</a> <?}
if($Redirect) { ?> (writes redirect to <span title="Target alias ID"><?=$Redirect?></span>)<? } ?>
<a href="artist.php?action=delete_alias&amp;aliasid=<?=$AliasID?>&amp;auth=<?=$LoggedUser['AuthKey']?>" title="Delete this alias" class="brackets">X</a>
</li>
<? }
?>

View File

@ -49,8 +49,8 @@
<li>Click on the headings to organize columns automatically.</li>
<li>Sort multiple columns simultaneously by holding down the shift key and clicking other column headers.</li>
<li>Click and drag any row to change its order.</li>
<li>Press <em>Save All Changes</em> when you are finished sorting.</li>
<li>Press <em>Edit</em> or <em>Remove</em> to simply modify one entry.</li>
<li>Press "Save All Changes" when you are finished sorting.</li>
<li>Press "Edit" or "Remove" to simply modify one entry.</li>
</ul>
<noscript><ul><li><strong class="important_text">Note: Enable JavaScript!</strong></li></ul></noscript>
</td>
@ -97,27 +97,27 @@
$AltCSS = $Number % 2 === 0 ? 'rowa' : 'rowb';
?>
<tr class="drag <?=$AltCSS?>" id="li_<?=$GroupID?>">
<form class="manage_form" name="collage" action="collages.php" method="post">
<td>
<input class="sort_numbers" type="text" name="sort" value="<?=$Sort?>" id="sort_<?=$GroupID?>" size="4" />
</td>
<td><?=$Number?></td>
<td><?=trim($CatNum) ?: '&nbsp;'?></td>
<td><?=trim($GroupYear) ?: '&nbsp;'?></td>
<td><?=trim($DisplayName) ?: '&nbsp;'?></td>
<td><?=trim($TorrentLink)?></td>
<td class="nobr"><?=Users::format_username($UserID, $Username, false, false, false)?></td>
<td class="nobr">
<input type="hidden" name="action" value="manage_handle" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" />
<input type="hidden" name="groupid" value="<?=$GroupID?>" />
<input type="submit" name="submit" value="Edit" />
<input type="submit" name="submit" value="Remove" />
</td>
</form>
</tr>
<tr class="drag <?=$AltCSS?>" id="li_<?=$GroupID?>">
<form class="manage_form" name="collage" action="collages.php" method="post">
<td>
<input class="sort_numbers" type="text" name="sort" value="<?=$Sort?>" id="sort_<?=$GroupID?>" size="4" />
</td>
<td><?=$Number?></td>
<td><?=trim($CatNum) ?: '&nbsp;'?></td>
<td><?=trim($GroupYear) ?: '&nbsp;'?></td>
<td><?=trim($DisplayName) ?: '&nbsp;'?></td>
<td><?=trim($TorrentLink)?></td>
<td class="nobr"><?=Users::format_username($UserID, $Username, false, false, false)?></td>
<td class="nobr">
<input type="hidden" name="action" value="manage_handle" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" />
<input type="hidden" name="groupid" value="<?=$GroupID?>" />
<input type="submit" name="submit" value="Edit" />
<input type="submit" name="submit" value="Remove" />
</td>
</form>
</tr>
<? } ?>
</tbody>
</table>

View File

@ -10,10 +10,18 @@
?>
<div class="box">
<div class="head colhead_dark"><strong>Featured Album</strong></div>
<div class="center pad"><?=Artists::display_artists($Artists, true, true)?><a href="torrents.php?id=<?=$FeaturedAlbum['GroupID']?>"><?=$FeaturedAlbum['Name']?></a></div>
<div class="center"><a href="torrents.php?id=<?=$FeaturedAlbum['GroupID']?>" title="<?=Artists::display_artists($Artists, false, false)?> - <?=$FeaturedAlbum['Name']?>"><img src="<?=ImageTools::thumbnail($FeaturedAlbum['WikiImage'])?>" alt="<?=Artists::display_artists($Artists, false, false)?> - <?=$FeaturedAlbum['Name']?>" width="100%" /></a></div>
<div class="center pad"><a href="forums.php?action=viewthread&amp;threadid=<?=$FeaturedAlbum['ThreadID']?>"><em>Read the interview with the artist, discuss here</em></a></div>
<div class="center pad">
<?=Artists::display_artists($Artists, true, true)?><a href="torrents.php?id=<?=$FeaturedAlbum['GroupID']?>"><?=$FeaturedAlbum['Name']?></a>
</div>
<div class="center">
<a href="torrents.php?id=<?=$FeaturedAlbum['GroupID']?>" title="<?=Artists::display_artists($Artists, false, false)?> - <?=$FeaturedAlbum['Name']?>">
<img src="<?=ImageTools::thumbnail($FeaturedAlbum['WikiImage'])?>" alt="<?=Artists::display_artists($Artists, false, false)?> - <?=$FeaturedAlbum['Name']?>" width="100%" />
</a>
</div>
<div class="center pad">
<a href="forums.php?action=viewthread&amp;threadid=<?=$FeaturedAlbum['ThreadID']?>"><em>Read the interview with the artist, discuss here</em></a>
</div>
</div>
<?
}
?>
?>

View File

@ -123,7 +123,7 @@
<div class="head colhead_dark"><strong>Stats</strong></div>
<ul class="stats nobullet">
<? if (USER_LIMIT>0) { ?>
<li>Maximum Users: <?=number_format(USER_LIMIT) ?></li>
<li>Maximum users: <?=number_format(USER_LIMIT) ?></li>
<?
}
@ -135,7 +135,7 @@
}
$UserCount = (int)$UserCount;
?>
<li>Enabled Users: <?=number_format($UserCount)?> <a href="stats.php?action=users" class="brackets">Details</a></li>
<li>Enabled users: <?=number_format($UserCount)?> <a href="stats.php?action=users" class="brackets">Details</a></li>
<?
if (($UserStats = $Cache->get_value('stats_users')) === false) {
@ -236,7 +236,7 @@
<li>Peers: <?=$PeerCount?></li>
<li>Seeders: <?=$SeederCount?></li>
<li>Leechers: <?=$LeecherCount?></li>
<li>Seeder/Leecher Ratio: <?=$Ratio?></li>
<li>Seeder/Leecher ratio: <?=$Ratio?></li>
</ul>
</div>
<?

View File

@ -55,8 +55,8 @@
r.Reason,
r.Status,
r.ClaimerID,
r.Notes,
r.ResolverID
r.Notes,
r.ResolverID
FROM reports AS r
JOIN users_main AS um ON r.UserID=um.ID
WHERE " . $Where . "
@ -231,22 +231,22 @@
<? if ($Status != "Resolved") { ?>
<tr>
<td class="center" colspan="2">
<form id="report_form_<?=$ReportID?>">
<form id="report_form_<?=$ReportID?>" action="">
<input type="hidden" name="reportid" value="<?=$ReportID?>" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="submit" onclick="return resolve(<?=$ReportID?>, <?=($ClaimerID == $LoggedUser['ID'] || !$ClaimerID) ? "true" : "false"?>)" name="submit" value="Resolve" />
</form>
</td>
</tr>
<? } else {
$ResolverInfo = Users::user_info($ResolverID);
?>
<tr>
<td colspan="2">
Resolved By <a href="users.php?id=<?=$ResolverID?>"><?=$ResolverInfo['Username']?></a>
</td>
</tr>
<? } ?>
<? } else {
$ResolverInfo = Users::user_info($ResolverID);
?>
<tr>
<td colspan="2">
Resolved by <a href="users.php?id=<?=$ResolverID?>"><?=$ResolverInfo['Username']?></a>
</td>
</tr>
<? } ?>
</table>
</div>
<br />

View File

@ -432,7 +432,7 @@
<td colspan="4" style="text-align: center;">
<input type="button" value="Invalidate report" onclick="Dismiss(<?=$ReportID?>);" />
<input type="button" value="Resolve report manually" onclick="ManualResolve(<?=$ReportID?>);" />
| <input type="button" value="Give back" onclick="GiveBack(<?=$ReportID?>);" />
| <input type="button" value="Unclaim" onclick="GiveBack(<?=$ReportID?>);" />
| <input id="grab<?=$ReportID?>" type="button" value="Claim" onclick="Grab(<?=$ReportID?>);" />
| Multi-resolve <input type="checkbox" name="multi" id="multi<?=$ReportID?>" checked="checked" />
| <input type="button" value="Submit" onclick="TakeResolve(<?=$ReportID?>);" />

View File

@ -9,29 +9,17 @@
}
View::show_header('Reports V2!', 'reportsv2');
?>
<script type="text/javascript">//<![CDATA[
function Taste(torrent_id, report_id, taste) {
ajax.get('reportsv2.php?action=ajax_taste&torrent_id='+torrent_id+'&report_id='+report_id+'&taste='+taste, function(data) {
if (data == '1') {
$('#taste' + torrent_id).raw().innerHTML = '[Omnomnom]';
Grab(report_id);
} else {
alert(data);
}
});
}
//]]></script>
?>
<div class="header">
<h2>New reports, auto assigned!</h2>
<? include('header.php'); ?>
</div>
<div class="buttonbox thin center">
<input type="button" onclick="AddMore();" value="Add More" /><input type="text" name="repop_amount" id="repop_amount" size="2" value="10" />
<input type="button" onclick="AddMore();" value="Add more" /> <input type="text" name="repop_amount" id="repop_amount" size="2" value="10" />
| <span title="Changes whether to automatically replace resolved ones with new ones"><input type="checkbox" checked="checked" id="dynamic" /> <label for="dynamic">Dynamic</label></span>
| <span title="Resolves *all* checked reports with their respective resolutions"><input type="button" onclick="MultiResolve();" value="Multi-Resolve" /></span>
| <span title="Un-In Progress all the reports currently displayed"><input type="button" onclick="GiveBack();" value="Give back all" /></span>
| <span title="Resolves *all* checked reports with their respective resolutions"><input type="button" onclick="MultiResolve();" value="Multi-resolve" /></span>
| <span title="Unclaim all of the reports currently displayed"><input type="button" onclick="GiveBack();" value="Unclaim all" /></span>
</div>
<br />
<div id="all_reports" style="width: 80%; margin-left: auto; margin-right: auto">

View File

@ -198,7 +198,7 @@
<span title="Resolves *all* checked reports with their respective resolutions"><input type="button" onclick="MultiResolve();" value="Multi-resolve" /></span>
<span title="Assigns all of the reports on the page to you!"><input type="button" onclick="Grab();" value="Claim all" /></span>
<? } ?>
<? if($View == "staff" && $LoggedUser['ID'] == $ID) { ?>| <span title="Un-'in progress' all the reports currently displayed"><input type="button" onclick="GiveBack();" value="Give back all" /></span><? } ?>
<? if($View == "staff" && $LoggedUser['ID'] == $ID) { ?>| <span title="Unclaim all of the reports currently displayed"><input type="button" onclick="GiveBack();" value="Unclaim all" /></span><? } ?>
</div>
<br />
<div class="linkbox">
@ -592,7 +592,7 @@
<input type="button" value="Invalidate report" onclick="Dismiss(<?=$ReportID?>);" />
<input type="button" value="Resolve report manually" onclick="ManualResolve(<?=$ReportID?>);" />
<? if($Status == "InProgress" && $LoggedUser['ID'] == $ResolverID) { ?>
| <input type="button" value="Give back" onclick="GiveBack(<?=$ReportID?>);" />
| <input type="button" value="Unclaim" onclick="GiveBack(<?=$ReportID?>);" />
<? } else { ?>
| <input id="grab<?=$ReportID?>" type="button" value="Claim" onclick="Grab(<?=$ReportID?>);" />
<? } ?>

View File

@ -125,7 +125,7 @@
?>
<div style="text-align: right;" class="linkbox">
<a href="top10.php?<?=$FreeleechToggleQuery?>" class="brackets"><?=ucfirst($FreeleechToggleName)?> Freeleech in Top 10</a>
<a href="top10.php?<?=$FreeleechToggleQuery?>" class="brackets"><?=ucfirst($FreeleechToggleName)?> freeleech in Top 10</a>
</div>
<?

View File

@ -125,13 +125,13 @@ function generate_user_table($Caption, $Tag, $Details, $Limit) {
<tr class="colhead">
<td class="center">Rank</td>
<td>User</td>
<td style='text-align:right'>Uploaded</td>
<td style='text-align:right'>UL speed</td>
<td style='text-align:right'>Downloaded</td>
<td style='text-align:right'>DL speed</td>
<td style='text-align:right'>Uploads</td>
<td style='text-align:right'>Ratio</td>
<td style='text-align:right'>Joined</td>
<td style="text-align: right;">Uploaded</td>
<td style="text-align: right;">UL speed</td>
<td style="text-align: right;">Downloaded</td>
<td style="text-align: right;">DL speed</td>
<td style="text-align: right;">Uploads</td>
<td style="text-align: right;">Ratio</td>
<td style="text-align: right;">Joined</td>
</tr>
<?
// in the unlikely event that query finds 0 rows...
@ -153,13 +153,13 @@ function generate_user_table($Caption, $Tag, $Details, $Limit) {
<tr class="row<?=$Highlight?>">
<td class="center"><?=$Rank?></td>
<td><?=Users::format_username($Detail['ID'], false, false, false)?></td>
<td style="text-align:right"><?=Format::get_size($Detail['Uploaded'])?></td>
<td style="text-align:right"><?=Format::get_size($Detail['UpSpeed'])?>/s</td>
<td style="text-align:right"><?=Format::get_size($Detail['Downloaded'])?></td>
<td style="text-align:right"><?=Format::get_size($Detail['DownSpeed'])?>/s</td>
<td style="text-align:right"><?=number_format($Detail['NumUploads'])?></td>
<td style="text-align:right"><?=Format::get_ratio_html($Detail['Uploaded'], $Detail['Downloaded'])?></td>
<td style="text-align:right"><?=time_diff($Detail['JoinDate'])?></td>
<td style="text-align: right;"><?=Format::get_size($Detail['Uploaded'])?></td>
<td style="text-align: right;" title="Upload speed is reported in base 2 in bytes per second, not bits per second."><?=Format::get_size($Detail['UpSpeed'])?>/s</td>
<td style="text-align: right;"><?=Format::get_size($Detail['Downloaded'])?></td>
<td style="text-align: right;" title="Download speed is reported in base 2 in bytes per second, not bits per second."><?=Format::get_size($Detail['DownSpeed'])?>/s</td>
<td style="text-align: right;"><?=number_format($Detail['NumUploads'])?></td>
<td style="text-align: right;"><?=Format::get_ratio_html($Detail['Uploaded'], $Detail['Downloaded'])?></td>
<td style="text-align: right;"><?=time_diff($Detail['JoinDate'])?></td>
</tr>
<?
}

View File

@ -364,7 +364,7 @@ function compare($X, $Y){
<input type="submit" value="+" />
</form>
<br /><br />
<strong><a href="rules.php?p=tag">Tagging rules</a></strong>
<strong><a href="rules.php?p=tag" class="brackets">View tagging rules</a></strong>
</div>
</div>
<?
@ -698,7 +698,7 @@ function filelist($Str) {
?>
<table class="collage_table" id="collages">
<tr class="colhead">
<td width="85%"><a href="#">&uarr;</a>&nbsp;This album is in <?=count($Collages)?> collage<?=((count($Collages)>1)?'s':'')?><?=$SeeAll?></td>
<td width="85%"><a href="#">&uarr;</a>&nbsp;This album is in <?=number_format(count($Collages))?> collage<?=((count($Collages)>1) ? 's' : '')?><?=$SeeAll?></td>
<td># torrents</td>
</tr>
<? foreach ($Indices as $i) {
@ -707,7 +707,7 @@ function filelist($Str) {
?>
<tr>
<td><a href="collages.php?id=<?=$CollageID?>"><?=$CollageName?></a></td>
<td><?=$CollageTorrents?></td>
<td><?=number_format($CollageTorrents)?></td>
</tr>
<? }
foreach ($Collages as $Collage) {
@ -715,7 +715,7 @@ function filelist($Str) {
?>
<tr class="collage_rows hidden">
<td><a href="collages.php?id=<?=$CollageID?>"><?=$CollageName?></a></td>
<td><?=$CollageTorrents?></td>
<td><?=number_format($CollageTorrents)?></td>
</tr>
<? } ?>
</table>
@ -743,7 +743,7 @@ function filelist($Str) {
?>
<table class="collage_table" id="personal_collages">
<tr class="colhead">
<td width="85%"><a href="#">&uarr;</a>&nbsp;This album is in <?=count($PersonalCollages)?> personal collage<?=((count($PersonalCollages)>1)?'s':'')?><?=$SeeAll?></td>
<td width="85%"><a href="#">&uarr;</a>&nbsp;This album is in <?=number_format(count($PersonalCollages))?> personal collage<?=((count($PersonalCollages)>1) ? 's' : '')?><?=$SeeAll?></td>
<td># torrents</td>
</tr>
<? foreach ($Indices as $i) {
@ -752,7 +752,7 @@ function filelist($Str) {
?>
<tr>
<td><a href="collages.php?id=<?=$CollageID?>"><?=$CollageName?></a></td>
<td><?=$CollageTorrents?></td>
<td><?=number_format($CollageTorrents)?></td>
</tr>
<? }
foreach ($PersonalCollages as $Collage) {
@ -760,7 +760,7 @@ function filelist($Str) {
?>
<tr class="personal_rows hidden">
<td><a href="collages.php?id=<?=$CollageID?>"><?=$CollageName?></a></td>
<td><?=$CollageTorrents?></td>
<td><?=number_format($CollageTorrents)?></td>
</tr>
<? } ?>
</table>

View File

@ -130,7 +130,7 @@
? '<span'.($Override===2 ? ' class="paranoia_override"' : '').'>(' . 100*min(1,round($Seeding/$UniqueSnatched,2)).'%)</span>' : ''); ?>
<a href="torrents.php?type=seeding&amp;userid=<?=$UserID?>" class="brackets<?= $AOverride===2 ? ' paranoia_override' :'' ?>" title="View">View</a>
<? if (check_perms('zip_downloader')) { ?>
<a href="torrents.php?action=redownload&amp;type=seeding&amp;userid=<?=$UserID?>" onclick="return confirm('If you no longer have the content, your ratio WILL be affected; be sure to check the size of all albums before redownloading.');" class="brackets" title="Download">Download</a>
<a href="torrents.php?action=redownload&amp;type=seeding&amp;userid=<?=$UserID?>" onclick="return confirm('If you no longer have the content, your ratio WILL be affected; be sure to check the size of all torrents before redownloading.');" class="brackets" title="Download">Download</a>
<? } ?>
<? } ?>
</li>
@ -152,7 +152,7 @@
<? if (($Override=check_paranoia_here('snatched'))) { ?>
<a href="torrents.php?type=snatched&amp;userid=<?=$UserID?>" class="brackets<?= $Override===2 ? ' paranoia_override' : '' ?>" title="View">View</a>
<? if(check_perms('zip_downloader')) { ?>
<a href="torrents.php?action=redownload&amp;type=snatches&amp;userid=<?=$UserID?>" onclick="return confirm('If you no longer have the content, your ratio WILL be affected, be sure to check the size of all albums before redownloading.');" class="brackets" title="Download">Download</a>
<a href="torrents.php?action=redownload&amp;type=snatches&amp;userid=<?=$UserID?>" onclick="return confirm('If you no longer have the content, your ratio WILL be affected, be sure to check the size of all torrents before redownloading.');" class="brackets" title="Download">Download</a>
<? } ?>
</li>
<? } ?>

View File

@ -157,8 +157,9 @@ function checked($Checked) {
<?Users::release_order()?>
</ul>
<p><small>Note: Checked items will be hidden.</small></p>
<script type="text/javascript" id="sortable_default">
<script type="text/javascript" id="sortable_default">//<![CDATA[
var sortable_list_default = <?=Users::release_order_default_js()?>;
//]]>
</script>
</div>
<input type="hidden" id="sorthide" name="sorthide" value="" />
@ -174,11 +175,11 @@ function checked($Checked) {
</td>
</tr>-->
<tr>
<td class="label"><strong>Cover Art</strong></td>
<td class="label"><strong>Cover art</strong></td>
<td>
<input type="hidden" name="coverart" value="" />
<input type="checkbox" name="coverart" id="coverart" <?=$SiteOptions['CoverArt']?'checked="checked"':''?> />
<label for="coverart">Show covers next to torrent information</label>
<input type="checkbox" name="coverart" id="coverart"<?=$SiteOptions['CoverArt'] ? ' checked="checked"' : ''?> />
<label for="coverart">Show cover artwork next to torrent information</label>
</td>
</tr>
<tr>
@ -299,18 +300,17 @@ function checked($Checked) {
</td>
</tr>
<tr>
<td class="label"><strong>Email</strong></td>
<td class="label"><strong>Email address</strong></td>
<td><input type="text" size="50" name="email" id="email" value="<?=display_str($Email)?>" />
<p class="min_padding">If changing this field, you must enter your current password in the "Current password" field before saving your changes.</p>
</td>
</tr>
<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)?>" />
<p class="min_padding">Your Last.fm username. Will be used to display Last.fm information on your profile which can be seen by other users.</p>
</td>
</tr>
<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)?>" />
<p class="min_padding">Your Last.fm username. Will be used to display Last.fm information on your profile which can be seen by other users.</p>
</td>
</tr>
<tr>
<td class="label"><strong>Info</strong></td>
<td><?php $textarea = new TEXTAREA_PREVIEW('info', 'info', display_str($Info), 50, 8); ?></td>

View File

@ -121,8 +121,8 @@
){ ?>
<div class="box pad">
<p>Please note that the selling, trading or public giving away of our invitations, or responding to public requests, is strictly forbidden, and may result in you and your entire invite tree being banned. This includes offering to give away our invitations on any forum which is not a class-restricted forum on another private tracker.</p>
<p>Remember that you are responsible for ALL invitees, and your account and/or privileges may be lost due to their actions. You should know the person you're inviting. If you aren't familiar enough with the user to trust them, we suggest not inviting them.</p>
<p><em>Do not send an invite if you haven't read and understood the information above.</em></p>
<p>Remember that you are responsible for ALL invitees, and your account and/or privileges may be disabled due to your invitees' actions. You should know the person you're inviting. If you aren't familiar enough with the user to trust them, we suggest not inviting them.</p>
<p><em>Do not send an invite if you haven't read or don't understood the information above.</em></p>
</div>
<div class="box pad">
<form class="send_form" name="invite" action="user.php" method="post">

View File

@ -168,8 +168,9 @@
<tr class="row<?=$ShowCollapsed?' hidden':''?>">
<? if(empty($HeavyInfo['DisableAvatars'])) { ?>
<td class="avatar" valign="top">
<? if(check_perms('site_proxy_images') && preg_match('/^https?:\/\/(localhost(:[0-9]{2,5})?|[0-9]{1,3}(\.[0-9]{1,3}){3}|([a-zA-Z0-9\-\_]+\.)+([a-zA-Z]{1,5}[^\.]))(:[0-9]{2,5})?(\/[^<>]+)+\.(jpg|jpeg|gif|png|tif|tiff|bmp)$/is',$AuthorAvatar)) { ?>
<img src="<?='http'.($SSL?'s':'').'://'.SITE_URL.'/image.php?c=1&amp;i='.urlencode($AuthorAvatar)?>" width="150" style="max-height:400px;" alt="<?=$AuthorName?>'s avatar" />
<? if(check_perms('site_proxy_images') && preg_match('/^https?:\/\/(localhost(:[0-9]{2,5})?|[0-9]{1,3}(\.[0-9]{1,3}){3}|([a-zA-Z0-9\-\_]+\.)+([a-zA-Z]{1,5}[^\.]))(:[0-9]{2,5})?(\/[^<>]+)+\.(jpg|jpeg|gif|png|tif|tiff|bmp)$/is',$AuthorAvatar)) {
$AuthorAvatar = 'http'.($SSL?'s':'').'://'.SITE_URL.'/image.php?c=1&amp;i='.urlencode($AuthorAvatar); ?>
<img src="<?=$AuthorAvatar?>" width="150" style="max-height:400px;" alt="<?=$AuthorName?>'s avatar" />
<? } elseif(!$AuthorAvatar) { ?>
<img src="<?=STATIC_SERVER.'common/avatars/default.png'?>" width="150" style="max-height:400px;" alt="Default avatar" />
<? } else { ?>

View File

@ -39,7 +39,7 @@ function unClaim(id) {
ajax.get('reports.php?action=unclaim&remove=1&id=' + id, function (response) {
var json = JSON.parse(response);
if (json['status'] == 'success') {
$('#claimed_' + id).raw().innerHTML = '<a href="#" id="claim_' + id + '" onclick="claim(' + id + '); return false;"; return false;">Claim</a>';
$('#claimed_' + id).raw().innerHTML = '<a href="#" id="claim_' + id + '" onclick="claim(' + id + '); return false;" class="brackets">Claim</a>';
}
});
}
@ -48,7 +48,7 @@ function resolve(id, claimer) {
var answer = true;
if (!claimer) {
if ($('#claimed_' + id).raw()) {
var answer = confirm("This is a claimed report, are you sure you want to resolve it?");
var answer = confirm("This is a claimed report. Are you sure you want to resolve it?");
if (answer)
answer = true;
else

View File

@ -1,17 +1,18 @@
function say() {
ajax.get("ajax.php?action=rippy", function (message) {
if(message) {
$('#rippy-says').raw().innerHTML = message;
$('#bubble').raw().style.display = "block";
} else {
$('#bubble').raw().style.display = "none";
}
ajax.get("ajax.php?action=rippy", function(response) {
response = JSON.parse(response);
if (response['Message']) {
var say = response['Message'];
if(response['From']) {
say += "<br/><a href='user.php?action=rippy&amp;to=" + response['From'] + "' class='brackets'>Ripback</a>";
}
);
$('#rippywrap').raw().style.display = "";
$('#rippy-says').raw().innerHTML = say;
$('#bubble').raw().style.display = "block";
}
});
}
function rippyclick() {
$('.rippywrap').remove();
}