From 8648273e5ee3a548323a490b7cbd6c05467002e4 Mon Sep 17 00:00:00 2001 From: cookie Date: Tue, 15 Nov 2005 18:48:20 +0000 Subject: auswahl des datenuebetragungsmediums git-svn-id: svn://svn.cccv.de/engel-system@52 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/dbUpdateFromXLS.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'www-ssl/admin/dbUpdateFromXLS.php') diff --git a/www-ssl/admin/dbUpdateFromXLS.php b/www-ssl/admin/dbUpdateFromXLS.php index 1549a32a..11ce6911 100755 --- a/www-ssl/admin/dbUpdateFromXLS.php +++ b/www-ssl/admin/dbUpdateFromXLS.php @@ -9,10 +9,10 @@ include ("./inc/funktion_xml.php"); // DEBUG // /////////// $ShowDataStrukture = 0; -$EnableRoomFunctions = 0; +$EnableRoomFunctions = 1; $EnableRooms = 0; $EnableRoomsDB = 0; -$EnableSchudleFunctions = 1; +$EnableSchudleFunctions = 0; $EnableSchudle = 1; $EnableSchudleDB = 0; @@ -43,13 +43,15 @@ echo "\n\n
\n

XML File:

\n"; if( isset($_POST["PentabarfUser"]) && isset($_POST["PentabarfPasswd"]) && isset($_POST["PentabarfURL"])) { echo "Update XML-File from Pentabarf.."; - $Command = "wget --http-user=". $_POST["PentabarfUser"]. " --http-passwd=".$_POST["PentabarfPasswd"]. " ". - $_POST["PentabarfURL"]. - " --output-file=/tmp/engelXMLwgetLog --output-document=/tmp/engelXML". - " --no-check-certificate"; -// $Command = "lynx -auth=". $_POST["PentabarfUser"]. ":".$_POST["PentabarfPasswd"]. " -dump ". -// $_POST["PentabarfURL"]. " > /tmp/engelXML"; + if( $DataGetMeth=="wget") + $Command = "wget --http-user=". $_POST["PentabarfUser"]. " --http-passwd=".$_POST["PentabarfPasswd"]. " ". + $_POST["PentabarfURL"]. + " --output-file=/tmp/engelXMLwgetLog --output-document=/tmp/engelXML". + " --no-check-certificate"; + elseif( $DataGetMeth=="lynx") + $Command = "lynx -auth=". $_POST["PentabarfUser"]. ":".$_POST["PentabarfPasswd"]. " -dump ". + $_POST["PentabarfURL"]. " > /tmp/engelXML"; echo system( $Command, $Status); if( $Status==0) -- cgit v1.2.3-54-g00ecf