auswahl des datenuebetragungsmediums
git-svn-id: svn://svn.cccv.de/engel-system@52 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
a49eb0bdaa
commit
8648273e5e
|
@ -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..";
|
||||
|
||||
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";
|
||||
|
||||
// $Command = "lynx -auth=". $_POST["PentabarfUser"]. ":".$_POST["PentabarfPasswd"]. " -dump ".
|
||||
// $_POST["PentabarfURL"]. " > /tmp/engelXML";
|
||||
elseif( $DataGetMeth=="lynx")
|
||||
$Command = "lynx -auth=". $_POST["PentabarfUser"]. ":".$_POST["PentabarfPasswd"]. " -dump ".
|
||||
$_POST["PentabarfURL"]. " > /tmp/engelXML";
|
||||
echo system( $Command, $Status);
|
||||
|
||||
if( $Status==0)
|
||||
|
|
|
@ -35,4 +35,8 @@ $GlobalZeileProStunde = 4;
|
|||
//ist ein modem angeschlossen
|
||||
$ModemEnable = false;
|
||||
|
||||
//soll das xcal-file von penterbarf
|
||||
$DataGetMeth="wget";
|
||||
//$DataGetMeth="lynx";
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue