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

@ -58,7 +58,7 @@ class TEXT {
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
*/
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 bool $OutputTOC Ouput TOC near (above) text
* @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
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 [*]
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=joe]I am a redneck!**[/quote]
Me too!
@ -303,7 +303,7 @@ private function parse ($Str) {
// 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
// Thus, we have to handle these before we handle the majority of tags

View File

@ -168,7 +168,7 @@ function local_url($Str) {
4) Move the pointer past the end of the 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 [*]
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=joe]I am a redneck!**[/quote]
Me too!

View File

@ -62,7 +62,7 @@ function full_format($Str) {
//Inline links
$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 = preg_replace('/\=\=\=\=([^=].*)\=\=\=\=/i', '[inlinesize=3]$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
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 [*]
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=joe]I am a redneck!**[/quote]
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%">
<? if($this->NewTorrent) { ?>
<tr id="artist_tr">
<td class="label">Artist(s)</td>
<td class="label">Artist(s):</td>
<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>
<? if(!empty($Torrent['Artists'])) {
@ -288,7 +288,7 @@ function show() {
<tr id="year_tr">
<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>
</td>
<td>
@ -297,11 +297,11 @@ function show() {
</td>
</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>
</tr>
<tr id="catalogue_tr">
<td class="label">Catalogue Number (Optional):</td>
<td class="label">Catalogue number (optional):</td>
<td>
<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.
@ -309,7 +309,7 @@ function show() {
</tr>
<tr id="releasetype_tr">
<td class="label">
<span id="releasetype_label">Release Type:</span>
<span id="releasetype_label">Release type:</span>
</td>
<td>
<select id="releasetype" name="releasetype"<?=$this->Disabled?>>
@ -330,7 +330,7 @@ function show() {
</tr>
<? } ?>
<tr>
<td class="label">Edition Information:</td>
<td class="label">Edition information:</td>
<td>
<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.
@ -364,7 +364,7 @@ function show() {
<table id="edition_information" class="layout border" border="0" width="100%">
<tbody>
<tr id="edition_year">
<td class="label">Year (Required):</td>
<td class="label">Year (required):</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";}?> />
</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>
</td>
<tr id="edition_record_label">
<td class="label">Record Label:</td>
<td class="label">Record label:</td>
<td>
<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>
</td>
</tr>
<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";}?> />
<p class="min_padding">This is for the catalogue number of the <strong>release</strong>.</p>
</td>
@ -419,7 +419,7 @@ function show() {
</td>
</tr>
<tr id="bitrate_row">
<td class="label">Bitrate</td>
<td class="label">Bitrate:</td>
<td>
<select id="bitrate" name="bitrate" onchange="Bitrate()">
<option value="">---</option>
@ -459,10 +459,10 @@ function show() {
if($this->NewTorrent) { ?>
<tr id="upload_logs" class="hidden">
<td class="label">
Log Files
Log files:
</td>
<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>]
</td>
</tr>
@ -470,7 +470,7 @@ function show() {
} ?>
<? if($this->NewTorrent) { ?>
<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>
</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>
</tr>
<tr>
<td class="label">Album Description:</td>
<td class="label">Album description:</td>
<td>
<?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>
@ -616,7 +616,7 @@ function show() {
</tr>
<? } // if new torrent ?>
<tr>
<td class="label">Release Description (optional):</td>
<td class="label">Release description (optional):</td>
<td>
<?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>
@ -625,7 +625,7 @@ function show() {
</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
// that generates previews. It will have to be eval'd after an AJAX request.
if ($_SERVER['SCRIPT_NAME'] === '/ajax.php')
@ -720,7 +720,7 @@ function audiobook_form() {
</tr>
<? }?>
<tr>
<td class="label">Release Description (optional):</td>
<td class="label">Release description (optional):</td>
<td>
<?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>

View File

@ -221,7 +221,7 @@
<div class="linkbox">
<? if (!$BookmarkView) {
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')) {
@ -231,18 +231,18 @@
if ($CollageCount == 1) {
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) { ?>
<a href="collages.php?action=mine">[Personal collages]</a>
[<a href="collages.php?action=mine">Personal collages</a>]
<? }
}
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')) { ?>
<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')) {
@ -251,13 +251,13 @@
<?
}
?>
<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']?>">Collages you started</a>]
[<a href="collages.php?userid=<?=$LoggedUser['ID']?>&amp;contrib=1">Collages you contributed to</a>]
<? } else { ?>
<a href="bookmarks.php?type=torrents">[Torrents]</a>
<a href="bookmarks.php?type=artists">[Artists]</a>
<a href="bookmarks.php?type=collages">[Collages]</a>
<a href="bookmarks.php?type=requests">[Requests]</a>
[<a href="bookmarks.php?type=torrents">Torrents</a>]
[<a href="bookmarks.php?type=artists">Artists</a>]
[<a href="bookmarks.php?type=collages">Collages</a>]
[<a href="bookmarks.php?type=requests">Requests</a>]
<? } ?>
<br /><br />
<?
@ -307,7 +307,7 @@
<a href="collages.php?id=<?=$ID?>"><?=$Name?></a>
<? if ($BookmarkView) { ?>
<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>
<? }
if(!empty($Tags)) {

View File

@ -68,7 +68,7 @@
if (!isset($_POST['vote']) || !is_number($_POST['vote'])) {
?>
<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="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="large" value="<?=display_str($_POST['large'])?>" />

View File

@ -334,7 +334,7 @@
//User has not voted
?>
<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="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="large" value="1" />

View File

@ -210,14 +210,14 @@
<tr>
<td colspan="2">
<? 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) { ?>
<span id="claimed_<?=$ReportID?>">Claimed by <?=Users::format_username($ClaimerID, false, false, false, false)?></span>
<? } 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;
<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"?>;">
<textarea cols="50" rows="3" id="notes_<?=$ReportID?>"><?=$Notes?></textarea>
@ -234,11 +234,11 @@
<input type="hidden" name="action" value="takeresolve" />
<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>
<? } ?>
</table>
</form>
</div>
<br />
<?

View File

@ -22,7 +22,7 @@
$Results = $DB->to_array();
?>
<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>
<table style="width: 50%; margin-left: auto; margin-right: auto;" class="border">
<tr>
@ -34,7 +34,7 @@
?>
<tr>
<td><?=$Username?></td>
<td><?=$Reports?></td>
<td><?=number_format($Reports)?></td>
</tr>
<? } ?>
</table>
@ -57,7 +57,7 @@
?>
<tr>
<td><?=$Username?></td>
<td><?=$Reports?></td>
<td><?=number_format($Reports)?></td>
</tr>
<? } ?>
</table>
@ -80,7 +80,7 @@
?>
<tr>
<td><?=$Username?></td>
<td><?=$Reports?></td>
<td><?=number_format($Reports)?></td>
</tr>
<? } ?>
</table>
@ -103,7 +103,7 @@
?>
<tr>
<td><?=$Username?></td>
<td><?=$Reports?></td>
<td><?=number_format($Reports)?></td>
</tr>
<? } ?>
</table>
@ -131,7 +131,7 @@
<tr>
<td><?=$i?></td>
<td><?=$Username?></td>
<td><?=$Trashed?></td>
<td><?=number_format($Trashed)?></td>
</tr>
<? $i++; } ?>
</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.
* The important function is AddMore().
*/
@ -10,7 +10,7 @@
View::show_header('Reports V2!', 'reportsv2');
?>
<script type="text/javascript">
<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') {
@ -21,7 +21,7 @@ function Taste(torrent_id, report_id, taste) {
}
});
}
</script>
//]]></script>
<div class="header">
<h2>New reports, auto assigned!</h2>

View File

@ -610,7 +610,7 @@
</td>
<td class="nobr">
<? 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>
<input type="hidden" id="requestid_<?=$RequestID?>" name="requestid" value="<?=$RequestID?>" />
<input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -45,7 +45,7 @@
</div>
<!-- Uploading Rules Index Links -->
<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)" />
<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>

