Example #1
0
if (!empty($_POST['region'])) {
    $region = $_POST['region'];
    // store selected region
}
$athlete_id = 0;
if (!empty($_POST['athlete_id'])) {
    $athlete_id = $_POST['athlete_id'];
    // store athleteid from search request
} elseif (!empty($_POST['athleteId'])) {
    $athlete_id = $_POST['athleteId'];
    // store athleteid from search request
} elseif (!empty($_GET['athleteId'])) {
    $athlete_id = $_GET['athleteId'];
    // store athleteid from search request
}
$ukc_meeting = AA_checkMeeting_UKC();
$AthReg = false;
if ($athlete_id > 0) {
    // check if athlete already registered and had checked disciplines
    $sql_ba = "SELECT\r\n                     ba.license\r\n               FROM\r\n                    base_athlete AS ba\r\n               WHERE\r\n                    ba.id_athlete = {$athlete_id}";
    $result_ba = mysql_query($sql_ba);
    if (!$result_ba) {
        AA_printErrorMsg("Line " . __LINE__ . ": " . mysql_errno() . ": " . mysql_error());
    } else {
        if (mysql_num_rows($result_ba) > 0) {
            $row_ba = mysql_fetch_row($result_ba);
        }
    }
    $sql_at = "SELECT \r\n                    s.xStart ,\r\n                    a.xAnmeldung ,\r\n                    w.xWettkampf  ,\r\n                    w.mehrkampfcode\r\n                FROM \r\n                    athlet AS at \r\n                    INNER JOIN anmeldung AS a ON (at.xAthlet = a.xAthlet) \r\n                    INNER JOIN start AS s ON (s.xAnmeldung = a.xAnmeldung) \r\n                    LEFT JOIN wettkampf as w ON (w.xWettkampf = s.xWettkampf)    \r\n                WHERE Lizenznummer = {$row_ba['0']} AND a.xMeeting = " . $_COOKIE['meeting_id'];
    $result_at = mysql_query($sql_at);
    if (!$result_at) {
Example #2
0
    $arg = 'meeting';
} else {
    $arg = $_GET['arg'];
}
if (empty($_GET['arg2'])) {
    $arg2 = '';
} else {
    $arg2 = $_GET['arg2'];
}
if ($arg == "login") {
    $arg = $_GET['redirect'];
}
$ukc_meeting = 'n';
if (!empty($_GET['meetingID'])) {
    $meeting = $_GET['meetingID'];
    $ukc_meeting = AA_checkMeeting_UKC($meeting);
} else {
    if (!empty($_GET['ukc'])) {
        $ukc_meeting = $_GET['ukc'];
    }
}
/**************
 *
 *	menu.php
 * --------
 * This script is used by index.php to dynamically setup the main menu bar.
 * Each value in "subitems" represents the php-script to be executed (script
 * name without .php) when an item is selected.
 *
 */
?>