Empty commit

This commit is contained in:
Git 2013-01-15 08:00:37 +00:00
parent 77a334e212
commit e89055f09f
31 changed files with 181 additions and 178 deletions

View File

@ -18,10 +18,10 @@ class TEXT {
':frown:' => 'frown.gif', ':frown:' => 'frown.gif',
'<3' => 'heart.gif', '<3' => 'heart.gif',
':unsure:' => 'hmm.gif', ':unsure:' => 'hmm.gif',
//':\\' => 'hmm.gif', //':\\' => 'hmm.gif',
':whatlove:' => 'ilu.gif', ':whatlove:' => 'ilu.gif',
':lol:' => 'laughing.gif', ':lol:' => 'laughing.gif',
':loveflac:' => 'loveflac.gif', ':loveflac:' => 'loveflac.gif',
':flaclove:' => 'loveflac.gif', ':flaclove:' => 'loveflac.gif',
':ninja:' => 'ninja.gif', ':ninja:' => 'ninja.gif',
':no:' => 'no.gif', ':no:' => 'no.gif',
@ -58,7 +58,7 @@ class TEXT {
private $Levels = 0; private $Levels = 0;
/** /**
* Used to detect and disable parsing (eg TOC) within quotes * Used to detect and disable parsing (e.g. TOC) within quotes
* @var int $InQuotes * @var int $InQuotes
*/ */
private $InQuotes = 0; private $InQuotes = 0;
@ -99,7 +99,7 @@ public function __construct ($TOC = false) {
} }
/** /**
* Output BB Code as xHTML * Output BBCode as XHTML
* @param string $Str BBCode text * @param string $Str BBCode text
* @param bool $OutputTOC Ouput TOC near (above) text * @param bool $OutputTOC Ouput TOC near (above) text
* @param int $Min See {@link parse_toc} * @param int $Min See {@link parse_toc}
@ -225,7 +225,7 @@ public function local_url ($Str) {
4) Move the pointer past the end of the tag 4) Move the pointer past the end of the tag
5) Find out where the tag closes (beginning of [/tag]) 5) Find out where the tag closes (beginning of [/tag])
5a) Different for different types of tag. Some tags don't close, others are weird like [*] 5a) Different for different types of tag. Some tags don't close, others are weird like [*]
5b) If it's a normal tag, it may have versions of itself nested inside - eg: 5b) If it's a normal tag, it may have versions of itself nested inside - e.g.:
[quote=bob]* [quote=bob]*
[quote=joe]I am a redneck!**[/quote] [quote=joe]I am a redneck!**[/quote]
Me too! Me too!
@ -303,7 +303,7 @@ private function parse ($Str) {
// 5) Find out where the tag closes (beginning of [/tag]) // 5) Find out where the tag closes (beginning of [/tag])
// Unfortunately, BBCode doesn't have nice standards like xhtml // Unfortunately, BBCode doesn't have nice standards like XHTML
// [*], [img=...], and http:// follow different formats // [*], [img=...], and http:// follow different formats
// Thus, we have to handle these before we handle the majority of tags // Thus, we have to handle these before we handle the majority of tags

View File

@ -11,13 +11,13 @@ class TEXT_2 {
':-|' => 'blank.gif', ':-|' => 'blank.gif',
':blush:' => 'blush.gif', ':blush:' => 'blush.gif',
':cool:' => 'cool.gif', ':cool:' => 'cool.gif',
':'(' => 'crying.gif', ':'(' => 'crying.gif',
':crying:' => 'crying.gif', ':crying:' => 'crying.gif',
'>.>' => 'eyesright.gif', '>.>' => 'eyesright.gif',
':frown:' => 'frown.gif', ':frown:' => 'frown.gif',
'<3' => 'heart.gif', '<3' => 'heart.gif',
':unsure:' => 'hmm.gif', ':unsure:' => 'hmm.gif',
':\\' => 'hmm.gif', ':\\' => 'hmm.gif',
':whatlove:' => 'ilu.gif', ':whatlove:' => 'ilu.gif',
':lol:' => 'laughing.gif', ':lol:' => 'laughing.gif',
':loveflac:' => 'loveflac.gif', ':loveflac:' => 'loveflac.gif',
@ -168,7 +168,7 @@ function local_url($Str) {
4) Move the pointer past the end of the tag 4) Move the pointer past the end of the tag
5) Find out where the tag closes (beginning of [/tag]) 5) Find out where the tag closes (beginning of [/tag])
5a) Different for different types of tag. Some tags don't close, others are weird like [*] 5a) Different for different types of tag. Some tags don't close, others are weird like [*]
5b) If it's a normal tag, it may have versions of itself nested inside - eg: 5b) If it's a normal tag, it may have versions of itself nested inside - e.g.:
[quote=bob]* [quote=bob]*
[quote=joe]I am a redneck!**[/quote] [quote=joe]I am a redneck!**[/quote]
Me too! Me too!

View File

@ -62,7 +62,7 @@ function full_format($Str) {
//Inline links //Inline links
$Str = preg_replace('/(?<!(\[url\]|\[url\=|\[img\=|\[img\]))http(s)?:\/\//i', '$1[inlineurl]http$2://', $Str); $Str = preg_replace('/(?<!(\[url\]|\[url\=|\[img\=|\[img\]))http(s)?:\/\//i', '$1[inlineurl]http$2://', $Str);
// For anonym.to links. We can't have this in the regex because php freaks out at the ?, even if it's escaped // For anonym.to links. We can't have this in the regex because PHP freaks out at the ?, even if it's escaped
$Str = strtr($Str, array('?[inlineurl]http'=>'?http', '=[inlineurl]http'=>'=http')); $Str = strtr($Str, array('?[inlineurl]http'=>'?http', '=[inlineurl]http'=>'=http'));
$Str = preg_replace('/\=\=\=\=([^=].*)\=\=\=\=/i', '[inlinesize=3]$1[/inlinesize]', $Str); $Str = preg_replace('/\=\=\=\=([^=].*)\=\=\=\=/i', '[inlinesize=3]$1[/inlinesize]', $Str);
$Str = preg_replace('/\=\=\=([^=].*)\=\=\=/i', '[inlinesize=5]$1[/inlinesize]', $Str); $Str = preg_replace('/\=\=\=([^=].*)\=\=\=/i', '[inlinesize=5]$1[/inlinesize]', $Str);
@ -160,7 +160,7 @@ function local_url($Str) {
4) Move the pointer past the end of the tag 4) Move the pointer past the end of the tag
5) Find out where the tag closes (beginning of [/tag]) 5) Find out where the tag closes (beginning of [/tag])
5a) Different for different types of tag. Some tags don't close, others are weird like [*] 5a) Different for different types of tag. Some tags don't close, others are weird like [*]
5b) If it's a normal tag, it may have versions of itself nested inside - eg: 5b) If it's a normal tag, it may have versions of itself nested inside - e.g.:
[quote=bob]* [quote=bob]*
[quote=joe]I am a redneck!**[/quote] [quote=joe]I am a redneck!**[/quote]
Me too! Me too!

View File

@ -190,7 +190,7 @@ function music_form($GenreTags) {
<table cellpadding="3" cellspacing="1" border="0" class="layout border<? if($this->NewTorrent) { echo ' slice'; }?>" width="100%"> <table cellpadding="3" cellspacing="1" border="0" class="layout border<? if($this->NewTorrent) { echo ' slice'; }?>" width="100%">
<? if($this->NewTorrent) { ?> <? if($this->NewTorrent) { ?>
<tr id="artist_tr"> <tr id="artist_tr">
<td class="label">Artist(s)</td> <td class="label">Artist(s):</td>
<td id="artistfields"> <td id="artistfields">
<p id="vawarning" class="hidden">Please use the multiple artists feature rather than adding 'Various Artists' as an artist, read <a href='wiki.php?action=article&amp;id=369' target='_blank'>this</a> for more information on why.</p> <p id="vawarning" class="hidden">Please use the multiple artists feature rather than adding 'Various Artists' as an artist, read <a href='wiki.php?action=article&amp;id=369' target='_blank'>this</a> for more information on why.</p>
<? if(!empty($Torrent['Artists'])) { <? if(!empty($Torrent['Artists'])) {
@ -288,7 +288,7 @@ function show() {
<tr id="year_tr"> <tr id="year_tr">
<td class="label"> <td class="label">
<span id="year_label_not_remaster"<? if($IsRemaster) { echo ' class="hidden"';}?>>Year</span> <span id="year_label_not_remaster"<? if($IsRemaster) { echo ' class="hidden"';}?>>Year:</span>
<span id="year_label_remaster"<? if(!$IsRemaster) { echo ' class="hidden"';}?>>Year of original release</span> <span id="year_label_remaster"<? if(!$IsRemaster) { echo ' class="hidden"';}?>>Year of original release</span>
</td> </td>
<td> <td>
@ -297,11 +297,11 @@ function show() {
</td> </td>
</tr> </tr>
<tr id="label_tr"> <tr id="label_tr">
<td class="label">Record Label (Optional):</td> <td class="label">Record label (optional):</td>
<td><input type="text" id="record_label" name="record_label" size="40" value="<?=display_str($Torrent['RecordLabel']) ?>"<?=$this->Disabled?> /></td> <td><input type="text" id="record_label" name="record_label" size="40" value="<?=display_str($Torrent['RecordLabel']) ?>"<?=$this->Disabled?> /></td>
</tr> </tr>
<tr id="catalogue_tr"> <tr id="catalogue_tr">
<td class="label">Catalogue Number (Optional):</td> <td class="label">Catalogue number (optional):</td>
<td> <td>
<input type="text" id="catalogue_number" name="catalogue_number" size="40" value="<?=display_str($Torrent['CatalogueNumber']) ?>"<?=$this->Disabled?> /> <input type="text" id="catalogue_number" name="catalogue_number" size="40" value="<?=display_str($Torrent['CatalogueNumber']) ?>"<?=$this->Disabled?> />
Please double check the record label and catalogue number when using MusicBrainz. See <a href="wiki.php?action=article&amp;id=688" target="_blank">this guide</a> for more details. Please double check the record label and catalogue number when using MusicBrainz. See <a href="wiki.php?action=article&amp;id=688" target="_blank">this guide</a> for more details.
@ -309,7 +309,7 @@ function show() {
</tr> </tr>
<tr id="releasetype_tr"> <tr id="releasetype_tr">
<td class="label"> <td class="label">
<span id="releasetype_label">Release Type:</span> <span id="releasetype_label">Release type:</span>
</td> </td>
<td> <td>
<select id="releasetype" name="releasetype"<?=$this->Disabled?>> <select id="releasetype" name="releasetype"<?=$this->Disabled?>>
@ -330,7 +330,7 @@ function show() {
</tr> </tr>
<? } ?> <? } ?>
<tr> <tr>
<td class="label">Edition Information:</td> <td class="label">Edition information:</td>
<td> <td>
<input type="checkbox" id="remaster" name="remaster"<? if($IsRemaster) { echo " checked='checked' ";}?> onclick="Remaster();<?if($this->NewTorrent) {?> CheckYear();<? } ?>" /> <input type="checkbox" id="remaster" name="remaster"<? if($IsRemaster) { echo " checked='checked' ";}?> onclick="Remaster();<?if($this->NewTorrent) {?> CheckYear();<? } ?>" />
Check this box if this torrent is a different release to the original, for example a limited or country specific edition or a release that includes additional bonus tracks or is a bonus disc. Check this box if this torrent is a different release to the original, for example a limited or country specific edition or a release that includes additional bonus tracks or is a bonus disc.
@ -364,7 +364,7 @@ function show() {
<table id="edition_information" class="layout border" border="0" width="100%"> <table id="edition_information" class="layout border" border="0" width="100%">
<tbody> <tbody>
<tr id="edition_year"> <tr id="edition_year">
<td class="label">Year (Required):</td> <td class="label">Year (required):</td>
<td> <td>
<input type="text" id="remaster_year" name="remaster_year" size="5" value="<? if($Torrent['RemasterYear']) { echo display_str($Torrent['RemasterYear']);} ?>"<? if($UnknownRelease) { echo " disabled";}?> /> <input type="text" id="remaster_year" name="remaster_year" size="5" value="<? if($Torrent['RemasterYear']) { echo display_str($Torrent['RemasterYear']);} ?>"<? if($UnknownRelease) { echo " disabled";}?> />
</td> </td>
@ -376,14 +376,14 @@ function show() {
<p class="min_padding">Title of the release (e.g. <span style="font-style: italic;">'Deluxe Edition' or 'Remastered'</span>).</p> <p class="min_padding">Title of the release (e.g. <span style="font-style: italic;">'Deluxe Edition' or 'Remastered'</span>).</p>
</td> </td>
<tr id="edition_record_label"> <tr id="edition_record_label">
<td class="label">Record Label:</td> <td class="label">Record label:</td>
<td> <td>
<input type="text" id="remaster_record_label" name="remaster_record_label" size="50" value="<?=display_str($Torrent['RemasterRecordLabel']) ?>"<? if($UnknownRelease) { echo " disabled";}?> /> <input type="text" id="remaster_record_label" name="remaster_record_label" size="50" value="<?=display_str($Torrent['RemasterRecordLabel']) ?>"<? if($UnknownRelease) { echo " disabled";}?> />
<p class="min_padding">This is for the record label of the <strong>release</strong> (It may differ from the original).</p> <p class="min_padding">This is for the record label of the <strong>release</strong> (It may differ from the original).</p>
</td> </td>
</tr> </tr>
<tr id="edition_catalogue_number"> <tr id="edition_catalogue_number">
<td class="label">Catalogue Number:</td> <td class="label">Catalogue number:</td>
<td><input type="text" id="remaster_catalogue_number" name="remaster_catalogue_number" size="50" value="<?=display_str($Torrent['RemasterCatalogueNumber']) ?>"<? if($UnknownRelease) { echo " disabled";}?> /> <td><input type="text" id="remaster_catalogue_number" name="remaster_catalogue_number" size="50" value="<?=display_str($Torrent['RemasterCatalogueNumber']) ?>"<? if($UnknownRelease) { echo " disabled";}?> />
<p class="min_padding">This is for the catalogue number of the <strong>release</strong>.</p> <p class="min_padding">This is for the catalogue number of the <strong>release</strong>.</p>
</td> </td>
@ -419,7 +419,7 @@ function show() {
</td> </td>
</tr> </tr>
<tr id="bitrate_row"> <tr id="bitrate_row">
<td class="label">Bitrate</td> <td class="label">Bitrate:</td>
<td> <td>
<select id="bitrate" name="bitrate" onchange="Bitrate()"> <select id="bitrate" name="bitrate" onchange="Bitrate()">
<option value="">---</option> <option value="">---</option>
@ -459,10 +459,10 @@ function show() {
if($this->NewTorrent) { ?> if($this->NewTorrent) { ?>
<tr id="upload_logs" class="hidden"> <tr id="upload_logs" class="hidden">
<td class="label"> <td class="label">
Log Files Log files:
</td> </td>
<td id="logfields"> <td id="logfields">
Check your log files here before uploading: <a href="logchecker.php" target="_blank">logchecker.php</a><br /> Check your log files before uploading <a href="logchecker.php" target="_blank">here</a>. For multi-disc releases, click the [+] button to add multiple log files.<br />
<input id="file" type="file" multiple="multiple" name="logfiles[]" size="50" /> [<a href="javascript:;" onclick="AddLogField();">+</a>] [<a href="javascript:;" onclick="RemoveLogField();">-</a>] <input id="file" type="file" multiple="multiple" name="logfiles[]" size="50" /> [<a href="javascript:;" onclick="AddLogField();">+</a>] [<a href="javascript:;" onclick="RemoveLogField();">-</a>]
</td> </td>
</tr> </tr>
@ -470,7 +470,7 @@ function show() {
} ?> } ?>
<? if($this->NewTorrent) { ?> <? if($this->NewTorrent) { ?>
<tr> <tr>
<td class="label">Multi Format Uploader</td> <td class="label">Multi-format uploader:</td>
<td><input type="button" value="+" id="add_format" /><input type="button" style="display: none" value="-" id="remove_format" /></td> <td><input type="button" value="+" id="add_format" /><input type="button" style="display: none" value="-" id="remove_format" /></td>
</tr> </tr>
<tr id="placeholder_row_top"></tr> <tr id="placeholder_row_top"></tr>
@ -608,7 +608,7 @@ function show() {
<td><input type="text" id="image" name="image" size="60" value="<?=display_str($Torrent['Image']) ?>" <?=$this->Disabled?>/></td> <td><input type="text" id="image" name="image" size="60" value="<?=display_str($Torrent['Image']) ?>" <?=$this->Disabled?>/></td>
</tr> </tr>
<tr> <tr>
<td class="label">Album Description:</td> <td class="label">Album description:</td>
<td> <td>
<?php new TEXTAREA_PREVIEW('album_desc', 'album_desc', display_str($Torrent['GroupDescription']), 60, 8, true, true, array($this->Disabled)); ?> <?php new TEXTAREA_PREVIEW('album_desc', 'album_desc', display_str($Torrent['GroupDescription']), 60, 8, true, true, array($this->Disabled)); ?>
<p class="min_padding">Contains background information such as album history and maybe a review.</p> <p class="min_padding">Contains background information such as album history and maybe a review.</p>
@ -616,7 +616,7 @@ function show() {
</tr> </tr>
<? } // if new torrent ?> <? } // if new torrent ?>
<tr> <tr>
<td class="label">Release Description (optional):</td> <td class="label">Release description (optional):</td>
<td> <td>
<?php new TEXTAREA_PREVIEW('release_desc', 'release_desc', display_str($Torrent['TorrentDescription']), 60, 8); ?> <?php new TEXTAREA_PREVIEW('release_desc', 'release_desc', display_str($Torrent['TorrentDescription']), 60, 8); ?>
<p class="min_padding">Contains information like encoder settings or details of the ripping process. <strong class="important_text">Do not paste the ripping log here.</strong></p> <p class="min_padding">Contains information like encoder settings or details of the ripping process. <strong class="important_text">Do not paste the ripping log here.</strong></p>
@ -625,7 +625,7 @@ function show() {
</table> </table>
<? <?
// For AJAX requests (ie when changing the type from Music to Applications) // For AJAX requests (e.g. when changing the type from Music to Applications),
// we don't need to include all scripts, but we do need to include the code // we don't need to include all scripts, but we do need to include the code
// that generates previews. It will have to be eval'd after an AJAX request. // that generates previews. It will have to be eval'd after an AJAX request.
if ($_SERVER['SCRIPT_NAME'] === '/ajax.php') if ($_SERVER['SCRIPT_NAME'] === '/ajax.php')
@ -720,7 +720,7 @@ function audiobook_form() {
</tr> </tr>
<? }?> <? }?>
<tr> <tr>
<td class="label">Release Description (optional):</td> <td class="label">Release description (optional):</td>
<td> <td>
<?php new TEXTAREA_PREVIEW('release_desc', 'release_desc', display_str($Torrent['TorrentDescription']), 60, 8); ?> <?php new TEXTAREA_PREVIEW('release_desc', 'release_desc', display_str($Torrent['TorrentDescription']), 60, 8); ?>
<p class="min_padding">Contains information like encoder settings. For analog rips, this frequently contains lineage information.</p> <p class="min_padding">Contains information like encoder settings. For analog rips, this frequently contains lineage information.</p>

View File

@ -221,7 +221,7 @@
<div class="linkbox"> <div class="linkbox">
<? if (!$BookmarkView) { <? if (!$BookmarkView) {
if (check_perms('site_collages_create')) { ?> if (check_perms('site_collages_create')) { ?>
<a href="collages.php?action=new">[New collage]</a> [<a href="collages.php?action=new">New collage</a>]
<? } <? }
if (check_perms('site_collages_personal')) { if (check_perms('site_collages_personal')) {
@ -231,18 +231,18 @@
if ($CollageCount == 1) { if ($CollageCount == 1) {
list($CollageID) = $DB->next_record(); list($CollageID) = $DB->next_record();
?> ?>
<a href="collages.php?id=<?=$CollageID?>">[Personal collage]</a> [<a href="collages.php?id=<?=$CollageID?>">Personal collage</a>]
<? } elseif ($CollageCount > 1) { ?> <? } elseif ($CollageCount > 1) { ?>
<a href="collages.php?action=mine">[Personal collages]</a> [<a href="collages.php?action=mine">Personal collages</a>]
<? } <? }
} }
if (check_perms('site_collages_subscribe')) { ?> if (check_perms('site_collages_subscribe')) { ?>
<a href="userhistory.php?action=subscribed_collages">[Subscribed collages]</a> [<a href="userhistory.php?action=subscribed_collages">Subscribed collages</a>]
<? } ?> <? } ?>
<a href="bookmarks.php?type=collages">[Bookmarked collages]</a> [<a href="bookmarks.php?type=collages">Bookmarked collages</a>]
<? <?
if (check_perms('site_collages_recover')) { ?> if (check_perms('site_collages_recover')) { ?>
<a href="collages.php?action=recover">[Recover collage]</a> [<a href="collages.php?action=recover">Recover collage</a>]
<? <?
} }
if (check_perms('site_collages_create') || check_perms('site_collages_personal') || check_perms('site_collages_recover')) { if (check_perms('site_collages_create') || check_perms('site_collages_personal') || check_perms('site_collages_recover')) {
@ -251,13 +251,13 @@
<? <?
} }
?> ?>
<a href="collages.php?userid=<?=$LoggedUser['ID']?>">[Collages you started]</a> [<a href="collages.php?userid=<?=$LoggedUser['ID']?>">Collages you started</a>]
<a href="collages.php?userid=<?=$LoggedUser['ID']?>&amp;contrib=1">[Collages you contributed to]</a> [<a href="collages.php?userid=<?=$LoggedUser['ID']?>&amp;contrib=1">Collages you contributed to</a>]
<? } else { ?> <? } else { ?>
<a href="bookmarks.php?type=torrents">[Torrents]</a> [<a href="bookmarks.php?type=torrents">Torrents</a>]
<a href="bookmarks.php?type=artists">[Artists]</a> [<a href="bookmarks.php?type=artists">Artists</a>]
<a href="bookmarks.php?type=collages">[Collages]</a> [<a href="bookmarks.php?type=collages">Collages</a>]
<a href="bookmarks.php?type=requests">[Requests]</a> [<a href="bookmarks.php?type=requests">Requests</a>]
<? } ?> <? } ?>
<br /><br /> <br /><br />
<? <?
@ -307,7 +307,7 @@
<a href="collages.php?id=<?=$ID?>"><?=$Name?></a> <a href="collages.php?id=<?=$ID?>"><?=$Name?></a>
<? if ($BookmarkView) { ?> <? if ($BookmarkView) { ?>
<span style="float:right"> <span style="float:right">
<a href="#" onclick="Unbookmark('collage', <?=$ID?>,'');return false;">[Remove bookmark]</a> [<a href="#" onclick="Unbookmark('collage', <?=$ID?>,'');return false;">Remove bookmark</a>]
</span> </span>
<? } <? }
if(!empty($Tags)) { if(!empty($Tags)) {

View File

@ -68,7 +68,7 @@
if (!isset($_POST['vote']) || !is_number($_POST['vote'])) { if (!isset($_POST['vote']) || !is_number($_POST['vote'])) {
?> ?>
<span class="error">Please select an option.</span><br /> <span class="error">Please select an option.</span><br />
<form class="vote_form" name="poll" id="poll"> <form class="vote_form" name="poll" id="poll" action="">
<input type="hidden" name="action" value="poll" /> <input type="hidden" name="action" value="poll" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="large" value="<?=display_str($_POST['large'])?>" /> <input type="hidden" name="large" value="<?=display_str($_POST['large'])?>" />

View File

@ -334,7 +334,7 @@
//User has not voted //User has not voted
?> ?>
<div id="poll_container"> <div id="poll_container">
<form class="vote_form" name="poll" id="poll"> <form class="vote_form" name="poll" id="poll" action="">
<input type="hidden" name="action" value="poll" /> <input type="hidden" name="action" value="poll" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="large" value="1" /> <input type="hidden" name="large" value="1" />

View File

@ -201,55 +201,55 @@
break; break;
} }
?> ?>
</strong> </strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"><?=$Text->full_format($Reason)?></td> <td colspan="2"><?=$Text->full_format($Reason)?></td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<? if ($ClaimerID == $LoggedUser['ID']) { ?> <? if ($ClaimerID == $LoggedUser['ID']) { ?>
<span id="claimed_<?=$ReportID?>">Claimed by <?=Users::format_username($ClaimerID, false, false, false, false)?> <a href="#" onclick="unClaim(<?=$ReportID?>); return false;">[Unclaim]</a></span> <span id="claimed_<?=$ReportID?>">Claimed by <?=Users::format_username($ClaimerID, false, false, false, false)?> [<a href="#" onclick="unClaim(<?=$ReportID?>); return false;">Unclaim</a>]</span>
<? } else if ($ClaimerID) { ?> <? } else if ($ClaimerID) { ?>
<span id="claimed_<?=$ReportID?>">Claimed by <?=Users::format_username($ClaimerID, false, false, false, false)?></span> <span id="claimed_<?=$ReportID?>">Claimed by <?=Users::format_username($ClaimerID, false, false, false, false)?></span>
<? } else { ?> <? } else { ?>
<a href="#" id="claim_<?=$ReportID?>" onclick="claim(<?=$ReportID?>); return false;">Claim</a> [<a href="#" id="claim_<?=$ReportID?>" onclick="claim(<?=$ReportID?>); return false;">Claim</a>]
<? } ?> <? } ?>
&nbsp;&nbsp; &nbsp;&nbsp;
<a onclick="toggleNotes(<?=$ReportID?>); return false;" href="#">Toggle Notes</a> [<a onclick="toggleNotes(<?=$ReportID?>); return false;" href="#">Toggle Notes</a>]
<div id="notes_div_<?=$ReportID?>" style="display: <?=empty($Notes) ? "none" : "block"?>;"> <div id="notes_div_<?=$ReportID?>" style="display: <?=empty($Notes) ? "none" : "block"?>;">
<textarea cols="50" rows="3" id="notes_<?=$ReportID?>"><?=$Notes?></textarea> <textarea cols="50" rows="3" id="notes_<?=$ReportID?>"><?=$Notes?></textarea>
<br/> <br />
<input type="submit" onclick="saveNotes(<?=$ReportID?>)" value="Save"/> <input type="submit" onclick="saveNotes(<?=$ReportID?>)" value="Save" />
</div> </div>
</td> </td>
</tr> </tr>
<? if ($Status != "Resolved") { ?> <? if ($Status != "Resolved") { ?>
<tr> <tr>
<td class="center" colspan="2"> <td class="center" colspan="2">
<form class="manage_form" name="report" action="reports.php" method="post"> <form class="manage_form" name="report" action="reports.php" method="post">
<input type="hidden" name="reportid" value="<?=$ReportID?>"/> <input type="hidden" name="reportid" value="<?=$ReportID?>" />
<input type="hidden" name="action" value="takeresolve"/> <input type="hidden" name="action" value="takeresolve" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>"/> <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"/> <input type="submit" onclick="return resolve(<?=$ReportID?>, <?=($ClaimerID == $LoggedUser['ID'] || !$ClaimerID) ? "true" : "false"?>)" name="submit" value="Resolve" />
</td> </form>
</tr> </td>
</tr>
<? } ?> <? } ?>
</table> </table>
</form> </div>
</div> <br />
<br/>
<? <?
$DB->set_query_id($Reports); $DB->set_query_id($Reports);
} }
?> ?>
<div class="linkbox"> <div class="linkbox">
<? <?
echo $Pages; echo $Pages;
?> ?>
</div> </div>
</div> </div>
<? <?
View::show_footer(); View::show_footer();

View File

@ -22,7 +22,7 @@
$Results = $DB->to_array(); $Results = $DB->to_array();
?> ?>
<tr> <tr>
<td class="label"><strong>Reports resolved in the last 24h</strong></td> <td class="label"><strong>Reports resolved in the last 24 hours</strong></td>
<td> <td>
<table style="width: 50%; margin-left: auto; margin-right: auto;" class="border"> <table style="width: 50%; margin-left: auto; margin-right: auto;" class="border">
<tr> <tr>
@ -34,7 +34,7 @@
?> ?>
<tr> <tr>
<td><?=$Username?></td> <td><?=$Username?></td>
<td><?=$Reports?></td> <td><?=number_format($Reports)?></td>
</tr> </tr>
<? } ?> <? } ?>
</table> </table>
@ -57,7 +57,7 @@
?> ?>
<tr> <tr>
<td><?=$Username?></td> <td><?=$Username?></td>
<td><?=$Reports?></td> <td><?=number_format($Reports)?></td>
</tr> </tr>
<? } ?> <? } ?>
</table> </table>
@ -80,7 +80,7 @@
?> ?>
<tr> <tr>
<td><?=$Username?></td> <td><?=$Username?></td>
<td><?=$Reports?></td> <td><?=number_format($Reports)?></td>
</tr> </tr>
<? } ?> <? } ?>
</table> </table>
@ -103,7 +103,7 @@
?> ?>
<tr> <tr>
<td><?=$Username?></td> <td><?=$Username?></td>
<td><?=$Reports?></td> <td><?=number_format($Reports)?></td>
</tr> </tr>
<? } ?> <? } ?>
</table> </table>
@ -131,7 +131,7 @@
<tr> <tr>
<td><?=$i?></td> <td><?=$i?></td>
<td><?=$Username?></td> <td><?=$Username?></td>
<td><?=$Trashed?></td> <td><?=number_format($Trashed)?></td>
</tr> </tr>
<? $i++; } ?> <? $i++; } ?>
</table> </table>

View File

@ -1,6 +1,6 @@
<? <?
/* /*
* This is the outline page for auto reports, it calls the AJAX functions * This is the outline page for auto reports. It calls the AJAX functions
* that actually populate the page and shows the proper header and footer. * that actually populate the page and shows the proper header and footer.
* The important function is AddMore(). * The important function is AddMore().
*/ */
@ -10,7 +10,7 @@
View::show_header('Reports V2!', 'reportsv2'); View::show_header('Reports V2!', 'reportsv2');
?> ?>
<script type="text/javascript"> <script type="text/javascript">//<![CDATA[
function Taste(torrent_id, report_id, taste) { 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) { ajax.get('reportsv2.php?action=ajax_taste&torrent_id='+torrent_id+'&report_id='+report_id+'&taste='+taste, function(data) {
if (data == '1') { if (data == '1') {
@ -21,7 +21,7 @@ function Taste(torrent_id, report_id, taste) {
} }
}); });
} }
</script> //]]></script>
<div class="header"> <div class="header">
<h2>New reports, auto assigned!</h2> <h2>New reports, auto assigned!</h2>

