13include_once __DIR__ .
'/../../root.php';
27 'summary' => __DIR__ .
'/ajax/ajax.summary.php',
28 'latestversion' => __DIR__ .
'/ajax/ajax.latestversion.php',
29 'apache' => __DIR__ .
'/ajax/ajax.apache.php',
30 'mailpit' => __DIR__ .
'/ajax/ajax.mailpit.php',
31 'memcached' => __DIR__ .
'/ajax/ajax.memcached.php',
32 'mariadb' => __DIR__ .
'/ajax/ajax.mariadb.php',
33 'mysql' => __DIR__ .
'/ajax/ajax.mysql.php',
34 'nodejs' => __DIR__ .
'/ajax/ajax.nodejs.php',
35 'php' => __DIR__ .
'/ajax/ajax.php.php',
36 'postgresql' => __DIR__ .
'/ajax/ajax.postgresql.php',
37 'xlight' => __DIR__ .
'/ajax/ajax.xlight.php',
38 'quickpick' => __DIR__ .
'/ajax/ajax.quickpick.php',
39 'toggleenhancedquickpick' => __DIR__ .
'/ajax/ajax.toggle.enhancedquickpick.php',
40 'applymoduleconfig' => __DIR__ .
'/ajax/ajax.apply.moduleconfig.php'
50 'toggleenhancedquickpick',
68 http_response_code(403);
69 header(
'Content-Type: application/json');
71 'error' =>
'CSRF validation failed',
72 'message' =>
'Invalid or expired security token. Please refresh the page and try again.'
94 $errorMessage =
'Invalid proc parameter';
96 $errorMessage .=
': "' . htmlspecialchars(
$proc) .
'" is not a valid procedure';
98 $errorMessage .=
': no procedure was specified';
100 echo json_encode([
'error' => $errorMessage]);
static validateRequest($removeAfterValidation=false)
static cleanPostVar($name, $type='text')