diff --git a/sections/ajax/index.php b/sections/ajax/index.php index 46504d36..26af8171 100644 --- a/sections/ajax/index.php +++ b/sections/ajax/index.php @@ -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')); diff --git a/sections/ajax/loadavg.php b/sections/ajax/loadavg.php new file mode 100644 index 00000000..ed872cb1 --- /dev/null +++ b/sections/ajax/loadavg.php @@ -0,0 +1,15 @@ + 'success', + 'response' => array( + 'loadAverage' => sys_getloadavg() + ) + ) + ); + +?> diff --git a/sections/user/linkedfunctions.php b/sections/user/linkedfunctions.php index 2acf57ae..c443bee5 100644 --- a/sections/user/linkedfunctions.php +++ b/sections/user/linkedfunctions.php @@ -177,7 +177,7 @@ function user_dupes_table($UserID) { list($DupeID) = $Dupe; $DupeInfo = user_info($DupeID); ?> - + (x)