caller->action) { case 'writetourney': if ($user['admin']>=1) { $start = mktime ( $p['stime_h'], $p['stime_m'],0, $p['sdate_m'], $p['sdate_d'], $p['sdate_Y']); $p['roundtime'] *= 60; $p['pausetime'] *= 60; if ($p['roundstarter']<2) $p['roundstarter'] = 2; sql_insert($db['tourney_info'],"'','$p[gid]','$p[endgid]','$p[name]','0','$p[tourney]','$p[admin]','$start','$p[autostart]','$p[autoend]','$p[maxstarter]','$p[teamsize]','$p[rules]','$p[icon]','$p[roundstarter]','$p[matchrounds]','$p[roundtime]','$p[pausetime]','$p[doublerounds]','$p[fixed_times]','$p[svr_from_round]'"); } header("Location: $PHP_SELF?module={$this->caller->module}&amode=$amode"); $return = false; break; // removes all data of a tournament case 'dropt': if ($user['admin']>=1) { sql_delete($db['tourney_info'],"WHERE `id`='$tid'"); sql_delete($db['tourney_data'],"WHERE `tid`='$tid'"); sql_delete($db['tourney_start'],"WHERE `tid`='$tid'"); } header("Location: $PHP_SELF?module={$this->caller->module}&amode=$amode"); $return = false; break; // removes a starter from a tournament case 'delst': if ($user['admin']>=1) sql_delete($db['tourney_start'],"WHERE `tid`='$tid' AND `uid`='$uid'"); header("Location: $PHP_SELF?module={$this->caller->module}&amode=$amode&action=tourney_starter&tid=$tid"); $return = false; break; } require_once("./modules/{$this->caller->module}/inc.tourney.php"); return $return; } function bodyReplace($body) { $body = parent::bodyReplace($body); return $body; } } */ ?>