getType(), array('basket', 'comboling', 'battery', 'laser')) ) { if (isset($_POST['gamesheet']) && is_numeric($_POST['gamesheet']) && isset($_POST['gameslot']) && is_numeric($_POST['gameslot']) ) { $_SESSION['psyhvel_notice'] = gettext("Game selection succeed!"); require_once("plugins/gamepack/Gamesheet.php"); $gamesheet = NEW Gamesheet($_POST['gamesheet']); $gamesheet->setGameToSlot($_POST['gameslot'], $_POST['rid']); return array('rid' => $_POST['gamesheet'], 'mode' => 'compile'); } } return array('pid' => 'MyFolder'); } /** * @Secured(roles={'member'}) * */ function actionSelectCancel() { $_SESSION['psyhvel_notice'] = gettext("Game selection canceling failed!"); if (isset($_POST['gamesheet']) && is_numeric($_POST['gamesheet']) && isset($_POST['gameslot']) && is_numeric($_POST['gameslot']) ) { $_SESSION['psyhvel_notice'] = gettext("Game selection canceled!"); return array('rid' => $_POST['gamesheet'], 'mode' => 'compile'); } return array('pid' => 'MyFolder'); } /** * @Secured(roles={'member'}) * */ function actionCancel() { $_SESSION['psyhvel_notice'] = gettext("Game creation cancelled!"); if ( in_array($this->getType(), array('link', 'image')) ) { if (isset($_SESSION['folderid']) && $_SESSION['folderid']!="NULL") { return array('pid' => 'Folder', 'fid' => $_SESSION['folderid']); } return array('pid' => 'MyFolder'); } return array('pid' => 'GameCreator'); } } ?>