mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-05 22:10:11 +00:00
Empty commit
This commit is contained in:
parent
e35fd67288
commit
7d38ecea41
@ -77,6 +77,9 @@
|
|||||||
case 'request':
|
case 'request':
|
||||||
require(SERVER_ROOT.'/sections/ajax/request.php');
|
require(SERVER_ROOT.'/sections/ajax/request.php');
|
||||||
break;
|
break;
|
||||||
|
case 'loadavg':
|
||||||
|
require(SERVER_ROOT.'/sections/ajax/loadavg.php');
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// If they're screwing around with the query string
|
// If they're screwing around with the query string
|
||||||
print json_encode(array('status' => 'failure'));
|
print json_encode(array('status' => 'failure'));
|
||||||
|
15
sections/ajax/loadavg.php
Normal file
15
sections/ajax/loadavg.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?
|
||||||
|
|
||||||
|
authorize(true);
|
||||||
|
|
||||||
|
print
|
||||||
|
json_encode(
|
||||||
|
array(
|
||||||
|
'status' => 'success',
|
||||||
|
'response' => array(
|
||||||
|
'loadAverage' => sys_getloadavg()
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
@ -177,7 +177,7 @@ function user_dupes_table($UserID) {
|
|||||||
list($DupeID) = $Dupe;
|
list($DupeID) = $Dupe;
|
||||||
$DupeInfo = user_info($DupeID);
|
$DupeInfo = user_info($DupeID);
|
||||||
?>
|
?>
|
||||||
<td align="left"><?=format_username($DupeID, $DupeInfo['Username'], $DupeInfo['Donor'], $DupeInfo['Warned'], $DupeInfo['Enabled'])?>
|
<td align="left"><?=format_username($DupeID, $DupeInfo['Username'], $DupeInfo['Donor'], $DupeInfo['Warned'], ($DupeInfo['Enabled']==2)?false:true)?>
|
||||||
(<a href="user.php?action=dupes&dupeaction=remove&auth=<?=$LoggedUser['AuthKey']?>&userid=<?=$UserID?>&removeid=<?=$DupeID?>" onClick="return confirm('Are you sure you wish to remove <?=$DupeInfo['Username']?> from this group?');">x</a>)</td>
|
(<a href="user.php?action=dupes&dupeaction=remove&auth=<?=$LoggedUser['AuthKey']?>&userid=<?=$UserID?>&removeid=<?=$DupeID?>" onClick="return confirm('Are you sure you wish to remove <?=$DupeInfo['Username']?> from this group?');">x</a>)</td>
|
||||||
<?
|
<?
|
||||||
if ($i == 5) {
|
if ($i == 5) {
|
||||||
|
Loading…
Reference in New Issue
Block a user