Empty commit

This commit is contained in:
Git 2013-02-23 08:00:22 +00:00
parent c2746069c1
commit 019c241d08
32 changed files with 326 additions and 244 deletions

View File

@ -385,11 +385,11 @@ public static function form($Index, $Return = false) {
/**
* Convenience function to echo out selected='selected' and checked='checked' so you don't have to.
* Convenience function to echo out selected="selected" and checked="checked" so you don't have to.
*
* @param $Name the name of the option in the select (or field in $Array)
* @param $Value the value that the option must be for the option to be marked as selected or checked
* @param $Attribute The value returned/echoed is $Attribute="$Attribute"
* @param $Attribute The value returned/echoed is $Attribute="$Attribute" with a leading space
* @param $Array The array the option is in, defaults to GET.
* @return
*/
@ -405,7 +405,7 @@ public static function selected($Name, $Value, $Attribute='selected', $Array = a
}
/**
* Return a css class name if certain conditions are met. Mainly useful to mark links as 'active'
* Return a CSS class name if certain conditions are met. Mainly useful to mark links as 'active'
*
* @param mixed $Target The variable to compare all values against
* @param mixed $Tests The condition values. Type and dimension determines test type

View File

@ -51,12 +51,12 @@ function head() {
<div class="thin">
<? if($this->NewTorrent) { ?>
<p style="text-align: center;">
Your personal announce url is:<br />
<input type="text" value="<?= ANNOUNCE_URL.'/'.$LoggedUser['torrent_pass'].'/announce'?>" size="71" onclick="this.select()" readonly="readonly"/>
Your personal announce URL is:<br />
<input type="text" value="<?= ANNOUNCE_URL.'/'.$LoggedUser['torrent_pass'].'/announce'?>" size="71" onclick="this.select()" readonly="readonly" />
</p>
<? }
if($this->Error) {
echo '<p style="color: red;text-align:center;">'.$this->Error.'</p>';
echo '<p style="color: red; text-align: center;">'.$this->Error.'</p>';
}
?>
<form class="create_form" name="torrent" action="" enctype="multipart/form-data" method="post" id="upload_table" onsubmit="$('#post').raw().disabled = 'disabled'">
@ -88,9 +88,9 @@ function head() {
<td>
<select id="categories" name="type" onchange="Categories()"<?=$this->Disabled?>>
<? foreach(Misc::display_array($this->Categories) as $Index => $Cat) {
echo "<option value=\"$Index\"";
if($Cat == $this->Torrent['CategoryName']) { echo " selected='selected'"; }
echo ">";
echo '<option value="'.$Index.'"';
if($Cat == $this->Torrent['CategoryName']) { echo ' selected="selected"'; }
echo '>';
echo $Cat;
echo "</option>\n";
}
@ -119,14 +119,14 @@ function foot() {
<select name="freeleech">
<? $FL = array("Normal", "Free", "Neutral");
foreach($FL as $Key => $Name) { ?>
<option value="<?=$Key?>" <?=($Key == $Torrent['FreeTorrent'] ? ' selected="selected"' : '')?>><?=$Name?></option>
<option value="<?=$Key?>"<?=($Key == $Torrent['FreeTorrent'] ? ' selected="selected"' : '')?>><?=$Name?></option>
<? } ?>
</select>
because
<select name="freeleechtype">
<? $FL = array("N/A", "Staff Pick", "Perma-FL", "Vanity House");
foreach($FL as $Key => $Name) { ?>
<option value="<?=$Key?>" <?=($Key == $Torrent['FreeLeechType'] ? ' selected="selected"' : '')?>><?=$Name?></option>
<option value="<?=$Key?>"<?=($Key == $Torrent['FreeLeechType'] ? ' selected="selected"' : '')?>><?=$Name?></option>
<? } ?>
</select>
</td>
@ -141,7 +141,7 @@ function foot() {
<? if($this->NewTorrent) { ?>
<p>After uploading the torrent, you will have a one hour grace period during which no one other than you can fill requests with this torrent. Make use of this time wisely, and <a href="requests.php">search the list of requests</a>.</p>
<? } ?>
<input id="post" type="submit" <? if($this->NewTorrent) { echo "value=\"Upload torrent\""; } else { echo "value=\"Edit torrent\"";} ?> />
<input id="post" type="submit" <? if($this->NewTorrent) { echo 'value="Upload torrent"'; } else { echo 'value="Edit torrent"';} ?> />
</td>
</tr>
</table>
@ -192,14 +192,14 @@ function music_form($GenreTags) {
<tr id="artist_tr">
<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>
<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.</p>
<? if(!empty($Torrent['Artists'])) {
$FirstArtist = true;
foreach($Torrent['Artists'] as $Importance => $Artists) {
foreach($Artists as $Artist) {
?>
<input type="text" id="artist" name="artists[]" size="45" value="<?=display_str($Artist['name']) ?>" onblur="CheckVA();" <?=$this->Disabled?>/>
<select id="importance" name="importance[]" <?=$this->Disabled?>>
<input type="text" id="artist" name="artists[]" size="45" value="<?=display_str($Artist['name']) ?>" onblur="CheckVA();"<?=$this->Disabled?> />
<select id="importance" name="importance[]"<?=$this->Disabled?>>
<option value="1"<?=($Importance == '1' ? ' selected="selected"' : '')?>>Main</option>
<option value="2"<?=($Importance == '2' ? ' selected="selected"' : '')?>>Guest</option>
<option value="4"<?=($Importance == '4' ? ' selected="selected"' : '')?>>Composer</option>
@ -218,8 +218,8 @@ function music_form($GenreTags) {
}
} else {
?>
<input type="text" id="artist" name="artists[]" size="45" onblur="CheckVA();"<?=$this->Disabled?>/>
<select id="importance" name="importance[]" <?=$this->Disabled?>>
<input type="text" id="artist" name="artists[]" size="45" onblur="CheckVA();"<?=$this->Disabled?> />
<select id="importance" name="importance[]"<?=$this->Disabled?>>
<option value="1">Main</option>
<option value="2">Guest</option>
<option value="4">Composer</option>
@ -238,7 +238,7 @@ function music_form($GenreTags) {
<td class="label">Album title:</td>
<td>
<input type="text" id="title" name="title" size="60" value="<?=display_str($Torrent['Title']) ?>"<?=$this->Disabled?> />
<p class="min_padding">Do not include the words remaster, re-issue, MSFL Gold, limited edition, bonus tracks, bonus disc or country-specific information in this field. That belongs in the edition information fields below; see <a href="wiki.php?action=article&amp;id=159" target="_blank">this</a> for further information. Also remember to use the correct capitalization for your upload. See the <a href="wiki.php?action=article&amp;id=317" target="_blank">Capitalization Guidelines</a> for more information.
<p class="min_padding">Do not include the words remaster, re-issue, MFSL Gold, limited edition, bonus tracks, bonus disc or country-specific information in this field. That belongs in the edition information fields below; see <a href="wiki.php?action=article&amp;id=159" target="_blank">this</a> for further information. Also remember to use the correct capitalization for your upload. See the <a href="wiki.php?action=article&amp;id=317" target="_blank">Capitalization Guidelines</a> for more information.</p>
</td>
</tr>
<tr id="musicbrainz_tr">
@ -292,7 +292,7 @@ function show() {
<span id="year_label_remaster"<? if(!$IsRemaster) { echo ' class="hidden"';}?>>Year of original release</span>
</td>
<td>
<p id="yearwarning" class="hidden">You have entered a year for a release which predates the medium's availibility. You will need to change the year, enter additional edition information. If this information cannot be provided, select the &quot;Unknown Release&quot; checkbox below</p>
<p id="yearwarning" class="hidden">You have entered a year for a release which predates the medium's availability. You will need to change the year and enter additional edition information. If this information cannot be provided, check the &quot;Unknown Release&quot; checkbox below</p>
<input type="text" id="year" name="year" size="5" value="<?=display_str($Torrent['Year']) ?>"<?=$this->Disabled?> onblur="CheckYear();" /> This is the year of the original release.
</td>
</tr>
@ -315,15 +315,13 @@ function show() {
<select id="releasetype" name="releasetype"<?=$this->Disabled?>>
<option>---</option>
<?
foreach ($ReleaseTypes as $Key => $Val) {
echo "<option value='$Key'";
if($Key == $Torrent['ReleaseType']) { echo " selected='selected'"; }
echo ">";
echo '<option value="'.$Key.'"';
if($Key == $Torrent['ReleaseType']) { echo ' selected="selected"'; }
echo '>';
echo $Val;
echo "</option>\n";
}
?>
</select> Please take the time to fill this out properly (try searching <a href="http://musicbrainz.org/search.html" target="_blank">MusicBrainz</a>).
</td>
@ -332,17 +330,17 @@ function show() {
<tr>
<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.
<input type="checkbox" id="remaster" name="remaster"<? if($IsRemaster) { echo ' checked="checked"';}?> onclick="Remaster();<?if($this->NewTorrent) {?> CheckYear();<? } ?>" />
<label for="remaster">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.</label>
<div id="remaster_true"<? if(!$IsRemaster) { echo ' class="hidden"';}?>>
<? if(check_perms('edit_unknowns') || $LoggedUser['ID'] == $Torrent['UserID']) { ?>
<br />
<input type="checkbox" id="unknown" name="unknown"<? if($UnknownRelease) { echo " checked='checked'";}?> onclick="<?if($this->NewTorrent) {?> CheckYear();<? } ?>ToggleUnknown();" /> Unknown Release
<input type="checkbox" id="unknown" name="unknown"<? if($UnknownRelease) { echo ' checked="checked"';}?> onclick="<?if($this->NewTorrent) {?> CheckYear();<? } ?>ToggleUnknown();" /> <label for="unknown">Unknown Release</label>
<? } ?>
<br /><br />
<? if(!empty($GroupRemasters)) { ?>
<input type="hidden" id="json_remasters" value="<?=display_str(json_encode($GroupRemasters))?>" />
<select id="groupremasters" name="groupremasters" onchange="GroupRemaster()"<? if($UnknownRelease) { echo " disabled";}?>>
<select id="groupremasters" name="groupremasters" onchange="GroupRemaster()"<? if($UnknownRelease) { echo ' disabled="disabled"';}?>>
<option value="">-------</option>
<?
$LastLine = "";
@ -366,25 +364,26 @@ function show() {
<tr id="edition_year">
<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";}?> />
<input type="text" id="remaster_year" name="remaster_year" size="5" value="<? if($Torrent['RemasterYear']) { echo display_str($Torrent['RemasterYear']);} ?>"<? if($UnknownRelease) { echo ' disabled="disabled"';}?> />
</td>
</tr>
<tr id="edition_title">
<td class="label">Title:</td>
<td>
<input type="text" id="remaster_title" name="remaster_title" size="50" value="<?=display_str($Torrent['RemasterTitle']) ?>"<? if($UnknownRelease) { echo " disabled";}?> />
<input type="text" id="remaster_title" name="remaster_title" size="50" value="<?=display_str($Torrent['RemasterTitle']) ?>"<? if($UnknownRelease) { echo ' disabled="disabled"';}?> />
<p class="min_padding">Title of the release (e.g. <span style="font-style: italic;">'Deluxe Edition' or 'Remastered'</span>).</p>
</td>
</tr>
<tr id="edition_record_label">
<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";}?> />
<input type="text" id="remaster_record_label" name="remaster_record_label" size="50" value="<?=display_str($Torrent['RemasterRecordLabel']) ?>"<? if($UnknownRelease) { echo ' disabled="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><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="disabled"';}?> />
<p class="min_padding">This is for the catalogue number of the <strong>release</strong>.</p>
</td>
</tr>
@ -396,8 +395,8 @@ function show() {
<tr>
<td class="label">Scene:</td>
<td>
<input type="checkbox" id="scene" name="scene" <? if($Torrent['Scene']) { echo "checked='checked' ";}?>/>
Check this only if this is a 'scene release'.<br />If you ripped it yourself, it is <strong>not</strong> a scene release. If you are not sure, <strong class="important_text">do not</strong> check it; you will be penalized. For information on the scene, visit <a href="http://en.wikipedia.org/wiki/Scene_%28software%29" target="_blank">Wikipedia</a>.
<input type="checkbox" id="scene" name="scene" <? if($Torrent['Scene']) { echo 'checked="checked" ';}?>/>
<label for="scene">Check this only if this is a 'scene release'.<br />If you ripped it yourself, it is <strong>not</strong> a scene release. If you are not sure, <strong class="important_text">do not</strong> check it; you will be penalized. For information on the scene, visit <a href="http://en.wikipedia.org/wiki/Scene_%28software%29" target="_blank">Wikipedia</a>.</label>
</td>
</tr>
<tr>
@ -406,12 +405,12 @@ function show() {
<select id="format" name="format" onchange="Format()">
<option>---</option>
<? foreach(Misc::display_array($this->Formats) as $Format) {
echo "<option value='$Format'";
if($Format == $Torrent['Format']) { echo " selected='selected'"; }
echo ">";
echo '<option value="'.$Format.'"';
if($Format == $Torrent['Format']) { echo ' selected="selected"'; }
echo '>';
echo $Format;
echo "</option>\n";
// <option value='$Format' selected='selected'>$Format</option>
// <option value="$Format" selected="selected">$Format</option>
}
?>
</select>
@ -440,17 +439,17 @@ function show() {
foreach(Misc::display_array($this->Bitrates) as $Bitrate) {
echo "<option value='$Bitrate'";
echo '<option value="'.$Bitrate.'"';
if(($SimpleBitrate && preg_match('/^'.$SimpleBitrate.'.*/', $Bitrate)) || ($OtherBitrate && $Bitrate == "Other")) {
echo ' selected="selected"';
}
echo ">";
echo '>';
echo $Bitrate;
echo "</option>\n";
} ?>
</select>
<span id="other_bitrate_span"<? if(!$OtherBitrate) { echo ' class="hidden"'; } ?>>
<input type="text" name="other_bitrate" size="5" id="other_bitrate"<? if($OtherBitrate) { echo " value='".display_str($Torrent['Bitrate'])."'";} ?> onchange="AltBitrate()" />
<input type="text" name="other_bitrate" size="5" id="other_bitrate"<? if($OtherBitrate) { echo ' value="'.display_str($Torrent['Bitrate']).'"';} ?> onchange="AltBitrate()" />
<input type="checkbox" id="vbr" name="vbr"<? if(isset($VBR)) { echo ' checked="checked"'; } ?> /><label for="vbr"> (VBR)</label>
</span>
</td>
@ -491,9 +490,9 @@ function show() {
<select name="media" onchange="Media(); CheckYear();" id="media">
<option>---</option>
<? foreach($this->Media as $Media) {
echo "<option value='$Media'";
if(isset($Torrent['Media']) && $Media == $Torrent['Media']) { echo " selected='selected'"; }
echo ">";
echo '<option value="'.$Media.'"';
if(isset($Torrent['Media']) && $Media == $Torrent['Media']) { echo ' selected="selected"'; }
echo '>';
echo $Media;
echo "</option>\n";
}
@ -506,8 +505,8 @@ function show() {
<tr>
<td class="label">Log/Cue:</td>
<td>
<input type="checkbox" id="flac_log" name="flac_log"<? if($HasLog) { echo " checked='checked'";}?> /> Check this box if the torrent has (or should have) a log file.<br />
<input type="checkbox" id="flac_cue" name="flac_cue"<? if($HasCue) { echo " checked='checked'";}?> /> Check this box if the torrent has (or should have) a cue file.<br />
<input type="checkbox" id="flac_log" name="flac_log"<? if($HasLog) { echo ' checked="checked"';}?> /> <label for="flac_log">Check this box if the torrent has, or should have, a log file.</label><br />
<input type="checkbox" id="flac_cue" name="flac_cue"<? if($HasCue) { echo ' checked="checked"';}?> /> <label for="flac_cue">Check this box if the torrent has, or should have, a cue file.</label><br />
<?
}
global $LoggedUser;
@ -524,7 +523,7 @@ function show() {
<?
}
?>
<input type="checkbox" id="make_trumpable" name="make_trumpable"<? if ($Torrent['LogScore'] == 99) { echo " checked='checked'";}?>/> Check this box if you want this torrent to be trumpable (subtracts 1 point).
<input type="checkbox" id="make_trumpable" name="make_trumpable"<? if ($Torrent['LogScore'] == 99) { echo ' checked="checked"';}?> /> <label for="make_trumpable">Check this box if you want this torrent to be trumpable (subtracts 1 point).</label>
<?
if (!check_perms('users_mod')) {
?> </td>
@ -538,40 +537,40 @@ function show() {
</tr>
<?/* if($HasLog) { ?>
<tr>
<td class="label">Log Score</td>
<td class="label">Log score</td>
<td><input type="text" name="log_score" size="5" id="log_score" value="<?=display_str($Torrent['LogScore']) ?>" /></td>
</tr>
<tr>
<td class="label">Log Adjustment Reason</td>
<td class="label">Log adjustment reason</td>
<td>
<textarea name="adjustment_reason" id="adjustment_reason" cols="60" rows="8"><?=display_str($Torrent['AdjustmentReason']); ?></textarea>
<p class="min_padding">Contains reason for adjusting a score. <strong>This field is displayed on the torrent page</strong>.</p>
<p class="min_padding">Contains reason for adjusting a score. <strong>This field is displayed on the torrent page.</strong></p>
</td>
</tr>
<? }*/?>
<tr>
<td class="label">Bad Tags:</td>
<td><input type="checkbox" id="bad_tags" name="bad_tags"<? if($BadTags) { echo " checked='checked'";}?>/> Check this box if the torrent has bad tags.</td>
<td class="label">Bad tags:</td>
<td><input type="checkbox" id="bad_tags" name="bad_tags"<? if($BadTags) { echo ' checked="checked"';}?> /> <label for="bad_tags">Check this box if the torrent has bad tags.</label></td>
</tr>
<tr>
<td class="label">Bad Folder Names:</td>
<td><input type="checkbox" id="bad_folders" name="bad_folders"<? if($BadFolders) { echo " checked='checked'";}?>/> Check this box if the torrent has bad folder names.</td>
<td class="label">Bad folder names:</td>
<td><input type="checkbox" id="bad_folders" name="bad_folders"<? if($BadFolders) { echo ' checked="checked"';}?> /> <label for="bad_folders">Check this box if the torrent has bad folder names.</label></td>
</tr>
<tr>
<td class="label">Bad File Names:</td>
<td><input type="checkbox" id="bad_files" name="bad_files"<? if ($BadFiles) {echo " checked='checked'";}?>/> Check this box if the torrent has bad file names.</td>
<td class="label">Bad file names:</td>
<td><input type="checkbox" id="bad_files" name="bad_files"<? if ($BadFiles) {echo ' checked="checked"';}?> /> <label for="bad_files">Check this box if the torrent has bad file names.</label></td>
</tr>
<tr>
<td class="label">Cassette Approved:</td>
<td><input type="checkbox" id="cassette_approved" name="cassette_approved"<? if ($CassetteApproved) {echo " checked='checked'";}?>/> Check this box if the torrent is an approved cassette rip.</td>
<td class="label">Cassette approved:</td>
<td><input type="checkbox" id="cassette_approved" name="cassette_approved"<? if ($CassetteApproved) {echo ' checked="checked"';}?> /> <label for="cassette_approved">Check this box if the torrent is an approved cassette rip.</label></td>
</tr>
<tr>
<td class="label">Lossy Master Approved:</td>
<td><input type="checkbox" id="lossymaster_approved" name="lossymaster_approved"<? if ($LossymasterApproved) {echo " checked='checked'";}?>/> Check this box if the torrent is an approved lossy master.</td>
<td class="label">Lossy master approved:</td>
<td><input type="checkbox" id="lossymaster_approved" name="lossymaster_approved"<? if ($LossymasterApproved) {echo ' checked="checked"';}?> /> <label for="lossymaster_approved">Check this box if the torrent is an approved lossy master.</label></td>
</tr>
<tr>
<td class="label">Lossy Web Approved:</td>
<td><input type="checkbox" id="lossyweb_approved" name="lossyweb_approved"<? if ($LossywebApproved) { echo " checked='checked'";}?>/> Check this box if the torrent is an approved lossy WEB release.</td>
<td class="label">Lossy web approved:</td>
<td><input type="checkbox" id="lossyweb_approved" name="lossyweb_approved"<? if ($LossywebApproved) { echo ' checked="checked"';}?> /> <label for="lossyweb_approved">Check this box if the torrent is an approved lossy WEB release.</label></td>
</tr>
<? }?>
<? if($this->NewTorrent) { ?>
@ -579,14 +578,14 @@ function show() {
<td class="label">Tags:</td>
<td>
<? if($GenreTags) { ?>
<select id="genre_tags" name="genre_tags" onchange="add_tag();return false;" <?=$this->Disabled?>>
<select id="genre_tags" name="genre_tags" onchange="add_tag();return false;"<?=$this->Disabled?>>
<option>---</option>
<? foreach(Misc::display_array($GenreTags) as $Genre) { ?>
<option value="<?=$Genre ?>"><?=$Genre ?></option>
<? } ?>
</select>
<? } ?>
<input type="text" id="tags" name="tags" size="40" value="<?=display_str($Torrent['TagList']) ?>" <?=$this->Disabled?>/>
<input type="text" id="tags" name="tags" size="40" value="<?=display_str($Torrent['TagList']) ?>"<?=$this->Disabled?> />
<br />
Tags should be comma-separated, and you should use a period (".") to separate words inside a tag &mdash; e.g. "<strong class="important_text_alt">hip.hop</strong>".
<br /><br />
@ -605,7 +604,7 @@ function show() {
</tr>
<tr>
<td class="label">Image (optional):</td>
<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>
<td class="label">Album description:</td>
@ -658,9 +657,9 @@ function audiobook_form() {
<option value="">---</option>
<?
foreach(Misc::display_array($this->Formats) as $Format) {
echo "<option value='$Format'";
if($Format == $Torrent['Format']) { echo " selected='selected'"; }
echo ">";
echo '<option value="'.$Format.'"';
if($Format == $Torrent['Format']) { echo ' selected="selected"'; }
echo '>';
echo $Format;
echo "</option>\n";
}
@ -684,18 +683,18 @@ function audiobook_form() {
$OtherBitrate = false;
}
foreach(Misc::display_array($this->Bitrates) as $Bitrate) {
echo "<option value='$Bitrate'";
echo '<option value="'.$Bitrate.'"';
if($Bitrate == $Torrent['Bitrate'] || ($OtherBitrate && $Bitrate == "Other")) {
echo " selected='selected'";
echo ' selected="selected"';
}
echo ">";
echo '>';
echo $Bitrate;
echo "</option>\n";
}
?>
</select>
<span id="other_bitrate_span"<? if(!$OtherBitrate) { echo ' class="hidden"'; } ?> >
<input type="text" name="other_bitrate" size="5" id="other_bitrate"<? if($OtherBitrate) { echo " value='".display_str($Torrent['Bitrate'])."'";} ?> onchange="AltBitrate()" />
<span id="other_bitrate_span"<? if(!$OtherBitrate) { echo ' class="hidden"'; } ?>>
<input type="text" name="other_bitrate" size="5" id="other_bitrate"<? if($OtherBitrate) { echo ' value="'.display_str($Torrent['Bitrate']).'"';} ?> onchange="AltBitrate()" />
<input type="checkbox" id="vbr" name="vbr"<? if(isset($VBR)) { echo ' checked="checked"'; } ?> /><label for="vbr"> (VBR)</label>
</span>
</td>
@ -709,7 +708,7 @@ function audiobook_form() {
</tr>
<tr>
<td class="label">Image (optional):</td>
<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>
<td class="label">Description:</td>
@ -750,7 +749,7 @@ function simple_form($CategoryID) {
</tr>
<tr>
<td class="label">Image (optional):</td>
<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>
<td class="label">Description:</td>

View File

@ -393,13 +393,7 @@ public static function update_hash($GroupID) {
Leechers, LogScore, CAST(Scene AS CHAR), CAST(HasLog AS CHAR), CAST(HasCue AS CHAR),
CAST(FreeTorrent AS CHAR), Media, Format, Encoding,
RemasterYear, RemasterTitle, RemasterRecordLabel, RemasterCatalogueNumber,
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(FileList,
'.flac{', ' .flac{'),
'.mp3{', ' .mp3{'),
'\n', ' \n'),
'|||', '\n '),
'_', ' ')
AS FileList, $VoteScore, '".db_string($ArtistName)."'
REPLACE(FileList, '_', ' ') AS FileList, $VoteScore, '".db_string($ArtistName)."'
FROM torrents AS t
JOIN torrents_group AS g ON g.ID=t.GroupID
WHERE g.ID=$GroupID");
@ -482,6 +476,7 @@ public static function filelist_format_file($File) {
list($Size, $Name) = $File;
$Name = Format::make_utf8(strtr($Name, "\n\r\t", " "));
$ExtPos = strrpos($Name, '.');
// Should not be $ExtPos !== false. Extensionless files that start with a . should not get extensions
$Ext = $ExtPos ? trim(substr($Name, $ExtPos+1)) : '';
return sprintf("%s s%ds %s %s", ".$Ext", $Size, $Name, self::filelist_delim());
}

View File

@ -450,7 +450,7 @@ function compare($X, $Y){
}
$MasterName .= $AddExtra.display_str($Torrent['Media']);
?>
<tr class="releases_<?=$ReleaseType?> groupid_<?=$GroupID?> edition group_torrent<?=$SnatchedGroupClass . $HideDiscog . $HideTorrents?>">
<tr class="releases_<?=$ReleaseType?> groupid_<?=$GroupID?> edition group_torrent discog<?=$SnatchedGroupClass . $HideDiscog . $HideTorrents?>">
<td colspan="6" class="edition_info"><strong><a href="#" onclick="toggle_edition(<?=$GroupID?>, <?=$EditionID?>, this, event)" title="Collapse this edition. Hold &quot;Ctrl&quot; while clicking to collapse all editions in this torrent group.">&minus;</a> <?=$MasterName?></strong></td>
</tr>
<?

View File

@ -5,21 +5,21 @@
<div class="thin">
<h3 id="general">Pursuit of Perfection</h3>
<div class="box pad" style="padding:10px 10px 10px 20px;">
<p>Here at What, we believe that there's always room for improvement, and to aid our effort in the pursuit of perfection we've put together a few simple lists that can help you build ratio, and help us improve our overall quality. Each list features 100 torrents at a time and updates every 15 minutes.</p>
<p>Here at What.CD, we believe that there's always room for improvement. To aid our effort in the pursuit of perfection, we've put together a few simple lists that can help you build ratio and help us improve our overall quality. Most lists feature 100 torrents at a time and update every 15 minutes.</p>
</div>
<h3 id="lists">Lists</h3>
<div class="box pad" style="padding:10px 10px 10px 20px;">
<table width="100%">
<tr class="colhead">
<td style="width:150px;">Method</td>
<td style="width:400px;">Additional Info</td>
<td style="width:400px;">Additional information</td>
</tr>
<tr class="rowb">
<td class="nobr">
<a href="better.php?method=transcode&amp;type=0">Transcoding V0</a>
</td>
<td class="nobr">
When a perfect lossless rip is available and we don't have the <a href="<?=STATIC_SERVER?>common/perfect.gif">'perfect 3'</a>.
When a perfect lossless rip is available and we don't have the <a href="<?=STATIC_SERVER?>common/perfect.gif">"perfect 3"</a>.
</td>
</tr>
<tr class="rowb">
@ -27,7 +27,7 @@
<a href="better.php?method=transcode&amp;type=1">Transcoding V2</a>
</td>
<td class="nobr">
When a perfect lossless rip is available and we don't have the <a href="<?=STATIC_SERVER?>common/perfect.gif">'perfect 3'</a>.
When a perfect lossless rip is available and we don't have the <a href="<?=STATIC_SERVER?>common/perfect.gif">"perfect 3"</a>.
</td>
</tr>
<tr class="rowb">
@ -35,15 +35,15 @@
<a href="better.php?method=transcode&amp;type=2">Transcoding 320</a>
</td>
<td class="nobr">
When a perfect lossless rip is available and we don't have the <a href="<?=STATIC_SERVER?>common/perfect.gif">'perfect 3'</a>.
When a perfect lossless rip is available and we don't have the <a href="<?=STATIC_SERVER?>common/perfect.gif">"perfect 3"</a>.
</td>
</tr>
<tr class="rowb">
<td class="nobr">
<a href="better.php?method=transcode&amp;type=3">Transcoding All</a>
<a href="better.php?method=transcode&amp;type=3">Transcoding all</a>
</td>
<td class="nobr">
When a perfect lossless rip is available and we don't have any of the <a href="<?=STATIC_SERVER?>common/perfect.gif">'perfect 3'</a>
When a perfect lossless rip is available and we don't have any of the <a href="<?=STATIC_SERVER?>common/perfect.gif">"perfect 3"</a>
</td>
</tr>
<tr class="rowb">
@ -67,31 +67,31 @@
<a href="better.php?method=tags&amp;filter=all">Tags</a>
</td>
<td class="nobr">
Torrents that have been marked as having 'Very bad tags' or 'No tags at all'.
Torrents that have been marked as having "Very bad tags" or "No tags at all".
</td>
</tr>
<tr class="rowb">
<td class="nobr">
<a href="better.php?method=folders">Folder Names</a>
<a href="better.php?method=folders">Folder names</a>
</td>
<td class="nobr">
Torrents that have been marked as having 'Very bad folder names' or 'No folder names at all'.
Torrents that have been marked as having "Very bad folder names" or "No folder names at all".
</td>
</tr>
<tr class="rowb">
<td class="nobr">
<a href="better.php?method=files">File Names</a>
<a href="better.php?method=files">File names</a>
</td>
<td class="nobr">
Torrents that have been marked as having 'Bad File Names'.
Torrents that have been marked as having "Bad File Names".
</td>
</tr>
<tr class="rowb">
<td class="nobr">
<a href="better.php?method=single">Single seeded FLAC torrents</a>
<a href="better.php?method=single">Single-seeded FLAC torrents</a>
</td>
<td class="nobr">
FLAC torrents that only have one seeder, show them some love!
FLAC torrents that only have one seeder; show them some love!
</td>
</tr>

View File

@ -33,6 +33,7 @@
<? } ?>
<div class="linkbox">
<a href="better.php" class="brackets">Back to better.php list</a>
<? if($All) { ?>
<a href="better.php?method=files" class="brackets">Show only those you have snatched</a>
<? } else { ?>
@ -41,7 +42,7 @@
</div>
</div>
<div class="thin box pad">
<h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3>
<h3>There are <?=number_format(count($TorrentsInfo))?> torrents remaining</h3>
<table class="torrent_table">
<?
foreach ($TorrentsInfo as $TorrentID => $Info) {

View File

@ -33,6 +33,7 @@
<? } ?>
<div class="linkbox">
<a href="better.php" class="brackets">Back to better.php list</a>
<? if($All) { ?>
<a href="better.php?method=folders" class="brackets">Show only those you have snatched</a>
<? } else { ?>
@ -41,7 +42,7 @@
</div>
</div>
<div class="thin box pad">
<h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3>
<h3>There are <?=number_format(count($TorrentsInfo))?> torrents remaining</h3>
<table class="torrent_table">
<?
foreach ($TorrentsInfo as $TorrentID => $Info) {
@ -74,7 +75,7 @@
$TorrentTags='<br /><div class="tags">'.$TagList.'</div>';
}
?>
<tr class="torrent torrent_row<?=$Torrents[$TorrentID]['IsSnatched'] ? ' snatched_torrent"' : ''?>">
<tr class="torrent torrent_row<?=$Torrents[$TorrentID]['IsSnatched'] ? ' snatched_torrent' : ''?>">
<td>
<span class="torrent_links_block">
<a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>" class="brackets" title="Download torrent">DL</a>

View File

@ -17,6 +17,9 @@
View::show_header('Single seeder FLACs');
?>
<div class="linkbox">
<a href="better.php" class="brackets">Back to better.php list</a>
</div>
<div class="thin">
<table width="100%" class="torrent_table">
<tr class="colhead">

View File

@ -131,10 +131,11 @@
View::show_header('Transcode Snatches');
?>
<div class="linkbox">
<a href="better.php" class="brackets">Back to better.php list</a>
<? if ($SeedingOnly) { ?>
<a href="better.php?method=snatch" class="brackets">Show all</a>
<? } else { ?>
<a href="better.php?method=snatch&amp;filter=seeding" class="brackets">Just those currently seeding</a>
<a href="better.php?method=snatch&amp;filter=seeding" class="brackets">Show only those currently seeding</a>
<? } ?>
</div>
<div class="thin">
@ -142,9 +143,9 @@
<h3>Stats</h3>
<div class="box pad">
<p>
Number of perfect FLACs you can transcode: <?=$Counter['total']?><br />
Number of missing transcodes: <?=$Counter['miss_total']?><br />
Number of missing V2 / V0 / 320 transcodes: <?=$Counter['miss_V2 (VBR)']?> / <?=$Counter['miss_V0 (VBR)']?> / <?=$Counter['miss_320']?>
Number of perfect FLACs you can transcode: <?=number_format($Counter['total'])?><br />
Number of missing transcodes: <?=number_format($Counter['miss_total'])?><br />
Number of missing V2 / V0 / 320 transcodes: <?=number_format($Counter['miss_V2 (VBR)'])?> / <?=number_format($Counter['miss_V0 (VBR)'])?> / <?=number_format($Counter['miss_320'])?>
</p>
</div>
<h3>List</h3>
@ -222,9 +223,9 @@
<div class="torrent_info"><?=$ExtraInfo?></div>
<div class="tags"><?=$TorrentTags?></div>
</td>
<td><?=isset($Edition['Formats']['V2 (VBR)'])?'<strong class="important_text_alt">YES</strong>':'<strong class="important_text">NO</strong>'?></td>
<td><?=isset($Edition['Formats']['V0 (VBR)'])?'<strong class="important_text_alt">YES</strong>':'<strong class="important_text">NO</strong>'?></td>
<td><?=isset($Edition['Formats']['320'])?'<strong class="important_text_alt">YES</strong>':'<strong class="important_text">NO</strong>'?></td>
<td><strong <?=isset($Edition['Formats']['V2 (VBR)']) ? 'class="important_text_alt">YES' : 'class="important_text">NO'?></strong></td>
<td><strong <?=isset($Edition['Formats']['V0 (VBR)']) ? 'class="important_text_alt">YES' : 'class="important_text">NO'?></strong></td>
<td><strong <?=isset($Edition['Formats']['320']) ? 'class="important_text_alt">YES' : 'class="important_text">NO'?></strong></td>
</tr>
<?
}

View File

@ -33,6 +33,7 @@
<? } ?>
<div class="linkbox">
<a href="better.php" class="brackets">Back to better.php list</a>
<? if($All) { ?>
<a href="better.php?method=tags" class="brackets">Show only those you have snatched</a>
<? } else { ?>
@ -42,7 +43,7 @@
</div>
<div class="thin box pad">
<h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3>
<h3>There are <?=number_format(count($TorrentsInfo))?> torrents remaining</h3>
<table class="torrent_table">
<?
foreach($TorrentsInfo as $TorrentID => $Info) {

View File

@ -85,6 +85,9 @@
View::show_header('Transcode Search');
?>
<br />
<div class="linkbox">
<a href="better.php" class="brackets">Back to better.php list</a>
</div>
<div class="thin">
<form class="search_form" name="transcodes" action="" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
@ -100,6 +103,7 @@
</tr>
</table>
</form>
<br />
<table width="100%" class="torrent_table">
<tr class="colhead">
<td>Torrent</td>
@ -181,9 +185,9 @@
<div class="torrent_info"><?=$ExtraInfo?></div>
<div class="tags"><?=$TorrentTags?></div>
</td>
<td><?=isset($Edition['Formats']['V2 (VBR)']) ? '<strong class="important_text_alt">YES</strong>' : '<strong class="important_text">NO</strong>'?></td>
<td><?=isset($Edition['Formats']['V0 (VBR)']) ? '<strong class="important_text_alt">YES</strong>' : '<strong class="important_text">NO</strong>'?></td>
<td><?=isset($Edition['Formats']['320']) ? '<strong class="important_text_alt">YES</strong>' : '<strong class="important_text">NO</strong>'?></td>
<td><strong <?=isset($Edition['Formats']['V2 (VBR)']) ? 'class="important_text_alt">YES' : 'class="important_text">NO'?></strong></td>
<td><strong <?=isset($Edition['Formats']['V0 (VBR)']) ? 'class="important_text_alt">YES' : 'class="important_text">NO'?></strong></td>
<td><strong <?=isset($Edition['Formats']['320']) ? 'class="important_text_alt">YES' : 'class="important_text">NO'?></strong></td>
</tr>
<?
}

View File

@ -119,14 +119,17 @@
View::show_header('Transcode Uploads');
?>
<div class="linkbox">
<a href="better.php" class="brackets">Back to better.php list</a>
</div>
<div class="thin">
<h2>Transcode uploaded torrents</h2>
<h3>Stats</h3>
<div class="box pad">
<p>
Number of perfect FLACs you can transcode: <?=$Counter['total']?><br />
Number of missing transcodes: <?=$Counter['miss_total']?><br />
Number of missing V2 / V0 / 320 transcodes: <?=$Counter['miss_V2 (VBR)']?> / <?=$Counter['miss_V0 (VBR)']?> / <?=$Counter['miss_320']?>
Number of perfect FLACs you can transcode: <?=number_format($Counter['total'])?><br />
Number of missing transcodes: <?=number_format($Counter['miss_total'])?><br />
Number of missing V2 / V0 / 320 transcodes: <?=number_format($Counter['miss_V2 (VBR)'])?> / <?=number_format($Counter['miss_V0 (VBR)'])?> / <?=number_format($Counter['miss_320'])?>
</p>
</div>
<h3>List</h3>
@ -204,9 +207,9 @@
<div class="torrent_info"><?=$ExtraInfo?></div>
<div class="tags"><?=$TorrentTags?></div>
</td>
<td><?=isset($Edition['Formats']['V2 (VBR)'])?'<strong class="important_text_alt">YES</strong>':'<strong class="important_text">NO</strong>'?></td>
<td><?=isset($Edition['Formats']['V0 (VBR)'])?'<strong class="important_text_alt">YES</strong>':'<strong class="important_text">NO</strong>'?></td>
<td><?=isset($Edition['Formats']['320'])?'<strong class="important_text_alt">YES</strong>':'<strong class="important_text">NO</strong>'?></td>
<td><strong <?=isset($Edition['Formats']['V2 (VBR)']) ? 'class="important_text_alt">YES' : 'class="important_text">NO'?></strong></td>
<td><strong <?=isset($Edition['Formats']['V0 (VBR)']) ? 'class="important_text_alt">YES' : 'class="important_text">NO'?></strong></td>
<td><strong <?=isset($Edition['Formats']['320']) ? 'class="important_text_alt">YES' : 'class="important_text">NO'?></strong></td>
</tr>
<?
}

View File

@ -98,7 +98,7 @@
<input type="text" name="title" size="95" <? if(!empty($Title)) { echo 'value="'.display_str($Title).'"'; } ?> /><br />
<h3>Body</h3>
<textarea name="body" cols="95" rows="15"><? if(!empty($Body)) { echo display_str($Body); } ?></textarea> <br />
<input type="checkbox" value='1' name="important" id="important" <?=$Important?'checked':''?> /><label for="important">Important</label><br />
<input type="checkbox" value='1' name="important" id="important" <?=$Important?'checked="checked" ':''?>/><label for="important">Important</label><br />
<h3>Thread ID</h3>
<input type="text" name="thread" size="8"<? if(!empty($ThreadID)) { echo 'value="'.display_str($ThreadID).'"'; } ?> />
(Leave blank to create thread automatically)

View File

@ -353,7 +353,7 @@ function compare($X, $Y){
<?
if($CollageCovers != 0) { ?>
<div id="coverart" class="box">
<div class="head" id="coverhead"><strong>Cover Art</strong></div>
<div class="head" id="coverhead"><strong>Cover art</strong></div>
<ul class="collage_images" id="collage_page0">
<?
$Page1 = array_slice($Collage, 0, $CollageCovers);

View File

@ -612,7 +612,7 @@ function compare($X, $Y){
<?
if($CollageCovers != 0) { ?>
<div id="coverart" class="box">
<div class="head" id="coverhead"><strong>Cover Art</strong></div>
<div class="head" id="coverhead"><strong>Cover art</strong></div>
<ul class="collage_images" id="collage_page0">
<?
$Page1 = array_slice($Collage, 0, $CollageCovers);

View File

@ -2,7 +2,7 @@
View::show_header('Create a collage');
if (!check_perms('site_collages_renamepersonal')) {
$ChangeJS = "OnChange=\"if ( this.options[this.selectedIndex].value == '0') { $('#namebox').hide(); $('#personal').show(); } else { $('#namebox').show(); $('#personal').hide(); }\"";
$ChangeJS = " onchange=\"if ( this.options[this.selectedIndex].value == '0') { $('#namebox').hide(); $('#personal').show(); } else { $('#namebox').show(); $('#personal').hide(); }\"";
}
$Name = $_REQUEST['name'];
@ -18,7 +18,7 @@
<div class="thin">
<?
if (!empty($Error)) { ?>
<div class="save_message error"><?=display_str($Error)?></div>
<div class="save_message error"><?=$Error?></div>
<br />
<? } ?>
<form class="create_form" name="collage" action="collages.php" method="post">
@ -35,17 +35,17 @@
<tr>
<td class="label"><strong>Category</strong></td>
<td>
<select name="category" <?=$ChangeJS?>>
<select name="category"<?=$ChangeJS?>>
<?
array_shift($CollageCats);
foreach($CollageCats as $CatID=>$CatName) { ?>
<option value="<?=$CatID+1?>"<?=(($CatID+1 == $Category)?' selected':'')?>><?=$CatName?></option>
<option value="<?=$CatID+1?>"<?=(($CatID+1 == $Category) ? ' selected="selected"' : '')?>><?=$CatName?></option>
<? }
$DB->query("SELECT COUNT(ID) FROM collages WHERE UserID='$LoggedUser[ID]' AND CategoryID='0' AND Deleted='0'");
list($CollageCount) = $DB->next_record();
if(($CollageCount < $LoggedUser['Permissions']['MaxCollages']) && check_perms('site_collages_personal')) { ?>
<option value="0"<?=(($Category === '0')?' selected':'')?>>Personal</option>
<option value="0"<?=(($Category === '0') ? ' selected="selected"' : '')?>>Personal</option>
<? } ?>
</select>
<br />

View File

@ -2,7 +2,7 @@
function display_perm($Key,$Title) {
global $Values;
$Perm='<input type="checkbox" name="perm_'.$Key.'" id="'.$Key.'" value="1"';
if (!empty($Values[$Key])) { $Perm.=" checked"; }
if (!empty($Values[$Key])) { $Perm.=' checked="checked"'; }
$Perm.=' /> <label for="'.$Key.'">'.$Title.'</label><br />';
echo $Perm;
}

View File

@ -535,122 +535,136 @@ function header_link($SortKey,$DefaultWay="desc") {
}
/** End run search query and collect results **/
$AdvancedSearch = false;
$Action = 'action=basic';
if (((!empty($_GET['action']) && strtolower($_GET['action'])=="advanced") || (!empty($LoggedUser['SearchType']) && ((!empty($_GET['action']) && strtolower($_GET['action'])!="basic") || empty($_GET['action'])))) && check_perms('site_advanced_search')) {
$AdvancedSearch = true;
$Action = 'action=advanced';
}
// This is kinda ugly, but the enormous if paragraph was really hard to read
$AdvancedSearch = !empty($_GET['action']) && $_GET['action'] == "advanced";
$AdvancedSearch |= !empty($LoggedUser['SearchType']) && (empty($_GET['action']) || $_GET['action'] == "advanced");
$AdvancedSearch &= check_perms('site_advanced_search');
if ($AdvancedSearch) {
$Debug->log_var(1, 'Advanced search');
$Action = 'action=advanced';
$HideBasic = ' hidden';
$HideAdvanced = '';
} else {
$Debug->log_var(1, 'Basic search');
$Action = 'action=basic';
$HideBasic = '';
$HideAdvanced = ' hidden';
}
View::show_header('Browse Torrents','browse');
?>
<div class="thin widethin">
<div class="header">
<h2>Torrents</h2>
</div>
<form class="search_form" name="torrents" method="get" action="">
<div class="filter_torrents <?=$AdvancedSearch ? 'ft_advanced' : 'ft_basic'?>">
<h3>
Filter
<? if ($AdvancedSearch) { ?>
(<a href="torrents.php?<? if (!empty($LoggedUser['SearchType'])) { ?>action=basic&amp;<? } echo Format::get_url(array('action')); ?>">Basic Search</a>)
<? } else { ?>
(<a href="torrents.php?action=advanced&amp;<?=Format::get_url(array('action'))?>">Advanced Search</a>)
<? } ?>
</h3>
<div class="box pad">
<div class="box filter_torrents <?=$AdvancedSearch ? 'ft_advanced' : 'ft_basic'?>">
<div class="head">
<strong>
<span id="ft_basic_text" class="<?=$HideBasic?>">Basic /</span>
<span id="ft_basic_link" class="<?=$HideAdvanced?>"><a href="#" onclick="return toggleTorrentSearch('basic');">Basic</a> /</span>
<span id="ft_advanced_text" class="<?=$HideAdvanced?>">Advanced</span>
<span id="ft_advanced_link" class="<?=$HideBasic?>"><a href="#" onclick="return toggleTorrentSearch('advanced');">Advanced</a></span>
search
</strong>
<span style="float: right;">
<a href="#" onclick="return toggleTorrentSearch(0);" id="ft_toggle" class="brackets">Hide</a>
</span>
</div>
<div class="pad" id="ft_container">
<table class="layout">
<? if ($AdvancedSearch) { ?>
<tr id="artist_name">
<tr id="artist_name" class="ftr_advanced<?=$HideAdvanced?>">
<td class="label">Artist name:</td>
<td colspan="3" class="ft_artistname">
<input type="text" spellcheck="false" size="40" name="artistname" class="inputtext smaller" value="<?Format::form('artistname')?>" />
<input type="hidden" name="action" value="advanced" />
<input type="text" spellcheck="false" size="40" name="artistname" class="inputtext smaller fti_advanced" value="<?Format::form('artistname')?>" />
<input type="hidden" name="action" value="advanced" class="fti_advanced" />
</td>
</tr>
<tr id="album_torrent_name">
<tr id="album_torrent_name" class="ftr_advanced<?=$HideAdvanced?>">
<td class="label">Album/Torrent name:</td>
<td colspan="3" class="ft_groupname">
<input type="text" spellcheck="false" size="40" name="groupname" class="inputtext smaller" value="<?Format::form('groupname')?>" />
<input type="text" spellcheck="false" size="40" name="groupname" class="inputtext smaller fti_advanced" value="<?Format::form('groupname')?>" />
</td>
</tr>
<tr id="record_label">
<tr id="record_label" class="ftr_advanced<?=$HideAdvanced?>">
<td class="label">Record label:</td>
<td colspan="3" class="ft_recordlabel">
<input type="text" spellcheck="false" size="40" name="recordlabel" class="inputtext smaller" value="<?Format::form('recordlabel')?>" />
<input type="text" spellcheck="false" size="40" name="recordlabel" class="inputtext smaller fti_advanced" value="<?Format::form('recordlabel')?>" />
</td>
</tr>
<tr id="catalogue_number_year">
<tr id="catalogue_number_year" class="ftr_advanced<?=$HideAdvanced?>">
<td class="label">Catalogue number:</td>
<td class="ft_cataloguenumber">
<input type="text" size="40" name="cataloguenumber" class="inputtext smallest" value="<?Format::form('cataloguenumber')?>" />
<input type="text" size="40" name="cataloguenumber" class="inputtext smallest fti_advanced" value="<?Format::form('cataloguenumber')?>" />
</td>
<td class="label">Year:</td>
<td class="ft_year">
<input type="text" name="year" class="inputtext smallest" value="<?Format::form('year')?>" size="4" />
<input type="text" name="year" class="inputtext smallest fti_advanced" value="<?Format::form('year')?>" size="4" />
</td>
</tr>
<tr id="edition_expand">
<tr id="edition_expand" class="ftr_advanced<?=$HideAdvanced?>">
<td colspan="4" class="center ft_edition_expand"><a href="#" class="brackets" onclick="ToggleEditionRows();return false;">Click here to toggle searching for specific remaster information</a></td>
</tr>
<?
if (Format::form('remastertitle', true) == "" && Format::form('remasteryear', true) == "" &&
Format::form('remasterrecordlabel', true) == "" && Format::form('remastercataloguenumber', true) == "") {
$Hidden = 'hidden';
$Hidden = ' hidden';
} else {
$Hidden = '';
}
?>
<tr id="edition_title" class="<?=$Hidden?>">
<tr id="edition_title" class="ftr_advanced<?=$HideAdvanced . $Hidden?>">
<td class="label">Edition title:</td>
<td class="ft_remastertitle">
<input type="text" spellcheck="false" size="40" name="remastertitle" class="inputtext smaller" value="<?Format::form('remastertitle')?>" />
<input type="text" spellcheck="false" size="40" name="remastertitle" class="inputtext smaller fti_advanced" value="<?Format::form('remastertitle')?>" />
</td>
<td class="label">Edition year:</td>
<td class="ft_remasteryear">
<input type="text" name="remasteryear" class="inputtext smallest" value="<?Format::form('remasteryear')?>" size="4" />
<input type="text" name="remasteryear" class="inputtext smallest fti_advanced" value="<?Format::form('remasteryear')?>" size="4" />
</td>
</tr>
<tr id="edition_label" class="<?=$Hidden?>">
<tr id="edition_label" class="ftr_advanced<?=$HideAdvanced . $Hidden?>">
<td class="label">Edition release label:</td>
<td colspan="3" class="ft_remasterrecordlabel">
<input type="text" spellcheck="false" size="40" name="remasterrecordlabel" class="inputtext smaller" value="<?Format::form('remasterrecordlabel')?>" />
<input type="text" spellcheck="false" size="40" name="remasterrecordlabel" class="inputtext smaller fti_advanced" value="<?Format::form('remasterrecordlabel')?>" />
</td>
</tr>
<tr id="edition_catalogue" class="<?=$Hidden?>">
<tr id="edition_catalogue" class="ftr_advanced<?=$HideAdvanced . $Hidden?>">
<td class="label">Edition catalogue number:</td>
<td colspan="3" class="ft_remastercataloguenumber">
<input type="text" size="40" name="remastercataloguenumber" class="inputtext smallest" value="<?Format::form('remastercataloguenumber')?>" />
<input type="text" size="40" name="remastercataloguenumber" class="inputtext smallest fti_advanced" value="<?Format::form('remastercataloguenumber')?>" />
</td>
</tr>
<tr id="file_list">
<tr id="file_list" class="ftr_advanced<?=$HideAdvanced?>">
<td class="label">File list:</td>
<td colspan="3" class="ft_filelist">
<input type="text" spellcheck="false" size="40" name="filelist" class="inputtext" value="<?Format::form('filelist')?>" />
<input type="text" spellcheck="false" size="40" name="filelist" class="inputtext fti_advanced" value="<?Format::form('filelist')?>" />
</td>
</tr>
<tr id="rip_specifics">
<tr id="rip_specifics" class="ftr_advanced<?=$HideAdvanced?>">
<td class="label">Rip specifics:</td>
<td class="nobr ft_ripspecifics" colspan="3">
<select id="bitrate" name="encoding" class="ft_bitrate">
<select id="bitrate" name="encoding" class="ft_bitrate fti_advanced">
<option value="">Bitrate</option>
<? foreach ($Bitrates as $BitrateName) { ?>
<option value="<?=display_str($BitrateName); ?>" <?Format::selected('encoding', $BitrateName)?>><?=display_str($BitrateName); ?></option>
<? } ?> </select>
<select name="format" class="ft_format">
<select name="format" class="ft_format fti_advanced">
<option value="">Format</option>
<? foreach ($Formats as $FormatName) { ?>
<option value="<?=display_str($FormatName); ?>" <?Format::selected('format', $FormatName)?>><?=display_str($FormatName); ?></option>
<? } ?> </select>
<select name="media" class="ft_media">
<select name="media" class="ft_media fti_advanced">
<option value="">Media</option>
<? foreach ($Media as $MediaName) { ?>
<option value="<?=display_str($MediaName); ?>" <?Format::selected('media',$MediaName)?>><?=display_str($MediaName); ?></option>
<? } ?>
</select>
<select name="releasetype" class="ft_releasetype">
<select name="releasetype" class="ft_releasetype fti_advanced">
<option value="">Release type</option>
<? foreach ($ReleaseTypes as $ID=>$Type) { ?>
<option value="<?=display_str($ID); ?>" <?Format::selected('releasetype',$ID)?>><?=display_str($Type); ?></option>
@ -658,32 +672,32 @@ function header_link($SortKey,$DefaultWay="desc") {
</select>
</td>
</tr>
<tr id="misc">
<tr id="misc" class="ftr_advanced<?=$HideAdvanced?>">
<td class="label">Misc:</td>
<td class="nobr ft_misc" colspan="3">
<select name="haslog" class="ft_haslog">
<select name="haslog" class="ft_haslog fti_advanced">
<option value="">Has Log</option>
<option value="1" <?Format::selected('haslog','1')?>>Yes</option>
<option value="0" <?Format::selected('haslog','0')?>>No</option>
<option value="100" <?Format::selected('haslog','100')?>>100% only</option>
<option value="-1" <?Format::selected('haslog','-1')?>>&lt;100%/Unscored</option>
</select>
<select name="hascue" class="ft_hascue">
<select name="hascue" class="ft_hascue fti_advanced">
<option value="">Has Cue</option>
<option value="1" <?Format::selected('hascue',1)?>>Yes</option>
<option value="0" <?Format::selected('hascue',0)?>>No</option>
</select>
<select name="scene" class="ft_scene">
<select name="scene" class="ft_scene fti_advanced">
<option value="">Scene</option>
<option value="1" <?Format::selected('scene',1)?>>Yes</option>
<option value="0" <?Format::selected('scene',0)?>>No</option>
</select>
<select name="vanityhouse" class="ft_vanityhouse">
<select name="vanityhouse" class="ft_vanityhouse fti_advanced">
<option value="">Vanity House</option>
<option value="1" <?Format::selected('vanityhouse',1)?>>Yes</option>
<option value="0" <?Format::selected('vanityhouse',0)?>>No</option>
</select>
<select name="freetorrent" class="ft_freetorrent">
<select name="freetorrent" class="ft_freetorrent fti_advanced">
<option value="">Leech Status</option>
<option value="1" <?Format::selected('freetorrent',1)?>>Freeleech</option>
<option value="2" <?Format::selected('freetorrent',2)?>>Neutral Leech</option>
@ -692,17 +706,15 @@ function header_link($SortKey,$DefaultWay="desc") {
</select>
</td>
</tr>
<? } else { // BASIC SEARCH ?>
<tr id="search_terms">
<tr id="search_terms" class="ftr_basic<?=$HideBasic?>">
<td class="label">Search terms:</td>
<td colspan="3" class="ftb_searchstr">
<input type="text" spellcheck="false" size="40" name="searchstr" class="inputtext" value="<?Format::form('searchstr')?>" />
<input type="text" spellcheck="false" size="40" name="searchstr" class="inputtext fti_basic" value="<?Format::form('searchstr')?>" />
<? if (!empty($LoggedUser['SearchType'])) { ?>
<input type="hidden" name="action" value="basic" />
<input type="hidden" name="action" value="basic" class="fti_basic" />
<? } ?>
</td>
</tr>
<? } ?>
<tr id="tagfilter">
<td class="label">Tags (comma-separated):</td>
<td colspan="3" class="ft_taglist">
@ -713,7 +725,7 @@ function header_link($SortKey,$DefaultWay="desc") {
</tr>
<tr id="order">
<td class="label">Order by:</td>
<td colspan="<?=($AdvancedSearch)?'3':'1'?>" class="ft_order">
<td colspan="3" colspan="3" class="ft_order">
<select name="order_by" style="width:auto;" class="ft_order_by">
<option value="time"<?Format::selected('order_by','time')?>>Time added</option>
<option value="year"<?Format::selected('order_by','year')?>>Year</option>
@ -733,7 +745,7 @@ function header_link($SortKey,$DefaultWay="desc") {
<td class="label">
<label for="group_results">Group by release:</label>
</td>
<td colspan="<?=($AdvancedSearch)?'3':'1'?>" class="ft_group_results">
<td colspan="3" class="ft_group_results">
<input type="checkbox" value="1" name="group_results" id="group_results" <?Format::selected('group_results',1,'checked')?> />
</td>
</tr>
@ -818,7 +830,6 @@ function header_link($SortKey,$DefaultWay="desc") {
</div>
</form>
<div class="linkbox"><?=$Pages?></div>
<?

View File

@ -636,7 +636,7 @@ function filelist($Str) {
$i = 0;
?>
<div class="box">
<div class="head"><span style="font-weight: bold;">Requests (<?=count($Requests)?>)</span> <a href="#" style="float:right;" onclick="$('#requests').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;">(Show)</a></div>
<div class="head"><span style="font-weight: bold;">Requests (<?=number_format(count($Requests))?>)</span> <a href="#" style="float:right;" onclick="$('#requests').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets">Show</a></div>
<table id="requests" class="request_table hidden">
<tr class="colhead">
<td>Format / Bitrate / Media</td>

View File

@ -100,7 +100,7 @@
if(check_perms('torrents_edit') && $Properties['CategoryID'] == 1) {
?>
<div class="thin">
<h2>Change Group</h2>
<h2>Change group</h2>
<form class="edit_form" name="torrent_group" action="torrents.php" method="post">
<input type="hidden" name="action" value="editgroupid" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -110,12 +110,12 @@
<tr>
<td class="label">Group ID</td>
<td>
<input type="text" name="groupid" value="<?=$Properties['GroupID']?>" size="10" />
<input type="text" name="groupid" value="<?=$Properties['GroupID']?>" size="10" />
</td>
</tr>
<tr>
<td colspan="2" class="center">
<input type="submit" value="Change group ID" />
<input type="submit" value="Change group ID" />
</td>
</tr>
</table>
@ -130,24 +130,24 @@
<tr>
<td class="label">Artist</td>
<td>
<input type="text" name="artist" value="<?=$Properties['ArtistName']?>" size="50" />
<input type="text" name="artist" value="<?=$Properties['ArtistName']?>" size="50" />
</td>
</tr>
<tr>
<td class="label">Title</td>
<td>
<input type="text" name="title" value="<?=$Properties['Title']?>" size="50" />
<input type="text" name="title" value="<?=$Properties['Title']?>" size="50" />
</td>
</tr>
<tr>
<td class="label">Year</td>
<td>
<input type="text" name="year" value="<?=$Properties['Year']?>" size="10" />
<input type="text" name="year" value="<?=$Properties['Year']?>" size="10" />
</td>
</tr>
<tr>
<td colspan="2" class="center">
<input type="submit" value="Split into new group" />
<input type="submit" value="Split into new group" />
</td>
</tr>
</table>

View File

@ -150,9 +150,9 @@ function checked($Checked) {
<td class="label"><strong>Sort/Hide release types</strong></td>
<td>
<noscript>Please enable JavaScript to use these options.</noscript>
<a href="#" id="toggle_sortable">Expand</a>
<a href="#" id="toggle_sortable" class="brackets">Expand</a>
<div id="sortable_container" style="display: none;">
<a href="#" id="reset_sortable">Reset to default</a>
<a href="#" id="reset_sortable" class="brackets">Reset to default</a>
<ul class="sortable_list" id="sortable">
<?Users::release_order()?>
</ul>
@ -227,19 +227,19 @@ function checked($Checked) {
<td class="label"><strong>Avatars</strong></td>
<td>
<select name="disableavatars" id="disableavatars" onclick="ToggleIdenticons();">
<option value="1" <? if($SiteOptions['DisableAvatars'] == 1) { ?>selected="selected" <? } ?>/>Disable avatars</option>
<option value="0" <? if($SiteOptions['DisableAvatars'] == 0) { ?>selected="selected" <? } ?>/>Show avatars</option>
<option value="2" <? if($SiteOptions['DisableAvatars'] == 2) { ?>selected="selected" <? } ?>/>Show avatars or:</option>
<option value="3" <? if($SiteOptions['DisableAvatars'] == 3) { ?>selected="selected" <? } ?>/>Replace all avatars with:</option>
<option value="1"<? if($SiteOptions['DisableAvatars'] == 1) { ?> selected="selected"<? } ?>>Disable avatars</option>
<option value="0"<? if($SiteOptions['DisableAvatars'] == 0) { ?> selected="selected"<? } ?>>Show avatars</option>
<option value="2"<? if($SiteOptions['DisableAvatars'] == 2) { ?> selected="selected"<? } ?>>Show avatars or:</option>
<option value="3"<? if($SiteOptions['DisableAvatars'] == 3) { ?> selected="selected"<? } ?>>Replace all avatars with:</option>
</select>
<select name="identicons" id="identicons">
<option value="0" <? if($SiteOptions['Identicons'] == 0) { ?>selected="selected" <? } ?>/>Identicon</option>
<option value="1" <? if($SiteOptions['Identicons'] == 1) { ?>selected="selected" <? } ?>/>MonsterID</option>
<option value="2" <? if($SiteOptions['Identicons'] == 2) { ?>selected="selected" <? } ?>/>Wavatar</option>
<option value="3" <? if($SiteOptions['Identicons'] == 3) { ?>selected="selected" <? } ?>/>Retro</option>
<option value="4" <? if($SiteOptions['Identicons'] == 4) { ?>selected="selected" <? } ?>/>Robots 1</option>
<option value="5" <? if($SiteOptions['Identicons'] == 5) { ?>selected="selected" <? } ?>/>Robots 2</option>
<option value="6" <? if($SiteOptions['Identicons'] == 6) { ?>selected="selected" <? } ?>/>Robots 3</option>
<option value="0"<? if($SiteOptions['Identicons'] == 0) { ?> selected="selected"<? } ?>>Identicon</option>
<option value="1"<? if($SiteOptions['Identicons'] == 1) { ?> selected="selected"<? } ?>>MonsterID</option>
<option value="2"<? if($SiteOptions['Identicons'] == 2) { ?> selected="selected"<? } ?>>Wavatar</option>
<option value="3"<? if($SiteOptions['Identicons'] == 3) { ?> selected="selected"<? } ?>>Retro</option>
<option value="4"<? if($SiteOptions['Identicons'] == 4) { ?> selected="selected"<? } ?>>Robots 1</option>
<option value="5"<? if($SiteOptions['Identicons'] == 5) { ?> selected="selected"<? } ?>>Robots 2</option>
<option value="6"<? if($SiteOptions['Identicons'] == 6) { ?> selected="selected"<? } ?>>Robots 3</option>
</select>
</td>
</tr>

View File

@ -167,7 +167,7 @@ function user_dupes_table($UserID) {
<input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" id="form_comment_hash" name="form_comment_hash" value="<?=$CommentHash?>" />
<div class="box">
<div class="head"><?=max($DupeCount - 1, 0)?> linked account<?=(($DupeCount == 2)?'':'s')?> <a href="#" onclick="$('.linkedaccounts').toggle(); return false;">(View)</a></div>
<div class="head"><?=max($DupeCount - 1, 0)?> linked account<?=(($DupeCount == 2)?'':'s')?> <a href="#" onclick="$('.linkedaccounts').toggle(); return false;" class="brackets">View</a></div>
<table width="100%" class="layout hidden linkedaccounts">
<?=$DupeCount?'<tr>':''?>
<?
@ -178,7 +178,7 @@ function user_dupes_table($UserID) {
$DupeInfo = Users::user_info($DupeID);
?>
<td align="left"><?=Users::format_username($DupeID, true, true, true, true)?>
(<a href="user.php?action=dupes&amp;dupeaction=remove&amp;auth=<?=$LoggedUser['AuthKey']?>&amp;userid=<?=$UserID?>&amp;removeid=<?=$DupeID?>" onclick="return confirm('Are you sure you wish to remove <?=$DupeInfo['Username']?> from this group?');">x</a>)</td>
<a href="user.php?action=dupes&amp;dupeaction=remove&amp;auth=<?=$LoggedUser['AuthKey']?>&amp;userid=<?=$UserID?>&amp;removeid=<?=$DupeID?>" onclick="return confirm('Are you sure you wish to remove <?=$DupeInfo['Username']?> from this group?');" class="brackets">x</a></td>
<?
if ($i == 5) {
$i = 0;
@ -201,7 +201,7 @@ function user_dupes_table($UserID) {
<div id="editdupecomments" class="<?=$DupeCount?'hidden':''?>">
<textarea name="dupecomments" onkeyup="resize('dupecommentsbox');" id="dupecommentsbox" cols="65" rows="5" style="width:98%;"><?=display_str($Comments)?></textarea>
</div>
<span style="float:right; font-style: italic;"><a href="#" onclick="$('#dupecomments').toggle(); $('#editdupecomments').toggle(); resize('dupecommentsbox'); return false;">(Edit linked account comments)</a></span>
<span style="float:right; font-style: italic;"><a href="#" onclick="$('#dupecomments').toggle(); $('#editdupecomments').toggle(); resize('dupecommentsbox'); return false;" class="brackets">Edit linked account comments</a></span>
</td>
</tr>
</table>

View File

@ -35,8 +35,8 @@
<h3>
<a href="feeds.php?feed=torrents_notify_<?=$N['ID']?>_<?=$LoggedUser['torrent_pass']?>&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;name=<?=urlencode($N['Label'])?>"><img src="<?=STATIC_SERVER?>/common/symbols/rss.png" alt="RSS feed" /></a>
<?=display_str($N['Label'])?>
<a href="user.php?action=notify_delete&amp;id=<?=$N['ID']?>&amp;auth=<?=$LoggedUser['AuthKey']?>" onclick="return confirm('Are you sure you want to delete this notification filter?')">(Delete)</a>
<a href="#" onclick="$('#filter_<?=$N['ID']?>').toggle(); return false;">(Show)</a>
<a href="user.php?action=notify_delete&amp;id=<?=$N['ID']?>&amp;auth=<?=$LoggedUser['AuthKey']?>" onclick="return confirm('Are you sure you want to delete this notification filter?')" class="brackets">Delete</a>
<a href="#" onclick="$('#filter_<?=$N['ID']?>').toggle(); return false;" class="brackets">Show</a>
</h3>
<? } ?>
<form class="<?=($i>$NumFilters)?'create_form':'edit_form'?>" name="notification" action="user.php" method="post">

View File

@ -55,9 +55,9 @@
$InviteKey = db_string(Users::make_secret());
$Message = <<<EOT
The user $Username has invited you to join $SiteName, and has specified this address ($CurEmail) as your email address. If you do not know this person, please ignore this email, and do not reply.
The user $Username has invited you to join $SiteName and has specified this address ($CurEmail) as your email address. If you do not know this person, please ignore this email, and do not reply.
Please note that selling invites, trading invites, and giving invites away publicly (eg. on a forum) is strictly forbidden. If you have received your invite as a result of any of these things, do not bother signing up - you will be banned and lose your chances of ever signing up legitimately.
Please note that selling invites, trading invites, and giving invites away publicly (e.g. on a forum) is strictly forbidden. If you have received your invite as a result of any of these things, do not bother signing up - you will be banned and lose your chances of ever signing up legitimately.
To confirm your invite, click on the following link:

View File

@ -487,7 +487,7 @@ function check_paranoia_here($Setting) {
<div class="box">
<div class="head">
<span style="float:left;">Profile<? if ($CustomTitle) { echo " - ".html_entity_decode($DisplayCustomTitle); } ?></span>
<span style="float:right;"><?=!empty($Badges)?"$Badges&nbsp;&nbsp;":''?><a href="#" onclick="$('#profilediv').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;">(Hide)</a></span>&nbsp;
<span style="float:right;"><?=!empty($Badges)?"$Badges&nbsp;&nbsp;":''?><a href="#" onclick="$('#profilediv').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets">Hide</a></span>&nbsp;
</div>
<div class="pad" id="profilediv">
<? if (!$Info) { ?>
@ -602,11 +602,11 @@ function check_paranoia_here($Setting) {
<?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>" class="brackets">See full</a>
</span>
<span style="float:right;">
<a href="#" onclick="$('#collage<?=$CollageID?> .images').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;"><?=$FirstCol?'(Hide)':'(Show)'?></a>
<a href="#" onclick="$('#collage<?=$CollageID?> .images').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets"><?=$FirstCol?'Hide':'Show'?></a>
</span>
</td>
</tr>
<tr class="images <?=$FirstCol?'':' hidden'?>">
<tr class="images<?=$FirstCol ? '' : ' hidden'?>">
<? foreach($Collage as $C) {
$Group = Torrents::get_groups(array($C['GroupID']));
$Group = array_pop($Group['matches']);
@ -640,7 +640,7 @@ function check_paranoia_here($Setting) {
$Tree = new INVITE_TREE($UserID, array('visible'=>false));
?>
<div class="box">
<div class="head">Invite tree <a href="#" onclick="$('#invitetree').toggle();return false;">(View)</a></div>
<div class="head">Invite tree <a href="#" onclick="$('#invitetree').toggle();return false;" class="brackets">View</a></div>
<div id="invitetree" class="hidden">
<? $Tree->make_tree(); ?>
</div>
@ -670,7 +670,7 @@ function check_paranoia_here($Setting) {
$Requests = $DB->to_array();
?>
<div class="box">
<div class="head">Requests <a href="#" onclick="$('#requests').toggle();return false;">(View)</a></div>
<div class="head">Requests <a href="#" onclick="$('#requests').toggle();return false;" class="brackets">View</a></div>
<div id="requests" class="request_table hidden">
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
<tr class="colhead_dark">
@ -769,7 +769,7 @@ function check_paranoia_here($Setting) {
$StaffPMs = $DB->to_array();
?>
<div class="box">
<div class="head">Staff PMs <a href="#" onclick="$('#staffpms').toggle();return false;">(View)</a></div>
<div class="head">Staff PMs <a href="#" onclick="$('#staffpms').toggle();return false;" class="brackets">View</a></div>
<table width="100%" class="message_table hidden" id="staffpms">
<tr class="colhead">
<td>Subject</td>
@ -837,8 +837,8 @@ function check_paranoia_here($Setting) {
<div class="box">
<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>
<a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Edit</a>
<a href="#" onclick="$('#staffnotes').toggle(); return false;" class="brackets">Toggle</a>
</div>
<div id="staffnotes" class="pad">
<input type="hidden" name="comment_hash" value="<?=$CommentHash?>" />
@ -1038,10 +1038,10 @@ function check_paranoia_here($Setting) {
<td>
<select name="WarnLength">
<option value="">---</option>
<option value="1"> 1 Week</option>
<option value="2"> 2 Weeks</option>
<option value="4"> 4 Weeks</option>
<option value="8"> 8 Weeks</option>
<option value="1">1 week</option>
<option value="2">2 weeks</option>
<option value="4">4 weeks</option>
<option value="8">8 weeks</option>
</select>
</td>
</tr>
@ -1051,10 +1051,10 @@ function check_paranoia_here($Setting) {
<td>
<select name="ExtendWarning" onchange="ToggleWarningAdjust(this)">
<option>---</option>
<option value="1"> 1 Week</option>
<option value="2"> 2 Weeks</option>
<option value="4"> 4 Weeks</option>
<option value="8"> 8 Weeks</option>
<option value="1">1 week</option>
<option value="2">2 weeks</option>
<option value="4">4 weeks</option>
<option value="8">8 weeks</option>
</select>
</td>
</tr>
@ -1063,10 +1063,10 @@ function check_paranoia_here($Setting) {
<td>
<select name="ReduceWarning">
<option>---</option>
<option value="1"> 1 Week</option>
<option value="2"> 2 Weeks</option>
<option value="4"> 4 Weeks</option>
<option value="8"> 8 Weeks</option>
<option value="1">1 week</option>
<option value="2">2 weeks</option>
<option value="4">4 weeks</option>
<option value="8">8 weeks</option>
</select>
</td>
</tr>

View File

@ -152,6 +152,33 @@ function toggle_edition(groupid, editionid, lnk, event) {
if (event.preventDefault) { event.preventDefault(); } else { event.returnValue = false; }
}
function toggleTorrentSearch(mode) {
if (mode == 0) {
var link = $('#ft_toggle').raw();
$('#ft_container').toggle();
link.innerHTML = link.textContent == 'Hide' ? 'Show' : 'Hide';
} if (mode == 'basic') {
$('.fti_advanced').disable();
$('.fti_basic').enable();
$('.ftr_advanced').hide();
$('.ftr_basic').show();
$('#ft_advanced_link').show();
$('#ft_advanced_text').hide();
$('#ft_basic_link').hide();
$('#ft_basic_text').show();
} else if (mode == 'advanced') {
$('.fti_advanced').enable();
$('.fti_basic').disable();
$('.ftr_advanced').show();
$('.ftr_basic').hide();
$('#ft_advanced_link').hide();
$('#ft_advanced_text').show();
$('#ft_basic_link').show();
$('#ft_basic_text').hide();
}
return false;
}
// For /sections/torrents/browse.php (not browse2.php)
function Bitrate() {
$('#other_bitrate').raw().value = '';

View File

@ -1,24 +1,29 @@
(function ($) {
var PUSHOVER = 5;
var TOASTY = 4;
$(document).ready(function() {
if($("#pushservice").val() > 0) {
$('#pushsettings').show();
if($("#pushservice").val() == 3) {
if($("#pushservice").val() == PUSHOVER) {
$('#pushsettings_username').show();
}
}
$("#pushservice").change(function() {
if($(this).val() > 0) {
$('#pushsettings').show(500);
if($(this).val() == 3) {
if($(this).val() == PUSHOVER) {
$('#pushsettings_username').show();
}
else {
$('#pushsettings_username').hide();
}
if($(this).val() == 4) {
if($(this).val() == TOASTY) {
$('#pushservice_title').text("Device ID");
}
else if($(this).val() == PUSHOVER) {
$('#pushservice_title').text("Token");
}
else {
$('#pushservice_title').text("API Key");
}

View File

@ -265,6 +265,14 @@ util.fn = util.prototype = {
}
return this;
},
enable : function () {
for (var i=0,il=this.objects.length;i<il;i++) {
if (this.objects[i].disabled == true) {
this.objects[i].disabled = false;
}
}
return this;
},
html : function (html) {
for (var i=0,il=this.objects.length;i<il;i++) {
this.objects[i].innerHTML = html;

View File

@ -747,9 +747,8 @@ strong.quoteheader{color: #878787;}
background: #2f2f2f url('images/filter.png') no-repeat;
}
#torrents .filter_torrents h3 {
margin: 0 0 10px 0;
font-size: 14px;
#torrents .filter_torrents {
margin: 20px auto 0 auto;
}
#torrents .filter_torrents table {
@ -1132,7 +1131,9 @@ strong.quoteheader{color: #878787;}
padding: 5px;
}
.search_form .box .head {
border-bottom: 1px solid #3f3f3f;
}
/* POLLS */

View File

@ -512,6 +512,15 @@ table[width="100%"],.box,.torrent_table,#log_table,#request_table,#collages,.for
color: #565656;
}
.search_form .box {
margin-bottom: 0;
background: inherit;
border: 0;
padding: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
.box.pad {
padding: 0 !important;
background: transparent;

View File

@ -821,7 +821,6 @@ strong.quoteheader {
#torrents .filter_torrents,
#inbox #searchbox {
width: 70%;
margin: 0 auto;
border: 1px solid #dcdcdc;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
@ -830,9 +829,8 @@ strong.quoteheader {
background: #f3f3f3 url('images/filter.png') -30px -30px no-repeat;
}
#torrents .filter_torrents h3 {
margin: 0 0 10px 0;
font-size: 14px;
#torrents .filter_torrents {
margin: 20px auto 0 auto;
}
#torrents .filter_torrents table {
@ -938,6 +936,10 @@ strong.quoteheader {
margin-top: 20px;
}
.search_form .box .head {
border-bottom: 1px solid #e6e6e6;
}
#torrent_table {
margin: 0;
padding: 0;

View File

@ -698,6 +698,17 @@ table tr td.unread_locked_sticky {
.hide_torrents a.show_torrents_link {
background-position:-23px -50px;
}
.filter_torrents .head,.filter_torrents .head strong {
color:#aaa;
font-family:Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif;
font-size:14px;
font-weight:normal;
margin-top:10px;
margin-bottom:0;
letter-spacing:2px;
padding-top:20px;
text-transform:uppercase;
}
#site_debug {
width:950px;
margin:0 auto;