コード例 #1
0
ファイル: gui.php プロジェクト: tedwp/porpoise
    badRequest();
}
switch ($_REQUEST["action"]) {
    case "newAction":
        if (empty($_REQUEST["index"])) {
            badRequest();
        }
        $index = $_REQUEST["index"];
        if (!is_numeric($index)) {
            badRequest();
        }
        if (empty($_REQUEST["layerAction"]) || strtolower($_REQUEST["layerAction"]) != 'true') {
            $layerAction = FALSE;
        } else {
            $layerAction = true;
        }
        printf("%s", GUI::createActionSubtable($index, new POIAction(), $layerAction));
        exit;
    case "newAnimation":
        if (empty($_REQUEST["index"])) {
            badRequest();
        }
        $index = $_REQUEST["index"];
        if (!is_numeric($index)) {
            badRequest();
        }
        printf("%s", GUI::createAnimationSubtable($index, "", new Animation()));
        exit;
    default:
        badRequest();
}