* added parameter --firstrun to use for initial setup. Runs almost by itself..
 * added 'ping home' for statistical purpose
Spell:
 * fixed copy/paste error
This commit is contained in:
Sarjuuk
2015-06-27 18:01:22 +02:00
parent b3f26d9d9d
commit ea538b0040
8 changed files with 387 additions and 90 deletions

View File

@@ -74,12 +74,12 @@ class SqlGen
public static $defaultExecTime = 30;
public static $stepSize = 1000;
public static function init()
public static function init($firstrun = false)
{
self::$defaultExecTime = ini_get('max_execution_time');
$doScripts = [];
if (getopt(self::$shortOpts, self::$longOpts))
if (getopt(self::$shortOpts, self::$longOpts) || $firstrun)
self::handleCLIOpts($doScripts);
else
{