> myAppInstaller.php // Your application name $appName = "nanoKubbe"; // Your application update XML file $appXML = "http://svn.kd2.org/svn/misc/nanokubbe/branches/stable/updates.xml"; // Where to redirect after install ? $appRedirect = './install.php'; // Require PHP version $appRequirePHP = '4.3.0'; // Require functions $appRequireFunctions = array(); // END OF INSTALLER CONFIGURATION $mySelf = basename($_SERVER['SCRIPT_NAME']); if (phpversion() < $appRequirePHP) die($appName.' requires PHP version '.$appRequirePHP); foreach ($appRequireFunctions as $function) { if (!function_exists($function)) die($appName.' requires PHP function "'.$function.'"'); } $getter = new Getter($appXML, './'); $getter->Install(); if (headers_sent()) die('Error in installation of '.$appName); header("location: ".$appRedirect); @unlink($mySelf); ?>