/** * start * * @param $file * @param $owner * @param $path * @param $drate * @param $retries * @param $pasv */ function start($file, $owner, $path, $drate, $retries, $pasv) { global $instanceWrapperWget; $instanceWrapperWget = new WrapperWget($file, $owner, $path, $drate, $retries, $pasv); $instanceWrapperWget->instance_start(); }
if (isset($_REQUEST['argv'])) { die; } // dummy $_SESSION = array('cache' => false); /******************************************************************************/ // change to docroot if needed if (!is_file(realpath(getcwd() . '/inc/main.core.php'))) { chdir(realpath(dirname(__FILE__) . "/..")); } // check for home if (!is_file('inc/main.core.php')) { exit("Error: this script can only be used in its default-path (DOCROOT/bin/)\n"); } // check args if (!isset($argc) || $argc < 7) { exit("Arg Error\n"); } // signals require_once 'inc/defines/defines.signals.php'; // main.core require_once 'inc/main.core.php'; // common functions require_once 'inc/functions/functions.common.php'; // wget wrapper class require_once 'inc/classes/Wrapper.wget.php'; // load default-language loadLanguageFile($cfg["default_language"]); // from here on the wget-wrapper-class takes over WrapperWget::start($argv[1], $argv[2], $argv[3], $argv[4], $argv[5], $argv[6]);