Internal Error
Bets page called in admin mode, but no UID specified.
\n"; EndPage(); CloseDB(); die; } else $self = TRUE; $userref = $self ? "" : "&user=$uid"; $user = Query("SELECT * FROM wm_users WHERE id=$uid"); $user = $user[0]; if (!$user) errexit("User nicht gefunden", "Ein User mit dieser ID existiert nicht."); $bets = Query("SELECT * FROM wm_bets WHERE user=$uid", RESOLVE_IDS, 'match'); $teams = Query("SELECT * FROM wm_teams ORDER BY name ASC", RESOLVE_IDS); $locations = Query("SELECT * FROM wm_locations", RESOLVE_IDS); $stations = Query("SELECT * FROM wm_stations ORDER BY id ASC", RESOLVE_IDS); $stations[''] = Array('name' => ''); $champ = GetChampion(); # We will constantly refer to unset array indices here, and using isset() would # only add bloat to the code. Thus, we'd get lots of warnings if error # reporting is enabled, so we just disable notices here. error_reporting(error_reporting() & ~E_NOTICE); echo "E-Mail-Adresse: " . htmlescape($user['email']) . "
"; if (EnableSurvey && $self) { if (Query("SELECT * FROM wm_survey WHERE uid=$uid")) { // pass } else { $next = MatchType; echo <<Nach Gruppen sortieren"; echo " Nach Zeit sortiert
"; $order = " ORDER BY time ASC"; $okey = "time"; } else { echo "Nach Gruppe sortiert"; echo " Nach Zeit sortieren
"; $order = ""; $okey = "default"; } StartQuery("SELECT * FROM wm_matches$order"); if ($self || IsAdmin) { $adm = IsAdmin ? "adm_" : ""; $auid = IsAdmin ? "&user=$uid" : ""; echo "\n"; } CloseQuery(); if (IsAdmin) echo <<