Empty commit

This commit is contained in:
Git 2012-09-15 08:00:25 +00:00
parent 97f8327666
commit c0a32639b1
115 changed files with 567 additions and 631 deletions

View File

@ -8,7 +8,7 @@ class SPHINXQL extends mysqli {
private $Server; private $Server;
private $Port; private $Port;
private $Socket; private $Socket;
public $Ident; private $Ident;
private $Connected = false; private $Connected = false;
public static $Queries = array(); public static $Queries = array();
@ -18,9 +18,9 @@ class SPHINXQL extends mysqli {
/** /**
* Initialize SphinxQL object * Initialize SphinxQL object
* *
* @string $Server server address or hostname * @param string $Server server address or hostname
* @int $Port listening port * @param int $Port listening port
* @string $Socket Unix socket address, overrides $Server:$Port * @param string $Socket Unix socket address, overrides $Server:$Port
*/ */
public function __construct($Server, $Port, $Socket) { public function __construct($Server, $Port, $Socket) {
$this->Server = $Server; $this->Server = $Server;
@ -32,9 +32,9 @@ public function __construct($Server, $Port, $Socket) {
/** /**
* Create server ident based on connection information * Create server ident based on connection information
* *
* @string $Server server address or hostname * @param string $Server server address or hostname
* @int $Port listening port * @param int $Port listening port
* @string $Socket Unix socket address, overrides $Server:$Port * @param string $Socket Unix socket address, overrides $Server:$Port
* @return identification string * @return identification string
*/ */
private function get_ident($Server, $Port, $Socket) { private function get_ident($Server, $Port, $Socket) {
@ -48,9 +48,9 @@ private function get_ident($Server, $Port, $Socket) {
/** /**
* Create SphinxQL object or return existing one * Create SphinxQL object or return existing one
* *
* @string $Server server address or hostname * @param string $Server server address or hostname
* @int $Port listening port * @param int $Port listening port
* @string $Socket Unix socket address, overrides $Server:$Port * @param string $Socket Unix socket address, overrides $Server:$Port
* @return SphinxQL object * @return SphinxQL object
*/ */
public static function init_connection($Server, $Port, $Socket) { public static function init_connection($Server, $Port, $Socket) {
@ -82,8 +82,8 @@ public function connect() {
/** /**
* Print a message to privileged users and optionally halt page processing * Print a message to privileged users and optionally halt page processing
* *
* @string $Msg message to display * @param string $Msg message to display
* @bool $Halt halt page processing. Default is to continue processing the page * @param bool $Halt halt page processing. Default is to continue processing the page
* @return SphinxQL object * @return SphinxQL object
*/ */
public function error($Msg, $Halt = false) { public function error($Msg, $Halt = false) {
@ -102,7 +102,7 @@ public function error($Msg, $Halt = false) {
* Escape special characters before sending them to the Sphinx server. * Escape special characters before sending them to the Sphinx server.
* Two escapes needed because the first one is eaten up by the mysql driver. * Two escapes needed because the first one is eaten up by the mysql driver.
* *
* @string $String string to escape * @param string $String string to escape
* @return escaped string * @return escaped string
*/ */
public function escape_string($String) { public function escape_string($String) {
@ -125,8 +125,8 @@ public function escape_string($String) {
/** /**
* Register sent queries globally for later retrieval by debug functions * Register sent queries globally for later retrieval by debug functions
* *
* @string $QueryString query text * @param string $QueryString query text
* @param $QueryProcessTime time building and processing the query * @param param $QueryProcessTime time building and processing the query
*/ */
public function register_query($QueryString, $QueryProcessTime) { public function register_query($QueryString, $QueryProcessTime) {
SPHINXQL::$Queries[] = array($QueryString, $QueryProcessTime); SPHINXQL::$Queries[] = array($QueryString, $QueryProcessTime);
@ -151,9 +151,9 @@ class SPHINXQL_QUERY {
/** /**
* Initialize SphinxQL object * Initialize SphinxQL object
* *
* @string $Server server address or hostname * @param string $Server server address or hostname
* @int $Port listening port * @param int $Port listening port
* @string $Socket Unix socket address, overrides $Server:$Port * @param string $Socket Unix socket address, overrides $Server:$Port
*/ */
public function __construct($Server = SPHINXQL_HOST, $Port = SPHINXQL_PORT, $Socket = SPHINXQL_SOCK) { public function __construct($Server = SPHINXQL_HOST, $Port = SPHINXQL_PORT, $Socket = SPHINXQL_SOCK) {
$this->SphinxQL = SPHINXQL::init_connection($Server, $Port, $Socket); $this->SphinxQL = SPHINXQL::init_connection($Server, $Port, $Socket);
@ -162,7 +162,7 @@ public function __construct($Server = SPHINXQL_HOST, $Port = SPHINXQL_PORT, $Soc
/** /**
* Specify what data the Sphinx query is supposed to return * Specify what data the Sphinx query is supposed to return
* *
* @string $Fields Attributes and expressions * @param string $Fields Attributes and expressions
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function select($Fields) { public function select($Fields) {
@ -174,7 +174,7 @@ public function select($Fields) {
/** /**
* Specify the indexes to use in the search * Specify the indexes to use in the search
* *
* @string $Indexes comma separated list of indexes * @param string $Indexes comma separated list of indexes
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function from($Indexes) { public function from($Indexes) {
@ -185,9 +185,9 @@ public function from($Indexes) {
/** /**
* Add attribute filter. Calling this function multiple times results in boolean AND between each condition * Add attribute filter. Calling this function multiple times results in boolean AND between each condition
* *
* @string $Attribute attribute which the filter will apply to * @param string $Attribute attribute which the filter will apply to
* @mixed $Values scalar or array of numerical values. Array uses boolean OR in query condition * @param mixed $Values scalar or array of numerical values. Array uses boolean OR in query condition
* @bool $Exclude whether to exclude or include matching documents. Default mode is to include matches * @param bool $Exclude whether to exclude or include matching documents. Default mode is to include matches
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function where($Attribute, $Values, $Exclude = false) { public function where($Attribute, $Values, $Exclude = false) {
@ -223,8 +223,8 @@ public function where($Attribute, $Values, $Exclude = false) {
/** /**
* Add attribute range filter. Calling this function multiple times results in boolean AND between each condition * Add attribute range filter. Calling this function multiple times results in boolean AND between each condition
* *
* @string $Attribute attribute which the filter will apply to * @param string $Attribute attribute which the filter will apply to
* @array $Values pair of numerical values that defines the filter range * @param array $Values pair of numerical values that defines the filter range
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function where_between($Attribute, $Values) { public function where_between($Attribute, $Values) {
@ -239,8 +239,8 @@ public function where_between($Attribute, $Values) {
* Add fulltext query expression. Calling this function multiple times results in boolean AND between each condition. * Add fulltext query expression. Calling this function multiple times results in boolean AND between each condition.
* Query expression is escaped automatically * Query expression is escaped automatically
* *
* @string $Expr query expression * @param string $Expr query expression
* @string $Field field to match $Expr against. Default is *, which means all available fields * @param string $Field field to match $Expr against. Default is *, which means all available fields
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function where_match($Expr, $Field = '*') { public function where_match($Expr, $Field = '*') {
@ -254,8 +254,8 @@ public function where_match($Expr, $Field = '*') {
/** /**
* Specify the order of the matches. Calling this function multiple times sets secondary priorities * Specify the order of the matches. Calling this function multiple times sets secondary priorities
* *
* @string $Attribute attribute to use for sorting * @param string $Attribute attribute to use for sorting
* @string $Mode sort method to apply to the selected attribute * @param string $Mode sort method to apply to the selected attribute
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function order_by($Attribute, $Mode) { public function order_by($Attribute, $Mode) {
@ -266,7 +266,7 @@ public function order_by($Attribute, $Mode) {
/** /**
* Specify how the results are grouped * Specify how the results are grouped
* *
* @string $Attribute group matches with the same $Attribute value * @param string $Attribute group matches with the same $Attribute value
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function group_by($Attribute) { public function group_by($Attribute) {
@ -277,8 +277,8 @@ public function group_by($Attribute) {
/** /**
* Specify the order of the results within groups * Specify the order of the results within groups
* *
* @string $Attribute attribute to use for sorting * @param string $Attribute attribute to use for sorting
* @string $Mode sort method to apply to the selected attribute * @param string $Mode sort method to apply to the selected attribute
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function order_group_by($Attribute, $Mode) { public function order_group_by($Attribute, $Mode) {
@ -289,9 +289,9 @@ public function order_group_by($Attribute, $Mode) {
/** /**
* Specify the offset and amount of matches to return * Specify the offset and amount of matches to return
* *
* @int $Offset number of matches to discard * @param int $Offset number of matches to discard
* @int $Limit number of matches to return * @param int $Limit number of matches to return
* @int $MaxMatches number of results to store in the Sphinx server's memory * @param int $MaxMatches number of results to store in the Sphinx server's memory. Must be >= ($Offset+$Limit)
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function limit($Offset, $Limit, $MaxMatches = SPHINX_MATCHES_START) { public function limit($Offset, $Limit, $MaxMatches = SPHINX_MATCHES_START) {
@ -316,7 +316,7 @@ private function build_options() {
/** /**
* Combine the query conditions into a valid Sphinx query segment * Combine the query conditions into a valid Sphinx query segment
* *
* @return string of conditions * @return SphinxQL query string
*/ */
private function build_query() { private function build_query() {
if(!$this->Indexes) { if(!$this->Indexes) {
@ -350,7 +350,7 @@ private function build_query() {
/** /**
* Construct and send the query. Register the query in the global SphinxQL object * Construct and send the query. Register the query in the global SphinxQL object
* *
* @bool GetMeta whether to fetch meta data for the executed query. Default is yes * @param bool GetMeta whether to fetch meta data for the executed query. Default is yes
* @return SphinxQL result object * @return SphinxQL result object
*/ */
public function query($GetMeta = true) { public function query($GetMeta = true) {
@ -366,8 +366,8 @@ public function query($GetMeta = true) {
/** /**
* Run a manually constructed query * Run a manually constructed query
* *
* @string Query query expression * @param string Query query expression
* @bool GetMeta whether to fetch meta data for the executed query. Default is yes * @param bool GetMeta whether to fetch meta data for the executed query. Default is yes
* @return SphinxQL result object * @return SphinxQL result object
*/ */
public function raw_query($Query, $GetMeta = true) { public function raw_query($Query, $GetMeta = true) {
@ -378,7 +378,7 @@ public function raw_query($Query, $GetMeta = true) {
/** /**
* Run a pre-processed query. Only used internally * Run a pre-processed query. Only used internally
* *
* @bool GetMeta whether to fetch meta data for the executed query * @param bool GetMeta whether to fetch meta data for the executed query
* @return SphinxQL result object * @return SphinxQL result object
*/ */
private function send_query($GetMeta) { private function send_query($GetMeta) {
@ -439,10 +439,10 @@ class SPHINXQL_RESULT {
/** /**
* Create SphinxQL result object * Create SphinxQL result object
* *
* @mysqli_result $Result query results * @param mysqli_result $Result query results
* @array $Meta meta data for the query * @param array $Meta meta data for the query
* @int $Errno error code returned by the query upon failure * @param int $Errno error code returned by the query upon failure
* @string $Error error message returned by the query upon failure * @param string $Error error message returned by the query upon failure
*/ */
public function __construct($Result, $Meta, $Errno, $Error) { public function __construct($Result, $Meta, $Errno, $Error) {
$this->Result = $Result; $this->Result = $Result;
@ -454,8 +454,8 @@ public function __construct($Result, $Meta, $Errno, $Error) {
/** /**
* Redirect to the Mysqli result object if a nonexistent method is called * Redirect to the Mysqli result object if a nonexistent method is called
* *
* @string $Name method name * @param string $Name method name
* @array $Arguments arguments used in the function call * @param array $Arguments arguments used in the function call
* @return whatever the parent function returns * @return whatever the parent function returns
*/ */
public function __call($Name, $Arguments) { public function __call($Name, $Arguments) {
@ -465,7 +465,7 @@ public function __call($Name, $Arguments) {
/** /**
* Collect and return the specified key of all results as a list * Collect and return the specified key of all results as a list
* *
* @string $Key key containing the desired data * @param string $Key key containing the desired data
* @return array with the $Key value of all results * @return array with the $Key value of all results
*/ */
public function collect($Key) { public function collect($Key) {
@ -480,8 +480,8 @@ public function collect($Key) {
/** /**
* Collect and return all available data for the matches optionally indexed by a specified key * Collect and return all available data for the matches optionally indexed by a specified key
* *
* @string $Key key to use as indexing value * @param string $Key key to use as indexing value
* @string $ResultType method to use when fetching data from the mysqli_result object. Default is MYSQLI_ASSOC * @param string $ResultType method to use when fetching data from the mysqli_result object. Default is MYSQLI_ASSOC
* @return array with all available data for the matches * @return array with all available data for the matches
*/ */
public function to_array($Key, $ResultType = MYSQLI_ASSOC) { public function to_array($Key, $ResultType = MYSQLI_ASSOC) {
@ -500,8 +500,8 @@ public function to_array($Key, $ResultType = MYSQLI_ASSOC) {
/** /**
* Collect pairs of keys for all matches * Collect pairs of keys for all matches
* *
* @string $Key1 key to use as indexing value * @param string $Key1 key to use as indexing value
* @string $Key2 key to use as value * @param string $Key2 key to use as value
* @return array with $Key1 => $Key2 pairs for matches * @return array with $Key1 => $Key2 pairs for matches
*/ */
public function to_pair($Key1, $Key2) { public function to_pair($Key1, $Key2) {
@ -516,7 +516,7 @@ public function to_pair($Key1, $Key2) {
/** /**
* Return specified portions of the current SphinxQL result object's meta data * Return specified portions of the current SphinxQL result object's meta data
* *
* @mixed $Keys scalar or array with keys to return. Default is false, which returns all meta data * @param mixed $Keys scalar or array with keys to return. Default is false, which returns all meta data
* @return array with meta data * @return array with meta data
*/ */
public function get_meta($Keys = false) { public function get_meta($Keys = false) {
@ -541,7 +541,7 @@ public function get_meta($Keys = false) {
/** /**
* Return specified portions of the current Mysqli result object's information * Return specified portions of the current Mysqli result object's information
* *
* @mixed $Keys scalar or array with keys to return. Default is false, which returns all available information * @param mixed $Keys scalar or array with keys to return. Default is false, which returns all available information
* @return array with result information * @return array with result information
*/ */
public function get_result_info($Keys = false) { public function get_result_info($Keys = false) {

View File

@ -59,7 +59,7 @@ function head() {
echo '<p style="color: red;text-align:center;">'.$this->Error.'</p>'; echo '<p style="color: red;text-align:center;">'.$this->Error.'</p>';
} }
?> ?>
<form action="" enctype="multipart/form-data" method="post" id="upload_table" onsubmit="$('#post').raw().disabled = 'disabled'"> <form class="create_form" name="torrent" action="" enctype="multipart/form-data" method="post" id="upload_table" onsubmit="$('#post').raw().disabled = 'disabled'">
<div> <div>
<input type="hidden" name="submit" value="true" /> <input type="hidden" name="submit" value="true" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -393,7 +393,7 @@
<ul> <ul>
<li id="searchbar_torrents"> <li id="searchbar_torrents">
<span class="hidden">Torrents: </span> <span class="hidden">Torrents: </span>
<form action="torrents.php" method="get"> <form class="search_form" name="torrents" action="torrents.php" method="get">
<? if(isset($LoggedUser['SearchType']) && $LoggedUser['SearchType']) { // Advanced search ?> <? if(isset($LoggedUser['SearchType']) && $LoggedUser['SearchType']) { // Advanced search ?>
<input type="hidden" name="action" value="advanced" /> <input type="hidden" name="action" value="advanced" />
<? } ?> <? } ?>
@ -412,7 +412,7 @@
</li> </li>
<li id="searchbar_artists"> <li id="searchbar_artists">
<span class="hidden">Artist: </span> <span class="hidden">Artist: </span>
<form action="artist.php" method="get"> <form class="search_form" name="artists" action="artist.php" method="get">
<script type="text/javascript" src="static/functions/autocomplete.js?v=<?=filemtime(SERVER_ROOT.'/static/functions/autocomplete.js')?>"></script> <script type="text/javascript" src="static/functions/autocomplete.js?v=<?=filemtime(SERVER_ROOT.'/static/functions/autocomplete.js')?>"></script>
<input id="artistsearch" <input id="artistsearch"
onkeyup="autocomp.keyup(event);" onkeyup="autocomp.keyup(event);"
@ -427,7 +427,7 @@
</li> </li>
<li id="searchbar_requests"> <li id="searchbar_requests">
<span class="hidden">Requests: </span> <span class="hidden">Requests: </span>
<form action="requests.php" method="get"> <form class="search_form" name="requests" action="requests.php" method="get">
<input <input
spellcheck="false" spellcheck="false"
onfocus="if (this.value == 'Requests') this.value='';" onfocus="if (this.value == 'Requests') this.value='';"
@ -438,7 +438,7 @@
</li> </li>
<li id="searchbar_forums"> <li id="searchbar_forums">
<span class="hidden">Forums: </span> <span class="hidden">Forums: </span>
<form action="forums.php" method="get"> <form class="search_form" name="forums" action="forums.php" method="get">
<input value="search" type="hidden" name="action" /> <input value="search" type="hidden" name="action" />
<input <input
onfocus="if (this.value == 'Forums') this.value='';" onfocus="if (this.value == 'Forums') this.value='';"
@ -450,7 +450,7 @@
<!-- <!--
<li id="searchbar_wiki"> <li id="searchbar_wiki">
<span class="hidden">Wiki: </span> <span class="hidden">Wiki: </span>
<form action="wiki.php" method="get"> <form class="search_form" name="wiki" action="wiki.php" method="get">
<input type="hidden" name="action" value="search" /> <input type="hidden" name="action" value="search" />
<input <input
onfocus="if (this.value == 'Wiki') this.value='';" onfocus="if (this.value == 'Wiki') this.value='';"
@ -462,7 +462,7 @@
--> -->
<li id="searchbar_log"> <li id="searchbar_log">
<span class="hidden">Log: </span> <span class="hidden">Log: </span>
<form action="log.php" method="get"> <form class="search_form" name="log" action="log.php" method="get">
<input <input
onfocus="if (this.value == 'Log') this.value='';" onfocus="if (this.value == 'Log') this.value='';"
onblur="if (this.value == '') this.value='Log';" onblur="if (this.value == '') this.value='Log';"
@ -472,7 +472,7 @@
</li> </li>
<li id="searchbar_users"> <li id="searchbar_users">
<span class="hidden">Users: </span> <span class="hidden">Users: </span>
<form action="user.php" method="get"> <form class="search_form" name="users" action="user.php" method="get">
<input type="hidden" name="action" value="search" /> <input type="hidden" name="action" value="search" />
<input <input
onfocus="if (this.value == 'Users') this.value='';" onfocus="if (this.value == 'Users') this.value='';"

View File

@ -531,7 +531,7 @@ function compare($X, $Y){
<div class="head"><strong>Search File Lists</strong></div> <div class="head"><strong>Search File Lists</strong></div>
<ul class="nobullet"> <ul class="nobullet">
<li> <li>
<form name="filelistsearchform" action="torrents.php"> <form cass="search_form" name="filelists" action="torrents.php">
<input type="hidden" name="artistname" value="<?=$Name?>" /> <input type="hidden" name="artistname" value="<?=$Name?>" />
<input type="hidden" name="action" value="advanced" /> <input type="hidden" name="action" value="advanced" />
<input type="text" autocomplete="off" id="filelist" name="filelist" size="20" /> <input type="text" autocomplete="off" id="filelist" name="filelist" size="20" />
@ -554,7 +554,7 @@ function compare($X, $Y){
<div class="box"> <div class="box">
<div class="head colhead_dark"><strong>Collector</strong></div> <div class="head colhead_dark"><strong>Collector</strong></div>
<div class="pad"> <div class="pad">
<form action="artist.php" method="post"> <form class="download_form" name="zip" action="artist.php" method="post">
<input type="hidden" name="action" value="download" /> <input type="hidden" name="action" value="download" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="artistid" value="<?=$ArtistID?>" /> <input type="hidden" name="artistid" value="<?=$ArtistID?>" />
@ -683,11 +683,11 @@ function compare($X, $Y){
<? } ?> <? } ?>
</ul> </ul>
</div> </div>
<div class="box box_addartists"> <div class="box box_addartists box_addartists_similar">
<div class="head"><strong>Add similar artist</strong></div> <div class="head"><strong>Add similar artist</strong></div>
<ul class="nobullet"> <ul class="nobullet">
<li> <li>
<form action="artist.php" method="post"> <form class="add_form" name="similar_artists" action="artist.php" method="post">
<input type="hidden" name="action" value="add_similar" /> <input type="hidden" name="action" value="add_similar" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="artistid" value="<?=$ArtistID?>" /> <input type="hidden" name="artistid" value="<?=$ArtistID?>" />

View File

@ -545,7 +545,7 @@ function display_name($ReleaseType) {
<div class="head"><strong>Add similar artist</strong></div> <div class="head"><strong>Add similar artist</strong></div>
<ul class="nobullet"> <ul class="nobullet">
<li> <li>
<form action="artist.php" method="post"> <form class="add_form" name="similar_artists" action="artist.php" method="post">
<input type="hidden" name="action" value="add_similar" /> <input type="hidden" name="action" value="add_similar" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="artistid" value="<?=$ArtistID?>" /> <input type="hidden" name="artistid" value="<?=$ArtistID?>" />

View File

@ -125,7 +125,7 @@
<div class="header"> <div class="header">
<h2>Confirm merge</h2> <h2>Confirm merge</h2>
</div> </div>
<form action="artist.php" method="post"> <form class="merge_form" name="artist" action="artist.php" method="post">
<input type="hidden" name="action" value="change_artistid" /> <input type="hidden" name="action" value="change_artistid" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="artistid" value="<?=$ArtistID?>" /> <input type="hidden" name="artistid" value="<?=$ArtistID?>" />

View File

@ -37,7 +37,7 @@
<h2>Edit <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2> <h2>Edit <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2>
</div> </div>
<div class="box pad"> <div class="box pad">
<form action="artist.php" method="post"> <form class="edit_form" name="artist" action="artist.php" method="post">
<input type="hidden" name="action" value="edit" /> <input type="hidden" name="action" value="edit" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="artistid" value="<?=$ArtistID?>" /> <input type="hidden" name="artistid" value="<?=$ArtistID?>" />
@ -58,7 +58,7 @@
<? if(check_perms('torrents_edit')) { ?> <? if(check_perms('torrents_edit')) { ?>
<h2>Rename</h2> <h2>Rename</h2>
<div class="box pad"> <div class="box pad">
<form action="artist.php" method="post"> <form class="rename_form" name="artist" action="artist.php" method="post">
<input type="hidden" name="action" value="rename" /> <input type="hidden" name="action" value="rename" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="artistid" value="<?=$ArtistID?>" /> <input type="hidden" name="artistid" value="<?=$ArtistID?>" />
@ -74,7 +74,7 @@
<h2>Make into non-redirecting alias</h2> <h2>Make into non-redirecting alias</h2>
<div class="box pad"> <div class="box pad">
<form action="artist.php" method="post"> <form class="merge_form" name="artist" action="artist.php" method="post">
<input type="hidden" name="action" value="change_artistid" /> <input type="hidden" name="action" value="change_artistid" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="artistid" value="<?=$ArtistID?>" /> <input type="hidden" name="artistid" value="<?=$ArtistID?>" />
@ -87,7 +87,6 @@
<br /><br /> <br /><br />
<input type="submit" value="Change ArtistID" /> <input type="submit" value="Change ArtistID" />
</div> </div>
</div> </div>
</form> </form>
</div> </div>
@ -109,23 +108,18 @@
<? } <? }
?> ?>
</ul> </ul>
<form action="artist.php" method="post"> <form class="add_form" name="aliases" action="artist.php" method="post">
<div> <input type="hidden" name="action" value="add_alias" />
<input type="hidden" name="action" value="add_alias" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="artistid" value="<?=$ArtistID?>" />
<input type="hidden" name="artistid" value="<?=$ArtistID?>" /> <h3>Name:</h3>
<h3>Name:</h3> <input type="text" name="name" size="40" value="<?=$Name?>" /><br />
<input type="text" name="name" size="40" value="<?=$Name?>" /><br /> <h3>Writes redirect to (Alias ID, blank for no redirect):</h3>
<h3>Writes redirect to (Alias ID, blank for no redirect):</h3> <input type="text" name="redirect" size="40" value="<?=$DefaultRedirectID?>" /><br />
<input type="text" name="redirect" size="40" value="<?=$DefaultRedirectID?>" /><br /> <em>This redirects artist names as they are written, eg. new torrents and added artists. All uses of this new alias will be redirected to the alias ID you enter here. Use for common misspellings, etc.</em><br />
<em>This redirects artist names as they are written, eg. new torrents and added artists. All uses of this new alias will be redirected to the alias ID you enter here. Use for common misspellings, etc.</em><br /> <input type="submit" value="Add alias" />
<input type="submit" value="Add alias" />
</div>
</form> </form>
</div> </div>
<? } ?> <? } ?>
</div> </div>
<? show_footer() ?> <? show_footer() ?>

View File

@ -68,22 +68,20 @@
?> ?>
<br /> <br />
<div class="thin"> <div class="thin">
<div> <form class="search_form" name="transcodes" action="" method="get">
<form action="" method="get"> <table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%"> <tr>
<tr> <td class="label"><strong>Search:</strong></td>
<td class="label"><strong>Search:</strong></td> <td>
<td> <input type="hidden" name="method" value="transcode" />
<input type="hidden" name="method" value="transcode" /> <input type="hidden" name="type" value="<?=$_GET['type']?>" />
<input type="hidden" name="type" value="<?=$_GET['type']?>" /> <input type="text" name="search" size="60" value="<?=(!empty($_GET['search']) ? display_str($_GET['search']) : '')?>" />
<input type="text" name="search" size="60" value="<?=(!empty($_GET['search']) ? display_str($_GET['search']) : '')?>" /> &nbsp;
&nbsp; <input type="submit" value="Search" />
<input type="submit" value="Search" /> </td>
</td> </tr>
</tr> </table>
</table> </form>
</form>
</div>
<table width="100%" class="torrent_table"> <table width="100%" class="torrent_table">
<tr class="colhead"> <tr class="colhead">
<td>Torrent</td> <td>Torrent</td>

View File

@ -87,7 +87,7 @@
<div class="head"> <div class="head">
<?=((empty($_GET['action'])) ? 'Create a blog post' : 'Edit blog post')?> <?=((empty($_GET['action'])) ? 'Create a blog post' : 'Edit blog post')?>
</div> </div>
<form action="blog.php" method="post"> <form class="<?=empty($_GET['action'])?'create_form':'edit_form'?>" name="blog_post" action="blog.php" method="post">
<div class="pad"> <div class="pad">
<input type="hidden" name="action" value="<?=((empty($_GET['action'])) ? 'takenewblog' : 'takeeditblog')?>" /> <input type="hidden" name="action" value="<?=((empty($_GET['action'])) ? 'takenewblog' : 'takeeditblog')?>" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -1,5 +1,6 @@
<? <?
include(SERVER_ROOT.'/classes/class_image_tools.php'); include(SERVER_ROOT.'/classes/class_image_tools.php');
ini_set('max_execution_time',600);
set_time_limit(0); set_time_limit(0);
//~~~~~~~~~~~ Main bookmarks page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// //~~~~~~~~~~~ Main bookmarks page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//

View File

@ -73,7 +73,7 @@
<strong>Read the topic before asking questions.</strong> <strong>Read the topic before asking questions.</strong>
</li> </li>
</ul> </ul>
<form method="post" action="chat.php" class="center"> <form class="confirm_form center" name="chat" method="post" action="chat.php">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="submit" name="accept" value="I agree to these rules" /> <input type="submit" name="accept" value="I agree to these rules" />
</form> </form>

View File

@ -110,7 +110,7 @@
<br /> <br />
<h3>Post reply</h3> <h3>Post reply</h3>
<div class="box pad" style="padding:20px 10px 10px 10px;"> <div class="box pad" style="padding:20px 10px 10px 10px;">
<form id="quickpostform" action="" method="post" style="display: block; text-align: center;"> <form class="send_form center" name="comment" id="quickpostform" action="" method="post">
<input type="hidden" name="action" value="add_comment" /> <input type="hidden" name="action" value="add_comment" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" /> <input type="hidden" name="collageid" value="<?=$CollageID?>" />

View File

@ -150,7 +150,7 @@
</div> </div>
<? if (!$BookmarkView) { ?> <? if (!$BookmarkView) { ?>
<div> <div>
<form action="" method="get"> <form class="search_form" name="collages" action="" method="get">
<div><input type="hidden" name="action" value="search" /></div> <div><input type="hidden" name="action" value="search" /></div>
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr> <tr>

View File

@ -416,7 +416,7 @@ function compare($X, $Y){
<div class="box box_zipdownload"> <div class="box box_zipdownload">
<div class="head colhead_dark"><strong>Collector</strong></div> <div class="head colhead_dark"><strong>Collector</strong></div>
<div class="pad"> <div class="pad">
<form action="collages.php" method="post"> <form class="download_form" name="zip" action="collages.php" method="post">
<input type="hidden" name="action" value="download" /> <input type="hidden" name="action" value="download" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" /> <input type="hidden" name="collageid" value="<?=$CollageID?>" />
@ -531,9 +531,9 @@ function compare($X, $Y){
</div> </div>
<? if(check_perms('site_collages_manage') && !$Locked) { ?> <? if(check_perms('site_collages_manage') && !$Locked) { ?>
<div class="box box_addtorrent"> <div class="box box_addtorrent">
<div class="head"><strong>Add torrent</strong><span style="float: right"><a href="#" onclick="$('#addtorrent').toggle(); $('#batchadd').toggle(); this.innerHTML = (this.innerHTML == '[Batch Add]'?'[Individual Add]':'[Batch Add]'); return false;">[Batch Add]</a></span></div> <div class="head"><strong>Add torrent</strong><span style="float: right"><a href="#" onclick="$('.add_torrent_container').toggle_class('hidden'); this.innerHTML = (this.innerHTML == '[Batch Add]'?'[Individual Add]':'[Batch Add]'); return false;">[Batch Add]</a></span></div>
<div class="pad" id="addtorrent"> <div class="pad add_torrent_container">
<form action="collages.php" method="post"> <form class="add_form" name="torrent" action="collages.php" method="post">
<input type="hidden" name="action" value="add_torrent" /> <input type="hidden" name="action" value="add_torrent" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" /> <input type="hidden" name="collageid" value="<?=$CollageID?>" />
@ -543,8 +543,8 @@ function compare($X, $Y){
<i>Enter the URL of a torrent on the site.</i> <i>Enter the URL of a torrent on the site.</i>
</form> </form>
</div> </div>
<div class="pad hidden" id="batchadd"> <div class="pad hidden add_torrent_container">
<form action="collages.php" method="post"> <form class="add_form" name="torrents" action="collages.php" method="post">
<input type="hidden" name="action" value="add_torrent_batch" /> <input type="hidden" name="action" value="add_torrent_batch" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" /> <input type="hidden" name="collageid" value="<?=$CollageID?>" />
@ -589,7 +589,7 @@ function compare($X, $Y){
?> ?>
<div class="box box_addcomment"> <div class="box box_addcomment">
<div class="head"><strong>Add comment</strong></div> <div class="head"><strong>Add comment</strong></div>
<form id="quickpostform" onsubmit="quickpostform.submit_button.disabled=true;" action="collages.php" method="post"> <form class="send_form" name="comment" id="quickpostform" onsubmit="quickpostform.submit_button.disabled=true;" action="collages.php" method="post">
<input type="hidden" name="action" value="add_comment" /> <input type="hidden" name="action" value="add_comment" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" /> <input type="hidden" name="collageid" value="<?=$CollageID?>" />

View File

@ -20,7 +20,7 @@
Delete collage Delete collage
</div> </div>
<div class="pad"> <div class="pad">
<form action="collages.php" method="post"> <form class="delete_form" name="collage" action="collages.php" method="post">
<input type="hidden" name="action" value="take_delete" /> <input type="hidden" name="action" value="take_delete" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" /> <input type="hidden" name="collageid" value="<?=$CollageID?>" />

View File

@ -14,7 +14,7 @@
<div class="header"> <div class="header">
<h2>Edit collage <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a></h2> <h2>Edit collage <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a></h2>
</div> </div>
<form action="collages.php" method="post"> <form class="edit_form" name="collage" action="collages.php" method="post">
<input type="hidden" name="action" value="edit_handle" /> <input type="hidden" name="action" value="edit_handle" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" /> <input type="hidden" name="collageid" value="<?=$CollageID?>" />

View File

@ -96,7 +96,7 @@
$AltCSS = $Number % 2 === 0 ? 'rowa' : 'rowb'; $AltCSS = $Number % 2 === 0 ? 'rowa' : 'rowb';
?> ?>
<tr class="drag <?=$AltCSS?>" id="li_<?=$GroupID?>"> <tr class="drag <?=$AltCSS?>" id="li_<?=$GroupID?>">
<form action="collages.php" method="post"> <form class="manage_form" name="collage" action="collages.php" method="post">
<td> <td>
<input class="sort_numbers" type="text" name="sort" value="<?=$Sort?>" id="sort_<?=$GroupID?>" size="4" /> <input class="sort_numbers" type="text" name="sort" value="<?=$Sort?>" id="sort_<?=$GroupID?>" size="4" />
</td> </td>
@ -121,7 +121,7 @@
<div class="drag_drop_save hidden"> <div class="drag_drop_save hidden">
<input type="button" name="submit" value="Save All Changes" title="Save your changes." class="save_sortable_collage" /> <input type="button" name="submit" value="Save All Changes" title="Save your changes." class="save_sortable_collage" />
</div> </div>
<form action="collages.php" method="post" id="drag_drop_collage_form" class="hidden"> <form class="dragdrop_form hidden" name="collage" action="collages.php" method="post" id="drag_drop_collage_form">
<div> <div>
<input type="hidden" name="action" value="manage_handle" /> <input type="hidden" name="action" value="manage_handle" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -21,7 +21,7 @@
<div class="save_message error"><?=display_str($Error)?></div> <div class="save_message error"><?=display_str($Error)?></div>
<br /> <br />
<? } ?> <? } ?>
<form action="collages.php" method="post" name="newcollage"> <form class="create_form" name="collage" action="collages.php" method="post">
<input type="hidden" name="action" value="new_handle" /> <input type="hidden" name="action" value="new_handle" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<table class="layout"> <table class="layout">

View File

@ -25,7 +25,7 @@
Recover deleted collage Recover deleted collage
</div> </div>
<div class="pad"> <div class="pad">
<form action="collages.php" method="post"> <form class="undelete_form" name="collage" action="collages.php" method="post">
<input type="hidden" name="action" value="recover" /> <input type="hidden" name="action" value="recover" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<strong>ID: </strong> <strong>ID: </strong>

View File

@ -27,7 +27,7 @@
<h3>Test IPN</h3> <h3>Test IPN</h3>
</div> </div>
<div class="box pad"> <div class="box pad">
<form method="post" action="donate.php"> <form class="donate_form" name="test_paypal" method="post" action="donate.php">
<input type="hidden" name="action" value="ipn"> <input type="hidden" name="action" value="ipn">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<?=PAYPAL_SYMBOL?> <input type="text" name="mc_gross" value="<?=number_format(PAYPAL_MINIMUM,2)?>"> <?=PAYPAL_SYMBOL?> <input type="text" name="mc_gross" value="<?=number_format(PAYPAL_MINIMUM,2)?>">
@ -53,7 +53,7 @@
<p>Because we do not have any advertisements or sponsorships and this service is provided free of charge, we are entirely reliant upon user donations. If you are financially able, please consider making a donation to help us pay the bills!</p> <p>Because we do not have any advertisements or sponsorships and this service is provided free of charge, we are entirely reliant upon user donations. If you are financially able, please consider making a donation to help us pay the bills!</p>
<p>We currently only accept one payment method; PayPal. Because of the fees they charge, there is a <strong>minimum donation amount of <?=PAYPAL_SYMBOL?> <?=PAYPAL_MINIMUM?></strong> (Please note, this is only a minimum amount and we greatly appreciate any extra you can afford.).</b></p> <p>We currently only accept one payment method; PayPal. Because of the fees they charge, there is a <strong>minimum donation amount of <?=PAYPAL_SYMBOL?> <?=PAYPAL_MINIMUM?></strong> (Please note, this is only a minimum amount and we greatly appreciate any extra you can afford.).</b></p>
<p>You don't have to be a PayPal member to make a donation, you can simply donate with your credit/debit card. If you do not have a credit/debit card, you should be able to donate from your bank account, but you will need to make an account with them to do this.</p> <p>You don't have to be a PayPal member to make a donation, you can simply donate with your credit/debit card. If you do not have a credit/debit card, you should be able to donate from your bank account, but you will need to make an account with them to do this.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <form class="donate_form" name="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="rm" value="2"> <input type="hidden" name="rm" value="2">
<input type="hidden" name="cmd" value="_donations"> <input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="<?=PAYPAL_ADDRESS?>"> <input type="hidden" name="business" value="<?=PAYPAL_ADDRESS?>">

View File

@ -26,7 +26,7 @@
<h3>Test IPN</h3> <h3>Test IPN</h3>
</div> </div>
<div class="box pad"> <div class="box pad">
<form method="post" action="donate.php"> <form class="donate_form" name="test_paypal" method="post" action="donate.php">
<input type="hidden" name="action" value="ipn"> <input type="hidden" name="action" value="ipn">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<?=PAYPAL_SYMBOL?> <input type="text" name="mc_gross" value="<?=number_format(PAYPAL_MINIMUM,2)?>"> <?=PAYPAL_SYMBOL?> <input type="text" name="mc_gross" value="<?=number_format(PAYPAL_MINIMUM,2)?>">
@ -52,7 +52,7 @@
<p>Because we do not have any advertisements or sponsorships and this service is provided free of charge, we are entirely reliant upon user donations. If you are financially able, please consider making a donation to help us pay the bills!</p> <p>Because we do not have any advertisements or sponsorships and this service is provided free of charge, we are entirely reliant upon user donations. If you are financially able, please consider making a donation to help us pay the bills!</p>
<p>We currently only accept one payment method; PayPal. Because of the fees they charge, there is a <strong>minimum donation amount of <?=PAYPAL_SYMBOL?> <?=PAYPAL_MINIMUM?></strong> (Please note, this is only a minimum amount and we greatly appreciate any extra you can afford.).</b></p> <p>We currently only accept one payment method; PayPal. Because of the fees they charge, there is a <strong>minimum donation amount of <?=PAYPAL_SYMBOL?> <?=PAYPAL_MINIMUM?></strong> (Please note, this is only a minimum amount and we greatly appreciate any extra you can afford.).</b></p>
<p>You don't have to be a PayPal member to make a donation, you can simply donate with your credit/debit card. If you do not have a credit/debit card, you should be able to donate from your bank account, but you will need to make an account with them to do this.</p> <p>You don't have to be a PayPal member to make a donation, you can simply donate with your credit/debit card. If you do not have a credit/debit card, you should be able to donate from your bank account, but you will need to make an account with them to do this.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <form class="donate_form" name="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="rm" value="2"> <input type="hidden" name="rm" value="2">
<input type="hidden" name="cmd" value="_donations"> <input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="<?=PAYPAL_ADDRESS?>"> <input type="hidden" name="business" value="<?=PAYPAL_ADDRESS?>">

View File

@ -48,7 +48,7 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<form action="" method="post"> <form class="add_form" name="forum_rules" action="" method="post">
<td> <td>
<input name="new_thread" type="text" size="8" /> <input name="new_thread" type="text" size="8" />
</td> </td>
@ -60,7 +60,7 @@
<tr> <tr>
<td><?=$ThreadID?></td> <td><?=$ThreadID?></td>
<td> <td>
<form action="" method="post"> <form class="delete_form" name="forum_rules" action="" method="post">
<input type="hidden" name="threadid" value="<?=$ThreadID?>" /> <input type="hidden" name="threadid" value="<?=$ThreadID?>" />
<input type="submit" name="del" value="Delete link" /> <input type="submit" name="del" value="Delete link" />
</form> </form>

View File

@ -76,7 +76,7 @@
<div id="searchforum" class="hidden center"> <div id="searchforum" class="hidden center">
<div style="display: inline-block;"> <div style="display: inline-block;">
<h3>Search this forum:</h3> <h3>Search this forum:</h3>
<form action="forums.php" method="get"> <form class="search_form" name="forum" action="forums.php" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="layout border"> <table cellpadding="6" cellspacing="1" border="0" class="layout border">
<input type="hidden" name="action" value="search" /> <input type="hidden" name="action" value="search" />
<input type="hidden" name="forums[]" value="<?=$ForumID?>" /> <input type="hidden" name="forums[]" value="<?=$ForumID?>" />

View File

@ -71,7 +71,7 @@
</table> </table>
</div> </div>
<div class="box pad"> <div class="box pad">
<form action="" id="newthreadform" onsubmit="newthreadform.submit_button.disabled=true;" method="post"> <form class="create_form" name="forum_thread" action="" id="newthreadform" onsubmit="newthreadform.submit_button.disabled=true;" method="post">
<input type="hidden" name="action" value="new" /> <input type="hidden" name="action" value="new" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="forum" value="<?=$ForumID?>" /> <input type="hidden" name="forum" value="<?=$ForumID?>" />

View File

@ -68,7 +68,7 @@
if (!isset($_POST['vote']) || !is_number($_POST['vote'])) { if (!isset($_POST['vote']) || !is_number($_POST['vote'])) {
?> ?>
<span class="error">Please select an option.</span><br /> <span class="error">Please select an option.</span><br />
<form id="polls"> <form class="vote_form" name="poll" id="poll">
<input type="hidden" name="action" value="poll"/> <input type="hidden" name="action" value="poll"/>
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="large" value="<?=display_str($_POST['large'])?>"/> <input type="hidden" name="large" value="<?=display_str($_POST['large'])?>"/>
@ -78,7 +78,7 @@
<label for="answer_<?=$i?>"><?=display_str($Answers[$i])?></label><br /> <label for="answer_<?=$i?>"><?=display_str($Answers[$i])?></label><br />
<? } ?> <? } ?>
<br /><input type="radio" name="vote" id="answer_0" value="0" /> <label for="answer_0">Blank - Show the results!</label><br /><br /> <br /><input type="radio" name="vote" id="answer_0" value="0" /> <label for="answer_0">Blank - Show the results!</label><br /><br />
<input type="button" onclick="ajax.post('index.php','polls',function(response){$('#poll_results').raw().innerHTML = response});" value="Vote"> <input type="button" onclick="ajax.post('index.php','poll',function(response){$('#poll_container').raw().innerHTML = response});" value="Vote" />
</form> </form>
<? <?
} else { } else {

View File

@ -78,7 +78,7 @@
?> ?>
<div class="thin"> <div class="thin">
<h2><a href="forums.php">Forums</a> &gt; Search<?=$Title?></h2> <h2><a href="forums.php">Forums</a> &gt; Search<?=$Title?></h2>
<form action="" method="get"> <form class="search_form" name="forums" action="" method="get">
<input type="hidden" name="action" value="search" /> <input type="hidden" name="action" value="search" />
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr> <tr>

View File

@ -155,7 +155,7 @@
<div id="searchthread" class="hidden center"> <div id="searchthread" class="hidden center">
<div style="display: inline-block;"> <div style="display: inline-block;">
<h3>Search this thread:</h3> <h3>Search this thread:</h3>
<form action="forums.php" method="get"> <form class="search_form" name="forum_thread" action="forums.php" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="layout border"> <table cellpadding="6" cellspacing="1" border="0" class="layout border">
<tr> <tr>
<td><strong>Search for:</strong></td><td><input type="text" id="searchbox" name="search" size="70" /></td> <td><strong>Search for:</strong></td><td><input type="text" id="searchbox" name="search" size="70" /></td>
@ -319,8 +319,8 @@
} else { } else {
//User has not voted //User has not voted
?> ?>
<div id="poll_results"> <div id="poll_container">
<form id="polls"> <form class="vote_form" name="poll" id="poll">
<input type="hidden" name="action" value="poll"/> <input type="hidden" name="action" value="poll"/>
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="large" value="1"/> <input type="hidden" name="large" value="1"/>
@ -342,13 +342,13 @@
<br /> <br />
<br /> <br />
<? } ?> <? } ?>
<input type="button" style="float: left;" onclick="ajax.post('index.php','polls',function(response){$('#poll_results').raw().innerHTML = response});" value="Vote"> <input type="button" style="float: left;" onclick="ajax.post('index.php','poll',function(response){$('#poll_container').raw().innerHTML = response});" value="Vote">
</form> </form>
</div> </div>
<? } ?> <? } ?>
<? if(check_perms('forums_polls_moderate') && !$RevealVoters) { ?> <? if(check_perms('forums_polls_moderate') && !$RevealVoters) { ?>
<? if (!$Featured || $Featured == '0000-00-00 00:00:00') { ?> <? if (!$Featured || $Featured == '0000-00-00 00:00:00') { ?>
<form action="forums.php" method="post"> <form class="manage_form" name="poll" action="forums.php" method="post">
<input type="hidden" name="action" value="poll_mod"/> <input type="hidden" name="action" value="poll_mod"/>
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="topicid" value="<?=$ThreadID?>" /> <input type="hidden" name="topicid" value="<?=$ThreadID?>" />
@ -356,7 +356,7 @@
<input type="submit" style="float: left;" onclick="return confirm('Are you sure you want to feature this poll?');"; value="Feature"> <input type="submit" style="float: left;" onclick="return confirm('Are you sure you want to feature this poll?');"; value="Feature">
</form> </form>
<? } ?> <? } ?>
<form action="forums.php" method="post"> <form class="manage_form" name="poll" action="forums.php" method="post">
<input type="hidden" name="action" value="poll_mod"/> <input type="hidden" name="action" value="poll_mod"/>
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="topicid" value="<?=$ThreadID?>" /> <input type="hidden" name="topicid" value="<?=$ThreadID?>" />
@ -416,13 +416,13 @@
if(check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) { if(check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
$AuthorInfo = user_info($AuthorID); $AuthorInfo = user_info($AuthorID);
if($LoggedUser['Class'] >= $AuthorInfo['Class']) { ?> if($LoggedUser['Class'] >= $AuthorInfo['Class']) { ?>
<form action="" style="display: none;" name="warn<?=$PostID?>" method="post"> <form class="manage_form hidden" name="user" id="warn<?=$PostID?>" action="" method="post">
<input type="hidden" name="action" value="warn" /> <input type="hidden" name="action" value="warn" />
<input type="hidden" name="postid" value="<?=$PostID?>" /> <input type="hidden" name="postid" value="<?=$PostID?>" />
<input type="hidden" name="userid" value="<?=$AuthorID?>" /> <input type="hidden" name="userid" value="<?=$AuthorID?>" />
<input type="hidden" name="key" value="<?=$Key?>" /> <input type="hidden" name="key" value="<?=$Key?>" />
</form> </form>
- <a href="#" onclick="document.warn<?=$PostID?>.submit(); return false;">[Warn]</a> - <a href="#" onclick="$('#warn<?=$PostID?>').raw().submit(); return false;">[Warn]</a>
<? } ?> <? } ?>
<? } <? }
?> ?>
@ -500,7 +500,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<form id="quickpostform" action="" <? if(!check_perms('users_mod')) { ?> onsubmit="quickpostform.submit_button.disabled=true;" <? } ?> method="post" style="display: block; text-align: center;"> <form class="send_form center" name="reply" id="quickpostform" action="" <? if(!check_perms('users_mod')) { ?> onsubmit="quickpostform.submit_button.disabled=true;" <? } ?> method="post">
<input type="hidden" name="action" value="reply" /> <input type="hidden" name="action" value="reply" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="thread" value="<?=$ThreadID?>" /> <input type="hidden" name="thread" value="<?=$ThreadID?>" />
@ -531,7 +531,7 @@
?> ?>
<br /> <br />
<h3>Edit thread</h3> <h3>Edit thread</h3>
<form action="forums.php" method="post"> <form class="edit_form" name="forum_thread" action="forums.php" method="post">
<div> <div>
<input type="hidden" name="action" value="mod_thread" /> <input type="hidden" name="action" value="mod_thread" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -18,7 +18,7 @@
<h2>Warning <a href="user.php?id=<?=$UserID?>"><?=$UserInfo['Username']?></a></h2> <h2>Warning <a href="user.php?id=<?=$UserID?>"><?=$UserInfo['Username']?></a></h2>
</div> </div>
<div class="thin box pad"> <div class="thin box pad">
<form action="" onsubmit="quickpostform.submit_button.disabled=true;" method="post"> <form class="send_form" name="warning" action="" onsubmit="quickpostform.submit_button.disabled=true;" method="post">
<input type="hidden" name="postid" value="<?=$PostID?>"/> <input type="hidden" name="postid" value="<?=$PostID?>"/>
<input type="hidden" name="userid" value="<?=$UserID?>"/> <input type="hidden" name="userid" value="<?=$UserID?>"/>
<input type="hidden" name="key" value="<?=$Key?>"/> <input type="hidden" name="key" value="<?=$Key?>"/>

View File

@ -66,7 +66,7 @@
foreach($Friends as $Friend) { foreach($Friends as $Friend) {
list($FriendID, $Comment, $Username, $Uploaded, $Downloaded, $Class, $Paranoia, $LastAccess, $Avatar) = $Friend; list($FriendID, $Comment, $Username, $Uploaded, $Downloaded, $Class, $Paranoia, $LastAccess, $Avatar) = $Friend;
?> ?>
<form action="friends.php" method="post"> <form class="manage_form" name="friends" action="friends.php" method="post">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<table class="friends_table vertical_margin"> <table class="friends_table vertical_margin">
<tr class="colhead"> <tr class="colhead">

View File

@ -23,7 +23,7 @@
<div class="header"> <div class="header">
<h2>Send a message to <a href="user.php?id=<?=$ToID?>"><?=$Username?></a></h2> <h2>Send a message to <a href="user.php?id=<?=$ToID?>"><?=$Username?></a></h2>
</div> </div>
<form action="inbox.php" method="post" id="messageform"> <form class="send_form" name="message" action="inbox.php" method="post" id="messageform">
<div class="box pad"> <div class="box pad">
<input type="hidden" name="action" value="takecompose" /> <input type="hidden" name="action" value="takecompose" />
<input type="hidden" name="toid" value="<?=$ToID?>" /> <input type="hidden" name="toid" value="<?=$ToID?>" />
@ -32,7 +32,7 @@
<h3>Subject</h3> <h3>Subject</h3>
<input type="text" name="subject" size="95" value="<?=(!empty($Subject) ? $Subject : '')?>"/><br /> <input type="text" name="subject" size="95" value="<?=(!empty($Subject) ? $Subject : '')?>"/><br />
<h3>Body</h3> <h3>Body</h3>
<textarea id="body" name="body" cols="95" rows="10"><?=(!empty($Body) ? $Body : '')?></textarea> <textarea id="body" name="body" cols="95" rows="10"><?=(!empty($Body) ? $Body : '')?></textarea>
</div> </div>
<div id="preview" class="hidden"></div> <div id="preview" class="hidden"></div>
<div id="buttons" class="center"> <div id="buttons" class="center">
@ -45,4 +45,4 @@
<? <?
show_footer(); show_footer();
?> ?>

View File

@ -85,7 +85,7 @@
if(!empty($ReceiverIDs) && (empty($LoggedUser['DisablePM']) || array_intersect($ReceiverIDs, array_keys($StaffIDs)))) { if(!empty($ReceiverIDs) && (empty($LoggedUser['DisablePM']) || array_intersect($ReceiverIDs, array_keys($StaffIDs)))) {
?> ?>
<h3>Reply</h3> <h3>Reply</h3>
<form action="inbox.php" method="post" id="messageform"> <form class="send_form" name="reply" action="inbox.php" method="post" id="messageform">
<div class="box pad"> <div class="box pad">
<input type="hidden" name="action" value="takecompose" /> <input type="hidden" name="action" value="takecompose" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -103,7 +103,7 @@
} }
?> ?>
<h3>Manage conversation</h3> <h3>Manage conversation</h3>
<form action="inbox.php" method="post"> <form class="manage_form" name="messages" action="inbox.php" method="post">
<div class="box pad"> <div class="box pad">
<input type="hidden" name="action" value="takeedit" /> <input type="hidden" name="action" value="takeedit" />
<input type="hidden" name="convid" value="<?=$ConvID?>" /> <input type="hidden" name="convid" value="<?=$ConvID?>" />
@ -137,7 +137,7 @@
if((check_perms('users_mod') || $FLS != "") && (!$ForwardedID || $ForwardedID == $LoggedUser['ID'])) { if((check_perms('users_mod') || $FLS != "") && (!$ForwardedID || $ForwardedID == $LoggedUser['ID'])) {
?> ?>
<h3>Forward conversation</h3> <h3>Forward conversation</h3>
<form action="inbox.php" method="post"> <form class="send_form" name="forward" action="inbox.php" method="post">
<div class="box pad"> <div class="box pad">
<input type="hidden" name="action" value="forward" /> <input type="hidden" name="action" value="forward" />
<input type="hidden" name="convid" value="<?=$ConvID?>" /> <input type="hidden" name="convid" value="<?=$ConvID?>" />

View File

@ -88,7 +88,7 @@
<? if($DB->record_count()==0) { ?> <? if($DB->record_count()==0) { ?>
<h2>Your <?= ($Section == 'sentbox') ? 'sentbox' : 'inbox' ?> is currently empty</h2> <h2>Your <?= ($Section == 'sentbox') ? 'sentbox' : 'inbox' ?> is currently empty</h2>
<? } else { ?> <? } else { ?>
<form action="inbox.php" method="get" id="searchbox"> <form class="search_form" name="<?= ($Section == 'sentbox')?'sentbox':'inbox'?>" name="" action="inbox.php" method="get" id="searchbox">
<div> <div>
<input type="hidden" name="action" value="<?=$Section?>" /> <input type="hidden" name="action" value="<?=$Section?>" />
<input type="radio" name="searchtype" value="user" checked="checked" /> User <input type="radio" name="searchtype" value="user" checked="checked" /> User
@ -108,7 +108,7 @@
/> />
</div> </div>
</form> </form>
<form action="inbox.php" method="post" id="messageform"> <form class="manage_form" name="messages" action="inbox.php" method="post" id="messageform">
<input type="hidden" name="action" value="masschange" /> <input type="hidden" name="action" value="masschange" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="submit" name="read" value="Mark as read" />&nbsp; <input type="submit" name="read" value="Mark as read" />&nbsp;

View File

@ -307,8 +307,8 @@
</ul> </ul>
<strong>Votes:</strong> <?=number_format($TotalVotes)?><br /> <strong>Votes:</strong> <?=number_format($TotalVotes)?><br />
<? } else { ?> <? } else { ?>
<div id="poll_results"> <div id="poll_container">
<form id="polls" action=""> <form class="vote_form" name="poll" id="poll" action="">
<input type="hidden" name="action" value="poll"/> <input type="hidden" name="action" value="poll"/>
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>"/> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>"/>
<input type="hidden" name="topicid" value="<?=$TopicID?>" /> <input type="hidden" name="topicid" value="<?=$TopicID?>" />
@ -317,7 +317,7 @@
<label for="answer_<?=$i?>"><?=display_str($Answers[$i])?></label><br /> <label for="answer_<?=$i?>"><?=display_str($Answers[$i])?></label><br />
<? } ?> <? } ?>
<br /><input type="radio" name="vote" id="answer_0" value="0" /> <label for="answer_0">Blank - Show the results!</label><br /><br /> <br /><input type="radio" name="vote" id="answer_0" value="0" /> <label for="answer_0">Blank - Show the results!</label><br /><br />
<input type="button" onclick="ajax.post('index.php','polls',function(response){$('#poll_results').raw().innerHTML = response});" value="Vote" /> <input type="button" onclick="ajax.post('index.php','poll',function(response){$('#poll_container').raw().innerHTML = response});" value="Vote" />
</form> </form>
</div> </div>
<? } ?> <? } ?>

View File

@ -20,7 +20,7 @@
<h2>Site log<?=$BetaLog ? ' (beta)' : ''?></h2> <h2>Site log<?=$BetaLog ? ' (beta)' : ''?></h2>
</div> </div>
<div> <div>
<form action="" method="get"> <form class="search_form" name="log" action="" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr> <tr>
<td class="label"><strong>Search for:</strong></td> <td class="label"><strong>Search for:</strong></td>

View File

@ -50,7 +50,7 @@ function toggle_visibility(id) {
Please use your What.CD? username. Please use your What.CD? username.
</p> </p>
<br /> <br />
<form action="" method="post"> <form class="confirm_form" name="chat" action="" method="post">
<input type="text" name="username" width="20" /> <input type="text" name="username" width="20" />
<input type="submit" name="submit" value="Join WebIRC" /> <input type="submit" name="submit" value="Join WebIRC" />
</form> </form>

View File

@ -4,7 +4,7 @@
<? <?
if(strtotime($BannedUntil)<time() && !$BanID) { if(strtotime($BannedUntil)<time() && !$BanID) {
?> ?>
<form id="loginform" method="post" action="login.php"> <form class="auth_form" name="login" id="loginform" method="post" action="login.php">
<? <?
if(!empty($BannedUntil) && $BannedUntil != '0000-00-00 00:00:00') { if(!empty($BannedUntil) && $BannedUntil != '0000-00-00 00:00:00') {

View File

@ -2,7 +2,7 @@
show_header('Recover Password','validate'); show_header('Recover Password','validate');
echo $Validate->GenerateJS('recoverform'); echo $Validate->GenerateJS('recoverform');
?> ?>
<form name="recoverform" id="recoverform" method="post" action="" onsubmit="return formVal();"> <form class="auth_form" name="recovery" id="recoverform" method="post" action="" onsubmit="return formVal();">
<div style="width:320px;"> <div style="width:320px;">
<span class="titletext">Reset your password - Step 1</span><br /><br /> <span class="titletext">Reset your password - Step 1</span><br /><br />
<? <?

View File

@ -4,7 +4,7 @@
?> ?>
<script src="<?=STATIC_SERVER?>functions/jquery.js" type="text/javascript"></script> <script src="<?=STATIC_SERVER?>functions/jquery.js" type="text/javascript"></script>
<script src="<?=STATIC_SERVER?>functions/password_validate.js" type="text/javascript"></script> <script src="<?=STATIC_SERVER?>functions/password_validate.js" type="text/javascript"></script>
<form name="recoverform" id="recoverform" method="post" action="" onsubmit="return formVal();"> <form class="auth_form" name="recovery" id="recoverform" method="post" action="" onsubmit="return formVal();">
<input type="hidden" name="key" value="<?=display_str($_REQUEST['key'])?>" /> <input type="hidden" name="key" value="<?=display_str($_REQUEST['key'])?>" />
<div style="width:500px;"> <div style="width:500px;">
<span class="titletext">Reset your password - Final Step</span><br /><br /> <span class="titletext">Reset your password - Final Step</span><br /><br />
@ -35,4 +35,4 @@
</form> </form>
<? <?
show_footer(); show_footer();
?> ?>

View File

@ -2,7 +2,7 @@
show_header('Register'); show_header('Register');
?> ?>
<div style="width:500px;"> <div style="width:500px;">
<form method="get" action="register.php"> <form class="auth_form" name="invite" method="get" action="register.php">
Please enter your invite code into the box below.<br /><br /> Please enter your invite code into the box below.<br /><br />
<table class="layout" cellpadding="2" cellspacing="1" border="0" align="center"> <table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
<tr valign="top"> <tr valign="top">

View File

@ -1,10 +1,10 @@
<? <?
show_header('Register','validate'); show_header('Register','validate');
echo $Val->GenerateJS('regform'); echo $Val->GenerateJS('registerform');
?> ?>
<script src="<?=STATIC_SERVER?>functions/jquery.js" type="text/javascript"></script> <script src="<?=STATIC_SERVER?>functions/jquery.js" type="text/javascript"></script>
<script src="<?=STATIC_SERVER?>functions/password_validate.js" type="text/javascript"></script> <script src="<?=STATIC_SERVER?>functions/password_validate.js" type="text/javascript"></script>
<form name="regform" id="regform" method="post" action="" onsubmit="return formVal();"> <form class="create_form" name="user" id="registerform" method="post" action="" onsubmit="return formVal();">
<div style="width:500px;"> <div style="width:500px;">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<? <?

View File

@ -71,7 +71,7 @@
case "thread" : case "thread" :
$DB->query("SELECT Title FROM forums_topics WHERE ID=".$ThingID); $DB->query("SELECT Title FROM forums_topics WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
$Error = "No thread with the reported ID found"; $Error = "No forum thread with the reported ID found";
} else { } else {
list($Title) = $DB->next_record(); list($Title) = $DB->next_record();
$TypeLink = "[url=https://".NONSSL_SITE_URL."forums.php?action=viewthread&amp;threadid=".$ThingID."]".display_str($Title)."[/url]"; $TypeLink = "[url=https://".NONSSL_SITE_URL."forums.php?action=viewthread&amp;threadid=".$ThingID."]".display_str($Title)."[/url]";
@ -87,10 +87,10 @@
} }
$DB->query("SELECT p.ID, p.Body, p.TopicID, (SELECT COUNT(ID) FROM forums_posts WHERE forums_posts.TopicID = p.TopicID AND forums_posts.ID<=p.ID) AS PostNum FROM forums_posts AS p WHERE ID=".$ThingID); $DB->query("SELECT p.ID, p.Body, p.TopicID, (SELECT COUNT(ID) FROM forums_posts WHERE forums_posts.TopicID = p.TopicID AND forums_posts.ID<=p.ID) AS PostNum FROM forums_posts AS p WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
$Error = "No post with the reported ID found"; $Error = "No forum post with the reported ID found";
} else { } else {
list($PostID,$Body,$TopicID,$PostNum) = $DB->next_record(); list($PostID,$Body,$TopicID,$PostNum) = $DB->next_record();
$TypeLink = "[url=https://".NONSSL_SITE_URL."forums.php?action=viewthread&amp;threadid=".$TopicID."&post=".$PostNum."#post".$PostID."]POST[/url]"; $TypeLink = "[url=https://".NONSSL_SITE_URL."forums.php?action=viewthread&amp;threadid=".$TopicID."&amp;post=".$PostNum."#post".$PostID."]FORUM POST[/url]";
$Subject = "Post Report"; $Subject = "Post Report";
} }
@ -98,23 +98,23 @@
case "requests_comment" : case "requests_comment" :
$DB->query("SELECT rc.RequestID, rc.Body, (SELECT COUNT(ID) FROM requests_comments WHERE ID <= ".$ThingID." AND requests_comments.RequestID = rc.RequestID) AS CommentNum FROM requests_comments AS rc WHERE ID=".$ThingID); $DB->query("SELECT rc.RequestID, rc.Body, (SELECT COUNT(ID) FROM requests_comments WHERE ID <= ".$ThingID." AND requests_comments.RequestID = rc.RequestID) AS CommentNum FROM requests_comments AS rc WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
$Error = "No comment with the reported ID found"; $Error = "No request comment with the reported ID found";
} else { } else {
list($RequestID, $Body, $PostNum) = $DB->next_record(); list($RequestID, $Body, $PostNum) = $DB->next_record();
$PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE); $PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE);
$TypeLink = "[url=https://".NONSSL_SITE_URL."requests.php?action=view&amp;id=".$RequestID."&page=".$PageNum."#post".$ThingID."]COMMENT[/url]"; $TypeLink = "[url=https://".NONSSL_SITE_URL."requests.php?action=view&amp;id=".$RequestID."&amp;page=".$PageNum."#post".$ThingID."]REQUEST COMMENT[/url]";
$Subject = "Requests Comment Report"; $Subject = "Request Comment Report";
} }
break; break;
case "torrents_comment" : case "torrents_comment" :
$DB->query("SELECT tc.GroupID, tc.Body, (SELECT COUNT(ID) FROM torrents_comments WHERE ID <= ".$ThingID." AND torrents_comments.GroupID = tc.GroupID) AS CommentNum FROM torrents_comments AS tc WHERE ID=".$ThingID); $DB->query("SELECT tc.GroupID, tc.Body, (SELECT COUNT(ID) FROM torrents_comments WHERE ID <= ".$ThingID." AND torrents_comments.GroupID = tc.GroupID) AS CommentNum FROM torrents_comments AS tc WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
$Error = "No comment with the reported ID found"; $Error = "No torrent comment with the reported ID found";
} else { } else {
list($GroupID, $Body, $PostNum) = $DB->next_record(); list($GroupID, $Body, $PostNum) = $DB->next_record();
$PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE); $PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE);
$TypeLink = "[url=https://".NONSSL_SITE_URL."torrents.php?id=".$GroupID."&page=".$PageNum."#post".$ThingID."]COMMENT[/url]"; $TypeLink = "[url=https://".NONSSL_SITE_URL."torrents.php?id=".$GroupID."&amp;page=".$PageNum."#post".$ThingID."]TORRENT COMMENT[/url]";
$Subject = "Torrent Comment Report"; $Subject = "Torrent Comment Report";
} }
@ -122,12 +122,12 @@
case "collages_comment" : case "collages_comment" :
$DB->query("SELECT cc.CollageID, cc.Body, (SELECT COUNT(ID) FROM collages_comments WHERE ID <= ".$ThingID." AND collages_comments.CollageID = cc.CollageID) AS CommentNum FROM collages_comments AS cc WHERE ID=".$ThingID); $DB->query("SELECT cc.CollageID, cc.Body, (SELECT COUNT(ID) FROM collages_comments WHERE ID <= ".$ThingID." AND collages_comments.CollageID = cc.CollageID) AS CommentNum FROM collages_comments AS cc WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
$Error = "No comment with the reported ID found"; $Error = "No collage comment with the reported ID found";
} else { } else {
list($CollageID, $Body, $PostNum) = $DB->next_record(); list($CollageID, $Body, $PostNum) = $DB->next_record();
$PerPage = POSTS_PER_PAGE; $PerPage = POSTS_PER_PAGE;
$PageNum = ceil($PostNum / $PerPage); $PageNum = ceil($PostNum / $PerPage);
$TypeLink = "[url=https://".NONSSL_SITE_URL."collage.php?action=comments&amp;collageid=".$CollageID."&page=".$PageNum."#post".$ThingID."]COMMENT[/url]"; $TypeLink = "[url=https://".NONSSL_SITE_URL."collage.php?action=comments&amp;collageid=".$CollageID."&amp;page=".$PageNum."#post".$ThingID."]COLLAGE COMMENT[/url]";
$Subject = "Collage Comment Report"; $Subject = "Collage Comment Report";
} }
break; break;
@ -153,7 +153,7 @@
</a> </a>
</h2> </h2>
</div> </div>
<form action="reports.php" method="post" id="messageform"> <form class="send_form" name="message" action="reports.php" method="post" id="messageform">
<div class="box pad"> <div class="box pad">
<input type="hidden" name="action" value="takecompose" /> <input <input type="hidden" name="action" value="takecompose" /> <input
type="hidden" name="toid" value="<?=$ToID?>" /> <input type="hidden" type="hidden" name="toid" value="<?=$ToID?>" /> <input type="hidden"

View File

@ -149,7 +149,7 @@
<div class="box pad center"> <div class="box pad center">
<p><strong>It will greatly increase the turnover rate of the updates if you can fill in as much of the following details as possible.</strong></p> <p><strong>It will greatly increase the turnover rate of the updates if you can fill in as much of the following details as possible.</strong></p>
<form action="" method="post"> <form class="create_form" name="report" action="" method="post">
<input type="hidden" name="action" value="takereport" /> <input type="hidden" name="action" value="takereport" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="id" value="<?=$ID?>" /> <input type="hidden" name="id" value="<?=$ID?>" />
@ -273,7 +273,7 @@
?> ?>
<h3>Reason</h3> <h3>Reason</h3>
<div class="box pad center"> <div class="box pad center">
<form action="" method="post"> <form class="create_form" name="report" action="" method="post">
<input type="hidden" name="action" value="takereport" /> <input type="hidden" name="action" value="takereport" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="id" value="<?=$ID?>" /> <input type="hidden" name="id" value="<?=$ID?>" />
@ -288,5 +288,4 @@
</div> </div>
<? <?
show_footer(); show_footer();
?> ?>

View File

@ -92,7 +92,7 @@
$Reference = "reports.php?id=".$ReportID."#report".$ReportID; $Reference = "reports.php?id=".$ReportID."#report".$ReportID;
?> ?>
<div id="report<?=$ReportID?>"> <div id="report<?=$ReportID?>">
<form action="reports.php" method="post"> <form class="manage_form" name="report" action="reports.php" method="post">
<div> <div>
<input type="hidden" name="reportid" value="<?=$ReportID?>" /> <input type="hidden" name="reportid" value="<?=$ReportID?>" />
<input type="hidden" name="action" value="takeresolve" /> <input type="hidden" name="action" value="takeresolve" />
@ -140,7 +140,7 @@
case "thread" : case "thread" :
$DB->query("SELECT Title FROM forums_topics WHERE ID=".$ThingID); $DB->query("SELECT Title FROM forums_topics WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
echo "No thread with the reported ID found"; echo "No forum thread with the reported ID found";
} else { } else {
list($Title) = $DB->next_record(); list($Title) = $DB->next_record();
echo "<a href='forums.php?action=viewthread&amp;threadid=".$ThingID."'>".display_str($Title)."</a>"; echo "<a href='forums.php?action=viewthread&amp;threadid=".$ThingID."'>".display_str($Title)."</a>";
@ -154,41 +154,41 @@
} }
$DB->query("SELECT p.ID, p.Body, p.TopicID, (SELECT COUNT(ID) FROM forums_posts WHERE forums_posts.TopicID = p.TopicID AND forums_posts.ID<=p.ID) AS PostNum FROM forums_posts AS p WHERE ID=".$ThingID); $DB->query("SELECT p.ID, p.Body, p.TopicID, (SELECT COUNT(ID) FROM forums_posts WHERE forums_posts.TopicID = p.TopicID AND forums_posts.ID<=p.ID) AS PostNum FROM forums_posts AS p WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
echo "No post with the reported ID found"; echo "No forum post with the reported ID found";
} else { } else {
list($PostID,$Body,$TopicID,$PostNum) = $DB->next_record(); list($PostID,$Body,$TopicID,$PostNum) = $DB->next_record();
echo "<a href='forums.php?action=viewthread&amp;threadid=".$TopicID."&post=".$PostNum."#post".$PostID."'>POST</a>"; echo "<a href='forums.php?action=viewthread&amp;threadid=".$TopicID."&amp;post=".$PostNum."#post".$PostID."'>FORUM POST</a>";
} }
break; break;
case "requests_comment" : case "requests_comment" :
$DB->query("SELECT rc.RequestID, rc.Body, (SELECT COUNT(ID) FROM requests_comments WHERE ID <= ".$ThingID." AND requests_comments.RequestID = rc.RequestID) AS CommentNum FROM requests_comments AS rc WHERE ID=".$ThingID); $DB->query("SELECT rc.RequestID, rc.Body, (SELECT COUNT(ID) FROM requests_comments WHERE ID <= ".$ThingID." AND requests_comments.RequestID = rc.RequestID) AS CommentNum FROM requests_comments AS rc WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
echo "No comment with the reported ID found"; echo "No request comment with the reported ID found";
} else { } else {
list($RequestID, $Body, $PostNum) = $DB->next_record(); list($RequestID, $Body, $PostNum) = $DB->next_record();
$PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE); $PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE);
echo "<a href='requests.php?action=view&amp;id=".$RequestID."&page=".$PageNum."#post".$ThingID."'>COMMENT</a>"; echo "<a href='requests.php?action=view&amp;id=".$RequestID."&amp;page=".$PageNum."#post".$ThingID."'>REQUEST COMMENT</a>";
} }
break; break;
case "torrents_comment" : case "torrents_comment" :
$DB->query("SELECT tc.GroupID, tc.Body, (SELECT COUNT(ID) FROM torrents_comments WHERE ID <= ".$ThingID." AND torrents_comments.GroupID = tc.GroupID) AS CommentNum FROM torrents_comments AS tc WHERE ID=".$ThingID); $DB->query("SELECT tc.GroupID, tc.Body, (SELECT COUNT(ID) FROM torrents_comments WHERE ID <= ".$ThingID." AND torrents_comments.GroupID = tc.GroupID) AS CommentNum FROM torrents_comments AS tc WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
echo "No comment with the reported ID found"; echo "No torrent comment with the reported ID found";
} else { } else {
list($GroupID, $Body, $PostNum) = $DB->next_record(); list($GroupID, $Body, $PostNum) = $DB->next_record();
$PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE); $PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE);
echo "<a href='torrents.php?id=".$GroupID."&page=".$PageNum."#post".$ThingID."'>COMMENT</a>"; echo "<a href='torrents.php?id=".$GroupID."&amp;page=".$PageNum."#post".$ThingID."'>TORRENT COMMENT</a>";
} }
break; break;
case "collages_comment" : case "collages_comment" :
$DB->query("SELECT cc.CollageID, cc.Body, (SELECT COUNT(ID) FROM collages_comments WHERE ID <= ".$ThingID." AND collages_comments.CollageID = cc.CollageID) AS CommentNum FROM collages_comments AS cc WHERE ID=".$ThingID); $DB->query("SELECT cc.CollageID, cc.Body, (SELECT COUNT(ID) FROM collages_comments WHERE ID <= ".$ThingID." AND collages_comments.CollageID = cc.CollageID) AS CommentNum FROM collages_comments AS cc WHERE ID=".$ThingID);
if($DB->record_count() < 1) { if($DB->record_count() < 1) {
echo "No comment with the reported ID found"; echo "No collage comment with the reported ID found";
} else { } else {
list($CollageID, $Body, $PostNum) = $DB->next_record(); list($CollageID, $Body, $PostNum) = $DB->next_record();
$PerPage = POSTS_PER_PAGE; $PerPage = POSTS_PER_PAGE;
$PageNum = ceil($PostNum / $PerPage); $PageNum = ceil($PostNum / $PerPage);
echo "<a href='collage.php?action=comments&amp;collageid=".$CollageID."&page=".$PageNum."#post".$ThingID."'>COMMENT</a>"; echo "<a href='collage.php?action=comments&amp;collageid=".$CollageID."&amp;page=".$PageNum."#post".$ThingID."'>COLLAGE COMMENT</a>";
} }
break; break;
} }

View File

@ -62,6 +62,7 @@
<? } ?> <? } ?>
</table> </table>
</td> </td>
</tr>
<tr> <tr>
<? <?
$DB->query("SELECT um.Username, COUNT(r.ID) AS Reports FROM reports AS r JOIN users_main AS um ON um.ID=r.ResolverID WHERE r.ReportedTime > '2009-08-21 22:39:41' AND r.ReportedTime > NOW() - INTERVAL 1 MONTH GROUP BY r.ResolverID ORDER BY Reports DESC"); $DB->query("SELECT um.Username, COUNT(r.ID) AS Reports FROM reports AS r JOIN users_main AS um ON um.ID=r.ResolverID WHERE r.ReportedTime > '2009-08-21 22:39:41' AND r.ReportedTime > NOW() - INTERVAL 1 MONTH GROUP BY r.ResolverID ORDER BY Reports DESC");

View File

@ -132,7 +132,7 @@
} }
?> ?>
<div id="report<?=$ReportID?>"> <div id="report<?=$ReportID?>">
<form id="report_form<?=$ReportID?>" action="reports.php" method="post"> <form class="edit_form" name="report" id="reportform_<?=$ReportID?>" action="reports.php" method="post">
<? <?
/* /*
* Some of these are for takeresolve, some for the javascript. * Some of these are for takeresolve, some for the javascript.

View File

@ -28,7 +28,7 @@
?> ?>
</ul> </ul>
<br /> <br />
<table class="layout" cellpadding="3" cellspacing="1" border="0" class="border" width="100%"> <table class="layout border" cellpadding="3" cellspacing="1" border="0" width="100%">
<? <?
if(array_key_exists('image', $ReportType['report_fields'])) { if(array_key_exists('image', $ReportType['report_fields'])) {
?> ?>

View File

@ -23,7 +23,7 @@
<h2>Report a torrent</h2> <h2>Report a torrent</h2>
</div> </div>
<form action="reportsv2.php?action=takereport" enctype="multipart/form-data" method="post" id="report_table"> <form class="create_form" name="report" action="reportsv2.php?action=takereport" enctype="multipart/form-data" method="post" id="reportform">
<div> <div>
<input type="hidden" name="submit" value="true" /> <input type="hidden" name="submit" value="true" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -84,5 +84,4 @@
</div> </div>
<? <?
show_footer(); show_footer();
?> ?>

View File

@ -275,7 +275,7 @@
} }
?> ?>
<div id="report<?=$ReportID?>"> <div id="report<?=$ReportID?>">
<form id="report_form<?=$ReportID?>" action="reports.php" method="post"> <form class="manage_form" name="report" id="reportform_<?=$ReportID?>" action="reports.php" method="post">
<? <?
/* /*
* Some of these are for takeresolve, namely the ones that aren't inputs, some for the javascript. * Some of these are for takeresolve, namely the ones that aren't inputs, some for the javascript.

View File

@ -27,7 +27,7 @@
<?=ucwords($Action)?> Request <?=ucwords($Action)?> Request
</div> </div>
<div class="pad"> <div class="pad">
<form action="requests.php" method="post"> <form class="<?=($Action == 'delete')?'delete_form':'edit_form'?>" name="request" action="requests.php" method="post">
<input type="hidden" name="action" value="take<?=$Action?>" /> <input type="hidden" name="action" value="take<?=$Action?>" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="id" value="<?=$_GET['id']?>" /> <input type="hidden" name="id" value="<?=$_GET['id']?>" />
@ -43,4 +43,4 @@
</div> </div>
<? <?
show_footer(); show_footer();
?> ?>

View File

@ -396,7 +396,7 @@
<tr> <tr>
<td class="label">Post vote information</td> <td class="label">Post vote information</td>
<td> <td>
<form action="requests.php" method="get" id="request_form"> <form class="add_form" name="request" action="requests.php" method="get" id="request_form">
<input type="hidden" name="action" value="vote" /> <input type="hidden" name="action" value="vote" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" id="request_tax" value="<?=$RequestTax?>" /> <input type="hidden" id="request_tax" value="<?=$RequestTax?>" />
@ -437,7 +437,7 @@
<tr> <tr>
<td class="label" valign="top">Fill request</td> <td class="label" valign="top">Fill request</td>
<td> <td>
<form action="" method="post"> <form class="edit_form" name="request" action="" method="post">
<div> <div>
<input type="hidden" name="action" value="takefill" /> <input type="hidden" name="action" value="takefill" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -453,7 +453,6 @@
<br /> <br />
</div> </div>
</form> </form>
</td> </td>
</tr> </tr>
<? } ?> <? } ?>
@ -598,7 +597,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<form id="quickpostform" action="" onsubmit="quickpostform.submit_button.disabled=true;" method="post" style="display: block; text-align: center;"> <form class="send_form center" name="reply" id="quickpostform" action="" onsubmit="quickpostform.submit_button.disabled=true;" method="post">
<div id="quickreplytext"> <div id="quickreplytext">
<input type="hidden" name="action" value="reply" /> <input type="hidden" name="action" value="reply" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -612,4 +611,4 @@
<? } ?> <? } ?>
</div> </div>
</div> </div>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -348,153 +348,151 @@
<? } ?> <? } ?>
</div> </div>
</div> </div>
<div> <form class="search_form" name="requests" action="" method="get">
<form action="" method="get">
<? if ($BookmarkView) { ?> <? if ($BookmarkView) { ?>
<input type="hidden" name="action" value="view" /> <input type="hidden" name="action" value="view" />
<input type="hidden" name="type" value="requests" /> <input type="hidden" name="type" value="requests" />
<? } else { ?> <? } else { ?>
<input type="hidden" name="type" value="<?=$_GET['type']?>" /> <input type="hidden" name="type" value="<?=$_GET['type']?>" />
<? } ?> <? } ?>
<input type="hidden" name="submit" value="true" /> <input type="hidden" name="submit" value="true" />
<? if(!empty($_GET['userid']) && is_number($_GET['userid'])) { ?> <? if(!empty($_GET['userid']) && is_number($_GET['userid'])) { ?>
<input type="hidden" name="userid" value="<?=$_GET['userid']?>" /> <input type="hidden" name="userid" value="<?=$_GET['userid']?>" />
<? } ?> <? } ?>
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr> <tr>
<td class="label">Search terms:</td> <td class="label">Search terms:</td>
<td> <td>
<input type="text" name="search" size="75" value="<?if(isset($_GET['search'])) { echo display_str($_GET['search']); } ?>" /> <input type="text" name="search" size="75" value="<?if(isset($_GET['search'])) { echo display_str($_GET['search']); } ?>" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="label">Tags (comma-separated):</td> <td class="label">Tags (comma-separated):</td>
<td> <td>
<input type="text" name="tags" size="60" value="<?= (!empty($TagNames) ? display_str(implode(', ', $TagNames)) : '') ?>" />&nbsp; <input type="text" name="tags" size="60" value="<?= (!empty($TagNames) ? display_str(implode(', ', $TagNames)) : '') ?>" />&nbsp;
<input type="radio" name="tags_type" id="tags_type0" value="0" <?selected('tags_type',0,'checked')?> /><label for="tags_type0"> Any</label>&nbsp;&nbsp; <input type="radio" name="tags_type" id="tags_type0" value="0" <?selected('tags_type',0,'checked')?> /><label for="tags_type0"> Any</label>&nbsp;&nbsp;
<input type="radio" name="tags_type" id="tags_type1" value="1" <?selected('tags_type',1,'checked')?> /><label for="tags_type1"> All</label> <input type="radio" name="tags_type" id="tags_type1" value="1" <?selected('tags_type',1,'checked')?> /><label for="tags_type1"> All</label>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="label">Include filled:</td> <td class="label">Include filled:</td>
<td> <td>
<input type="checkbox" name="show_filled" <? if(!$Submitted || !empty($_GET['show_filled']) || (!$Submitted && !empty($_GET['type']) && $_GET['type'] == "filled")) { ?>checked="checked"<? } ?> /> <input type="checkbox" name="show_filled" <? if(!$Submitted || !empty($_GET['show_filled']) || (!$Submitted && !empty($_GET['type']) && $_GET['type'] == "filled")) { ?>checked="checked"<? } ?> />
</td> </td>
</tr> </tr>
<? if(check_perms('site_see_old_requests')){ ?> <? if(check_perms('site_see_old_requests')){ ?>
<tr> <tr>
<td class="label">Include old:</td> <td class="label">Include old:</td>
<td> <td>
<input type="checkbox" name="showall" <? if(!empty($_GET['showall'])) {?>checked="checked"<? } ?> /> <input type="checkbox" name="showall" <? if(!empty($_GET['showall'])) {?>checked="checked"<? } ?> />
</td> </td>
</tr> </tr>
<? /* ?> <? /* ?>
<tr> <tr>
<td class="label">Requested by:</td> <td class="label">Requested by:</td>
<td> <td>
<input type="text" name="requester" size="75" value="<?=display_str($_GET['requester'])?>" /> <input type="text" name="requester" size="75" value="<?=display_str($_GET['requester'])?>" />
</td> </td>
</tr> </tr>
<? */} ?> <? */} ?>
</table> </table>
<table class="layout cat_list"> <table class="layout cat_list">
<? <?
$x=1; $x=1;
reset($Categories); reset($Categories);
foreach($Categories as $CatKey => $CatName) { foreach($Categories as $CatKey => $CatName) {
if($x%8==0 || $x==1) { if($x%8==0 || $x==1) {
?> ?>
<tr class="cat_list"> <tr class="cat_list">
<? } ?> <? } ?>
<td> <td>
<input type="checkbox" name="filter_cat[<?=($CatKey+1)?>]" id="cat_<?=($CatKey+1)?>" value="1" <? if(isset($_GET['filter_cat'][$CatKey+1])) { ?>checked="checked"<? } ?> /> <input type="checkbox" name="filter_cat[<?=($CatKey+1)?>]" id="cat_<?=($CatKey+1)?>" value="1" <? if(isset($_GET['filter_cat'][$CatKey+1])) { ?>checked="checked"<? } ?> />
<label for="cat_<?=($CatKey+1)?>"><?=$CatName?></label> <label for="cat_<?=($CatKey+1)?>"><?=$CatName?></label>
</td> </td>
<? <?
if($x%7==0) { if($x%7==0) {
?> ?>
</tr> </tr>
<? <?
} }
$x++; $x++;
} }
?> ?>
</table> </table>
<table class="layout"> <table class="layout">
<tr id="release_list"> <tr id="release_list">
<td class="label">Release Types</td> <td class="label">Release Types</td>
<td> <td>
<input type="checkbox" id="toggle_releases" onchange="Toggle('releases', 0)" <?=(!$Submitted || !empty($ReleaseArray) && count($ReleaseArray) == count($ReleaseTypes) ? ' checked="checked"' : '')?>/> <label for="toggle_releases">All</label> <input type="checkbox" id="toggle_releases" onchange="Toggle('releases', 0)" <?=(!$Submitted || !empty($ReleaseArray) && count($ReleaseArray) == count($ReleaseTypes) ? ' checked="checked"' : '')?>/> <label for="toggle_releases">All</label>
<? $i = 0; <? $i = 0;
foreach ($ReleaseTypes as $Key => $Val) { foreach ($ReleaseTypes as $Key => $Val) {
if($i % 8 == 0) echo "<br />";?> if($i % 8 == 0) echo "<br />";?>
<input type="checkbox" name="releases[]" value="<?=$Key?>" id="release_<?=$Key?>" <input type="checkbox" name="releases[]" value="<?=$Key?>" id="release_<?=$Key?>"
<?=(((!$Submitted) || !empty($ReleaseArray) && in_array($Key, $ReleaseArray)) ? ' checked="checked" ' : '')?> <?=(((!$Submitted) || !empty($ReleaseArray) && in_array($Key, $ReleaseArray)) ? ' checked="checked" ' : '')?>
/> <label for="release_<?=$Key?>"><?=$Val?></label> /> <label for="release_<?=$Key?>"><?=$Val?></label>
<? $i++; <? $i++;
}?> }?>
</td> </td>
</tr> </tr>
<tr id="format_list"> <tr id="format_list">
<td class="label">Formats</td> <td class="label">Formats</td>
<td> <td>
<input type="checkbox" id="toggle_formats" onchange="Toggle('formats', 0);" <?=(!$Submitted || !empty($FormatArray) && count($FormatArray) == count($Formats) ? ' checked="checked"' : '')?>/> <input type="checkbox" id="toggle_formats" onchange="Toggle('formats', 0);" <?=(!$Submitted || !empty($FormatArray) && count($FormatArray) == count($Formats) ? ' checked="checked"' : '')?>/>
<label for="toggle_formats">All</label> <label for="toggle_formats">All</label>
<input type="checkbox" id="formats_strict" name="formats_strict"<?=(!empty($_GET['formats_strict']) ? ' checked="checked"' : '')?> /> <input type="checkbox" id="formats_strict" name="formats_strict"<?=(!empty($_GET['formats_strict']) ? ' checked="checked"' : '')?> />
<label for="formats_strict">Only specified</label> <label for="formats_strict">Only specified</label>
<? foreach ($Formats as $Key => $Val) { <? foreach ($Formats as $Key => $Val) {
if($Key % 8 == 0) echo "<br />";?> if($Key % 8 == 0) echo "<br />";?>
<input type="checkbox" name="formats[]" value="<?=$Key?>" id="format_<?=$Key?>" <input type="checkbox" name="formats[]" value="<?=$Key?>" id="format_<?=$Key?>"
<?=(((!$Submitted) || !empty($FormatArray) && in_array($Key, $FormatArray)) ? ' checked="checked" ' : '')?> <?=(((!$Submitted) || !empty($FormatArray) && in_array($Key, $FormatArray)) ? ' checked="checked" ' : '')?>
/> <label for="format_<?=$Key?>"><?=$Val?></label> /> <label for="format_<?=$Key?>"><?=$Val?></label>
<? }?> <? }?>
</td> </td>
</tr> </tr>
<tr id="bitrate_list"> <tr id="bitrate_list">
<td class="label">Bitrates</td> <td class="label">Bitrates</td>
<td> <td>
<input type="checkbox" id="toggle_bitrates" onchange="Toggle('bitrates', 0);"<?=(!$Submitted || !empty($BitrateArray) && count($BitrateArray) == count($Bitrates) ? ' checked="checked"' : '')?> /> <input type="checkbox" id="toggle_bitrates" onchange="Toggle('bitrates', 0);"<?=(!$Submitted || !empty($BitrateArray) && count($BitrateArray) == count($Bitrates) ? ' checked="checked"' : '')?> />
<label for="toggle_bitrates">All</label> <label for="toggle_bitrates">All</label>
<input type="checkbox" id="bitrate_strict" name="bitrate_strict"<?=(!empty($_GET['bitrate_strict']) ? ' checked="checked"' : '')?>/> <input type="checkbox" id="bitrate_strict" name="bitrate_strict"<?=(!empty($_GET['bitrate_strict']) ? ' checked="checked"' : '')?>/>
<label for="bitrate_strict">Only specified</label> <label for="bitrate_strict">Only specified</label>
<? foreach ($Bitrates as $Key => $Val) { <? foreach ($Bitrates as $Key => $Val) {
if($Key % 8 == 0) echo "<br />";?> if($Key % 8 == 0) echo "<br />";?>
<input type="checkbox" name="bitrates[]" value="<?=$Key?>" id="bitrate_<?=$Key?>" <input type="checkbox" name="bitrates[]" value="<?=$Key?>" id="bitrate_<?=$Key?>"
<?=(((!$Submitted) || !empty($BitrateArray) && in_array($Key, $BitrateArray)) ? ' checked="checked" ' : '')?> <?=(((!$Submitted) || !empty($BitrateArray) && in_array($Key, $BitrateArray)) ? ' checked="checked" ' : '')?>
/> <label for="bitrate_<?=$Key?>"><?=$Val?></label> /> <label for="bitrate_<?=$Key?>"><?=$Val?></label>
<? }?> <? }?>
</td> </td>
</tr> </tr>
<tr id="media_list"> <tr id="media_list">
<td class="label">Media</td> <td class="label">Media</td>
<td> <td>
<input type="checkbox" id="toggle_media" onchange="Toggle('media', 0);"<?=(!$Submitted || !empty($MediaArray) && count($MediaArray) == count($Media) ? ' checked="checked"' : '')?> /> <input type="checkbox" id="toggle_media" onchange="Toggle('media', 0);"<?=(!$Submitted || !empty($MediaArray) && count($MediaArray) == count($Media) ? ' checked="checked"' : '')?> />
<label for="toggle_media">All</label> <label for="toggle_media">All</label>
<input type="checkbox" id="media_strict" name="media_strict"<?=(!empty($_GET['media_strict']) ? ' checked="checked"' : '')?> /> <input type="checkbox" id="media_strict" name="media_strict"<?=(!empty($_GET['media_strict']) ? ' checked="checked"' : '')?> />
<label for="media_strict">Only specified</label> <label for="media_strict">Only specified</label>
<? foreach ($Media as $Key => $Val) { <? foreach ($Media as $Key => $Val) {
if($Key % 8 == 0) echo "<br />";?> if($Key % 8 == 0) echo "<br />";?>
<input type="checkbox" name="media[]" value="<?=$Key?>" id="media_<?=$Key?>" <input type="checkbox" name="media[]" value="<?=$Key?>" id="media_<?=$Key?>"
<?=(((!$Submitted) || !empty($MediaArray) && in_array($Key, $MediaArray)) ? ' checked="checked" ' : '')?> <?=(((!$Submitted) || !empty($MediaArray) && in_array($Key, $MediaArray)) ? ' checked="checked" ' : '')?>
/> <label for="media_<?=$Key?>"><?=$Val?></label> /> <label for="media_<?=$Key?>"><?=$Val?></label>
<? }?> <? }?>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="center"> <td colspan="2" class="center">
<input type="submit" value="Search requests" /> <input type="submit" value="Search requests" />
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div>
<? if($NumResults) { ?> <? if($NumResults) { ?>
<div class="linkbox"> <div class="linkbox">
<?=$PageLinks?> <?=$PageLinks?>
</div> </div>
<? } ?> <? } ?>
<table id="request_table" class="request_table" cellpadding="6" cellspacing="1" border="0" class="border" width="100%"> <table id="request_table" class="request_table border" cellpadding="6" cellspacing="1" border="0" width="100%">
<tr class="colhead_dark"> <tr class="colhead_dark">
<td style="width: 38%;" class="nobr"> <td style="width: 38%;" class="nobr">
<strong>Request Name</strong> / <a href="?order=year&amp;sort=<?=(($CurrentOrder == 'year') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Year</strong></a> <strong>Request Name</strong> / <a href="?order=year&amp;sort=<?=(($CurrentOrder == 'year') ? $NewSort : 'desc')?>&amp;<?=$CurrentURL ?>"><strong>Year</strong></a>
@ -612,7 +610,7 @@
</td> </td>
<td class="nobr"> <td class="nobr">
<? if(!$IsFilled && check_perms('site_vote')){ ?> <? if(!$IsFilled && check_perms('site_vote')){ ?>
<form id="form_<?=$RequestID?>"> <form class="add_form" name="request" id="form_<?=$RequestID?>">
<span id="vote_count_<?=$RequestID?>"><?=$VoteCount?></span> <span id="vote_count_<?=$RequestID?>"><?=$VoteCount?></span>
<input type="hidden" id="requestid_<?=$RequestID?>" name="requestid" value="<?=$RequestID?>" /> <input type="hidden" id="requestid_<?=$RequestID?>" name="requestid" value="<?=$RequestID?>" />
<input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -258,7 +258,7 @@ show_header($Title, 'requests');
</div> </div>
</div> </div>
<div class="center"> <div class="center">
<form action="" method="get"> <form class="search_form" name="requests" action="" method="get">
<input type="hidden" name="submit" value="true" /> <input type="hidden" name="submit" value="true" />
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr> <tr>

View File

@ -45,8 +45,10 @@
</div> </div>
<!-- Uploading Rules Index Links --> <!-- Uploading Rules Index Links -->
<br /> <br />
<input type="text" id="search_string" value="Filter (empty to reset)" /> <form class="search_form" name="rules" onsubmit="return false">
<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> <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>
<br /> <br />
<div class="before_rules"> <div class="before_rules">
<div class="box pad" style="padding:10px 10px 10px 20px;"> <div class="box pad" style="padding:10px 10px 10px 20px;">

View File

@ -68,7 +68,7 @@
<a href="#" onclick="$('#postform').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;"><?=($_REQUEST['action']!='editblog')?'(Show)':'(Hide)'?></a> <a href="#" onclick="$('#postform').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;"><?=($_REQUEST['action']!='editblog')?'(Show)':'(Hide)'?></a>
</span> </span>
</div> </div>
<form action="staffblog.php" method="post"> <form class="<?=((empty($_GET['action'])) ? 'create_form' : 'edit_form')?>" name="blog_post" action="staffblog.php" method="post">
<div id="postform" class="pad<?=($_REQUEST['action']!='editblog')?' hidden':''?>"> <div id="postform" class="pad<?=($_REQUEST['action']!='editblog')?' hidden':''?>">
<input type="hidden" name="action" value="<?=((empty($_GET['action'])) ? 'takenewblog' : 'takeeditblog')?>" /> <input type="hidden" name="action" value="<?=((empty($_GET['action'])) ? 'takenewblog' : 'takeeditblog')?>" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

@ -35,7 +35,7 @@
<h3>Create new response:</h3> <h3>Create new response:</h3>
</div> </div>
<div id="response_new" class="box"> <div id="response_new" class="box">
<form id="response_form_0" action=""> <form class="send_form" name="response" id="response_form_0" action="">
<div class="head"> <div class="head">
<strong>Name:</strong> <strong>Name:</strong>
<input onfocus="if (this.value == 'New name') this.value='';" <input onfocus="if (this.value == 'New name') this.value='';"
@ -69,7 +69,7 @@
<div id="ajax_message_<?=$ID?>" class="hidden center alertbar"></div> <div id="ajax_message_<?=$ID?>" class="hidden center alertbar"></div>
<br /> <br />
<div id="response_<?=$ID?>" class="box"> <div id="response_<?=$ID?>" class="box">
<form id="response_form_<?=$ID?>" action=""> <form class="send_form" name="response" id="response_form_<?=$ID?>" action="">
<div class="head"> <div class="head">
<strong>Name:</strong> <strong>Name:</strong>
<input type="hidden" name="id" value="<?=$ID?>" /> <input type="hidden" name="id" value="<?=$ID?>" />
@ -94,8 +94,4 @@
?> ?>
</div> </div>
</div> </div>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -1,7 +1,7 @@
<? <?
function print_compose_staff_pm($Hidden = true) { ?> function print_compose_staff_pm($Hidden = true) { ?>
<div id="compose" class="<?=($Hidden ? 'hidden' : '')?>"> <div id="compose" class="<?=($Hidden ? 'hidden' : '')?>">
<form action="staffpm.php" method="post"> <form class="send_form" name="staff_message" action="staffpm.php" method="post">
<input type="hidden" name="action" value="takepost" /> <input type="hidden" name="action" value="takepost" />
<h3><label for="subject">Subject</label></h3> <h3><label for="subject">Subject</label></h3>
<input size="95" type="text" name="subject" id="subject" /> <input size="95" type="text" name="subject" id="subject" />
@ -22,4 +22,4 @@ function print_compose_staff_pm($Hidden = true) { ?>
<input type="button" value="Hide" onclick="$('#compose').toggle();return false;" /> <input type="button" value="Hide" onclick="$('#compose').toggle();return false;" />
</form> </form>
</div> </div>
<? } ?> <? } ?>

View File

@ -109,7 +109,7 @@
if ($ViewString != 'Resolved' && $IsStaff) { if ($ViewString != 'Resolved' && $IsStaff) {
// Open multiresolve form // Open multiresolve form
?> ?>
<form method="post" action="staffpm.php" id="messageform"> <form class="manage_form" name="staff_messages" method="post" action="staffpm.php" id="messageform">
<input type="hidden" name="action" value="multiresolve" /> <input type="hidden" name="action" value="multiresolve" />
<input type="hidden" name="view" value="<?=strtolower($View)?>" /> <input type="hidden" name="view" value="<?=strtolower($View)?>" />
<? <?
@ -182,14 +182,12 @@
// Close table and multiresolve form // Close table and multiresolve form
?> ?>
</table> </table>
<? if ($ViewString != 'Resolved' && $IsStaff) { ?> <? if ($ViewString != 'Resolved' && $IsStaff) { ?>
<input type="submit" value="Resolve selected" /> <input type="submit" value="Resolve selected" />
<? } ?>
</form> </form>
<? <?
}
} }
?> ?>
</div> </div>
<div class="linkbox"> <div class="linkbox">

View File

@ -44,7 +44,7 @@
} else { } else {
// Messages, draw table // Messages, draw table
?> ?>
<form method="post" action="staffpm.php" id="messageform"> <form class="manage_form" name="staff_messages" method="post" action="staffpm.php" id="messageform">
<input type="hidden" name="action" value="multiresolve" /> <input type="hidden" name="action" value="multiresolve" />
<h3>Open messages</h3> <h3>Open messages</h3>
<table class="message_table checkboxes"> <table class="message_table checkboxes">
@ -113,8 +113,4 @@
?> ?>
</div> </div>
</div> </div>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -134,7 +134,7 @@
<div class="box pad"> <div class="box pad">
<div id="preview" class="hidden"></div> <div id="preview" class="hidden"></div>
<div id="buttons" class="center"> <div id="buttons" class="center">
<form action="staffpm.php" method="post" id="messageform"> <form class="manage_form" name="staff_messages" action="staffpm.php" method="post" id="messageform">
<input type="hidden" name="action" value="takepost" /> <input type="hidden" name="action" value="takepost" />
<input type="hidden" name="convid" value="<?=$ConvID?>" id="convid" /> <input type="hidden" name="convid" value="<?=$ConvID?>" id="convid" />
<textarea id="quickpost" name="message" cols="90" rows="10"></textarea> <br /> <textarea id="quickpost" name="message" cols="90" rows="10"></textarea> <br />

View File

@ -17,7 +17,7 @@
</tr> </tr>
<tr/> <tr/>
<tr> <tr>
<form method="post"> <form class="manage_form" name="common_snatches" method="post">
<input type="hidden" name="compare" value="1" /> <input type="hidden" name="compare" value="1" />
<td> <td>
<input type="text" name="userida"/> <input type="text" name="userida"/>
@ -67,4 +67,4 @@
} }
show_footer(); show_footer();
?> ?>

View File

@ -52,7 +52,7 @@
<br / > <br / >
<? } ?> <? } ?>
<div> <div>
<form action="" method="get"> <form class="search_form" name="donation_log" action="" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr> <tr>
<td class="label"><strong>Email:</strong></td> <td class="label"><strong>Email:</strong></td>
@ -95,4 +95,4 @@
<div class="linkbox"> <div class="linkbox">
<?=$Pages?> <?=$Pages?>
</div> </div>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -40,7 +40,7 @@
</div> </div>
<br /> <br />
<div> <div>
<form action="" method="get"> <form class="search_form" name="invites" action="" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr> <tr>
<td class="label"><strong>Email:</strong></td> <td class="label"><strong>Email:</strong></td>
@ -82,7 +82,7 @@
<td><?=time_diff($Expires)?></td> <td><?=time_diff($Expires)?></td>
<? if(check_perms('users_edit_invites')){ ?> <? if(check_perms('users_edit_invites')){ ?>
<td> <td>
<form action="" method="post"> <form class="delete_form" name="invite" action="" method="post">
<input type="hidden" name="action" value="invite_pool" /> <input type="hidden" name="action" value="invite_pool" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="invitekey" value="<?=display_str($InviteKey)?>" /> <input type="hidden" name="invitekey" value="<?=display_str($InviteKey)?>" />

View File

@ -52,7 +52,7 @@
?> ?>
<div class="thin"> <div class="thin">
<div> <div>
<form action="" method="post"> <form class="manage_form" name="opcode_stats" action="" method="post">
<div> <div>
<input type="hidden" name="action" value="opcode_stats" /> <input type="hidden" name="action" value="opcode_stats" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -142,4 +142,4 @@
?> ?>
</table> </table>
</div> </div>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -57,7 +57,7 @@
<tr> <tr>
<td>Cache:</td> <td>Cache:</td>
<td> <td>
<form action="" method="post"> <form class="delete_form" name="cache" action="" method="post">
<input type="hidden" name="action" value="service_stats" /> <input type="hidden" name="action" value="service_stats" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="global_flush" value="1" /> <input type="hidden" name="global_flush" value="1" />
@ -276,4 +276,4 @@
</table> </table>
</div> </div>
</div> </div>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -78,7 +78,7 @@
<h2>IP Bans</h2> <h2>IP Bans</h2>
</div> </div>
<div> <div>
<form action="" method="get"> <form class="search_form" name="bans" action="" method="get">
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr> <tr>
<td class="label"><label for="ip">IP:</label></td> <td class="label"><label for="ip">IP:</label></td>
@ -109,7 +109,7 @@
<td>Submit</td> <td>Submit</td>
</tr> </tr>
<tr class="rowa"> <tr class="rowa">
<form action="" method="post"> <form class="create_form" name="ban" action="" method="post">
<input type="hidden" name="action" value="ip_ban" /> <input type="hidden" name="action" value="ip_ban" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<td colspan="2"> <td colspan="2">
@ -133,7 +133,7 @@
$End=long2ip($End); $End=long2ip($End);
?> ?>
<tr class="row<?=$Row?>"> <tr class="row<?=$Row?>">
<form action="" method="post"> <form class="manage_form" name="ban" action="" method="post">
<input type="hidden" name="id" value="<?=$ID?>" /> <input type="hidden" name="id" value="<?=$ID?>" />
<input type="hidden" name="action" value="ip_ban" /> <input type="hidden" name="action" value="ip_ban" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -156,4 +156,4 @@
?> ?>
</table> </table>
<?=$PageLinks?> <?=$PageLinks?>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -24,7 +24,7 @@
</tr> </tr>
<? while(list($ID, $Name, $Comment, $UserID, $DNUTime) = $DB->next_record()){ ?> <? while(list($ID, $Name, $Comment, $UserID, $DNUTime) = $DB->next_record()){ ?>
<tr> <tr>
<form action="tools.php" method="post"> <form class="manage_form" class="dnu" action="tools.php" method="post">
<td> <td>
<input type="hidden" name="action" value="dnu_alter" /> <input type="hidden" name="action" value="dnu_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -48,7 +48,7 @@
<td colspan="4">Add Do Not Upload</td> <td colspan="4">Add Do Not Upload</td>
</tr> </tr>
<tr class="rowa"> <tr class="rowa">
<form action="tools.php" method="post"> <form class="add_form" name="dnu" action="tools.php" method="post">
<input type="hidden" name="action" value="dnu_alter" /> <input type="hidden" name="action" value="dnu_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<td> <td>
@ -63,4 +63,4 @@
</form> </form>
</tr> </tr>
</table> </table>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -26,7 +26,7 @@
<td colspan="4">Add To Email or Domain to Blacklist</td> <td colspan="4">Add To Email or Domain to Blacklist</td>
</tr> </tr>
<tr class="rowa"> <tr class="rowa">
<form action="tools.php" method="post"> <form class="add_form" name="email_blacklist" action="tools.php" method="post">
<input type="hidden" name="action" value="eb_alter" /> <input type="hidden" name="action" value="eb_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<td> <td>
@ -43,7 +43,7 @@
<? while(list($ID, $UserID, $Time, $Email, $Comment) = $DB->next_record()) { <? while(list($ID, $UserID, $Time, $Email, $Comment) = $DB->next_record()) {
?> ?>
<tr> <tr>
<form action="tools.php" method="post"> <form class="manage_form" name="email_blacklist" action="tools.php" method="post">
<td> <td>
<input type="hidden" name="action" value="eb_alter" /> <input type="hidden" name="action" value="eb_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -64,4 +64,4 @@
</tr> </tr>
<? }?> <? }?>
</table> </table>
<? show_footer();?> <? show_footer();?>

View File

@ -69,7 +69,7 @@ function class_list($Selected=0){
$Row = ($Row === 'a' ? 'b' : 'a'); $Row = ($Row === 'a' ? 'b' : 'a');
?> ?>
<tr class="row<?=$Row?>"> <tr class="row<?=$Row?>">
<form action="" method="post"> <form class="manage_form" name="forums" action="" method="post">
<input type="hidden" name="id" value="<?=$ID?>" /> <input type="hidden" name="id" value="<?=$ID?>" />
<input type="hidden" name="action" value="forum_alter" /> <input type="hidden" name="action" value="forum_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -123,7 +123,7 @@ function class_list($Selected=0){
<td colspan="8">Create forum</td> <td colspan="8">Create forum</td>
</tr> </tr>
<tr class="rowa"> <tr class="rowa">
<form action="" method="post"> <form class="create_form" name="forum" action="" method="post">
<input type="hidden" name="action" value="forum_alter" /> <input type="hidden" name="action" value="forum_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<td> <td>
@ -168,4 +168,4 @@ function class_list($Selected=0){
</form> </form>
</tr> </tr>
</table> </table>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -52,7 +52,7 @@
<?=time_diff($BannedUntil)?> <?=time_diff($BannedUntil)?>
</td> </td>
<td> <td>
<form action="" method="post"> <form class="manage_form" name="bans" action="" method="post">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="id" value="<?=$ID?>" /> <input type="hidden" name="id" value="<?=$ID?>" />
<input type="hidden" name="action" value="login_watch" /> <input type="hidden" name="action" value="login_watch" />
@ -61,7 +61,7 @@
</td> </td>
<? if(check_perms('admin_manage_ipbans')) { ?> <? if(check_perms('admin_manage_ipbans')) { ?>
<td> <td>
<form action="" method="post"> <form class="manage_form" name="bans" action="" method="post">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="id" value="<?=$ID?>" /> <input type="hidden" name="id" value="<?=$ID?>" />
<input type="hidden" name="action" value="ip_ban" /> <input type="hidden" name="action" value="ip_ban" />
@ -78,4 +78,4 @@
?> ?>
</table> </table>
</div> </div>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -31,7 +31,7 @@
<div class="header"> <div class="header">
<h2><?= ($_GET['action'] == 'news')? 'Create a news post' : 'Edit news post';?></h2> <h2><?= ($_GET['action'] == 'news')? 'Create a news post' : 'Edit news post';?></h2>
</div> </div>
<form action="tools.php" method="post"> <form class="<?= ($_GET['action'] == 'news')? 'create_form' : 'edit_form';?>" name="news_post" action="tools.php" method="post">
<div class="box pad"> <div class="box pad">
<input type="hidden" name="action" value="<?= ($_GET['action'] == 'news')? 'takenewnews' : 'takeeditnews';?>" /> <input type="hidden" name="action" value="<?= ($_GET['action'] == 'news')? 'takenewnews' : 'takeeditnews';?>" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

View File

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

View File

@ -9,9 +9,9 @@ function display_perm($Key,$Title) {
show_header('Manage Permissions','validate'); show_header('Manage Permissions','validate');
echo $Val->GenerateJS('permform'); echo $Val->GenerateJS('permissionsform');
?> ?>
<form name="permform" id="permform" method="post" action="" onsubmit="return formVal();"> <form class="manage_form" name="permissions" id="permissionsform" method="post" action="" onsubmit="return formVal();">
<input type="hidden" name="action" value="permissions" /> <input type="hidden" name="action" value="permissions" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="id" value="<?=display_str($_REQUEST['id']); ?>" /> <input type="hidden" name="id" value="<?=display_str($_REQUEST['id']); ?>" />
@ -56,4 +56,4 @@ function display_perm($Key,$Title) {
permissions_form(); permissions_form();
?> ?>
</form> </form>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -21,7 +21,7 @@
<div class="box" id="recommended"> <div class="box" id="recommended">
<div class="head colhead_dark"><strong>Recommendations</strong></div> <div class="head colhead_dark"><strong>Recommendations</strong></div>
<? if(!in_array($LoggedUser['ID'], $DB->collect('UserID'))){ ?> <? if(!in_array($LoggedUser['ID'], $DB->collect('UserID'))){ ?>
<form action="tools.php" method="post" class="pad"> <form class="add_form" name="recommendations" action="tools.php" method="post" class="pad">
<input type="hidden" name="action" value="recommend_add" /> <input type="hidden" name="action" value="recommend_add" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
@ -56,4 +56,4 @@
</ul> </ul>
</div> </div>
</div> </div>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -42,7 +42,7 @@
</tr> </tr>
<tr/> <tr/>
<tr> <tr>
<form method="post"> <form class="add_form" name="aliases" action="" method="post">
<input type="hidden" name="newalias" value="1" /> <input type="hidden" name="newalias" value="1" />
<td> <td>
<input type="text" name="aliastag"/> <input type="text" name="aliastag"/>
@ -60,7 +60,7 @@
while (list($ID, $BadTag, $AliasTag) = $DB -> next_record()) { while (list($ID, $BadTag, $AliasTag) = $DB -> next_record()) {
?> ?>
<tr> <tr>
<form method="post"> <form class="manage_form" name="aliases" method="post">
<input type="hidden" name="changealias" value="1" /> <input type="hidden" name="changealias" value="1" />
<input type="hidden" name="aliasid" value="<?=$ID?>" /> <input type="hidden" name="aliasid" value="<?=$ID?>" />
<td> <td>
@ -77,6 +77,4 @@
</tr> </tr>
<? }?> <? }?>
</table> </table>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -57,7 +57,7 @@
</div> </div>
<div class="box pad" style="margin-left: auto; margin-right: auto; text-align:center; max-width: 40%"> <div class="box pad" style="margin-left: auto; margin-right: auto; text-align:center; max-width: 40%">
<?=$message?> <?=$message?>
<form action="" method="post"> <form class="add_form" name="fltokens" action="" method="post">
<input type="hidden" name="action" value="tokens" /> <input type="hidden" name="action" value="tokens" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
Tokens to add: <input type="text" name="numtokens" size="5" style="text-align: right" value="0"><br /><br /> Tokens to add: <input type="text" name="numtokens" size="5" style="text-align: right" value="0"><br /><br />
@ -68,7 +68,7 @@
<br /> <br />
<div class="box pad" style="margin-left: auto; margin-right: auto; text-align:center; max-width: 40%"> <div class="box pad" style="margin-left: auto; margin-right: auto; text-align:center; max-width: 40%">
<?=$message?> <?=$message?>
<form action="" method="post"> <form class="manage_form" name="fltokens" action="" method="post">
<input type="hidden" name="action" value="tokens" /> <input type="hidden" name="action" value="tokens" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
Tokens to set: <input type="text" name="numtokens" size="5" style="text-align: right" value="0"><br /><br /> Tokens to set: <input type="text" name="numtokens" size="5" style="text-align: right" value="0"><br /><br />

View File

@ -19,7 +19,7 @@
while(list($ID, $Client, $Peer_ID) = $DB->next_record()){ while(list($ID, $Client, $Peer_ID) = $DB->next_record()){
$Row = ($Row === 'a' ? 'b' : 'a'); $Row = ($Row === 'a' ? 'b' : 'a');
?> ?>
<form action="" method="post"> <form class="manage_form" name="clients" action="" method="post">
<input type="hidden" name="action" value="whitelist_alter" /> <input type="hidden" name="action" value="whitelist_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<table> <table>
@ -39,7 +39,7 @@
</table> </table>
</form> </form>
<? } ?> <? } ?>
<form action="" method="post"> <form class="add_form" name="clients" action="" method="post">
<input type="hidden" name="action" value="whitelist_alter" /> <input type="hidden" name="action" value="whitelist_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<table> <table>
@ -60,4 +60,4 @@
</tr> </tr>
</table> </table>
</form> </form>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -21,7 +21,7 @@
<div class="header"> <div class="header">
<h2>Clear a cache key</h2> <h2>Clear a cache key</h2>
</div> </div>
<form method="get" action="" name="clear_cache"> <form class="manage_form" name="cache" method="get" action="">
<input type="hidden" name="action" value="clear_cache" /> <input type="hidden" name="action" value="clear_cache" />
<table class="layout" cellpadding="2" cellspacing="1" border="0" align="center"> <table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
<tr valign="top"> <tr valign="top">
@ -44,5 +44,4 @@
<? } ?> <? } ?>
</table> </table>
</form> </form>
<? <? show_footer(); ?>
show_footer();

View File

@ -34,7 +34,7 @@
</tr> </tr>
<tr/> <tr/>
<tr> <tr>
<form method="post"> <form class="add_form" name="countries" method="post">
<input type="hidden" name="newcountry" value="1" /> <input type="hidden" name="newcountry" value="1" />
<td> <td>
<input type="text" name="country"/> <input type="text" name="country"/>
@ -49,7 +49,7 @@
while (list($ID, $Country) = $DB->next_record()) { while (list($ID, $Country) = $DB->next_record()) {
?> ?>
<tr> <tr>
<form method="post"> <form class="manage_form" name="countries" method="post">
<input type="hidden" name="changecountry" value="1" /> <input type="hidden" name="changecountry" value="1" />
<input type="hidden" name="id" value="<?=$ID?>" /> <input type="hidden" name="id" value="<?=$ID?>" />
<td> <td>
@ -63,6 +63,4 @@
</tr> </tr>
<? }?> <? }?>
</table> </table>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -78,7 +78,7 @@
<h2>Create a User</h2> <h2>Create a User</h2>
</div> </div>
<form method="post" action="" name="create_user"> <form class="create_form" name="user" method="post" action="">
<input type="hidden" name="action" value="create_user" /> <input type="hidden" name="action" value="create_user" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<table class="layout" cellpadding="2" cellspacing="1" border="0" align="center"> <table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
@ -100,10 +100,6 @@
</table> </table>
</form> </form>
<? <?
} }
//Show the footer show_footer(); ?>
show_footer();
?>

View File

@ -102,7 +102,7 @@
<p style="color: red;text-align:center;"><?=$Msg?></p> <p style="color: red;text-align:center;"><?=$Msg?></p>
</div> </div>
<? } ?> <? } ?>
<form action="" method="post"> <form class="manage_form" name="user" action="" method="post">
<input type="hidden" id="action" name="action" value="manipulate_tree" /> <input type="hidden" id="action" name="action" value="manipulate_tree" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<table class="layout"> <table class="layout">
@ -132,8 +132,4 @@
</form> </form>
</div> </div>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -14,7 +14,7 @@
</div> </div>
</div> </div>
<div class="pad box"> <div class="pad box">
<form method="get" action=""> <form class="search_form" name="top10" method="get" action="">
<input type="hidden" name="type" value="history" /> <input type="hidden" name="type" value="history" />
<h3>Search for a date! (After 2010-09-05)</h3> <h3>Search for a date! (After 2010-09-05)</h3>
<table class="layout"> <table class="layout">

View File

@ -53,34 +53,32 @@
if(check_perms('site_advanced_top10')) { if(check_perms('site_advanced_top10')) {
?> ?>
<div> <form class="search_form" name="torrents" action="" method="get">
<form action="" method="get"> <input type="hidden" name="advanced" value="1" />
<input type="hidden" name="advanced" value="1" /> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <tr>
<tr> <td class="label">Tags (comma-separated):</td>
<td class="label">Tags (comma-separated):</td> <td>
<td> <input type="text" name="tags" size="75" value="<? if(!empty($_GET['tags'])) { echo display_str($_GET['tags']);} ?>" />
<input type="text" name="tags" size="75" value="<? if(!empty($_GET['tags'])) { echo display_str($_GET['tags']);} ?>" /> </td>
</td> </tr>
</tr> <tr>
<tr> <td class="label">Format</td>
<td class="label">Format</td> <td>
<td> <select name="format" style="width:auto;">
<select name="format" style="width:auto;"> <option value="">Any</option>
<option value="">Any</option>
<? foreach ($Formats as $FormatName) { ?> <? foreach ($Formats as $FormatName) { ?>
<option value="<?=display_str($FormatName)?>" <? if(isset($_GET['format']) && $FormatName==$_GET['format']) { ?>selected="selected"<? } ?>><?=display_str($FormatName)?></option> <option value="<?=display_str($FormatName)?>" <? if(isset($_GET['format']) && $FormatName==$_GET['format']) { ?>selected="selected"<? } ?>><?=display_str($FormatName)?></option>
<? } ?> </select> <? } ?> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="center"> <td colspan="2" class="center">
<input type="submit" value="Filter torrents" /> <input type="submit" value="Filter torrents" />
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div>
<? <?
} }
@ -423,4 +421,4 @@ function generate_torrent_table($Caption, $Tag, $Details, $Limit) {
</table><br /> </table><br />
<? <?
} }
?> ?>

View File

@ -427,7 +427,7 @@ function header_link($SortKey,$DefaultWay="desc") {
?> ?>
<form name="filter" method="get" action=''> <form class="search_form" name="torrents" method="get" action="">
<div class="filter_torrents"> <div class="filter_torrents">
<h3> <h3>
Filter Filter

View File

@ -32,7 +32,7 @@
Delete torrent Delete torrent
</div> </div>
<div class="pad"> <div class="pad">
<form action="torrents.php" method="post"> <form class="delete_form" name="torrent" action="torrents.php" method="post">
<input type="hidden" name="action" value="takedelete" /> <input type="hidden" name="action" value="takedelete" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" /> <input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
@ -127,7 +127,7 @@
} }
?> ?>
<div id="report<?=$ReportID?>"> <div id="report<?=$ReportID?>">
<form id="report_form<?=$ReportID?>" action="reports.php" method="post"> <form class="create_form" name="report" id="reportform_<?=$ReportID?>" action="reports.php" method="post">
<? <?
/* /*
* Some of these are for takeresolve, some for the javascript. * Some of these are for takeresolve, some for the javascript.
@ -275,5 +275,4 @@
</div> </div>
<? <?
} }
show_footer(); show_footer(); ?>
?>

View File

@ -290,7 +290,7 @@ function compare($X, $Y){
<div class="box box_addartists"> <div class="box box_addartists">
<div class="head"><strong>Add artist</strong><span style="float:right;"><a onclick="AddArtistField(); return false;" href="#">[+]</a></span></div> <div class="head"><strong>Add artist</strong><span style="float:right;"><a onclick="AddArtistField(); return false;" href="#">[+]</a></span></div>
<div class="body"> <div class="body">
<form action="torrents.php" method="post"> <form class="add_form" name="artists" action="torrents.php" method="post">
<div id="AddArtists"> <div id="AddArtists">
<input type="hidden" name="action" value="add_alias" /> <input type="hidden" name="action" value="add_alias" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -352,7 +352,7 @@ function compare($X, $Y){
<div class="box box_addtag"> <div class="box box_addtag">
<div class="head"><strong>Add tag</strong></div> <div class="head"><strong>Add tag</strong></div>
<div class="body"> <div class="body">
<form action="torrents.php" method="post"> <form class="add_form" name="tags" action="torrents.php" method="post">
<input type="hidden" name="action" value="add_tag" /> <input type="hidden" name="action" value="add_tag" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="groupid" value="<?=$GroupID?>" /> <input type="hidden" name="groupid" value="<?=$GroupID?>" />
@ -628,7 +628,7 @@ function filelist($Str) {
<tr class="requestrows <?=(++$i%2?'rowa':'rowb')?>"> <tr class="requestrows <?=(++$i%2?'rowa':'rowb')?>">
<td><a href="requests.php?action=view&amp;id=<?=$Request['ID']?>"><?=$FormatString?> / <?=$BitrateString?> / <?=$MediaString?></a></td> <td><a href="requests.php?action=view&amp;id=<?=$Request['ID']?>"><?=$FormatString?> / <?=$BitrateString?> / <?=$MediaString?></a></td>
<td> <td>
<form id="form_<?=$Request['ID']?>"> <form class="add_form" name="bounty" id="form_<?=$Request['ID']?>">
<span id="vote_count_<?=$Request['ID']?>"><?=count($RequestVotes['Voters'])?></span> <span id="vote_count_<?=$Request['ID']?>"><?=count($RequestVotes['Voters'])?></span>
<input type="hidden" id="requestid_<?=$Request['ID']?>" name="requestid" value="<?=$Request['ID']?>" /> <input type="hidden" id="requestid_<?=$Request['ID']?>" name="requestid" value="<?=$Request['ID']?>" />
<input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -805,14 +805,14 @@ function filelist($Str) {
<? if(check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) { <? if(check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
$AuthorInfo = user_info($AuthorID); $AuthorInfo = user_info($AuthorID);
if($LoggedUser['Class'] >= $AuthorInfo['Class']) { ?> if($LoggedUser['Class'] >= $AuthorInfo['Class']) { ?>
<form action="" style="display: none;" name="warn<?=$PostID?>" method="post"> <form class="manage_form hidden" name="user" id="warn<?=$PostID?>" action="" method="post">
<input type="hidden" name="action" value="warn" /> <input type="hidden" name="action" value="warn" />
<input type="hidden" name="groupid" value="<?=$GroupID?>" /> <input type="hidden" name="groupid" value="<?=$GroupID?>" />
<input type="hidden" name="postid" value="<?=$PostID?>" /> <input type="hidden" name="postid" value="<?=$PostID?>" />
<input type="hidden" name="userid" value="<?=$AuthorID?>" /> <input type="hidden" name="userid" value="<?=$AuthorID?>" />
<input type="hidden" name="key" value="<?=$Key?>" /> <input type="hidden" name="key" value="<?=$Key?>" />
</form> </form>
- <a href="#" onclick="document.warn<?=$PostID?>.submit(); return false;">[Warn]</a> - <a href="#" onclick="$('#warn<?=$PostID?>').raw().submit(); return false;">[Warn]</a>
<? } <? }
} ?> } ?>
@ -889,7 +889,7 @@ function filelist($Str) {
</td> </td>
</tr> </tr>
</table> </table>
<form id="quickpostform" action="" onsubmit="quickpostform.submit_button.disabled=true;" method="post" style="display: block; text-align: center;"> <form class="send_form center" name="reply" id="quickpostform" action="" onsubmit="quickpostform.submit_button.disabled=true;" method="post">
<div id="quickreplytext"> <div id="quickreplytext">
<input type="hidden" name="action" value="reply" /> <input type="hidden" name="action" value="reply" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -903,7 +903,4 @@ function filelist($Str) {
<? } ?> <? } ?>
</div> </div>
</div> </div>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -101,7 +101,7 @@
?> ?>
<div class="thin"> <div class="thin">
<h2>Change Group</h2> <h2>Change Group</h2>
<form action="torrents.php" method="post"> <form cass="edit_form" name="torrent_group" action="torrents.php" method="post">
<input type="hidden" name="action" value="editgroupid" /> <input type="hidden" name="action" value="editgroupid" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" /> <input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
@ -121,7 +121,7 @@
</table> </table>
</form> </form>
<h2>Split off into new group</h2> <h2>Split off into new group</h2>
<form action="torrents.php" method="post"> <form class="split_form" name="torrent_group" action="torrents.php" method="post">
<input type="hidden" name="action" value="newgroup" /> <input type="hidden" name="action" value="newgroup" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" /> <input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
@ -158,5 +158,4 @@
<? <?
} // if check_perms('torrents_edit') } // if check_perms('torrents_edit')
show_footer(); show_footer(); ?>
?>

View File

@ -46,7 +46,7 @@
<h2>Edit <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2> <h2>Edit <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2>
</div> </div>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form class="edit_form" name="torrent_group" action="torrents.php" method="post">
<div> <div>
<input type="hidden" name="action" value="takegroupedit" /> <input type="hidden" name="action" value="takegroupedit" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -81,7 +81,7 @@
if(in_array($LoggedUser['ID'], $DB->collect('UserID')) || check_perms('torrents_edit')) { ?> if(in_array($LoggedUser['ID'], $DB->collect('UserID')) || check_perms('torrents_edit')) { ?>
<h3>Non-wiki group editing</h3> <h3>Non-wiki group editing</h3>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form cass="edit_form" name="torrent_group" action="torrents.php" method="post">
<input type="hidden" name="action" value="nonwikiedit" /> <input type="hidden" name="action" value="nonwikiedit" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="groupid" value="<?=$GroupID?>" /> <input type="hidden" name="groupid" value="<?=$GroupID?>" />
@ -134,7 +134,7 @@
?> ?>
<h3>Rename (won't merge)</h3> <h3>Rename (won't merge)</h3>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form class="rename_form" name="torrent_group" action="torrents.php" method="post">
<div> <div>
<input type="hidden" name="action" value="rename" /> <input type="hidden" name="action" value="rename" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -149,7 +149,7 @@
</div> </div>
<h3>Merge with another group</h3> <h3>Merge with another group</h3>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form class="merge_form" name="torrent_group" action="torrents.php" method="post">
<div> <div>
<input type="hidden" name="action" value="merge" /> <input type="hidden" name="action" value="merge" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -165,6 +165,4 @@
</div> </div>
<? } ?> <? } ?>
</div> </div>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -44,7 +44,7 @@
<h2>Change Group Confirm!</h2> <h2>Change Group Confirm!</h2>
</div> </div>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form class="confirm_form" name="torrent_group" action="torrents.php" method="post">
<input type="hidden" name="action" value="editgroupid" /> <input type="hidden" name="action" value="editgroupid" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="confirm" value="true" /> <input type="hidden" name="confirm" value="true" />
@ -96,4 +96,4 @@
header("Location: torrents.php?id=$GroupID"); header("Location: torrents.php?id=$GroupID");
} }
?> ?>

View File

@ -43,7 +43,7 @@
<div class="header"> <div class="header">
<h2>Send PM To All Snatchers Of "<?=$Properties['ArtistName']?> - <?=$Properties['Title']?>"</h2> <h2>Send PM To All Snatchers Of "<?=$Properties['ArtistName']?> - <?=$Properties['Title']?>"</h2>
</div> </div>
<form action="torrents.php" method="post"> <form class="send_form" name="mass_message" action="torrents.php" method="post">
<input type="hidden" name="action" value="takemasspm" /> <input type="hidden" name="action" value="takemasspm" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" /> <input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
@ -69,6 +69,4 @@
</table> </table>
</form> </form>
</div> </div>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -33,7 +33,7 @@
<h2>Merge Confirm!</h2> <h2>Merge Confirm!</h2>
</div> </div>
<div class="box pad"> <div class="box pad">
<form action="torrents.php" method="post"> <form class="confirm_form" name="torrent_group" action="torrents.php" method="post">
<input type="hidden" name="action" value="merge" /> <input type="hidden" name="action" value="merge" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="confirm" value="true" /> <input type="hidden" name="confirm" value="true" />
@ -97,4 +97,4 @@
header('Location: torrents.php?id='.$GroupID); header('Location: torrents.php?id='.$GroupID);
} }
?> ?>

View File

@ -83,7 +83,7 @@
<a href="torrents.php?action=notify_cleargroup&amp;filterid=<?=$FilterID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">(clear)</a> <a href="torrents.php?action=notify_cleargroup&amp;filterid=<?=$FilterID?>&amp;auth=<?=$LoggedUser['AuthKey']?>">(clear)</a>
<a href="javascript:GroupClear($('#notificationform_<?=$FilterID?>').raw())">(clear selected)</a> <a href="javascript:GroupClear($('#notificationform_<?=$FilterID?>').raw())">(clear selected)</a>
</h3> </h3>
<form id="notificationform_<?=$FilterID?>"> <form class="manage_form" name="torrents" id="notificationform_<?=$FilterID?>">
<table class="torrent_table cats checkboxes border"> <table class="torrent_table cats checkboxes border">
<tr class="colhead"> <tr class="colhead">
<td style="text-align: center"><input type="checkbox" name="toggle" onclick="ToggleBoxes(this.form, this.checked)" /></td> <td style="text-align: center"><input type="checkbox" name="toggle" onclick="ToggleBoxes(this.form, this.checked)" /></td>
@ -181,7 +181,4 @@
<div class="linkbox"> <div class="linkbox">
<?=$Pages?> <?=$Pages?>
</div> </div>
<? show_footer(); ?>
<?
show_footer();
?>

View File

@ -275,7 +275,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
<h2><a href="user.php?id=<?=$UserID?>"><?=$User['Username']?></a><?='\'s '.$Action.' torrents'?></h2> <h2><a href="user.php?id=<?=$UserID?>"><?=$User['Username']?></a><?='\'s '.$Action.' torrents'?></h2>
</div> </div>
<div> <div>
<form action="" method="get"> <form class="search_form" name="torrents" action="" method="get">
<table class="layout"> <table class="layout">
<tr> <tr>
<td class="label"><strong>Search for:</strong></td> <td class="label"><strong>Search for:</strong></td>
@ -482,9 +482,6 @@ function header_link($SortKey,$DefaultWay="DESC") {
} }
?> ?>
</table>
<div class="linkbox"><?=$Pages?></div> <div class="linkbox"><?=$Pages?></div>
</div> </div>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -22,7 +22,7 @@
<h2>Warning <a href="user.php?id=<?=$UserID?>"><?=$UserInfo['Username']?></a></h2> <h2>Warning <a href="user.php?id=<?=$UserID?>"><?=$UserInfo['Username']?></a></h2>
</div> </div>
<div class="thin box pad"> <div class="thin box pad">
<form action="" onsubmit="quickpostform.submit_button.disabled=true;" method="post"> <form class="create_form" name="warning" action="" onsubmit="quickpostform.submit_button.disabled=true;" method="post">
<input type="hidden" name="groupid" value="<?=$GroupID?>"/> <input type="hidden" name="groupid" value="<?=$GroupID?>"/>
<input type="hidden" name="postid" value="<?=$PostID?>"/> <input type="hidden" name="postid" value="<?=$PostID?>"/>
<input type="hidden" name="userid" value="<?=$UserID?>"/> <input type="hidden" name="userid" value="<?=$UserID?>"/>
@ -65,4 +65,4 @@
</table> </table>
</form> </form>
</div> </div>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -428,7 +428,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
show_header('User search'); show_header('User search');
?> ?>
<div class="thin"> <div class="thin">
<form action="user.php" method="get"> <form class="search_form" name="users" action="user.php" method="get">
<input type="hidden" name="action" value="search" /> <input type="hidden" name="action" value="search" />
<table class="layout"> <table class="layout">
<tr> <tr>

View File

@ -38,7 +38,7 @@
<div class="header"> <div class="header">
<h2><a href="user.php?id=<?=$LoggedUser['ID']?>"><?=$LoggedUser['Username']?></a> &gt; Connectability Checker</h2> <h2><a href="user.php?id=<?=$LoggedUser['ID']?>"><?=$LoggedUser['Username']?></a> &gt; Connectability Checker</h2>
</div> </div>
<form action="javascript:check_ip();" method="get"> <form class="manage_form" name="connections" action="javascript:check_ip();" method="get">
<table class="layout"> <table class="layout">
<tr> <tr>
<td class="label">IP</td> <td class="label">IP</td>
@ -69,4 +69,4 @@ function check_ip() {
}); });
} }
</script> </script>
<? show_footer(); ?> <? show_footer(); ?>

View File

@ -68,7 +68,7 @@ function checked($Checked) {
<div class="header"> <div class="header">
<h2><?=format_username($UserID, false, false, false)?> &gt; Settings</h2> <h2><?=format_username($UserID, false, false, false)?> &gt; Settings</h2>
</div> </div>
<form id="userform" name="userform" action="" method="post" onsubmit="return formVal();" autocomplete="off"> <form class="edit_form" name="user" id="userform" action="" method="post" onsubmit="return formVal();" autocomplete="off">
<div> <div>
<input type="hidden" name="action" value="takeedit" /> <input type="hidden" name="action" value="takeedit" />
<input type="hidden" name="userid" value="<?=$UserID?>" /> <input type="hidden" name="userid" value="<?=$UserID?>" />
@ -455,6 +455,4 @@ function checked($Checked) {
</table> </table>
</form> </form>
</div> </div>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -125,25 +125,25 @@
<p><em>Do not send an invite if you haven't read and understood the information above.</em></p> <p><em>Do not send an invite if you haven't read and understood the information above.</em></p>
</div> </div>
<div class="box pad"> <div class="box pad">
<form action="user.php" method="post"> <form class="send_form" name="invite" action="user.php" method="post">
<input type="hidden" name="action" value="takeinvite" /> <input type="hidden" name="action" value="takeinvite" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr> <tr>
<td class="label">Email:</td> <td class="label">Email:</td>
<td> <td>
<input type="text" name="email" size="60" /> <input type="text" name="email" size="60" />
<input type="submit" value="Invite" /> <input type="submit" value="Invite" />
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
<? <?
} elseif (!empty($LoggedUser['DisableInvites'])) {?> } elseif (!empty($LoggedUser['DisableInvites'])) {?>
<div class="box pad" style="text-align: center"> <div class="box pad" style="text-align: center">
<strong class="important_text">Your invites have been disabled. Please read <a href="wiki.php?action=article&amp;id=310">this article</a> for more information.</strong> <strong class="important_text">Your invites have been disabled. Please read <a href="wiki.php?action=article&amp;id=310">this article</a> for more information.</strong>
</div> </div>
<? <?
} elseif ($LoggedUser['RatioWatch'] || !$CanLeech) { ?> } elseif ($LoggedUser['RatioWatch'] || !$CanLeech) { ?>
@ -212,5 +212,4 @@
</table> </table>
</div> </div>
</div> </div>
<? <? show_footer(); ?>
show_footer();

View File

@ -160,12 +160,12 @@ function user_dupes_table($UserID) {
$Dupes = array(); $Dupes = array();
} }
?> ?>
<form method="POST" id="linkedform"> <form class="manage_form" name="user" method="post" id="linkedform">
<input type="hidden" name="action" value="dupes"> <input type="hidden" name="action" value="dupes" />
<input type="hidden" name="dupeaction" value="update"> <input type="hidden" name="dupeaction" value="update" />
<input type="hidden" name="userid" value="<?=$UserID?>"> <input type="hidden" name="userid" value="<?=$UserID?>" />
<input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>"> <input type="hidden" id="auth" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" id="form_comment_hash" name="form_comment_hash" value="<?=$CommentHash?>"> <input type="hidden" id="form_comment_hash" name="form_comment_hash" value="<?=$CommentHash?>" />
<div class="box"> <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;">(View)</a></div>
<table width="100%" class="layout hidden linkedaccounts"> <table width="100%" class="layout hidden linkedaccounts">
@ -201,12 +201,12 @@ function user_dupes_table($UserID) {
<div id="editdupecomments" class="<?=$DupeCount?'hidden':''?>"> <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> <textarea name="dupecomments" onkeyup="resize('dupecommentsbox');" id="dupecommentsbox" cols="65" rows="5" style="width:98%;"><?=display_str($Comments)?></textarea>
</div> </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 style="float:right; font-style: italic;"><a href="#" onclick="$('#dupecomments').toggle(); $('#editdupecomments').toggle(); resize('dupecommentsbox'); return false;">(Edit linked account comments)</a></span>
</td> </td>
</tr> </tr>
</table> </table>
<div class="pad hidden linkedaccounts"> <div class="pad hidden linkedaccounts">
<label for="target">Link this user with: </label><input type="text" name="target" id="target"><input type="submit" value="Link" id="submitlink" /> <label for="target">Link this user with: </label><input type="text" name="target" id="target" /><input type="submit" value="Link" id="submitlink" />
</div> </div>
</div> </div>
</form> </form>

View File

@ -36,7 +36,7 @@
<a href="#" onclick="$('#filter_<?=$N['ID']?>').toggle(); return false;">(Show)</a> <a href="#" onclick="$('#filter_<?=$N['ID']?>').toggle(); return false;">(Show)</a>
</h3> </h3>
<? } ?> <? } ?>
<form action="user.php" method="post"> <form class="<?=($i>$NumFilters)?'create_form':'edit_form'?>" name="notification" action="user.php" method="post">
<input type="hidden" name="formid" value="<?=$i?>" /> <input type="hidden" name="formid" value="<?=$i?>" />
<input type="hidden" name="action" value="notify_handle" /> <input type="hidden" name="action" value="notify_handle" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -152,6 +152,4 @@
<? } <? }
} ?> } ?>
</div> </div>
<? <? show_footer(); ?>
show_footer();
?>

View File

@ -56,8 +56,8 @@ function display_perm($Key,$Title) {
?> ?>
<script type="text/javascript"> <script type="text/javascript">
function reset() { function reset() {
for (i = 0; i < $('#permform').raw().elements.length; i++) { for (i = 0; i < $('#permissionsform').raw().elements.length; i++) {
element = $('#permform').raw().elements[i]; element = $('#permissionsform').raw().elements[i];
if (element.id.substr(0,8) == 'default_') { if (element.id.substr(0,8) == 'default_') {
$('#' + element.id.substr(8)).raw().checked = element.checked; $('#' + element.id.substr(8)).raw().checked = element.checked;
} }
@ -75,7 +75,7 @@ function reset() {
</div> </div>
<br /> <br />
<form name="permform" id="permform" method="post" action=""> <form class="manage_form" name="permissions" id="permissionsform" method="post" action="">
<table class="layout permission_head"> <table class="layout permission_head">
<tr> <tr>
<td class="label">Extra personal collages</td> <td class="label">Extra personal collages</td>
@ -89,4 +89,4 @@ function reset() {
permissions_form(); permissions_form();
?> ?>
</form> </form>
<? show_footer(); ?> <? show_footer(); ?>

Some files were not shown because too many files have changed in this diff Show More