Ajout options
This commit is contained in:
parent
db7b05cd0c
commit
6965e67861
@ -27,6 +27,33 @@ print strftime("%H:%M:%S",time())."\n";
|
|||||||
require ("../../master.inc.php");
|
require ("../../master.inc.php");
|
||||||
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/ProcessGraphLignes.class.php");
|
require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/ProcessGraphLignes.class.php");
|
||||||
|
|
||||||
|
var_dump( $GLOBALS['argv']);
|
||||||
|
|
||||||
|
$graph_all = 0;
|
||||||
|
|
||||||
|
//loop through our arguments and see what the user selected
|
||||||
|
for ($i = 1; $i < $GLOBALS["argv"]; $i++)
|
||||||
|
{
|
||||||
|
switch($GLOBALS["argv"][$i])
|
||||||
|
{
|
||||||
|
case "-v":
|
||||||
|
case "--version":
|
||||||
|
echo $GLOBALS['argv'][0]." $Version:$";
|
||||||
|
exit;
|
||||||
|
break;
|
||||||
|
case "--all":
|
||||||
|
$graph_all = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
exit ;
|
||||||
|
|
||||||
|
$opt = getopt("a:");
|
||||||
|
|
||||||
|
$limit = $opt['l'];
|
||||||
|
$optcontrat = $opt['c'];
|
||||||
|
|
||||||
$datetime = time();
|
$datetime = time();
|
||||||
$month = strftime("%m", $datetime);
|
$month = strftime("%m", $datetime);
|
||||||
$year = strftime("%Y", $datetime);
|
$year = strftime("%Y", $datetime);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user