View File

@ -367,7 +367,7 @@
<input type="hidden" id="amount" name="amount" value="<?=(!empty($Bounty) ? $Bounty : '100')?>" /> <input type="hidden" id="amount" name="amount" value="<?=(!empty($Bounty) ? $Bounty : '100')?>" />
<input type="hidden" id="current_uploaded" value="<?=$LoggedUser['BytesUploaded']?>" /> <input type="hidden" id="current_uploaded" value="<?=$LoggedUser['BytesUploaded']?>" />
<input type="hidden" id="current_downloaded" value="<?=$LoggedUser['BytesDownloaded']?>" /> <input type="hidden" id="current_downloaded" value="<?=$LoggedUser['BytesDownloaded']?>" />
If you add the entered <strong><span id="new_bounty">100.00 MB</span></strong> of bounty, your new stats will be: <br/> If you add the entered <strong><span id="new_bounty">100.00 MB</span></strong> of bounty, your new stats will be: <br />
Uploaded: <span id="new_uploaded"><?=Format::get_size($LoggedUser['BytesUploaded'])?></span> Uploaded: <span id="new_uploaded"><?=Format::get_size($LoggedUser['BytesUploaded'])?></span>
Ratio: <span id="new_ratio"><?=Format::get_ratio_html($LoggedUser['BytesUploaded'],$LoggedUser['BytesDownloaded'])?></span> Ratio: <span id="new_ratio"><?=Format::get_ratio_html($LoggedUser['BytesUploaded'],$LoggedUser['BytesDownloaded'])?></span>
</td> </td>

