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
1da89b3c82
commit
e47d02a276
@ -5,11 +5,14 @@ class Inbox {
|
||||
* Get the link to a user's inbox.
|
||||
* This is what handles the ListUnreadPMsFirst setting
|
||||
*
|
||||
* @param boolean - the value of $LoggedUser['ListUnreadPMsFirst']
|
||||
* @param string - whether the inbox or sentbox should be loaded
|
||||
* @return string - the URL to a user's inbox
|
||||
*/
|
||||
public static function get_inbox_link($ListFirst = 0, $WhichBox = 'inbox') {
|
||||
public static function get_inbox_link($WhichBox = 'inbox') {
|
||||
global $LoggedUser;
|
||||
|
||||
$ListFirst = $LoggedUser['ListUnreadPMsFirst'];
|
||||
|
||||
if ($WhichBox == 'inbox') {
|
||||
if ($ListFirst) {
|
||||
$InboxURL = 'inbox.php?sort=unread';
|
||||
|
@ -215,7 +215,6 @@ function make_tree() {
|
||||
echo '; the total amount downloaded was '.Format::get_size($TopLevelDownload);
|
||||
echo '; and the total ratio is '.Format::get_ratio_html($TopLevelUpload, $TopLevelDownload).'. ';
|
||||
|
||||
|
||||
echo 'These numbers include the stats of paranoid users and will be factored into the invitation giving script.</p>';
|
||||
|
||||
if ($ParanoidCount) {
|
||||
|
@ -357,7 +357,6 @@
|
||||
|
||||
// IP changed
|
||||
|
||||
|
||||
if ($LoggedUser['IP'] != $_SERVER['REMOTE_ADDR'] && !check_perms('site_disable_ip_history')) {
|
||||
|
||||
if (Tools::site_ban_ip($_SERVER['REMOTE_ADDR'])) {
|
||||
@ -426,7 +425,6 @@ function logout() {
|
||||
setcookie('session', '', time() - 60 * 60 * 24 * 365, '/', '', false);
|
||||
if ($SessionID) {
|
||||
|
||||
|
||||
$DB->query("
|
||||
DELETE FROM users_sessions
|
||||
WHERE UserID='$LoggedUser[ID]'
|
||||
|
@ -187,7 +187,6 @@ public static function disable_users($UserIDs, $AdminComment, $BanReason = 1) {
|
||||
}
|
||||
$Cache->delete_value('users_sessions_'.$UserID);
|
||||
|
||||
|
||||
$DB->query("
|
||||
DELETE FROM users_sessions
|
||||
WHERE UserID='$UserID'");
|
||||
|
@ -86,7 +86,6 @@ function table_query($TableName) {
|
||||
ORDER BY Posts;";
|
||||
break;
|
||||
case 'bounty':
|
||||
|
||||
$Query = "
|
||||
SELECT SUM(rv.Bounty) AS Bounty
|
||||
FROM users_main AS um
|
||||
|
@ -51,7 +51,6 @@ public static function user_info($UserID) {
|
||||
if (empty($UserInfo) || empty($UserInfo['ID']) || !isset($UserInfo['Paranoia']) || empty($UserInfo['Class'])) {
|
||||
$OldQueryID = $DB->get_query_id();
|
||||
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
m.ID,
|
||||
@ -122,7 +121,6 @@ public static function user_heavy_info($UserID) {
|
||||
global $DB, $Cache;
|
||||
|
||||
$HeavyInfo = $Cache->get_value('user_info_heavy_'.$UserID);
|
||||
|
||||
if (empty($HeavyInfo)) {
|
||||
|
||||
$DB->query("
|
||||
|
@ -159,7 +159,7 @@
|
||||
$Cache->cache_value('subscriptions_user_new_'.$LoggedUser['ID'], $NewSubscriptions, 0);
|
||||
} ?>
|
||||
<ul id="userinfo_minor"<?=($NewSubscriptions ? ' class="highlite"' : '')?>>
|
||||
<li id="nav_inbox"<?=Format::add_class($PageID, array('inbox'), 'active', true)?>><a onmousedown="Stats('inbox');" href="<?=Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']); ?>">Inbox</a></li>
|
||||
<li id="nav_inbox"<?=Format::add_class($PageID, array('inbox'), 'active', true)?>><a onmousedown="Stats('inbox');" href="<?=Inbox::get_inbox_link(); ?>">Inbox</a></li>
|
||||
<li id="nav_staffinbox"<?=Format::add_class($PageID, array('staffpm'), 'active', true)?>><a onmousedown="Stats('staffpm');" href="staffpm.php">Staff Inbox</a></li>
|
||||
<li id="nav_uploaded"<?=Format::add_class($PageID, array('torrents',false,'uploaded'), 'active', true, 'userid')?>><a onmousedown="Stats('uploads');" href="torrents.php?type=uploaded&userid=<?=$LoggedUser['ID']?>">Uploads</a></li>
|
||||
<li id="nav_bookmarks"<?=Format::add_class($PageID, array('bookmarks'), 'active', true)?>><a onmousedown="Stats('bookmarks');" href="bookmarks.php?type=torrents">Bookmarks</a></li>
|
||||
@ -328,7 +328,7 @@
|
||||
}
|
||||
|
||||
if ($NewMessages > 0) {
|
||||
$Alerts[] = '<a href="' . Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']) . "\">You have $NewMessages".(($NewMessages > 1) ? ' new messages' : ' new message').'</a>';
|
||||
$Alerts[] = '<a href="' . Inbox::get_inbox_link() . "\">You have $NewMessages".(($NewMessages > 1) ? ' new messages' : ' new message').'</a>';
|
||||
}
|
||||
|
||||
if ($LoggedUser['RatioWatch']) {
|
||||
@ -519,7 +519,7 @@
|
||||
onblur="if (this.value == '') this.value='Artists';"
|
||||
value="Artists" type="text" name="artistname" size="17"
|
||||
/>
|
||||
<ul id="artistcomplete" style="visibility: hidden;"><li/></ul>
|
||||
<ul id="artistcomplete" style="visibility: hidden;"><li /></ul>
|
||||
</form>
|
||||
</li>
|
||||
<li id="searchbar_requests">
|
||||
|
@ -671,6 +671,7 @@ function header_link($SortKey,$DefaultWay = 'desc') {
|
||||
'groupId' => (int) $GroupID,
|
||||
'groupName' => $GroupName,
|
||||
'artist' => $DisplayName,
|
||||
'cover' => $GroupInfo['WikiImage'],
|
||||
'tags' => $TagList,
|
||||
'bookmarked' => in_array($GroupID, $Bookmarks),
|
||||
'vanityHouse' => $GroupVanityHouse == '1',
|
||||
|
@ -23,7 +23,8 @@
|
||||
Enabled,
|
||||
PermissionID,
|
||||
Donor,
|
||||
Warned
|
||||
Warned,
|
||||
Avatar
|
||||
FROM users_main AS um
|
||||
JOIN users_info AS ui ON ui.UserID=um.ID
|
||||
WHERE Username LIKE '%".db_string($_GET['username'])."%'
|
||||
@ -37,7 +38,7 @@
|
||||
|
||||
$JsonUsers = array();
|
||||
foreach ($Results as $Result) {
|
||||
list($UserID, $Username, $Enabled, $PermissionID, $Donor, $Warned) = $Result;
|
||||
list($UserID, $Username, $Enabled, $PermissionID, $Donor, $Warned, $Avatar) = $Result;
|
||||
|
||||
$JsonUsers[] = array(
|
||||
'userId' => (int) $UserID,
|
||||
@ -45,7 +46,8 @@
|
||||
'donor' => $Donor == 1,
|
||||
'warned' => ($Warned != '0000-00-00 00:00:00'),
|
||||
'enabled' => ($Enabled == 2 ? false : true),
|
||||
'class' => Users::make_class_string($PermissionID)
|
||||
'class' => Users::make_class_string($PermissionID),
|
||||
'avatar' => $Avatar
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -510,9 +510,9 @@ function compare($X, $Y) {
|
||||
<? } ?>
|
||||
<a href="artist.php?action=history&artistid=<?=$ArtistID?>" class="brackets">View history</a>
|
||||
<a href="artist.php?id=<?=$ArtistID?>#info" class="brackets">Info</a>
|
||||
<!-- <strip>-->
|
||||
<? if (defined(LASTFM_API_KEY)) { ?>
|
||||
<a href="artist.php?id=<?=$ArtistID?>#concerts" class="brackets">Concerts</a>
|
||||
<!-- </strip>-->
|
||||
<? } ?>
|
||||
<a href="artist.php?id=<?=$ArtistID?>#artistcomments" class="brackets">Comments</a>
|
||||
<? if (check_perms('site_delete_artist') && check_perms('torrents_delete')) { ?>
|
||||
<a href="artist.php?action=delete&artistid=<?=$ArtistID?>&auth=<?=$LoggedUser['AuthKey']?>" class="brackets">Delete</a>
|
||||
@ -933,7 +933,9 @@ function require(file, callback) {
|
||||
</div>
|
||||
<div id="body" class="body"><?=$Text->full_format($Body)?></div>
|
||||
</div>
|
||||
<!---->
|
||||
<? if (defined(LASTFM_API_KEY)) {
|
||||
include(SERVER_ROOT.'/sections/artist/concerts.php');
|
||||
} ?>
|
||||
<?php
|
||||
// --- Comments ---
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
$MyTorrents = false;
|
||||
}
|
||||
|
||||
$OtherLink = '<a href="comments.php?action=artists" class="brackets">Artist comments</a> <a href="comments.php?action=collages" class="brackets">Collage comments</a> <a href="comments.php?action=requests" class="brackets">Request comments</a><br/>';
|
||||
$OtherLink = '<a href="comments.php?action=artists" class="brackets">Artist comments</a> <a href="comments.php?action=collages" class="brackets">Collage comments</a> <a href="comments.php?action=requests" class="brackets">Request comments</a><br />';
|
||||
|
||||
if ($MyTorrents) {
|
||||
$Conditions = "WHERE t.UserID = $UserID AND tc.AuthorID != t.UserID AND tc.AddedTime > t.Time";
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?
|
||||
|
||||
|
||||
define('PAYPAL_ADDRESS','');
|
||||
|
||||
define('PAYPAL_CURRENCY','EUR');
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
View::show_header('Donate');
|
||||
|
||||
|
||||
?>
|
||||
<!-- Donate -->
|
||||
<div class="thin">
|
||||
|
@ -17,7 +17,6 @@
|
||||
|
||||
View::show_header('Donate');
|
||||
|
||||
|
||||
?>
|
||||
<!-- Donate -->
|
||||
<div class="thin">
|
||||
|
@ -36,7 +36,6 @@
|
||||
$Page = (int)$_POST['page'];
|
||||
|
||||
|
||||
|
||||
if ($Locked == 1) {
|
||||
|
||||
$DB->query("DELETE FROM forums_last_read_topics WHERE TopicID='$TopicID'");
|
||||
|
@ -98,7 +98,6 @@
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
|
||||
if (check_perms('forums_polls_create')) {
|
||||
?>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
|
@ -114,7 +114,6 @@
|
||||
|
||||
//Handle last read
|
||||
|
||||
|
||||
if (!$ThreadInfo['IsLocked'] || $ThreadInfo['IsSticky']) {
|
||||
|
||||
$DB->query("
|
||||
@ -290,7 +289,7 @@
|
||||
<? }
|
||||
if ($Votes[0] > 0) {
|
||||
?>
|
||||
<li>(Blank) (<?=number_format((float)($Votes[0] / $TotalVotes * 100), 2)?>%)</li>
|
||||
<li><?=($UserResponse == '0' ? '» ' : '')?>(Blank) (<?=number_format((float)($Votes[0] / $TotalVotes * 100), 2)?>%)</li>
|
||||
<li class="graph">
|
||||
<span class="left_poll"></span>
|
||||
<span class="center_poll" style="width: <?=round(($Votes[0] / $MaxVotes) * 750)?>px;"></span>
|
||||
@ -341,7 +340,7 @@
|
||||
<a href="forums.php?action=delete_poll_option&threadid=<?=$ThreadID?>&auth=<?=$LoggedUser['AuthKey']?>&vote=<?=(int) $i?>" class="brackets">X</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
<li><a href="forums.php?action=change_vote&threadid=<?=$ThreadID?>&auth=<?=$LoggedUser['AuthKey']?>&vote=0">Blank</a> - <?=$StaffVotes[0]?> (<?=number_format(((float) $Votes[0] / $TotalVotes) * 100, 2)?>%)</li>
|
||||
<li><a href="forums.php?action=change_vote&threadid=<?=$ThreadID?>&auth=<?=$LoggedUser['AuthKey']?>&vote=0"><?=($UserResponse == '0' ? '» ' : '')?>Blank</a> - <?=$StaffVotes[0]?> (<?=number_format(((float) $Votes[0] / $TotalVotes) * 100, 2)?>%)</li>
|
||||
</ul>
|
||||
<?
|
||||
if ($ForumID == STAFF_FORUM) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
$ToID = $_GET['to'];
|
||||
if ($ToID == $LoggedUser['ID']) {
|
||||
error('You cannot start a conversation with yourself!');
|
||||
header('Location: ' . Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']));
|
||||
header('Location: ' . Inbox::get_inbox_link());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
$UserID = $LoggedUser['ID'];
|
||||
$DB->query("
|
||||
SELECT InInbox, InSentbox
|
||||
@ -22,7 +21,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
if (!$InInbox && !$InSentbox) {
|
||||
|
||||
error(404);
|
||||
@ -57,7 +55,6 @@
|
||||
$Users[0]['Username'] = 'System';
|
||||
|
||||
|
||||
|
||||
if ($UnRead == '1') {
|
||||
|
||||
$DB->query("
|
||||
@ -81,14 +78,17 @@
|
||||
<div class="thin">
|
||||
<h2><?=$Subject.($ForwardedID > 0 ? ' (Forwarded to '.$ForwardedName.')' : '')?></h2>
|
||||
<div class="linkbox">
|
||||
<a href="<?=Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']); ?>" class="brackets">Back to inbox</a>
|
||||
<a href="<?=Inbox::get_inbox_link(); ?>" class="brackets">Back to inbox</a>
|
||||
</div>
|
||||
<?
|
||||
|
||||
while (list($SentDate, $SenderID, $Body, $MessageID) = $DB->next_record()) { ?>
|
||||
<div class="box vertical_space">
|
||||
<div class="head">
|
||||
<div class="head" style="overflow: hidden;">
|
||||
<div style="float: left;">
|
||||
<strong><?=$Users[(int)$SenderID]['UserStr']?></strong> <?=time_diff($SentDate)?> - <a href="#quickpost" onclick="Quote('<?=$MessageID?>','<?=$Users[(int)$SenderID]['Username']?>');" class="brackets">Quote</a>
|
||||
</div>
|
||||
<div style="float: right;"><a href="#">↑</a> <a href="#messageform">↓</a></div>
|
||||
</div>
|
||||
<div class="body" id="message<?=$MessageID?>">
|
||||
<?=$Text->full_format($Body)?>
|
||||
|
@ -39,7 +39,7 @@
|
||||
SET ForwardedTo='$ReceiverID'
|
||||
WHERE ConvID='$ConvID' AND UserID='$UserID'");
|
||||
$Cache->delete_value('inbox_new_'.$ReceiverID);
|
||||
header('Location: ' . Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']));
|
||||
header('Location: ' . Inbox::get_inbox_link());
|
||||
} else {
|
||||
error("$StaffIDs[$ReceiverID] already has this conversation in their inbox.");
|
||||
header('Location: inbox.php?action=viewconv&id='.$ConvID);
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
$UserID = $LoggedUser['ID'];
|
||||
|
||||
|
||||
@ -21,11 +20,10 @@
|
||||
<h2><?=(($Section == 'sentbox') ? 'Sentbox' : 'Inbox')?></h2>
|
||||
<div class="linkbox">
|
||||
<?
|
||||
|
||||
if ($Section == 'inbox') { ?>
|
||||
<a href="<?=Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst'], 'sentbox'); ?>" class="brackets">Sentbox</a>
|
||||
<a href="<?=Inbox::get_inbox_link('sentbox'); ?>" class="brackets">Sentbox</a>
|
||||
<? } elseif ($Section == 'sentbox') { ?>
|
||||
<a href="<?=Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']); ?>" class="brackets">Inbox</a>
|
||||
<a href="<?=Inbox::get_inbox_link(); ?>" class="brackets">Inbox</a>
|
||||
<? }
|
||||
|
||||
?>
|
||||
@ -94,6 +92,17 @@
|
||||
<input type="radio" name="searchtype" value="user"<?=(empty($_GET['searchtype']) || $_GET['searchtype'] == 'user' ? ' checked="checked"' : '')?> /> User
|
||||
<input type="radio" name="searchtype" value="subject"<?=(!empty($_GET['searchtype']) && $_GET['searchtype'] == 'subject' ? ' checked="checked"' : '')?> /> Subject
|
||||
<input type="radio" name="searchtype" value="message"<?=(!empty($_GET['searchtype']) && $_GET['searchtype'] == 'message' ? ' checked="checked"' : '')?> /> Message
|
||||
<span style="float: right;">
|
||||
<? // provide a temporary toggle for sorting PMs
|
||||
$ToggleTitle = 'Temporary toggle switch for sorting PMs. To permanently change the sorting behavior, edit the setting in your profile.';
|
||||
$BaseURL = 'inbox.php';
|
||||
|
||||
if ($_GET['sort'] == 'unread') { ?>
|
||||
<a href="<?=$BaseURL?>" class="brackets" title="<?=$ToggleTitle?>">List latest first</a>
|
||||
<? } else { ?>
|
||||
<a href="<?=$BaseURL?>?sort=unread" class="brackets" title="<?=$ToggleTitle?>">List unread first</a>
|
||||
<? } ?>
|
||||
</span>
|
||||
<br />
|
||||
<input type="text" name="search" value="<?=(!empty($_GET['search']) ? display_str($_GET['search']) : 'Search '.($Section == 'sentbox' ? 'Sentbox' : 'Inbox'))?>" style="width: 98%;"
|
||||
onfocus="if (this.value == 'Search <?=(($Section == 'sentbox') ? 'Sentbox' : 'Inbox')?>') this.value='';"
|
||||
@ -136,7 +145,8 @@
|
||||
<tr class="<?=$RowClass?>">
|
||||
<td class="center"><input type="checkbox" name="messages[]=" value="<?=$ConvID?>" /></td>
|
||||
<td>
|
||||
<? echo "\t\t\t\t\t\t"; // for proper indentation of HTML
|
||||
<?
|
||||
echo "\t\t\t\t\t\t"; // for proper indentation of HTML
|
||||
if ($Unread) {
|
||||
echo '<strong>';
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
if (!isset($_POST['messages']) || !is_array($_POST['messages'])) {
|
||||
error('You forgot to select messages to delete.');
|
||||
header('Location: ' . Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']));
|
||||
header('Location: ' . Inbox::get_inbox_link());
|
||||
die();
|
||||
}
|
||||
|
||||
@ -52,5 +52,5 @@
|
||||
}
|
||||
$Cache->delete_value('inbox_new_'.$UserID);
|
||||
|
||||
header('Location: ' . Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']));
|
||||
header('Location: ' . Inbox::get_inbox_link());
|
||||
?>
|
||||
|
@ -55,5 +55,5 @@
|
||||
$ConvID = Misc::send_pm($ToID, $LoggedUser['ID'], $Subject, $Body, $ConvID);
|
||||
|
||||
|
||||
header('Location: ' . Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']));
|
||||
header('Location: ' . Inbox::get_inbox_link());
|
||||
?>
|
||||
|
@ -42,5 +42,5 @@
|
||||
$Cache->increment('inbox_new_'.$UserID);
|
||||
}
|
||||
}
|
||||
header('Location: ' . Inbox::get_inbox_link($LoggedUser['ListUnreadPMsFirst']));
|
||||
header('Location: ' . Inbox::get_inbox_link());
|
||||
?>
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?
|
||||
|
||||
|
||||
$FeaturedMerchURL = '';
|
||||
|
||||
$FeaturedMerch = $Cache->get_value('featured_merch');
|
||||
|
@ -103,7 +103,6 @@
|
||||
|
||||
$IPcc = Tools::geoip($_SERVER['REMOTE_ADDR']);
|
||||
|
||||
|
||||
$DB->query("
|
||||
INSERT INTO users_main
|
||||
(Username, Email, PassHash, torrent_pass, IP, PermissionID, Enabled, Invites, Uploaded, ipcc)
|
||||
|
@ -13,7 +13,6 @@
|
||||
$Text = NEW TEXT;
|
||||
|
||||
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
r.ID,
|
||||
@ -77,7 +76,6 @@
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
list($ReportID, $ReporterID, $ReporterName, $TorrentID, $Type, $UserComment, $ResolverID, $ResolverName, $Status, $ReportedTime, $LastChangeTime,
|
||||
$ModComment, $Tracks, $Images, $ExtraIDs, $Links, $LogMessage, $GroupName, $GroupID, $ArtistID, $ArtistName, $Year, $CategoryID, $Time, $Remastered, $RemasterTitle,
|
||||
$RemasterYear, $Media, $Format, $Encoding, $Size, $HasCue, $HasLog, $LogScore, $UploaderID, $UploaderName) = $DB->next_record(MYSQLI_BOTH, array("ModComment"));
|
||||
@ -253,7 +251,6 @@
|
||||
$First = true;
|
||||
$Extras = explode(' ', $ExtraIDs);
|
||||
foreach ($Extras as $ExtraID) {
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
tg.Name,
|
||||
|
@ -122,7 +122,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
SQL_CALC_FOUND_ROWS
|
||||
@ -226,7 +225,6 @@
|
||||
} else {
|
||||
foreach ($Reports as $Report) {
|
||||
|
||||
|
||||
list($ReportID, $ReporterID, $ReporterName, $TorrentID, $Type, $UserComment, $ResolverID, $ResolverName, $Status, $ReportedTime, $LastChangeTime,
|
||||
$ModComment, $Tracks, $Images, $ExtraIDs, $Links, $LogMessage, $GroupName, $GroupID, $ArtistID, $ArtistName, $Year, $CategoryID, $Time, $Remastered, $RemasterTitle,
|
||||
$RemasterYear, $Media, $Format, $Encoding, $Size, $HasCue, $HasLog, $LogScore, $UploaderID, $UploaderName) = Misc::display_array($Report, array("ModComment"));
|
||||
@ -412,7 +410,6 @@
|
||||
$First = true;
|
||||
$Extras = explode(' ', $ExtraIDs);
|
||||
foreach ($Extras as $ExtraID) {
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
tg.Name,
|
||||
|
@ -210,7 +210,6 @@
|
||||
</td>
|
||||
<td style="vertical-align: top;">
|
||||
<?
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
r.ResolverID,
|
||||
|
@ -47,7 +47,6 @@
|
||||
WHERE t.ID = $TorrentID
|
||||
LIMIT 1");
|
||||
|
||||
|
||||
if ($DB->record_count() < 1) {
|
||||
error(404);
|
||||
}
|
||||
@ -71,7 +70,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
Title,
|
||||
|
@ -371,7 +371,6 @@ function next_hour() {
|
||||
$AgoMins = time_minus(60 * 30);
|
||||
$AgoDays = time_minus(3600 * 24 * 30);
|
||||
|
||||
|
||||
$SessionQuery = $DB->query("
|
||||
SELECT UserID, SessionID
|
||||
FROM users_sessions
|
||||
@ -1305,7 +1304,6 @@ function next_hour() {
|
||||
|
||||
if ($BiWeek == 8) {
|
||||
$DB->query('TRUNCATE TABLE top_snatchers;');
|
||||
|
||||
$DB->query("
|
||||
INSERT INTO top_snatchers (UserID)
|
||||
SELECT uid
|
||||
|
@ -60,7 +60,6 @@
|
||||
if (!$PlatformDistribution = $Cache->get_value('platform_distribution')) {
|
||||
include_once(SERVER_ROOT.'/classes/charts.class.php');
|
||||
|
||||
|
||||
$DB->query("
|
||||
SELECT OperatingSystem, COUNT(UserID) AS Users
|
||||
FROM users_sessions
|
||||
@ -83,7 +82,6 @@
|
||||
if (!$BrowserDistribution = $Cache->get_value('browser_distribution')) {
|
||||
include_once(SERVER_ROOT.'/classes/charts.class.php');
|
||||
|
||||
|
||||
$DB->query("
|
||||
SELECT Browser, COUNT(UserID) AS Users
|
||||
FROM users_sessions
|
||||
|
@ -52,7 +52,6 @@
|
||||
FROM torrents");
|
||||
list($TotalSnatches, $TotalTorrents) = $DB->next_record(); // This is the total number of snatches for torrents that still exist
|
||||
|
||||
|
||||
$DB->query("SELECT COUNT(uid) FROM xbt_snatched");
|
||||
list($TotalOverallSnatches) = $DB->next_record();
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
||||
<td>Submit</td>
|
||||
<? } ?>
|
||||
</tr>
|
||||
<tr/>
|
||||
<tr />
|
||||
<tr>
|
||||
<form class="add_form" name="aliases" method="post" action="">
|
||||
<input type="hidden" name="newalias" value="1" />
|
||||
|
@ -87,7 +87,7 @@ <h4 class="hidden">Site Menu</h4>
|
||||
<form class="search_form" name="artists" action="" method="get">
|
||||
<script type="text/javascript" src="static/functions/autocomplete.js?v=1362029969"></script>
|
||||
<input id="artistsearch" value="Artists" type="text" name="artistname" size="17"/>
|
||||
<ul id="artistcomplete" style="visibility: hidden;"><li/></ul>
|
||||
<ul id="artistcomplete" style="visibility: hidden;"><li /></ul>
|
||||
</form>
|
||||
</li>
|
||||
<li id="searchbar_requests">
|
||||
|
@ -5,7 +5,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
t.UserID,
|
||||
@ -21,7 +20,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
list($UserID, $Time, $Snatches) = $DB->next_record();
|
||||
|
||||
|
||||
|
@ -71,7 +71,6 @@
|
||||
error(403);
|
||||
}
|
||||
|
||||
|
||||
View::show_header('Edit torrent', 'upload');
|
||||
|
||||
|
||||
|
@ -151,7 +151,6 @@ function header_link($SortKey, $DefaultWay = 'desc') {
|
||||
$Cache->delete_value('notifications_new_'.$LoggedUser['ID']);
|
||||
}
|
||||
}
|
||||
|
||||
View::show_header('My notifications', 'notifications');
|
||||
|
||||
?>
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
global $Cache;
|
||||
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
m.Username,
|
||||
@ -550,7 +549,7 @@ function checked($Checked) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td/>
|
||||
<td />
|
||||
<td>
|
||||
<p class="min_padding">A strong password is between 8 and 40 characters long</p>
|
||||
<p class="min_padding">Contains at least 1 lowercase and uppercase letter</p>
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?
|
||||
|
||||
|
||||
//TODO: restrict to viewing bellow class, username in h2
|
||||
if (isset($_GET['userid']) && check_perms('users_view_ips') && check_perms('users_logout')) {
|
||||
if (!is_number($_GET['userid'])) {
|
||||
|
@ -92,8 +92,6 @@
|
||||
|
||||
// Get user info from the database
|
||||
|
||||
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
m.Username,
|
||||
@ -242,7 +240,6 @@
|
||||
}
|
||||
$Cache->delete_value('users_sessions_'.$UserID);
|
||||
|
||||
|
||||
$DB->query("
|
||||
DELETE FROM users_sessions
|
||||
WHERE UserID='$UserID'");
|
||||
@ -703,7 +700,6 @@
|
||||
}
|
||||
$Cache->delete_value('users_sessions_'.$UserID);
|
||||
|
||||
|
||||
$DB->query("
|
||||
DELETE FROM users_sessions
|
||||
WHERE UserID = '$UserID'");
|
||||
|
@ -171,7 +171,6 @@ function check_paranoia_here($Setting) {
|
||||
|
||||
$Badges = (($Donor) ? '<a href="donate.php"><img src="'.STATIC_SERVER.'common/symbols/donor.png" alt="Donor" /></a>' : '');
|
||||
|
||||
|
||||
$Badges.=(($Warned!='0000-00-00 00:00:00') ? '<img src="'.STATIC_SERVER.'common/symbols/warned.png" alt="Warned" />' : '');
|
||||
$Badges.=(($Enabled == '1' || $Enabled == '0' || !$Enabled) ? '' : '<img src="'.STATIC_SERVER.'common/symbols/disabled.png" alt="Banned" />');
|
||||
|
||||
|
@ -51,7 +51,6 @@
|
||||
$sql .= ')';
|
||||
if ($ShowUnread) {
|
||||
|
||||
|
||||
$sql .= '
|
||||
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)';
|
||||
|
@ -5,7 +5,6 @@
|
||||
$Alias = new ALIAS;
|
||||
|
||||
|
||||
|
||||
define('INDEX_ARTICLE', '1');
|
||||
|
||||
|
||||
|
@ -120,7 +120,7 @@ function showReleaseGroups(xml) {
|
||||
var $score = $(this).attr("ext:score");
|
||||
var $releaseId = $(this).attr("id");
|
||||
var $result = $artist + " - " + $title + " [Type: " + $type + ", Score: " + $score + "]"
|
||||
$("<a href='#null'>" + $result + "<p/>").attr("id", $releaseId).appendTo("#results1");
|
||||
$("<a href='#null'>" + $result + "<p />").attr("id", $releaseId).appendTo("#results1");
|
||||
});
|
||||
}
|
||||
|
||||
@ -133,9 +133,9 @@ function showReleases(xml) {
|
||||
$year_original = $date_release_group.substring(0,4);
|
||||
$release_type = $(xml).find("release-group").attr("type");
|
||||
$release_group_id = $(xml).find("release-group").attr("id");
|
||||
jQuery('#popup_title').html("Choose Release " + "<a href='https://musicbrainz.org/release-group/"
|
||||
+ $release_group_id + "' target='_new' class='brackets'>View on MusicBrainz</a>");
|
||||
jQuery('#popup_back').html("<a href='#null' id='back' class='brackets'>Go back</a>");
|
||||
jQuery('#popup_title').html("Choose Release " + '<a href="https://musicbrainz.org/release-group/'
|
||||
+ $release_group_id + '" target="_new" class="brackets">View on MusicBrainz</a>');
|
||||
jQuery('#popup_back').html('<a href="#null" id="back" class="brackets">Go back</a>');
|
||||
|
||||
$(xml).find("release").each(function() {
|
||||
var $release_id = $(this).attr("id");
|
||||
@ -154,9 +154,9 @@ function showReleases(xml) {
|
||||
});
|
||||
});
|
||||
var $result = $title + " [Year: " + $year + ", Format: " + $format + ", Tracks: " + $tracks + ", Country: " + $country + "]";
|
||||
$("<a href='#null'>" + $result + "</a>").attr("id", $release_id).appendTo("#results2");
|
||||
$('<a href="#null">' + $result + "</a>").attr("id", $release_id).appendTo("#results2");
|
||||
|
||||
$("<a href='https://musicbrainz.org/release/" + $release_id +"' target='_new' class='brackets'>View on MusicBrainz</a>" + "<p/>").attr("id", "mb").appendTo("#results2");
|
||||
$('<a href="https://musicbrainz.org/release/' + $release_id +'" target="_new" class="brackets">View on MusicBrainz</a>' + "<p />").attr("id", "mb").appendTo("#results2");
|
||||
});
|
||||
|
||||
parseTags(xml);
|
||||
@ -236,7 +236,7 @@ function populateForm(xml) {
|
||||
$country_text +
|
||||
$barcode_text +
|
||||
"Tracks: " + $track_count + "\n" + "\n" +
|
||||
"Track List:" + "\n";
|
||||
"Track list:" + "\n";
|
||||
for (var i = 0; i < $track_titles.length; i++) {
|
||||
$description = $description + "[#]" + $track_titles[i] + "\n";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user