예제 #1
0
                    $login = false;
                    echo "<p>{$strLoginFalse}</p>";
                    break;
            }
        }
    } elseif ($_POST['arg'] == "reg") {
        // get xml for registrations
        $post = "sid=" . $_POST['slvsid'] . "&meetingid=" . $_POST['control'];
        $result = $http->send_post($webserverDomain, '/meetings/athletica/export_meeting.php', $post, 'file', 'reg.xml');
        if (!$result) {
            AA_printErrorMsg($strErrLogin);
        } else {
            $login = true;
            $reg = true;
            $xml = new XML_data();
            $xml->load_xml($result, 'reg', $_POST['mode']);
            // save eventnr
            mysql_query("update meeting set xControl = " . $_POST['control'] . " where xMeeting = " . $_COOKIE['meeting_id']);
            if (mysql_errno() > 0) {
                AA_printErrorMsg(mysql_errno() . ": " . mysql_error());
            }
        }
    }
}
//
// show meeting list
//
if ($list) {
    ?>

<table class='dialog'>
예제 #2
0
             if (mysql_errno() > 0) {
                 AA_printErrorMsg(mysql_errno() . ": " . mysql_error());
                 break;
                 // important
             } else {
                 mysql_query("TRUNCATE TABLE base_svm");
             }
             //mysql_query("DELETE FROM verein WHERE xCode != ''");
             //mysql_query("UNLOCK TABLES");
         }
         //echo "<p>".date("H:i:s")."</p>";
         // start parsing xml file
         echo "<p>{$strFile} " . ($i + 1) . " {$strBaseProcessing} ... <b>{$strPleaseWait}</b> ";
         ob_flush();
         flush();
         $xml->load_xml($result, "base", $_POST['mode']);
         echo " OK!</p>\n";
         //echo "<p>".date("H:i:s")."</p>";
     }
     $i++;
 }
 //$xml->load_xml("D:/Programme/athletica/www/athletica/tmp/20070219_full.gz", "base");
 //
 // if a complete update was made, check for missing (deleted) clubs
 //
 if ($filetype == "complete") {
     $res_club = mysql_query("SELECT * FROM verein WHERE TRIM(xCode) != ''");
     // control only those with an account code
     while ($row = mysql_fetch_assoc($res_club)) {
         if (!in_array(trim($row['xCode']), $GLOBALS['clubstore'])) {
             // if not in clubstore
예제 #3
0
    return;
}
if (AA_checkMeetingID() == FALSE) {
    // no meeting selected
    return;
    // abort
}
// get xml file for registrations from athletes
// get uploaded XML file and read its content
$fd = fopen($_FILES['xmlfile']['tmp_name'], 'rb');
$content = fread($fd, filesize($_FILES['xmlfile']['tmp_name']));
if (!$fd) {
    AA_printErrorMsg($strErrFtpNoGet);
} else {
    $xml = new XML_data();
    $arr_noCat = $xml->load_xml($_FILES['xmlfile']['tmp_name'], 'regZLV', '');
    if ($arr_noCat['cat'][0] != '') {
        foreach ($arr_noCat['cat'] as $key => $val) {
            $mess = str_replace('%NAME%', $val, $strXmlNoCat);
            echo $mess;
        }
    }
    if ($arr_noCat['lic'][0] != '') {
        foreach ($arr_noCat['lic'] as $key => $val) {
            $mess = str_replace('%NAME%', $val, $strXmlNoLic);
            echo $mess;
        }
    }
    if ($arr_noCat['club'][0] != '') {
        foreach ($arr_noCat['club'] as $key => $val) {
            $mess = str_replace('%NAME%', $val, $strXmlNoClub);