View File

@ -407,7 +407,7 @@
<input type="hidden" id="current_downloaded" value="<?=$LoggedUser['BytesDownloaded']?>" /> <input type="hidden" id="current_downloaded" value="<?=$LoggedUser['BytesDownloaded']?>" />
<input type="hidden" id="current_rr" value="<?=(float)$LoggedUser['RequiredRatio']?>" /> <input type="hidden" id="current_rr" value="<?=(float)$LoggedUser['RequiredRatio']?>" />
<input id="total_bounty" type="hidden" value="<?=$RequestVotes['TotalBounty']?>" /> <input id="total_bounty" type="hidden" value="<?=$RequestVotes['TotalBounty']?>" />
If you add the entered <strong><span id="new_bounty">0.00 MB</span></strong> of bounty, your new stats will be: <br/> If you add the entered <strong><span id="new_bounty">0.00 MB</span></strong> of bounty, your new stats will be: <br />
Uploaded: <span id="new_uploaded"><?=Format::get_size($LoggedUser['BytesUploaded'])?></span> Uploaded: <span id="new_uploaded"><?=Format::get_size($LoggedUser['BytesUploaded'])?></span>
Ratio: <span id="new_ratio"><?=Format::get_ratio_html($LoggedUser['BytesUploaded'],$LoggedUser['BytesDownloaded'])?></span> Ratio: <span id="new_ratio"><?=Format::get_ratio_html($LoggedUser['BytesUploaded'],$LoggedUser['BytesDownloaded'])?></span>
<input type="button" id="button" value="Vote!" disabled="disabled" onclick="Vote();" /> <input type="button" id="button" value="Vote!" disabled="disabled" onclick="Vote();" />