View File

@ -38,7 +38,7 @@
</div>
<div style="text-align: center">
<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="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="doit" value="1" />

View File

@ -60,7 +60,7 @@
while (list($ID, $BadTag, $AliasTag) = $DB -> next_record()) {
?>
<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="aliasid" value="<?=$ID?>" />
<td>

View File

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

View File

@ -54,10 +54,10 @@
<div class="header">
<h2>Top <?=$Limit?> Torrents</h2>
<div class="linkbox">
<a href="top10.php?type=torrents"><strong>[Torrents]</strong></a>
<a href="top10.php?type=users">[Users]</a>
<a href="top10.php?type=tags">[Tags]</a>
<a href="top10.php?type=votes">[Favorites]</a>
[<a href="top10.php?type=torrents"><strong>Torrents</strong></a>]
[<a href="top10.php?type=users">Users</a>]
[<a href="top10.php?type=tags">Tags</a>]
[<a href="top10.php?type=votes">Favorites</a>]
</div>
</div>
<?
@ -71,8 +71,8 @@
<td class="label">Tags (comma-separated):</td>
<td class="ft_taglist">
<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="rdoAny" name="anyall" value="any"<?=($_GET['anyall']=='any'?' checked="checked"':'')?>><label for="rdoAny"> Any</label>
<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>
</td>
</tr>
<tr>
@ -125,7 +125,7 @@
?>
<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>
<?

View File

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

View File

@ -92,10 +92,10 @@
<div class="header">
<h2>Top <?=$Limit?> Voted Groups</h2>
<div class="linkbox">
<a href="top10.php?type=torrents">[Torrents]</a>
<a href="top10.php?type=users">[Users]</a>
<a href="top10.php?type=tags">[Tags]</a>
<a href="top10.php?type=votes"><strong>[Favorites]</strong></a>
[<a href="top10.php?type=torrents">Torrents</a>]
[<a href="top10.php?type=users">Users</a>]
[<a href="top10.php?type=tags">Tags</a>]
[<a href="top10.php?type=votes"><strong>Favorites</strong></a>]
</div>
</div>
<?
@ -109,8 +109,8 @@
<td class="label">Tags (comma-separated):</td>
<td class="ft_taglist">
<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="rdoAny" name="anyall" value="any"<?=($_GET['anyall']=='any'?' checked="checked"':'')?>><label for="rdoAny"> Any</label>
<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>
</td>
</tr>
<tr id="yearfilter">

View File

@ -544,7 +544,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
View::show_header($Title,'browse');
?>
<form name="filter" method="get" action=''>
<form name="filter" method="get" action="">
<? if($UserID) { ?>
<input type="hidden" name="type" value="<?=display_str($_GET['type'])?>" />
<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')?>">
<td><a href="requests.php?action=view&amp;id=<?=$Request['ID']?>"><?=$FormatString?> / <?=$BitrateString?> / <?=$MediaString?></a></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>
<input type="hidden" id="requestid_<?=$Request['ID']?>" name="requestid" value="<?=$Request['ID']?>" />
<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>Email</td>
<td>Joined</td>
<td>Last Seen</td>
<td>Last seen</td>
<td>Upload</td>
<td>Download</td>
<td>Downloads</td>

View File

@ -112,7 +112,7 @@ function checked($Checked) {
<td>
<select name="disablegrouping" id="disablegrouping">
<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 name="torrentgrouping" id="torrentgrouping">
<option value="0"<? if ($SiteOptions['TorrentGrouping'] == 0) { ?>selected="selected"<? } ?>>Groups are open by default</option>
@ -130,10 +130,10 @@ function checked($Checked) {
</td>
</tr>
<tr>
<td class="label"><strong>Show Snatched Torrents</strong></td>
<td class="label"><strong>Show snatched torrents</strong></td>
<td>
<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>
</tr>
<tr>
@ -203,10 +203,10 @@ function checked($Checked) {
</td>
</tr>
<tr>
<td class="label"><strong>Quote Notifications</strong></td>
<td class="label"><strong>Quote notifications</strong></td>
<td>
<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>
</tr>
<tr>
@ -217,7 +217,7 @@ function checked($Checked) {
</td>
</tr>
<tr>
<td class="label"><strong>Mature Content</strong></td>
<td class="label"><strong>Mature content</strong></td>
<td>
<input type="checkbox" name="enablematurecontent" id="enablematurecontent" <? if (!empty($SiteOptions['EnableMatureContent'])) { ?>checked="checked"<? } ?> />
<label for="enablematurecontent">Show mature content</label>
@ -245,7 +245,7 @@ function checked($Checked) {
</tr>
<!-- -->
<tr>
<td class="label"><strong>Auto-save Text</strong></td>
<td class="label"><strong>Auto-save text</strong></td>
<td>
<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>
@ -262,7 +262,7 @@ function checked($Checked) {
<td class="label"><strong>Download torrents as text files</strong></td>
<td>
<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>
</tr>
<tr>
@ -291,9 +291,9 @@ function checked($Checked) {
</td>
</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)?>" />
<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>
</tr>
@ -456,7 +456,7 @@ function checked($Checked) {
<td>
<label><input type="checkbox" name="resetpasskey" />
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>
</tr>
<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=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=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>
</tr>
<?

View File

@ -843,8 +843,11 @@ function check_paranoia_here($Setting) {
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<div class="box">
<div class="head">Staff Notes <a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;">(Edit)</a></div>
<div class="pad">
<div class="head">Staff Notes
<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?>" />
<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>
@ -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="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="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>
<br />
<input type="checkbox" name="DisableUpload" id="DisableUpload"<? if ($DisableUpload==1) { ?>checked="checked"<? } ?> /> <label for="DisableUpload">Upload</label> |

View File

@ -41,7 +41,7 @@ function Edit_Form(post,key) {
}
$('#bar' + postid).raw().cancel = $('#content' + 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 + ");\" />";
ajax.get("?action=get_post&post=" + postid, function(response){
$('#editbox' + postid).raw().value = html_entity_decode(response);

View File

@ -26,7 +26,7 @@
id:'extra_format_row_' + count
}).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);
addFile(row);
addFormats(row);