Empty commit

This commit is contained in:
Git 2012-03-01 08:00:25 +00:00
parent e35fd67288
commit 7d38ecea41
3 changed files with 19 additions and 1 deletions

View File

@ -77,6 +77,9 @@
case 'request':
require(SERVER_ROOT.'/sections/ajax/request.php');
break;
case 'loadavg':
require(SERVER_ROOT.'/sections/ajax/loadavg.php');
break;
default:
// If they're screwing around with the query string
print json_encode(array('status' => 'failure'));

15
sections/ajax/loadavg.php Normal file
View File

@ -0,0 +1,15 @@
<?
authorize(true);
print
json_encode(
array(
'status' => 'success',
'response' => array(
'loadAverage' => sys_getloadavg()
)
)
);
?>

View File

@ -177,7 +177,7 @@ function user_dupes_table($UserID) {
list($DupeID) = $Dupe;
$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>
<?
if ($i == 5) {