コード例 #1
0
ファイル: getElement.php プロジェクト: NickGeek/Fancy
<?php

include_once 'DashboardHandler.php';
// session_start();
// if (!isset($_SESSION['authed'])) {
// 	echo "Authentication Error";
// 	exit();
// }
if (empty($_GET['id']) || empty($_GET['site'])) {
    echo "Not enough data has been sent";
    exit;
}
$handler = new DashboardHandler($_GET['site']);
echo $handler->getElement($_GET['id']);