Ajout info
This commit is contained in:
parent
90c86ba653
commit
af8cb3d11d
@ -51,6 +51,12 @@ for ($i = 1; $i < sizeof($GLOBALS["argv"]); $i++)
|
|||||||
case "-v":
|
case "-v":
|
||||||
$verbose = 1;
|
$verbose = 1;
|
||||||
break;
|
break;
|
||||||
|
case "-vv":
|
||||||
|
$verbose = 2;
|
||||||
|
break;
|
||||||
|
case "--no-xls":
|
||||||
|
$no-xls = 1;
|
||||||
|
break;
|
||||||
case "--version":
|
case "--version":
|
||||||
echo $GLOBALS['argv'][0]." $Revision$\n";
|
echo $GLOBALS['argv'][0]." $Revision$\n";
|
||||||
exit;
|
exit;
|
||||||
@ -62,6 +68,7 @@ for ($i = 1; $i < sizeof($GLOBALS["argv"]); $i++)
|
|||||||
"\t-v\t\tverbose mode\n".
|
"\t-v\t\tverbose mode\n".
|
||||||
"\t--month int\n".
|
"\t--month int\n".
|
||||||
"\t--year int\n";
|
"\t--year int\n";
|
||||||
|
"\t--no-xls int\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -117,6 +124,9 @@ if ( $re2sql )
|
|||||||
|
|
||||||
$resqli = $db->query($sqli) ;
|
$resqli = $db->query($sqli) ;
|
||||||
|
|
||||||
|
if ($verbose > 1)
|
||||||
|
print $resqli."\n";
|
||||||
|
|
||||||
if (! $resqli )
|
if (! $resqli )
|
||||||
{
|
{
|
||||||
print $db->error($resqli);
|
print $db->error($resqli);
|
||||||
@ -131,6 +141,9 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if($no-xls)
|
||||||
|
exit;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Partie 2
|
* Partie 2
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user