Ajout options

This commit is contained in:
Rodolphe Quiedeville 2005-10-19 08:59:43 +00:00
parent db7b05cd0c
commit 6965e67861

View File

@ -27,6 +27,33 @@ print strftime("%H:%M:%S",time())."\n";
require ("../../master.inc.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();
$month = strftime("%m", $datetime);
$year = strftime("%Y", $datetime);