mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-12 18:36:29 +00:00
Empty commit
This commit is contained in:
parent
14e7756f23
commit
b07b557f88
@ -277,7 +277,7 @@ public function include_table($Includes=false) {
|
||||
$Includes = $this->get_includes();
|
||||
}
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_include').toggle();return false;">(View)</a> <?=number_format(count($Includes))?> Includes:</strong></td>
|
||||
</tr>
|
||||
@ -301,7 +301,7 @@ public function class_table($Classes=false) {
|
||||
$Classes = $this->get_classes();
|
||||
}
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_classes').toggle();return false;">(View)</a> Classes:</strong></td>
|
||||
</tr>
|
||||
@ -318,7 +318,7 @@ public function class_table($Classes=false) {
|
||||
|
||||
public function extension_table() {
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_extensions').toggle();return false;">(View)</a> Extensions:</strong></td>
|
||||
</tr>
|
||||
@ -341,7 +341,7 @@ public function flag_table($Flags=false) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_flags').toggle();return false;">(View)</a> Flags:</strong></td>
|
||||
</tr>
|
||||
@ -368,7 +368,7 @@ public function constant_table($Constants=false) {
|
||||
$Constants = $this->get_constants();
|
||||
}
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_constants').toggle();return false;">(View)</a> Constants:</strong></td>
|
||||
</tr>
|
||||
@ -396,7 +396,7 @@ public function cache_table($CacheKeys=false) {
|
||||
$Header = ' '.number_format(count($CacheKeys)).' '.$Header.':';
|
||||
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_cache').toggle();return false;">(View)</a><?=$Header?></strong></td>
|
||||
</tr>
|
||||
@ -424,7 +424,7 @@ public function error_table($Errors=false) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_error').toggle();return false;">(View)</a> <?=number_format(count($Errors))?> Errors:</strong></td>
|
||||
</tr>
|
||||
@ -457,7 +457,7 @@ public function query_table($Queries=false) {
|
||||
}
|
||||
$Header = ' '.number_format(count($Queries)).' '.$Header.':';
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_database').toggle();return false;">(View)</a><?=$Header?></strong></td>
|
||||
</tr>
|
||||
@ -492,7 +492,7 @@ public function sphinx_table($Queries=false) {
|
||||
}
|
||||
$Header = ' '.number_format(count($Queries)).' '.$Header.':';
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_sphinx').toggle();return false;">(View)</a><?=$Header?></strong></td>
|
||||
</tr>
|
||||
@ -524,7 +524,7 @@ public function vars_table($Vars=false) {
|
||||
$Header = ' '.number_format(count($Vars)).' '.$Header.':';
|
||||
|
||||
?>
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td align="left"><strong><a href="#" onclick="$('#debug_loggedvars').toggle();return false;">(View)</a><?=$Header?></strong></td>
|
||||
</tr>
|
||||
|
@ -264,7 +264,7 @@ function parse($Str) {
|
||||
if($CloseTag === false) { // block finishes with URL
|
||||
$CloseTag = $Len;
|
||||
}
|
||||
if(preg_match('/[!;,.?:]+$/',substr($Str, $i, $CloseTag), $Match)) {
|
||||
if(preg_match('/[!,.?:]+$/',substr($Str, $i, $CloseTag), $Match)) {
|
||||
$CloseTag -= strlen($Match[0]);
|
||||
}
|
||||
$URL = substr($Str, $i, $CloseTag);
|
||||
|
@ -78,7 +78,7 @@ function head() {
|
||||
} ?>
|
||||
</div>
|
||||
<? if($this->NewTorrent) { ?>
|
||||
<table cellpadding="3" cellspacing='1' border='0' class='border' width="100%">
|
||||
<table cellpadding="3" cellspacing='1' border='0' class='layout border' width="100%">
|
||||
<tr>
|
||||
<td class="label">
|
||||
Torrent file
|
||||
@ -115,7 +115,7 @@ function foot() {
|
||||
?>
|
||||
</div>
|
||||
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="border slice" width="100%">
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="layout border slice" width="100%">
|
||||
<? if(!$this->NewTorrent) {
|
||||
if(check_perms('torrents_freeleech')) {
|
||||
?>
|
||||
@ -193,7 +193,7 @@ function music_form($GenreTags) {
|
||||
$LossywebApproved = $Torrent['LossywebApproved'];
|
||||
global $ReleaseTypes;
|
||||
?>
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="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) { ?>
|
||||
<tr id="artist_tr">
|
||||
<td class="label">Artist(s)</td>
|
||||
@ -633,7 +633,7 @@ function show() {
|
||||
function audiobook_form() {
|
||||
$Torrent = $this->Torrent;
|
||||
?>
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="border slice" width="100%">
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="layout border slice" width="100%">
|
||||
<? if($this->NewTorrent){ ?>
|
||||
<tr id="title_tr">
|
||||
<td class="label">Author - Title</td>
|
||||
@ -736,7 +736,7 @@ function audiobook_form() {
|
||||
|
||||
function simple_form($CategoryID) {
|
||||
$Torrent = $this->Torrent;
|
||||
?> <table cellpadding="3" cellspacing="1" border="0" class="border slice" width="100%">
|
||||
?> <table cellpadding="3" cellspacing="1" border="0" class="layout border slice" width="100%">
|
||||
<tr id="name">
|
||||
<? if ($this->NewTorrent) {
|
||||
if ($this->Categories[$CategoryID] == 'E-Books') { ?>
|
||||
|
@ -115,8 +115,8 @@ function permissions_form(){ ?>
|
||||
<div class="permissions">
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="colhead">Site</td>
|
||||
<tr class="colhead">
|
||||
<td>Site</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@ -165,8 +165,8 @@ function permissions_form(){ ?>
|
||||
</div>
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="colhead">Users</td>
|
||||
<tr class="colhead">
|
||||
<td>Users</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@ -207,8 +207,8 @@ function permissions_form(){ ?>
|
||||
</div>
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="colhead">Torrents</td>
|
||||
<tr class="colhead">
|
||||
<td>Torrents</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@ -232,8 +232,8 @@ function permissions_form(){ ?>
|
||||
</div>
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="colhead">Administrative</td>
|
||||
<tr class="colhead">
|
||||
<td>Administrative</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -32,7 +32,7 @@
|
||||
<body>
|
||||
<div id="head">
|
||||
</div>
|
||||
<table id="maincontent">
|
||||
<table class="layout" id="maincontent">
|
||||
<tr>
|
||||
<td align="center" valign="middle">
|
||||
<div id="logo">
|
||||
|
@ -309,7 +309,7 @@ function compare($X, $Y){
|
||||
if($OpenTable) { ?>
|
||||
</table>
|
||||
<? } ?>
|
||||
<table class="torrent_table" id="torrents_<?=$ReleaseTypeLabel?>">
|
||||
<table class="torrent_table grouped release_table" id="torrents_<?=$ReleaseTypeLabel?>">
|
||||
<tr class="colhead_dark">
|
||||
<td class="small"><!-- expand/collapse --></td>
|
||||
<td width="70%"><a href="#">↑</a> <strong><?=$DisplayName?></strong> (<a href="#" onclick="$('.releases_<?=$ReleaseType?>').toggle(true);return false;">View</a>)</td>
|
||||
@ -706,7 +706,7 @@ function compare($X, $Y){
|
||||
if($NumRequests > 0) {
|
||||
|
||||
?>
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%" id="requests">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="request_table border" width="100%" id="requests">
|
||||
<tr class="colhead_dark">
|
||||
<td style="width:48%;">
|
||||
<a href="#">↑</a>
|
||||
|
@ -230,7 +230,7 @@ function display_name($ReleaseType) {
|
||||
$HideDiscogDefault = false;
|
||||
}
|
||||
?>
|
||||
<table class="torrent_table releases_<?=$ReleaseType?>_table<?=$NumTorrentsReleaseType==0?" empty hidden":""?>" id="torrents_<?=$ReleaseTypeLabel?>">
|
||||
<table class="torrent_table grouped release_table releases_<?=$ReleaseType?>_table<?=$NumTorrentsReleaseType==0?" empty hidden":""?>" id="torrents_<?=$ReleaseTypeLabel?>">
|
||||
<tr class="colhead_dark">
|
||||
<td class="small" style="width: 28px;"></td>
|
||||
<td width="70%">
|
||||
@ -564,7 +564,7 @@ function display_name($ReleaseType) {
|
||||
if($NumRequests > 0) {
|
||||
|
||||
?>
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%" id="requests">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="requests_table border" width="100%" id="requests">
|
||||
<tr class="colhead_dark">
|
||||
<td style="width:48%;">
|
||||
<a href="#">↑</a>
|
||||
|
@ -42,7 +42,7 @@
|
||||
</div>
|
||||
<div class="thin box pad">
|
||||
<h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3>
|
||||
<table>
|
||||
<table class="torrent_table">
|
||||
<?
|
||||
foreach($TorrentsInfo as $TorrentID => $Info) {
|
||||
list($GroupID, $GroupName, $GroupYear, $GroupRecordLabel, $GroupCatalogueNumber, $TorrentTags, $ReleaseType, $GroupVanityHouse, $Torrents, $Artists) = array_values($Results[$Info['GroupID']]);
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
<div class="thin box pad">
|
||||
<h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3>
|
||||
<table>
|
||||
<table class="torrent_table">
|
||||
<?
|
||||
foreach($TorrentsInfo as $TorrentID => $Info) {
|
||||
list($GroupID, $GroupName, $GroupYear, $GroupRecordLabel, $GroupCatalogueNumber, $TorrentTags, $ReleaseType, $GroupVanityHouse, $Torrents, $Artists) = array_values($Results[$Info['GroupID']]);
|
||||
|
@ -18,7 +18,7 @@
|
||||
show_header('Single seeder FLACs');
|
||||
?>
|
||||
<div class="thin">
|
||||
<table width="100%">
|
||||
<table width="100%" class="torrent_table">
|
||||
<tr class="colhead">
|
||||
<td>Torrent</td>
|
||||
</tr>
|
||||
|
@ -61,7 +61,7 @@
|
||||
<? } ?>
|
||||
</div>
|
||||
<div class="thin">
|
||||
<table width="100%">
|
||||
<table width="100%" class="torrent_table">
|
||||
<tr class="colhead">
|
||||
<td>Torrent</td>
|
||||
<td>V2</td>
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
<div class="thin box pad">
|
||||
<h3>There are <?=count($TorrentsInfo)?> torrents remaining</h3>
|
||||
<table>
|
||||
<table class="torrent_table">
|
||||
<?
|
||||
foreach($TorrentsInfo as $TorrentID => $Info) {
|
||||
list($GroupID, $GroupName, $GroupYear, $GroupRecordLabel, $GroupCatalogueNumber, $TorrentTags, $ReleaseType, $GroupVanityHouse, $Torrents, $Artists) = array_values($Results[$Info['GroupID']]);
|
||||
|
@ -84,7 +84,7 @@
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<table width="100%">
|
||||
<table width="100%" class="torrent_table">
|
||||
<tr class="colhead">
|
||||
<td>Torrent</td>
|
||||
<td>V2</td>
|
||||
|
@ -48,7 +48,7 @@
|
||||
show_header('Transcode Uploads');
|
||||
?>
|
||||
<div class="thin">
|
||||
<table width="100%">
|
||||
<table width="100%" class="torrent_table">
|
||||
<tr class="colhead">
|
||||
<td>Torrent</td>
|
||||
<td>V2</td>
|
||||
|
@ -49,7 +49,7 @@
|
||||
show_footer();
|
||||
die();
|
||||
} ?>
|
||||
<table width="100%">
|
||||
<table width="100%" class="artist_table">
|
||||
<tr class="colhead">
|
||||
<td>Artist</td>
|
||||
</tr>
|
||||
|
@ -407,7 +407,7 @@ function compare($X, $Y){
|
||||
<? }
|
||||
} ?>
|
||||
<br />
|
||||
<table class="torrent_table" id="torrent_table">
|
||||
<table class="torrent_table grouping cats" id="torrent_table">
|
||||
<tr class="colhead_dark">
|
||||
<td><!-- expand/collapse --></td>
|
||||
<td><!-- Category --></td>
|
||||
|
@ -152,7 +152,7 @@
|
||||
<div>
|
||||
<form action="" method="get">
|
||||
<div><input type="hidden" name="action" value="search" /></div>
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label"><strong>Search for:</strong></td>
|
||||
<td colspan="3">
|
||||
@ -263,7 +263,7 @@
|
||||
</div><!--content-->
|
||||
<? show_footer(); die();
|
||||
} ?>
|
||||
<table width="100%">
|
||||
<table width="100%" class="collage_table">
|
||||
<tr class="colhead">
|
||||
<td>Category</td>
|
||||
<td>Collage</td>
|
||||
|
@ -633,7 +633,7 @@ function compare($X, $Y){
|
||||
</script>
|
||||
<? }
|
||||
} ?>
|
||||
<table class="torrent_table" id="discog_table">
|
||||
<table class="torrent_table grouping cats" id="discog_table">
|
||||
<tr class="colhead_dark">
|
||||
<td><!-- expand/collapse --></td>
|
||||
<td><!-- Category --></td>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<input type="hidden" name="action" value="edit_handle" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="collageid" value="<?=$CollageID?>" />
|
||||
<table id="edit_collage">
|
||||
<table id="edit_collage" class="layout">
|
||||
<? if (check_perms('site_collages_delete') || ($CategoryID == 0 && $UserID == $LoggedUser['ID'] && check_perms('site_collages_renamepersonal'))) { ?>
|
||||
<tr>
|
||||
<td class="label">Name</td>
|
||||
|
@ -40,7 +40,7 @@
|
||||
<div class="header">
|
||||
<h2>Manage collage <a href="collages.php?id=<?=$CollageID?>"><?=$Name?></a></h2>
|
||||
</div>
|
||||
<table width="100%">
|
||||
<table width="100%" class="layout">
|
||||
<tr class="colhead"><td>Sorting</td></tr>
|
||||
<tr>
|
||||
<td id="drag_drop_textnote">
|
||||
|
@ -24,7 +24,7 @@
|
||||
<form action="collages.php" method="post" name="newcollage">
|
||||
<input type="hidden" name="action" value="new_handle" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr id="collagename">
|
||||
<td class="label"><strong>Name</strong></td>
|
||||
<td>
|
||||
|
@ -77,7 +77,7 @@
|
||||
<div style="display: inline-block;">
|
||||
<h3>Search this forum:</h3>
|
||||
<form action="forums.php" method="get">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border">
|
||||
<input type="hidden" name="action" value="search" />
|
||||
<input type="hidden" name="forums[]" value="<?=$ForumID?>" />
|
||||
<tr>
|
||||
|
@ -75,7 +75,7 @@
|
||||
<input type="hidden" name="action" value="new" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="forum" value="<?=$ForumID?>" />
|
||||
<table id="newthreadtext">
|
||||
<table id="newthreadtext" class="layout">
|
||||
<tr>
|
||||
<td class="label">Title</td>
|
||||
<td><input id="title" type="text" name="title" style="width: 98%;" /></td>
|
||||
|
@ -79,7 +79,7 @@
|
||||
<h2><a href="forums.php">Forums</a> > Search<?=$Title?></h2>
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="action" value="search" />
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td><strong>Search for:</strong></td>
|
||||
<td>
|
||||
@ -100,7 +100,7 @@
|
||||
<tr>
|
||||
<td><strong>Forums:</strong></td>
|
||||
<td>
|
||||
<table class="cat_list">
|
||||
<table class="cat_list layout">
|
||||
|
||||
|
||||
<?// List of forums
|
||||
@ -260,7 +260,7 @@
|
||||
echo $Pages;
|
||||
?>
|
||||
</div>
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="forum_list border" width="100%">
|
||||
<tr class="colhead">
|
||||
<td>Forum</td>
|
||||
<td><?=(!empty($ThreadID))?'Post Begins':'Topic'?></td>
|
||||
|
@ -156,7 +156,7 @@
|
||||
<div style="display: inline-block;">
|
||||
<h3>Search this thread:</h3>
|
||||
<form action="forums.php" method="get">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border">
|
||||
<input type="hidden" name="action" value="search" />
|
||||
<input type="hidden" name="threadid" value="<?=$ThreadID?>" />
|
||||
<tr>
|
||||
@ -535,7 +535,7 @@
|
||||
<input type="hidden" name="page" value="<?=$Page?>" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
</div>
|
||||
<table cellpadding="6" cellspacing="1" border="0" width="100%" class="border">
|
||||
<table cellpadding="6" cellspacing="1" border="0" width="100%" class="layout border">
|
||||
<tr>
|
||||
<td class="label">Sticky</td>
|
||||
<td>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<input type="hidden" name="userid" value="<?=$UserID?>"/>
|
||||
<input type="hidden" name="key" value="<?=$Key?>"/>
|
||||
<input type="hidden" name="action" value="take_warn"/>
|
||||
<table align="center">
|
||||
<table class="layout" align="center">
|
||||
<tr>
|
||||
<td class="label">Reason:</td>
|
||||
<td>
|
||||
|
@ -69,8 +69,8 @@
|
||||
<form action="friends.php" method="post">
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<table class="friends_table vertical_margin">
|
||||
<tr>
|
||||
<td class="colhead" colspan="3">
|
||||
<tr class="colhead">
|
||||
<td colspan="3">
|
||||
<span style="float:left;"><?=format_username($FriendID, true, true, true, true)?>
|
||||
<? if(check_paranoia('ratio', $Paranoia, $Class, $FriendID)) { ?>
|
||||
Ratio: <strong><?=ratio($Uploaded, $Downloaded)?></strong>
|
||||
|
@ -109,7 +109,7 @@
|
||||
<input type="hidden" name="convid" value="<?=$ConvID?>" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td class="label"><label for="sticky">Sticky</label></td>
|
||||
<td>
|
||||
|
@ -115,7 +115,7 @@
|
||||
<input type="submit" name="unread" value="Mark as unread" />
|
||||
<input type="submit" name="delete" value="Delete message(s)" />
|
||||
|
||||
<table>
|
||||
<table class="message_table checkboxes">
|
||||
<tr class="colhead">
|
||||
<td width="10"><input type="checkbox" onclick="toggleChecks('messageform',this)" /></td>
|
||||
<td width="50%">Subject</td>
|
||||
|
@ -363,7 +363,7 @@
|
||||
<a href="#" onclick="$('#vanityhouse').toggle();return false;">(View)</a>
|
||||
</div>
|
||||
|
||||
<table class="hidden" id="vanityhouse">
|
||||
<table class="torrent_table hidden" id="vanityhouse">
|
||||
<?
|
||||
foreach($Recommend as $Recommendations) {
|
||||
list($GroupID, $UserID, $Username, $GroupName, $TagList) = $Recommendations;
|
||||
|
@ -21,7 +21,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<form action="" method="get">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label"><strong>Search for:</strong></td>
|
||||
<td>
|
||||
@ -47,11 +47,10 @@
|
||||
<div class="linkbox">
|
||||
<?
|
||||
$Pages = get_pages($Page,$TotalMatches,LOG_ENTRIES_PER_PAGE,9);
|
||||
echo $Pages;
|
||||
?>
|
||||
echo $Pages;?>
|
||||
</div>
|
||||
<? } ?>
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="log_table border" width="100%">
|
||||
<tr class="colhead">
|
||||
<td style="width: 180px;"><strong>Time</strong></td>
|
||||
<td><strong>Message</strong></td>
|
||||
@ -201,7 +200,7 @@
|
||||
<?=time_diff($LogTime)?>
|
||||
</td>
|
||||
<td>
|
||||
<span<? if($Color) { ?> style="color: <?=$Color ?>;"<? } ?>><?=$Message?></span>
|
||||
<span<? if($Color) { ?> style="color: <?=$Color?>;"<? } ?>><?=$Message?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
@ -213,4 +212,4 @@
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
show_footer() ?>
|
||||
show_footer(); ?>
|
||||
|
@ -19,7 +19,7 @@
|
||||
You have <span class="info"><?=(6-$Attempts)?></span> attempts remaining.<br /><br />
|
||||
<strong>WARNING:</strong> You will be banned for 6 hours after your login attempts run out!<br /><br />
|
||||
<? } ?>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td>Username </td>
|
||||
<td colspan="2"><input type="text" name="username" id="username" class="inputtext" required="required" maxlength="20" pattern="[A-Za-z0-9_?]{1,20}" autofocus="autofocus" /></td>
|
||||
|
@ -12,7 +12,7 @@
|
||||
<font color="red"><strong><?=$Err ?></strong></font><br /><br />
|
||||
<? } ?>
|
||||
An email will be sent to your email address with information on how to reset your password<br /><br />
|
||||
<table cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<tr valign="top">
|
||||
<td align="right">Email </td>
|
||||
<td align="left"><input type="text" name="email" id="email" class="inputtext" /></td>
|
||||
|
@ -14,7 +14,7 @@
|
||||
?>
|
||||
<font color="red"><strong><?=display_str($Err)?></strong></font><br /><br />
|
||||
<? } ?> A strong password is between 8 and 40 characters long, contains at least 1 lowercase and uppercase letter, contains at least a number or symbol<br /><br />
|
||||
<table cellpadding="2" cellspacing="1" border="0" align="center" width="100%">
|
||||
<table class="layout" cellpadding="2" cellspacing="1" border="0" align="center" width="100%">
|
||||
<tr valign="top">
|
||||
<td align="right" style="width:100px;">Password </td>
|
||||
<td align="left"><input type="password" name="password" id="new_pass_1" class="inputtext" /> <b id="pass_strength"/></td>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<div style="width:500px;">
|
||||
<form method="get" action="register.php">
|
||||
Please enter your invite code into the box bellow.<br /><br />
|
||||
<table cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<tr valign="top">
|
||||
<td align="right">Invite </td>
|
||||
<td align="left"><input type="text" name="invite" id="invite" class="inputtext" /></td>
|
||||
|
@ -17,7 +17,7 @@
|
||||
?>
|
||||
<font color="red"><strong><?=$Err?></strong></font><br /><br />
|
||||
<? } ?>
|
||||
<table cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<tr valign="top">
|
||||
<td align="right" style="width:100px;">Username </td>
|
||||
<td align="left">
|
||||
|
@ -154,7 +154,7 @@
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="id" value="<?=$ID?>" />
|
||||
<input type="hidden" name="type" value="<?=$Short?>" />
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label">Year (required)</td>
|
||||
<td>
|
||||
|
@ -20,7 +20,7 @@
|
||||
$DB->query("SELECT um.Username, COUNT(r.ID) AS Reports FROM reports AS r JOIN users_main AS um ON um.ID=r.ResolverID WHERE r.ReportedTime > '2009-08-21 22:39:41' AND r.ReportedTime > NOW() - INTERVAL 24 HOUR GROUP BY r.ResolverID ORDER BY Reports DESC");
|
||||
$Results = $DB->to_array();
|
||||
?>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label"><strong>Reports resolved in the last 24h</strong></td>
|
||||
<td>
|
||||
|
@ -92,7 +92,7 @@
|
||||
WHERE ID=".$ReportID);
|
||||
?>
|
||||
<div>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class='center'>
|
||||
<a href="reportsv2.php?view=report&id=<?=$ReportID?>">Report <?=$ReportID?></a> for torrent <?=$TorrentID?> (deleted) has been automatically resolved. <input type="button" value="Clear" onclick="ClearReport(<?=$ReportID?>);" />
|
||||
@ -150,7 +150,7 @@
|
||||
<input type="hidden" id="type<?=$ReportID?>" name="type" value="<?=$Type?>" />
|
||||
<input type="hidden" id="categoryid<?=$ReportID?>" name="categoryid" value="<?=$CategoryID?>" />
|
||||
</div>
|
||||
<table cellpadding="5">
|
||||
<table class="layout" cellpadding="5">
|
||||
<tr>
|
||||
<td class="label"><a href="reportsv2.php?view=report&id=<?=$ReportID?>">Reported </a>Torrent:</td>
|
||||
<td colspan="3">
|
||||
|
@ -28,7 +28,7 @@
|
||||
?>
|
||||
</ul>
|
||||
<br />
|
||||
<table cellpadding="3" cellspacing='1' border='0' class='border' width="100%">
|
||||
<table class="layout" cellpadding="3" cellspacing="1" border="0" class="border" width="100%">
|
||||
<?
|
||||
if(array_key_exists('image', $ReportType['report_fields'])) {
|
||||
?>
|
||||
|
@ -30,7 +30,7 @@
|
||||
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
|
||||
<input type="hidden" name="categoryid" value="<?=$CategoryID?>" />
|
||||
</div>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label">Reason :</td>
|
||||
<td>
|
||||
|
@ -210,7 +210,7 @@
|
||||
if(count($Reports) == 0) {
|
||||
?>
|
||||
<div>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class='center'>
|
||||
<strong>No new reports! \o/</strong>
|
||||
@ -236,10 +236,10 @@
|
||||
WHERE ID=".$ReportID);
|
||||
$Cache->decrement('num_torrent_reportsv2');
|
||||
?>
|
||||
<div id=report<?=$ReportID?>>
|
||||
<table>
|
||||
<div id="report<?=$ReportID?>">
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class='center'>
|
||||
<td class="center">
|
||||
<a href="reportsv2.php?view=report&id=<?=$ReportID?>">Report <?=$ReportID?></a> for torrent <?=$TorrentID?> (deleted) has been automatically resolved. <input type="button" value="Hide" onclick="ClearReport(<?=$ReportID?>);" />
|
||||
</td>
|
||||
</tr>
|
||||
@ -294,7 +294,7 @@
|
||||
<input type="hidden" id="type<?=$ReportID?>" name="type" value="<?=$Type?>" />
|
||||
<input type="hidden" id="categoryid<?=$ReportID?>" name="categoryid" value="<?=$CategoryID?>" />
|
||||
</div>
|
||||
<table cellpadding="5">
|
||||
<table class="layout" cellpadding="5">
|
||||
<tr>
|
||||
<td class="label"><a href="reportsv2.php?view=report&id=<?=$ReportID?>">Reported </a>Torrent:</td>
|
||||
<td colspan="3">
|
||||
|
@ -83,7 +83,7 @@
|
||||
} else {
|
||||
//Someone beat us to it. Inform the staffer.
|
||||
?>
|
||||
<table cellpadding="5">
|
||||
<table class="layout" cellpadding="5">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="reportsv2.php?view=report&id=<?=$ReportID?>">Somebody has already resolved this report</a>
|
||||
@ -282,7 +282,7 @@
|
||||
} else {
|
||||
//Someone beat us to it. Inform the staffer.
|
||||
?>
|
||||
<table cellpadding="5">
|
||||
<table class="layout" cellpadding="5">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="reportsv2.php?view=report&id=<?=$ReportID?>">Somebody has already resolved this report</a>
|
||||
|
@ -24,7 +24,7 @@
|
||||
</div>
|
||||
<br />
|
||||
<div class="box pad thin" style="padding: 0px 0px 0px 20px; width: 70%; margin-left: auto; margin-right: auto">
|
||||
<table><tr><td style="width: 50%;">
|
||||
<table class="layout"><tr><td style="width: 50%;">
|
||||
<?
|
||||
$DB->query("SELECT um.ID, um.Username, COUNT(r.ID) AS Reports FROM reportsv2 AS r JOIN users_main AS um ON um.ID=r.ResolverID WHERE r.LastChangeTime > NOW() - INTERVAL 24 HOUR GROUP BY r.ResolverID ORDER BY Reports DESC");
|
||||
$Results = $DB->to_array();
|
||||
@ -184,10 +184,10 @@
|
||||
?>
|
||||
<strong>Currently assigned reports by staff member</strong>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="colhead">Staff member</td>
|
||||
<td class="colhead">Current Count</td>
|
||||
<td class="colhead">Tasted</td>
|
||||
<tr class="colhead">
|
||||
<td>Staff member</td>
|
||||
<td>Current Count</td>
|
||||
<td>Tasted</td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
@ -217,9 +217,9 @@
|
||||
if(!empty($Current)) {
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="colhead">Type</td>
|
||||
<td class="colhead">Current Count</td>
|
||||
<tr class="colhead">
|
||||
<td>Type</td>
|
||||
<td>Current Count</td>
|
||||
</tr>
|
||||
<?
|
||||
foreach($Current as $Array) {
|
||||
|
@ -135,7 +135,7 @@
|
||||
<input type="hidden" name="action" value="<?=$NewRequest ? 'takenew' : 'takeedit'?>" />
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td colspan="2" class="center">Please make sure your request follows <a href="rules.php?p=requests">the request rules!</a></td>
|
||||
</tr>
|
||||
|
@ -235,7 +235,7 @@
|
||||
</div>
|
||||
<div class="box box_votes">
|
||||
<div class="head"><strong>Top Contributors</strong></div>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<? $VoteMax = ($VoteCount < 5 ? $VoteCount : 5);
|
||||
$ViewerVote = false;
|
||||
for($i = 0; $i < $VoteMax; $i++) {
|
||||
@ -275,7 +275,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_column">
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label">Created</td>
|
||||
<td>
|
||||
|
@ -317,7 +317,7 @@
|
||||
<? if(!empty($_GET['userid']) && is_number($_GET['userid'])) { ?>
|
||||
<input type="hidden" name="userid" value="<?=$_GET['userid']?>" />
|
||||
<? } ?>
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label">Search terms:</td>
|
||||
<td>
|
||||
@ -354,7 +354,7 @@
|
||||
</tr>
|
||||
<? */} ?>
|
||||
</table>
|
||||
<table class="cat_list">
|
||||
<table class="layout cat_list">
|
||||
<?
|
||||
$x=1;
|
||||
reset($Categories);
|
||||
@ -377,7 +377,7 @@
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr id="release_list">
|
||||
<td class="label">Release Types</td>
|
||||
<td>
|
||||
@ -428,8 +428,6 @@
|
||||
<? }?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2" class="center">
|
||||
<input type="submit" value="Search requests" />
|
||||
@ -444,7 +442,7 @@
|
||||
<?=$PageLinks?>
|
||||
</div>
|
||||
<? } ?>
|
||||
<table id="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">
|
||||
<td style="width: 38%;" class="nobr">
|
||||
<strong>Request Name</strong> / <a href="?order=year&sort=<?=(($CurrentOrder == 'year') ? $NewSort : 'desc')?>&<?=$CurrentURL ?>"><strong>Year</strong></a>
|
||||
|
@ -260,7 +260,7 @@ show_header($Title, 'requests');
|
||||
<div class="center">
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="submit" value="true" />
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label">Search terms:</td>
|
||||
<td>
|
||||
@ -292,7 +292,7 @@ show_header($Title, 'requests');
|
||||
</tr>
|
||||
<? */} ?>
|
||||
</table>
|
||||
<table class="cat_list">
|
||||
<table class="layout cat_list">
|
||||
<?
|
||||
$x=1;
|
||||
reset($Categories);
|
||||
@ -315,7 +315,7 @@ foreach($Categories as $CatKey => $CatName) {
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr id="release_list">
|
||||
<td class="label">Release Types</td>
|
||||
<td>
|
||||
@ -366,8 +366,6 @@ foreach($Categories as $CatKey => $CatName) {
|
||||
<? }?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2" class="center">
|
||||
<input type="submit" value="Search requests" />
|
||||
@ -381,7 +379,7 @@ foreach($Categories as $CatKey => $CatName) {
|
||||
<?=$PageLinks?>
|
||||
</div>
|
||||
|
||||
<table id="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">
|
||||
<td style="width: 38%;">
|
||||
<a href="requests.php?order=name&sort=<?=(($CurrentOrder == 'name') ? $NewSort : 'asc')?>&<?=$CurrentURL ?>"><strong>Request Name</strong></a>
|
||||
|
@ -1,29 +1,29 @@
|
||||
<?
|
||||
enforce_login();
|
||||
|
||||
// Get user level
|
||||
$DB->query("
|
||||
SELECT
|
||||
i.SupportFor,
|
||||
p.DisplayStaff
|
||||
FROM users_info as i
|
||||
JOIN users_main as m ON m.ID = i.UserID
|
||||
JOIN permissions as p ON p.ID = m.PermissionID
|
||||
WHERE i.UserID = ".$LoggedUser['ID']
|
||||
);
|
||||
list($SupportFor, $DisplayStaff) = $DB->next_record();
|
||||
|
||||
if (!($SupportFor != '' || $DisplayStaff == '1')) {
|
||||
// Logged in user is not FLS or Staff
|
||||
error(403);
|
||||
}
|
||||
|
||||
if ($ID = (int)$_POST['id']) {
|
||||
$DB->query("DELETE FROM staff_pm_responses WHERE ID=$ID");
|
||||
echo '1';
|
||||
|
||||
} else {
|
||||
// No id
|
||||
echo '-1';
|
||||
}
|
||||
<?
|
||||
enforce_login();
|
||||
|
||||
// Get user level
|
||||
$DB->query("
|
||||
SELECT
|
||||
i.SupportFor,
|
||||
p.DisplayStaff
|
||||
FROM users_info as i
|
||||
JOIN users_main as m ON m.ID = i.UserID
|
||||
JOIN permissions as p ON p.ID = m.PermissionID
|
||||
WHERE i.UserID = ".$LoggedUser['ID']
|
||||
);
|
||||
list($SupportFor, $DisplayStaff) = $DB->next_record();
|
||||
|
||||
if (!($SupportFor != '' || $DisplayStaff == '1')) {
|
||||
// Logged in user is not FLS or Staff
|
||||
error(403);
|
||||
}
|
||||
|
||||
if ($ID = (int)$_POST['id']) {
|
||||
$DB->query("DELETE FROM staff_pm_responses WHERE ID=$ID");
|
||||
echo '1';
|
||||
|
||||
} else {
|
||||
// No id
|
||||
echo '-1';
|
||||
}
|
||||
?>
|
@ -1,48 +1,48 @@
|
||||
<?
|
||||
enforce_login();
|
||||
// Get user level
|
||||
$DB->query("
|
||||
SELECT
|
||||
i.SupportFor,
|
||||
p.DisplayStaff
|
||||
FROM users_info as i
|
||||
JOIN users_main as m ON m.ID = i.UserID
|
||||
JOIN permissions as p ON p.ID = m.PermissionID
|
||||
WHERE i.UserID = ".$LoggedUser['ID']
|
||||
);
|
||||
list($SupportFor, $DisplayStaff) = $DB->next_record();
|
||||
|
||||
if (!($SupportFor != '' || $DisplayStaff == '1')) {
|
||||
// Logged in user is not FLS or Staff
|
||||
error(403);
|
||||
}
|
||||
|
||||
if (($Message = db_string($_POST['message'])) && ($Name = db_string($_POST['name']))) {
|
||||
$ID = (int)$_POST['id'];
|
||||
if (is_numeric($ID)) {
|
||||
if ($ID == 0) {
|
||||
// Create new response
|
||||
$DB->query("INSERT INTO staff_pm_responses (Message, Name) VALUES ('$Message', '$Name')");
|
||||
echo '1';
|
||||
} else {
|
||||
$DB->query("SELECT * FROM staff_pm_responses WHERE ID=$ID");
|
||||
if ($DB->record_count() != 0) {
|
||||
// Edit response
|
||||
$DB->query("UPDATE staff_pm_responses SET Message='$Message', Name='$Name' WHERE ID=$ID");
|
||||
echo '2';
|
||||
} else {
|
||||
// Create new response
|
||||
$DB->query("INSERT INTO staff_pm_responses (Message, Name) VALUES ('$Message', '$Name')");
|
||||
echo '1';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// No id
|
||||
echo '-2';
|
||||
}
|
||||
|
||||
} else {
|
||||
// No message/name
|
||||
echo '-1';
|
||||
}
|
||||
<?
|
||||
enforce_login();
|
||||
// Get user level
|
||||
$DB->query("
|
||||
SELECT
|
||||
i.SupportFor,
|
||||
p.DisplayStaff
|
||||
FROM users_info as i
|
||||
JOIN users_main as m ON m.ID = i.UserID
|
||||
JOIN permissions as p ON p.ID = m.PermissionID
|
||||
WHERE i.UserID = ".$LoggedUser['ID']
|
||||
);
|
||||
list($SupportFor, $DisplayStaff) = $DB->next_record();
|
||||
|
||||
if (!($SupportFor != '' || $DisplayStaff == '1')) {
|
||||
// Logged in user is not FLS or Staff
|
||||
error(403);
|
||||
}
|
||||
|
||||
if (($Message = db_string($_POST['message'])) && ($Name = db_string($_POST['name']))) {
|
||||
$ID = (int)$_POST['id'];
|
||||
if (is_numeric($ID)) {
|
||||
if ($ID == 0) {
|
||||
// Create new response
|
||||
$DB->query("INSERT INTO staff_pm_responses (Message, Name) VALUES ('$Message', '$Name')");
|
||||
echo '1';
|
||||
} else {
|
||||
$DB->query("SELECT * FROM staff_pm_responses WHERE ID=$ID");
|
||||
if ($DB->record_count() != 0) {
|
||||
// Edit response
|
||||
$DB->query("UPDATE staff_pm_responses SET Message='$Message', Name='$Name' WHERE ID=$ID");
|
||||
echo '2';
|
||||
} else {
|
||||
// Create new response
|
||||
$DB->query("INSERT INTO staff_pm_responses (Message, Name) VALUES ('$Message', '$Name')");
|
||||
echo '1';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// No id
|
||||
echo '-2';
|
||||
}
|
||||
|
||||
} else {
|
||||
// No message/name
|
||||
echo '-1';
|
||||
}
|
||||
?>
|
@ -1,101 +1,101 @@
|
||||
<?
|
||||
if (!($IsFLS)) {
|
||||
// Logged in user is not FLS or Staff
|
||||
error(403);
|
||||
}
|
||||
|
||||
show_header('Staff PMs', 'staffpm');
|
||||
|
||||
include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class
|
||||
$Text = new TEXT;
|
||||
|
||||
?>
|
||||
<div class="thin">
|
||||
<div class="header">
|
||||
<h2>Staff PMs - Manage common responses</h2>
|
||||
<div class="linkbox">
|
||||
<? if ($IsStaff) { ?>
|
||||
<a href="staffpm.php">[My unanswered]</a>
|
||||
<? } ?>
|
||||
<a href="staffpm.php?view=unanswered">[All unanswered]</a>
|
||||
<a href="staffpm.php?view=open">[Open]</a>
|
||||
<a href="staffpm.php?view=resolved">[Resolved]</a>
|
||||
<? if ($ConvID = (int)$_GET['convid']) { ?>
|
||||
<a href="staffpm.php?action=viewconv&id=<?=$ConvID?>">[Back to conversation]</a>
|
||||
<? } ?>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<div id="commonresponses" class="center">
|
||||
<br />
|
||||
<div id="ajax_message_0" class="hidden center alertbar"></div>
|
||||
<br />
|
||||
<div class="center">
|
||||
<h3>Create new response:</h3>
|
||||
</div>
|
||||
<div id="response_new" class="box">
|
||||
<form id="response_form_0" action="">
|
||||
<div class="head">
|
||||
<strong>Name:</strong>
|
||||
<input onfocus="if (this.value == 'New name') this.value='';"
|
||||
onblur="if (this.value == '') this.value='New name';"
|
||||
type="text" id="response_name_0" size="87" value="New name"
|
||||
/>
|
||||
</div>
|
||||
<div class="pad">
|
||||
<textarea onfocus="if (this.value == 'New message') this.value='';"
|
||||
onblur="if (this.value == '') this.value='New message';"
|
||||
rows="10" cols="87"
|
||||
id="response_message_0">New message</textarea>
|
||||
<br />
|
||||
<input type="button" value="Save" id="save_0" onClick="SaveMessage(0);" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<div class="center">
|
||||
<h3>Edit old responses:</h3>
|
||||
</div>
|
||||
<?
|
||||
|
||||
// List common responses
|
||||
$DB->query("SELECT ID, Message, Name FROM staff_pm_responses ORDER BY ID DESC");
|
||||
while(list($ID, $Message, $Name) = $DB->next_record()) {
|
||||
|
||||
?>
|
||||
<br />
|
||||
<div id="ajax_message_<?=$ID?>" class="hidden center alertbar"></div>
|
||||
<br />
|
||||
<div id="response_<?=$ID?>" class="box">
|
||||
<form id="response_form_<?=$ID?>" action="">
|
||||
<div class="head">
|
||||
<strong>Name:</strong>
|
||||
<input type="hidden" name="id" value="<?=$ID?>" />
|
||||
<input type="text" name="name" id="response_name_<?=$ID?>" size="87" value="<?=display_str($Name)?>" />
|
||||
</div>
|
||||
<div class="pad">
|
||||
<div class="box pad hidden" id="response_div_<?=$ID?>">
|
||||
<?=$Text->full_format($Message)?>
|
||||
</div>
|
||||
<textarea rows="10" cols="87" id="response_message_<?=$ID?>" name="message"><?=display_str($Message)?></textarea>
|
||||
<br />
|
||||
<input type="button" value="Toggle preview" onClick="PreviewResponse(<?=$ID?>);" />
|
||||
<input type="button" value="Delete" onClick="DeleteMessage(<?=$ID?>);" />
|
||||
<input type="button" value="Save" id="save_<?=$ID?>" onClick="SaveMessage(<?=$ID?>);" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
|
||||
show_footer();
|
||||
|
||||
?>
|
||||
<?
|
||||
if (!($IsFLS)) {
|
||||
// Logged in user is not FLS or Staff
|
||||
error(403);
|
||||
}
|
||||
|
||||
show_header('Staff PMs', 'staffpm');
|
||||
|
||||
include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class
|
||||
$Text = new TEXT;
|
||||
|
||||
?>
|
||||
<div class="thin">
|
||||
<div class="header">
|
||||
<h2>Staff PMs - Manage common responses</h2>
|
||||
<div class="linkbox">
|
||||
<? if ($IsStaff) { ?>
|
||||
<a href="staffpm.php">[My unanswered]</a>
|
||||
<? } ?>
|
||||
<a href="staffpm.php?view=unanswered">[All unanswered]</a>
|
||||
<a href="staffpm.php?view=open">[Open]</a>
|
||||
<a href="staffpm.php?view=resolved">[Resolved]</a>
|
||||
<? if ($ConvID = (int)$_GET['convid']) { ?>
|
||||
<a href="staffpm.php?action=viewconv&id=<?=$ConvID?>">[Back to conversation]</a>
|
||||
<? } ?>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<div id="commonresponses" class="center">
|
||||
<br />
|
||||
<div id="ajax_message_0" class="hidden center alertbar"></div>
|
||||
<br />
|
||||
<div class="center">
|
||||
<h3>Create new response:</h3>
|
||||
</div>
|
||||
<div id="response_new" class="box">
|
||||
<form id="response_form_0" action="">
|
||||
<div class="head">
|
||||
<strong>Name:</strong>
|
||||
<input onfocus="if (this.value == 'New name') this.value='';"
|
||||
onblur="if (this.value == '') this.value='New name';"
|
||||
type="text" id="response_name_0" size="87" value="New name"
|
||||
/>
|
||||
</div>
|
||||
<div class="pad">
|
||||
<textarea onfocus="if (this.value == 'New message') this.value='';"
|
||||
onblur="if (this.value == '') this.value='New message';"
|
||||
rows="10" cols="87"
|
||||
id="response_message_0">New message</textarea>
|
||||
<br />
|
||||
<input type="button" value="Save" id="save_0" onClick="SaveMessage(0);" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<div class="center">
|
||||
<h3>Edit old responses:</h3>
|
||||
</div>
|
||||
<?
|
||||
|
||||
// List common responses
|
||||
$DB->query("SELECT ID, Message, Name FROM staff_pm_responses ORDER BY ID DESC");
|
||||
while(list($ID, $Message, $Name) = $DB->next_record()) {
|
||||
|
||||
?>
|
||||
<br />
|
||||
<div id="ajax_message_<?=$ID?>" class="hidden center alertbar"></div>
|
||||
<br />
|
||||
<div id="response_<?=$ID?>" class="box">
|
||||
<form id="response_form_<?=$ID?>" action="">
|
||||
<div class="head">
|
||||
<strong>Name:</strong>
|
||||
<input type="hidden" name="id" value="<?=$ID?>" />
|
||||
<input type="text" name="name" id="response_name_<?=$ID?>" size="87" value="<?=display_str($Name)?>" />
|
||||
</div>
|
||||
<div class="pad">
|
||||
<div class="box pad hidden" id="response_div_<?=$ID?>">
|
||||
<?=$Text->full_format($Message)?>
|
||||
</div>
|
||||
<textarea rows="10" cols="87" id="response_message_<?=$ID?>" name="message"><?=display_str($Message)?></textarea>
|
||||
<br />
|
||||
<input type="button" value="Toggle preview" onClick="PreviewResponse(<?=$ID?>);" />
|
||||
<input type="button" value="Delete" onClick="DeleteMessage(<?=$ID?>);" />
|
||||
<input type="button" value="Save" id="save_<?=$ID?>" onClick="SaveMessage(<?=$ID?>);" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
|
||||
show_footer();
|
||||
|
||||
?>
|
||||
|
@ -1 +1,35 @@
|
||||
<?
if ($IDs = $_POST['id']) {
$Queries = array();
foreach ($IDs as &$ID) {
$ID = (int)$ID;
// Check if conversation belongs to user
$DB->query("SELECT UserID, AssignedToUser FROM staff_pm_conversations WHERE ID=$ID");
list($UserID, $AssignedToUser) = $DB->next_record();
if ($UserID == $LoggedUser['ID'] || $DisplayStaff == '1' || $UserID == $AssignedToUser) {
// Conversation belongs to user or user is staff, queue query
$Queries[] = "UPDATE staff_pm_conversations SET Status='Resolved', ResolverID=".$LoggedUser['ID']." WHERE ID=$ID";
} else {
// Trying to run disallowed query
error(403);
}
}
// Run queries
foreach ($Queries as $Query) {
$DB->query($Query);
}
// Clear cache for user
$Cache->delete_value('staff_pm_new_'.$LoggedUser['ID']);
$Cache->delete_value('num_staff_pms_'.$LoggedUser['ID']);
// Done! Return to inbox
header("Location: staffpm.php");
} else {
// No id
header("Location: staffpm.php");
}
?>
|
||||
<?
|
||||
if ($IDs = $_POST['id']) {
|
||||
$Queries = array();
|
||||
foreach ($IDs as &$ID) {
|
||||
$ID = (int)$ID;
|
||||
|
||||
// Check if conversation belongs to user
|
||||
$DB->query("SELECT UserID, AssignedToUser FROM staff_pm_conversations WHERE ID=$ID");
|
||||
list($UserID, $AssignedToUser) = $DB->next_record();
|
||||
|
||||
if ($UserID == $LoggedUser['ID'] || $DisplayStaff == '1' || $UserID == $AssignedToUser) {
|
||||
// Conversation belongs to user or user is staff, queue query
|
||||
$Queries[] = "UPDATE staff_pm_conversations SET Status='Resolved', ResolverID=".$LoggedUser['ID']." WHERE ID=$ID";
|
||||
} else {
|
||||
// Trying to run disallowed query
|
||||
error(403);
|
||||
}
|
||||
}
|
||||
|
||||
// Run queries
|
||||
foreach ($Queries as $Query) {
|
||||
$DB->query($Query);
|
||||
}
|
||||
// Clear cache for user
|
||||
$Cache->delete_value('staff_pm_new_'.$LoggedUser['ID']);
|
||||
$Cache->delete_value('num_staff_pms_'.$LoggedUser['ID']);
|
||||
|
||||
// Done! Return to inbox
|
||||
header("Location: staffpm.php");
|
||||
|
||||
} else {
|
||||
// No id
|
||||
header("Location: staffpm.php");
|
||||
}
|
||||
?>
|
||||
|
@ -1,22 +1,22 @@
|
||||
<?
|
||||
if ($ID = (int)($_GET['id'])) {
|
||||
// Check if conversation belongs to user
|
||||
$DB->query("SELECT UserID, AssignedToUser FROM staff_pm_conversations WHERE ID=$ID");
|
||||
list($UserID, $AssignedToUser) = $DB->next_record();
|
||||
|
||||
if ($UserID == $LoggedUser['ID'] || $IsFLS || $AssignedToUser == $LoggedUser['ID']) {
|
||||
// Conversation belongs to user or user is staff, resolve it
|
||||
$DB->query("UPDATE staff_pm_conversations SET Status='Resolved', ResolverID=".$LoggedUser['ID']." WHERE ID=$ID");
|
||||
$Cache->delete_value('staff_pm_new_'.$LoggedUser['ID']);
|
||||
$Cache->delete_value('num_staff_pms_'.$LoggedUser['ID']);
|
||||
|
||||
header('Location: staffpm.php');
|
||||
} else {
|
||||
// Conversation does not belong to user
|
||||
error(403);
|
||||
}
|
||||
} else {
|
||||
// No id
|
||||
header('Location: staffpm.php');
|
||||
}
|
||||
?>
|
||||
<?
|
||||
if ($ID = (int)($_GET['id'])) {
|
||||
// Check if conversation belongs to user
|
||||
$DB->query("SELECT UserID, AssignedToUser FROM staff_pm_conversations WHERE ID=$ID");
|
||||
list($UserID, $AssignedToUser) = $DB->next_record();
|
||||
|
||||
if ($UserID == $LoggedUser['ID'] || $IsFLS || $AssignedToUser == $LoggedUser['ID']) {
|
||||
// Conversation belongs to user or user is staff, resolve it
|
||||
$DB->query("UPDATE staff_pm_conversations SET Status='Resolved', ResolverID=".$LoggedUser['ID']." WHERE ID=$ID");
|
||||
$Cache->delete_value('staff_pm_new_'.$LoggedUser['ID']);
|
||||
$Cache->delete_value('num_staff_pms_'.$LoggedUser['ID']);
|
||||
|
||||
header('Location: staffpm.php');
|
||||
} else {
|
||||
// Conversation does not belong to user
|
||||
error(403);
|
||||
}
|
||||
} else {
|
||||
// No id
|
||||
header('Location: staffpm.php');
|
||||
}
|
||||
?>
|
||||
|
@ -117,7 +117,7 @@
|
||||
|
||||
// Table head
|
||||
?>
|
||||
<table>
|
||||
<table class="message_table<?=($ViewString != 'Resolved' && $IsStaff)?' checkboxes':''?>">
|
||||
<tr class="colhead">
|
||||
<? if ($ViewString != 'Resolved' && $IsStaff) { ?>
|
||||
<td width="10"><input type="checkbox" onclick="toggleChecks('messageform',this)" /></td>
|
||||
|
@ -1,120 +1,120 @@
|
||||
<?
|
||||
|
||||
include(SERVER_ROOT.'/sections/staffpm/functions.php');
|
||||
|
||||
show_header('Staff PMs', 'staffpm');
|
||||
|
||||
// Get messages
|
||||
$StaffPMs = $DB->query("
|
||||
SELECT
|
||||
ID,
|
||||
Subject,
|
||||
UserID,
|
||||
Status,
|
||||
Level,
|
||||
AssignedToUser,
|
||||
Date,
|
||||
Unread
|
||||
FROM staff_pm_conversations
|
||||
WHERE UserID=".$LoggedUser['ID']."
|
||||
ORDER BY Status, Date DESC"
|
||||
);
|
||||
|
||||
// Start page
|
||||
?>
|
||||
<div class="thin">
|
||||
<div class="header">
|
||||
<h2>Staff PMs</h2>
|
||||
<div class="linkbox">
|
||||
<a href="#" onClick="$('#compose').toggle();">[Compose New]</a>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<? print_compose_staff_pm(true); ?>
|
||||
<div class="box pad" id="inbox">
|
||||
<?
|
||||
|
||||
if ($DB->record_count() == 0) {
|
||||
// No messages
|
||||
?>
|
||||
<h2>No messages</h2>
|
||||
<?
|
||||
|
||||
} else {
|
||||
// Messages, draw table
|
||||
?>
|
||||
<form method="post" action="staffpm.php" id="messageform">
|
||||
<input type="hidden" name="action" value="multiresolve" />
|
||||
<h3>Open messages</h3>
|
||||
<table>
|
||||
<tr class="colhead">
|
||||
<td width="10"><input type="checkbox" onclick="toggleChecks('messageform',this)" /></td>
|
||||
<td width="50%">Subject</td>
|
||||
<td>Date</td>
|
||||
<td>Assigned to</td>
|
||||
</tr>
|
||||
<?
|
||||
// List messages
|
||||
$Row = 'a';
|
||||
$ShowBox = 1;
|
||||
while(list($ID, $Subject, $UserID, $Status, $Level, $AssignedToUser, $Date, $Unread, $Resolved) = $DB->next_record()) {
|
||||
if($Unread === '1') {
|
||||
$RowClass = 'unreadpm';
|
||||
} else {
|
||||
$Row = ($Row === 'a') ? 'b' : 'a';
|
||||
$RowClass = 'row'.$Row;
|
||||
}
|
||||
|
||||
if ($Status == 'Resolved') { $ShowBox++; }
|
||||
if ($ShowBox == 2) {
|
||||
// First resolved PM
|
||||
?>
|
||||
</table>
|
||||
<br />
|
||||
<h3>Resolved messages</h3>
|
||||
<table>
|
||||
<tr class="colhead">
|
||||
<td width="10"><input type="checkbox" onclick="toggleChecks('messageform',this)" /></td>
|
||||
<td width="50%">Subject</td>
|
||||
<td>Date</td>
|
||||
<td>Assigned to</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
// Get assigned
|
||||
$Assigned = ($Level == 0) ? "First Line Support" : $ClassLevels[$Level]['Name'];
|
||||
// No + on Sysops
|
||||
if ($Assigned != 'Sysop') { $Assigned .= "+"; }
|
||||
|
||||
// Table row
|
||||
?>
|
||||
<tr class="<?=$RowClass?>">
|
||||
|
||||
<td class="center"><input type="checkbox" name="id[]" value="<?=$ID?>" /></td>
|
||||
<td><a href="staffpm.php?action=viewconv&id=<?=$ID?>"><?=display_str($Subject)?></a></td>
|
||||
<td><?=time_diff($Date, 2, true)?></td>
|
||||
<td><?=$Assigned?></td>
|
||||
</tr>
|
||||
<?
|
||||
$DB->set_query_id($StaffPMs);
|
||||
}
|
||||
|
||||
// Close table and multiresolve form
|
||||
?>
|
||||
</table>
|
||||
<input type="submit" value="Resolve selected" />
|
||||
</form>
|
||||
<?
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
|
||||
show_footer();
|
||||
|
||||
?>
|
||||
<?
|
||||
|
||||
include(SERVER_ROOT.'/sections/staffpm/functions.php');
|
||||
|
||||
show_header('Staff PMs', 'staffpm');
|
||||
|
||||
// Get messages
|
||||
$StaffPMs = $DB->query("
|
||||
SELECT
|
||||
ID,
|
||||
Subject,
|
||||
UserID,
|
||||
Status,
|
||||
Level,
|
||||
AssignedToUser,
|
||||
Date,
|
||||
Unread
|
||||
FROM staff_pm_conversations
|
||||
WHERE UserID=".$LoggedUser['ID']."
|
||||
ORDER BY Status, Date DESC"
|
||||
);
|
||||
|
||||
// Start page
|
||||
?>
|
||||
<div class="thin">
|
||||
<div class="header">
|
||||
<h2>Staff PMs</h2>
|
||||
<div class="linkbox">
|
||||
<a href="#" onClick="$('#compose').toggle();">[Compose New]</a>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<? print_compose_staff_pm(true); ?>
|
||||
<div class="box pad" id="inbox">
|
||||
<?
|
||||
|
||||
if ($DB->record_count() == 0) {
|
||||
// No messages
|
||||
?>
|
||||
<h2>No messages</h2>
|
||||
<?
|
||||
|
||||
} else {
|
||||
// Messages, draw table
|
||||
?>
|
||||
<form method="post" action="staffpm.php" id="messageform">
|
||||
<input type="hidden" name="action" value="multiresolve" />
|
||||
<h3>Open messages</h3>
|
||||
<table class="message_table checkboxes">
|
||||
<tr class="colhead">
|
||||
<td width="10"><input type="checkbox" onclick="toggleChecks('messageform',this)" /></td>
|
||||
<td width="50%">Subject</td>
|
||||
<td>Date</td>
|
||||
<td>Assigned to</td>
|
||||
</tr>
|
||||
<?
|
||||
// List messages
|
||||
$Row = 'a';
|
||||
$ShowBox = 1;
|
||||
while(list($ID, $Subject, $UserID, $Status, $Level, $AssignedToUser, $Date, $Unread, $Resolved) = $DB->next_record()) {
|
||||
if($Unread === '1') {
|
||||
$RowClass = 'unreadpm';
|
||||
} else {
|
||||
$Row = ($Row === 'a') ? 'b' : 'a';
|
||||
$RowClass = 'row'.$Row;
|
||||
}
|
||||
|
||||
if ($Status == 'Resolved') { $ShowBox++; }
|
||||
if ($ShowBox == 2) {
|
||||
// First resolved PM
|
||||
?>
|
||||
</table>
|
||||
<br />
|
||||
<h3>Resolved messages</h3>
|
||||
<table class="message_table checkboxes">
|
||||
<tr class="colhead">
|
||||
<td width="10"><input type="checkbox" onclick="toggleChecks('messageform',this)" /></td>
|
||||
<td width="50%">Subject</td>
|
||||
<td>Date</td>
|
||||
<td>Assigned to</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
// Get assigned
|
||||
$Assigned = ($Level == 0) ? "First Line Support" : $ClassLevels[$Level]['Name'];
|
||||
// No + on Sysops
|
||||
if ($Assigned != 'Sysop') { $Assigned .= "+"; }
|
||||
|
||||
// Table row
|
||||
?>
|
||||
<tr class="<?=$RowClass?>">
|
||||
|
||||
<td class="center"><input type="checkbox" name="id[]" value="<?=$ID?>" /></td>
|
||||
<td><a href="staffpm.php?action=viewconv&id=<?=$ID?>"><?=display_str($Subject)?></a></td>
|
||||
<td><?=time_diff($Date, 2, true)?></td>
|
||||
<td><?=$Assigned?></td>
|
||||
</tr>
|
||||
<?
|
||||
$DB->set_query_id($StaffPMs);
|
||||
}
|
||||
|
||||
// Close table and multiresolve form
|
||||
?>
|
||||
</table>
|
||||
<input type="submit" value="Resolve selected" />
|
||||
</form>
|
||||
<?
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
|
||||
show_footer();
|
||||
|
||||
?>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<h3><?=$Balance?></h3>
|
||||
</div>
|
||||
<table>
|
||||
<tr>
|
||||
<tr class="colhead">
|
||||
<th>Username</th>
|
||||
<th>Receiving bitcoin address</th>
|
||||
<th>Amount</th>
|
||||
|
@ -53,7 +53,7 @@
|
||||
<? } ?>
|
||||
<div>
|
||||
<form action="" method="get">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label"><strong>Email:</strong></td>
|
||||
<td>
|
||||
|
@ -41,7 +41,7 @@
|
||||
<br />
|
||||
<div>
|
||||
<form action="" method="get">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label"><strong>Email:</strong></td>
|
||||
<td>
|
||||
|
@ -57,7 +57,7 @@
|
||||
<input type="hidden" name="action" value="opcode_stats" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
</div>
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td><strong>Enable:</strong></td>
|
||||
<td>
|
||||
@ -90,8 +90,8 @@
|
||||
</div>
|
||||
<br /><br />
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="6" class="colhead">Status</td>
|
||||
<tr class="colhead">
|
||||
<td colspan="6">Status</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total Storage:</td>
|
||||
|
@ -1,279 +1,279 @@
|
||||
<?
|
||||
if(!check_perms('site_debug')) { error(403); }
|
||||
if(isset($_POST['global_flush'])){
|
||||
authorize();
|
||||
$Cache->flush();
|
||||
}
|
||||
$DB->query('SHOW GLOBAL STATUS');
|
||||
$DBStats =$DB->to_array('Variable_name');
|
||||
$MemStats = $Cache->getStats();
|
||||
|
||||
show_header("Service Stats");
|
||||
?>
|
||||
<div class="linkbox">
|
||||
[<a href="tools.php?action=database_specifics">Database Specifics</a>]
|
||||
</div>
|
||||
<div class="permissions">
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2" class="colhead">Service</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Threads (Active)</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['threads'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($DBStats['Threads_connected']['Value']/$DBStats['Threads_created']['Value'] > 0.7) { echo ' class="invalid" '; } ?>>Database:</td>
|
||||
<td><?=number_format($DBStats['Threads_created']['Value'])?> <span style="float:right;">(<?=number_format(($DBStats['Threads_connected']['Value']/$DBStats['Threads_created']['Value'])*100,3)?>%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Connections</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['total_connections'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Connections']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Special</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache Current Index:</td>
|
||||
<td><?=number_format($MemStats['curr_items'])?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cache Total Index:</td>
|
||||
<td><?=number_format($MemStats['total_items'])?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['bytes']/$MemStats['limit_maxbytes'] > 0.85) { echo ' class="invalid" title="Evictions begin when storage exceeds 85%" '; } ?>>Cache Storage:</td>
|
||||
<td><?=get_size($MemStats['bytes'])?> <span style="float:right;">(<?=number_format(($MemStats['bytes']/$MemStats['limit_maxbytes'])*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Utilities</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td>
|
||||
<form action="" method="post">
|
||||
<input type="hidden" name="action" value="service_stats" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="global_flush" value="1" />
|
||||
<input type="submit" value="Flush" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2" class="colhead">Activity</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Total Reads</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_get'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_select']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Total Writes</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_set'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_insert']['Value']+$DBStats['Com_update']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Get/Select (Success)</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['get_hits']/$MemStats['cmd_get'] < 0.7) { echo ' class="invalid" '; } ?>>Cache:</td>
|
||||
<td><?=number_format($MemStats['get_hits'])?> <span style="float:right;">(<?=number_format(($MemStats['get_hits']/$MemStats['cmd_get'])*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_select']['Value'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Set/Insert (Success)</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_set'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_insert']['Value'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Increment/Decrement (Success)</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['incr_hits']/($MemStats['incr_hits']+$MemStats['incr_misses']) < 0.7) { echo ' class="invalid" '; } ?>>Cache Increment:</td>
|
||||
<td><?=number_format($MemStats['incr_hits'])?> <span style="float:right;">(<?=number_format(($MemStats['incr_hits']/($MemStats['incr_hits']+$MemStats['incr_misses']))*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['decr_hits']/($MemStats['decr_hits']+$MemStats['decr_misses']) < 0.7) { echo ' class="invalid" '; } ?>>Cache Decrement:</td>
|
||||
<td><?=number_format($MemStats['decr_hits'])?> <span style="float:right;">(<?=number_format(($MemStats['decr_hits']/($MemStats['decr_hits']+$MemStats['decr_misses']))*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>CAS/Update (Success)</strong></td></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 unnecessary 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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_update']['Value'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Deletes (Success)</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['delete_hits']/($MemStats['delete_hits']+$MemStats['delete_misses']) < 0.7) { echo ' class="invalid" title="More than 30% of the issued delete commands were unnecessary wasting time and resources." '; } ?>>Cache:</td>
|
||||
<td><?=number_format($MemStats['delete_hits'])?> <span style="float:right;">(<?=number_format(($MemStats['delete_hits']/($MemStats['delete_hits']+$MemStats['delete_misses']))*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_delete']['Value'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Special</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['cmd_flush'] > $MemStats['uptime']/7*24*3600) { echo ' class="invalid" title="Flushing the cache on a regular basis defeats the benefits of it, look into using cache transactions, or deletes instead of global flushing where possible." '; } ?>>Cache Flushes:</td>
|
||||
<td><?=number_format($MemStats['cmd_flush'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['evictions'] > 0) { echo ' class="invalid" '; } ?>>Cache Evicted:</td>
|
||||
<td><?=number_format($MemStats['evictions'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($DBStats['Slow_queries']['Value'] > $DBStats['Questions']['Value']/7500) { echo ' class="invalid" title="1/7500 queries is allowed to be slow to minimize performance impact." '; } ?>>Database Slow:</td>
|
||||
<td><?=number_format($DBStats['Slow_queries']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Data Read</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=get_size($MemStats['bytes_read'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=get_size($DBStats['Bytes_received']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Data Write</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=get_size($MemStats['bytes_written'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=get_size($DBStats['Bytes_sent']['Value'])?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2" class="colhead">Concurrency</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Total Reads</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if(($MemStats['cmd_get']/$MemStats['uptime'])*5 < $DBStats['Com_select']['Value']/$DBStats['Uptime']['Value']) { echo ' class="invalid" '; } ?>>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_get']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_select']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Total Writes</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if(($MemStats['cmd_set']/$MemStats['uptime'])*5 < ($DBStats['Com_insert']['Value']+$DBStats['Com_update']['Value'])/$DBStats['Uptime']['Value']) { echo ' class="invalid" '; } ?>>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_set']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format(($DBStats['Com_insert']['Value']+$DBStats['Com_update']['Value'])/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Get/Select</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['get_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_select']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Set/Insert</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_set']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_insert']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Increment/Decrement</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache Increment:</td>
|
||||
<td><?=number_format($MemStats['incr_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cache Decrement:</td>
|
||||
<td><?=number_format($MemStats['decr_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>CAS/Updates</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cas_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_update']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Deletes</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['delete_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_delete']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Special</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache Flushes:</td>
|
||||
<td><?=number_format($MemStats['cmd_flush']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cache Evicted:</td>
|
||||
<td><?=number_format($MemStats['evictions']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database Slow:</td>
|
||||
<td><?=number_format($DBStats['Slow_queries']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Data Read</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=get_size($MemStats['bytes_read']/$MemStats['uptime'])?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=get_size($DBStats['Bytes_received']['Value']/$DBStats['Uptime']['Value'])?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Data Write</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=get_size($MemStats['bytes_written']/$MemStats['uptime'])?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=get_size($DBStats['Bytes_sent']['Value']/$DBStats['Uptime']['Value'])?>/s</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<? show_footer(); ?>
|
||||
<?
|
||||
if(!check_perms('site_debug')) { error(403); }
|
||||
if(isset($_POST['global_flush'])){
|
||||
authorize();
|
||||
$Cache->flush();
|
||||
}
|
||||
$DB->query('SHOW GLOBAL STATUS');
|
||||
$DBStats =$DB->to_array('Variable_name');
|
||||
$MemStats = $Cache->getStats();
|
||||
|
||||
show_header("Service Stats");
|
||||
?>
|
||||
<div class="linkbox">
|
||||
[<a href="tools.php?action=database_specifics">Database Specifics</a>]
|
||||
</div>
|
||||
<div class="permissions">
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr class="colhead">
|
||||
<td colspan="2">Service</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Threads (Active)</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['threads'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($DBStats['Threads_connected']['Value']/$DBStats['Threads_created']['Value'] > 0.7) { echo ' class="invalid" '; } ?>>Database:</td>
|
||||
<td><?=number_format($DBStats['Threads_created']['Value'])?> <span style="float:right;">(<?=number_format(($DBStats['Threads_connected']['Value']/$DBStats['Threads_created']['Value'])*100,3)?>%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Connections</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['total_connections'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Connections']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Special</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache Current Index:</td>
|
||||
<td><?=number_format($MemStats['curr_items'])?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cache Total Index:</td>
|
||||
<td><?=number_format($MemStats['total_items'])?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['bytes']/$MemStats['limit_maxbytes'] > 0.85) { echo ' class="invalid" title="Evictions begin when storage exceeds 85%" '; } ?>>Cache Storage:</td>
|
||||
<td><?=get_size($MemStats['bytes'])?> <span style="float:right;">(<?=number_format(($MemStats['bytes']/$MemStats['limit_maxbytes'])*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Utilities</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td>
|
||||
<form action="" method="post">
|
||||
<input type="hidden" name="action" value="service_stats" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="global_flush" value="1" />
|
||||
<input type="submit" value="Flush" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr class="colhead">
|
||||
<td colspan="2">Activity</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Total Reads</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_get'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_select']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Total Writes</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_set'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_insert']['Value']+$DBStats['Com_update']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Get/Select (Success)</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['get_hits']/$MemStats['cmd_get'] < 0.7) { echo ' class="invalid" '; } ?>>Cache:</td>
|
||||
<td><?=number_format($MemStats['get_hits'])?> <span style="float:right;">(<?=number_format(($MemStats['get_hits']/$MemStats['cmd_get'])*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_select']['Value'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Set/Insert (Success)</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_set'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_insert']['Value'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Increment/Decrement (Success)</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['incr_hits']/($MemStats['incr_hits']+$MemStats['incr_misses']) < 0.7) { echo ' class="invalid" '; } ?>>Cache Increment:</td>
|
||||
<td><?=number_format($MemStats['incr_hits'])?> <span style="float:right;">(<?=number_format(($MemStats['incr_hits']/($MemStats['incr_hits']+$MemStats['incr_misses']))*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['decr_hits']/($MemStats['decr_hits']+$MemStats['decr_misses']) < 0.7) { echo ' class="invalid" '; } ?>>Cache Decrement:</td>
|
||||
<td><?=number_format($MemStats['decr_hits'])?> <span style="float:right;">(<?=number_format(($MemStats['decr_hits']/($MemStats['decr_hits']+$MemStats['decr_misses']))*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>CAS/Update (Success)</strong></td></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 unnecessary 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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_update']['Value'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Deletes (Success)</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['delete_hits']/($MemStats['delete_hits']+$MemStats['delete_misses']) < 0.7) { echo ' class="invalid" title="More than 30% of the issued delete commands were unnecessary wasting time and resources." '; } ?>>Cache:</td>
|
||||
<td><?=number_format($MemStats['delete_hits'])?> <span style="float:right;">(<?=number_format(($MemStats['delete_hits']/($MemStats['delete_hits']+$MemStats['delete_misses']))*100, 3);?>%)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_delete']['Value'])?> <span style="float:right;">(100.000%)</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Special</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['cmd_flush'] > $MemStats['uptime']/7*24*3600) { echo ' class="invalid" title="Flushing the cache on a regular basis defeats the benefits of it, look into using cache transactions, or deletes instead of global flushing where possible." '; } ?>>Cache Flushes:</td>
|
||||
<td><?=number_format($MemStats['cmd_flush'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($MemStats['evictions'] > 0) { echo ' class="invalid" '; } ?>>Cache Evicted:</td>
|
||||
<td><?=number_format($MemStats['evictions'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td<? if($DBStats['Slow_queries']['Value'] > $DBStats['Questions']['Value']/7500) { echo ' class="invalid" title="1/7500 queries is allowed to be slow to minimize performance impact." '; } ?>>Database Slow:</td>
|
||||
<td><?=number_format($DBStats['Slow_queries']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Data Read</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=get_size($MemStats['bytes_read'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=get_size($DBStats['Bytes_received']['Value'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Data Write</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=get_size($MemStats['bytes_written'])?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=get_size($DBStats['Bytes_sent']['Value'])?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr class="colhead">
|
||||
<td colspan="2">Concurrency</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Total Reads</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if(($MemStats['cmd_get']/$MemStats['uptime'])*5 < $DBStats['Com_select']['Value']/$DBStats['Uptime']['Value']) { echo ' class="invalid" '; } ?>>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_get']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_select']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Total Writes</strong></td></tr>
|
||||
<tr>
|
||||
<td<? if(($MemStats['cmd_set']/$MemStats['uptime'])*5 < ($DBStats['Com_insert']['Value']+$DBStats['Com_update']['Value'])/$DBStats['Uptime']['Value']) { echo ' class="invalid" '; } ?>>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_set']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format(($DBStats['Com_insert']['Value']+$DBStats['Com_update']['Value'])/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Get/Select</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['get_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_select']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Set/Insert</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cmd_set']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_insert']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Increment/Decrement</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache Increment:</td>
|
||||
<td><?=number_format($MemStats['incr_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cache Decrement:</td>
|
||||
<td><?=number_format($MemStats['decr_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>CAS/Updates</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['cas_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_update']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Deletes</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=number_format($MemStats['delete_hits']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=number_format($DBStats['Com_delete']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Special</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache Flushes:</td>
|
||||
<td><?=number_format($MemStats['cmd_flush']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cache Evicted:</td>
|
||||
<td><?=number_format($MemStats['evictions']/$MemStats['uptime'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database Slow:</td>
|
||||
<td><?=number_format($DBStats['Slow_queries']['Value']/$DBStats['Uptime']['Value'],5)?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr><td colspan="2"><strong>Data Read</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=get_size($MemStats['bytes_read']/$MemStats['uptime'])?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=get_size($DBStats['Bytes_received']['Value']/$DBStats['Uptime']['Value'])?>/s</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><strong>Data Write</strong></td></tr>
|
||||
<tr>
|
||||
<td>Cache:</td>
|
||||
<td><?=get_size($MemStats['bytes_written']/$MemStats['uptime'])?>/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database:</td>
|
||||
<td><?=get_size($DBStats['Bytes_sent']['Value']/$DBStats['Uptime']['Value'])?>/s</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<? show_footer(); ?>
|
||||
|
@ -79,7 +79,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<form action="" method="get">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label"><label for="ip">IP:</label></td>
|
||||
<td>
|
||||
|
@ -44,8 +44,8 @@
|
||||
</form>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<tr>
|
||||
<td colspan="4" class="colhead">Add Do Not Upload</td>
|
||||
<tr class="colhead">
|
||||
<td colspan="4">Add Do Not Upload</td>
|
||||
</tr>
|
||||
<tr class="rowa">
|
||||
<form action="tools.php" method="post">
|
||||
|
@ -22,8 +22,8 @@
|
||||
<td>Added</td>
|
||||
<td>Submit</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" class="colhead">Add To Email or Domain to Blacklist</td>
|
||||
<tr class="colhead">
|
||||
<td colspan="4">Add To Email or Domain to Blacklist</td>
|
||||
</tr>
|
||||
<tr class="rowa">
|
||||
<form action="tools.php" method="post">
|
||||
|
@ -119,8 +119,8 @@ function class_list($Selected=0){
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="8" class="colhead">Create forum</td>
|
||||
<tr class="colhead">
|
||||
<td colspan="8">Create forum</td>
|
||||
</tr>
|
||||
<tr class="rowa">
|
||||
<form action="" method="post">
|
||||
|
@ -1 +1,106 @@
|
||||
<?
if (!check_perms('users_mod')) { error(403); }
if (isset($_POST['doit'])) {
authorize();
if (isset($_POST['oldtags'])) {
$OldTagIDs = $_POST['oldtags'];
foreach ($OldTagIDs AS $OldTagID) {
if (!is_number($OldTagID)) { error(403); }
}
$OldTagIDs = implode(', ', $OldTagIDs);
$DB->query("UPDATE tags SET TagType = 'other' WHERE ID IN ($OldTagIDs)");
}
if ($_POST['newtag']) {
$TagName = sanitize_tag($_POST['newtag']);
$DB->query("SELECT t.ID FROM tags AS t WHERE t.Name LIKE '".$TagName."'");
list($TagID) = $DB->next_record();
if($TagID) {
$DB->query("UPDATE tags SET TagType = 'genre' WHERE ID = $TagID");
} else { // Tag doesn't exist yet - create tag
$DB->query("INSERT INTO tags (Name, UserID, TagType, Uses) VALUES ('".$TagName."', ".$LoggedUser['ID'].", 'genre', 0)");
$TagID = $DB->inserted_id();
}
}
$Cache->delete_value('genre_tags');
}
show_header('Official Tags');
?>
<div class="header">
<h2>Official Tags</h2>
</div>
<div style="text-align: center">
<div style="display: inline-block;">
<form method="post">
<input type="hidden" name="action" value="official_tags" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="doit" value="1" />
<table>
<tr class="colhead_dark">
<td style="font-weight: bold" style="text-align: center">Remove</td>
<td style="font-weight: bold">Tag</td>
<td style="font-weight: bold">Uses</td>
<td> </td>
<td style="font-weight: bold" style="text-align: center">Remove</td>
<td style="font-weight: bold">Tag</td>
<td style="font-weight: bold">Uses</td>
<td> </td>
<td style="font-weight: bold" style="text-align: center">Remove</td>
<td style="font-weight: bold">Tag</td>
<td style="font-weight: bold">Uses</td>
</tr>
<?
$i = 0;
$DB->query("SELECT ID, Name, Uses FROM tags WHERE TagType='genre' ORDER BY Name ASC");
$TagCount = $DB->record_count();
$Tags = $DB->to_array();
for ($i = 0; $i < $TagCount / 3; $i++) {
list($TagID1, $TagName1, $TagUses1) = $Tags[$i];
list($TagID2, $TagName2, $TagUses2) = $Tags[ceil($TagCount/3) + $i];
list($TagID3, $TagName3, $TagUses3) = $Tags[2*ceil($TagCount/3) + $i];
?>
<tr class="<?=(($i % 2)?'rowa':'rowb')?>">
<td style="text-align: center"><input type="checkbox" name="oldtags[]" value="<?=$TagID1?>" /></td>
<td><?=$TagName1?></td>
<td style="text-align: center"><?=$TagUses1?></td>
<td> </td>
<td style="text-align: center">
<? if ($TagID2) { ?>
<input type="checkbox" name="oldtags[]" value="<?=$TagID2?>" />
<? } ?>
</td>
<td><?=$TagName2?></td>
<td style="text-align: center"><?=$TagUses2?></td>
<td> </td>
<td style="text-align: center">
<? if ($TagID3) { ?>
<input type="checkbox" name="oldtags[]" value="<?=$TagID3?>" />
<? } ?>
</td>
<td><?=$TagName3?></td>
<td style="text-align: center"><?=$TagUses3?></td>
</tr>
<?
}
?>
<tr class="<?=(($i % 2)?'rowa':'rowb')?>">
<td colspan="11"><label for="newtag">New official tag: </label><input type="text" name="newtag" /></td>
</tr>
<tr style="border-top: thin solid">
<td colspan="11" style="text-align: center"><input type="submit" value="Submit Changes" /></td>
</tr>
</table>
</form>
</div>
</div>
<?
show_footer();
?>
|
||||
<?
|
||||
if (!check_perms('users_mod')) { error(403); }
|
||||
|
||||
if (isset($_POST['doit'])) {
|
||||
authorize();
|
||||
|
||||
if (isset($_POST['oldtags'])) {
|
||||
$OldTagIDs = $_POST['oldtags'];
|
||||
foreach ($OldTagIDs AS $OldTagID) {
|
||||
if (!is_number($OldTagID)) { error(403); }
|
||||
}
|
||||
$OldTagIDs = implode(', ', $OldTagIDs);
|
||||
|
||||
$DB->query("UPDATE tags SET TagType = 'other' WHERE ID IN ($OldTagIDs)");
|
||||
}
|
||||
|
||||
if ($_POST['newtag']) {
|
||||
$TagName = sanitize_tag($_POST['newtag']);
|
||||
|
||||
$DB->query("SELECT t.ID FROM tags AS t WHERE t.Name LIKE '".$TagName."'");
|
||||
list($TagID) = $DB->next_record();
|
||||
|
||||
if($TagID) {
|
||||
$DB->query("UPDATE tags SET TagType = 'genre' WHERE ID = $TagID");
|
||||
} else { // Tag doesn't exist yet - create tag
|
||||
$DB->query("INSERT INTO tags (Name, UserID, TagType, Uses) VALUES ('".$TagName."', ".$LoggedUser['ID'].", 'genre', 0)");
|
||||
$TagID = $DB->inserted_id();
|
||||
}
|
||||
}
|
||||
|
||||
$Cache->delete_value('genre_tags');
|
||||
}
|
||||
|
||||
show_header('Official Tags');
|
||||
?>
|
||||
<div class="header">
|
||||
<h2>Official Tags</h2>
|
||||
</div>
|
||||
<div style="text-align: center">
|
||||
<div style="display: inline-block;">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="official_tags" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="doit" value="1" />
|
||||
<table class="tags_table layout">
|
||||
<tr class="colhead_dark">
|
||||
<td style="font-weight: bold" style="text-align: center">Remove</td>
|
||||
<td style="font-weight: bold">Tag</td>
|
||||
<td style="font-weight: bold">Uses</td>
|
||||
<td> </td>
|
||||
<td style="font-weight: bold" style="text-align: center">Remove</td>
|
||||
<td style="font-weight: bold">Tag</td>
|
||||
<td style="font-weight: bold">Uses</td>
|
||||
<td> </td>
|
||||
<td style="font-weight: bold" style="text-align: center">Remove</td>
|
||||
<td style="font-weight: bold">Tag</td>
|
||||
<td style="font-weight: bold">Uses</td>
|
||||
</tr>
|
||||
<?
|
||||
$i = 0;
|
||||
$DB->query("SELECT ID, Name, Uses FROM tags WHERE TagType='genre' ORDER BY Name ASC");
|
||||
$TagCount = $DB->record_count();
|
||||
$Tags = $DB->to_array();
|
||||
for ($i = 0; $i < $TagCount / 3; $i++) {
|
||||
list($TagID1, $TagName1, $TagUses1) = $Tags[$i];
|
||||
list($TagID2, $TagName2, $TagUses2) = $Tags[ceil($TagCount/3) + $i];
|
||||
list($TagID3, $TagName3, $TagUses3) = $Tags[2*ceil($TagCount/3) + $i];
|
||||
?>
|
||||
<tr class="<?=(($i % 2)?'rowa':'rowb')?>">
|
||||
<td style="text-align: center"><input type="checkbox" name="oldtags[]" value="<?=$TagID1?>" /></td>
|
||||
<td><?=$TagName1?></td>
|
||||
<td style="text-align: center"><?=$TagUses1?></td>
|
||||
<td> </td>
|
||||
<td style="text-align: center">
|
||||
<? if ($TagID2) { ?>
|
||||
<input type="checkbox" name="oldtags[]" value="<?=$TagID2?>" />
|
||||
<? } ?>
|
||||
</td>
|
||||
<td><?=$TagName2?></td>
|
||||
<td style="text-align: center"><?=$TagUses2?></td>
|
||||
<td> </td>
|
||||
<td style="text-align: center">
|
||||
<? if ($TagID3) { ?>
|
||||
<input type="checkbox" name="oldtags[]" value="<?=$TagID3?>" />
|
||||
<? } ?>
|
||||
</td>
|
||||
<td><?=$TagName3?></td>
|
||||
<td style="text-align: center"><?=$TagUses3?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<tr class="<?=(($i % 2)?'rowa':'rowb')?>">
|
||||
<td colspan="11"><label for="newtag">New official tag: </label><input type="text" name="newtag" /></td>
|
||||
</tr>
|
||||
<tr style="border-top: thin solid">
|
||||
<td colspan="11" style="text-align: center"><input type="submit" value="Submit Changes" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
show_footer();
|
||||
?>
|
||||
|
@ -19,7 +19,7 @@ function display_perm($Key,$Title) {
|
||||
[<a href="tools.php?action=permissions">Back to permission list</a>]
|
||||
[<a href="tools.php">Back to Tools</a>]
|
||||
</div>
|
||||
<table class="permission_head">
|
||||
<table class="permission_head layout">
|
||||
<tr>
|
||||
<td class="label">Permission Name</td>
|
||||
<td><input type="text" name="name" id="name" value="<?=(!empty($Name) ? display_str($Name) : '')?>" /></td>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<form action="tools.php" method="post" class="pad">
|
||||
<input type="hidden" name="action" value="recommend_add" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td rowspan="2" class="label"><strong>Add Recommendation:</strong></td>
|
||||
<td>Link to a torrent group on site. E.g. <strong>http://<?=NONSSL_SITE_URL?>/torrents.php?id=10000</strong></td>
|
||||
|
@ -43,8 +43,8 @@
|
||||
<input type="hidden" name="action" value="whitelist_alter" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="4" class="colhead">Add Client</td>
|
||||
<tr class="colhead">
|
||||
<td colspan="4">Add Client</td>
|
||||
</tr>
|
||||
<tr class="rowa">
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
</div>
|
||||
<form method="get" action="" name="clear_cache">
|
||||
<input type="hidden" name="action" value="clear_cache" />
|
||||
<table cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<tr valign="top">
|
||||
<td align="right">Key</td>
|
||||
<td align="left">
|
||||
|
@ -81,7 +81,7 @@
|
||||
<form method="post" action="" name="create_user">
|
||||
<input type="hidden" name="action" value="create_user" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<table cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
|
||||
<tr valign="top">
|
||||
<td align="right">Username </td>
|
||||
<td align="left"><input type="text" name="Username" id="username" class="inputtext" /></td>
|
||||
|
@ -105,7 +105,7 @@
|
||||
<form action="" method="post">
|
||||
<input type="hidden" id="action" name="action" value="manipulate_tree" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label"><strong>UserID</strong></td>
|
||||
<td>
|
||||
|
@ -6,8 +6,8 @@
|
||||
?>
|
||||
<div class="permissions">
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr><td class="colhead">Managers</td></tr>
|
||||
<table class="layout">
|
||||
<tr class="colhead"><td>Managers</td></tr>
|
||||
<? if (check_perms('admin_manage_permissions')) { ?>
|
||||
<tr><td><a href="tools.php?action=permissions">Permissions</a></td></tr>
|
||||
<? } if (check_perms('admin_whitelist')) { ?>
|
||||
@ -38,8 +38,8 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr><td class="colhead">Data</td></tr>
|
||||
<table class="layout">
|
||||
<tr class="colhead"><td>Data</td></tr>
|
||||
|
||||
<?
|
||||
if (check_perms('admin_donor_log')) { ?>
|
||||
@ -65,8 +65,8 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="permission_container">
|
||||
<table>
|
||||
<tr><td class="colhead">Misc</td></tr>
|
||||
<table class="layout">
|
||||
<tr class="colhead"><td>Misc</td></tr>
|
||||
|
||||
<? if (check_perms('users_mod')) { ?>
|
||||
<tr><td><a href="tools.php?action=manipulate_tree">Manipulate Tree</a></td></tr>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<form method="get" action="">
|
||||
<input type="hidden" name="type" value="history" />
|
||||
<h3>Search for a date! (After 2010-09-05)</h3>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label">Date:</td>
|
||||
<td><input type="text" id="date" name="date" value="<?=!empty($_GET['date']) ? display_str($_GET['date']) : 'YYYY-MM-DD'?>" onfocus="if($('#date').raw().value == 'YYYY-MM-DD') $('#date').raw().value = ''" /></td>
|
||||
@ -90,7 +90,7 @@
|
||||
<br />
|
||||
<div class="pad box">
|
||||
<h3>Top 10 for <?=($Type == 'day' ? $Date : 'the first week after '.$Date)?></h3>
|
||||
<table class="border">
|
||||
<table class="torrent_table cats numbering border">
|
||||
<tr class="colhead">
|
||||
<td class="center" style="width:15px;"></td>
|
||||
<td class="center"></td>
|
||||
|
@ -56,7 +56,7 @@
|
||||
<div>
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="advanced" value="1" />
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label">Tags (comma-separated):</td>
|
||||
<td>
|
||||
@ -309,7 +309,7 @@ function generate_torrent_table($Caption, $Tag, $Details, $Limit) {
|
||||
</small>
|
||||
<? } ?>
|
||||
</h3>
|
||||
<table class="border">
|
||||
<table class="torrent_table cats numbering border">
|
||||
<tr class="colhead">
|
||||
<td class="center" style="width:15px;"></td>
|
||||
<td></td>
|
||||
@ -370,7 +370,7 @@ function generate_torrent_table($Caption, $Tag, $Details, $Limit) {
|
||||
$AddExtra='';
|
||||
if($Format) { $ExtraInfo.=$Format; $AddExtra=' / '; }
|
||||
if($Encoding) { $ExtraInfo.=$AddExtra.$Encoding; $AddExtra=' / '; }
|
||||
"FLAC / Lossless / Log (100%) / Cue / CD";
|
||||
// "FLAC / Lossless / Log (100%) / Cue / CD";
|
||||
if($HasLog) { $ExtraInfo.=$AddExtra."Log (".$LogScore."%)"; $AddExtra=' / '; }
|
||||
if($HasCue) { $ExtraInfo.=$AddExtra."Cue"; $AddExtra=' / '; }
|
||||
if($Media) { $ExtraInfo.=$AddExtra.$Media; $AddExtra=' / '; }
|
||||
@ -397,7 +397,7 @@ function generate_torrent_table($Caption, $Tag, $Details, $Limit) {
|
||||
|
||||
// print row
|
||||
?>
|
||||
<tr class="group_torrent row<?=$Highlight?>">
|
||||
<tr class="torrent row<?=$Highlight?>">
|
||||
<td style="padding:8px;text-align:center;"><strong><?=$Rank?></strong></td>
|
||||
<?
|
||||
//fix array offset php error
|
||||
|
@ -559,7 +559,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
<? } ?>
|
||||
</h3>
|
||||
<div class="box pad">
|
||||
<table>
|
||||
<table class="layout">
|
||||
<? $AdvancedSearch = false;
|
||||
if((strtolower($_GET['action'])=="advanced" || ($LoggedUser['SearchType'] && strtolower($_GET['action'])!="basic")) && check_perms('site_advanced_search')) {
|
||||
$AdvancedSearch = true;
|
||||
@ -701,7 +701,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="cat_list">
|
||||
<table class="layout cat_list">
|
||||
<?
|
||||
$x=1;
|
||||
reset($Categories);
|
||||
@ -725,7 +725,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<table class="cat_list <? if(!$LoggedUser['ShowTags']) { ?>hidden<? } ?>" id="taglist">
|
||||
<table class="layout cat_list <? if(!$LoggedUser['ShowTags']) { ?>hidden<? } ?>" id="taglist">
|
||||
<tr>
|
||||
<?
|
||||
$GenreTags = $Cache->get_value('genre_tags');
|
||||
@ -754,7 +754,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
<? } ?>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="cat_list" width="100%">
|
||||
<table class="layout cat_list" width="100%">
|
||||
<tr>
|
||||
<td class="label"><a href="#" onclick="$('#taglist').toggle();return false;">(View Tags)</a></td>
|
||||
</tr>
|
||||
@ -780,7 +780,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
|
||||
<div class="linkbox"><?=$Pages?></div>
|
||||
<? if (count($TorrentList)>0) { ?>
|
||||
<table class="torrent_table <?=(($DisableGrouping)?'no_grouping':'grouping')?>" id="torrent_table">
|
||||
<table class="torrent_table cats <?=(($DisableGrouping)?'no_grouping':'grouping')?>" id="torrent_table">
|
||||
<tr class="colhead">
|
||||
<? if(!$DisableGrouping) { ?>
|
||||
<td class="small"></td>
|
||||
|
@ -553,7 +553,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="cat_list">
|
||||
<table class="layout cat_list">
|
||||
<?
|
||||
$x=0;
|
||||
reset($Categories);
|
||||
@ -577,7 +577,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="cat_list <? if(empty($LoggedUser['ShowTags'])) { ?>hidden<? } ?>" id="taglist">
|
||||
<table class="layout cat_list <? if(empty($LoggedUser['ShowTags'])) { ?>hidden<? } ?>" id="taglist">
|
||||
<tr>
|
||||
<?
|
||||
$GenreTags = $Cache->get_value('genre_tags');
|
||||
@ -606,7 +606,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
<? } ?>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="cat_list" width="100%">
|
||||
<table class="layout cat_list" width="100%">
|
||||
<tr>
|
||||
<td class="label">
|
||||
<a href="#" onclick="$('#taglist').toggle(); if(this.innerHTML=='(View Tags)'){this.innerHTML='(Hide Tags)';} else {this.innerHTML='(View Tags)';}; return false;"><?=(empty($LoggedUser['ShowTags'])) ? '(View Tags)' : '(Hide Tags)'?></a>
|
||||
@ -681,7 +681,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
|
||||
<div class="linkbox"><?=$Pages?></div>
|
||||
|
||||
<table class="torrent_table grouping" id="torrent_table">
|
||||
<table class="torrent_table cats grouping" id="torrent_table">
|
||||
<tr class="colhead">
|
||||
<td class="small"></td>
|
||||
<td class="small cats_col"></td>
|
||||
|
@ -147,7 +147,7 @@
|
||||
<input type="hidden" id="pm_type<?=$ReportID?>" name="pm_type" value="Uploader" />
|
||||
<input type="hidden" id="from_delete<?=$ReportID?>" name="from_delete" value="<?=$GroupID?>" />
|
||||
</div>
|
||||
<table cellpadding="5">
|
||||
<table cellpadding="5" class="layout">
|
||||
<tr>
|
||||
<td class="label">Torrent:</td>
|
||||
<td colspan="3">
|
||||
|
@ -365,7 +365,7 @@ function compare($X, $Y){
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_column">
|
||||
<table class="torrent_table">
|
||||
<table class="torrent_table details" id="torrent_details">
|
||||
<tr class="colhead_dark">
|
||||
<td width="80%"><strong>Torrents</strong></td>
|
||||
<td><strong>Size</strong></td>
|
||||
@ -448,7 +448,7 @@ function filelist($Str) {
|
||||
$FileList = str_replace(array('_','-'), ' ', $FileList);
|
||||
$FileList = str_replace('|||','<tr><td>',display_str($FileList));
|
||||
$FileList = preg_replace_callback('/\{\{\{([^\{]*)\}\}\}/i','filelist',$FileList);
|
||||
$FileList = '<table style="overflow-x:auto;"><tr class="colhead_dark"><td><strong><div style="float: left; display: block;">File Name'.(check_perms('users_mod') ? ' [<a href="torrents.php?action=regen_filelist&torrentid='.$TorrentID.'">Regenerate</a>]' : '').'</div></strong><div style="float:right; display:block;">'.(empty($FilePath) ? '' : '/'.$FilePath.'/' ).'</div></td><td><strong>Size</strong></td></tr><tr><td>'.$FileList."</table>";
|
||||
$FileList = '<table class="filelist_table" style="overflow-x:auto;"><tr class="colhead_dark"><td><strong><div style="float: left; display: block;">File Name'.(check_perms('users_mod') ? ' [<a href="torrents.php?action=regen_filelist&torrentid='.$TorrentID.'">Regenerate</a>]' : '').'</div></strong><div style="float:right; display:block;">'.(empty($FilePath) ? '' : '/'.$FilePath.'/' ).'</div></td><td><strong>Size</strong></td></tr><tr><td>'.$FileList."</table>";
|
||||
|
||||
$ExtraInfo=''; // String that contains information on the torrent, eg. format and encoding
|
||||
$AddExtra=''; // Separator between torrent properties
|
||||
@ -603,7 +603,7 @@ function filelist($Str) {
|
||||
?>
|
||||
<div class="box">
|
||||
<div class="head"><span style="font-weight: bold;">Requests (<?=count($Requests)?>)</span> <span style="float:right;"><a href="#" onClick="$('#requests').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;">(Show)</a></span></div>
|
||||
<table id="requests" class="hidden">
|
||||
<table id="requests" class="request_table hidden">
|
||||
<tr class="colhead">
|
||||
<td>Format / Bitrate / Media</td>
|
||||
<td>Votes</td>
|
||||
@ -660,7 +660,7 @@ function filelist($Str) {
|
||||
$SeeAll = '';
|
||||
}
|
||||
?>
|
||||
<table id="collages">
|
||||
<table class="collage_table" id="collages">
|
||||
<tr class="colhead">
|
||||
<td width="85%">This album is in <?=count($Collages)?> collage<?=((count($Collages)>1)?'s':'')?><?=$SeeAll?></td>
|
||||
<td># torrents</td>
|
||||
@ -705,7 +705,7 @@ function filelist($Str) {
|
||||
$SeeAll = '';
|
||||
}
|
||||
?>
|
||||
<table id="personal_collages">
|
||||
<table class="collage_table" id="personal_collages">
|
||||
<tr class="colhead">
|
||||
<td width="85%">This album is in <?=count($PersonalCollages)?> personal collage<?=((count($PersonalCollages)>1)?'s':'')?><?=$SeeAll?></td>
|
||||
<td># torrents</td>
|
||||
|
@ -106,7 +106,7 @@
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
|
||||
<input type="hidden" name="oldgroupid" value="<?=$Properties['GroupID']?>" />
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label">Group ID</td>
|
||||
<td>
|
||||
@ -127,7 +127,7 @@
|
||||
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
|
||||
<input type="hidden" name="oldgroupid" value="<?=$Properties['GroupID']?>" />
|
||||
<input type="hidden" name="oldartistid" value="<?=$Properties['ArtistID']?>" />
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label">Artist</td>
|
||||
<td>
|
||||
|
@ -85,7 +85,7 @@
|
||||
<input type="hidden" name="action" value="nonwikiedit" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="groupid" value="<?=$GroupID?>" />
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="center">This is for editing the information related to the <strong>original release</strong> only.</td>
|
||||
</tr>
|
||||
|
@ -48,22 +48,22 @@
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="torrentid" value="<?=$TorrentID?>" />
|
||||
<input type="hidden" name="groupid" value="<?=$GroupID?>" />
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label">Subject</td>
|
||||
<td>
|
||||
<input type="text" name="subject" value="" size="60" />
|
||||
<input type="text" name="subject" value="" size="60" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Message</td>
|
||||
<td>
|
||||
<textarea name="message" id="message" cols="60" rows="8"></textarea>
|
||||
<textarea name="message" id="message" cols="60" rows="8"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="center">
|
||||
<input type="submit" value="Send Mass PM" />
|
||||
<input type="submit" value="Send Mass PM" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -53,7 +53,7 @@
|
||||
<?=$Pages?>
|
||||
</div>
|
||||
<? if(!$DB->record_count()) { ?>
|
||||
<table class="border">
|
||||
<table class="layout border">
|
||||
<tr class="rowb">
|
||||
<td colspan="8" class="center">
|
||||
No new notifications found! <a href="user.php?action=notify">Edit notification filters</a>
|
||||
@ -84,7 +84,7 @@
|
||||
<a href="javascript:GroupClear($('#notificationform_<?=$FilterID?>').raw())">(clear selected)</a>
|
||||
</h3>
|
||||
<form id="notificationform_<?=$FilterID?>">
|
||||
<table class="border">
|
||||
<table class="torrent_table cats checkboxes border">
|
||||
<tr class="colhead">
|
||||
<td style="text-align: center"><input type="checkbox" name="toggle" onClick="ToggleBoxes(this.form, this.checked)" /></td>
|
||||
<td class="small cats_col"></td>
|
||||
@ -145,9 +145,9 @@
|
||||
|
||||
// print row
|
||||
?>
|
||||
<tr class="group_torrent" id="torrent<?=$TorrentID?>">
|
||||
<tr class="torrent" id="torrent<?=$TorrentID?>">
|
||||
<td style="text-align: center"><input type="checkbox" value="<?=$TorrentID?>" id="clear_<?=$TorrentID?>" /></td>
|
||||
<td class="center cats_cols"><div title="<?=ucfirst(str_replace('_',' ',$MainTag))?>" class="cats_<?=strtolower(str_replace(array('-',' '),array('',''),$Categories[$GroupCategoryID-1])).' tags_'.str_replace('.','_',$MainTag)?>"></div></td>
|
||||
<td class="center cats_col"><div title="<?=ucfirst(str_replace('_',' ',$MainTag))?>" class="cats_<?=strtolower(str_replace(array('-',' '),array('',''),$Categories[$GroupCategoryID-1])).' tags_'.str_replace('.','_',$MainTag)?>"></div></td>
|
||||
<td>
|
||||
<span>
|
||||
[ <a href="torrents.php?action=download&id=<?=$TorrentID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">DL</a>
|
||||
|
@ -276,7 +276,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
</div>
|
||||
<div>
|
||||
<form action="" method="get">
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label"><strong>Search for:</strong></td>
|
||||
<td>
|
||||
@ -368,7 +368,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="cat_list">
|
||||
<table class="layout cat_list">
|
||||
<?
|
||||
$x=0;
|
||||
reset($Categories);
|
||||
@ -403,7 +403,7 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
</div>
|
||||
<? } else { ?>
|
||||
<div class="linkbox"><?=$Pages?></div>
|
||||
<table width="100%">
|
||||
<table class="torrent_table cats" width="100%">
|
||||
<tr class="colhead">
|
||||
<td></td>
|
||||
<td><a href="<?=header_link('Name', 'ASC')?>">Torrent</a></td>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<input type="hidden" name="userid" value="<?=$UserID?>"/>
|
||||
<input type="hidden" name="key" value="<?=$Key?>"/>
|
||||
<input type="hidden" name="action" value="take_warn"/>
|
||||
<table align="center">
|
||||
<table class="layout" align="center">
|
||||
<tr>
|
||||
<td class="label">Reason:</td>
|
||||
<td>
|
||||
|
@ -108,7 +108,7 @@
|
||||
<span id="showdnu"><a href="#" onclick="$('#dnulist').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;">(Show)</a></span>
|
||||
<? } ?>
|
||||
</p>
|
||||
<table id="dnulist" class="<?=($HideDNU?'hidden':'')?>" style="">
|
||||
<table id="dnulist" class="<?=($HideDNU?'hidden':'')?>">
|
||||
<tr class="colhead">
|
||||
<td width="50%"><strong>Name</strong></td>
|
||||
<td><strong>Comment</strong></td>
|
||||
|
@ -424,7 +424,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<div class="thin">
|
||||
<form action="user.php" method="get">
|
||||
<input type="hidden" name="action" value="search" />
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label nobr">Username:</td>
|
||||
<td width="24%">
|
||||
|
@ -39,7 +39,7 @@
|
||||
<h2><a href="user.php?id=<?=$LoggedUser['ID']?>"><?=$LoggedUser['Username']?></a> > Connectability Checker</h2>
|
||||
</div>
|
||||
<form action="javascript:check_ip();" method="get">
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr>
|
||||
<td class="label">IP</td>
|
||||
<td>
|
||||
|
@ -74,7 +74,7 @@ function checked($Checked) {
|
||||
<input type="hidden" name="userid" value="<?=$UserID?>" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
</div>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='border'>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='layout border'>
|
||||
<tr class="colhead_dark">
|
||||
<td colspan="2">
|
||||
<strong>Site preferences</strong>
|
||||
@ -138,7 +138,7 @@ function checked($Checked) {
|
||||
<tr>
|
||||
<td class="label"><strong>Hide release types</strong></td>
|
||||
<td>
|
||||
<table style="border:none;">
|
||||
<table class="layout" style="border:none;">
|
||||
<?
|
||||
$ReleaseTypes[1024] = "Guest Appearance";
|
||||
$ReleaseTypes[1023] = "Remixed By";
|
||||
|
@ -129,7 +129,7 @@
|
||||
<input type="hidden" name="action" value="takeinvite" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label">Email:</td>
|
||||
<td>
|
||||
|
@ -168,7 +168,7 @@ function user_dupes_table($UserID) {
|
||||
<input type="hidden" id="form_comment_hash" name="form_comment_hash" value="<?=$CommentHash?>">
|
||||
<div class="box">
|
||||
<div class="head"><?=max($DupeCount - 1, 0)?> Linked Account<?=(($DupeCount == 2)?'':'s')?> <a href="#" onclick="$('.linkedaccounts').toggle(); return false;">(View)</a></div>
|
||||
<table width="100%" class="hidden linkedaccounts">
|
||||
<table width="100%" class="layout hidden linkedaccounts">
|
||||
<?=$DupeCount?'<tr>':''?>
|
||||
<?
|
||||
$i = 0;
|
||||
|
@ -1 +1,40 @@
|
||||
<?
authorize();
include(SERVER_ROOT.'/sections/user/linkedfunctions.php');
if (!check_perms('users_mod')) {
error(403);
}
$UserID = $_REQUEST['userid'];
switch ($_REQUEST['dupeaction']) {
case 'remove':
unlink_user($_REQUEST['removeid']);
break;
case 'update':
if ($_REQUEST['target']) {
$Target = $_REQUEST['target'];
$DB->query("SELECT ID FROM users_main WHERE Username LIKE '".db_string($Target)."'");
if (list($TargetID) = $DB->next_record()) {
link_users($UserID, $TargetID);
} else {
error("User '$Target' not found.");
}
}
$DB->query("SELECT GroupID FROM users_dupes WHERE UserID = '$UserID'");
list($GroupID) = $DB->next_record();
if ($_REQUEST['dupecomments'] && $GroupID) {
dupe_comments($GroupID, $_REQUEST['dupecomments']);
}
break;
default:
error(403);
}
echo '\o/';
header("Location: user.php?id=$UserID");
?>
|
||||
<?
|
||||
authorize();
|
||||
include(SERVER_ROOT.'/sections/user/linkedfunctions.php');
|
||||
|
||||
if (!check_perms('users_mod')) {
|
||||
error(403);
|
||||
}
|
||||
|
||||
$UserID = $_REQUEST['userid'];
|
||||
|
||||
switch ($_REQUEST['dupeaction']) {
|
||||
case 'remove':
|
||||
unlink_user($_REQUEST['removeid']);
|
||||
break;
|
||||
|
||||
case 'update':
|
||||
if ($_REQUEST['target']) {
|
||||
$Target = $_REQUEST['target'];
|
||||
$DB->query("SELECT ID FROM users_main WHERE Username LIKE '".db_string($Target)."'");
|
||||
if (list($TargetID) = $DB->next_record()) {
|
||||
link_users($UserID, $TargetID);
|
||||
} else {
|
||||
error("User '$Target' not found.");
|
||||
}
|
||||
}
|
||||
|
||||
$DB->query("SELECT GroupID FROM users_dupes WHERE UserID = '$UserID'");
|
||||
list($GroupID) = $DB->next_record();
|
||||
|
||||
if ($_REQUEST['dupecomments'] && $GroupID) {
|
||||
dupe_comments($GroupID, $_REQUEST['dupecomments']);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
error(403);
|
||||
}
|
||||
echo '\o/';
|
||||
header("Location: user.php?id=$UserID");
|
||||
?>
|
@ -40,7 +40,7 @@
|
||||
<input type="hidden" name="formid" value="<?=$i?>" />
|
||||
<input type="hidden" name="action" value="notify_handle" />
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<table <?=($i<=$NumFilters)?'id="filter_'.$N['ID'].'" class="hidden"':''?>>
|
||||
<table <?=($i<=$NumFilters)?'id="filter_'.$N['ID'].'" class="layout hidden"':'class="layout"'?>>
|
||||
<? if($i>$NumFilters){ ?>
|
||||
<tr>
|
||||
<td class="label"><strong>Label</strong></td>
|
||||
|
@ -76,7 +76,7 @@ function reset() {
|
||||
<br />
|
||||
|
||||
<form name="permform" id="permform" method="post" action="">
|
||||
<table class="permission_head">
|
||||
<table class="layout permission_head">
|
||||
<tr>
|
||||
<td class="label">Extra personal collages</td>
|
||||
<td><input type="text" name="maxcollages" size="5" value="<?=($MaxCollages?$MaxCollages:'0')?>" /></td>
|
||||
|
@ -51,7 +51,7 @@
|
||||
</div>
|
||||
<form action="user.php" method="get">
|
||||
<input type="hidden" name="action" value="search" />
|
||||
<table width="100%">
|
||||
<table class="layout" width="100%">
|
||||
<tr>
|
||||
<td class="label nobr">Username:</td>
|
||||
<td>
|
||||
|
@ -47,7 +47,7 @@
|
||||
<p>Note: Clearing cookies can result in ghost sessions which are automatically removed after 30 days.</p>
|
||||
</div>
|
||||
<div class="box pad">
|
||||
<table cellpadding="5" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="5" cellspacing="1" border="0" class="session_table border" width="100%">
|
||||
<tr class="colhead">
|
||||
<td><strong>IP</strong></td>
|
||||
<td><strong>Browser</strong></td>
|
||||
|
@ -678,7 +678,7 @@ function check_paranoia_here($Setting) {
|
||||
$Cache->cache_value('recent_snatches_'.$UserID, $RecentSnatches, 0); //inf cache
|
||||
}
|
||||
?>
|
||||
<table class="recent" cellpadding="0" cellspacing="0" border="0">
|
||||
<table class="layout recent" id="recent_snatches" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr class="colhead">
|
||||
<td colspan="5">Recent Snatches</td>
|
||||
</tr>
|
||||
@ -718,7 +718,7 @@ function check_paranoia_here($Setting) {
|
||||
$Cache->cache_value('recent_uploads_'.$UserID, $RecentUploads, 0); //inf cache
|
||||
}
|
||||
?>
|
||||
<table class="recent" cellpadding="0" cellspacing="0" border="0">
|
||||
<table class="layout recent" id="recent_uploads" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr class="colhead">
|
||||
<td colspan="5">Recent Uploads</td>
|
||||
</tr>
|
||||
@ -747,18 +747,18 @@ function check_paranoia_here($Setting) {
|
||||
ORDER BY ct.Sort LIMIT 5");
|
||||
$Collage = $DB->to_array();
|
||||
?>
|
||||
<table class="recent" cellpadding="0" cellspacing="0" border="0">
|
||||
<table class="layout recent" id="collage<?=$CollageID?>" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr class="colhead">
|
||||
<td colspan="5">
|
||||
<span style="float:left;">
|
||||
<?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>">see full</a>
|
||||
</span>
|
||||
<span style="float:right;">
|
||||
<a href="#" onclick="$('#collage<?=$CollageID?>').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;"><?=$FirstCol?'(Hide)':'(Show)'?></a>
|
||||
<a href="#" onclick="$('#collage<?=$CollageID?> .images').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;"><?=$FirstCol?'(Hide)':'(Show)'?></a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="collage<?=$CollageID?>" <?=$FirstCol?'':'class="hidden"'?>>
|
||||
<tr class="images <?=$FirstCol?'':' hidden'?>">
|
||||
<? foreach($Collage as $C) {
|
||||
$Group = get_groups(array($C['GroupID']));
|
||||
$Group = array_pop($Group['matches']);
|
||||
@ -822,7 +822,7 @@ function check_paranoia_here($Setting) {
|
||||
?>
|
||||
<div class="box">
|
||||
<div class="head">Requests <a href="#" onclick="$('#requests').toggle();return false;">(View)</a></div>
|
||||
<div id="requests" class="hidden">
|
||||
<div id="requests" class="request_table hidden">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<tr class="colhead_dark">
|
||||
<td style="width:48%;">
|
||||
@ -922,7 +922,7 @@ function check_paranoia_here($Setting) {
|
||||
?>
|
||||
<div class="box">
|
||||
<div class="head">Staff PMs <a href="#" onclick="$('#staffpms').toggle();return false;">(View)</a></div>
|
||||
<table width="100%" class="hidden" id="staffpms">
|
||||
<table width="100%" class="message_table hidden" id="staffpms">
|
||||
<tr class="colhead">
|
||||
<td>Subject</td>
|
||||
<td>Date</td>
|
||||
@ -999,9 +999,9 @@ function check_paranoia_here($Setting) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="colhead" colspan="2">User Info</td>
|
||||
<table class="layout">
|
||||
<tr class="colhead">
|
||||
<td colspan="2">User Info</td>
|
||||
</tr>
|
||||
<? if (check_perms('users_edit_usernames', $Class)) { ?>
|
||||
<tr>
|
||||
@ -1170,7 +1170,7 @@ function check_paranoia_here($Setting) {
|
||||
</table><br />
|
||||
|
||||
<? if (check_perms('users_warn')) { ?>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr class="colhead">
|
||||
<td colspan="2">Warn User</td>
|
||||
</tr>
|
||||
@ -1227,7 +1227,7 @@ function check_paranoia_here($Setting) {
|
||||
</tr>
|
||||
<? } ?>
|
||||
</table><br />
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr class="colhead"><td colspan="2">User Privileges</td></tr>
|
||||
<? 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");
|
||||
@ -1309,7 +1309,7 @@ function check_paranoia_here($Setting) {
|
||||
<? } ?>
|
||||
</table><br />
|
||||
<? if(check_perms('users_logout')) { ?>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr class="colhead"><td colspan="2">Session</td></tr>
|
||||
<tr>
|
||||
<td class="label">Reset session:</td>
|
||||
@ -1322,7 +1322,7 @@ function check_paranoia_here($Setting) {
|
||||
|
||||
</table>
|
||||
<? } ?>
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr class="colhead"><td colspan="2">Submit</td></tr>
|
||||
<tr>
|
||||
<td class="label">Reason:</td>
|
||||
|
@ -284,7 +284,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
<!--</div>-->
|
||||
<table class="torrent_table <?=$ShowAll?'hidden':''?>" id="discog_table_<?=$CollageID?>">
|
||||
<table class="torrent_table grouped<?=!$LoggedUser['HideCollage']?' artwork':''?><?=$ShowAll?' hidden':''?>" id="discog_table_<?=$CollageID?>">
|
||||
<tr class="colhead">
|
||||
<td><!-- expand/collapse --></td>
|
||||
<? if(!$LoggedUser['HideCollage']) {?>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<form action="wiki.php" method="get">
|
||||
<input type="hidden" name="action" id="action" value="compare" />
|
||||
<input type="hidden" name="id" id="id" value="<?=$ArticleID?>" />
|
||||
<table>
|
||||
<table class="layout">
|
||||
<tr class="colhead">
|
||||
<td>Add an alias to this article</td>
|
||||
</tr>
|
||||
|
@ -66,7 +66,7 @@
|
||||
<input type="hidden" name="action" value="search" />
|
||||
<input type="hidden" name="nojump" value="1" />
|
||||
</div>
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
|
||||
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
|
||||
<tr>
|
||||
<td class="label"><strong>Search for:</strong></td>
|
||||
<td colspan="3">
|
||||
|
@ -1,2 +1,2 @@
|
||||
<? require('classes/script_start.php');
|
||||
|
||||
<? require('classes/script_start.php');
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user