mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
bdb2e4fe12
commit
53a6628206
@ -186,7 +186,7 @@ function music_form($GenreTags) {
|
|||||||
$LossywebApproved = $Torrent['LossywebApproved'];
|
$LossywebApproved = $Torrent['LossywebApproved'];
|
||||||
global $ReleaseTypes;
|
global $ReleaseTypes;
|
||||||
?>
|
?>
|
||||||
<table cellpadding="3" cellspacing="1" border="0" class="layout border<? if ($this->NewTorrent) { echo ' slice'; }?>" width="100%">
|
<table cellpadding="3" cellspacing="1" border="0" class="layout border<? if ($this->NewTorrent) { echo ' slice'; } ?>" width="100%">
|
||||||
<? if ($this->NewTorrent) { ?>
|
<? if ($this->NewTorrent) { ?>
|
||||||
<tr id="artist_tr">
|
<tr id="artist_tr">
|
||||||
<td class="label">Artist(s):</td>
|
<td class="label">Artist(s):</td>
|
||||||
@ -383,7 +383,7 @@ function show() {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr id="edition_catalogue_number">
|
<tr id="edition_catalogue_number">
|
||||||
<td class="label">Catalogue number:</td>
|
<td class="label">Catalogue number:</td>
|
||||||
<td><input type="text" id="remaster_catalogue_number" name="remaster_catalogue_number" size="50" value="<?=display_str($Torrent['RemasterCatalogueNumber']) ?>"<? if ($UnknownRelease) { echo ' disabled="disabled"';}?> />
|
<td><input type="text" id="remaster_catalogue_number" name="remaster_catalogue_number" size="50" value="<?=display_str($Torrent['RemasterCatalogueNumber']) ?>"<? if ($UnknownRelease) { echo ' disabled="disabled"';} ?> />
|
||||||
<p class="min_padding">This is for the catalogue number of the <strong>release</strong>.</p>
|
<p class="min_padding">This is for the catalogue number of the <strong>release</strong>.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -395,7 +395,7 @@ function show() {
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="label">Scene:</td>
|
<td class="label">Scene:</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" id="scene" name="scene" <? if ($Torrent['Scene']) { echo 'checked="checked" ';}?>/>
|
<input type="checkbox" id="scene" name="scene" <? if ($Torrent['Scene']) { echo 'checked="checked" ';} ?>/>
|
||||||
<label for="scene">Check this only if this is a 'scene release'.<br />If you ripped it yourself, it is <strong>not</strong> a scene release. If you are not sure, <strong class="important_text">do not</strong> check it; you will be penalized. For information on the scene, visit <a href="http://en.wikipedia.org/wiki/Scene_%28software%29" target="_blank">Wikipedia</a>.</label>
|
<label for="scene">Check this only if this is a 'scene release'.<br />If you ripped it yourself, it is <strong>not</strong> a scene release. If you are not sure, <strong class="important_text">do not</strong> check it; you will be penalized. For information on the scene, visit <a href="http://en.wikipedia.org/wiki/Scene_%28software%29" target="_blank">Wikipedia</a>.</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -524,7 +524,7 @@ function show() {
|
|||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<input type="checkbox" id="make_trumpable" name="make_trumpable"<? if ($Torrent['LogScore'] == 99) { echo ' checked="checked"';}?> /> <label for="make_trumpable">Check this box if you want this torrent to be trumpable (subtracts 1 point).</label>
|
<input type="checkbox" id="make_trumpable" name="make_trumpable"<? if ($Torrent['LogScore'] == 99) { echo ' checked="checked"';} ?> /> <label for="make_trumpable">Check this box if you want this torrent to be trumpable (subtracts 1 point).</label>
|
||||||
<?
|
<?
|
||||||
if (!check_perms('users_mod')) {
|
if (!check_perms('users_mod')) {
|
||||||
?> </td>
|
?> </td>
|
||||||
@ -720,7 +720,7 @@ function audiobook_form() {
|
|||||||
<p class="min_padding">Contains information like the track listing, a review, a link to Discogs or MusicBrainz, etc.</p>
|
<p class="min_padding">Contains information like the track listing, a review, a link to Discogs or MusicBrainz, etc.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? }?>
|
<? } ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label">Release description (optional):</td>
|
<td class="label">Release description (optional):</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
$PerPage = POSTS_PER_PAGE;
|
$PerPage = POSTS_PER_PAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
list($Page,$Limit) = Format::page_limit(TOPICS_PER_PAGE);
|
list($Page, $Limit) = Format::page_limit(TOPICS_PER_PAGE);
|
||||||
|
|
||||||
//---------- Get some data to start processing
|
//---------- Get some data to start processing
|
||||||
|
|
||||||
@ -37,16 +37,17 @@
|
|||||||
list($Forum,,,$Stickies) = $Cache->get_value('forums_'.$ForumID);
|
list($Forum,,,$Stickies) = $Cache->get_value('forums_'.$ForumID);
|
||||||
}
|
}
|
||||||
if (!isset($Forum) || !is_array($Forum)) {
|
if (!isset($Forum) || !is_array($Forum)) {
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
t.ID,
|
SELECT
|
||||||
t.Title,
|
t.ID,
|
||||||
t.AuthorID,
|
t.Title,
|
||||||
t.IsLocked,
|
t.AuthorID,
|
||||||
t.IsSticky,
|
t.IsLocked,
|
||||||
t.NumPosts,
|
t.IsSticky,
|
||||||
t.LastPostID,
|
t.NumPosts,
|
||||||
t.LastPostTime,
|
t.LastPostID,
|
||||||
t.LastPostAuthorID
|
t.LastPostTime,
|
||||||
|
t.LastPostAuthorID
|
||||||
FROM forums_topics AS t
|
FROM forums_topics AS t
|
||||||
WHERE t.ForumID = '$ForumID'
|
WHERE t.ForumID = '$ForumID'
|
||||||
ORDER BY t.IsSticky DESC, t.LastPostTime DESC
|
ORDER BY t.IsSticky DESC, t.LastPostTime DESC
|
||||||
@ -65,11 +66,11 @@
|
|||||||
// Make sure they're allowed to look at the page
|
// Make sure they're allowed to look at the page
|
||||||
if (!check_perms('site_moderate_forums')) {
|
if (!check_perms('site_moderate_forums')) {
|
||||||
if (isset($LoggedUser['CustomForums'][$ForumID]) && $LoggedUser['CustomForums'][$ForumID] === 0) {
|
if (isset($LoggedUser['CustomForums'][$ForumID]) && $LoggedUser['CustomForums'][$ForumID] === 0) {
|
||||||
json_die("failure", "unsufficient permissions to view page");
|
json_die("failure", "insufficient permissions to view page");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($LoggedUser['CustomForums'][$ForumID] != 1 && $Forums[$ForumID]['MinClassRead'] > $LoggedUser['Class']) {
|
if ($LoggedUser['CustomForums'][$ForumID] != 1 && $Forums[$ForumID]['MinClassRead'] > $LoggedUser['Class']) {
|
||||||
json_die("failure", "unsufficient permissions to view page");
|
json_die("failure", "insufficient permissions to view page");
|
||||||
}
|
}
|
||||||
|
|
||||||
$ForumName = display_str($Forums[$ForumID]['Name']);
|
$ForumName = display_str($Forums[$ForumID]['Name']);
|
||||||
@ -82,7 +83,7 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$Pages=Format::get_pages($Page,$Forums[$ForumID]['NumTopics'],TOPICS_PER_PAGE,9);
|
$Pages = Format::get_pages($Page, $Forums[$ForumID]['NumTopics'], TOPICS_PER_PAGE, 9);
|
||||||
|
|
||||||
if (count($Forum) == 0) {
|
if (count($Forum) == 0) {
|
||||||
print
|
print
|
||||||
@ -138,7 +139,7 @@
|
|||||||
'lastAuthorName' => $LastAuthorName == null ? '' : $LastAuthorName,
|
'lastAuthorName' => $LastAuthorName == null ? '' : $LastAuthorName,
|
||||||
'lastReadPage' => $LastRead[$TopicID]['Page'] == null ? 0 : (int) $LastRead[$TopicID]['Page'],
|
'lastReadPage' => $LastRead[$TopicID]['Page'] == null ? 0 : (int) $LastRead[$TopicID]['Page'],
|
||||||
'lastReadPostId' => $LastRead[$TopicID]['PostID'] == null ? 0 : (int) $LastRead[$TopicID]['PostID'],
|
'lastReadPostId' => $LastRead[$TopicID]['PostID'] == null ? 0 : (int) $LastRead[$TopicID]['PostID'],
|
||||||
'read' => $Read == "read"
|
'read' => $Read == 'read'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
$CurURL = "inbox.php?".$CurURL."&";
|
$CurURL = "inbox.php?".$CurURL."&";
|
||||||
}
|
}
|
||||||
|
|
||||||
$Pages = Format::get_pages($Page,$NumResults,MESSAGES_PER_PAGE,9);
|
$Pages = Format::get_pages($Page, $NumResults, MESSAGES_PER_PAGE, 9);
|
||||||
|
|
||||||
$JsonMessages = array();
|
$JsonMessages = array();
|
||||||
while (list($ConvID, $Subject, $Unread, $Sticky, $ForwardedID, $ForwardedName, $SenderID, $Username, $Donor, $Warned, $Enabled, $Date) = $DB->next_record()) {
|
while (list($ConvID, $Subject, $Unread, $Sticky, $ForwardedID, $ForwardedName, $SenderID, $Username, $Donor, $Warned, $Enabled, $Date) = $DB->next_record()) {
|
||||||
|
@ -203,6 +203,7 @@
|
|||||||
'title' => $Title,
|
'title' => $Title,
|
||||||
'year' => (int) $Year,
|
'year' => (int) $Year,
|
||||||
'image' => $Image,
|
'image' => $Image,
|
||||||
|
'bbDescription' => $Description,
|
||||||
'description' => $Text->full_format($Description),
|
'description' => $Text->full_format($Description),
|
||||||
'musicInfo' => $JsonMusicInfo,
|
'musicInfo' => $JsonMusicInfo,
|
||||||
'catalogueNumber' => $CatalogueNumber,
|
'catalogueNumber' => $CatalogueNumber,
|
||||||
|
@ -39,6 +39,7 @@ function error_out($reason = '') {
|
|||||||
if ($LoggedUser['CustomForums']) {
|
if ($LoggedUser['CustomForums']) {
|
||||||
unset($LoggedUser['CustomForums']['']);
|
unset($LoggedUser['CustomForums']['']);
|
||||||
$RestrictedForums = implode("','", array_keys($LoggedUser['CustomForums'], 0));
|
$RestrictedForums = implode("','", array_keys($LoggedUser['CustomForums'], 0));
|
||||||
|
$PermittedForums = implode("','", array_keys($LoggedUser['CustomForums'], 1));
|
||||||
}
|
}
|
||||||
$ViewingOwn = ($UserID == $LoggedUser['ID']);
|
$ViewingOwn = ($UserID == $LoggedUser['ID']);
|
||||||
$ShowUnread = ($ViewingOwn && (!isset($_GET['showunread']) || !!$_GET['showunread']));
|
$ShowUnread = ($ViewingOwn && (!isset($_GET['showunread']) || !!$_GET['showunread']));
|
||||||
@ -56,7 +57,7 @@ function error_out($reason = '') {
|
|||||||
$sql .= '
|
$sql .= '
|
||||||
LEFT JOIN forums AS f ON f.ID = t.ForumID
|
LEFT JOIN forums AS f ON f.ID = t.ForumID
|
||||||
WHERE p.AuthorID = '.$UserID.'
|
WHERE p.AuthorID = '.$UserID.'
|
||||||
AND ((f.MinClassRead <= '.$LoggedUser['EffectiveClass'];
|
AND ((f.MinClassRead <= '.$LoggedUser['Class'];
|
||||||
if (!empty($RestrictedForums)) {
|
if (!empty($RestrictedForums)) {
|
||||||
$sql.='
|
$sql.='
|
||||||
AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
||||||
@ -137,12 +138,19 @@ function error_out($reason = '') {
|
|||||||
JOIN forums AS f ON f.ID = t.ForumID
|
JOIN forums AS f ON f.ID = t.ForumID
|
||||||
LEFT JOIN forums_last_read_topics AS l ON l.UserID = '.$UserID.' AND l.TopicID = t.ID
|
LEFT JOIN forums_last_read_topics AS l ON l.UserID = '.$UserID.' AND l.TopicID = t.ID
|
||||||
WHERE p.AuthorID = '.$UserID.'
|
WHERE p.AuthorID = '.$UserID.'
|
||||||
AND f.MinClassRead <= '.$LoggedUser['EffectiveClass'];
|
AND ((f.MinClassRead <= '.$LoggedUser['Class'];
|
||||||
|
|
||||||
if (!empty($RestrictedForums)) {
|
if (!empty($RestrictedForums)) {
|
||||||
$sql.='
|
$sql.='
|
||||||
AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
||||||
}
|
}
|
||||||
|
$sql .= ')';
|
||||||
|
|
||||||
|
if (!empty($PermittedForums)) {
|
||||||
|
$sql.='
|
||||||
|
OR f.ID IN (\''.$PermittedForums.'\')';
|
||||||
|
}
|
||||||
|
$sql .= ')';
|
||||||
|
|
||||||
if ($ShowUnread) {
|
if ($ShowUnread) {
|
||||||
$sql.='
|
$sql.='
|
||||||
|
@ -452,7 +452,7 @@ function compare($X, $Y) {
|
|||||||
</td>
|
</td>
|
||||||
<td class="nobr"><?=Format::get_size($Torrent['Size'])?></td>
|
<td class="nobr"><?=Format::get_size($Torrent['Size'])?></td>
|
||||||
<td><?=number_format($Torrent['Snatched'])?></td>
|
<td><?=number_format($Torrent['Snatched'])?></td>
|
||||||
<td<?=($Torrent['Seeders']==0)?' class="r00"':''?>><?=number_format($Torrent['Seeders'])?></td>
|
<td<?=(($Torrent['Seeders'] == 0) ? ' class="r00"' : '')?>><?=number_format($Torrent['Seeders'])?></td>
|
||||||
<td><?=number_format($Torrent['Leechers'])?></td>
|
<td><?=number_format($Torrent['Leechers'])?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
@ -461,7 +461,7 @@ function compare($X, $Y) {
|
|||||||
if (!empty($TorrentList)) { ?>
|
if (!empty($TorrentList)) { ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<?}
|
<? }
|
||||||
|
|
||||||
$TorrentDisplayList = ob_get_clean();
|
$TorrentDisplayList = ob_get_clean();
|
||||||
|
|
||||||
@ -596,7 +596,7 @@ function compare($X, $Y) {
|
|||||||
<? $OpenGroup = true;
|
<? $OpenGroup = true;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<option id="opt<?=$GroupID.$OptionID?>" value="<?=$GroupID.$OptionID?>"<? if (in_array($GroupID.$OptionID,$ZIPList)) { echo ' disabled="disabled"'; }?>><?=$OptName?></option>
|
<option id="opt<?=$GroupID.$OptionID?>" value="<?=$GroupID.$OptionID?>"<? if (in_array($GroupID.$OptionID, $ZIPList)) { echo ' disabled="disabled"'; } ?>><?=$OptName?></option>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -608,7 +608,7 @@ function compare($X, $Y) {
|
|||||||
<option value="1"<? if ($ZIPPrefs == 1) { echo ' selected="selected"'; } ?>>Prefer Best Seeded</option>
|
<option value="1"<? if ($ZIPPrefs == 1) { echo ' selected="selected"'; } ?>>Prefer Best Seeded</option>
|
||||||
<option value="2"<? if ($ZIPPrefs == 2) { echo ' selected="selected"'; } ?>>Prefer Bonus Tracks</option>
|
<option value="2"<? if ($ZIPPrefs == 2) { echo ' selected="selected"'; } ?>>Prefer Bonus Tracks</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="submit" style="width:210px" value="Download" />
|
<input type="submit" style="width: 210px;" value="Download" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -673,7 +673,7 @@ function compare($X, $Y) {
|
|||||||
$First = false;
|
$First = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$FontSize = (ceil((((($Score - 2)/$Max - 2) * 4)))) + 8;
|
$FontSize = (ceil((((($Score - 2) / $Max - 2) * 4)))) + 8;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
@ -947,7 +947,7 @@ function require(file, callback) {
|
|||||||
<div id="artistcomments" class="linkbox">
|
<div id="artistcomments" class="linkbox">
|
||||||
<a name="comments"></a>
|
<a name="comments"></a>
|
||||||
<?
|
<?
|
||||||
$Pages = Format::get_pages($Page,$Results,TORRENT_COMMENTS_PER_PAGE,9,'#comments');
|
$Pages = Format::get_pages($Page, $Results, TORRENT_COMMENTS_PER_PAGE, 9, '#comments');
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -967,7 +967,7 @@ function require(file, callback) {
|
|||||||
</colgroup>
|
</colgroup>
|
||||||
<tr class="colhead_dark">
|
<tr class="colhead_dark">
|
||||||
<td colspan="<?=(Users::has_avatars_enabled() ? 2 : 1)?>">
|
<td colspan="<?=(Users::has_avatars_enabled() ? 2 : 1)?>">
|
||||||
<div style="float:left;"><a class="post_id" href='artist.php?id=<?=$ArtistID?>&postid=<?=$PostID?>#post<?=$PostID?>'>#<?=$PostID?></a>
|
<div style="float: left;"><a class="post_id" href='artist.php?id=<?=$ArtistID?>&postid=<?=$PostID?>#post<?=$PostID?>'>#<?=$PostID?></a>
|
||||||
<strong><?=Users::format_username($AuthorID, true, true, true, true)?></strong> <?=time_diff($AddedTime)?>
|
<strong><?=Users::format_username($AuthorID, true, true, true, true)?></strong> <?=time_diff($AddedTime)?>
|
||||||
- <a href="#quickpost" onclick="Quote('<?=$PostID?>','<?=$Username?>');" class="brackets">Quote</a>
|
- <a href="#quickpost" onclick="Quote('<?=$PostID?>','<?=$Username?>');" class="brackets">Quote</a>
|
||||||
<? if ($AuthorID == $LoggedUser['ID'] || check_perms('site_moderate_forums')) { ?>
|
<? if ($AuthorID == $LoggedUser['ID'] || check_perms('site_moderate_forums')) { ?>
|
||||||
@ -977,7 +977,7 @@ function require(file, callback) {
|
|||||||
- <a href="#post<?=$PostID?>" onclick="Delete('<?=$PostID?>');" class="brackets">Delete</a>
|
- <a href="#post<?=$PostID?>" onclick="Delete('<?=$PostID?>');" class="brackets">Delete</a>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</div>
|
</div>
|
||||||
<div id="bar<?=$PostID?>" style="float:right;">
|
<div id="bar<?=$PostID?>" style="float: right;">
|
||||||
<a href="reports.php?action=report&type=artist_comment&id=<?=$PostID?>" class="brackets">Report</a>
|
<a href="reports.php?action=report&type=artist_comment&id=<?=$PostID?>" class="brackets">Report</a>
|
||||||
<? if (check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
<? if (check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
||||||
$AuthorInfo = Users::user_info($AuthorID);
|
$AuthorInfo = Users::user_info($AuthorID);
|
||||||
|
@ -314,19 +314,19 @@ function compare($X, $Y) {
|
|||||||
$Page1 = array_slice($Collage, 0, $CollageCovers);
|
$Page1 = array_slice($Collage, 0, $CollageCovers);
|
||||||
foreach ($Page1 as $Group) {
|
foreach ($Page1 as $Group) {
|
||||||
echo $Group;
|
echo $Group;
|
||||||
}?>
|
} ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<? if ($NumGroups > $CollageCovers) { ?>
|
<? if ($NumGroups > $CollageCovers) { ?>
|
||||||
<div class="linkbox pager" style="clear: left;" id="pageslinksdiv">
|
<div class="linkbox pager" style="clear: left;" id="pageslinksdiv">
|
||||||
<span id="firstpage" class="invisible"><a href="#" class="pageslink" onclick="collageShow.page(0, this); return false;"><< First</a> | </span>
|
<span id="firstpage" class="invisible"><a href="#" class="pageslink" onclick="collageShow.page(0, this); return false;"><< First</a> | </span>
|
||||||
<span id="prevpage" class="invisible"><a href="#" id="prevpage" class="pageslink" onclick="collageShow.prevPage(); return false;">< Prev</a> | </span>
|
<span id="prevpage" class="invisible"><a href="#" id="prevpage" class="pageslink" onclick="collageShow.prevPage(); return false;">< Prev</a> | </span>
|
||||||
<? for ($i=0; $i < $NumGroups/$CollageCovers; $i++) { ?>
|
<? for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { ?>
|
||||||
<span id="pagelink<?=$i?>" class="<?=(($i>4)?'hidden':'')?><?=(($i==0)?' selected':'')?>"><a href="#" class="pageslink" onclick="collageShow.page(<?=$i?>, this); return false;"><?=$CollageCovers*$i+1?>-<?=min($NumGroups,$CollageCovers*($i+1))?></a><?=($i != ceil($NumGroups/$CollageCovers)-1)?' | ':''?></span>
|
<span id="pagelink<?=$i?>" class="<?=(($i > 4) ? 'hidden' : '')?><?=(($i == 0) ? ' selected' : '')?>"><a href="#" class="pageslink" onclick="collageShow.page(<?=$i?>, this); return false;"><?=($CollageCovers * $i + 1)?>-<?=min($NumGroups, $CollageCovers * ($i + 1))?></a><?=(($i != ceil($NumGroups / $CollageCovers) - 1) ? ' | ' : '')?></span>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<span id="nextbar" class="<?=($NumGroups/$CollageCovers > 5)?'hidden':''?>"> | </span>
|
<span id="nextbar" class="<?=(($NumGroups / $CollageCovers > 5) ? 'hidden' : '')?>"> | </span>
|
||||||
<span id="nextpage"><a href="#" class="pageslink" onclick="collageShow.nextPage(); return false;">Next ></a></span>
|
<span id="nextpage"><a href="#" class="pageslink" onclick="collageShow.nextPage(); return false;">Next ></a></span>
|
||||||
<span id="lastpage" class="<?=ceil($NumGroups/$CollageCovers)==2?'invisible':''?>"> | <a href="#" id="lastpage" class="pageslink" onclick="collageShow.page(<?=ceil($NumGroups/$CollageCovers)-1?>, this); return false;">Last >></a></span>
|
<span id="lastpage" class="<?=(ceil($NumGroups / $CollageCovers) == 2 ? 'invisible' : '')?>"> | <a href="#" id="lastpage" class="pageslink" onclick="collageShow.page(<?=(ceil($NumGroups / $CollageCovers) - 1)?>, this); return false;">Last >></a></span>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
collageShow.init(<?=json_encode($CollagePages)?>);
|
collageShow.init(<?=json_encode($CollagePages)?>);
|
||||||
|
@ -70,15 +70,16 @@
|
|||||||
$BookmarkJoin = '';
|
$BookmarkJoin = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$BaseSQL = $SQL = "SELECT SQL_CALC_FOUND_ROWS
|
$BaseSQL = $SQL = "
|
||||||
c.ID,
|
SELECT SQL_CALC_FOUND_ROWS
|
||||||
c.Name,
|
c.ID,
|
||||||
c.NumTorrents,
|
c.Name,
|
||||||
c.TagList,
|
c.NumTorrents,
|
||||||
c.CategoryID,
|
c.TagList,
|
||||||
c.UserID
|
c.CategoryID,
|
||||||
|
c.UserID
|
||||||
FROM collages AS c
|
FROM collages AS c
|
||||||
$BookmarkJoin
|
$BookmarkJoin
|
||||||
WHERE Deleted = '0'";
|
WHERE Deleted = '0'";
|
||||||
|
|
||||||
if ($BookmarkView) {
|
if ($BookmarkView) {
|
||||||
@ -187,7 +188,7 @@
|
|||||||
<td class="label">Categories:</td>
|
<td class="label">Categories:</td>
|
||||||
<td>
|
<td>
|
||||||
<? foreach ($CollageCats as $ID=>$Cat) { ?>
|
<? foreach ($CollageCats as $ID=>$Cat) { ?>
|
||||||
<input type="checkbox" value="1" name="cats[<?=$ID?>]" id="cats_<?=$ID?>"<? if (in_array($ID, $Categories)) { echo ' checked="checked"'; }?> />
|
<input type="checkbox" value="1" name="cats[<?=$ID?>]" id="cats_<?=$ID?>"<? if (in_array($ID, $Categories)) { echo ' checked="checked"'; } ?> />
|
||||||
<label for="cats_<?=$ID?>"><?=$Cat?></label>
|
<label for="cats_<?=$ID?>"><?=$Cat?></label>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</td>
|
</td>
|
||||||
@ -195,8 +196,8 @@
|
|||||||
<tr id="search_name_description">
|
<tr id="search_name_description">
|
||||||
<td class="label">Search in:</td>
|
<td class="label">Search in:</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="radio" name="type" value="c.name" <? if ($Type == 'c.name') { echo 'checked="checked" '; }?>/> Names
|
<input type="radio" name="type" value="c.name" <? if ($Type == 'c.name') { echo 'checked="checked" '; } ?>/> Names
|
||||||
<input type="radio" name="type" value="description" <? if ($Type == 'description') { echo 'checked="checked" '; }?>/> Descriptions
|
<input type="radio" name="type" value="description" <? if ($Type == 'description') { echo 'checked="checked" '; } ?>/> Descriptions
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="order_by">
|
<tr id="order_by">
|
||||||
@ -263,7 +264,7 @@
|
|||||||
<? } ?>
|
<? } ?>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<?
|
<?
|
||||||
$Pages = Format::get_pages($Page,$NumResults,COLLAGES_PER_PAGE,9);
|
$Pages = Format::get_pages($Page, $NumResults, COLLAGES_PER_PAGE, 9);
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -415,7 +415,7 @@ function compare($X, $Y) {
|
|||||||
<? $OpenGroup = true;
|
<? $OpenGroup = true;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<option id="opt<?=$GroupID.$OptionID?>" value="<?=$GroupID.$OptionID?>"<? if (in_array($GroupID.$OptionID,$ZIPList)) { echo ' disabled="disabled"'; }?>><?=$OptName?></option>
|
<option id="opt<?=$GroupID.$OptionID?>" value="<?=$GroupID.$OptionID?>"<? if (in_array($GroupID.$OptionID, $ZIPList)) { echo ' disabled="disabled"'; } ?>><?=$OptName?></option>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -585,16 +585,16 @@ function compare($X, $Y) {
|
|||||||
$Page1 = array_slice($Collage, 0, $CollageCovers);
|
$Page1 = array_slice($Collage, 0, $CollageCovers);
|
||||||
foreach ($Page1 as $Group) {
|
foreach ($Page1 as $Group) {
|
||||||
echo $Group;
|
echo $Group;
|
||||||
}?>
|
} ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<? if ($NumGroups > $CollageCovers) { ?>
|
<? if ($NumGroups > $CollageCovers) { ?>
|
||||||
<div class="linkbox pager" style="clear: left;" id="pageslinksdiv">
|
<div class="linkbox pager" style="clear: left;" id="pageslinksdiv">
|
||||||
<span id="firstpage" class="invisible"><a href="#" class="pageslink" onclick="collageShow.page(0, this); return false;"><strong><< First</strong></a> | </span>
|
<span id="firstpage" class="invisible"><a href="#" class="pageslink" onclick="collageShow.page(0, this); return false;"><strong><< First</strong></a> | </span>
|
||||||
<span id="prevpage" class="invisible"><a href="#" class="pageslink" onclick="collageShow.prevPage(); return false;"><strong>< Prev</strong></a> | </span>
|
<span id="prevpage" class="invisible"><a href="#" class="pageslink" onclick="collageShow.prevPage(); return false;"><strong>< Prev</strong></a> | </span>
|
||||||
<? for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { ?>
|
<? for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { ?>
|
||||||
<span id="pagelink<?=$i?>" class="<?=(($i > 4) ? 'hidden' : '')?><?=(($i == 0) ? 'selected' : '')?>"><a href="#" class="pageslink" onclick="collageShow.page(<?=$i?>, this); return false;"><strong><?=$CollageCovers * $i + 1?>-<?=min($NumGroups,$CollageCovers * ($i + 1))?></strong></a><?=(($i != ceil($NumGroups / $CollageCovers) - 1) ? ' | ' : '')?></span>
|
<span id="pagelink<?=$i?>" class="<?=(($i > 4) ? 'hidden' : '')?><?=(($i == 0) ? 'selected' : '')?>"><a href="#" class="pageslink" onclick="collageShow.page(<?=$i?>, this); return false;"><strong><?=$CollageCovers * $i + 1?>-<?=min($NumGroups,$CollageCovers * ($i + 1))?></strong></a><?=(($i != ceil($NumGroups / $CollageCovers) - 1) ? ' | ' : '')?></span>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<span id="nextbar" class="<?=($NumGroups / $CollageCovers > 5) ? 'hidden' : ''?>"> | </span>
|
<span id="nextbar" class="<?=($NumGroups / $CollageCovers > 5) ? 'hidden' : ''?>"> | </span>
|
||||||
<span id="nextpage"><a href="#" class="pageslink" onclick="collageShow.nextPage(); return false;"><strong>Next ></strong></a></span>
|
<span id="nextpage"><a href="#" class="pageslink" onclick="collageShow.nextPage(); return false;"><strong>Next ></strong></a></span>
|
||||||
<span id="lastpage" class="<?=(ceil($NumGroups / $CollageCovers) == 2 ? 'invisible' : '')?>"> | <a href="#" class="pageslink" onclick="collageShow.page(<?=ceil($NumGroups / $CollageCovers) - 1?>, this); return false;"><strong>Last >></strong></a></span>
|
<span id="lastpage" class="<?=(ceil($NumGroups / $CollageCovers) == 2 ? 'invisible' : '')?>"> | <a href="#" class="pageslink" onclick="collageShow.page(<?=ceil($NumGroups / $CollageCovers) - 1?>, this); return false;"><strong>Last >></strong></a></span>
|
||||||
@ -602,7 +602,7 @@ function compare($X, $Y) {
|
|||||||
<script type="text/javascript">//<![CDATA[
|
<script type="text/javascript">//<![CDATA[
|
||||||
collageShow.init(<?=json_encode($CollagePages)?>);
|
collageShow.init(<?=json_encode($CollagePages)?>);
|
||||||
//]]></script>
|
//]]></script>
|
||||||
<? }
|
<? }
|
||||||
} ?>
|
} ?>
|
||||||
<table class="torrent_table grouping cats" id="discog_table">
|
<table class="torrent_table grouping cats" id="discog_table">
|
||||||
<tr class="colhead_dark">
|
<tr class="colhead_dark">
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
$DB->query("SELECT FOUND_ROWS()");
|
$DB->query("SELECT FOUND_ROWS()");
|
||||||
list($Results) = $DB->next_record();
|
list($Results) = $DB->next_record();
|
||||||
$Pages=Format::get_pages($Page,$Results,$PerPage, 11);
|
$Pages = Format::get_pages($Page, $Results, $PerPage, 11);
|
||||||
|
|
||||||
$DB->set_query_id($Comments);
|
$DB->set_query_id($Comments);
|
||||||
$GroupIDs = $DB->collect('GroupID');
|
$GroupIDs = $DB->collect('GroupID');
|
||||||
|
@ -29,28 +29,29 @@
|
|||||||
$Header = 'Request comments made by ' . ($Self ? 'you' : Users::format_username($UserID, false, false, false));
|
$Header = 'Request comments made by ' . ($Self ? 'you' : Users::format_username($UserID, false, false, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
$Comments = $DB->query("SELECT
|
$Comments = $DB->query("
|
||||||
SQL_CALC_FOUND_ROWS
|
SELECT
|
||||||
rc.AuthorID,
|
SQL_CALC_FOUND_ROWS
|
||||||
r.ID as RequestID,
|
rc.AuthorID,
|
||||||
r.Title,
|
r.ID as RequestID,
|
||||||
rc.ID as PostID,
|
r.Title,
|
||||||
rc.Body,
|
rc.ID as PostID,
|
||||||
rc.AddedTime,
|
rc.Body,
|
||||||
rc.EditedTime,
|
rc.AddedTime,
|
||||||
rc.EditedUserID as EditorID
|
rc.EditedTime,
|
||||||
FROM requests as r
|
rc.EditedUserID as EditorID
|
||||||
JOIN requests_comments as rc ON rc.RequestID = r.ID
|
FROM requests as r
|
||||||
$ExtraJoin
|
JOIN requests_comments as rc ON rc.RequestID = r.ID
|
||||||
$Conditions
|
$ExtraJoin
|
||||||
GROUP BY rc.ID
|
$Conditions
|
||||||
ORDER BY rc.AddedTime DESC
|
GROUP BY rc.ID
|
||||||
LIMIT $Limit;");
|
ORDER BY rc.AddedTime DESC
|
||||||
|
LIMIT $Limit;");
|
||||||
$Count = $DB->record_count();
|
$Count = $DB->record_count();
|
||||||
|
|
||||||
$DB->query("SELECT FOUND_ROWS()");
|
$DB->query("SELECT FOUND_ROWS()");
|
||||||
list($Results) = $DB->next_record();
|
list($Results) = $DB->next_record();
|
||||||
$Pages=Format::get_pages($Page,$Results,$PerPage, 11);
|
$Pages = Format::get_pages($Page, $Results, $PerPage, 11);
|
||||||
|
|
||||||
View::show_header($Title,'bbcode');
|
View::show_header($Title,'bbcode');
|
||||||
$DB->set_query_id($Comments);
|
$DB->set_query_id($Comments);
|
||||||
@ -97,4 +98,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
View::show_footer();
|
View::show_footer();
|
||||||
|
@ -30,7 +30,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$Comments = $DB->query("SELECT
|
$Comments = $DB->query("
|
||||||
|
SELECT
|
||||||
SQL_CALC_FOUND_ROWS
|
SQL_CALC_FOUND_ROWS
|
||||||
tc.AuthorID,
|
tc.AuthorID,
|
||||||
t.ID,
|
t.ID,
|
||||||
@ -52,7 +53,7 @@
|
|||||||
|
|
||||||
$DB->query("SELECT FOUND_ROWS()");
|
$DB->query("SELECT FOUND_ROWS()");
|
||||||
list($Results) = $DB->next_record();
|
list($Results) = $DB->next_record();
|
||||||
$Pages=Format::get_pages($Page,$Results,$PerPage, 11);
|
$Pages = Format::get_pages($Page, $Results, $PerPage, 11);
|
||||||
|
|
||||||
$DB->set_query_id($Comments);
|
$DB->set_query_id($Comments);
|
||||||
$GroupIDs = $DB->collect('GroupID');
|
$GroupIDs = $DB->collect('GroupID');
|
||||||
|
@ -154,7 +154,7 @@
|
|||||||
<? } ?>
|
<? } ?>
|
||||||
<div class="linkbox pager">
|
<div class="linkbox pager">
|
||||||
<?
|
<?
|
||||||
$Pages = Format::get_pages($Page,$Forums[$ForumID]['NumTopics'],TOPICS_PER_PAGE,9);
|
$Pages = Format::get_pages($Page, $Forums[$ForumID]['NumTopics'], TOPICS_PER_PAGE, 9);
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -104,9 +104,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><strong>Search in:</strong></td>
|
<td><strong>Search in:</strong></td>
|
||||||
<td>
|
<td>
|
||||||
<input type="radio" name="type" id="type_title" value="title" <? if ($Type == 'title') { echo 'checked="checked" '; }?>/>
|
<input type="radio" name="type" id="type_title" value="title" <? if ($Type == 'title') { echo 'checked="checked" '; } ?>/>
|
||||||
<label for="type_title">Titles</label>
|
<label for="type_title">Titles</label>
|
||||||
<input type="radio" name="type" id="type_body" value="body" <? if ($Type == 'body') { echo 'checked="checked" '; }?>/>
|
<input type="radio" name="type" id="type_body" value="body" <? if ($Type == 'body') { echo 'checked="checked" '; } ?>/>
|
||||||
<label for="type_body">Post bodies</label>
|
<label for="type_body">Post bodies</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -205,7 +205,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
$Pages = Format::get_pages($Page,$ThreadInfo['Posts'],$PerPage,9);
|
$Pages = Format::get_pages($Page, $ThreadInfo['Posts'], $PerPage, 9);
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -236,7 +236,7 @@
|
|||||||
$Votes[$i] = 0;
|
$Votes[$i] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$Cache->cache_value('polls_'.$ThreadID, array($Question,$Answers,$Votes,$Featured,$Closed), 0);
|
$Cache->cache_value('polls_'.$ThreadID, array($Question, $Answers, $Votes, $Featured, $Closed), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($Votes)) {
|
if (!empty($Votes)) {
|
||||||
@ -290,7 +290,7 @@
|
|||||||
<? }
|
<? }
|
||||||
if ($Votes[0] > 0) {
|
if ($Votes[0] > 0) {
|
||||||
?>
|
?>
|
||||||
<li>(Blank) (<?=number_format((float)($Votes[0] / $TotalVotes * 100),2)?>%)</li>
|
<li>(Blank) (<?=number_format((float)($Votes[0] / $TotalVotes * 100), 2)?>%)</li>
|
||||||
<li class="graph">
|
<li class="graph">
|
||||||
<span class="left_poll"></span>
|
<span class="left_poll"></span>
|
||||||
<span class="center_poll" style="width: <?=round(($Votes[0] / $MaxVotes) * 750)?>px;"></span>
|
<span class="center_poll" style="width: <?=round(($Votes[0] / $MaxVotes) * 750)?>px;"></span>
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
<td class="col_avatar avatar" valign="top">
|
<td class="col_avatar avatar" valign="top">
|
||||||
<?=Users::show_avatar($Avatar, $Username, $HeavyInfo['DisableAvatars'])?>
|
<?=Users::show_avatar($Avatar, $Username, $HeavyInfo['DisableAvatars'])?>
|
||||||
</td>
|
</td>
|
||||||
<? }?>
|
<? } ?>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<input type="hidden" name="friendid" value="<?=$FriendID?>" />
|
<input type="hidden" name="friendid" value="<?=$FriendID?>" />
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
$CurURL = "inbox.php?".$CurURL."&";
|
$CurURL = "inbox.php?".$CurURL."&";
|
||||||
}
|
}
|
||||||
|
|
||||||
$Pages=Format::get_pages($Page,$NumResults,MESSAGES_PER_PAGE,9);
|
$Pages = Format::get_pages($Page, $NumResults, MESSAGES_PER_PAGE, 9);
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -167,7 +167,7 @@
|
|||||||
<? } ?>
|
<? } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<? }
|
<? }
|
||||||
}?>
|
} ?>
|
||||||
</table>
|
</table>
|
||||||
<input type="submit" name="read" value="Mark as read" />
|
<input type="submit" name="read" value="Mark as read" />
|
||||||
<input type="submit" name="unread" value="Mark as unread" />
|
<input type="submit" name="unread" value="Mark as unread" />
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="label"><strong>Search for:</strong></td>
|
<td class="label"><strong>Search for:</strong></td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="search" size="60"<?=!empty($_GET['search']) ? ' value="'.display_str($_GET['search']).'"' : '' ?> />
|
<input type="text" name="search" size="60"<?=(!empty($_GET['search']) ? ' value="'.display_str($_GET['search']).'"' : '')?> />
|
||||||
|
|
||||||
<input type="submit" value="Search log" />
|
<input type="submit" value="Search log" />
|
||||||
</td>
|
</td>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<? if ($TotalMatches > LOG_ENTRIES_PER_PAGE) { ?>
|
<? if ($TotalMatches > LOG_ENTRIES_PER_PAGE) { ?>
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<?
|
<?
|
||||||
$Pages = Format::get_pages($Page,$TotalMatches,LOG_ENTRIES_PER_PAGE,9);
|
$Pages = Format::get_pages($Page, $TotalMatches, LOG_ENTRIES_PER_PAGE, 9);
|
||||||
echo $Pages;?>
|
echo $Pages;?>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
@ -98,15 +98,15 @@
|
|||||||
$UserID = 0;
|
$UserID = 0;
|
||||||
$User = '';
|
$User = '';
|
||||||
$URL = '';
|
$URL = '';
|
||||||
if ($MessageParts[$i + 1] == "user") {
|
if ($MessageParts[$i + 1] == 'user') {
|
||||||
$i++;
|
$i++;
|
||||||
if (is_numeric($MessageParts[$i + 1])) {
|
if (is_numeric($MessageParts[$i + 1])) {
|
||||||
$UserID = $MessageParts[++$i];
|
$UserID = $MessageParts[++$i];
|
||||||
}
|
}
|
||||||
$URL = "user $UserID ".'(<a href="user.php?id='.$UserID.'">'.substr($MessageParts[++$i],1,-1)."</a>)";
|
$URL = "user $UserID ".'(<a href="user.php?id='.$UserID.'">'.substr($MessageParts[++$i], 1, -1)."</a>)";
|
||||||
} elseif (in_array($MessageParts[$i - 1], array('deleted','uploaded','edited','created','recovered'))) {
|
} elseif (in_array($MessageParts[$i - 1], array('deleted', 'uploaded', 'edited', 'created', 'recovered'))) {
|
||||||
$User = $MessageParts[++$i];
|
$User = $MessageParts[++$i];
|
||||||
if (substr($User,-1) == ':') {
|
if (substr($User, -1) == ':') {
|
||||||
$User = substr($User, 0, -1);
|
$User = substr($User, 0, -1);
|
||||||
$Colon = true;
|
$Colon = true;
|
||||||
}
|
}
|
||||||
@ -120,37 +120,37 @@
|
|||||||
$DB->set_query_id($Log);
|
$DB->set_query_id($Log);
|
||||||
$URL = $Usernames[$User] ? '<a href="user.php?id='.$UserID.'">'.$User."</a>".($Colon ? ':' : '') : $User;
|
$URL = $Usernames[$User] ? '<a href="user.php?id='.$UserID.'">'.$User."</a>".($Colon ? ':' : '') : $User;
|
||||||
}
|
}
|
||||||
$Message = $Message." by ".$URL;
|
$Message = "$Message by $URL";
|
||||||
break;
|
break;
|
||||||
case "uploaded":
|
case "uploaded":
|
||||||
if ($Color === false) {
|
if ($Color === false) {
|
||||||
$Color = 'green';
|
$Color = 'green';
|
||||||
}
|
}
|
||||||
$Message = $Message." ".$MessageParts[$i];
|
$Message = $Message.' '.$MessageParts[$i];
|
||||||
break;
|
break;
|
||||||
case "deleted":
|
case "deleted":
|
||||||
if ($Color === false || $Color === 'green') {
|
if ($Color === false || $Color === 'green') {
|
||||||
$Color = 'red';
|
$Color = 'red';
|
||||||
}
|
}
|
||||||
$Message = $Message." ".$MessageParts[$i];
|
$Message = $Message.' '.$MessageParts[$i];
|
||||||
break;
|
break;
|
||||||
case "edited":
|
case "edited":
|
||||||
if ($Color === false) {
|
if ($Color === false) {
|
||||||
$Color = 'blue';
|
$Color = 'blue';
|
||||||
}
|
}
|
||||||
$Message = $Message." ".$MessageParts[$i];
|
$Message = $Message.' '.$MessageParts[$i];
|
||||||
break;
|
break;
|
||||||
case "un-filled":
|
case "un-filled":
|
||||||
if ($Color === false) {
|
if ($Color === false) {
|
||||||
$Color = '';
|
$Color = '';
|
||||||
}
|
}
|
||||||
$Message = $Message." ".$MessageParts[$i];
|
$Message = $Message.' '.$MessageParts[$i];
|
||||||
break;
|
break;
|
||||||
case "marked":
|
case "marked":
|
||||||
if ($i == 1) {
|
if ($i == 1) {
|
||||||
$User = $MessageParts[$i - 1];
|
$User = $MessageParts[$i - 1];
|
||||||
if (!isset($Usernames[$User])) {
|
if (!isset($Usernames[$User])) {
|
||||||
$DB->query("SELECT ID FROM users_main WHERE Username = _utf8 '".$User."' COLLATE utf8_bin");
|
$DB->query("SELECT ID FROM users_main WHERE Username = _utf8 '$User' COLLATE utf8_bin");
|
||||||
list($UserID) = $DB->next_record();
|
list($UserID) = $DB->next_record();
|
||||||
$Usernames[$User] = $UserID ? $UserID : '';
|
$Usernames[$User] = $UserID ? $UserID : '';
|
||||||
$DB->set_query_id($Log);
|
$DB->set_query_id($Log);
|
||||||
@ -173,10 +173,10 @@
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$Message = $Message." ".$MessageParts[$i];
|
$Message = $Message.' '.$MessageParts[$i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$Row = ($Row == 'a') ? 'b' : 'a';
|
$Row = (($Row == 'a') ? 'b' : 'a');
|
||||||
?>
|
?>
|
||||||
<tr class="row<?=$Row?>" id="log_<?=$ID?>">
|
<tr class="row<?=$Row?>" id="log_<?=$ID?>">
|
||||||
<td class="nobr">
|
<td class="nobr">
|
||||||
|
@ -81,12 +81,12 @@
|
|||||||
$Enabled = '0';
|
$Enabled = '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
$ipcc = Tools::geoip($_SERVER['REMOTE_ADDR']);
|
$IPcc = Tools::geoip($_SERVER['REMOTE_ADDR']);
|
||||||
|
|
||||||
|
|
||||||
$DB->query("INSERT INTO users_main
|
$DB->query("INSERT INTO users_main
|
||||||
(Username,Email,PassHash,torrent_pass,IP,PermissionID,Enabled,Invites,Uploaded,ipcc) VALUES
|
(Username,Email,PassHash,torrent_pass,IP,PermissionID,Enabled,Invites,Uploaded,ipcc) VALUES
|
||||||
('".db_string(trim($_POST['username']))."','".db_string($_POST['email'])."','".db_string(Users::make_crypt_hash($_POST['password']))."','".db_string($torrent_pass)."','".db_string($_SERVER['REMOTE_ADDR'])."','".$Class."','".$Enabled."','".STARTING_INVITES."', '524288000', '$ipcc')");
|
('".db_string(trim($_POST['username']))."','".db_string($_POST['email'])."','".db_string(Users::make_crypt_hash($_POST['password']))."','".db_string($torrent_pass)."','".db_string($_SERVER['REMOTE_ADDR'])."','".$Class."','".$Enabled."','".STARTING_INVITES."', '524288000', '$IPcc')");
|
||||||
|
|
||||||
$UserID = $DB->inserted_id();
|
$UserID = $DB->inserted_id();
|
||||||
|
|
||||||
@ -122,9 +122,10 @@
|
|||||||
// Manage invite trees, delete invite
|
// Manage invite trees, delete invite
|
||||||
|
|
||||||
if ($InviterID !== NULL) {
|
if ($InviterID !== NULL) {
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
TreePosition, TreeID, TreeLevel
|
SELECT TreePosition, TreeID, TreeLevel
|
||||||
FROM invite_tree WHERE UserID='$InviterID'");
|
FROM invite_tree
|
||||||
|
WHERE UserID='$InviterID'");
|
||||||
list($InviterTreePosition, $TreeID, $TreeLevel) = $DB->next_record();
|
list($InviterTreePosition, $TreeID, $TreeLevel) = $DB->next_record();
|
||||||
|
|
||||||
// If the inviter doesn't have an invite tree
|
// If the inviter doesn't have an invite tree
|
||||||
@ -133,28 +134,33 @@
|
|||||||
$DB->query("SELECT MAX(TreeID)+1 FROM invite_tree");
|
$DB->query("SELECT MAX(TreeID)+1 FROM invite_tree");
|
||||||
list($TreeID) = $DB->next_record();
|
list($TreeID) = $DB->next_record();
|
||||||
|
|
||||||
$DB->query("INSERT INTO invite_tree
|
$DB->query("
|
||||||
(UserID, InviterID, TreePosition, TreeID, TreeLevel)
|
INSERT INTO invite_tree
|
||||||
|
(UserID, InviterID, TreePosition, TreeID, TreeLevel)
|
||||||
VALUES ('$InviterID', '0', '1', '$TreeID', '1')");
|
VALUES ('$InviterID', '0', '1', '$TreeID', '1')");
|
||||||
|
|
||||||
$TreePosition = 2;
|
$TreePosition = 2;
|
||||||
$TreeLevel = 2;
|
$TreeLevel = 2;
|
||||||
} else {
|
} else {
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
TreePosition
|
SELECT TreePosition
|
||||||
FROM invite_tree
|
FROM invite_tree
|
||||||
WHERE TreePosition>'$InviterTreePosition'
|
WHERE TreePosition>'$InviterTreePosition'
|
||||||
AND TreeLevel<='$TreeLevel'
|
AND TreeLevel<='$TreeLevel'
|
||||||
AND TreeID='$TreeID'
|
AND TreeID='$TreeID'
|
||||||
ORDER BY TreePosition
|
ORDER BY TreePosition
|
||||||
LIMIT 1");
|
LIMIT 1");
|
||||||
list($TreePosition) = $DB->next_record();
|
list($TreePosition) = $DB->next_record();
|
||||||
|
|
||||||
if ($TreePosition) {
|
if ($TreePosition) {
|
||||||
$DB->query("UPDATE invite_tree SET TreePosition=TreePosition+1 WHERE TreeID='$TreeID' AND TreePosition>='$TreePosition'");
|
$DB->query("
|
||||||
|
UPDATE invite_tree
|
||||||
|
SET TreePosition=TreePosition+1
|
||||||
|
WHERE TreeID='$TreeID'
|
||||||
|
AND TreePosition>='$TreePosition'");
|
||||||
} else {
|
} else {
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
TreePosition+1
|
SELECT TreePosition+1
|
||||||
FROM invite_tree
|
FROM invite_tree
|
||||||
WHERE TreeID='$TreeID'
|
WHERE TreeID='$TreeID'
|
||||||
ORDER BY TreePosition DESC
|
ORDER BY TreePosition DESC
|
||||||
@ -164,22 +170,22 @@
|
|||||||
$TreeLevel++;
|
$TreeLevel++;
|
||||||
|
|
||||||
// Create invite tree record
|
// Create invite tree record
|
||||||
$DB->query("INSERT INTO invite_tree
|
$DB->query("
|
||||||
(UserID, InviterID, TreePosition, TreeID, TreeLevel) VALUES
|
INSERT INTO invite_tree (UserID, InviterID, TreePosition, TreeID, TreeLevel)
|
||||||
('$UserID', '$InviterID', '$TreePosition', '$TreeID', '$TreeLevel')");
|
VALUES ('$UserID', '$InviterID', '$TreePosition', '$TreeID', '$TreeLevel')");
|
||||||
}
|
}
|
||||||
} else { // No inviter (open registration)
|
} else { // No inviter (open registration)
|
||||||
$DB->query("SELECT MAX(TreeID) FROM invite_tree");
|
$DB->query("SELECT MAX(TreeID) FROM invite_tree");
|
||||||
list($TreeID) = $DB->next_record();
|
list($TreeID) = $DB->next_record();
|
||||||
$TreeID++;
|
$TreeID++;
|
||||||
$InviterID = 0;
|
$InviterID = 0;
|
||||||
$TreePosition=1;
|
$TreePosition = 1;
|
||||||
$TreeLevel=1;
|
$TreeLevel = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
include(SERVER_ROOT.'/classes/class_templates.php');
|
include(SERVER_ROOT.'/classes/class_templates.php');
|
||||||
$TPL=NEW TEMPLATE;
|
$TPL = NEW TEMPLATE;
|
||||||
$TPL->open(SERVER_ROOT.'/templates/new_registration.tpl');
|
$TPL->open(SERVER_ROOT.'/templates/new_registration.tpl');
|
||||||
|
|
||||||
$TPL->set('Username',$_REQUEST['username']);
|
$TPL->set('Username',$_REQUEST['username']);
|
||||||
@ -189,7 +195,7 @@
|
|||||||
|
|
||||||
Misc::send_email($_REQUEST['email'],'New account confirmation at '.SITE_NAME,$TPL->get(),'noreply');
|
Misc::send_email($_REQUEST['email'],'New account confirmation at '.SITE_NAME,$TPL->get(),'noreply');
|
||||||
Tracker::update_tracker('add_user', array('id' => $UserID, 'passkey' => $torrent_pass));
|
Tracker::update_tracker('add_user', array('id' => $UserID, 'passkey' => $torrent_pass));
|
||||||
$Sent=1;
|
$Sent = 1;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
list($Type) = $DB->next_record();
|
list($Type) = $DB->next_record();
|
||||||
if (!check_perms('admin_reports')) {
|
if (!check_perms('admin_reports')) {
|
||||||
if (check_perms('site_moderate_forums')) {
|
if (check_perms('site_moderate_forums')) {
|
||||||
if (!in_array($Type, array('collages_comment', 'post', 'requests_comment', 'thread', 'torrents_comment'))) {
|
if (!in_array($Type, array('artist_comment', 'collages_comment', 'post', 'requests_comment', 'thread', 'torrents_comment'))) {
|
||||||
ajax_error();
|
ajax_error();
|
||||||
}
|
}
|
||||||
} elseif (check_perms('project_team')) {
|
} elseif (check_perms('project_team')) {
|
||||||
@ -21,11 +21,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$DB->query("UPDATE reports
|
$DB->query("
|
||||||
SET Status='Resolved',
|
UPDATE reports
|
||||||
ResolvedTime='".sqltime()."',
|
SET Status='Resolved',
|
||||||
ResolverID='".$LoggedUser['ID']."'
|
ResolvedTime='".sqltime()."',
|
||||||
WHERE ID='".db_string($ReportID)."'");
|
ResolverID='".$LoggedUser['ID']."'
|
||||||
|
WHERE ID='".db_string($ReportID)."'");
|
||||||
|
|
||||||
|
|
||||||
$Channels = array();
|
$Channels = array();
|
||||||
@ -35,7 +36,7 @@
|
|||||||
$Cache->decrement('num_update_reports');
|
$Cache->decrement('num_update_reports');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($Type, array('collages_comment', 'post', 'requests_comment', 'thread', 'torrents_comment'))) {
|
if (in_array($Type, array('artist_comment', 'collages_comment', 'post', 'requests_comment', 'thread', 'torrents_comment'))) {
|
||||||
$Channels[] = '#forumreports';
|
$Channels[] = '#forumreports';
|
||||||
$Cache->decrement('num_forum_reports');
|
$Cache->decrement('num_forum_reports');
|
||||||
}
|
}
|
||||||
@ -45,7 +46,7 @@
|
|||||||
list($Remaining) = $DB->next_record();
|
list($Remaining) = $DB->next_record();
|
||||||
|
|
||||||
foreach ($Channels as $Channel) {
|
foreach ($Channels as $Channel) {
|
||||||
send_irc("PRIVMSG $Channel :Report $ReportID resolved by ".preg_replace("/^(.{2})/", "$1·", $LoggedUser['Username'])." on site (".(int)$Remaining." remaining).");
|
send_irc("PRIVMSG $Channel :Report $ReportID resolved by ".preg_replace("/^(.{2})/", "$1·", $LoggedUser['Username']).' on site ('.(int)$Remaining.' remaining).');
|
||||||
}
|
}
|
||||||
|
|
||||||
$Cache->delete_value('num_other_reports');
|
$Cache->delete_value('num_other_reports');
|
||||||
|
@ -13,85 +13,136 @@
|
|||||||
$Short = $_POST['type'];
|
$Short = $_POST['type'];
|
||||||
$Type = $Types[$Short];
|
$Type = $Types[$Short];
|
||||||
$ID = $_POST['id'];
|
$ID = $_POST['id'];
|
||||||
if ($Short == "request_update") {
|
if ($Short == 'request_update') {
|
||||||
if (empty($_POST['year']) || !is_number($_POST['year'])) {
|
if (empty($_POST['year']) || !is_number($_POST['year'])) {
|
||||||
error('Year must be specified.');
|
error('Year must be specified.');
|
||||||
header('Location: reports.php?action=report&type=request_update&id='.$ID);
|
header('Location: reports.php?action=report&type=request_update&id='.$ID);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
$Reason = "[b]Year[/b]: ".$_POST['year'].".\n\n";
|
$Reason = '[b]Year[/b]: '.$_POST['year'].".\n\n";
|
||||||
// If the release type is somehow invalid, return "Not given"; otherwise, return the release type.
|
// If the release type is somehow invalid, return "Not given"; otherwise, return the release type.
|
||||||
$Reason .= "[b]Release Type[/b]: ".((empty($_POST['releasetype']) || !is_number($_POST['releasetype']) || $_POST['releasetype'] == 0) ? 'Not given' : $ReleaseTypes[$_POST['releasetype']]).". \n\n";
|
$Reason .= '[b]Release type[/b]: '.((empty($_POST['releasetype']) || !is_number($_POST['releasetype']) || $_POST['releasetype'] == 0) ? 'Not given' : $ReleaseTypes[$_POST['releasetype']]).". \n\n";
|
||||||
$Reason .= "[b]Additional Comments[/b]: ".$_POST['comment'];
|
$Reason .= '[b]Additional comments[/b]: '.$_POST['comment'];
|
||||||
} else {
|
} else {
|
||||||
$Reason = $_POST['reason'];
|
$Reason = $_POST['reason'];
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($Short) {
|
switch ($Short) {
|
||||||
case "request" :
|
case 'request' :
|
||||||
case "request_update" :
|
case 'request_update' :
|
||||||
$Link = 'requests.php?action=view&id='.$ID;
|
$Link = 'requests.php?action=view&id='.$ID;
|
||||||
break;
|
break;
|
||||||
case "user" :
|
case 'user' :
|
||||||
$Link = 'user.php?id='.$ID;
|
$Link = 'user.php?id='.$ID;
|
||||||
break;
|
break;
|
||||||
case "collage" :
|
case 'collage' :
|
||||||
$Link = 'collages.php?id='.$ID;
|
$Link = 'collages.php?id='.$ID;
|
||||||
break;
|
break;
|
||||||
case "thread" :
|
case 'thread' :
|
||||||
$Link = 'forums.php?action=viewthread&threadid='.$ID;
|
$Link = 'forums.php?action=viewthread&threadid='.$ID;
|
||||||
break;
|
break;
|
||||||
case "post" :
|
case 'post' :
|
||||||
$DB->query("SELECT p.ID, 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=".$ID);
|
$DB->query("
|
||||||
|
SELECT
|
||||||
|
p.ID,
|
||||||
|
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=".$ID);
|
||||||
list($PostID,$TopicID,$PostNum) = $DB->next_record();
|
list($PostID,$TopicID,$PostNum) = $DB->next_record();
|
||||||
$Link = "forums.php?action=viewthread&threadid=".$TopicID."&post=".$PostNum."#post".$PostID;
|
$Link = 'forums.php?action=viewthread&threadid='.$TopicID.'&post='.$PostNum.'#post'.$PostID;
|
||||||
break;
|
break;
|
||||||
case "requests_comment" :
|
case 'requests_comment' :
|
||||||
$DB->query("SELECT rc.RequestID, rc.Body, (SELECT COUNT(ID) FROM requests_comments WHERE ID <= ".$ID." AND requests_comments.RequestID = rc.RequestID) AS CommentNum FROM requests_comments AS rc WHERE ID=".$ID);
|
$DB->query("
|
||||||
|
SELECT
|
||||||
|
rc.RequestID,
|
||||||
|
rc.Body,
|
||||||
|
( SELECT COUNT(ID)
|
||||||
|
FROM requests_comments
|
||||||
|
WHERE ID <= $ID
|
||||||
|
AND requests_comments.RequestID = rc.RequestID
|
||||||
|
) AS CommentNum
|
||||||
|
FROM requests_comments AS rc
|
||||||
|
WHERE ID=".$ID);
|
||||||
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);
|
||||||
$Link = "requests.php?action=view&id=".$RequestID."&page=".$PageNum."#post".$ID."";
|
$Link = 'requests.php?action=view&id='.$RequestID.'&page='.$PageNum.'#post'.$ID;
|
||||||
break;
|
break;
|
||||||
case "torrents_comment" :
|
case 'torrents_comment' :
|
||||||
$DB->query("SELECT tc.GroupID, tc.Body, (SELECT COUNT(ID) FROM torrents_comments WHERE ID <= ".$ID." AND torrents_comments.GroupID = tc.GroupID) AS CommentNum FROM torrents_comments AS tc WHERE ID=".$ID);
|
$DB->query("
|
||||||
|
SELECT
|
||||||
|
tc.GroupID,
|
||||||
|
tc.Body,
|
||||||
|
( SELECT COUNT(ID)
|
||||||
|
FROM torrents_comments
|
||||||
|
WHERE ID <= $ID
|
||||||
|
AND torrents_comments.GroupID = tc.GroupID
|
||||||
|
) AS CommentNum
|
||||||
|
FROM torrents_comments AS tc
|
||||||
|
WHERE ID=".$ID);
|
||||||
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);
|
||||||
$Link = "torrents.php?id=".$GroupID."&page=".$PageNum."#post".$ID;
|
$Link = 'torrents.php?id='.$GroupID.'&page='.$PageNum.'#post'.$ID;
|
||||||
break;
|
break;
|
||||||
case "artist_comment" :
|
case 'artist_comment' :
|
||||||
$DB->query("SELECT ac.ArtistID, ac.Body, (SELECT COUNT(ID) FROM artist_comments WHERE ID <= ".$ID." AND artist_comments.ArtistID = ac.ArtistID) AS CommentNum FROM artist_comments AS ac WHERE ID=".$ID);
|
$DB->query("
|
||||||
|
SELECT
|
||||||
|
ac.ArtistID,
|
||||||
|
ac.Body,
|
||||||
|
( SELECT COUNT(ID)
|
||||||
|
FROM artist_comments
|
||||||
|
WHERE ID <= $ID
|
||||||
|
AND artist_comments.ArtistID = ac.ArtistID
|
||||||
|
) AS CommentNum
|
||||||
|
FROM artist_comments AS ac
|
||||||
|
WHERE ID=".$ID);
|
||||||
list($ArtistID, $Body, $PostNum) = $DB->next_record();
|
list($ArtistID, $Body, $PostNum) = $DB->next_record();
|
||||||
$PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE);
|
$PageNum = ceil($PostNum / TORRENT_COMMENTS_PER_PAGE);
|
||||||
$Link = "artist.php?id=".$ArtistID."&page=".$PageNum."#post".$ID;
|
$Link = 'artist.php?id='.$ArtistID.'&page='.$PageNum.'#post'.$ID;
|
||||||
break;
|
break;
|
||||||
case "collages_comment" :
|
case 'collages_comment' :
|
||||||
$DB->query("SELECT cc.CollageID, cc.Body, (SELECT COUNT(ID) FROM collages_comments WHERE ID <= ".$ID." AND collages_comments.CollageID = cc.CollageID) AS CommentNum FROM collages_comments AS cc WHERE ID=".$ID);
|
$DB->query("
|
||||||
|
SELECT
|
||||||
|
cc.CollageID,
|
||||||
|
cc.Body,
|
||||||
|
( SELECT COUNT(ID)
|
||||||
|
FROM collages_comments
|
||||||
|
WHERE ID <= $ID
|
||||||
|
AND collages_comments.CollageID = cc.CollageID
|
||||||
|
) AS CommentNum
|
||||||
|
FROM collages_comments AS cc
|
||||||
|
WHERE ID=".$ID);
|
||||||
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);
|
||||||
$Link = "collage.php?action=comments&collageid=".$CollageID."&page=".$PageNum."#post".$ID;
|
$Link = 'collage.php?action=comments&collageid='.$CollageID.'&page='.$PageNum.'#post'.$ID;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$DB->query("INSERT INTO reports
|
$DB->query('
|
||||||
(UserID, ThingID, Type, ReportedTime, Reason)
|
INSERT INTO reports
|
||||||
VALUES
|
(UserID, ThingID, Type, ReportedTime, Reason)
|
||||||
(".db_string($LoggedUser['ID']).", ".$ID." , '".$Short."', '".sqltime()."', '".db_string($Reason)."')");
|
VALUES
|
||||||
|
('.db_string($LoggedUser['ID']).", $ID , '$Short', '".sqltime()."', '".db_string($Reason)."')");
|
||||||
$ReportID = $DB->inserted_id();
|
$ReportID = $DB->inserted_id();
|
||||||
|
|
||||||
$Channels = array();
|
$Channels = array();
|
||||||
|
|
||||||
if ($Short == "request_update") {
|
if ($Short == 'request_update') {
|
||||||
$Channels[] = "#requestedits";
|
$Channels[] = '#requestedits';
|
||||||
$Cache->increment('num_update_reports');
|
$Cache->increment('num_update_reports');
|
||||||
}
|
}
|
||||||
if (in_array($Short, array('collages_comment', 'post', 'requests_comment', 'thread', 'torrents_comment'))) {
|
if (in_array($Short, array('collages_comment', 'post', 'requests_comment', 'thread', 'torrents_comment'))) {
|
||||||
$Channels[] = "#forumreports";
|
$Channels[] = '#forumreports';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($Channels as $Channel) {
|
foreach ($Channels as $Channel) {
|
||||||
send_irc("PRIVMSG ".$Channel." :".$ReportID." - ".$LoggedUser['Username']." just reported a ".$Short.": https://".SSL_SITE_URL."/".$Link." : ".strtr($Reason, "\n", " "));
|
send_irc("PRIVMSG $Channel :$ReportID - ".$LoggedUser['Username']." just reported a $Short: https://".SSL_SITE_URL."/$Link : ".strtr($Reason, "\n", ' '));
|
||||||
}
|
}
|
||||||
|
|
||||||
$Cache->delete_value('num_other_reports');
|
$Cache->delete_value('num_other_reports');
|
||||||
|
@ -410,7 +410,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? }?>
|
<? } ?>
|
||||||
<tr id="bounty">
|
<tr id="bounty">
|
||||||
<td class="label">Bounty</td>
|
<td class="label">Bounty</td>
|
||||||
<td id="formatted_bounty"><?=Format::get_size($RequestVotes['TotalBounty'])?></td>
|
<td id="formatted_bounty"><?=Format::get_size($RequestVotes['TotalBounty'])?></td>
|
||||||
@ -473,7 +473,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Get the cache catalogue
|
//Get the cache catalogue
|
||||||
$CatalogueID = floor((TORRENT_COMMENTS_PER_PAGE*$Page-TORRENT_COMMENTS_PER_PAGE)/THREAD_CATALOGUE);
|
$CatalogueID = floor((TORRENT_COMMENTS_PER_PAGE * $Page - TORRENT_COMMENTS_PER_PAGE) / THREAD_CATALOGUE);
|
||||||
|
|
||||||
//---------- Get some data to start processing
|
//---------- Get some data to start processing
|
||||||
|
|
||||||
@ -481,11 +481,11 @@
|
|||||||
$Catalogue = Requests::get_comment_catalogue($RequestID, $CatalogueID);
|
$Catalogue = Requests::get_comment_catalogue($RequestID, $CatalogueID);
|
||||||
|
|
||||||
//This is a hybrid to reduce the catalogue down to the page elements: We use the page limit % catalogue
|
//This is a hybrid to reduce the catalogue down to the page elements: We use the page limit % catalogue
|
||||||
$Thread = array_slice($Catalogue,((TORRENT_COMMENTS_PER_PAGE*$Page-TORRENT_COMMENTS_PER_PAGE)%THREAD_CATALOGUE),TORRENT_COMMENTS_PER_PAGE,true);
|
$Thread = array_slice($Catalogue, ((TORRENT_COMMENTS_PER_PAGE * $Page - TORRENT_COMMENTS_PER_PAGE) % THREAD_CATALOGUE), TORRENT_COMMENTS_PER_PAGE, true);
|
||||||
?>
|
?>
|
||||||
<div class="linkbox"><a name="comments"></a>
|
<div class="linkbox"><a name="comments"></a>
|
||||||
<?
|
<?
|
||||||
$Pages=Format::get_pages($Page,$Results,TORRENT_COMMENTS_PER_PAGE,9,'#comments');
|
$Pages = Format::get_pages($Page, $Results, TORRENT_COMMENTS_PER_PAGE, 9, '#comments');
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -515,7 +515,7 @@
|
|||||||
- <a href="#post<?=$PostID?>" onclick="Delete('<?=$PostID?>');" class="brackets">Delete</a>
|
- <a href="#post<?=$PostID?>" onclick="Delete('<?=$PostID?>');" class="brackets">Delete</a>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</div>
|
</div>
|
||||||
<div id="bar<?=$PostID?>" style="float:right;">
|
<div id="bar<?=$PostID?>" style="float: right;">
|
||||||
<a href="reports.php?action=report&type=requests_comment&id=<?=$PostID?>" class="brackets">Report</a>
|
<a href="reports.php?action=report&type=requests_comment&id=<?=$PostID?>" class="brackets">Report</a>
|
||||||
<? if (check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
<? if (check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
||||||
$AuthorInfo = Users::user_info($AuthorID);
|
$AuthorInfo = Users::user_info($AuthorID);
|
||||||
|
@ -327,7 +327,7 @@ foreach ($Categories as $CatKey => $CatName) {
|
|||||||
<?=(((!$Submitted) || !empty($ReleaseArray) && in_array($Key, $ReleaseArray)) ? ' checked="checked" ' : '')?>
|
<?=(((!$Submitted) || !empty($ReleaseArray) && in_array($Key, $ReleaseArray)) ? ' checked="checked" ' : '')?>
|
||||||
/> <?=$Val?>
|
/> <?=$Val?>
|
||||||
<? $i++;
|
<? $i++;
|
||||||
}?>
|
} ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="format_list">
|
<tr id="format_list">
|
||||||
@ -339,7 +339,7 @@ foreach ($Categories as $CatKey => $CatName) {
|
|||||||
<input type="checkbox" name="formats[]" value="<?=$Key?>"
|
<input type="checkbox" name="formats[]" value="<?=$Key?>"
|
||||||
<?=(((!$Submitted) || !empty($FormatArray) && in_array($Key, $FormatArray)) ? ' checked="checked" ' : '')?>
|
<?=(((!$Submitted) || !empty($FormatArray) && in_array($Key, $FormatArray)) ? ' checked="checked" ' : '')?>
|
||||||
/> <?=$Val?>
|
/> <?=$Val?>
|
||||||
<? }?>
|
<? } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="bitrate_list">
|
<tr id="bitrate_list">
|
||||||
@ -351,7 +351,7 @@ foreach ($Categories as $CatKey => $CatName) {
|
|||||||
<input type="checkbox" name="bitrates[]" value="<?=$Key?>"
|
<input type="checkbox" name="bitrates[]" value="<?=$Key?>"
|
||||||
<?=(((!$Submitted) || !empty($BitrateArray) && in_array($Key, $BitrateArray)) ? ' checked="checked" ' : '')?>
|
<?=(((!$Submitted) || !empty($BitrateArray) && in_array($Key, $BitrateArray)) ? ' checked="checked" ' : '')?>
|
||||||
/> <?=$Val?>
|
/> <?=$Val?>
|
||||||
<? }?>
|
<? } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="media_list">
|
<tr id="media_list">
|
||||||
@ -363,7 +363,7 @@ foreach ($Categories as $CatKey => $CatName) {
|
|||||||
<input type="checkbox" name="media[]" value="<?=$Key?>"
|
<input type="checkbox" name="media[]" value="<?=$Key?>"
|
||||||
<?=(((!$Submitted) || !empty($MediaArray) && in_array($Key, $MediaArray)) ? ' checked="checked" ' : '')?>
|
<?=(((!$Submitted) || !empty($MediaArray) && in_array($Key, $MediaArray)) ? ' checked="checked" ' : '')?>
|
||||||
/> <?=$Val?>
|
/> <?=$Val?>
|
||||||
<? }?>
|
<? } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
} else {
|
} else {
|
||||||
$CurURL = 'staffpm.php?'.$CurURL.'&';
|
$CurURL = 'staffpm.php?'.$CurURL.'&';
|
||||||
}
|
}
|
||||||
$Pages=Format::get_pages($Page,$NumResults,MESSAGES_PER_PAGE,9);
|
$Pages = Format::get_pages($Page, $NumResults, MESSAGES_PER_PAGE, 9);
|
||||||
|
|
||||||
$Row = 'a';
|
$Row = 'a';
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
?>
|
?>
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<?
|
<?
|
||||||
$Pages = Format::get_pages($Page,$Results,USERS_PER_PAGE,11) ;
|
$Pages = Format::get_pages($Page, $Results, USERS_PER_PAGE, 11) ;
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -123,7 +123,7 @@
|
|||||||
<tr><td colspan="2"><strong>CAS/Update (Success)</strong></td></tr>
|
<tr><td colspan="2"><strong>CAS/Update (Success)</strong></td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td<? if ($MemStats['cas_hits'] > 0 && $MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses']) < 0.7) { echo ' class="invalid" title="More than 30% of the issued CAS commands were unnecessarily wasting time and resources." '; } elseif ($MemStats['cas_hits'] == 0) { echo ' class="notice" title="Disable CAS with the -C parameter and save resources since it is not used." '; } ?>>Cache:</td>
|
<td<? if ($MemStats['cas_hits'] > 0 && $MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses']) < 0.7) { echo ' class="invalid" title="More than 30% of the issued CAS commands were unnecessarily wasting time and resources." '; } elseif ($MemStats['cas_hits'] == 0) { echo ' class="notice" title="Disable CAS with the -C parameter and save resources since it is not used." '; } ?>>Cache:</td>
|
||||||
<td><?=number_format($MemStats['cas_hits'])?> <span style="float: right;">(<? if ($MemStats['cas_hits'] > 0) { echo number_format(($MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses'])) * 100, 3); } else { echo '0.000'; }?>%)</span></td>
|
<td><?=number_format($MemStats['cas_hits'])?> <span style="float: right;">(<? if ($MemStats['cas_hits'] > 0) { echo number_format(($MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses'])) * 100, 3); } else { echo '0.000'; } ?>%)</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Database:</td>
|
<td>Database:</td>
|
||||||
|
@ -6,28 +6,34 @@
|
|||||||
define('USERS_PER_PAGE', 50);
|
define('USERS_PER_PAGE', 50);
|
||||||
list($Page,$Limit) = Format::page_limit(USERS_PER_PAGE);
|
list($Page,$Limit) = Format::page_limit(USERS_PER_PAGE);
|
||||||
|
|
||||||
$RS = $DB->query("SELECT
|
$RS = $DB->query("
|
||||||
SQL_CALC_FOUND_ROWS
|
SELECT
|
||||||
m.ID,
|
SQL_CALC_FOUND_ROWS
|
||||||
m.Username,
|
m.ID,
|
||||||
m.Uploaded,
|
m.Username,
|
||||||
m.Downloaded,
|
m.Uploaded,
|
||||||
m.PermissionID,
|
m.Downloaded,
|
||||||
m.Enabled,
|
m.PermissionID,
|
||||||
i.Donor,
|
m.Enabled,
|
||||||
i.Warned,
|
i.Donor,
|
||||||
i.JoinDate,
|
i.Warned,
|
||||||
i.RatioWatchEnds,
|
i.JoinDate,
|
||||||
i.RatioWatchDownload,
|
i.RatioWatchEnds,
|
||||||
m.RequiredRatio
|
i.RatioWatchDownload,
|
||||||
|
m.RequiredRatio
|
||||||
FROM users_main AS m
|
FROM users_main AS m
|
||||||
LEFT JOIN users_info AS i ON i.UserID=m.ID
|
LEFT JOIN users_info AS i ON i.UserID=m.ID
|
||||||
WHERE i.RatioWatchEnds != '0000-00-00 00:00:00'
|
WHERE i.RatioWatchEnds != '0000-00-00 00:00:00'
|
||||||
AND m.Enabled = '1'
|
AND m.Enabled = '1'
|
||||||
ORDER BY i.RatioWatchEnds ASC LIMIT $Limit");
|
ORDER BY i.RatioWatchEnds ASC
|
||||||
|
LIMIT $Limit");
|
||||||
$DB->query("SELECT FOUND_ROWS()");
|
$DB->query("SELECT FOUND_ROWS()");
|
||||||
list($Results) = $DB->next_record();
|
list($Results) = $DB->next_record();
|
||||||
$DB->query("SELECT COUNT(UserID) FROM users_info WHERE BanDate != '0000-00-00 00:00:00' AND BanReason = '2'");
|
$DB->query("
|
||||||
|
SELECT COUNT(UserID)
|
||||||
|
FROM users_info
|
||||||
|
WHERE BanDate != '0000-00-00 00:00:00'
|
||||||
|
AND BanReason = '2'");
|
||||||
list($TotalDisabled) = $DB->next_record();
|
list($TotalDisabled) = $DB->next_record();
|
||||||
$DB->set_query_id($RS);
|
$DB->set_query_id($RS);
|
||||||
|
|
||||||
@ -38,7 +44,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<?
|
<?
|
||||||
$Pages=Format::get_pages($Page,$Results,USERS_PER_PAGE,11) ;
|
$Pages = Format::get_pages($Page, $Results, USERS_PER_PAGE, 11);
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -56,7 +62,7 @@
|
|||||||
<td>Lifespan</td>
|
<td>Lifespan</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
while (list($UserID, $Username, $Uploaded, $Downloaded, $PermissionID, $Enabled, $Donor, $Warned, $Joined, $RatioWatchEnds, $RatioWatchDownload, $RequiredRatio)=$DB->next_record()) {
|
while (list($UserID, $Username, $Uploaded, $Downloaded, $PermissionID, $Enabled, $Donor, $Warned, $Joined, $RatioWatchEnds, $RatioWatchDownload, $RequiredRatio) = $DB->next_record()) {
|
||||||
$Row = ($Row == 'b') ? 'a' : 'b';
|
$Row = ($Row == 'b') ? 'a' : 'b';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -66,7 +72,7 @@
|
|||||||
<td><?=Format::get_size($Downloaded)?></td>
|
<td><?=Format::get_size($Downloaded)?></td>
|
||||||
<td><?=Format::get_ratio_html($Uploaded, $Downloaded)?></td>
|
<td><?=Format::get_ratio_html($Uploaded, $Downloaded)?></td>
|
||||||
<td><?=number_format($RequiredRatio, 2)?></td>
|
<td><?=number_format($RequiredRatio, 2)?></td>
|
||||||
<td><? if (($Downloaded * $RequiredRatio) > $Uploaded) { echo Format::get_size(($Downloaded * $RequiredRatio) - $Uploaded);}?></td>
|
<td><? if (($Downloaded * $RequiredRatio) > $Uploaded) { echo Format::get_size(($Downloaded * $RequiredRatio) - $Uploaded);} ?></td>
|
||||||
<td><?=Format::get_size($Downloaded - $RatioWatchDownload)?></td>
|
<td><?=Format::get_size($Downloaded - $RatioWatchDownload)?></td>
|
||||||
<td><?=time_diff($Joined,2)?></td>
|
<td><?=time_diff($Joined,2)?></td>
|
||||||
<td><?=time_diff($RatioWatchEnds)?></td>
|
<td><?=time_diff($RatioWatchEnds)?></td>
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
<? } ?>
|
<? } ?>
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<?
|
<?
|
||||||
$Pages = Format::get_pages($Page,$Results,DAYS_PER_PAGE,11) ;
|
$Pages = Format::get_pages($Page, $Results, DAYS_PER_PAGE, 11) ;
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,15 +6,17 @@
|
|||||||
list ($Page, $Limit) = Format::page_limit(EMAILS_PER_PAGE);
|
list ($Page, $Limit) = Format::page_limit(EMAILS_PER_PAGE);
|
||||||
|
|
||||||
View::show_header('Manage email blacklist');
|
View::show_header('Manage email blacklist');
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
SQL_CALC_FOUND_ROWS
|
SELECT
|
||||||
eb.ID,
|
SQL_CALC_FOUND_ROWS
|
||||||
eb.UserID,
|
eb.ID,
|
||||||
eb.Time,
|
eb.UserID,
|
||||||
eb.Email,
|
eb.Time,
|
||||||
eb.Comment
|
eb.Email,
|
||||||
|
eb.Comment
|
||||||
FROM email_blacklist AS eb
|
FROM email_blacklist AS eb
|
||||||
ORDER BY eb.Time DESC LIMIT $Limit");
|
ORDER BY eb.Time DESC
|
||||||
|
LIMIT $Limit");
|
||||||
$Results = $DB->to_array(false, MYSQLI_ASSOC, false);
|
$Results = $DB->to_array(false, MYSQLI_ASSOC, false);
|
||||||
$DB->query("SELECT FOUND_ROWS()");
|
$DB->query("SELECT FOUND_ROWS()");
|
||||||
list ($NumResults) = $DB->next_record();
|
list ($NumResults) = $DB->next_record();
|
||||||
@ -48,7 +50,7 @@
|
|||||||
<td><input type="submit" value="Create" /></td>
|
<td><input type="submit" value="Create" /></td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
|
|
||||||
foreach ($Results as $Result) {
|
foreach ($Results as $Result) {
|
||||||
?>
|
?>
|
||||||
@ -68,7 +70,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
<? }?>
|
<? } ?>
|
||||||
</table>
|
</table>
|
||||||
<div class="linkbox pager">
|
<div class="linkbox pager">
|
||||||
<br />
|
<br />
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
?>
|
?>
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<?
|
<?
|
||||||
$Pages=Format::get_pages($Page,$Results,USERS_PER_PAGE, 11) ;
|
$Pages = Format::get_pages($Page, $Results, USERS_PER_PAGE, 11);
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -646,7 +646,7 @@ function header_link($SortKey,$DefaultWay = 'DESC') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// List of pages
|
// List of pages
|
||||||
$Pages = Format::get_pages($Page,$TorrentCount,TORRENTS_PER_PAGE);
|
$Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
||||||
|
|
||||||
// Gets tacked onto torrent download URLs
|
// Gets tacked onto torrent download URLs
|
||||||
$DownloadString = '&authkey='.$LoggedUser['AuthKey'].'&torrent_pass='.$LoggedUser['torrent_pass'];
|
$DownloadString = '&authkey='.$LoggedUser['AuthKey'].'&torrent_pass='.$LoggedUser['torrent_pass'];
|
||||||
|
@ -283,7 +283,7 @@ function compare($X, $Y) {
|
|||||||
<?
|
<?
|
||||||
if (check_perms('torrents_add_artist')) { ?>
|
if (check_perms('torrents_add_artist')) { ?>
|
||||||
<div class="box box_addartists">
|
<div class="box box_addartists">
|
||||||
<div class="head"><strong>Add artist</strong><span style="float:right;" class="additional_add_artist"><a onclick="AddArtistField(); return false;" href="#" class="brackets">+</a></span></div>
|
<div class="head"><strong>Add artist</strong><span style="float: right;" class="additional_add_artist"><a onclick="AddArtistField(); return false;" href="#" class="brackets">+</a></span></div>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<form class="add_form" name="artists" action="torrents.php" method="post">
|
<form class="add_form" name="artists" action="torrents.php" method="post">
|
||||||
<div id="AddArtists">
|
<div id="AddArtists">
|
||||||
@ -320,8 +320,8 @@ function compare($X, $Y) {
|
|||||||
foreach ($Tags as $TagKey=>$Tag) {
|
foreach ($Tags as $TagKey=>$Tag) {
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="torrents.php?taglist=<?=$Tag['name']?>" style="float:left; display:block;"><?=display_str($Tag['name'])?></a>
|
<a href="torrents.php?taglist=<?=$Tag['name']?>" style="float: left; display: block;"><?=display_str($Tag['name'])?></a>
|
||||||
<div style="float:right; display:block; letter-spacing: -1px;" class="edit_tags_votes">
|
<div style="float: right; display: block; letter-spacing: -1px;" class="edit_tags_votes">
|
||||||
<a href="torrents.php?action=vote_tag&way=down&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" style="font-family: monospace;" title="Vote this tag down" class="brackets vote_tag_down">−</a>
|
<a href="torrents.php?action=vote_tag&way=down&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" style="font-family: monospace;" title="Vote this tag down" class="brackets vote_tag_down">−</a>
|
||||||
<?=$Tag['score']?>
|
<?=$Tag['score']?>
|
||||||
<a href="torrents.php?action=vote_tag&way=up&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" style="font-family: monospace;" title="Vote this tag up" class="brackets vote_tag_up">+</a>
|
<a href="torrents.php?action=vote_tag&way=up&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" style="font-family: monospace;" title="Vote this tag up" class="brackets vote_tag_up">+</a>
|
||||||
@ -611,7 +611,7 @@ function filelist($Str) {
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
?>
|
?>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="head"><span style="font-weight: bold;">Requests (<?=number_format(count($Requests))?>)</span> <a href="#" style="float:right;" onclick="$('#requests').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets">Show</a></div>
|
<div class="head"><span style="font-weight: bold;">Requests (<?=number_format(count($Requests))?>)</span> <a href="#" style="float: right;" onclick="$('#requests').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets">Show</a></div>
|
||||||
<table id="requests" class="request_table hidden">
|
<table id="requests" class="request_table hidden">
|
||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
<td>Format / Bitrate / Media</td>
|
<td>Format / Bitrate / Media</td>
|
||||||
@ -621,20 +621,20 @@ function filelist($Str) {
|
|||||||
<? foreach ($Requests as $Request) {
|
<? foreach ($Requests as $Request) {
|
||||||
$RequestVotes = Requests::get_votes_array($Request['ID']);
|
$RequestVotes = Requests::get_votes_array($Request['ID']);
|
||||||
|
|
||||||
if ($Request['BitrateList'] != "") {
|
if ($Request['BitrateList'] != '') {
|
||||||
$BitrateString = implode(", ", explode("|", $Request['BitrateList']));
|
$BitrateString = implode(', ', explode('|', $Request['BitrateList']));
|
||||||
$FormatString = implode(", ", explode("|", $Request['FormatList']));
|
$FormatString = implode(', ', explode('|', $Request['FormatList']));
|
||||||
$MediaString = implode(", ", explode("|", $Request['MediaList']));
|
$MediaString = implode(', ', explode('|', $Request['MediaList']));
|
||||||
if ($Request['LogCue']) {
|
if ($Request['LogCue']) {
|
||||||
$FormatString .= ' - '.$Request['LogCue'];
|
$FormatString .= ' - '.$Request['LogCue'];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$BitrateString = "Unknown";
|
$BitrateString = 'Unknown';
|
||||||
$FormatString = "Unknown";
|
$FormatString = 'Unknown';
|
||||||
$MediaString = "Unknown";
|
$MediaString = 'Unknown';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr class="requestrows <?=(++$i%2?'rowa':'rowb')?>">
|
<tr class="requestrows <?=(++$i % 2 ? 'rowa' : 'rowb')?>">
|
||||||
<td><a href="requests.php?action=view&id=<?=$Request['ID']?>"><?=$FormatString?> / <?=$BitrateString?> / <?=$MediaString?></a></td>
|
<td><a href="requests.php?action=view&id=<?=$Request['ID']?>"><?=$FormatString?> / <?=$BitrateString?> / <?=$MediaString?></a></td>
|
||||||
<td>
|
<td>
|
||||||
<span id="vote_count_<?=$Request['ID']?>"><?=count($RequestVotes['Voters'])?></span>
|
<span id="vote_count_<?=$Request['ID']?>"><?=count($RequestVotes['Voters'])?></span>
|
||||||
@ -651,25 +651,31 @@ function filelist($Str) {
|
|||||||
}
|
}
|
||||||
$Collages = $Cache->get_value('torrent_collages_'.$GroupID);
|
$Collages = $Cache->get_value('torrent_collages_'.$GroupID);
|
||||||
if (!is_array($Collages)) {
|
if (!is_array($Collages)) {
|
||||||
$DB->query("SELECT c.Name, c.NumTorrents, c.ID FROM collages AS c JOIN collages_torrents AS ct ON ct.CollageID=c.ID WHERE ct.GroupID='$GroupID' AND Deleted='0' AND CategoryID!='0'");
|
$DB->query("
|
||||||
|
SELECT c.Name, c.NumTorrents, c.ID
|
||||||
|
FROM collages AS c
|
||||||
|
JOIN collages_torrents AS ct ON ct.CollageID=c.ID
|
||||||
|
WHERE ct.GroupID='$GroupID'
|
||||||
|
AND Deleted='0'
|
||||||
|
AND CategoryID!='0'");
|
||||||
$Collages = $DB->to_array();
|
$Collages = $DB->to_array();
|
||||||
$Cache->cache_value('torrent_collages_'.$GroupID, $Collages, 3600*6);
|
$Cache->cache_value('torrent_collages_'.$GroupID, $Collages, 3600 * 6);
|
||||||
}
|
}
|
||||||
if (count($Collages) > 0) {
|
if (count($Collages) > 0) {
|
||||||
if (count($Collages) > MAX_COLLAGES) {
|
if (count($Collages) > MAX_COLLAGES) {
|
||||||
// Pick some at random
|
// Pick some at random
|
||||||
$Range = range(0,count($Collages) - 1);
|
$Range = range(0, count($Collages) - 1);
|
||||||
shuffle($Range);
|
shuffle($Range);
|
||||||
$Indices = array_slice($Range, 0, MAX_COLLAGES);
|
$Indices = array_slice($Range, 0, MAX_COLLAGES);
|
||||||
$SeeAll = ' <a href="#" onclick="$(\'.collage_rows\').toggle(); return false;">(See all)</a>';
|
$SeeAll = ' <a href="#" onclick="$(\'.collage_rows\').toggle(); return false;">(See all)</a>';
|
||||||
} else {
|
} else {
|
||||||
$Indices = range(0, count($Collages)-1);
|
$Indices = range(0, count($Collages) - 1);
|
||||||
$SeeAll = '';
|
$SeeAll = '';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<table class="collage_table" id="collages">
|
<table class="collage_table" id="collages">
|
||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
<td width="85%"><a href="#">↑</a> This album is in <?=number_format(count($Collages))?> collage<?=((count($Collages)>1) ? 's' : '')?><?=$SeeAll?></td>
|
<td width="85%"><a href="#">↑</a> This album is in <?=number_format(count($Collages))?> collage<?=((count($Collages) > 1) ? 's' : '')?><?=$SeeAll?></td>
|
||||||
<td># torrents</td>
|
<td># torrents</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? foreach ($Indices as $i) {
|
<? foreach ($Indices as $i) {
|
||||||
@ -695,9 +701,15 @@ function filelist($Str) {
|
|||||||
|
|
||||||
$PersonalCollages = $Cache->get_value('torrent_collages_personal_'.$GroupID);
|
$PersonalCollages = $Cache->get_value('torrent_collages_personal_'.$GroupID);
|
||||||
if (!is_array($PersonalCollages)) {
|
if (!is_array($PersonalCollages)) {
|
||||||
$DB->query("SELECT c.Name, c.NumTorrents, c.ID FROM collages AS c JOIN collages_torrents AS ct ON ct.CollageID=c.ID WHERE ct.GroupID='$GroupID' AND Deleted='0' AND CategoryID='0'");
|
$DB->query("
|
||||||
|
SELECT c.Name, c.NumTorrents, c.ID
|
||||||
|
FROM collages AS c
|
||||||
|
JOIN collages_torrents AS ct ON ct.CollageID=c.ID
|
||||||
|
WHERE ct.GroupID='$GroupID'
|
||||||
|
AND Deleted='0'
|
||||||
|
AND CategoryID='0'");
|
||||||
$PersonalCollages = $DB->to_array(false, MYSQLI_NUM);
|
$PersonalCollages = $DB->to_array(false, MYSQLI_NUM);
|
||||||
$Cache->cache_value('torrent_collages_personal_'.$GroupID, $PersonalCollages, 3600*6);
|
$Cache->cache_value('torrent_collages_personal_'.$GroupID, $PersonalCollages, 3600 * 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($PersonalCollages) > 0) {
|
if (count($PersonalCollages) > 0) {
|
||||||
@ -708,13 +720,13 @@ function filelist($Str) {
|
|||||||
$Indices = array_slice($Range, 0, MAX_PERS_COLLAGES);
|
$Indices = array_slice($Range, 0, MAX_PERS_COLLAGES);
|
||||||
$SeeAll = ' <a href="#" onclick="$(\'.personal_rows\').toggle(); return false;">(See all)</a>';
|
$SeeAll = ' <a href="#" onclick="$(\'.personal_rows\').toggle(); return false;">(See all)</a>';
|
||||||
} else {
|
} else {
|
||||||
$Indices = range(0, count($PersonalCollages)-1);
|
$Indices = range(0, count($PersonalCollages) - 1);
|
||||||
$SeeAll = '';
|
$SeeAll = '';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<table class="collage_table" id="personal_collages">
|
<table class="collage_table" id="personal_collages">
|
||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
<td width="85%"><a href="#">↑</a> This album is in <?=number_format(count($PersonalCollages))?> personal collage<?=((count($PersonalCollages)>1) ? 's' : '')?><?=$SeeAll?></td>
|
<td width="85%"><a href="#">↑</a> This album is in <?=number_format(count($PersonalCollages))?> personal collage<?=((count($PersonalCollages) > 1) ? 's' : '')?><?=$SeeAll?></td>
|
||||||
<td># torrents</td>
|
<td># torrents</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? foreach ($Indices as $i) {
|
<? foreach ($Indices as $i) {
|
||||||
@ -742,7 +754,7 @@ function filelist($Str) {
|
|||||||
?>
|
?>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="head"><a href="#">↑</a> <strong><?=(!empty($ReleaseType) ? $ReleaseTypes[$ReleaseType].' info' : 'Info' )?></strong></div>
|
<div class="head"><a href="#">↑</a> <strong><?=(!empty($ReleaseType) ? $ReleaseTypes[$ReleaseType].' info' : 'Info' )?></strong></div>
|
||||||
<div class="body"><? if ($WikiBody!="") { echo $WikiBody; } else { echo "There is no information on this torrent."; } ?></div>
|
<div class="body"><? if ($WikiBody != '') { echo $WikiBody; } else { echo 'There is no information on this torrent.'; } ?></div>
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
// --- Comments ---
|
// --- Comments ---
|
||||||
@ -750,16 +762,20 @@ function filelist($Str) {
|
|||||||
// gets the amount of comments for this group
|
// gets the amount of comments for this group
|
||||||
$Results = $Cache->get_value('torrent_comments_'.$GroupID);
|
$Results = $Cache->get_value('torrent_comments_'.$GroupID);
|
||||||
if ($Results === false) {
|
if ($Results === false) {
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
COUNT(c.ID)
|
SELECT COUNT(c.ID)
|
||||||
FROM torrents_comments as c
|
FROM torrents_comments as c
|
||||||
WHERE c.GroupID = '$GroupID'");
|
WHERE c.GroupID = '$GroupID'");
|
||||||
list($Results) = $DB->next_record();
|
list($Results) = $DB->next_record();
|
||||||
$Cache->cache_value('torrent_comments_'.$GroupID, $Results, 0);
|
$Cache->cache_value('torrent_comments_'.$GroupID, $Results, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET['postid']) && is_number($_GET['postid']) && $Results > TORRENT_COMMENTS_PER_PAGE) {
|
if (isset($_GET['postid']) && is_number($_GET['postid']) && $Results > TORRENT_COMMENTS_PER_PAGE) {
|
||||||
$DB->query("SELECT COUNT(ID) FROM torrents_comments WHERE GroupID = $GroupID AND ID <= $_GET[postid]");
|
$DB->query("
|
||||||
|
SELECT COUNT(ID)
|
||||||
|
FROM torrents_comments
|
||||||
|
WHERE GroupID = $GroupID
|
||||||
|
AND ID <= $_GET[postid]");
|
||||||
list($PostNum) = $DB->next_record();
|
list($PostNum) = $DB->next_record();
|
||||||
list($Page,$Limit) = Format::page_limit(TORRENT_COMMENTS_PER_PAGE,$PostNum);
|
list($Page,$Limit) = Format::page_limit(TORRENT_COMMENTS_PER_PAGE,$PostNum);
|
||||||
} else {
|
} else {
|
||||||
@ -767,15 +783,16 @@ function filelist($Str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Get the cache catalogue
|
//Get the cache catalogue
|
||||||
$CatalogueID = floor((TORRENT_COMMENTS_PER_PAGE*$Page-TORRENT_COMMENTS_PER_PAGE)/THREAD_CATALOGUE);
|
$CatalogueID = floor((TORRENT_COMMENTS_PER_PAGE * $Page - TORRENT_COMMENTS_PER_PAGE) / THREAD_CATALOGUE);
|
||||||
$CatalogueLimit=$CatalogueID*THREAD_CATALOGUE . ', ' . THREAD_CATALOGUE;
|
$CatalogueLimit = $CatalogueID * THREAD_CATALOGUE . ', ' . THREAD_CATALOGUE;
|
||||||
|
|
||||||
//---------- Get some data to start processing
|
//---------- Get some data to start processing
|
||||||
|
|
||||||
// Cache catalogue from which the page is selected, allows block caches and future ability to specify posts per page
|
// Cache catalogue from which the page is selected, allows block caches and future ability to specify posts per page
|
||||||
$Catalogue = $Cache->get_value('torrent_comments_'.$GroupID.'_catalogue_'.$CatalogueID);
|
$Catalogue = $Cache->get_value('torrent_comments_'.$GroupID.'_catalogue_'.$CatalogueID);
|
||||||
if ($Catalogue === false) {
|
if ($Catalogue === false) {
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
|
SELECT
|
||||||
c.ID,
|
c.ID,
|
||||||
c.AuthorID,
|
c.AuthorID,
|
||||||
c.AddedTime,
|
c.AddedTime,
|
||||||
@ -783,21 +800,21 @@ function filelist($Str) {
|
|||||||
c.EditedUserID,
|
c.EditedUserID,
|
||||||
c.EditedTime,
|
c.EditedTime,
|
||||||
u.Username
|
u.Username
|
||||||
FROM torrents_comments as c
|
FROM torrents_comments as c
|
||||||
LEFT JOIN users_main AS u ON u.ID=c.EditedUserID
|
LEFT JOIN users_main AS u ON u.ID=c.EditedUserID
|
||||||
WHERE c.GroupID = '$GroupID'
|
WHERE c.GroupID = '$GroupID'
|
||||||
ORDER BY c.ID
|
ORDER BY c.ID
|
||||||
LIMIT $CatalogueLimit");
|
LIMIT $CatalogueLimit");
|
||||||
$Catalogue = $DB->to_array(false,MYSQLI_ASSOC);
|
$Catalogue = $DB->to_array(false,MYSQLI_ASSOC);
|
||||||
$Cache->cache_value('torrent_comments_'.$GroupID.'_catalogue_'.$CatalogueID, $Catalogue, 0);
|
$Cache->cache_value('torrent_comments_'.$GroupID.'_catalogue_'.$CatalogueID, $Catalogue, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//This is a hybrid to reduce the catalogue down to the page elements: We use the page limit % catalogue
|
//This is a hybrid to reduce the catalogue down to the page elements: We use the page limit % catalogue
|
||||||
$Thread = array_slice($Catalogue,((TORRENT_COMMENTS_PER_PAGE*$Page-TORRENT_COMMENTS_PER_PAGE)%THREAD_CATALOGUE),TORRENT_COMMENTS_PER_PAGE,true);
|
$Thread = array_slice($Catalogue, ((TORRENT_COMMENTS_PER_PAGE * $Page - TORRENT_COMMENTS_PER_PAGE) % THREAD_CATALOGUE), TORRENT_COMMENTS_PER_PAGE, true);
|
||||||
?>
|
?>
|
||||||
<div class="linkbox"><a name="comments"></a>
|
<div class="linkbox"><a name="comments"></a>
|
||||||
<?
|
<?
|
||||||
$Pages=Format::get_pages($Page,$Results,TORRENT_COMMENTS_PER_PAGE,9,'#comments');
|
$Pages = Format::get_pages($Page, $Results, TORRENT_COMMENTS_PER_PAGE, 9, '#comments');
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -816,7 +833,7 @@ function filelist($Str) {
|
|||||||
</colgroup>
|
</colgroup>
|
||||||
<tr class="colhead_dark">
|
<tr class="colhead_dark">
|
||||||
<td colspan="<?=Users::has_avatars_enabled() ? 2 : 1?>">
|
<td colspan="<?=Users::has_avatars_enabled() ? 2 : 1?>">
|
||||||
<div style="float:left;"><a class="post_id" href="torrents.php?id=<?=$GroupID?>&postid=<?=$PostID?>#post<?=$PostID?>">#<?=$PostID?></a>
|
<div style="float: left;"><a class="post_id" href="torrents.php?id=<?=$GroupID?>&postid=<?=$PostID?>#post<?=$PostID?>">#<?=$PostID?></a>
|
||||||
<strong><?=Users::format_username($AuthorID, true, true, true, true)?></strong> <?=time_diff($AddedTime)?>
|
<strong><?=Users::format_username($AuthorID, true, true, true, true)?></strong> <?=time_diff($AddedTime)?>
|
||||||
- <a href="#quickpost" onclick="Quote('<?=$PostID?>','<?=$Username?>');" class="brackets">Quote</a>
|
- <a href="#quickpost" onclick="Quote('<?=$PostID?>','<?=$Username?>');" class="brackets">Quote</a>
|
||||||
<? if ($AuthorID == $LoggedUser['ID'] || check_perms('site_moderate_forums')) { ?>
|
<? if ($AuthorID == $LoggedUser['ID'] || check_perms('site_moderate_forums')) { ?>
|
||||||
@ -826,7 +843,7 @@ function filelist($Str) {
|
|||||||
- <a href="#post<?=$PostID?>" onclick="Delete('<?=$PostID?>');" class="brackets">Delete</a>
|
- <a href="#post<?=$PostID?>" onclick="Delete('<?=$PostID?>');" class="brackets">Delete</a>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</div>
|
</div>
|
||||||
<div id="bar<?=$PostID?>" style="float:right;">
|
<div id="bar<?=$PostID?>" style="float: right;">
|
||||||
<a href="reports.php?action=report&type=torrents_comment&id=<?=$PostID?>" class="brackets">Report</a>
|
<a href="reports.php?action=report&type=torrents_comment&id=<?=$PostID?>" class="brackets">Report</a>
|
||||||
<? if (check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
<? if (check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
||||||
$AuthorInfo = Users::user_info($AuthorID);
|
$AuthorInfo = Users::user_info($AuthorID);
|
||||||
|
@ -254,15 +254,15 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
|||||||
$DB->query("
|
$DB->query("
|
||||||
INSERT IGNORE INTO temp_sections_torrents_user
|
INSERT IGNORE INTO temp_sections_torrents_user
|
||||||
SELECT
|
SELECT
|
||||||
t.GroupID,
|
t.GroupID,
|
||||||
t.ID AS TorrentID,
|
t.ID AS TorrentID,
|
||||||
$Time AS Time,
|
$Time AS Time,
|
||||||
tg.CategoryID,
|
tg.CategoryID,
|
||||||
t.Seeders,
|
t.Seeders,
|
||||||
t.Leechers,
|
t.Leechers,
|
||||||
t.Snatched,
|
t.Snatched,
|
||||||
CONCAT_WS(' ', GROUP_CONCAT(aa.Name SEPARATOR ' '), ' ', tg.Name, ' ', tg.Year, ' ') AS Name,
|
CONCAT_WS(' ', GROUP_CONCAT(aa.Name SEPARATOR ' '), ' ', tg.Name, ' ', tg.Year, ' ') AS Name,
|
||||||
t.Size
|
t.Size
|
||||||
FROM $From
|
FROM $From
|
||||||
JOIN torrents_group AS tg ON tg.ID=t.GroupID
|
JOIN torrents_group AS tg ON tg.ID=t.GroupID
|
||||||
LEFT JOIN torrents_artists AS ta ON ta.GroupID=tg.ID
|
LEFT JOIN torrents_artists AS ta ON ta.GroupID=tg.ID
|
||||||
@ -274,15 +274,17 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
|||||||
$Words = array_unique(explode(' ', db_string($_GET['search'])));
|
$Words = array_unique(explode(' ', db_string($_GET['search'])));
|
||||||
}
|
}
|
||||||
|
|
||||||
$SQL = "SELECT SQL_CALC_FOUND_ROWS
|
$SQL = "
|
||||||
GroupID, TorrentID, Time, CategoryID
|
SELECT SQL_CALC_FOUND_ROWS
|
||||||
|
GroupID, TorrentID, Time, CategoryID
|
||||||
FROM temp_sections_torrents_user";
|
FROM temp_sections_torrents_user";
|
||||||
if (!empty($Words)) {
|
if (!empty($Words)) {
|
||||||
$SQL .= "
|
$SQL .= "
|
||||||
WHERE Name LIKE '%".implode("%' AND Name LIKE '%", $Words)."%'";
|
WHERE Name LIKE '%".implode("%' AND Name LIKE '%", $Words)."%'";
|
||||||
}
|
}
|
||||||
$SQL .= "
|
$SQL .= "
|
||||||
ORDER BY $Order $Way LIMIT $Limit";
|
ORDER BY $Order $Way
|
||||||
|
LIMIT $Limit";
|
||||||
}
|
}
|
||||||
|
|
||||||
$DB->query($SQL);
|
$DB->query($SQL);
|
||||||
@ -299,7 +301,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
|||||||
|
|
||||||
View::show_header($User['Username'].'\'s '.$Action.' torrents','voting');
|
View::show_header($User['Username'].'\'s '.$Action.' torrents','voting');
|
||||||
|
|
||||||
$Pages=Format::get_pages($Page,$TorrentCount,TORRENTS_PER_PAGE);
|
$Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -907,7 +907,6 @@
|
|||||||
} else {
|
} else {
|
||||||
$SQL.=" AND (FromYear=0 AND ToYear=0) ";
|
$SQL.=" AND (FromYear=0 AND ToYear=0) ";
|
||||||
}
|
}
|
||||||
|
|
||||||
$SQL.=" AND UserID != '".$LoggedUser['ID']."' ";
|
$SQL.=" AND UserID != '".$LoggedUser['ID']."' ";
|
||||||
|
|
||||||
$DB->query($SQL);
|
$DB->query($SQL);
|
||||||
|
@ -445,10 +445,10 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr"><span title="Date format is YYYY-MM-DD">Joined:</span></td>
|
<td class="label nobr"><span title="Date format is YYYY-MM-DD">Joined:</span></td>
|
||||||
<td width="24%">
|
<td width="24%">
|
||||||
<select name="joined">
|
<select name="joined">
|
||||||
<option value="on"<? if ($_GET['joined']==='on') {echo ' selected="selected"';}?>>On</option>
|
<option value="on"<? if ($_GET['joined']==='on') {echo ' selected="selected"';} ?>>On</option>
|
||||||
<option value="before"<? if ($_GET['joined']==='before') {echo ' selected="selected"';}?>>Before</option>
|
<option value="before"<? if ($_GET['joined']==='before') {echo ' selected="selected"';} ?>>Before</option>
|
||||||
<option value="after"<? if ($_GET['joined']==='after') {echo ' selected="selected"';}?>>After</option>
|
<option value="after"<? if ($_GET['joined']==='after') {echo ' selected="selected"';} ?>>After</option>
|
||||||
<option value="between"<? if ($_GET['joined']==='between') {echo ' selected="selected"';}?>>Between</option>
|
<option value="between"<? if ($_GET['joined']==='between') {echo ' selected="selected"';} ?>>Between</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="join1" size="6" value="<?=display_str($_GET['join1'])?>" />
|
<input type="text" name="join1" size="6" value="<?=display_str($_GET['join1'])?>" />
|
||||||
<input type="text" name="join2" size="6" value="<?=display_str($_GET['join2'])?>" />
|
<input type="text" name="join2" size="6" value="<?=display_str($_GET['join2'])?>" />
|
||||||
@ -456,10 +456,10 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr">Enabled:</td>
|
<td class="label nobr">Enabled:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="enabled">
|
<select name="enabled">
|
||||||
<option value=""<? if ($_GET['enabled']==='') {echo ' selected="selected"';}?>>Any</option>
|
<option value=""<? if ($_GET['enabled']==='') {echo ' selected="selected"';} ?>>Any</option>
|
||||||
<option value="0"<? if ($_GET['enabled']==='0') {echo ' selected="selected"';}?>>Unconfirmed</option>
|
<option value="0"<? if ($_GET['enabled']==='0') {echo ' selected="selected"';} ?>>Unconfirmed</option>
|
||||||
<option value="1"<? if ($_GET['enabled']==='1') {echo ' selected="selected"';}?>>Enabled</option>
|
<option value="1"<? if ($_GET['enabled']==='1') {echo ' selected="selected"';} ?>>Enabled</option>
|
||||||
<option value="2"<? if ($_GET['enabled']==='2') {echo ' selected="selected"';}?>>Disabled</option>
|
<option value="2"<? if ($_GET['enabled']==='2') {echo ' selected="selected"';} ?>>Disabled</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -471,10 +471,10 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr"><span title="Date format is YYYY-MM-DD">Last active:</span></td>
|
<td class="label nobr"><span title="Date format is YYYY-MM-DD">Last active:</span></td>
|
||||||
<td width="30%">
|
<td width="30%">
|
||||||
<select name="lastactive">
|
<select name="lastactive">
|
||||||
<option value="on"<? if ($_GET['lastactive']==='on') {echo ' selected="selected"';}?>>On</option>
|
<option value="on"<? if ($_GET['lastactive']==='on') {echo ' selected="selected"';} ?>>On</option>
|
||||||
<option value="before"<? if ($_GET['lastactive']==='before') {echo ' selected="selected"';}?>>Before</option>
|
<option value="before"<? if ($_GET['lastactive']==='before') {echo ' selected="selected"';} ?>>Before</option>
|
||||||
<option value="after"<? if ($_GET['lastactive']==='after') {echo ' selected="selected"';}?>>After</option>
|
<option value="after"<? if ($_GET['lastactive']==='after') {echo ' selected="selected"';} ?>>After</option>
|
||||||
<option value="between"<? if ($_GET['lastactive']==='between') {echo ' selected="selected"';}?>>Between</option>
|
<option value="between"<? if ($_GET['lastactive']==='between') {echo ' selected="selected"';} ?>>Between</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="lastactive1" size="6" value="<?=display_str($_GET['lastactive1'])?>" />
|
<input type="text" name="lastactive1" size="6" value="<?=display_str($_GET['lastactive1'])?>" />
|
||||||
<input type="text" name="lastactive2" size="6" value="<?=display_str($_GET['lastactive2'])?>" />
|
<input type="text" name="lastactive2" size="6" value="<?=display_str($_GET['lastactive2'])?>" />
|
||||||
@ -482,13 +482,13 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr">Primary class:</td>
|
<td class="label nobr">Primary class:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="class">
|
<select name="class">
|
||||||
<option value=""<? if ($_GET['class']==='') {echo ' selected="selected"';}?>>Any</option>
|
<option value=""<? if ($_GET['class']==='') {echo ' selected="selected"';} ?>>Any</option>
|
||||||
<? foreach ($ClassLevels as $Class) {
|
<? foreach ($ClassLevels as $Class) {
|
||||||
if ($Class['Secondary']) {
|
if ($Class['Secondary']) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<option value="<?=$Class['ID'] ?>"<? if ($_GET['class']===$Class['ID']) {echo ' selected="selected"';}?>><?=Format::cut_string($Class['Name'], 10, 1, 1).' ('.$Class['Level'].')'?></option>
|
<option value="<?=$Class['ID'] ?>"<? if ($_GET['class']===$Class['ID']) {echo ' selected="selected"';} ?>><?=Format::cut_string($Class['Name'], 10, 1, 1).' ('.$Class['Level'].')'?></option>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
@ -503,7 +503,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr">Secondary class:</td>
|
<td class="label nobr">Secondary class:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="secclass">
|
<select name="secclass">
|
||||||
<option value=""<? if ($_GET['secclass']==='') {echo ' selected="selected"';}?>>Any</option>
|
<option value=""<? if ($_GET['secclass']==='') {echo ' selected="selected"';} ?>>Any</option>
|
||||||
<? $Secondaries = array();
|
<? $Secondaries = array();
|
||||||
// Neither level nor ID is particularly useful when searching secondary classes, so let's do some
|
// Neither level nor ID is particularly useful when searching secondary classes, so let's do some
|
||||||
// kung-fu to sort them alphabetically.
|
// kung-fu to sort them alphabetically.
|
||||||
@ -517,7 +517,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
usort($Secondaries, $fnc);
|
usort($Secondaries, $fnc);
|
||||||
foreach ($Secondaries as $Class) {
|
foreach ($Secondaries as $Class) {
|
||||||
?>
|
?>
|
||||||
<option value="<?=$Class['ID'] ?>"<? if ($_GET['secclass']===$Class['ID']) {echo ' selected="selected"';}?>><?=Format::cut_string($Class['Name'], 20, 1, 1)?></option>
|
<option value="<?=$Class['ID'] ?>"<? if ($_GET['secclass']===$Class['ID']) {echo ' selected="selected"';} ?>><?=Format::cut_string($Class['Name'], 20, 1, 1)?></option>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
@ -525,19 +525,19 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="label nobr">Extra:</td>
|
<td class="label nobr">Extra:</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" name="ip_history" id="ip_history"<? if ($_GET['ip_history']) { echo ' checked="checked"'; }?> />
|
<input type="checkbox" name="ip_history" id="ip_history"<? if ($_GET['ip_history']) { echo ' checked="checked"'; } ?> />
|
||||||
<label for="ip_history">IP history</label>
|
<label for="ip_history">IP history</label>
|
||||||
|
|
||||||
<input type="checkbox" name="email_history" id="email_history"<? if ($_GET['email_history']) { echo ' checked="checked"'; }?> />
|
<input type="checkbox" name="email_history" id="email_history"<? if ($_GET['email_history']) { echo ' checked="checked"'; } ?> />
|
||||||
<label for="email_history">Email history</label>
|
<label for="email_history">Email history</label>
|
||||||
</td>
|
</td>
|
||||||
<td class="label nobr">Ratio:</td>
|
<td class="label nobr">Ratio:</td>
|
||||||
<td width="30%">
|
<td width="30%">
|
||||||
<select name="ratio">
|
<select name="ratio">
|
||||||
<option value="equal"<? if ($_GET['ratio']==='equal') {echo ' selected="selected"';}?>>Equal</option>
|
<option value="equal"<? if ($_GET['ratio']==='equal') {echo ' selected="selected"';} ?>>Equal</option>
|
||||||
<option value="above"<? if ($_GET['ratio']==='above') {echo ' selected="selected"';}?>>Above</option>
|
<option value="above"<? if ($_GET['ratio']==='above') {echo ' selected="selected"';} ?>>Above</option>
|
||||||
<option value="below"<? if ($_GET['ratio']==='below') {echo ' selected="selected"';}?>>Below</option>
|
<option value="below"<? if ($_GET['ratio']==='below') {echo ' selected="selected"';} ?>>Below</option>
|
||||||
<option value="between"<? if ($_GET['ratio']==='between') {echo ' selected="selected"';}?>>Between</option>
|
<option value="between"<? if ($_GET['ratio']==='between') {echo ' selected="selected"';} ?>>Between</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="ratio1" size="6" value="<?=display_str($_GET['ratio1'])?>" />
|
<input type="text" name="ratio1" size="6" value="<?=display_str($_GET['ratio1'])?>" />
|
||||||
<input type="text" name="ratio2" size="6" value="<?=display_str($_GET['ratio2'])?>" />
|
<input type="text" name="ratio2" size="6" value="<?=display_str($_GET['ratio2'])?>" />
|
||||||
@ -545,9 +545,9 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr">Donor:</td>
|
<td class="label nobr">Donor:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="donor">
|
<select name="donor">
|
||||||
<option value=""<? if ($_GET['donor']==='') {echo ' selected="selected"';}?>>Any</option>
|
<option value=""<? if ($_GET['donor']==='') {echo ' selected="selected"';} ?>>Any</option>
|
||||||
<option value="yes"<? if ($_GET['donor']==='yes') {echo ' selected="selected"';}?>>Yes</option>
|
<option value="yes"<? if ($_GET['donor']==='yes') {echo ' selected="selected"';} ?>>Yes</option>
|
||||||
<option value="no"<? if ($_GET['donor']==='no') {echo ' selected="selected"';}?>>No</option>
|
<option value="no"<? if ($_GET['donor']==='no') {echo ' selected="selected"';} ?>>No</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -565,11 +565,11 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr"><span title="Units are in gibibytes (the base 2 sibling of gigabytes)">Uploaded:</span></td>
|
<td class="label nobr"><span title="Units are in gibibytes (the base 2 sibling of gigabytes)">Uploaded:</span></td>
|
||||||
<td width="30%">
|
<td width="30%">
|
||||||
<select name="uploaded">
|
<select name="uploaded">
|
||||||
<option value="equal"<? if ($_GET['uploaded']==='equal') {echo ' selected="selected"';}?>>Equal</option>
|
<option value="equal"<? if ($_GET['uploaded']==='equal') {echo ' selected="selected"';} ?>>Equal</option>
|
||||||
<option value="above"<? if ($_GET['uploaded']==='above') {echo ' selected="selected"';}?>>Above</option>
|
<option value="above"<? if ($_GET['uploaded']==='above') {echo ' selected="selected"';} ?>>Above</option>
|
||||||
<option value="below"<? if ($_GET['uploaded']==='below') {echo ' selected="selected"';}?>>Below</option>
|
<option value="below"<? if ($_GET['uploaded']==='below') {echo ' selected="selected"';} ?>>Below</option>
|
||||||
<option value="between"<? if ($_GET['uploaded']==='between') {echo ' selected="selected"';}?>>Between</option>
|
<option value="between"<? if ($_GET['uploaded']==='between') {echo ' selected="selected"';} ?>>Between</option>
|
||||||
<option value="buffer"<? if ($_GET['uploaded']==='buffer') {echo ' selected="selected"';}?>>Buffer</option>
|
<option value="buffer"<? if ($_GET['uploaded']==='buffer') {echo ' selected="selected"';} ?>>Buffer</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="uploaded1" size="6" value="<?=display_str($_GET['uploaded1'])?>" />
|
<input type="text" name="uploaded1" size="6" value="<?=display_str($_GET['uploaded1'])?>" />
|
||||||
<input type="text" name="uploaded2" size="6" value="<?=display_str($_GET['uploaded2'])?>" />
|
<input type="text" name="uploaded2" size="6" value="<?=display_str($_GET['uploaded2'])?>" />
|
||||||
@ -577,9 +577,9 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr">Warned:</td>
|
<td class="label nobr">Warned:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="warned">
|
<select name="warned">
|
||||||
<option value=""<? if ($_GET['warned']==='') {echo ' selected="selected"';}?>>Any</option>
|
<option value=""<? if ($_GET['warned']==='') {echo ' selected="selected"';} ?>>Any</option>
|
||||||
<option value="yes"<? if ($_GET['warned']==='yes') {echo ' selected="selected"';}?>>Yes</option>
|
<option value="yes"<? if ($_GET['warned']==='yes') {echo ' selected="selected"';} ?>>Yes</option>
|
||||||
<option value="no"<? if ($_GET['warned']==='no') {echo ' selected="selected"';}?>>No</option>
|
<option value="no"<? if ($_GET['warned']==='no') {echo ' selected="selected"';} ?>>No</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -588,10 +588,10 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr"># of invites:</td>
|
<td class="label nobr"># of invites:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="invites">
|
<select name="invites">
|
||||||
<option value="equal"<? if ($_GET['invites']==='equal') {echo ' selected="selected"';}?>>Equal</option>
|
<option value="equal"<? if ($_GET['invites']==='equal') {echo ' selected="selected"';} ?>>Equal</option>
|
||||||
<option value="above"<? if ($_GET['invites']==='above') {echo ' selected="selected"';}?>>Above</option>
|
<option value="above"<? if ($_GET['invites']==='above') {echo ' selected="selected"';} ?>>Above</option>
|
||||||
<option value="below"<? if ($_GET['invites']==='below') {echo ' selected="selected"';}?>>Below</option>
|
<option value="below"<? if ($_GET['invites']==='below') {echo ' selected="selected"';} ?>>Below</option>
|
||||||
<option value="between"<? if ($_GET['invites']==='between') {echo ' selected="selected"';}?>>Between</option>
|
<option value="between"<? if ($_GET['invites']==='between') {echo ' selected="selected"';} ?>>Between</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="invites1" size="6" value="<?=display_str($_GET['invites1'])?>" />
|
<input type="text" name="invites1" size="6" value="<?=display_str($_GET['invites1'])?>" />
|
||||||
<input type="text" name="invites2" size="6" value="<?=display_str($_GET['invites2'])?>" />
|
<input type="text" name="invites2" size="6" value="<?=display_str($_GET['invites2'])?>" />
|
||||||
@ -599,10 +599,10 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr"><span title="Units are in gibibytes (the base 2 sibling of gigabytes)">Downloaded:</span></td>
|
<td class="label nobr"><span title="Units are in gibibytes (the base 2 sibling of gigabytes)">Downloaded:</span></td>
|
||||||
<td width="30%">
|
<td width="30%">
|
||||||
<select name="downloaded">
|
<select name="downloaded">
|
||||||
<option value="equal"<? if ($_GET['downloaded']==='equal') {echo ' selected="selected"';}?>>Equal</option>
|
<option value="equal"<? if ($_GET['downloaded']==='equal') {echo ' selected="selected"';} ?>>Equal</option>
|
||||||
<option value="above"<? if ($_GET['downloaded']==='above') {echo ' selected="selected"';}?>>Above</option>
|
<option value="above"<? if ($_GET['downloaded']==='above') {echo ' selected="selected"';} ?>>Above</option>
|
||||||
<option value="below"<? if ($_GET['downloaded']==='below') {echo ' selected="selected"';}?>>Below</option>
|
<option value="below"<? if ($_GET['downloaded']==='below') {echo ' selected="selected"';} ?>>Below</option>
|
||||||
<option value="between"<? if ($_GET['downloaded']==='between') {echo ' selected="selected"';}?>>Between</option>
|
<option value="between"<? if ($_GET['downloaded']==='between') {echo ' selected="selected"';} ?>>Between</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="downloaded1" size="6" value="<?=display_str($_GET['downloaded1'])?>" />
|
<input type="text" name="downloaded1" size="6" value="<?=display_str($_GET['downloaded1'])?>" />
|
||||||
<input type="text" name="downloaded2" size="6" value="<?=display_str($_GET['downloaded2'])?>" />
|
<input type="text" name="downloaded2" size="6" value="<?=display_str($_GET['downloaded2'])?>" />
|
||||||
@ -611,7 +611,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<label for="disabled_ip" title="Only display users that have a disabled account linked by IP address">Disabled accounts<br />linked by IP:</label>
|
<label for="disabled_ip" title="Only display users that have a disabled account linked by IP address">Disabled accounts<br />linked by IP:</label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" name="disabled_ip" id="disabled_ip"<? if ($_GET['disabled_ip']) { echo ' checked="checked"'; }?> />
|
<input type="checkbox" name="disabled_ip" id="disabled_ip"<? if ($_GET['disabled_ip']) { echo ' checked="checked"'; } ?> />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -619,19 +619,19 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr">Disabled invites:</td>
|
<td class="label nobr">Disabled invites:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="disabled_invites">
|
<select name="disabled_invites">
|
||||||
<option value=""<? if ($_GET['disabled_invites']==='') {echo ' selected="selected"';}?>>Any</option>
|
<option value=""<? if ($_GET['disabled_invites']==='') {echo ' selected="selected"';} ?>>Any</option>
|
||||||
<option value="yes"<? if ($_GET['disabled_invites']==='yes') {echo ' selected="selected"';}?>>Yes</option>
|
<option value="yes"<? if ($_GET['disabled_invites']==='yes') {echo ' selected="selected"';} ?>>Yes</option>
|
||||||
<option value="no"<? if ($_GET['disabled_invites']==='no') {echo ' selected="selected"';}?>>No</option>
|
<option value="no"<? if ($_GET['disabled_invites']==='no') {echo ' selected="selected"';} ?>>No</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td class="label nobr">Snatched:</td>
|
<td class="label nobr">Snatched:</td>
|
||||||
<td width="30%">
|
<td width="30%">
|
||||||
<select name="snatched">
|
<select name="snatched">
|
||||||
<option value="equal"<? if (isset($_GET['snatched']) && $_GET['snatched']==='equal') {echo ' selected="selected"';}?>>Equal</option>
|
<option value="equal"<? if (isset($_GET['snatched']) && $_GET['snatched']==='equal') {echo ' selected="selected"';} ?>>Equal</option>
|
||||||
<option value="above"<? if (isset($_GET['snatched']) && $_GET['snatched']==='above') {echo ' selected="selected"';}?>>Above</option>
|
<option value="above"<? if (isset($_GET['snatched']) && $_GET['snatched']==='above') {echo ' selected="selected"';} ?>>Above</option>
|
||||||
<option value="below"<? if (isset($_GET['snatched']) && $_GET['snatched']==='below') {echo ' selected="selected"';}?>>Below</option>
|
<option value="below"<? if (isset($_GET['snatched']) && $_GET['snatched']==='below') {echo ' selected="selected"';} ?>>Below</option>
|
||||||
<option value="between"<? if (isset($_GET['snatched']) && $_GET['snatched']==='between') {echo ' selected="selected"';}?>>Between</option>
|
<option value="between"<? if (isset($_GET['snatched']) && $_GET['snatched']==='between') {echo ' selected="selected"';} ?>>Between</option>
|
||||||
<option value="off"<? if (isset($_GET['snatched']) && $_GET['snatched']==='off') {echo ' selected="selected"';}?>>Off</option>
|
<option value="off"<? if (isset($_GET['snatched']) && $_GET['snatched']==='off') {echo ' selected="selected"';} ?>>Off</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="snatched1" size="6" value="<?=display_str($_GET['snatched1'])?>" />
|
<input type="text" name="snatched1" size="6" value="<?=display_str($_GET['snatched1'])?>" />
|
||||||
<input type="text" name="snatched2" size="6" value="<?=display_str($_GET['snatched2'])?>" />
|
<input type="text" name="snatched2" size="6" value="<?=display_str($_GET['snatched2'])?>" />
|
||||||
@ -639,9 +639,9 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr">Disabled uploads:</td>
|
<td class="label nobr">Disabled uploads:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="disabled_uploads">
|
<select name="disabled_uploads">
|
||||||
<option value=""<? if (isset($_GET['disabled_uploads']) && $_GET['disabled_uploads']==='') {echo ' selected="selected"';}?>>Any</option>
|
<option value=""<? if (isset($_GET['disabled_uploads']) && $_GET['disabled_uploads']==='') {echo ' selected="selected"';} ?>>Any</option>
|
||||||
<option value="yes"<? if (isset($_GET['disabled_uploads']) && $_GET['disabled_uploads']==='yes') {echo ' selected="selected"';}?>>Yes</option>
|
<option value="yes"<? if (isset($_GET['disabled_uploads']) && $_GET['disabled_uploads']==='yes') {echo ' selected="selected"';} ?>>Yes</option>
|
||||||
<option value="no"<? if (isset($_GET['disabled_uploads']) && $_GET['disabled_uploads']==='no') {echo ' selected="selected"';}?>>No</option>
|
<option value="no"<? if (isset($_GET['disabled_uploads']) && $_GET['disabled_uploads']==='no') {echo ' selected="selected"';} ?>>No</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -677,8 +677,8 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr"><span title="Two-letter codes as defined in ISO 3166-1 alpha-2">Country code:</span></td>
|
<td class="label nobr"><span title="Two-letter codes as defined in ISO 3166-1 alpha-2">Country code:</span></td>
|
||||||
<td width="30%">
|
<td width="30%">
|
||||||
<select name="cc_op">
|
<select name="cc_op">
|
||||||
<option value="equal"<? if ($_GET['cc_op']==='equal') { echo ' selected="selected"';}?>>Equals</option>
|
<option value="equal"<? if ($_GET['cc_op'] === 'equal') { echo ' selected="selected"';} ?>>Equals</option>
|
||||||
<option value="not_equal"<? if ($_GET['cc_op']==='not_equal') { echo ' selected="selected"';}?>>Not equal</option>
|
<option value="not_equal"<? if ($_GET['cc_op'] === 'not_equal') { echo ' selected="selected"';} ?>>Not equal</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="cc" size="2" value="<?=display_str($_GET['cc'])?>" />
|
<input type="text" name="cc" size="2" value="<?=display_str($_GET['cc'])?>" />
|
||||||
</td>
|
</td>
|
||||||
@ -708,9 +708,9 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
<td class="label nobr"># of emails:</td>
|
<td class="label nobr"># of emails:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="emails_opt">
|
<select name="emails_opt">
|
||||||
<option value="equal"<? if ($_GET['emails_opt']==='equal') {echo ' selected="selected"';}?>>Equal</option>
|
<option value="equal"<? if ($_GET['emails_opt']==='equal') {echo ' selected="selected"';} ?>>Equal</option>
|
||||||
<option value="above"<? if ($_GET['emails_opt']==='above') {echo ' selected="selected"';}?>>Above</option>
|
<option value="above"<? if ($_GET['emails_opt']==='above') {echo ' selected="selected"';} ?>>Above</option>
|
||||||
<option value="below"<? if ($_GET['emails_opt']==='below') {echo ' selected="selected"';}?>>Below</option>
|
<option value="below"<? if ($_GET['emails_opt']==='below') {echo ' selected="selected"';} ?>>Below</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="email_cnt" size="6" value="<?=display_str($_GET['email_cnt'])?>" />
|
<input type="text" name="email_cnt" size="6" value="<?=display_str($_GET['email_cnt'])?>" />
|
||||||
</td>
|
</td>
|
||||||
@ -736,7 +736,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = '') {
|
|||||||
?>
|
?>
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<?
|
<?
|
||||||
$Pages=Format::get_pages($Page,$NumResults,USERS_PER_PAGE,11);
|
$Pages = Format::get_pages($Page, $NumResults, USERS_PER_PAGE, 11);
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -143,16 +143,18 @@ function user_dupes_table($UserID) {
|
|||||||
if (!is_number($UserID)) {
|
if (!is_number($UserID)) {
|
||||||
error(403);
|
error(403);
|
||||||
}
|
}
|
||||||
$DB->query("SELECT d.ID, d.Comments, SHA1(d.Comments) AS CommentHash
|
$DB->query("
|
||||||
FROM dupe_groups AS d
|
SELECT d.ID, d.Comments, SHA1(d.Comments) AS CommentHash
|
||||||
JOIN users_dupes AS u ON u.GroupID = d.ID
|
FROM dupe_groups AS d
|
||||||
WHERE u.UserID = $UserID");
|
JOIN users_dupes AS u ON u.GroupID = d.ID
|
||||||
|
WHERE u.UserID = $UserID");
|
||||||
if (list($GroupID, $Comments, $CommentHash) = $DB->next_record()) {
|
if (list($GroupID, $Comments, $CommentHash) = $DB->next_record()) {
|
||||||
$DB->query("SELECT m.ID
|
$DB->query("
|
||||||
FROM users_main AS m
|
SELECT m.ID
|
||||||
JOIN users_dupes AS d ON m.ID = d.UserID
|
FROM users_main AS m
|
||||||
WHERE d.GroupID = $GroupID
|
JOIN users_dupes AS d ON m.ID = d.UserID
|
||||||
ORDER BY m.ID ASC");
|
WHERE d.GroupID = $GroupID
|
||||||
|
ORDER BY m.ID ASC");
|
||||||
$DupeCount = $DB->record_count();
|
$DupeCount = $DB->record_count();
|
||||||
$Dupes = $DB->to_array();
|
$Dupes = $DB->to_array();
|
||||||
} else {
|
} else {
|
||||||
@ -168,10 +170,10 @@ function user_dupes_table($UserID) {
|
|||||||
<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" id="l_a_box">
|
<div class="box" id="l_a_box">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<a href="#l_a_box"><strong>↑</strong></a> <?=max($DupeCount - 1, 0)?> Linked account<?=(($DupeCount == 2)?'':'s')?> <a href="#" onclick="$('.linkedaccounts').toggle(); return false;" class="brackets">View</a>
|
<a href="#l_a_box"><strong>↑</strong></a> <?=max($DupeCount - 1, 0)?> Linked account<?=(($DupeCount == 2) ? '' : 's')?> <a href="#" onclick="$('.linkedaccounts').toggle(); return false;" class="brackets">View</a>
|
||||||
</div>
|
</div>
|
||||||
<table width="100%" class="layout hidden linkedaccounts">
|
<table width="100%" class="layout hidden linkedaccounts">
|
||||||
<?=$DupeCount?'<tr>':''?>
|
<?=$DupeCount ? '<tr>' : ''?>
|
||||||
<?
|
<?
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($Dupes as $Dupe) {
|
foreach ($Dupes as $Dupe) {
|
||||||
@ -180,30 +182,31 @@ function user_dupes_table($UserID) {
|
|||||||
$DupeInfo = Users::user_info($DupeID);
|
$DupeInfo = Users::user_info($DupeID);
|
||||||
?>
|
?>
|
||||||
<td align="left"><?=Users::format_username($DupeID, true, true, true, true)?>
|
<td align="left"><?=Users::format_username($DupeID, true, true, true, true)?>
|
||||||
<a href="user.php?action=dupes&dupeaction=remove&auth=<?=$LoggedUser['AuthKey']?>&userid=<?=$UserID?>&removeid=<?=$DupeID?>" onclick="return confirm('Are you sure you wish to remove <?=$DupeInfo['Username']?> from this group?');" class="brackets">x</a></td>
|
<a href="user.php?action=dupes&dupeaction=remove&auth=<?=$LoggedUser['AuthKey']?>&userid=<?=$UserID?>&removeid=<?=$DupeID?>" onclick="return confirm('Are you sure you wish to remove <?=$DupeInfo['Username']?> from this group?');" class="brackets">x</a>
|
||||||
|
</td>
|
||||||
<?
|
<?
|
||||||
if ($i == 5) {
|
if ($i == 5) {
|
||||||
$i = 0;
|
$i = 0;
|
||||||
echo "</tr><tr>";
|
echo "\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($DupeCount) {
|
if ($DupeCount) {
|
||||||
for ($j = $i; $j < 5; $j++) {
|
for ($j = $i; $j < 5; $j++) {
|
||||||
echo '<td> </td>';
|
echo "\t\t\t\t\t\t<td> </td>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tr>
|
</tr>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5" align="left" style="border-top: thin solid"><strong>Comments:</strong></td>
|
<td colspan="5" align="left" style="border-top: thin solid;"><strong>Comments:</strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5" align="left">
|
<td colspan="5" align="left">
|
||||||
<div id="dupecomments" class="<?=$DupeCount?'':'hidden'?>"><?=$Text->full_format($Comments);?></div>
|
<div id="dupecomments" class="<?=$DupeCount ? '' : 'hidden'?>"><?=$Text->full_format($Comments);?></div>
|
||||||
<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;" class="brackets">Edit linked account comments</a></span>
|
<span style="float: right; font-style: italic;"><a href="#" onclick="$('#dupecomments').toggle(); $('#editdupecomments').toggle(); resize('dupecommentsbox'); return false;" class="brackets">Edit linked account comments</a></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -12,28 +12,37 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
$DB->query("SELECT ID, Label, Artists, ExcludeVA, NewGroupsOnly, Tags, NotTags, ReleaseTypes, Categories, Formats, Encodings, Media, FromYear, ToYear FROM users_notify_filters WHERE UserID='$LoggedUser[ID]' UNION ALL SELECT NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL");
|
$DB->query("
|
||||||
|
SELECT ID, Label, Artists, ExcludeVA, NewGroupsOnly, Tags, NotTags, ReleaseTypes, Categories, Formats, Encodings, Media, FromYear, ToYear, RecordLabels
|
||||||
|
FROM users_notify_filters
|
||||||
|
WHERE UserID='$LoggedUser[ID]'
|
||||||
|
UNION ALL
|
||||||
|
SELECT NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL");
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$NumFilters = $DB->record_count()-1;
|
$NumFilters = $DB->record_count() - 1;
|
||||||
|
|
||||||
$Notifications = $DB->to_array();
|
$Notifications = $DB->to_array();
|
||||||
|
|
||||||
foreach ($Notifications as $N) { //$N stands for Notifications
|
foreach ($Notifications as $N) { //$N stands for Notifications
|
||||||
$N['Artists'] = implode(', ', explode('|', substr($N['Artists'],1,-1)));
|
$N['Artists'] = implode(', ', explode('|', substr($N['Artists'], 1, -1)));
|
||||||
$N['Tags'] = implode(', ', explode('|', substr($N['Tags'],1,-1)));
|
$N['Tags'] = implode(', ', explode('|', substr($N['Tags'], 1, -1)));
|
||||||
$N['NotTags'] = implode(', ', explode('|', substr($N['NotTags'],1,-1)));
|
$N['NotTags'] = implode(', ', explode('|', substr($N['NotTags'], 1, -1)));
|
||||||
$N['ReleaseTypes'] = explode('|', substr($N['ReleaseTypes'],1,-1));
|
$N['ReleaseTypes'] = explode('|', substr($N['ReleaseTypes'], 1, -1));
|
||||||
$N['Categories'] = explode('|', substr($N['Categories'],1,-1));
|
$N['Categories'] = explode('|', substr($N['Categories'], 1, -1));
|
||||||
$N['Formats'] = explode('|', substr($N['Formats'],1,-1));
|
$N['Formats'] = explode('|', substr($N['Formats'], 1, -1));
|
||||||
$N['Encodings'] = explode('|', substr($N['Encodings'],1,-1));
|
$N['Encodings'] = explode('|', substr($N['Encodings'], 1, -1));
|
||||||
$N['Media'] = explode('|', substr($N['Media'],1,-1));
|
$N['Media'] = explode('|', substr($N['Media'], 1, -1));
|
||||||
if ($N['FromYear'] == 0) { $N['FromYear'] = ''; }
|
$N['RecordLabels'] = implode(', ', explode('|', substr($N['RecordLabels'], 1, -1)));
|
||||||
if ($N['ToYear'] == 0) { $N['ToYear'] = ''; }
|
if ($N['FromYear'] == 0) {
|
||||||
|
$N['FromYear'] = '';
|
||||||
|
}
|
||||||
|
if ($N['ToYear'] == 0) {
|
||||||
|
$N['ToYear'] = '';
|
||||||
|
}
|
||||||
$i++;
|
$i++;
|
||||||
|
|
||||||
if ($i > $NumFilters && $NumFilters > 0) { ?>
|
if ($i > $NumFilters && $NumFilters > 0) { ?>
|
||||||
<h3>Create a new notification filter</h3>
|
<h3>Create a new notification filter</h3>
|
||||||
<? } elseif ($NumFilters>0) { ?>
|
<? } elseif ($NumFilters > 0) { ?>
|
||||||
<h3>
|
<h3>
|
||||||
<a href="feeds.php?feed=torrents_notify_<?=$N['ID']?>_<?=$LoggedUser['torrent_pass']?>&user=<?=$LoggedUser['ID']?>&auth=<?=$LoggedUser['RSS_Auth']?>&passkey=<?=$LoggedUser['torrent_pass']?>&authkey=<?=$LoggedUser['AuthKey']?>&name=<?=urlencode($N['Label'])?>"><img src="<?=STATIC_SERVER?>/common/symbols/rss.png" alt="RSS feed" /></a>
|
<a href="feeds.php?feed=torrents_notify_<?=$N['ID']?>_<?=$LoggedUser['torrent_pass']?>&user=<?=$LoggedUser['ID']?>&auth=<?=$LoggedUser['RSS_Auth']?>&passkey=<?=$LoggedUser['torrent_pass']?>&authkey=<?=$LoggedUser['AuthKey']?>&name=<?=urlencode($N['Label'])?>"><img src="<?=STATIC_SERVER?>/common/symbols/rss.png" alt="RSS feed" /></a>
|
||||||
<?=display_str($N['Label'])?>
|
<?=display_str($N['Label'])?>
|
||||||
@ -48,10 +57,10 @@
|
|||||||
<table <?=($i <= $NumFilters) ? 'id="filter_'.$N['ID'].'" class="layout hidden"' : 'class="layout"'?>>
|
<table <?=($i <= $NumFilters) ? 'id="filter_'.$N['ID'].'" class="layout hidden"' : 'class="layout"'?>>
|
||||||
<? if ($i > $NumFilters) { ?>
|
<? if ($i > $NumFilters) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label"><strong>Label</strong></td>
|
<td class="label"><strong>Notification filter name</strong></td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="label<?=$i?>" style="width: 100%" />
|
<input type="text" name="label<?=$i?>" style="width: 100%;" />
|
||||||
<p class="min_padding">A label/name for the filter set to tell different filters apart.</p>
|
<p class="min_padding">A name for the notification filter set to tell different filters apart.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -65,23 +74,22 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="label"><strong>One of these artists</strong></td>
|
<td class="label"><strong>One of these artists</strong></td>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="artists<?=$i?>" style="width:100%" rows="5"><?=display_str($N['Artists'])?></textarea>
|
<textarea name="artists<?=$i?>" style="width: 100%;" rows="5"><?=display_str($N['Artists'])?></textarea>
|
||||||
<p class="min_padding">Comma-separated list — e.g. <em>Pink Floyd, Led Zeppelin, Neil Young</em></p>
|
<p class="min_padding">Comma-separated list — e.g. <em>Pink Floyd, Led Zeppelin, Neil Young</em></p>
|
||||||
<input type="checkbox" name="excludeva<?=$i?>" id="excludeva_<?=$N['ID']?>"<? if ($N['ExcludeVA'] == '1') { echo ' checked="checked"';} ?> />
|
<input type="checkbox" name="excludeva<?=$i?>" id="excludeva_<?=$N['ID']?>"<? if ($N['ExcludeVA'] == '1') { echo ' checked="checked"';} ?> />
|
||||||
<label for="excludeva_<?=$N['ID']?>">Exclude Various Artists releases</label>
|
<label for="excludeva_<?=$N['ID']?>">Exclude Various Artists releases</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr> <tr>
|
||||||
<tr>
|
|
||||||
<td class="label"><strong>At least one of these tags</strong></td>
|
<td class="label"><strong>At least one of these tags</strong></td>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="tags<?=$i?>" style="width:100%" rows="2"><?=display_str($N['Tags'])?></textarea>
|
<textarea name="tags<?=$i?>" style="width: 100%;" rows="2"><?=display_str($N['Tags'])?></textarea>
|
||||||
<p class="min_padding">Comma-separated list — e.g. <em>rock, jazz, pop</em></p>
|
<p class="min_padding">Comma-separated list — e.g. <em>rock, jazz, pop</em></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label"><strong>None of these tags</strong></td>
|
<td class="label"><strong>None of these tags</strong></td>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="nottags<?=$i?>" style="width:100%" rows="2"><?=display_str($N['NotTags'])?></textarea>
|
<textarea name="nottags<?=$i?>" style="width: 100%;" rows="2"><?=display_str($N['NotTags'])?></textarea>
|
||||||
<p class="min_padding">Comma-separated list — e.g. <em>rock, jazz, pop</em></p>
|
<p class="min_padding">Comma-separated list — e.g. <em>rock, jazz, pop</em></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
$MediaList = '';
|
$MediaList = '';
|
||||||
$FromYear = 0;
|
$FromYear = 0;
|
||||||
$ToYear = 0;
|
$ToYear = 0;
|
||||||
|
$RecordLabels = '';
|
||||||
$HasFilter = false;
|
$HasFilter = false;
|
||||||
|
|
||||||
if ($_POST['formid'] && is_number($_POST['formid'])) {
|
if ($_POST['formid'] && is_number($_POST['formid'])) {
|
||||||
@ -25,12 +26,12 @@
|
|||||||
$Artists = explode(',', $_POST['artists'.$FormID]);
|
$Artists = explode(',', $_POST['artists'.$FormID]);
|
||||||
$ParsedArtists = array();
|
$ParsedArtists = array();
|
||||||
foreach ($Artists as $Artist) {
|
foreach ($Artists as $Artist) {
|
||||||
if (trim($Artist) != "") {
|
if (trim($Artist) != '') {
|
||||||
$ParsedArtists[] = db_string(trim($Artist));
|
$ParsedArtists[] = db_string(trim($Artist));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (count($ParsedArtists) > 0) {
|
if (count($ParsedArtists) > 0) {
|
||||||
$ArtistList = '|'.implode("|", $ParsedArtists).'|';
|
$ArtistList = '|'.implode('|', $ParsedArtists).'|';
|
||||||
$HasFilter = true;
|
$HasFilter = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -114,7 +115,21 @@
|
|||||||
if ($_POST['toyear'.$FormID] && is_number($_POST['toyear'.$FormID])) {
|
if ($_POST['toyear'.$FormID] && is_number($_POST['toyear'.$FormID])) {
|
||||||
$ToYear = trim($_POST['toyear'.$FormID]);
|
$ToYear = trim($_POST['toyear'.$FormID]);
|
||||||
} else {
|
} else {
|
||||||
$ToYear = date('Y')+3;
|
$ToYear = date('Y') + 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_POST['record_labels'.$FormID]) {
|
||||||
|
$RLs = explode(',', $_POST['record_labels'.$FormID]);
|
||||||
|
$ParsedRLs = array();
|
||||||
|
foreach ($RLs as $RL) {
|
||||||
|
if (trim($RL) != '') {
|
||||||
|
$ParsedRLs[] = db_string(trim($RL));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (count($ParsedRLs) > 0) {
|
||||||
|
$RecordLabels = '|'.implode('|', $ParsedRLs).'|';
|
||||||
|
$HasFilter = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,25 +150,30 @@
|
|||||||
$NotTagList = str_replace('||','|',$NotTagList);
|
$NotTagList = str_replace('||','|',$NotTagList);
|
||||||
|
|
||||||
if ($_POST['id'.$FormID] && is_number($_POST['id'.$FormID])) {
|
if ($_POST['id'.$FormID] && is_number($_POST['id'.$FormID])) {
|
||||||
$DB->query("UPDATE users_notify_filters SET
|
$DB->query("
|
||||||
Artists='$ArtistList',
|
UPDATE users_notify_filters
|
||||||
ExcludeVA='$ExcludeVA',
|
SET
|
||||||
NewGroupsOnly='$NewGroupsOnly',
|
Artists='$ArtistList',
|
||||||
Tags='$TagList',
|
ExcludeVA='$ExcludeVA',
|
||||||
NotTags='$NotTagList',
|
NewGroupsOnly='$NewGroupsOnly',
|
||||||
ReleaseTypes='$ReleaseTypeList',
|
Tags='$TagList',
|
||||||
Categories='$CategoryList',
|
NotTags='$NotTagList',
|
||||||
Formats='$FormatList',
|
ReleaseTypes='$ReleaseTypeList',
|
||||||
Encodings='$EncodingList',
|
Categories='$CategoryList',
|
||||||
Media='$MediaList',
|
Formats='$FormatList',
|
||||||
FromYear='$FromYear',
|
Encodings='$EncodingList',
|
||||||
ToYear='$ToYear'
|
Media='$MediaList',
|
||||||
WHERE ID='".$_POST['id'.$FormID]."' AND UserID='$LoggedUser[ID]'");
|
FromYear='$FromYear',
|
||||||
|
ToYear='$ToYear',
|
||||||
|
RecordLabels='$RecordLabels'
|
||||||
|
WHERE ID='".$_POST['id'.$FormID]."'
|
||||||
|
AND UserID='$LoggedUser[ID]'");
|
||||||
} else {
|
} else {
|
||||||
$DB->query("INSERT INTO users_notify_filters
|
$DB->query("
|
||||||
(UserID, Label, Artists, ExcludeVA, NewGroupsOnly, Tags, NotTags, ReleaseTypes, Categories, Formats, Encodings, Media, FromYear, ToYear)
|
INSERT INTO users_notify_filters
|
||||||
|
(UserID, Label, Artists, ExcludeVA, NewGroupsOnly, Tags, NotTags, ReleaseTypes, Categories, Formats, Encodings, Media, FromYear, ToYear, RecordLabels)
|
||||||
VALUES
|
VALUES
|
||||||
('$LoggedUser[ID]','".db_string($_POST['label'.$FormID])."','$ArtistList','$ExcludeVA','$NewGroupsOnly','$TagList', '$NotTagList', '$ReleaseTypeList','$CategoryList','$FormatList','$EncodingList','$MediaList', '$FromYear', '$ToYear')");
|
('$LoggedUser[ID]','".db_string($_POST['label'.$FormID])."','$ArtistList','$ExcludeVA','$NewGroupsOnly','$TagList', '$NotTagList', '$ReleaseTypeList','$CategoryList','$FormatList','$EncodingList','$MediaList', '$FromYear', '$ToYear', '$RecordLabels')");
|
||||||
}
|
}
|
||||||
|
|
||||||
$Cache->delete_value('notify_filters_'.$LoggedUser['ID']);
|
$Cache->delete_value('notify_filters_'.$LoggedUser['ID']);
|
||||||
|
@ -168,7 +168,7 @@ function check_paranoia_here($Setting) {
|
|||||||
$DB->query("SELECT FriendID FROM friends WHERE UserID='$LoggedUser[ID]' AND FriendID='$UserID'");
|
$DB->query("SELECT FriendID FROM friends WHERE UserID='$LoggedUser[ID]' AND FriendID='$UserID'");
|
||||||
if ($DB->record_count() == 0) { ?>
|
if ($DB->record_count() == 0) { ?>
|
||||||
<a href="friends.php?action=add&friendid=<?=$UserID?>&auth=<?=$LoggedUser['AuthKey']?>" class="brackets">Add to friends</a>
|
<a href="friends.php?action=add&friendid=<?=$UserID?>&auth=<?=$LoggedUser['AuthKey']?>" class="brackets">Add to friends</a>
|
||||||
<? }?>
|
<? } ?>
|
||||||
<a href="reports.php?action=report&type=user&id=<?=$UserID?>" class="brackets">Report user</a>
|
<a href="reports.php?action=report&type=user&id=<?=$UserID?>" class="brackets">Report user</a>
|
||||||
<?
|
<?
|
||||||
|
|
||||||
@ -491,9 +491,9 @@ function check_paranoia_here($Setting) {
|
|||||||
<? } ?>
|
<? } ?>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<span style="float: left;">Profile<? if ($CustomTitle) {?> - </span>
|
<span style="float: left;">Profile<? if ($CustomTitle) { ?> - </span>
|
||||||
<span class="user_title"><? echo html_entity_decode($DisplayCustomTitle); } ?></span>
|
<span class="user_title"><? echo html_entity_decode($DisplayCustomTitle); } ?></span>
|
||||||
<span style="float: right;"><?=!empty($Badges)?"$Badges ":''?><a href="#" onclick="$('#profilediv').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets">Hide</a></span>
|
<span style="float: right;"><?=(!empty($Badges) ? "$Badges " : '')?><a href="#" onclick="$('#profilediv').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets">Hide</a></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pad" id="profilediv">
|
<div class="pad" id="profilediv">
|
||||||
<? if (!$Info) { ?>
|
<? if (!$Info) { ?>
|
||||||
@ -510,19 +510,20 @@ function check_paranoia_here($Setting) {
|
|||||||
if ($Snatched > 4 && check_paranoia_here('snatched')) {
|
if ($Snatched > 4 && check_paranoia_here('snatched')) {
|
||||||
$RecentSnatches = $Cache->get_value('recent_snatches_'.$UserID);
|
$RecentSnatches = $Cache->get_value('recent_snatches_'.$UserID);
|
||||||
if (!is_array($RecentSnatches)) {
|
if (!is_array($RecentSnatches)) {
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
g.ID,
|
SELECT
|
||||||
g.Name,
|
g.ID,
|
||||||
g.WikiImage
|
g.Name,
|
||||||
FROM xbt_snatched AS s
|
g.WikiImage
|
||||||
INNER JOIN torrents AS t ON t.ID=s.fid
|
FROM xbt_snatched AS s
|
||||||
INNER JOIN torrents_group AS g ON t.GroupID=g.ID
|
INNER JOIN torrents AS t ON t.ID=s.fid
|
||||||
WHERE s.uid='$UserID'
|
INNER JOIN torrents_group AS g ON t.GroupID=g.ID
|
||||||
AND g.CategoryID='1'
|
WHERE s.uid='$UserID'
|
||||||
AND g.WikiImage <> ''
|
AND g.CategoryID='1'
|
||||||
GROUP BY g.ID
|
AND g.WikiImage <> ''
|
||||||
ORDER BY s.tstamp DESC
|
GROUP BY g.ID
|
||||||
LIMIT 5");
|
ORDER BY s.tstamp DESC
|
||||||
|
LIMIT 5");
|
||||||
$RecentSnatches = $DB->to_array();
|
$RecentSnatches = $DB->to_array();
|
||||||
|
|
||||||
$Artists = Artists::get_artists($DB->collect('ID'));
|
$Artists = Artists::get_artists($DB->collect('ID'));
|
||||||
@ -555,18 +556,19 @@ function check_paranoia_here($Setting) {
|
|||||||
if ($Uploads > 4 && check_paranoia_here('uploads')) {
|
if ($Uploads > 4 && check_paranoia_here('uploads')) {
|
||||||
$RecentUploads = $Cache->get_value('recent_uploads_'.$UserID);
|
$RecentUploads = $Cache->get_value('recent_uploads_'.$UserID);
|
||||||
if (!is_array($RecentUploads)) {
|
if (!is_array($RecentUploads)) {
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
g.ID,
|
SELECT
|
||||||
g.Name,
|
g.ID,
|
||||||
g.WikiImage
|
g.Name,
|
||||||
FROM torrents_group AS g
|
g.WikiImage
|
||||||
INNER JOIN torrents AS t ON t.GroupID=g.ID
|
FROM torrents_group AS g
|
||||||
WHERE t.UserID='$UserID'
|
INNER JOIN torrents AS t ON t.GroupID=g.ID
|
||||||
AND g.CategoryID='1'
|
WHERE t.UserID='$UserID'
|
||||||
AND g.WikiImage <> ''
|
AND g.CategoryID='1'
|
||||||
GROUP BY g.ID
|
AND g.WikiImage <> ''
|
||||||
ORDER BY t.Time DESC
|
GROUP BY g.ID
|
||||||
LIMIT 5");
|
ORDER BY t.Time DESC
|
||||||
|
LIMIT 5");
|
||||||
$RecentUploads = $DB->to_array();
|
$RecentUploads = $DB->to_array();
|
||||||
$Artists = Artists::get_artists($DB->collect('ID'));
|
$Artists = Artists::get_artists($DB->collect('ID'));
|
||||||
foreach ($RecentUploads as $Key => $UploadInfo) {
|
foreach ($RecentUploads as $Key => $UploadInfo) {
|
||||||
@ -592,28 +594,36 @@ function check_paranoia_here($Setting) {
|
|||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
|
||||||
$DB->query("SELECT ID, Name FROM collages WHERE UserID='$UserID' AND CategoryID='0' AND Deleted='0' ORDER BY Featured DESC, Name ASC");
|
$DB->query("
|
||||||
|
SELECT ID, Name
|
||||||
|
FROM collages
|
||||||
|
WHERE UserID='$UserID'
|
||||||
|
AND CategoryID='0'
|
||||||
|
AND Deleted='0'
|
||||||
|
ORDER BY Featured DESC, Name ASC");
|
||||||
$Collages = $DB->to_array();
|
$Collages = $DB->to_array();
|
||||||
$FirstCol = true;
|
$FirstCol = true;
|
||||||
foreach ($Collages as $CollageInfo) {
|
foreach ($Collages as $CollageInfo) {
|
||||||
list($CollageID, $CName) = $CollageInfo;
|
list($CollageID, $CName) = $CollageInfo;
|
||||||
$DB->query("SELECT ct.GroupID,
|
$DB->query("
|
||||||
tg.WikiImage,
|
SELECT ct.GroupID,
|
||||||
tg.CategoryID
|
tg.WikiImage,
|
||||||
|
tg.CategoryID
|
||||||
FROM collages_torrents AS ct
|
FROM collages_torrents AS ct
|
||||||
JOIN torrents_group AS tg ON tg.ID=ct.GroupID
|
JOIN torrents_group AS tg ON tg.ID=ct.GroupID
|
||||||
WHERE ct.CollageID='$CollageID'
|
WHERE ct.CollageID='$CollageID'
|
||||||
ORDER BY ct.Sort LIMIT 5");
|
ORDER BY ct.Sort
|
||||||
|
LIMIT 5");
|
||||||
$Collage = $DB->to_array();
|
$Collage = $DB->to_array();
|
||||||
?>
|
?>
|
||||||
<table class="layout recent" id="collage<?=$CollageID?>_box" cellpadding="0" cellspacing="0" border="0">
|
<table class="layout recent" id="collage<?=$CollageID?>_box" cellpadding="0" cellspacing="0" border="0">
|
||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
<td colspan="5">
|
<td colspan="5">
|
||||||
<span style="float:left;">
|
<span style="float: left;">
|
||||||
<a href="#collage<?=$CollageID?>_box"><strong>↑</strong></a> <?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>" class="brackets">See full</a>
|
<a href="#collage<?=$CollageID?>_box"><strong>↑</strong></a> <?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>" class="brackets">See full</a>
|
||||||
</span>
|
</span>
|
||||||
<span style="float:right;">
|
<span style="float: right;">
|
||||||
<a href="#" onclick="$('#collage<?=$CollageID?>_box .images').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets"><?=$FirstCol?'Hide':'Show'?></a>
|
<a href="#" onclick="$('#collage<?=$CollageID?>_box .images').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets"><?=$FirstCol ? 'Hide' : 'Show' ?></a>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -638,8 +648,6 @@ function check_paranoia_here($Setting) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Linked accounts
|
// Linked accounts
|
||||||
if (check_perms('users_mod')) {
|
if (check_perms('users_mod')) {
|
||||||
include(SERVER_ROOT.'/sections/user/linkedfunctions.php');
|
include(SERVER_ROOT.'/sections/user/linkedfunctions.php');
|
||||||
@ -663,7 +671,8 @@ function check_paranoia_here($Setting) {
|
|||||||
|
|
||||||
// Requests
|
// Requests
|
||||||
if (empty($LoggedUser['DisableRequests']) && check_paranoia_here('requestsvoted_list')) {
|
if (empty($LoggedUser['DisableRequests']) && check_paranoia_here('requestsvoted_list')) {
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
|
SELECT
|
||||||
r.ID,
|
r.ID,
|
||||||
r.CategoryID,
|
r.CategoryID,
|
||||||
r.Title,
|
r.Title,
|
||||||
@ -674,7 +683,7 @@ function check_paranoia_here($Setting) {
|
|||||||
FROM requests AS r
|
FROM requests AS r
|
||||||
LEFT JOIN users_main AS u ON u.ID=UserID
|
LEFT JOIN users_main AS u ON u.ID=UserID
|
||||||
LEFT JOIN requests_votes AS rv ON rv.RequestID=r.ID
|
LEFT JOIN requests_votes AS rv ON rv.RequestID=r.ID
|
||||||
WHERE r.UserID = ".$UserID."
|
WHERE r.UserID = $UserID
|
||||||
AND r.TorrentID = 0
|
AND r.TorrentID = 0
|
||||||
GROUP BY r.ID
|
GROUP BY r.ID
|
||||||
ORDER BY Votes DESC");
|
ORDER BY Votes DESC");
|
||||||
@ -689,7 +698,7 @@ function check_paranoia_here($Setting) {
|
|||||||
<div id="requests" class="request_table hidden">
|
<div id="requests" class="request_table hidden">
|
||||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||||
<tr class="colhead_dark">
|
<tr class="colhead_dark">
|
||||||
<td style="width:48%;">
|
<td style="width: 48%;">
|
||||||
<strong>Request name</strong>
|
<strong>Request name</strong>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@ -768,18 +777,20 @@ function check_paranoia_here($Setting) {
|
|||||||
$IsFLS = $LoggedUser['ExtraClasses'][41];
|
$IsFLS = $LoggedUser['ExtraClasses'][41];
|
||||||
if (check_perms('users_mod', $Class) || $IsFLS) {
|
if (check_perms('users_mod', $Class) || $IsFLS) {
|
||||||
$UserLevel = $LoggedUser['EffectiveClass'];
|
$UserLevel = $LoggedUser['EffectiveClass'];
|
||||||
$DB->query("SELECT
|
$DB->query("
|
||||||
SQL_CALC_FOUND_ROWS
|
SELECT
|
||||||
ID,
|
SQL_CALC_FOUND_ROWS
|
||||||
Subject,
|
ID,
|
||||||
Status,
|
Subject,
|
||||||
Level,
|
Status,
|
||||||
AssignedToUser,
|
Level,
|
||||||
Date,
|
AssignedToUser,
|
||||||
ResolverID
|
Date,
|
||||||
FROM staff_pm_conversations
|
ResolverID
|
||||||
WHERE UserID = $UserID AND (Level <= $UserLevel OR AssignedToUser='".$LoggedUser['ID']."')
|
FROM staff_pm_conversations
|
||||||
ORDER BY Date DESC");
|
WHERE UserID = $UserID
|
||||||
|
AND (Level <= $UserLevel OR AssignedToUser='".$LoggedUser['ID']."')
|
||||||
|
ORDER BY Date DESC");
|
||||||
if ($DB->record_count()) {
|
if ($DB->record_count()) {
|
||||||
$StaffPMs = $DB->to_array();
|
$StaffPMs = $DB->to_array();
|
||||||
?>
|
?>
|
||||||
@ -799,10 +810,10 @@ function check_paranoia_here($Setting) {
|
|||||||
// Get assigned
|
// Get assigned
|
||||||
if ($AssignedToUser == '') {
|
if ($AssignedToUser == '') {
|
||||||
// Assigned to class
|
// Assigned to class
|
||||||
$Assigned = ($Level == 0) ? "First Line Support" : $ClassLevels[$Level]['Name'];
|
$Assigned = ($Level == 0) ? 'First Line Support' : $ClassLevels[$Level]['Name'];
|
||||||
// No + on Sysops
|
// No + on Sysops
|
||||||
if ($Assigned != 'Sysop') {
|
if ($Assigned != 'Sysop') {
|
||||||
$Assigned .= "+";
|
$Assigned .= '+';
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -813,7 +824,7 @@ function check_paranoia_here($Setting) {
|
|||||||
if ($ResolverID) {
|
if ($ResolverID) {
|
||||||
$Resolver = Users::format_username($ResolverID, true, true, true, true);
|
$Resolver = Users::format_username($ResolverID, true, true, true, true);
|
||||||
} else {
|
} else {
|
||||||
$Resolver = "(unresolved)";
|
$Resolver = '(unresolved)';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -841,7 +852,7 @@ function check_paranoia_here($Setting) {
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="head">Forum warnings</div>
|
<div class="head">Forum warnings</div>
|
||||||
<div class="pad">
|
<div class="pad">
|
||||||
<div id="forumwarningslinks" class="AdminComment box" style="width:98%;"><?=$Text->full_format($ForumWarnings)?></div>
|
<div id="forumwarningslinks" class="AdminComment box" style="width: 98%;"><?=$Text->full_format($ForumWarnings)?></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
@ -862,8 +873,8 @@ function check_paranoia_here($Setting) {
|
|||||||
</div>
|
</div>
|
||||||
<div id="staffnotes" class="pad">
|
<div id="staffnotes" class="pad">
|
||||||
<input type="hidden" name="comment_hash" value="<?=$CommentHash?>" />
|
<input type="hidden" name="comment_hash" value="<?=$CommentHash?>" />
|
||||||
<div id="admincommentlinks" class="AdminComment box" style="width:98%;"><?=$Text->full_format($AdminComment)?></div>
|
<div id="admincommentlinks" class="AdminComment box" style="width: 98%;"><?=$Text->full_format($AdminComment)?></div>
|
||||||
<textarea id="admincomment" onkeyup="resize('admincomment');" class="AdminComment hidden" name="AdminComment" cols="65" rows="26" style="width:98%;"><?=display_str($AdminComment)?></textarea>
|
<textarea id="admincomment" onkeyup="resize('admincomment');" class="AdminComment hidden" name="AdminComment" cols="65" rows="26" style="width: 98%;"><?=display_str($AdminComment)?></textarea>
|
||||||
<a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Toggle edit</a>
|
<a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Toggle edit</a>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
resize('admincomment');
|
resize('admincomment');
|
||||||
@ -893,7 +904,7 @@ function check_paranoia_here($Setting) {
|
|||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_perms('users_promote_below', $Class) || check_perms('users_promote_to', $Class-1)) {
|
if (check_perms('users_promote_below', $Class) || check_perms('users_promote_to', $Class - 1)) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label">Primary class:</td>
|
<td class="label">Primary class:</td>
|
||||||
@ -937,11 +948,12 @@ function check_paranoia_here($Setting) {
|
|||||||
<td class="label">Secondary classes:</td>
|
<td class="label">Secondary classes:</td>
|
||||||
<td>
|
<td>
|
||||||
<?
|
<?
|
||||||
$DB->query("SELECT p.ID, p.Name, l.UserID
|
$DB->query("
|
||||||
FROM permissions AS p
|
SELECT p.ID, p.Name, l.UserID
|
||||||
LEFT JOIN users_levels AS l ON l.PermissionID = p.ID AND l.UserID = '$UserID'
|
FROM permissions AS p
|
||||||
WHERE p.Secondary = 1
|
LEFT JOIN users_levels AS l ON l.PermissionID = p.ID AND l.UserID = '$UserID'
|
||||||
ORDER BY p.Name");
|
WHERE p.Secondary = 1
|
||||||
|
ORDER BY p.Name");
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while (list($PermID, $PermName, $IsSet) = $DB->next_record()) {
|
while (list($PermID, $PermName, $IsSet) = $DB->next_record()) {
|
||||||
$i++;
|
$i++;
|
||||||
@ -1068,7 +1080,7 @@ function check_paranoia_here($Setting) {
|
|||||||
<input type="checkbox" name="Warned"<? if ($Warned != '0000-00-00 00:00:00') { ?> checked="checked"<? } ?> />
|
<input type="checkbox" name="Warned"<? if ($Warned != '0000-00-00 00:00:00') { ?> checked="checked"<? } ?> />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? if ($Warned=='0000-00-00 00:00:00') { // user is not warned ?>
|
<? if ($Warned == '0000-00-00 00:00:00') { // user is not warned ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label">Expiration:</td>
|
<td class="label">Expiration:</td>
|
||||||
<td>
|
<td>
|
||||||
@ -1122,7 +1134,11 @@ function check_paranoia_here($Setting) {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? if (check_perms('users_disable_posts') || check_perms('users_disable_any')) {
|
<? if (check_perms('users_disable_posts') || check_perms('users_disable_any')) {
|
||||||
$DB->query("SELECT DISTINCT Email, IP FROM users_history_emails WHERE UserID = ".$UserID." ORDER BY Time ASC");
|
$DB->query("
|
||||||
|
SELECT DISTINCT Email, IP
|
||||||
|
FROM users_history_emails
|
||||||
|
WHERE UserID = $UserID
|
||||||
|
ORDER BY Time ASC");
|
||||||
$Emails = $DB->to_array();
|
$Emails = $DB->to_array();
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -45,18 +45,24 @@ function ShowIPs(rowname) {
|
|||||||
<?
|
<?
|
||||||
list($Page,$Limit) = Format::page_limit(IPS_PER_PAGE);
|
list($Page,$Limit) = Format::page_limit(IPS_PER_PAGE);
|
||||||
|
|
||||||
$TrackerIps = $DB->query("SELECT IP, fid, tstamp FROM xbt_snatched WHERE uid = ".$UserID." AND IP != '' ORDER BY tstamp DESC LIMIT $Limit");
|
$TrackerIps = $DB->query("
|
||||||
|
SELECT IP, fid, tstamp
|
||||||
|
FROM xbt_snatched
|
||||||
|
WHERE uid = $UserID
|
||||||
|
AND IP != ''
|
||||||
|
ORDER BY tstamp DESC
|
||||||
|
LIMIT $Limit");
|
||||||
|
|
||||||
$DB->query("SELECT FOUND_ROWS()");
|
$DB->query("SELECT FOUND_ROWS()");
|
||||||
list($NumResults) = $DB->next_record();
|
list($NumResults) = $DB->next_record();
|
||||||
$DB->set_query_id($TrackerIps);
|
$DB->set_query_id($TrackerIps);
|
||||||
|
|
||||||
$Pages=Format::get_pages($Page,$NumResults,IPS_PER_PAGE,9);
|
$Pages = Format::get_pages($Page, $NumResults, IPS_PER_PAGE, 9);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="thin">
|
<div class="thin">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h2>Tracker IP address history for <a href="/user.php?id=<?=$UserID?>"><?=$Username?></a></h2>
|
<h2>Tracker IP address history for <a href="user.php?id=<?=$UserID?>"><?=$Username?></a></h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="linkbox"><?=$Pages?></div>
|
<div class="linkbox"><?=$Pages?></div>
|
||||||
<table>
|
<table>
|
||||||
|
@ -7,11 +7,9 @@
|
|||||||
error(403);
|
error(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class
|
include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class
|
||||||
$Text = new TEXT;
|
$Text = new TEXT;
|
||||||
|
|
||||||
|
|
||||||
$UserID = empty($_GET['userid']) ? $LoggedUser['ID'] : $_GET['userid'];
|
$UserID = empty($_GET['userid']) ? $LoggedUser['ID'] : $_GET['userid'];
|
||||||
if (!is_number($UserID)) {
|
if (!is_number($UserID)) {
|
||||||
error(0);
|
error(0);
|
||||||
@ -33,47 +31,50 @@
|
|||||||
if ($LoggedUser['CustomForums']) {
|
if ($LoggedUser['CustomForums']) {
|
||||||
unset($LoggedUser['CustomForums']['']);
|
unset($LoggedUser['CustomForums']['']);
|
||||||
$RestrictedForums = implode("','", array_keys($LoggedUser['CustomForums'], 0));
|
$RestrictedForums = implode("','", array_keys($LoggedUser['CustomForums'], 0));
|
||||||
|
$PermittedForums = implode("','", array_keys($LoggedUser['CustomForums'], 1));
|
||||||
}
|
}
|
||||||
$ViewingOwn = ($UserID == $LoggedUser['ID']);
|
$ViewingOwn = ($UserID == $LoggedUser['ID']);
|
||||||
$ShowUnread = ($ViewingOwn && (!isset($_GET['showunread']) || !!$_GET['showunread']));
|
$ShowUnread = ($ViewingOwn && (!isset($_GET['showunread']) || !!$_GET['showunread']));
|
||||||
$ShowGrouped = ($ViewingOwn && (!isset($_GET['group']) || !!$_GET['group']));
|
$ShowGrouped = ($ViewingOwn && (!isset($_GET['group']) || !!$_GET['group']));
|
||||||
if ($ShowGrouped) {
|
if ($ShowGrouped) {
|
||||||
$sql = 'SELECT
|
$sql = '
|
||||||
SQL_CALC_FOUND_ROWS
|
SELECT
|
||||||
MAX(p.ID) AS ID
|
SQL_CALC_FOUND_ROWS
|
||||||
|
MAX(p.ID) AS ID
|
||||||
FROM forums_posts AS p
|
FROM forums_posts AS p
|
||||||
LEFT JOIN forums_topics AS t ON t.ID = p.TopicID';
|
LEFT JOIN forums_topics AS t ON t.ID = p.TopicID';
|
||||||
if ($ShowUnread) {
|
if ($ShowUnread) {
|
||||||
$sql.='
|
$sql.='
|
||||||
LEFT JOIN forums_last_read_topics AS l ON l.TopicID = t.ID AND l.UserID = '.$LoggedUser['ID'];
|
LEFT JOIN forums_last_read_topics AS l ON l.TopicID = t.ID AND l.UserID = '.$LoggedUser['ID'];
|
||||||
}
|
}
|
||||||
$sql .= '
|
$sql .= '
|
||||||
LEFT JOIN forums AS f ON f.ID = t.ForumID
|
LEFT JOIN forums AS f ON f.ID = t.ForumID
|
||||||
WHERE p.AuthorID = '.$UserID.'
|
WHERE p.AuthorID = '.$UserID.'
|
||||||
AND ((f.MinClassRead <= '.$LoggedUser['EffectiveClass'];
|
AND ((f.MinClassRead <= '.$LoggedUser['Class'];
|
||||||
if (!empty($RestrictedForums)) {
|
if (!empty($RestrictedForums)) {
|
||||||
$sql.='
|
$sql.='
|
||||||
AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
||||||
}
|
}
|
||||||
$sql .= ')';
|
$sql .= ')';
|
||||||
if (!empty($PermittedForums)) {
|
if (!empty($PermittedForums)) {
|
||||||
$sql.='
|
$sql.='
|
||||||
OR f.ID IN (\''.$PermittedForums.'\')';
|
OR f.ID IN (\''.$PermittedForums.'\')';
|
||||||
}
|
}
|
||||||
$sql .= ')';
|
$sql .= ')';
|
||||||
if ($ShowUnread) {
|
if ($ShowUnread) {
|
||||||
$sql .= '
|
$sql .= '
|
||||||
AND ((t.IsLocked=\'0\' OR t.IsSticky=\'1\')
|
AND ((t.IsLocked=\'0\' OR t.IsSticky=\'1\')
|
||||||
AND (l.PostID<t.LastPostID OR l.PostID IS NULL))';
|
AND (l.PostID<t.LastPostID OR l.PostID IS NULL))';
|
||||||
}
|
}
|
||||||
$sql .= '
|
$sql .= '
|
||||||
GROUP BY t.ID
|
GROUP BY t.ID
|
||||||
ORDER BY p.ID DESC LIMIT '.$Limit;
|
ORDER BY p.ID DESC
|
||||||
|
LIMIT '.$Limit;
|
||||||
$PostIDs = $DB->query($sql);
|
$PostIDs = $DB->query($sql);
|
||||||
$DB->query("SELECT FOUND_ROWS()");
|
$DB->query("SELECT FOUND_ROWS()");
|
||||||
list($Results) = $DB->next_record();
|
list($Results) = $DB->next_record();
|
||||||
|
|
||||||
if ($Results > $PerPage*($Page-1)) {
|
if ($Results > $PerPage * ($Page - 1)) {
|
||||||
$DB->set_query_id($PostIDs);
|
$DB->set_query_id($PostIDs);
|
||||||
$PostIDs = $DB->collect('ID');
|
$PostIDs = $DB->collect('ID');
|
||||||
$sql = '
|
$sql = '
|
||||||
@ -102,28 +103,28 @@
|
|||||||
$Posts = $DB->query($sql);
|
$Posts = $DB->query($sql);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$sql = 'SELECT
|
$sql = '
|
||||||
SQL_CALC_FOUND_ROWS';
|
SELECT SQL_CALC_FOUND_ROWS';
|
||||||
if ($ShowGrouped) {
|
if ($ShowGrouped) {
|
||||||
$sql.=' * FROM (SELECT';
|
$sql.=' * FROM (SELECT';
|
||||||
}
|
}
|
||||||
$sql .= '
|
$sql .= '
|
||||||
p.ID,
|
p.ID,
|
||||||
p.AddedTime,
|
p.AddedTime,
|
||||||
p.Body,
|
p.Body,
|
||||||
p.EditedUserID,
|
p.EditedUserID,
|
||||||
p.EditedTime,
|
p.EditedTime,
|
||||||
ed.Username,
|
ed.Username,
|
||||||
p.TopicID,
|
p.TopicID,
|
||||||
t.Title,
|
t.Title,
|
||||||
t.LastPostID,';
|
t.LastPostID,';
|
||||||
if ($UserID == $LoggedUser['ID']) {
|
if ($UserID == $LoggedUser['ID']) {
|
||||||
$sql .= '
|
$sql .= '
|
||||||
l.PostID AS LastRead,';
|
l.PostID AS LastRead,';
|
||||||
}
|
}
|
||||||
$sql .= '
|
$sql .= '
|
||||||
t.IsLocked,
|
t.IsLocked,
|
||||||
t.IsSticky
|
t.IsSticky
|
||||||
FROM forums_posts as p
|
FROM forums_posts as p
|
||||||
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
|
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
|
||||||
LEFT JOIN users_info AS ui ON ui.UserID = p.AuthorID
|
LEFT JOIN users_info AS ui ON ui.UserID = p.AuthorID
|
||||||
@ -132,16 +133,25 @@
|
|||||||
JOIN forums AS f ON f.ID = t.ForumID
|
JOIN forums AS f ON f.ID = t.ForumID
|
||||||
LEFT JOIN forums_last_read_topics AS l ON l.UserID = '.$UserID.' AND l.TopicID = t.ID
|
LEFT JOIN forums_last_read_topics AS l ON l.UserID = '.$UserID.' AND l.TopicID = t.ID
|
||||||
WHERE p.AuthorID = '.$UserID.'
|
WHERE p.AuthorID = '.$UserID.'
|
||||||
AND f.MinClassRead <= '.$LoggedUser['EffectiveClass'];
|
AND ((f.MinClassRead <= '.$LoggedUser['Class'];
|
||||||
|
|
||||||
if (!empty($RestrictedForums)) {
|
if (!empty($RestrictedForums)) {
|
||||||
$sql.='
|
$sql.='
|
||||||
AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
||||||
}
|
}
|
||||||
|
$sql .= ')';
|
||||||
|
|
||||||
|
if (!empty($PermittedForums)) {
|
||||||
|
$sql.='
|
||||||
|
OR f.ID IN (\''.$PermittedForums.'\')';
|
||||||
|
}
|
||||||
|
$sql .= ')';
|
||||||
|
|
||||||
if ($ShowUnread) {
|
if ($ShowUnread) {
|
||||||
$sql.='
|
$sql.='
|
||||||
AND ((t.IsLocked=\'0\' OR t.IsSticky=\'1\') AND (l.PostID<t.LastPostID OR l.PostID IS NULL)) ';
|
AND ( (t.IsLocked=\'0\' OR t.IsSticky=\'1\')
|
||||||
|
AND (l.PostID<t.LastPostID OR l.PostID IS NULL)
|
||||||
|
) ';
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql .= '
|
$sql .= '
|
||||||
@ -150,7 +160,8 @@
|
|||||||
if ($ShowGrouped) {
|
if ($ShowGrouped) {
|
||||||
$sql.='
|
$sql.='
|
||||||
) AS sub
|
) AS sub
|
||||||
GROUP BY TopicID ORDER BY ID DESC';
|
GROUP BY TopicID
|
||||||
|
ORDER BY ID DESC';
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql.=' LIMIT '.$Limit;
|
$sql.=' LIMIT '.$Limit;
|
||||||
@ -226,7 +237,7 @@
|
|||||||
?>
|
?>
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<?
|
<?
|
||||||
$Pages=Format::get_pages($Page, $Results, $PerPage, 11);
|
$Pages = Format::get_pages($Page, $Results, $PerPage, 11);
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,18 +27,19 @@
|
|||||||
|
|
||||||
$ShowUnread = (!isset($_GET['showunread']) && !isset($HeavyInfo['SubscriptionsUnread']) || isset($HeavyInfo['SubscriptionsUnread']) && !!$HeavyInfo['SubscriptionsUnread'] || isset($_GET['showunread']) && !!$_GET['showunread']);
|
$ShowUnread = (!isset($_GET['showunread']) && !isset($HeavyInfo['SubscriptionsUnread']) || isset($HeavyInfo['SubscriptionsUnread']) && !!$HeavyInfo['SubscriptionsUnread'] || isset($_GET['showunread']) && !!$_GET['showunread']);
|
||||||
$ShowCollapsed = (!isset($_GET['collapse']) && !isset($HeavyInfo['SubscriptionsCollapse']) || isset($HeavyInfo['SubscriptionsCollapse']) && !!$HeavyInfo['SubscriptionsCollapse'] || isset($_GET['collapse']) && !!$_GET['collapse']);
|
$ShowCollapsed = (!isset($_GET['collapse']) && !isset($HeavyInfo['SubscriptionsCollapse']) || isset($HeavyInfo['SubscriptionsCollapse']) && !!$HeavyInfo['SubscriptionsCollapse'] || isset($_GET['collapse']) && !!$_GET['collapse']);
|
||||||
$sql = 'SELECT
|
$sql = '
|
||||||
SQL_CALC_FOUND_ROWS
|
SELECT SQL_CALC_FOUND_ROWS
|
||||||
MAX(p.ID) AS ID
|
MAX(p.ID) AS ID
|
||||||
FROM (SELECT TopicID
|
FROM ( SELECT TopicID
|
||||||
FROM users_subscriptions
|
FROM users_subscriptions
|
||||||
WHERE UserID = '.$LoggedUser['ID'].') AS s
|
WHERE UserID = '.$LoggedUser['ID'].'
|
||||||
LEFT JOIN forums_last_read_topics AS l ON s.TopicID = l.TopicID AND l.UserID = '.$LoggedUser['ID'].'
|
) AS s
|
||||||
JOIN forums_topics AS t ON t.ID = s.TopicID
|
LEFT JOIN forums_last_read_topics AS l ON s.TopicID = l.TopicID AND l.UserID = '.$LoggedUser['ID'].'
|
||||||
JOIN forums_posts AS p ON t.ID = p.TopicID
|
JOIN forums_topics AS t ON t.ID = s.TopicID
|
||||||
JOIN forums AS f ON f.ID = t.ForumID
|
JOIN forums_posts AS p ON t.ID = p.TopicID
|
||||||
|
JOIN forums AS f ON f.ID = t.ForumID
|
||||||
WHERE p.ID <= IFNULL(l.PostID,t.LastPostID)
|
WHERE p.ID <= IFNULL(l.PostID,t.LastPostID)
|
||||||
AND ((f.MinClassRead <= '.$LoggedUser['Class'];
|
AND ((f.MinClassRead <= '.$LoggedUser['Class'];
|
||||||
if (!empty($RestrictedForums)) {
|
if (!empty($RestrictedForums)) {
|
||||||
$sql.=' AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
$sql.=' AND f.ID NOT IN (\''.$RestrictedForums.'\')';
|
||||||
}
|
}
|
||||||
@ -51,7 +52,7 @@
|
|||||||
|
|
||||||
|
|
||||||
$sql .= '
|
$sql .= '
|
||||||
AND IF(l.PostID IS NULL OR (t.IsLocked = \'1\' && t.IsSticky = \'0\'), t.LastPostID, l.PostID) < t.LastPostID';
|
AND IF(l.PostID IS NULL OR (t.IsLocked = \'1\' && t.IsSticky = \'0\'), t.LastPostID, l.PostID) < t.LastPostID';
|
||||||
$sql .= ' OR (t.AuthorID != '.$LoggedUser['ID'].' AND l.PostID IS NULL)';
|
$sql .= ' OR (t.AuthorID != '.$LoggedUser['ID'].' AND l.PostID IS NULL)';
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -63,31 +64,32 @@
|
|||||||
$DB->query('SELECT FOUND_ROWS()');
|
$DB->query('SELECT FOUND_ROWS()');
|
||||||
list($NumResults) = $DB->next_record();
|
list($NumResults) = $DB->next_record();
|
||||||
|
|
||||||
if ($NumResults > $PerPage*($Page-1)) {
|
if ($NumResults > $PerPage * ($Page - 1)) {
|
||||||
$DB->set_query_id($PostIDs);
|
$DB->set_query_id($PostIDs);
|
||||||
$PostIDs = $DB->collect('ID');
|
$PostIDs = $DB->collect('ID');
|
||||||
$sql = 'SELECT
|
$sql = '
|
||||||
f.ID AS ForumID,
|
SELECT
|
||||||
f.Name AS ForumName,
|
f.ID AS ForumID,
|
||||||
p.TopicID,
|
f.Name AS ForumName,
|
||||||
t.Title,
|
p.TopicID,
|
||||||
p.Body,
|
t.Title,
|
||||||
t.LastPostID,
|
p.Body,
|
||||||
t.IsLocked,
|
t.LastPostID,
|
||||||
t.IsSticky,
|
t.IsLocked,
|
||||||
p.ID,
|
t.IsSticky,
|
||||||
um.ID,
|
p.ID,
|
||||||
um.Username,
|
um.ID,
|
||||||
ui.Avatar,
|
um.Username,
|
||||||
p.EditedUserID,
|
ui.Avatar,
|
||||||
p.EditedTime,
|
p.EditedUserID,
|
||||||
ed.Username AS EditedUsername
|
p.EditedTime,
|
||||||
|
ed.Username AS EditedUsername
|
||||||
FROM forums_posts AS p
|
FROM forums_posts AS p
|
||||||
LEFT JOIN forums_topics AS t ON t.ID = p.TopicID
|
LEFT JOIN forums_topics AS t ON t.ID = p.TopicID
|
||||||
LEFT JOIN forums AS f ON f.ID = t.ForumID
|
LEFT JOIN forums AS f ON f.ID = t.ForumID
|
||||||
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
|
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
|
||||||
LEFT JOIN users_info AS ui ON ui.UserID = um.ID
|
LEFT JOIN users_info AS ui ON ui.UserID = um.ID
|
||||||
LEFT JOIN users_main AS ed ON ed.ID = um.ID
|
LEFT JOIN users_main AS ed ON ed.ID = um.ID
|
||||||
WHERE p.ID IN ('.implode(',',$PostIDs).')
|
WHERE p.ID IN ('.implode(',',$PostIDs).')
|
||||||
ORDER BY f.Name ASC, t.LastPostID DESC';
|
ORDER BY f.Name ASC, t.LastPostID DESC';
|
||||||
$DB->query($sql);
|
$DB->query($sql);
|
||||||
@ -95,7 +97,7 @@
|
|||||||
?>
|
?>
|
||||||
<div class="thin">
|
<div class="thin">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h2><?='Subscribed topics'.($ShowUnread?' with unread posts':'')?></h2>
|
<h2><?='Subscribed topics'.($ShowUnread ? ' with unread posts' : '')?></h2>
|
||||||
|
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<?
|
<?
|
||||||
@ -112,7 +114,7 @@
|
|||||||
}
|
}
|
||||||
if ($NumResults) {
|
if ($NumResults) {
|
||||||
?>
|
?>
|
||||||
<a href="#" onclick="Collapse();return false;" id="collapselink" class="brackets"><?=$ShowCollapsed?'Show':'Hide'?> post bodies</a>
|
<a href="#" onclick="Collapse();return false;" id="collapselink" class="brackets"><?=$ShowCollapsed ? 'Show' : 'Hide' ?> post bodies</a>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -132,7 +134,7 @@
|
|||||||
?>
|
?>
|
||||||
<div class="linkbox">
|
<div class="linkbox">
|
||||||
<?
|
<?
|
||||||
$Pages=Format::get_pages($Page,$NumResults,$PerPage, 11);
|
$Pages = Format::get_pages($Page, $NumResults, $PerPage, 11);
|
||||||
echo $Pages;
|
echo $Pages;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -148,17 +150,17 @@
|
|||||||
</colgroup>
|
</colgroup>
|
||||||
<tr class="colhead_dark">
|
<tr class="colhead_dark">
|
||||||
<td colspan="<?=Users::has_avatars_enabled() ? 2 : 1 ?>">
|
<td colspan="<?=Users::has_avatars_enabled() ? 2 : 1 ?>">
|
||||||
<span style="float:left;">
|
<span style="float: left;">
|
||||||
<a href="forums.php?action=viewforum&forumid=<?=$ForumID?>"><?=$ForumName?></a> >
|
<a href="forums.php?action=viewforum&forumid=<?=$ForumID?>"><?=$ForumName?></a> >
|
||||||
<a href="forums.php?action=viewthread&threadid=<?=$TopicID?>" title="<?=display_str($ThreadTitle)?>"><?=Format::cut_string($ThreadTitle, 75)?></a>
|
<a href="forums.php?action=viewthread&threadid=<?=$TopicID?>" title="<?=display_str($ThreadTitle)?>"><?=Format::cut_string($ThreadTitle, 75)?></a>
|
||||||
<? if ($PostID < $LastPostID && !$Locked) { ?>
|
<? if ($PostID < $LastPostID && !$Locked) { ?>
|
||||||
<span class="new">(New!)</span>
|
<span class="new">(New!)</span>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</span>
|
</span>
|
||||||
<span style="float:left;" class="last_read" title="Jump to last read">
|
<span style="float: left;" class="last_read" title="Jump to last read">
|
||||||
<a href="forums.php?action=viewthread&threadid=<?=$TopicID.($PostID?'&postid='.$PostID.'#post'.$PostID:'')?>"></a>
|
<a href="forums.php?action=viewthread&threadid=<?=$TopicID.($PostID ? '&postid='.$PostID.'#post'.$PostID : '')?>"></a>
|
||||||
</span>
|
</span>
|
||||||
<span id="bar<?=$PostID ?>" style="float:right;">
|
<span id="bar<?=$PostID ?>" style="float: right;">
|
||||||
<a href="#" onclick="Subscribe(<?=$TopicID?>);return false;" id="subscribelink<?=$TopicID?>" class="brackets">Unsubscribe</a>
|
<a href="#" onclick="Subscribe(<?=$TopicID?>);return false;" id="subscribelink<?=$TopicID?>" class="brackets">Unsubscribe</a>
|
||||||
|
|
||||||
<a href="#">↑</a>
|
<a href="#">↑</a>
|
||||||
@ -190,7 +192,5 @@
|
|||||||
<? } // else -- if (empty($NumResults)) ?>
|
<? } // else -- if (empty($NumResults)) ?>
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
|
|
||||||
View::show_footer();
|
View::show_footer();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -85,8 +85,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="label"><strong>Search in:</strong></td>
|
<td class="label"><strong>Search in:</strong></td>
|
||||||
<td>
|
<td>
|
||||||
<input type="radio" name="type" value="Title" <? if ($Type == 'w.Title') { echo 'checked="checked" '; }?>/> Title
|
<input type="radio" name="type" value="Title" <? if ($Type == 'w.Title') { echo 'checked="checked" '; } ?>/> Title
|
||||||
<input type="radio" name="type" value="Body" <? if ($Type == 'w.Body') { echo 'checked="checked" '; }?>/> Body
|
<input type="radio" name="type" value="Body" <? if ($Type == 'w.Body') { echo 'checked="checked" '; } ?>/> Body
|
||||||
</td>
|
</td>
|
||||||
<td class="label"><strong>Order by:</strong></td>
|
<td class="label"><strong>Order by:</strong></td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -137,8 +137,14 @@ var autocomp = {
|
|||||||
listener.set(li,'mouseover',function() {
|
listener.set(li,'mouseover',function() {
|
||||||
autocomp.highlight(this.i);
|
autocomp.highlight(this.i);
|
||||||
});
|
});
|
||||||
listener.set(li,'click',function() {
|
listener.set(li,'click',function(e) {
|
||||||
window.location = autocomp.id + '.php?id='+this.artistid;
|
var location = autocomp.id + '.php?id='+this.artistid;
|
||||||
|
if(e.button == 0) {
|
||||||
|
window.open(location, '_self');
|
||||||
|
} else if(e.button == 1) {
|
||||||
|
var win = window.open(location, '_blank');
|
||||||
|
win.focus();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
this.list.appendChild(li);
|
this.list.appendChild(li);
|
||||||
}
|
}
|
||||||
|
@ -80,25 +80,31 @@ img {
|
|||||||
|
|
||||||
/* Styles generated by the BBCode parser */
|
/* Styles generated by the BBCode parser */
|
||||||
|
|
||||||
span.size1 { font-size:0.75em; }
|
span.size1 { font-size: 0.75em; }
|
||||||
span.size2 { font-size:1em; }
|
span.size2 { font-size: 1em; }
|
||||||
span.size3 { font-size:1.25em; }
|
span.size3 { font-size: 1.25em; }
|
||||||
span.size4 { font-size:1.5em; }
|
span.size4 { font-size: 1.5em; }
|
||||||
span.size5 { font-size:1.75em; }
|
span.size5 { font-size: 1.75em; }
|
||||||
span.size6 { font-size:2em; }
|
span.size6 { font-size: 2em; }
|
||||||
span.size7 { font-size:2.25em; }
|
span.size7 { font-size: 2.25em; }
|
||||||
span.size8 { font-size:2.5em; }
|
span.size8 { font-size: 2.5em; }
|
||||||
span.size9 { font-size:2.75em; }
|
span.size9 { font-size: 2.75em; }
|
||||||
span.size10 { font-size:3em; }
|
span.size10 { font-size: 3em; }
|
||||||
|
|
||||||
ul.thin { margin:0px 0px 0px 25px; padding:0px; }
|
ul.thin {
|
||||||
ul.thin li { margin:0px 0px; padding:0px; }
|
margin: 0px 0px 0px 25px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
ul.thin li {
|
||||||
|
margin: 0px 0px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Layout (Every page) */
|
/* Layout (Every page) */
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width:740px;
|
min-width: 740px;
|
||||||
padding: 0px 0 0 0;
|
padding: 0px 0 0 0;
|
||||||
background: url('images/woodhead.png') repeat-x;
|
background: url('images/woodhead.png') repeat-x;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
@ -106,7 +112,7 @@ ul.thin li { margin:0px 0px; padding:0px; }
|
|||||||
|
|
||||||
#content {
|
#content {
|
||||||
width: 94%;
|
width: 94%;
|
||||||
min-width:740px;
|
min-width: 740px;
|
||||||
background-color: #C1965C;
|
background-color: #C1965C;
|
||||||
margin: 0px auto 0px auto;
|
margin: 0px auto 0px auto;
|
||||||
padding: 0.6em;
|
padding: 0.6em;
|
||||||
@ -568,7 +574,7 @@ ul.poll li.graph {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.filter_torrents option {
|
.filter_torrents option {
|
||||||
padding-right:8px;
|
padding-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cat_list {
|
.cat_list {
|
||||||
@ -576,56 +582,56 @@ ul.poll li.graph {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cat_list tr td {
|
.cat_list tr td {
|
||||||
border:none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select_container {
|
.select_container {
|
||||||
margin:5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.torrent_table tr {
|
.torrent_table tr {
|
||||||
vertical-align:top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.group {
|
.group {
|
||||||
font-weight:bold;
|
font-weight: bold;
|
||||||
background-color:#B48648;
|
background-color: #B48648;
|
||||||
}
|
}
|
||||||
.group_torrent {
|
.group_torrent {
|
||||||
background-color:#DDB47C;
|
background-color: #DDB47C;
|
||||||
}
|
}
|
||||||
.group_torrent span {
|
.group_torrent span {
|
||||||
float:right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.torrent {
|
.torrent {
|
||||||
font-weight:bold;
|
font-weight: bold;
|
||||||
background-color:#C3995F;
|
background-color: #C3995F;
|
||||||
}
|
}
|
||||||
.torrent span {
|
.torrent span {
|
||||||
font-weight:normal;
|
font-weight: normal;
|
||||||
float:right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.torrent_table div.tags {
|
.torrent_table div.tags {
|
||||||
font-weight:normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.torrent_table tr .center {
|
.torrent_table tr .center {
|
||||||
vertical-align:middle;
|
vertical-align: middle;
|
||||||
text-align:center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.torrent_table td .small {
|
.torrent_table td .small {
|
||||||
width:20px;
|
width: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.torrent_table a img {
|
.torrent_table a img {
|
||||||
border:none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.torrent_table table {
|
.torrent_table table {
|
||||||
width:94%;
|
width: 94%;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -635,12 +641,12 @@ ul.poll li.graph {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nobr {
|
.nobr {
|
||||||
white-space:nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.advanced_search {
|
.advanced_search {
|
||||||
text-align:right;
|
text-align: right;
|
||||||
padding-bottom:5px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Layout (Forums) */
|
/* Layout (Forums) */
|
||||||
@ -656,7 +662,7 @@ ul.poll li.graph {
|
|||||||
.read_locked{background: url(images/locked_read.png) no-repeat center center;}
|
.read_locked{background: url(images/locked_read.png) no-repeat center center;}
|
||||||
.unread{background: url(images/unread.png) no-repeat center center;}
|
.unread{background: url(images/unread.png) no-repeat center center;}
|
||||||
.read{background: url(images/read.png) no-repeat center center;}
|
.read{background: url(images/read.png) no-repeat center center;}
|
||||||
strong.quoteheader{color:#492801;}
|
strong.quoteheader{color: #492801;}
|
||||||
|
|
||||||
table.forum_post {
|
table.forum_post {
|
||||||
margin: 10px 0px;
|
margin: 10px 0px;
|
||||||
@ -694,30 +700,30 @@ tr.unreadpm {
|
|||||||
/* Layout (Permission Page) */
|
/* Layout (Permission Page) */
|
||||||
|
|
||||||
.permission_head {
|
.permission_head {
|
||||||
width:400px;
|
width: 400px;
|
||||||
margin-left:auto;
|
margin-left: auto;
|
||||||
margin-right:auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.permissions {
|
.permissions {
|
||||||
width:930px;
|
width: 930px;
|
||||||
margin-left:auto;
|
margin-left: auto;
|
||||||
margin-right:auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.permission_container {
|
.permission_container {
|
||||||
float:left;
|
float: left;
|
||||||
width:300px;
|
width: 300px;
|
||||||
padding:5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
.permission_container input {
|
.permission_container input {
|
||||||
margin:0px 3px 5px 0px;
|
margin: 0px 3px 5px 0px;
|
||||||
vertical-align:top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit_container {
|
.submit_container {
|
||||||
clear:both;
|
clear: both;
|
||||||
text-align:right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Layout (Invite tree) */
|
/* Layout (Invite tree) */
|
||||||
@ -772,9 +778,9 @@ ul .invitetree {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
z-index:1001;
|
z-index: 1001;
|
||||||
-moz-opacity: 0.8;
|
-moz-opacity: 0.8;
|
||||||
opacity:.80;
|
opacity: 0.80;
|
||||||
filter: alpha(opacity=80);
|
filter: alpha(opacity=80);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -786,7 +792,7 @@ ul .invitetree {
|
|||||||
width: 90%;
|
width: 90%;
|
||||||
height: 90%;
|
height: 90%;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
z-index:1002;
|
z-index: 1002;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,8 +199,7 @@ div#AddArtists a {
|
|||||||
z-index: 25;
|
z-index: 25;
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: transparent url('../rippy/rippy.png') no-repeat bottom
|
background: transparent url('../rippy/rippy.png') no-repeat bottom center;
|
||||||
center;
|
|
||||||
color: black;
|
color: black;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 190px;
|
width: 190px;
|
||||||
@ -275,23 +274,20 @@ span.secondary_class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.headerSort span {
|
.headerSort span {
|
||||||
background: url("../common/table-order.png") no-repeat scroll right
|
background: url("../common/table-order.png") no-repeat scroll right -38px transparent;
|
||||||
-38px transparent;
|
|
||||||
padding: 0px 20px 0 0;
|
padding: 0px 20px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerSortDown span {
|
.headerSortDown span {
|
||||||
background: url("../common/table-order.png") no-repeat scroll right 4px
|
background: url("../common/table-order.png") no-repeat scroll right 4px transparent;
|
||||||
transparent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerSortUp span {
|
.headerSortUp span {
|
||||||
background: url("../common/table-order.png") no-repeat scroll right
|
background: url("../common/table-order.png") no-repeat scroll right -79px transparent;
|
||||||
-79px transparent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.album_votes {
|
.album_votes {
|
||||||
text-align: center
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.favoritecount {
|
.favoritecount {
|
||||||
@ -413,13 +409,13 @@ tr.torrent .bookmark>a:after {
|
|||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
}
|
}
|
||||||
.float_left {
|
.float_left {
|
||||||
float:left;
|
float: left;
|
||||||
}
|
}
|
||||||
.float_right {
|
.float_right {
|
||||||
float:right;
|
float: right;
|
||||||
}
|
}
|
||||||
.float_clear {
|
.float_clear {
|
||||||
clear:both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.group_image + .group_info {
|
.group_image + .group_info {
|
||||||
margin-left: 100px;
|
margin-left: 100px;
|
||||||
@ -463,7 +459,7 @@ tr.torrent .bookmark>a:after {
|
|||||||
}
|
}
|
||||||
/* Fix long overflow for Opera (doesn't support word-break). */
|
/* Fix long overflow for Opera (doesn't support word-break). */
|
||||||
.reportinfo_table {
|
.reportinfo_table {
|
||||||
table-layout:fixed;
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
/* Wrap release info for consistent DOM and to limit table expansion. */
|
/* Wrap release info for consistent DOM and to limit table expansion. */
|
||||||
.no_overflow {
|
.no_overflow {
|
||||||
|
@ -18,8 +18,8 @@ input#file, input[type="file"]{color:#000}
|
|||||||
textarea#quickpost{margin:0; padding:0}
|
textarea#quickpost{margin:0; padding:0}
|
||||||
|
|
||||||
/* GENERAL */
|
/* GENERAL */
|
||||||
.box, #content table tr td{background:#373737; margin-bottom:15px}
|
.box, #content table tr td{background: #373737; margin-bottom: 15px;}
|
||||||
.pad{padding:10px}
|
.pad{padding: 10px;}
|
||||||
|
|
||||||
.sidebar .box{position:relative}
|
.sidebar .box{position:relative}
|
||||||
.sidebar img{max-width:228px}
|
.sidebar img{max-width:228px}
|
||||||
@ -32,25 +32,25 @@ textarea#quickpost{margin:0; padding:0}
|
|||||||
.label{width:15%}
|
.label{width:15%}
|
||||||
|
|
||||||
/* wrapper */
|
/* wrapper */
|
||||||
#wrapper{width:980px; margin:0 auto}
|
#wrapper{width: 980px; margin: 0 auto;}
|
||||||
|
|
||||||
/* header layout */
|
/* header layout */
|
||||||
#header{position:relative; overflow:visible; height:110px; z-index:4}
|
#header{position: relative; overflow: visible; height: 110px; z-index: 4;}
|
||||||
#logo{width:94px; height:74px; position:absolute; top:8px; left:0; background-repeat:no-repeat; background-image:url(images/logo.png)}
|
#logo{width: 94px; height: 74px; position: absolute; top: 8px; left: 0; background-repeat: no-repeat; background-image: url(images/logo.png);}
|
||||||
#logo a{width:94px; height:74px; display:block}
|
#logo a{width: 94px; height: 74px; display: block;}
|
||||||
|
|
||||||
/* menu */
|
/* menu */
|
||||||
#menu{margin:0 0 0 105px; padding:0 249px 7px 0; border-bottom:1px solid #353535; overflow:hidden}
|
#menu{margin: 0 0 0 105px; padding: 0 249px 7px 0; border-bottom: 1px solid #353535; overflow: hidden;}
|
||||||
#menu *{text-transform:lowercase}
|
#menu *{text-transform: lowercase;}
|
||||||
#menu ul{list-style:none; margin:0; padding:0}
|
#menu ul{list-style: none; margin: 0; padding: 0;}
|
||||||
#menu ul li{float:left; margin:2px 6px 0; text-align:center}
|
#menu ul li{float: left; margin: 2px 6px 0; text-align: center;}
|
||||||
#menu ul li a{padding:12px 4px 3px; font-weight:bold; display:block; text-decoration:none; color:#FFF}
|
#menu ul li a{padding: 12px 4px 3px; font-weight: bold; display: block; text-decoration: none; color: #FFF;}
|
||||||
#menu ul li:hover{background:#353535}
|
#menu ul li:hover{background: #353535;}
|
||||||
#menu ul li:hover a{color:#FFF}
|
#menu ul li:hover a{color: #FFF;}
|
||||||
|
|
||||||
/* active menu item */
|
/* active menu item */
|
||||||
#index #nav_index a, #torrents #nav_torrents a, #collage #nav_collages a, #requests #nav_requests a, #forums #nav_forums a, #top10 #nav_top10 a, #rules #nav_rules a, #kb #nav_wiki a, #wiki #nav_wiki a, #staff #nav_staff a, #chat #nav_irc a
|
#index #nav_index a, #torrents #nav_torrents a, #collage #nav_collages a, #requests #nav_requests a, #forums #nav_forums a, #top10 #nav_top10 a, #rules #nav_rules a, #kb #nav_wiki a, #wiki #nav_wiki a, #staff #nav_staff a, #chat #nav_irc a
|
||||||
{background:#5AF}
|
{background: #5AF;}
|
||||||
|
|
||||||
/* sprite */
|
/* sprite */
|
||||||
#userinfo_username li:first-child, #userinfo_major li:first-child, #userinfo_minor li:first-child, #userinfo_username li:first-child:hover, #userinfo_major li:first-child:hover, #userinfo_minor li:first-child:hover,
|
#userinfo_username li:first-child, #userinfo_major li:first-child, #userinfo_minor li:first-child, #userinfo_username li:first-child:hover, #userinfo_major li:first-child:hover, #userinfo_minor li:first-child:hover,
|
||||||
|
@ -1228,8 +1228,8 @@ strong.quoteheader {
|
|||||||
/* Toolbox */
|
/* Toolbox */
|
||||||
|
|
||||||
.permission_container {
|
.permission_container {
|
||||||
float:left;
|
float: left;
|
||||||
width:33.3%;
|
width: 33.3%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TORRENTS */
|
/* TORRENTS */
|
||||||
@ -1239,7 +1239,7 @@ strong.quoteheader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main_column .torrent_table .torrent {
|
.main_column .torrent_table .torrent {
|
||||||
background-color:#f6f6f6;
|
background-color: #f6f6f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main_column .torrent_table .pad blockquote {
|
.main_column .torrent_table .pad blockquote {
|
||||||
|
@ -722,8 +722,8 @@ tr.group_torrent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.torrent span {
|
.torrent span {
|
||||||
font-weight:normal;
|
font-weight: normal;
|
||||||
float:right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nobr {
|
.nobr {
|
||||||
@ -879,7 +879,9 @@ form tr {
|
|||||||
background-color: #D1F0FD;
|
background-color: #D1F0FD;
|
||||||
}
|
}
|
||||||
|
|
||||||
#site_debug .hidden { display: none; }
|
#site_debug .hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
Loading…
Reference in New Issue
Block a user