summaryrefslogtreecommitdiff
path: root/api/eval.php
blob: 4270ed16d4132973c44baab292d8659cf704bbc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
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();
}