summaryrefslogtreecommitdiff
path: root/www-ssl/admin
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/admin')
-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)