include "includes/dns.class.php"; include "includes/config.inc.php"; // Do not log notices and warnings (imap_open logs notices and warnings on wrong login) error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); if (VERSION != 5) { echo "Version mismatch. You need to update your configuration file\n"; exit; } $backup = new Backup(BACKUP_PATH, IGNORE_DB_NAMES, IGNORE_DB_USERS, IGNORE_SITES, DEBUG); // backup_path is a constant from the config file containing untarred DA backup $other = new Other(MAIL_FROM_ADDR, MAIL_FROM_NAME, SEND_MAIL, DEBUG); $mail = new Email(BACKUP_PATH, DEBUG); // backup_path is all we need, rest is relative $plesk = new Plesk(); $dns = new DNS(NS_API_DOUPDATE, NS_API_UP, NS_API_DATA, NS_API_URL, unserialize(NS_OUR_CONTROL), IPv4, IPv6, DEBUG); $arguments = $other->parseArguments($argv); if (array_key_exists("reseller", $arguments)) { $reseller = $arguments['reseller']; if (!$plesk->isValidReseller($reseller)) { echo "Invalid reseller username given. Exiting...\n"; exit; } } else { $reseller = FALSE; } $sp = $plesk->getServicePlans($reseller); if (array_key_exists("list-serviceplans", $arguments)) { foreach ($sp as $plan) { echo $plan['id'] . ": " . $plan['name'] . "\n"; } exit;