summaryrefslogtreecommitdiff
path: root/www-ssl/admin/dbUpdateFromXLS.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-15 18:48:20 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-15 18:48:20 +0000
commit8648273e5ee3a548323a490b7cbd6c05467002e4 (patch)
tree3580bf036b17fa6c438d32f66280778a69a91468 /www-ssl/admin/dbUpdateFromXLS.php
parenta49eb0bdaa624ca89bde36a776f3a1dfe6906c6a (diff)
auswahl des datenuebetragungsmediums
git-svn-id: svn://svn.cccv.de/engel-system@52 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl/admin/dbUpdateFromXLS.php')
-rwxr-xr-xwww-ssl/admin/dbUpdateFromXLS.php18
1 files changed, 10 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)