2 /* This includes library file is used by the qcodo_downloader.cli and qcodo_downloader.phpexe scripts
3 * to perform the Qcodo Update Utility's File Downloading functionality.
6 // Call the CLI prepend.inc.php
7 require('cli_prepend.inc.php');
9 // Finally, load the QUpdateUtility class itself
10 require(__QCODO_CORE__
. '/framework/QUpdateUtility.class.php');
12 // Ensure that there are parameters
13 if ($_SERVER['argc'] != 5)
14 QUpdateUtility
::PrintDownloaderInstructions();
16 $strVersion = trim(strtolower($_SERVER['argv'][1]));
17 if (($strVersion == 'stable') ||
($strVersion == 'development'))
18 QUpdateUtility
::Error('Invalid Version format: ' . $strVersion);
20 $objUpdateUtility = new QUpdateUtility($strVersion);
21 $objUpdateUtility->RunDownloader($_SERVER['argv'][2], $_SERVER['argv'][3], $_SERVER['argv'][4]);