tmp ordner jetzt configurierbar
git-svn-id: svn://svn.cccv.de/engel-system@138 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
1f45fe7b70
commit
e28cd035cb
|
@ -38,4 +38,7 @@ $ModemEnable = false;
|
||||||
//$DataGetMeth="wget";
|
//$DataGetMeth="wget";
|
||||||
$DataGetMeth="lynx";
|
$DataGetMeth="lynx";
|
||||||
|
|
||||||
|
//Tempdir
|
||||||
|
$Tempdir="/tmp";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -50,11 +50,11 @@ if( isset($_POST["PentabarfUser"]) && isset($_POST["PentabarfPasswd"]) && isset(
|
||||||
if( $DataGetMeth=="wget")
|
if( $DataGetMeth=="wget")
|
||||||
$Command = "wget --http-user=". $_POST["PentabarfUser"]. " --http-passwd=".$_POST["PentabarfPasswd"]. " ".
|
$Command = "wget --http-user=". $_POST["PentabarfUser"]. " --http-passwd=".$_POST["PentabarfPasswd"]. " ".
|
||||||
$_POST["PentabarfURL"].
|
$_POST["PentabarfURL"].
|
||||||
" --output-file=/tmp/engelXMLwgetLog --output-document=/tmp/engelXML".
|
" --output-file=$Tempdir/engelXMLwgetLog --output-document=$Tempdir/engelXML".
|
||||||
" --no-check-certificate";
|
" --no-check-certificate";
|
||||||
elseif( $DataGetMeth=="lynx")
|
elseif( $DataGetMeth=="lynx")
|
||||||
$Command = "lynx -auth=". $_POST["PentabarfUser"]. ":".$_POST["PentabarfPasswd"]. " -dump ".
|
$Command = "lynx -auth=". $_POST["PentabarfUser"]. ":".$_POST["PentabarfPasswd"]. " -dump ".
|
||||||
$_POST["PentabarfURL"]. " > /tmp/engelXML";
|
$_POST["PentabarfURL"]. " > $Tempdir/engelXML";
|
||||||
echo system( $Command, $Status);
|
echo system( $Command, $Status);
|
||||||
|
|
||||||
if( $Status==0)
|
if( $Status==0)
|
||||||
|
@ -81,7 +81,7 @@ else
|
||||||
|
|
||||||
|
|
||||||
//readXMLfile("xml.php.xml");
|
//readXMLfile("xml.php.xml");
|
||||||
if( readXMLfile("/tmp/engelXML") == 0)
|
if( readXMLfile("$Tempdir/engelXML") == 0)
|
||||||
{
|
{
|
||||||
$XMLmain = getXMLsubPease( $XMLmain, "VCALENDAR");
|
$XMLmain = getXMLsubPease( $XMLmain, "VCALENDAR");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue