summaryrefslogtreecommitdiff
path: root/api/eval.php
blob: cebf38b2793a91d21dabeb77b515bd0a14978742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc"; 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();
}