View File

@ -610,7 +610,7 @@
</td> </td>
<td class="nobr"> <td class="nobr">
<? if(!$IsFilled && check_perms('site_vote')){ ?> <? if(!$IsFilled && check_perms('site_vote')){ ?>
<form class="add_form" name="request" id="form_<?=$RequestID?>"> <form class="add_form" name="request" id="form_<?=$RequestID?>" action="">
<span id="vote_count_<?=$RequestID?>"><?=$VoteCount?></span> <span id="vote_count_<?=$RequestID?>"><?=$VoteCount?></span>
<input type="hidden" id="requestid_<?=$RequestID?>" name="requestid" value="<?=$RequestID?>" /> <input type="hidden" id="requestid_<?=$RequestID?>" name="requestid" value="<?=$RequestID?>" />
<input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -7,8 +7,8 @@
<h2 class="center">Ratio Rules</h2> <h2 class="center">Ratio Rules</h2>
</div> </div>
<div class="box pad rule_summary"> <div class="box pad rule_summary">
<br/> <br />
<strong>Ratio System Overview:</strong><br/> <strong>Ratio System Overview:</strong><br />
<ul> <ul>
<li>Your <strong>ratio</strong> is calculated by dividing the amount of data you&#39;ve uploaded by the amount of data you&#39;ve downloaded. You can view your ratio in the site header, or <li>Your <strong>ratio</strong> is calculated by dividing the amount of data you&#39;ve uploaded by the amount of data you&#39;ve downloaded. You can view your ratio in the site header, or
in the &#39;stats&#39; section of your user profile. in the &#39;stats&#39; section of your user profile.
@ -21,9 +21,9 @@
account will remain enabled. account will remain enabled.
</li> </li>
</ul> </ul>
<br/> <br />
<br/> <br />
<strong>Required Ratio Overview:</strong><br/> <strong>Required Ratio Overview:</strong><br />
<ul> <ul>
<li>Your required ratio represents the minimum ratio you must maintain to avoid ratio watch. You can view your required ratio in the site header after the word &#39;required,&#39; or in <li>Your required ratio represents the minimum ratio you must maintain to avoid ratio watch. You can view your required ratio in the site header after the word &#39;required,&#39; or in
the &#39;stats&#39; section of your user profile. the &#39;stats&#39; section of your user profile.
@ -36,10 +36,10 @@
required ratio is, the less likely it is that you&#39;ll enter ratio watch. required ratio is, the less likely it is that you&#39;ll enter ratio watch.
</li> </li>
</ul> </ul>
<br/> <br />
<br/> <br />
<div style="text-align:center"><strong>Required Ratio Table</strong><br/><br /> <div style="text-align:center"><strong>Required Ratio Table</strong><br /><br />
<table class="ratio_table"> <table class="ratio_table">
<tr class="colhead"> <tr class="colhead">
<td><span title="These units are actually in base 2, not base 10. For example, there are 1,024 MB in 1 GB.">Amount Downloaded</span></td> <td><span title="These units are actually in base 2, not base 10. For example, there are 1,024 MB in 1 GB.">Amount Downloaded</span></td>
@ -98,9 +98,9 @@
</tr> </tr>
</table> </table>
</div> </div>
<br/> <br />
<br/> <br />
<strong>Required Ratio Calculation:</strong><br/> <strong>Required Ratio Calculation:</strong><br />
<ul> <ul>
<li><strong>1: Determine the maximum and minimum possible values of your required ratio.</strong> Using the table above, determine your amount downloaded bracket from the first column. <li><strong>1: Determine the maximum and minimum possible values of your required ratio.</strong> Using the table above, determine your amount downloaded bracket from the first column.
Next, locate the values in the adjacent columns. The second column lists the maximum required ratio for each bracket, and the third column lists the minimum required ratio for each Next, locate the values in the adjacent columns. The second column lists the maximum required ratio for each bracket, and the third column lists the minimum required ratio for each
@ -111,14 +111,14 @@
differently, the calculation performed by the system looks like this: differently, the calculation performed by the system looks like this:
</li> </li>
</ul> </ul>
<br/> <br />
<br/> <br />
<div style="text-align:center"><img style="vertical-align: middle" src="static/blank.gif" <div style="text-align:center"><img style="vertical-align: middle" src="static/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=%5Ctextrm%7B%28maximum+required+ratio%29+%2A+%281-%5Cfrac%7Bseeding%7D%7Bsnatched%7D%29%7D&amp;chco=' + hexify(getComputedStyle(this.parentNode,null).color); }"/> 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=%5Ctextrm%7B%28maximum+required+ratio%29+%2A+%281-%5Cfrac%7Bseeding%7D%7Bsnatched%7D%29%7D&amp;chco=' + hexify(getComputedStyle(this.parentNode,null).color); }"/>
</div> </div>
<br/> <br />
<br/> <br />
<ul> <ul>
<li>In this formula, <strong>snatched</strong> is the number of non-deleted unique snatches you have made. If you snatch a torrent twice, it only counts once. If a snatched torrent is <li>In this formula, <strong>snatched</strong> is the number of non-deleted unique snatches you have made. If you snatch a torrent twice, it only counts once. If a snatched torrent is
deleted from the site, it is not counted at all. deleted from the site, it is not counted at all.
@ -131,9 +131,9 @@
most amount downloaded brackets have a minimum required ratio (100% seeded) greater than zero, and the value returned by the above calculation is zero when seeding equals snatched. most amount downloaded brackets have a minimum required ratio (100% seeded) greater than zero, and the value returned by the above calculation is zero when seeding equals snatched.
</li> </li>
</ul> </ul>
<br/> <br />
<br/> <br />
<strong>Required Ratio Details:</strong><br/> <strong>Required Ratio Details:</strong><br />
<ul> <ul>
<li>If you stop seeding for one week, your required ratio will become the maximum required ratio (0% seeded) for your amount downloaded bracket. Once you have resumed seeding for a 72 hour <li>If you stop seeding for one week, your required ratio will become the maximum required ratio (0% seeded) for your amount downloaded bracket. Once you have resumed seeding for a 72 hour
period, your required ratio will decrease according to the above calculations. period, your required ratio will decrease according to the above calculations.
@ -146,9 +146,9 @@
other. This means that users with download totals greater than or equal to 100 GB have a minimum required ratio (100% seeded) of 0.60 from that point forward. other. This means that users with download totals greater than or equal to 100 GB have a minimum required ratio (100% seeded) of 0.60 from that point forward.
</li> </li>
</ul> </ul>
<br/> <br />
<br/> <br />
<strong>Required Ratio Example:</strong><br/> <strong>Required Ratio Example:</strong><br />
<ul> <ul>
<li>In this example, Rippy has downloaded 25 GB. Rippy falls into the 20-30 GB amount downloaded bracket in the table above. Rippy&#39;s maximum required ratio (0% seeded) is 0.30, and his <li>In this example, Rippy has downloaded 25 GB. Rippy falls into the 20-30 GB amount downloaded bracket in the table above. Rippy&#39;s maximum required ratio (0% seeded) is 0.30, and his
minimum required ratio (100% seeded) is 0.05. minimum required ratio (100% seeded) is 0.05.
@ -162,9 +162,9 @@
last week. In this case, the system would not be counting all 45 torrents as seeded. last week. In this case, the system would not be counting all 45 torrents as seeded.
</li> </li>
</ul> </ul>
<br/> <br />
<br/> <br />
<strong>Ratio Watch Overview:</strong><br/> <strong>Ratio Watch Overview:</strong><br />
<ul> <ul>
<li>Everyone gets to download their first 5 GB before ratio watch eligibility begins.</li> <li>Everyone gets to download their first 5 GB before ratio watch eligibility begins.</li>
<li>If you&#39;ve downloaded more than 5 GB and your ratio does not meet or surpass your required ratio, you will be put on ratio watch and have <strong>two weeks</strong> to raise your <li>If you&#39;ve downloaded more than 5 GB and your ratio does not meet or surpass your required ratio, you will be put on ratio watch and have <strong>two weeks</strong> to raise your
@ -176,9 +176,9 @@
</li> </li>
<li>The ratio watch system is automated and cannot be interrupted by staff.</li> <li>The ratio watch system is automated and cannot be interrupted by staff.</li>
</ul> </ul>
<br/> <br />
<br/> <br />
<strong>Leaving Ratio Watch:</strong><br/> <strong>Leaving Ratio Watch:</strong><br />
<ul> <ul>
<li>To leave ratio watch, you must either raise your ratio by uploading more, or lower your required ratio by seeding more. Your ratio must be equal to or above your required ratio in <li>To leave ratio watch, you must either raise your ratio by uploading more, or lower your required ratio by seeding more. Your ratio must be equal to or above your required ratio in
order for ratio watch to end. order for ratio watch to end.
@ -191,8 +191,8 @@
</li> </li>
<li>Leeching privileges will be restored once your ratio has become greater than or equal to your required ratio.</li> <li>Leeching privileges will be restored once your ratio has become greater than or equal to your required ratio.</li>
</ul> </ul>
<br/> <br />
<br/> <br />
<? include('jump.php'); ?> <? include('jump.php'); ?>
</div> </div>
</div> </div>

View File

@ -45,7 +45,7 @@
</div> </div>
<!-- Uploading Rules Index Links --> <!-- Uploading Rules Index Links -->
<br /> <br />
<form class="search_form" name="rules" onsubmit="return false"> <form class="search_form" name="rules" onsubmit="return false" action="">
<input type="text" id="search_string" value="Filter (empty to reset)" /> <input type="text" id="search_string" value="Filter (empty to reset)" />
<span id="Index">Example: The search term <strong>FLAC</strong> returns all rules containing <strong>FLAC</strong>. The search term <strong>FLAC+trump</strong> returns all rules containing both <strong>FLAC</strong> and <strong>trump</strong>.</span> <span id="Index">Example: The search term <strong>FLAC</strong> returns all rules containing <strong>FLAC</strong>. The search term <strong>FLAC+trump</strong> returns all rules containing both <strong>FLAC</strong> and <strong>trump</strong>.</span>
</form> </form>

View File

@ -68,7 +68,7 @@
<input type="text" name="comment" value="<?=display_str($Result['Comment'])?>" size="60"/> <input type="text" name="comment" value="<?=display_str($Result['Comment'])?>" size="60"/>
</td> </td>
<td><?=Users::format_username($Result['UserID'], false, false, false) <td><?=Users::format_username($Result['UserID'], false, false, false)
?><br/><?=time_diff($Result['Time'], 1) ?><br /><?=time_diff($Result['Time'], 1)
?></td> ?></td>
<td> <td>
<input type="submit" name="submit" value="Edit"/> <input type="submit" name="submit" value="Edit"/>

View File

@ -38,7 +38,7 @@
</div> </div>
<div style="text-align: center"> <div style="text-align: center">
<div style="display: inline-block;"> <div style="display: inline-block;">
<form class="manage_form" name="tags" method="post"> <form class="manage_form" name="tags" method="post" action="">
<input type="hidden" name="action" value="official_tags" /> <input type="hidden" name="action" value="official_tags" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="doit" value="1" /> <input type="hidden" name="doit" value="1" />

View File

@ -60,7 +60,7 @@
while (list($ID, $BadTag, $AliasTag) = $DB -> next_record()) { while (list($ID, $BadTag, $AliasTag) = $DB -> next_record()) {
?> ?>
<tr> <tr>
<form class="manage_form" name="aliases" method="post"> <form class="manage_form" name="aliases" method="post" action="">
<input type="hidden" name="changealias" value="1" /> <input type="hidden" name="changealias" value="1" />
<input type="hidden" name="aliasid" value="<?=$ID?>" /> <input type="hidden" name="aliasid" value="<?=$ID?>" />
<td> <td>

View File

@ -16,10 +16,10 @@
<div class="header"> <div class="header">
<h2>Top 10 Tags</h2> <h2>Top 10 Tags</h2>
<div class="linkbox"> <div class="linkbox">
<a href="top10.php?type=torrents">[Torrents]</a> [<a href="top10.php?type=torrents">Torrents</a>]
<a href="top10.php?type=users">[Users]</a> [<a href="top10.php?type=users">Users</a>]
<a href="top10.php?type=tags"><strong>[Tags]</strong></a> [<a href="top10.php?type=tags"><strong>Tags</strong></a>]
<a href="top10.php?type=votes">[Favorites]</a> [<a href="top10.php?type=votes">Favorites</a>]
</div> </div>
</div> </div>

View File

@ -54,10 +54,10 @@
<div class="header"> <div class="header">
<h2>Top <?=$Limit?> Torrents</h2> <h2>Top <?=$Limit?> Torrents</h2>
<div class="linkbox"> <div class="linkbox">
<a href="top10.php?type=torrents"><strong>[Torrents]</strong></a> [<a href="top10.php?type=torrents"><strong>Torrents</strong></a>]
<a href="top10.php?type=users">[Users]</a> [<a href="top10.php?type=users">Users</a>]
<a href="top10.php?type=tags">[Tags]</a> [<a href="top10.php?type=tags">Tags</a>]
<a href="top10.php?type=votes">[Favorites]</a> [<a href="top10.php?type=votes">Favorites</a>]
</div> </div>
</div> </div>
<? <?
@ -71,8 +71,8 @@
<td class="label">Tags (comma-separated):</td> <td class="label">Tags (comma-separated):</td>
<td class="ft_taglist"> <td class="ft_taglist">
<input type="text" name="tags" size="75" value="<? if(!empty($_GET['tags'])) { echo display_str($_GET['tags']);} ?>" />&nbsp; <input type="text" name="tags" size="75" value="<? if(!empty($_GET['tags'])) { echo display_str($_GET['tags']);} ?>" />&nbsp;
<input type="radio" id="rdoAll" name="anyall" value="all"<?=($_GET['anyall']!='any'?' checked="checked"':'')?>><label for="rdoAll"> All</label>&nbsp;&nbsp; <input type="radio" id="rdoAll" name="anyall" value="all"<?=($_GET['anyall']!='any'?' checked="checked"':'')?> /><label for="rdoAll"> All</label>&nbsp;&nbsp;
<input type="radio" id="rdoAny" name="anyall" value="any"<?=($_GET['anyall']=='any'?' checked="checked"':'')?>><label for="rdoAny"> Any</label> <input type="radio" id="rdoAny" name="anyall" value="any"<?=($_GET['anyall']=='any'?' checked="checked"':'')?> /><label for="rdoAny"> Any</label>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -125,7 +125,7 @@
?> ?>
<div style="text-align: right;" class="linkbox"> <div style="text-align: right;" class="linkbox">
<a href="top10.php?<?=$FreeleechToggleQuery?>">[<?=ucfirst($FreeleechToggleName)?> Freeleech in Top 10]</a> [<a href="top10.php?<?=$FreeleechToggleQuery?>"><?=ucfirst($FreeleechToggleName)?> Freeleech in Top 10</a>]
</div> </div>
<? <?

View File

@ -16,10 +16,10 @@
<div class="header"> <div class="header">
<h2>Top 10 Users</h2> <h2>Top 10 Users</h2>
<div class="linkbox"> <div class="linkbox">
<a href="top10.php?type=torrents">[Torrents]</a> [<a href="top10.php?type=torrents">Torrents</a>]
<a href="top10.php?type=users"><strong>[Users]</strong></a> [<a href="top10.php?type=users"><strong>Users</strong></a>]
<a href="top10.php?type=tags">[Tags]</a> [<a href="top10.php?type=tags">Tags</a>]
<a href="top10.php?type=votes">[Favorites]</a> [<a href="top10.php?type=votes">Favorites</a>]
</div> </div>
</div> </div>
<? <?

View File

@ -92,10 +92,10 @@
<div class="header"> <div class="header">
<h2>Top <?=$Limit?> Voted Groups</h2> <h2>Top <?=$Limit?> Voted Groups</h2>
<div class="linkbox"> <div class="linkbox">
<a href="top10.php?type=torrents">[Torrents]</a> [<a href="top10.php?type=torrents">Torrents</a>]
<a href="top10.php?type=users">[Users]</a> [<a href="top10.php?type=users">Users</a>]
<a href="top10.php?type=tags">[Tags]</a> [<a href="top10.php?type=tags">Tags</a>]
<a href="top10.php?type=votes"><strong>[Favorites]</strong></a> [<a href="top10.php?type=votes"><strong>Favorites</strong></a>]
</div> </div>
</div> </div>
<? <?
@ -109,8 +109,8 @@
<td class="label">Tags (comma-separated):</td> <td class="label">Tags (comma-separated):</td>
<td class="ft_taglist"> <td class="ft_taglist">
<input type="text" name="tags" size="75" value="<? if(!empty($_GET['tags'])) { echo display_str($_GET['tags']);} ?>" />&nbsp; <input type="text" name="tags" size="75" value="<? if(!empty($_GET['tags'])) { echo display_str($_GET['tags']);} ?>" />&nbsp;
<input type="radio" id="rdoAll" name="anyall" value="all"<?=($_GET['anyall']!='any'?' checked="checked"':'')?>><label for="rdoAll"> All</label>&nbsp;&nbsp; <input type="radio" id="rdoAll" name="anyall" value="all"<?=($_GET['anyall']!='any'?' checked="checked"':'')?> /><label for="rdoAll"> All</label>&nbsp;&nbsp;
<input type="radio" id="rdoAny" name="anyall" value="any"<?=($_GET['anyall']=='any'?' checked="checked"':'')?>><label for="rdoAny"> Any</label> <input type="radio" id="rdoAny" name="anyall" value="any"<?=($_GET['anyall']=='any'?' checked="checked"':'')?> /><label for="rdoAny"> Any</label>
</td> </td>
</tr> </tr>
<tr id="yearfilter"> <tr id="yearfilter">

View File

@ -544,7 +544,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
View::show_header($Title,'browse'); View::show_header($Title,'browse');
?> ?>
<form name="filter" method="get" action=''> <form name="filter" method="get" action="">
<? if($UserID) { ?> <? if($UserID) { ?>
<input type="hidden" name="type" value="<?=display_str($_GET['type'])?>" /> <input type="hidden" name="type" value="<?=display_str($_GET['type'])?>" />
<input type="hidden" name="userid" value="<?=display_str($_GET['userid'])?>" /> <input type="hidden" name="userid" value="<?=display_str($_GET['userid'])?>" />

View File

@ -635,7 +635,7 @@ function filelist($Str) {
<tr class="requestrows <?=(++$i%2?'rowa':'rowb')?>"> <tr class="requestrows <?=(++$i%2?'rowa':'rowb')?>">
<td><a href="requests.php?action=view&amp;id=<?=$Request['ID']?>"><?=$FormatString?> / <?=$BitrateString?> / <?=$MediaString?></a></td> <td><a href="requests.php?action=view&amp;id=<?=$Request['ID']?>"><?=$FormatString?> / <?=$BitrateString?> / <?=$MediaString?></a></td>
<td> <td>
<form class="add_form" name="bounty" id="form_<?=$Request['ID']?>"> <form class="add_form" name="bounty" id="form_<?=$Request['ID']?>" action="">
<span id="vote_count_<?=$Request['ID']?>"><?=count($RequestVotes['Voters'])?></span> <span id="vote_count_<?=$Request['ID']?>"><?=count($RequestVotes['Voters'])?></span>
<input type="hidden" id="requestid_<?=$Request['ID']?>" name="requestid" value="<?=$Request['ID']?>" /> <input type="hidden" id="requestid_<?=$Request['ID']?>" name="requestid" value="<?=$Request['ID']?>" />
<input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -728,7 +728,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
<td>IP</td> <td>IP</td>
<td>Email</td> <td>Email</td>
<td>Joined</td> <td>Joined</td>
<td>Last Seen</td> <td>Last seen</td>
<td>Upload</td> <td>Upload</td>
<td>Download</td> <td>Download</td>
<td>Downloads</td> <td>Downloads</td>

View File

@ -112,7 +112,7 @@ function checked($Checked) {
<td> <td>
<select name="disablegrouping" id="disablegrouping"> <select name="disablegrouping" id="disablegrouping">
<option value="0"<? if ($SiteOptions['DisableGrouping2'] == 0) { ?>selected="selected"<? } ?>>Group torrents by default</option> <option value="0"<? if ($SiteOptions['DisableGrouping2'] == 0) { ?>selected="selected"<? } ?>>Group torrents by default</option>
<option value="1"<? if ($SiteOptions['DisableGrouping2'] == 1) { ?>selected="selected"<? } ?>>DO NOT Group torrents by default</option> <option value="1"<? if ($SiteOptions['DisableGrouping2'] == 1) { ?>selected="selected"<? } ?>>DO NOT group torrents by default</option>
</select>&nbsp; </select>&nbsp;
<select name="torrentgrouping" id="torrentgrouping"> <select name="torrentgrouping" id="torrentgrouping">
<option value="0"<? if ($SiteOptions['TorrentGrouping'] == 0) { ?>selected="selected"<? } ?>>Groups are open by default</option> <option value="0"<? if ($SiteOptions['TorrentGrouping'] == 0) { ?>selected="selected"<? } ?>>Groups are open by default</option>
@ -130,10 +130,10 @@ function checked($Checked) {
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="label"><strong>Show Snatched Torrents</strong></td> <td class="label"><strong>Show snatched torrents</strong></td>
<td> <td>
<input type="checkbox" name="showsnatched" id="showsnatched" <? if (!empty($SiteOptions['ShowSnatched'])) { ?>checked="checked"<? } ?> /> <input type="checkbox" name="showsnatched" id="showsnatched" <? if (!empty($SiteOptions['ShowSnatched'])) { ?>checked="checked"<? } ?> />
<label for="showsnatched">"Snatched!" next to snatched torrents</label> <label for="showsnatched">Display "Snatched!" next to snatched torrents</label>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -168,8 +168,8 @@ function checked($Checked) {
<td class="label"><strong>Collage album art view</strong></td> <td class="label"><strong>Collage album art view</strong></td>
<td> <td>
<select name="hidecollage" id="hidecollage"> <select name="hidecollage" id="hidecollage">
<option value="0"<? if ($SiteOptions['HideCollage'] == 0) { ?>selected="selected"<? } ?>>Show album art</option> <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> <option value="1"<? if ($SiteOptions['HideCollage'] == 1) { ?> selected="selected"<? } ?>>Hide album art</option>
</select> </select>
</td> </td>
</tr>--> </tr>-->
@ -177,12 +177,12 @@ function checked($Checked) {
<td class="label"><strong>Collage album covers to show per page</strong></td> <td class="label"><strong>Collage album covers to show per page</strong></td>
<td> <td>
<select name="collagecovers" id="collagecovers"> <select name="collagecovers" id="collagecovers">
<option value="10"<? if ($SiteOptions['CollageCovers'] == 10) { ?>selected="selected"<? } ?>>10</option> <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="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="50"<? if ($SiteOptions['CollageCovers'] == 50) { ?> selected="selected"<? } ?>>50</option>
<option value="100"<? if ($SiteOptions['CollageCovers'] == 100) { ?>selected="selected"<? } ?>>100</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="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> <option value="0"<? if (($SiteOptions['CollageCovers'] === 0) || (!isset($SiteOptions['CollageCovers']) && $SiteOptions['HideCollage'])) { ?> selected="selected"<? } ?>>None</option>
</select> </select>
</td> </td>
</tr> </tr>
@ -190,8 +190,8 @@ function checked($Checked) {
<td class="label"><strong>Browse page tag list</strong></td> <td class="label"><strong>Browse page tag list</strong></td>
<td> <td>
<select name="showtags" id="showtags"> <select name="showtags" id="showtags">
<option value="1"<? if ($SiteOptions['ShowTags'] == 1) { ?>selected="selected"<? } ?>>Open by default.</option> <option value="1"<? if ($SiteOptions['ShowTags'] == 1) { ?> selected="selected"<? } ?>>Open by default.</option>
<option value="0"<? if ($SiteOptions['ShowTags'] == 0) { ?>selected="selected"<? } ?>>Closed by default.</option> <option value="0"<? if ($SiteOptions['ShowTags'] == 0) { ?> selected="selected"<? } ?>>Closed by default.</option>
</select> </select>
</td> </td>
</tr> </tr>
@ -203,10 +203,10 @@ function checked($Checked) {
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="label"><strong>Quote Notifications</strong></td> <td class="label"><strong>Quote notifications</strong></td>
<td> <td>
<input type="checkbox" name="notifyquotes" id="notifyquotes" <? if (!empty($SiteOptions['NotifyOnQuote'])) { ?>checked="checked"<? } ?> /> <input type="checkbox" name="notifyquotes" id="notifyquotes" <? if (!empty($SiteOptions['NotifyOnQuote'])) { ?>checked="checked"<? } ?> />
<label for="notifyquotes">Notifications when somebody quotes you in the forum</label> <label for="notifyquotes">Notifications when someone quotes you in the forum</label>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -217,7 +217,7 @@ function checked($Checked) {
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="label"><strong>Mature Content</strong></td> <td class="label"><strong>Mature content</strong></td>
<td> <td>
<input type="checkbox" name="enablematurecontent" id="enablematurecontent" <? if (!empty($SiteOptions['EnableMatureContent'])) { ?>checked="checked"<? } ?> /> <input type="checkbox" name="enablematurecontent" id="enablematurecontent" <? if (!empty($SiteOptions['EnableMatureContent'])) { ?>checked="checked"<? } ?> />
<label for="enablematurecontent">Show mature content</label> <label for="enablematurecontent">Show mature content</label>
@ -245,7 +245,7 @@ function checked($Checked) {
</tr> </tr>
<!-- --> <!-- -->
<tr> <tr>
<td class="label"><strong>Auto-save Text</strong></td> <td class="label"><strong>Auto-save text</strong></td>
<td> <td>
<input type="checkbox" name="disableautosave" id="disableautosave" <? if (!empty($SiteOptions['DisableAutoSave'])) { ?>checked="checked"<? } ?> /> <input type="checkbox" name="disableautosave" id="disableautosave" <? if (!empty($SiteOptions['DisableAutoSave'])) { ?>checked="checked"<? } ?> />
<label for="disableautosave">Disable reply text from being saved automatically when changing pages in a thread</label> <label for="disableautosave">Disable reply text from being saved automatically when changing pages in a thread</label>
@ -262,7 +262,7 @@ function checked($Checked) {
<td class="label"><strong>Download torrents as text files</strong></td> <td class="label"><strong>Download torrents as text files</strong></td>
<td> <td>
<input type="checkbox" name="downloadalt" id="downloadalt" <? if ($DownloadAlt) { ?>checked="checked"<? } ?> /> <input type="checkbox" name="downloadalt" id="downloadalt" <? if ($DownloadAlt) { ?>checked="checked"<? } ?> />
<label for="downloadalt">For users whose ISP block the downloading of torrent files</label> <label for="downloadalt">For users whose ISP blocks the downloading of torrent files</label>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -291,9 +291,9 @@ function checked($Checked) {
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="label"><strong>Last.FM Username</strong></td> <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)?>" /> <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> <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> </td>
</tr> </tr>
@ -456,7 +456,7 @@ function checked($Checked) {
<td> <td>
<label><input type="checkbox" name="resetpasskey" /> <label><input type="checkbox" name="resetpasskey" />
Any active torrents must be downloaded again to continue leeching/seeding.</label> <br /> Any active torrents must be downloaded again to continue leeching/seeding.</label> <br />
<a href="wiki.php?action=article&amp;name=Passkey">See also this wiki article</a> <a href="wiki.php?action=article&amp;name=Passkey">See this wiki article for more information.</a>
</td> </td>
</tr> </tr>
<tr class="colhead_dark"> <tr class="colhead_dark">

View File

@ -190,7 +190,7 @@
<td><a href="user.php?action=invite&amp;order=joined&amp;sort=<?=(($CurrentOrder == 'joined') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Joined</a></td> <td><a href="user.php?action=invite&amp;order=joined&amp;sort=<?=(($CurrentOrder == 'joined') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Joined</a></td>
<td><a href="user.php?action=invite&amp;order=lastseen&amp;sort=<?=(($CurrentOrder == 'lastseen') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Last Seen</a></td> <td><a href="user.php?action=invite&amp;order=lastseen&amp;sort=<?=(($CurrentOrder == 'lastseen') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Last Seen</a></td>
<td><a href="user.php?action=invite&amp;order=uploaded&amp;sort=<?=(($CurrentOrder == 'uploaded') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Uploaded</a></td> <td><a href="user.php?action=invite&amp;order=uploaded&amp;sort=<?=(($CurrentOrder == 'uploaded') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Uploaded</a></td>
<td><a href="user.php?action=invite&amp;order=downloaded&amp;sort=<?=(($CurrentOrder == 'downloaded') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Downloaded</td> <td><a href="user.php?action=invite&amp;order=downloaded&amp;sort=<?=(($CurrentOrder == 'downloaded') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Downloaded</a></td>
<td><a href="user.php?action=invite&amp;order=ratio&amp;sort=<?=(($CurrentOrder == 'ratio') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Ratio</a></td> <td><a href="user.php?action=invite&amp;order=ratio&amp;sort=<?=(($CurrentOrder == 'ratio') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>">Ratio</a></td>
</tr> </tr>
<? <?

View File

@ -843,8 +843,11 @@ function check_paranoia_here($Setting) {
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<div class="box"> <div class="box">
<div class="head">Staff Notes <a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;">(Edit)</a></div> <div class="head">Staff Notes
<div class="pad"> <a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;">(Edit)</a>
<a href="#" onclick="$('#staffnotes').toggle(); return false;">(Toggle)</a>
</div>
<div id="staffnotes" class="pad">
<input type="hidden" name="comment_hash" value="<?=$CommentHash?>" /> <input type="hidden" name="comment_hash" value="<?=$CommentHash?>" />
<div id="admincommentlinks" class="AdminComment box" style="width:98%;"><?=$Text->full_format($AdminComment)?></div> <div id="admincommentlinks" class="AdminComment box" style="width:98%;"><?=$Text->full_format($AdminComment)?></div>
<textarea id="admincomment" onkeyup="resize('admincomment');" class="AdminComment hidden" name="AdminComment" cols="65" rows="26" style="width:98%;"><?=display_str($AdminComment)?></textarea> <textarea id="admincomment" onkeyup="resize('admincomment');" class="AdminComment hidden" name="AdminComment" cols="65" rows="26" style="width:98%;"><?=display_str($AdminComment)?></textarea>
@ -1097,7 +1100,7 @@ function check_paranoia_here($Setting) {
<input type="checkbox" name="DisableAvatar" id="DisableAvatar"<? if ($DisableAvatar==1) { ?>checked="checked"<? } ?> /> <label for="DisableAvatar">Avatar</label> | <input type="checkbox" name="DisableAvatar" id="DisableAvatar"<? if ($DisableAvatar==1) { ?>checked="checked"<? } ?> /> <label for="DisableAvatar">Avatar</label> |
<input type="checkbox" name="DisableInvites" id="DisableInvites"<? if ($DisableInvites==1) { ?>checked="checked"<? } ?> /> <label for="DisableInvites">Invites</label> | <input type="checkbox" name="DisableInvites" id="DisableInvites"<? if ($DisableInvites==1) { ?>checked="checked"<? } ?> /> <label for="DisableInvites">Invites</label> |
<input type="checkbox" name="DisableForums" id="DisableForums"<? if ($DisableForums==1) { ?>checked="checked"<? } ?> /> <label for="DisableForums">Forums</label> | <input type="checkbox" name="DisableForums" id="DisableForums"<? if ($DisableForums==1) { ?>checked="checked"<? } ?> /> <label for="DisableForums">Forums</label> |
<input type="checkbox" name="DisableTagging" id="DisableTagging"<? if ($DisableTagging==1) { ?>checked="checked"<? } ?> /> <label for="DisableTagging">Tagging</label> | <input type="checkbox" name="DisableTagging" id="DisableTagging"<? if ($DisableTagging==1) { ?>checked="checked"<? } ?> /> <label for="DisableTagging" title="This only disables a user's ability to delete tags.">Tagging</label> |
<input type="checkbox" name="DisableRequests" id="DisableRequests"<? if ($DisableRequests==1) { ?>checked="checked"<? } ?> /> <label for="DisableRequests">Requests</label> <input type="checkbox" name="DisableRequests" id="DisableRequests"<? if ($DisableRequests==1) { ?>checked="checked"<? } ?> /> <label for="DisableRequests">Requests</label>
<br /> <br />
<input type="checkbox" name="DisableUpload" id="DisableUpload"<? if ($DisableUpload==1) { ?>checked="checked"<? } ?> /> <label for="DisableUpload">Upload</label> | <input type="checkbox" name="DisableUpload" id="DisableUpload"<? if ($DisableUpload==1) { ?>checked="checked"<? } ?> /> <label for="DisableUpload">Upload</label> |

View File

@ -134,7 +134,7 @@ function UnBan(ip, id, elemID) {
<? } else { ?> <? } else { ?>
<a href="userhistory.php?action=ips&amp;userid=<?=$UserID?>&amp;usersonly=1">[View IPs With Users]</a> <a href="userhistory.php?action=ips&amp;userid=<?=$UserID?>&amp;usersonly=1">[View IPs With Users]</a>
<? } ?> <? } ?>
<br/> <br />
<?=$Pages?> <?=$Pages?>
</div> </div>
<table> <table>

View File

@ -41,7 +41,7 @@ function Edit_Form(post,key) {
} }
$('#bar' + postid).raw().cancel = $('#content' + postid).raw().innerHTML; $('#bar' + postid).raw().cancel = $('#content' + postid).raw().innerHTML;
$('#bar' + postid).raw().oldbar = $('#bar' + postid).raw().innerHTML; $('#bar' + postid).raw().oldbar = $('#bar' + postid).raw().innerHTML;
$('#content' + postid).raw().innerHTML = "<div id=\"preview" + postid + "\"></div><form id=\"form" + postid + "\" method=\"post\"><input type=\"hidden\" name=\"auth\" value=\"" + authkey + "\" /><input type=\"hidden\" name=\"key\" value=\"" + key + "\" /><input type=\"hidden\" name=\"post\" value=\"" + postid + "\" /><textarea id=\"editbox" + postid + "\" onkeyup=\"resize('editbox" + postid + "');\" name=\"body\" cols=\""+boxWidth+"\" rows=\"10\"></textarea></form>"; $('#content' + postid).raw().innerHTML = "<div id=\"preview" + postid + "\"></div><form id=\"form" + postid + "\" method=\"post\" action=\"\"><input type=\"hidden\" name=\"auth\" value=\"" + authkey + "\" /><input type=\"hidden\" name=\"key\" value=\"" + key + "\" /><input type=\"hidden\" name=\"post\" value=\"" + postid + "\" /><textarea id=\"editbox" + postid + "\" onkeyup=\"resize('editbox" + postid + "');\" name=\"body\" cols=\""+boxWidth+"\" rows=\"10\"></textarea></form>";
$('#bar' + postid).raw().innerHTML = "<input type=\"button\" value=\"Preview\" onclick=\"Preview_Edit(" + postid + ");\" /><input type=\"button\" value=\"Post\" onclick=\"Save_Edit(" + postid + ")\" /><input type=\"button\" value=\"Cancel\" onclick=\"Cancel_Edit(" + postid + ");\" />"; $('#bar' + postid).raw().innerHTML = "<input type=\"button\" value=\"Preview\" onclick=\"Preview_Edit(" + postid + ");\" /><input type=\"button\" value=\"Post\" onclick=\"Save_Edit(" + postid + ")\" /><input type=\"button\" value=\"Cancel\" onclick=\"Cancel_Edit(" + postid + ");\" />";
ajax.get("?action=get_post&post=" + postid, function(response){ ajax.get("?action=get_post&post=" + postid, function(response){
$('#editbox' + postid).raw().value = html_entity_decode(response); $('#editbox' + postid).raw().value = html_entity_decode(response);

View File

@ -26,7 +26,7 @@
id:'extra_format_row_' + count id:'extra_format_row_' + count
}).insertAfter(after); }).insertAfter(after);
$(document.createElement("td")).addClass('label').html("Extra Format " + count).appendTo(master); $(document.createElement("td")).addClass('label').html("Extra format " + count + ":").appendTo(master);
var row = $(document.createElement("td")).appendTo(master); var row = $(document.createElement("td")).appendTo(master);
addFile(row); addFile(row);
addFormats(row); addFormats(row);
@ -111,4 +111,4 @@
} }
})(jQuery); })(jQuery);