diff --git a/ajax.php b/ajax.php index 078cb21..f6b63fd 100644 --- a/ajax.php +++ b/ajax.php @@ -41,11 +41,11 @@ $limit->rateLimit($rateLimit); // execute command - $output = $lg->$_GET['cmd']($_GET['host']); + $output = $lg->{$_GET['cmd']}($_GET['host']); if ($output) { exit(); } } } // report error -exit('Unauthorized request'); \ No newline at end of file +exit('Unauthorized request');