summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-08-29 09:02:47 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-08-29 09:02:47 +0000
commite28cd035cb4bde5d974e800ce9728fe0020ad46d (patch)
treeed673f8468843adf8feefb60076a688a96079f3f
parent1f45fe7b70e6cb010a44755f643dd62f1002131e (diff)
tmp ordner jetzt configurierbar
git-svn-id: svn://svn.cccv.de/engel-system@138 29ba0400-6e00-0410-a75a-ca02368028f8
-rwxr-xr-xdefault-conf/www-ssl/inc/config.php3
-rwxr-xr-xwww-ssl/admin/dbUpdateFromXLS.php6
2 files changed, 6 insertions, 3 deletions
diff --git a/default-conf/www-ssl/inc/config.php b/default-conf/www-ssl/inc/config.php
index 18210115..cef402f9 100755
--- a/default-conf/www-ssl/inc/config.php
+++ b/default-conf/www-ssl/inc/config.php
@@ -38,4 +38,7 @@ $ModemEnable = false;
//$DataGetMeth="wget";
$DataGetMeth="lynx";
+//Tempdir
+$Tempdir="/tmp";
+
?>
diff --git a/www-ssl/admin/dbUpdateFromXLS.php b/www-ssl/admin/dbUpdateFromXLS.php
index f87163c2..80cf5419 100755
--- a/www-ssl/admin/dbUpdateFromXLS.php
+++ b/www-ssl/admin/dbUpdateFromXLS.php
@@ -50,11 +50,11 @@ if( isset($_POST["PentabarfUser"]) && isset($_POST["PentabarfPasswd"]) && isset(
if( $DataGetMeth=="wget")
$Command = "wget --http-user=". $_POST["PentabarfUser"]. " --http-passwd=".$_POST["PentabarfPasswd"]. " ".
$_POST["PentabarfURL"].
- " --output-file=/tmp/engelXMLwgetLog --output-document=/tmp/engelXML".
+ " --output-file=$Tempdir/engelXMLwgetLog --output-document=$Tempdir/engelXML".
" --no-check-certificate";
elseif( $DataGetMeth=="lynx")
$Command = "lynx -auth=". $_POST["PentabarfUser"]. ":".$_POST["PentabarfPasswd"]. " -dump ".
- $_POST["PentabarfURL"]. " > /tmp/engelXML";
+ $_POST["PentabarfURL"]. " > $Tempdir/engelXML";
echo system( $Command, $Status);
if( $Status==0)
@@ -81,7 +81,7 @@ else
//readXMLfile("xml.php.xml");
-if( readXMLfile("/tmp/engelXML") == 0)
+if( readXMLfile("$Tempdir/engelXML") == 0)
{
$XMLmain = getXMLsubPease( $XMLmain, "VCALENDAR");