mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
84710552c5
commit
b051b7a7c4
@ -91,7 +91,7 @@ function make_tree() {
|
|||||||
|
|
||||||
// We store this in an output buffer, so we can show the summary at the top without having to loop through twice
|
// We store this in an output buffer, so we can show the summary at the top without having to loop through twice
|
||||||
ob_start();
|
ob_start();
|
||||||
while (list($ID, $Enabled, $Class, $Donor, $Uploaded, $Downloaded, $Paranoia, $TreePosition, $TreeLevel) = G::$DB->next_record()) {
|
while (list($ID, $Enabled, $Class, $Donor, $Uploaded, $Downloaded, $Paranoia, $TreePosition, $TreeLevel) = G::$DB->next_record(MYSQLI_NUM, false)) {
|
||||||
|
|
||||||
// Do stats
|
// Do stats
|
||||||
$Count++;
|
$Count++;
|
||||||
@ -127,6 +127,7 @@ function make_tree() {
|
|||||||
} else {
|
} else {
|
||||||
echo "\t</li>\n<li>";
|
echo "\t</li>\n<li>";
|
||||||
}
|
}
|
||||||
|
$UserClass = $Classes[$Class]['Level'];
|
||||||
?>
|
?>
|
||||||
<strong><?=Users::format_username($ID, true, true, ($Enabled != 2 ? false : true), true)?></strong>
|
<strong><?=Users::format_username($ID, true, true, ($Enabled != 2 ? false : true), true)?></strong>
|
||||||
<?
|
<?
|
||||||
@ -141,7 +142,7 @@ function make_tree() {
|
|||||||
} else {
|
} else {
|
||||||
$ParanoidCount++;
|
$ParanoidCount++;
|
||||||
?>
|
?>
|
||||||
Paranoia: <strong><?=number_format($Paranoia) ?></strong>
|
Hidden
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -125,11 +125,11 @@ public static function get_hyped_artists($Limit = 100) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static function clear_cache($Username, $Uid) {
|
public static function clear_cache($Username, $UserID) {
|
||||||
$Response = G::$Cache->get_value('lastfm_clear_cache_' . G::$LoggedUser['ID'] . '_' . $_GET['id']);
|
$Response = G::$Cache->get_value("lastfm_clear_cache_$UserID");
|
||||||
if (empty($Response)) {
|
if (empty($Response)) {
|
||||||
// Prevent clearing the cache on the same uid page for the next 10 minutes.
|
// Prevent clearing the cache on the same uid page for the next 10 minutes.
|
||||||
$Response = G::$Cache->cache_value('lastfm_clear_cache_' . G::$LoggedUser['ID'] . "_$Uid", $Username, 600);
|
G::$Cache->cache_value("lastfm_clear_cache_$UserID", 1, 600);
|
||||||
G::$Cache->delete_value("lastfm_user_info_$Username");
|
G::$Cache->delete_value("lastfm_user_info_$Username");
|
||||||
G::$Cache->delete_value("lastfm_last_played_track_$Username");
|
G::$Cache->delete_value("lastfm_last_played_track_$Username");
|
||||||
G::$Cache->delete_value("lastfm_top_artists_$Username");
|
G::$Cache->delete_value("lastfm_top_artists_$Username");
|
||||||
@ -139,7 +139,7 @@ public static function clear_cache($Username, $Uid) {
|
|||||||
G::$DB->query("
|
G::$DB->query("
|
||||||
SELECT username
|
SELECT username
|
||||||
FROM lastfm_users
|
FROM lastfm_users
|
||||||
WHERE ID = '" . G::$LoggedUser['ID'] . "'");
|
WHERE ID = " . G::$LoggedUser['ID']);
|
||||||
if (G::$DB->has_results()) {
|
if (G::$DB->has_results()) {
|
||||||
list($Username2) = G::$DB->next_record();
|
list($Username2) = G::$DB->next_record();
|
||||||
//Make sure the usernames are in the correct order to avoid dupe cache keys.
|
//Make sure the usernames are in the correct order to avoid dupe cache keys.
|
||||||
@ -148,7 +148,7 @@ public static function clear_cache($Username, $Uid) {
|
|||||||
$Username = $Username2;
|
$Username = $Username2;
|
||||||
$Username2 = $Temp;
|
$Username2 = $Temp;
|
||||||
}
|
}
|
||||||
G::$Cache->delete_value("lastfm_compare_$Username" . "_$Username2");
|
G::$Cache->delete_value("lastfm_compare_{$Username}_$Username2");
|
||||||
}
|
}
|
||||||
G::$DB->set_query_id($QueryID);
|
G::$DB->set_query_id($QueryID);
|
||||||
}
|
}
|
||||||
|
@ -1439,7 +1439,10 @@ CREATE TABLE `users_donor_ranks` (
|
|||||||
`TotalRank` int(10) NOT NULL DEFAULT '0',
|
`TotalRank` int(10) NOT NULL DEFAULT '0',
|
||||||
`SpecialRank` tinyint(2) DEFAULT '0',
|
`SpecialRank` tinyint(2) DEFAULT '0',
|
||||||
`InvitesRecievedRank` tinyint(4) DEFAULT '0',
|
`InvitesRecievedRank` tinyint(4) DEFAULT '0',
|
||||||
PRIMARY KEY (`UserID`)
|
PRIMARY KEY (`UserID`),
|
||||||
|
KEY `DonationTime` (`DonationTime`),
|
||||||
|
KEY `SpecialRank` (`SpecialRank`),
|
||||||
|
KEY `Rank` (`Rank`)
|
||||||
) ENGINE=InnoDB CHARSET utf8;
|
) ENGINE=InnoDB CHARSET utf8;
|
||||||
|
|
||||||
CREATE TABLE `users_downloads` (
|
CREATE TABLE `users_downloads` (
|
||||||
|
@ -688,10 +688,10 @@ function compare($X, $Y) {
|
|||||||
<li>
|
<li>
|
||||||
<span title="<?=$Score?>"><a href="artist.php?id=<?=$Artist2ID?>" style="float: left; display: block;"><?=$Artist2Name?></a></span>
|
<span title="<?=$Score?>"><a href="artist.php?id=<?=$Artist2ID?>" style="float: left; display: block;"><?=$Artist2Name?></a></span>
|
||||||
<div style="float: right; display: block; letter-spacing: -1px;">
|
<div style="float: right; display: block; letter-spacing: -1px;">
|
||||||
<a href="artist.php?action=vote_similar&artistid=<?=$ArtistID?>&similarid=<?=$SimilarID?>&way=down" style="font-family: monospace;" class="tooltip" title="Vote down this similar artist. Use this when you feel that the two artists are not all that similar." class="brackets">−</a>
|
<a href="artist.php?action=vote_similar&artistid=<?=$ArtistID?>&similarid=<?=$SimilarID?>&way=down" class="tooltip brackets" title="Vote down this similar artist. Use this when you feel that the two artists are not all that similar.">−</a>
|
||||||
<a href="artist.php?action=vote_similar&artistid=<?=$ArtistID?>&similarid=<?=$SimilarID?>&way=up" style="font-family: monospace;" class="tooltip" title="Vote up this similar artist. Use this when you feel that the two artists are quite similar." class="brackets">+</a>
|
<a href="artist.php?action=vote_similar&artistid=<?=$ArtistID?>&similarid=<?=$SimilarID?>&way=up" class="tooltip brackets" title="Vote up this similar artist. Use this when you feel that the two artists are quite similar.">+</a>
|
||||||
<? if (check_perms('site_delete_tag')) { ?>
|
<? if (check_perms('site_delete_tag')) { ?>
|
||||||
<span class="remove remove_artist"><a href="artist.php?action=delete_similar&similarid=<?=$SimilarID?>&auth=<?=$LoggedUser['AuthKey']?>" class="tooltip" title="Remove this similar artist" class="brackets">X</a></span>
|
<span class="remove remove_artist"><a href="artist.php?action=delete_similar&similarid=<?=$SimilarID?>&auth=<?=$LoggedUser['AuthKey']?>" class="tooltip brackets" title="Remove this similar artist">X</a></span>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</div>
|
</div>
|
||||||
<br style="clear: both;" />
|
<br style="clear: both;" />
|
||||||
@ -778,7 +778,7 @@ function compare($X, $Y) {
|
|||||||
<tr class="colhead_dark">
|
<tr class="colhead_dark">
|
||||||
<td style="width: 48%;">
|
<td style="width: 48%;">
|
||||||
<a href="#">↑</a>
|
<a href="#">↑</a>
|
||||||
<strong>Request name</strong>
|
<strong>Request Name</strong>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<strong>Vote</strong>
|
<strong>Vote</strong>
|
||||||
@ -940,7 +940,7 @@ function require(file, callback) {
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div id="info" class="head">
|
<div id="info" class="head">
|
||||||
<a href="#">↑</a>
|
<a href="#">↑</a>
|
||||||
<strong>Artist info</strong>
|
<strong>Artist Information</strong>
|
||||||
<a href="#" class="brackets" onclick="$('#body').gtoggle(); return false;">Toggle</a>
|
<a href="#" class="brackets" onclick="$('#body').gtoggle(); return false;">Toggle</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="body" class="body"><?=$Text->full_format($Body)?></div>
|
<div id="body" class="body"><?=$Text->full_format($Body)?></div>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
<td style="width: 150px;">Method</td>
|
<td style="width: 150px;">Method</td>
|
||||||
<td style="width: 400px;">Additional information</td>
|
<td style="width: 400px;">Additional Information</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="rowb">
|
<tr class="rowb">
|
||||||
<td class="nobr">
|
<td class="nobr">
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
if ($ForumID == DONOR_FORUM) {
|
if ($ForumID == DONOR_FORUM) {
|
||||||
$ForumDescription = Donations::get_forum_description();
|
$ForumDescription = Donations::get_forum_description();
|
||||||
}
|
}
|
||||||
$Tooltip = $ForumID == DONOR_FORUM ? 'tooltip_gold' : 'tooltip';
|
$Tooltip = $ForumID == DONOR_FORUM ? 'tooltip_gold' : 'tooltip';
|
||||||
$Row = $Row === 'a' ? 'b' : 'a';
|
$Row = $Row === 'a' ? 'b' : 'a';
|
||||||
$ForumDescription = display_str($ForumDescription);
|
$ForumDescription = display_str($ForumDescription);
|
||||||
|
|
||||||
@ -33,7 +33,7 @@
|
|||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
<td style="width: 2%;"></td>
|
<td style="width: 2%;"></td>
|
||||||
<td style="width: 25%;">Forum</td>
|
<td style="width: 25%;">Forum</td>
|
||||||
<td>Last post</td>
|
<td>Last Post</td>
|
||||||
<td style="width: 7%;">Topics</td>
|
<td style="width: 7%;">Topics</td>
|
||||||
<td style="width: 7%;">Posts</td>
|
<td style="width: 7%;">Posts</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -98,7 +98,7 @@
|
|||||||
<input type="hidden" name="categoryid" value="<?=$CategoryID?>" />
|
<input type="hidden" name="categoryid" value="<?=$CategoryID?>" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>Report information</h3>
|
<h3>Report Information</h3>
|
||||||
<div class="box pad">
|
<div class="box pad">
|
||||||
<table class="layout">
|
<table class="layout">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -226,7 +226,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
<td>Staff member</td>
|
<td>Staff member</td>
|
||||||
<td>Current count</td>
|
<td>Current Count</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
foreach ($Staff as $Array) { ?>
|
foreach ($Staff as $Array) { ?>
|
||||||
@ -255,7 +255,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
<td>Type</td>
|
<td>Type</td>
|
||||||
<td>Current count</td>
|
<td>Current Count</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
foreach ($Current as $Array) {
|
foreach ($Current as $Array) {
|
||||||
|
@ -523,7 +523,7 @@
|
|||||||
<table id="request_table" class="request_table border" cellpadding="6" cellspacing="1" border="0" width="100%">
|
<table id="request_table" class="request_table border" cellpadding="6" cellspacing="1" border="0" width="100%">
|
||||||
<tr class="colhead_dark">
|
<tr class="colhead_dark">
|
||||||
<td style="width: 38%;" class="nobr">
|
<td style="width: 38%;" class="nobr">
|
||||||
<strong>Request name</strong> / <a href="?order=year&sort=<?=(($CurrentOrder === 'year') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Year</strong></a>
|
<strong>Request Name</strong> / <a href="?order=year&sort=<?=(($CurrentOrder === 'year') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Year</strong></a>
|
||||||
</td>
|
</td>
|
||||||
<td class="nobr">
|
<td class="nobr">
|
||||||
<a href="?order=votes&sort=<?=(($CurrentOrder === 'votes') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Votes</strong></a>
|
<a href="?order=votes&sort=<?=(($CurrentOrder === 'votes') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Votes</strong></a>
|
||||||
|
@ -389,7 +389,7 @@ foreach ($Categories as $CatKey => $CatName) {
|
|||||||
<table id="request_table" class="request_table" cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
<table id="request_table" class="request_table" cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||||
<tr class="colhead_dark">
|
<tr class="colhead_dark">
|
||||||
<td style="width: 38%;">
|
<td style="width: 38%;">
|
||||||
<a href="requests.php?order=name&sort=<?=(($CurrentOrder === 'name') ? $NewSort : 'asc')?>&<?=$CurrentURL ?>"><strong>Request name</strong></a>
|
<a href="requests.php?order=name&sort=<?=(($CurrentOrder === 'name') ? $NewSort : 'asc')?>&<?=$CurrentURL ?>"><strong>Request Name</strong></a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<strong><a href="requests.php?order=votes&sort=<?=(($CurrentOrder === 'votes') ? $NewSort : 'asc')?>&<?=$CurrentURL ?>">Vote (20MB)</a></strong></td>
|
<strong><a href="requests.php?order=votes&sort=<?=(($CurrentOrder === 'votes') ? $NewSort : 'asc')?>&<?=$CurrentURL ?>">Vote (20MB)</a></strong></td>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
<td style="width: 150px;">Category</td>
|
<td style="width: 150px;">Category</td>
|
||||||
<td style="width: 400px;">Additional information</td>
|
<td style="width: 400px;">Additional Information</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="rowb">
|
<tr class="rowb">
|
||||||
<td class="nobr">
|
<td class="nobr">
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
<div class="head">
|
<div class="head">
|
||||||
<?=((empty($_GET['action'])) ? 'Create a staff blog post' : 'Edit staff blog post')?>
|
<?=((empty($_GET['action'])) ? 'Create a staff blog post' : 'Edit staff blog post')?>
|
||||||
<span style="float: right;">
|
<span style="float: right;">
|
||||||
<a href="#" onclick="$('#postform').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="bracket"><?=(($_REQUEST['action'] != 'editblog') ? 'Show' : 'Hide')?></a>
|
<a href="#" onclick="$('#postform').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="brackets"><?=(($_REQUEST['action'] != 'editblog') ? 'Show' : 'Hide')?></a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<form class="<?=((empty($_GET['action'])) ? 'create_form' : 'edit_form')?>" name="blog_post" action="staffblog.php" method="post">
|
<form class="<?=((empty($_GET['action'])) ? 'create_form' : 'edit_form')?>" name="blog_post" action="staffblog.php" method="post">
|
||||||
|
@ -637,7 +637,7 @@ function header_link($SortKey, $DefaultWay = 'desc') {
|
|||||||
<span id="ft_basic_link" class="<?=$HideAdvanced?>"><a href="#" onclick="return toggleTorrentSearch('basic');">Basic</a> /</span>
|
<span id="ft_basic_link" class="<?=$HideAdvanced?>"><a href="#" onclick="return toggleTorrentSearch('basic');">Basic</a> /</span>
|
||||||
<span id="ft_advanced_text" class="<?=$HideAdvanced?>">Advanced</span>
|
<span id="ft_advanced_text" class="<?=$HideAdvanced?>">Advanced</span>
|
||||||
<span id="ft_advanced_link" class="<?=$HideBasic?>"><a href="#" onclick="return toggleTorrentSearch('advanced');">Advanced</a></span>
|
<span id="ft_advanced_link" class="<?=$HideBasic?>"><a href="#" onclick="return toggleTorrentSearch('advanced');">Advanced</a></span>
|
||||||
search
|
Search
|
||||||
</strong>
|
</strong>
|
||||||
<span style="float: right;">
|
<span style="float: right;">
|
||||||
<a href="#" onclick="return toggleTorrentSearch(0);" id="ft_toggle" class="brackets"><?=$HideFilter ? 'Show' : 'Hide'?></a>
|
<a href="#" onclick="return toggleTorrentSearch(0);" id="ft_toggle" class="brackets"><?=$HideFilter ? 'Show' : 'Hide'?></a>
|
||||||
|
@ -453,7 +453,7 @@ function compare($X, $Y) {
|
|||||||
<input type="hidden" name="tagname" value="<?=$DeletedTag?>" />
|
<input type="hidden" name="tagname" value="<?=$DeletedTag?>" />
|
||||||
<input type="hidden" name="undo" value="true" />
|
<input type="hidden" name="undo" value="true" />
|
||||||
</form>
|
</form>
|
||||||
<a class="brackets" href="#" onclick="$('#undo_tag_delete_form').raw().submit(); return false;";>Undo delete</a>
|
<a class="brackets" href="#" onclick="$('#undo_tag_delete_form').raw().submit(); return false;">Undo delete</a>
|
||||||
|
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</div>
|
</div>
|
||||||
@ -467,9 +467,9 @@ function compare($X, $Y) {
|
|||||||
<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 tooltip vote_tag_down">−</a>
|
<a href="torrents.php?action=vote_tag&way=down&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" title="Vote this tag down" class="brackets tooltip 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 tooltip vote_tag_up">+</a>
|
<a href="torrents.php?action=vote_tag&way=up&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" title="Vote this tag up" class="brackets tooltip vote_tag_up">+</a>
|
||||||
<? if (check_perms('users_warn')) { ?>
|
<? if (check_perms('users_warn')) { ?>
|
||||||
<a href="user.php?id=<?=$Tag['userid']?>" title="View the profile of the user that added this tag" class="brackets tooltip view_tag_user">U</a>
|
<a href="user.php?id=<?=$Tag['userid']?>" title="View the profile of the user that added this tag" class="brackets tooltip view_tag_user">U</a>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<a href="#" id="lastfm_expand" onclick="return false" class="brackets">Show more info</a>
|
<a href="#" id="lastfm_expand" onclick="return false" class="brackets">Show more info</a>
|
||||||
<?
|
<?
|
||||||
//Append the reload stats button only if allowed on the current user page.
|
//Append the reload stats button only if allowed on the current user page.
|
||||||
$Response = $Cache->get_value('lastfm_clear_cache_' . $LoggedUser . '_' . $_GET['id']);
|
$Response = $Cache->get_value("lastfm_clear_cache_$UserID");
|
||||||
if (empty($Response)) {
|
if (empty($Response)) {
|
||||||
?>
|
?>
|
||||||
<span id="lastfm_reload_container">
|
<span id="lastfm_reload_container">
|
||||||
|
@ -3,13 +3,11 @@
|
|||||||
include(SERVER_ROOT.'/classes/text.class.php'); // Text formatting class
|
include(SERVER_ROOT.'/classes/text.class.php'); // Text formatting class
|
||||||
$Text = new TEXT;
|
$Text = new TEXT;
|
||||||
|
|
||||||
include(SERVER_ROOT.'/sections/requests/functions.php');
|
|
||||||
|
|
||||||
if (empty($_GET['id']) || !is_numeric($_GET['id']) || (!empty($_GET['preview']) && !is_numeric($_GET['preview']))) {
|
if (empty($_GET['id']) || !is_numeric($_GET['id']) || (!empty($_GET['preview']) && !is_numeric($_GET['preview']))) {
|
||||||
error(404);
|
error(404);
|
||||||
}
|
}
|
||||||
$UserID = $_GET['id'];
|
$UserID = $_GET['id'];
|
||||||
$Preview = $_GET['preview'];
|
$Preview = isset($_GET['preview']) ? $_GET['preview'] : 0;
|
||||||
if ($UserID == $LoggedUser['ID']) {
|
if ($UserID == $LoggedUser['ID']) {
|
||||||
$OwnProfile = true;
|
$OwnProfile = true;
|
||||||
if ($Preview == 1) {
|
if ($Preview == 1) {
|
||||||
@ -182,9 +180,6 @@ function check_paranoia_here($Setting) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$P = $UserInfo['Paranoia'];
|
|
||||||
$ShowDonorIcon = !in_array('hide_donor_heart', $P);
|
|
||||||
|
|
||||||
View::show_header($Username, "jquery.imagesloaded,jquery.wookmark,user,bbcode,requests,lastfm,comments,info_paster", "tiles");
|
View::show_header($Username, "jquery.imagesloaded,jquery.wookmark,user,bbcode,requests,lastfm,comments,info_paster", "tiles");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -807,7 +802,7 @@ function check_paranoia_here($Setting) {
|
|||||||
<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>
|
||||||
<strong>Vote</strong>
|
<strong>Vote</strong>
|
||||||
@ -882,7 +877,7 @@ function check_paranoia_here($Setting) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$IsFLS = $LoggedUser['ExtraClasses'][41];
|
$IsFLS = isset($LoggedUser['ExtraClasses'][FLS_TEAM]);
|
||||||
if (check_perms('users_mod', $Class) || $IsFLS) {
|
if (check_perms('users_mod', $Class) || $IsFLS) {
|
||||||
$UserLevel = $LoggedUser['EffectiveClass'];
|
$UserLevel = $LoggedUser['EffectiveClass'];
|
||||||
$DB->query("
|
$DB->query("
|
||||||
@ -915,7 +910,7 @@ function check_paranoia_here($Setting) {
|
|||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
foreach ($StaffPMs as $StaffPM) {
|
foreach ($StaffPMs as $StaffPM) {
|
||||||
list($ID, $Subject, $Status, $Level, $AssignedTo, $Date, $ResolverID) = $StaffPM;
|
list($ID, $Subject, $Status, $Level, $AssignedToUser, $Date, $ResolverID) = $StaffPM;
|
||||||
// Get assigned
|
// Get assigned
|
||||||
if ($AssignedToUser == '') {
|
if ($AssignedToUser == '') {
|
||||||
// Assigned to class
|
// Assigned to class
|
||||||
|
10
sphinx.conf
10
sphinx.conf
@ -33,6 +33,7 @@ source torrents : torrents_base {
|
|||||||
|
|
||||||
sql_query_pre = set group_concat_max_len = 101400
|
sql_query_pre = set group_concat_max_len = 101400
|
||||||
sql_query_pre = set @starttime = now()
|
sql_query_pre = set @starttime = now()
|
||||||
|
sql_query_pre = replace into sphinx_index_last_id values ('torrents', unix_timestamp(@starttime))
|
||||||
|
|
||||||
sql_query_pre = truncate sphinx_tg
|
sql_query_pre = truncate sphinx_tg
|
||||||
sql_query_pre = insert into sphinx_tg \
|
sql_query_pre = insert into sphinx_tg \
|
||||||
@ -87,7 +88,8 @@ source torrents : torrents_base {
|
|||||||
sql_joined_field = artistname from query; \
|
sql_joined_field = artistname from query; \
|
||||||
select t.id, aname from sphinx_a join sphinx_t t using(gid) order by t.id asc;
|
select t.id, aname from sphinx_a join sphinx_t t using(gid) order by t.id asc;
|
||||||
|
|
||||||
sql_query_post_index = delete from sphinx_delta where time<=unix_timestamp(@starttime)
|
sql_query_post_index = delete from sphinx_delta where time <= \
|
||||||
|
(select id from sphinx_index_last_id where type='torrents')
|
||||||
}
|
}
|
||||||
|
|
||||||
index torrents {
|
index torrents {
|
||||||
@ -323,6 +325,7 @@ source requests : connect {
|
|||||||
sql_query_pre = TRUNCATE TABLE sphinx_requests
|
sql_query_pre = TRUNCATE TABLE sphinx_requests
|
||||||
sql_query_pre = SET group_concat_max_len = 10140
|
sql_query_pre = SET group_concat_max_len = 10140
|
||||||
sql_query_pre = SET @StartTime = NOW()
|
sql_query_pre = SET @StartTime = NOW()
|
||||||
|
sql_query_pre = REPLACE INTO sphinx_index_last_id VALUES ('requests', UNIX_TIMESTAMP(@StartTime))
|
||||||
|
|
||||||
sql_query_pre = INSERT INTO sphinx_requests ( \
|
sql_query_pre = INSERT INTO sphinx_requests ( \
|
||||||
ID, UserID, TimeAdded, LastVote, CategoryID, Title, \
|
ID, UserID, TimeAdded, LastVote, CategoryID, Title, \
|
||||||
@ -352,14 +355,15 @@ source requests : connect {
|
|||||||
GROUP BY r.ID \
|
GROUP BY r.ID \
|
||||||
ON DUPLICATE KEY UPDATE ArtistList = values(ArtistList)
|
ON DUPLICATE KEY UPDATE ArtistList = values(ArtistList)
|
||||||
|
|
||||||
sql_query = SELECT ID, UserID, TimeAdded, LastVote, CategoryID, Title, \
|
sql_query = SELECT ID, UserID, TimeAdded, LastVote, CategoryID, Title, \
|
||||||
Year, ArtistList, ReleaseType, CatalogueNumber, \
|
Year, ArtistList, ReleaseType, CatalogueNumber, \
|
||||||
BitrateList, FormatList, MediaList, LogCue, FillerID, \
|
BitrateList, FormatList, MediaList, LogCue, FillerID, \
|
||||||
TorrentID, TimeFilled, Visible, Votes, Bounty, \
|
TorrentID, TimeFilled, Visible, Votes, Bounty, \
|
||||||
Year AS YearFullText \
|
Year AS YearFullText \
|
||||||
FROM sphinx_requests
|
FROM sphinx_requests
|
||||||
|
|
||||||
sql_query_post = DELETE FROM sphinx_requests_delta WHERE TimeAdded<=UNIX_TIMESTAMP(@StartTime)
|
sql_query_post_index = DELETE FROM sphinx_requests_delta WHERE TimeAdded <= \
|
||||||
|
(SELECT id FROM sphinx_index_last_id WHERE type='requests')
|
||||||
|
|
||||||
sql_attr_multi = uint TagID from query; \
|
sql_attr_multi = uint TagID from query; \
|
||||||
SELECT RequestID AS ID, TagID FROM requests_tags
|
SELECT RequestID AS ID, TagID FROM requests_tags
|
||||||
|
@ -817,6 +817,10 @@ ul .invitetree {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.brackets {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
.brackets:before, .brackets:after {
|
.brackets:before, .brackets:after {
|
||||||
color: #492802;
|
color: #492802;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user