| Server IP : 74.208.236.108 / Your IP : 216.73.217.126 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u90537543 ( 11015977) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/oneclick/Drupal/7.39/2/scripts/ |
Upload File : |
<?php
$helpText = <<<EOT
Usage: configure [OPTION]...
install Install application
remove Delete application
configure Switch current installation between TRIAL-MODE | SAFE-MODE | FREE-MODE
upgrade <current-version> <version> Upgrades <current-version> installation to version <version>
patch <current-version> <version> Patch <current-version> installation to version <version>
Requires minimum PHP 5.4 version to assure functionality
Report bugs to <albert.florescu@1and1.ro>
For internal use of 1&1 Internet AG application packaging
EOT;
if (version_compare(preg_replace('/[^0-9.]/', '', PHP_VERSION), '5.4', '<')) {
echo $helpText;
exit(1);
}
if (count($argv) < 2) {
echo $helpText;
exit(1);
}
if (isset($argv[2]) && isset($argv[3])) {
if ($argv[1] === 'upgrade') {
require_once dirname(__FILE__) . '/defines.php';
require_once dirname(__FILE__) . '/functions.php';
require_once dirname(__FILE__) . '/upgrade.php';
exit(0);
}
if ($argv[1] === 'patch') {
require_once dirname(__FILE__) . '/defines.php';
require_once dirname(__FILE__) . '/functions.php';
require_once dirname(__FILE__) . '/patch.php';
exit(0);
}
else {
echo $helpText;
exit(1);
}
}
if ($argv[1] === 'install') {
require_once dirname(__FILE__) . '/defines.php';
require_once dirname(__FILE__) . '/functions.php';
require_once dirname(__FILE__) . '/install.php';
exit(0);
}
if ($argv[1] === 'remove') {
require_once dirname(__FILE__) . '/defines.php';
require_once dirname(__FILE__) . '/functions.php';
require_once dirname(__FILE__) . '/remove.php';
exit(0);
}
if ($argv[1] === 'configure') {
require_once dirname(__FILE__) . '/defines.php';
require_once dirname(__FILE__) . '/functions.php';
require_once dirname(__FILE__) . '/switch.php';
exit(0);
}
else {
echo $helpText;
exit(1);
}