1));
$use_time = time();
//$start_date = mktime(0,0,0,date("m",$use_time),1,date("Y",$use_time));
//$start_date = date('M-D-Y', $start_time);
//$end_date = mktime(0,0,0,date("m",$use_time)+1,1,date("Y",$use_time));
//$end_date = date('M-D-Y', $end_time);
//$date_format = "MM-DD-YYYY";
$date_format = "UNIX_TIMESTAMP";
//echo date('m-d-Y', $start_time)."
";
//echo date('m-d-Y', $end_time)."
";
//$_SESSION['result1'] = $client->retrieveCustomerStatsNew($_REQUEST['product_code'],$date_format, $start_date, $end_date);
$_SESSION['result1'] = $client->retrieveCurrentUsageNew($_REQUEST['product_code']);
// if a fault occurred, output error info
if ($_SESSION['result1'] == -1)
{
print "TRY AGAIN!";
}
else
{
$result = utf8_decode($_SESSION['result1']);
$errorStartInvalid = strpos($result, "[743]");
$errorStartMissing = strpos($result, "[741]");
if ($errorStartInvalid === false && $errorStartMissing === false)
{
//ENTER THE CENTER
$p_code = $_REQUEST['product_code'];
$enterX = base64_encode($p_code);
$_SESSION['enter'] = base64_encode($p_code);
}
else
{
print "
Please, enter correct Product Code
"; } } // kill object unset($client); } ?>