WBCE CMS UnZipper

FEHLER: PHP ' . PHP_VERSION . ' ist aktiv, benötigt wird aber mindestens ' . $sReqPhpVersion . '!
'; $sMsg .= 'Bitte erst PHP-Version aktualisieren und dann WBCE CMS installieren. (Der Entpacker wird jetzt beendet. Es wurden keine Änderungen an den Dateien oder der Datenbank vorgenommen)

'; $sMsg .= '

ERROR: PHP ' . PHP_VERSION . ' running on this system, but at least PHP ' . $sReqPhpVersion . ' required!
'; $sMsg .= 'Please upgrade your PHP Version and then install WBCE CMS. (Unzip script is terminated. No changes to the file system or database were applied.

'; echo $sMsg; die(); } // assuming file.zip is in the same directory as the executing script. $file = 'wbce.zip'; // get the absolute path to $file $path = pathinfo(realpath($file), PATHINFO_DIRNAME); $zip = new ZipArchive; $res = $zip->open($file); if ($res === TRUE) { // extract it to the path we determined above $zip->extractTo($path); $zip->close(); echo "

$file nach $path entpackt.
Installer aufrufen

"; echo "

$file unzipped to $path.
Start installation

"; unlink(__FILE__); unlink($file); } else { echo "

FEHLER: $file nicht gefunden!

"; echo "

ERROR: $file not found!

"; } ?>