// Starten der Session
session_start($PHPSESSID);
// Fehlermeldungen abschalten
error_reporting (0);
$filename=$pfad."helgoland/tmp/updates.zip";
if (file_exists($filename)) {unlink($filename);} // löschen der alten Datei
system ("cd /var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/ && zip -9 -D /var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/updates.zip orte2.plist");
system ("cd /var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/ && zip -9 -D /var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/updates.zip kat2.plist");
system ("cd /var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/ && zip -9 -D /var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/updates.zip banner.plist");
$zbody="";
$body="";
// Verbindung zum internen Web-Server
require ("../admin/install/connect.inc");
$db = mysql_connect("$connect_server","$connect_user","$connect_pass");
mysql_select_db("$connect_datenbank",$db);
$heute=date("Y-m-d");
$filename="/var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/updates.zip";
$Datum=filemtime($filename);
$arr=explode("-",$Von);
$zarr=explode(":",$UVon);
$VonDate=date("Y-m-d", $Datum);
$VonTime=date("H:i:s", $Datum);
$filename="/var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/kat2.plist";
$Datum=filemtime($filename);
$arr=explode("-",$Von);
$zarr=explode(":",$UVon);
$VonDate1=date("Y-m-d", $Datum);
$VonTime1=date("H:i:s", $Datum);
$filename="/var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/orte2.plist";
$Datum=filemtime($filename);
$arr=explode("-",$Von);
$zarr=explode(":",$UVon);
$VonDate2=date("Y-m-d", $Datum);
$VonTime2=date("H:i:s", $Datum);
$filename="/var/www/www.sonntags-einkaufen.com/html/helgoland/tmp/termine2.plist";
$Datum=filemtime($filename);
$arr=explode("-",$Von);
$zarr=explode(":",$UVon);
$VonDate3=date("Y-m-d", $Datum);
$VonTime3=date("H:i:s", $Datum);
$zbody.="
name
updates.zip
datum
".$VonDate."T".$VonTime."Z
name
kat2.plist
datum
".$VonDate1."T".$VonTime1."Z
name
orte2.plist
datum
".$VonDate2."T".$VonTime2."Z
name
banner.plist
datum
".$VonDate3."T".$VonTime3."Z
";
$body.="
";
$body.=$zbody;
$body.="
";
$body=utf8_encode($body);
$filename=$pfad."helgoland/tmp/fileinfo.plist";
IF (file_exists($filename)) {unlink($filename);} // löschen der alten Datei
$handle = fopen("$filename", "a");
fwrite($handle, $body);
ECHO "Fileliste erneuert";
ECHO "
Fileliste erneuert";
ECHO "
Download Zip-Archiv";
?>