Empty commit

This commit is contained in:
Git 2012-10-07 08:00:25 +00:00
parent 289d270c1c
commit 6f99b27383
7 changed files with 21 additions and 9 deletions

View File

@ -297,7 +297,19 @@ public function order_group_by($Attribute, $Mode) {
*/
public function limit($Offset, $Limit, $MaxMatches = SPHINX_MATCHES_START) {
$this->Limits = "$Offset, $Limit";
$this->Options['max_matches'] = $MaxMatches;
$this->set('max_matches', $MaxMatches);
return $this;
}
/**
* Tweak the settings to use for the query. Sanity checking shouldn't be needed as Sphinx already does it
*
* @param string $Name setting name
* @param mixed $Value value
* @return current SphinxQL query object
*/
public function set($Name, $Value) {
$this->Options[$Name] = $Value;
return $this;
}

View File

@ -531,7 +531,7 @@ function compare($X, $Y){
<div class="head"><strong>Search File Lists</strong></div>
<ul class="nobullet">
<li>
<form cass="search_form" name="filelists" action="torrents.php">
<form class="search_form" name="filelists" action="torrents.php">
<input type="hidden" name="artistname" value="<?=$Name?>" />
<input type="hidden" name="action" value="advanced" />
<input type="text" autocomplete="off" id="filelist" name="filelist" size="20" />

View File

@ -122,7 +122,7 @@ function compare($X, $Y){
<tr class="group discog" id="group_<?=$GroupID?>">
<td class="center">
<div title="View" id="showimg_<?=$GroupID?>" class="<?=($ShowGroups ? 'hide' : 'show')?>_torrents">
<a href="#" class="show_torrents_link" onclick="toggle_group(<?=$GroupID?>, this, event)" title="Collapse this group"></a>
<a href="#" class="show_torrents_link" onclick="toggle_group(<?=$GroupID?>, this, event)" title="Collapse this group. Hold &quot;Ctrl&quot; while clicking to collape all groups on this page."></a>
</div>
</td>
<td class="center">

View File

@ -29,7 +29,7 @@
$SphQL->select('id')
->from('log, log_delta')
->where_match($_GET['search'], 'message')
->order_by('time', 'DESC')
->order_by('id', 'DESC')
->limit($Offset, LOG_ENTRIES_PER_PAGE, $Offset+LOG_ENTRIES_PER_PAGE);
$Result = $SphQL->query();

View File

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

View File

@ -101,7 +101,7 @@
?>
<div class="thin">
<h2>Change Group</h2>
<form cass="edit_form" name="torrent_group" action="torrents.php" method="post">
<form class="edit_form" name="torrent_group" action="torrents.php" method="post">
<input type="hidden" name="action" value="editgroupid" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" />

View File

@ -81,7 +81,7 @@
if(in_array($LoggedUser['ID'], $DB->collect('UserID')) || check_perms('torrents_edit')) { ?>
<h3>Non-wiki group editing</h3>
<div class="box pad">
<form cass="edit_form" name="torrent_group" action="torrents.php" method="post">
<form class="edit_form" name="torrent_group" action="torrents.php" method="post">
<input type="hidden" name="action" value="nonwikiedit" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="groupid" value="<?=$GroupID?>" />
@ -165,4 +165,4 @@
</div>
<? } ?>
</div>
<? show_footer(); ?>
<? show_footer(); ?>