diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2005-11-15 18:48:20 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2005-11-15 18:48:20 +0000 |
commit | 8648273e5ee3a548323a490b7cbd6c05467002e4 (patch) | |
tree | 3580bf036b17fa6c438d32f66280778a69a91468 | |
parent | a49eb0bdaa624ca89bde36a776f3a1dfe6906c6a (diff) |
auswahl des datenuebetragungsmediums
git-svn-id: svn://svn.cccv.de/engel-system@52 29ba0400-6e00-0410-a75a-ca02368028f8
-rwxr-xr-x | www-ssl/admin/dbUpdateFromXLS.php | 18 | ||||
-rwxr-xr-x | www-ssl/inc/config.php | 4 |
2 files changed, 14 insertions, 8 deletions
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<br>\n<h1>XML File:</h1>\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) diff --git a/www-ssl/inc/config.php b/www-ssl/inc/config.php index 46d91eec..101319ff 100755 --- a/www-ssl/inc/config.php +++ b/www-ssl/inc/config.php @@ -35,4 +35,8 @@ $GlobalZeileProStunde = 4; //ist ein modem angeschlossen $ModemEnable = false; +//soll das xcal-file von penterbarf +$DataGetMeth="wget"; +//$DataGetMeth="lynx"; + ?> |