예제 #1
0
                 message($msgtodisplay, $outhtml, $headerInclude);
                 exit;
             } else {
                 if ($decline_response_code != "Insufficient funds") {
                     $bank_return = "Error.";
                     $msgtodisplay = "System processing error.";
                     $outhtml = "Y";
                     message($msgtodisplay, $outhtml, $headerInclude);
                     exit;
                 }
             }
         }
     }
 }
 if ($voiceauth != "") {
     $auth_status = func_isauthorisationno_exists($voiceauth, $phonenumber, $i_company_id, $cnn_cs);
     if ($auth_status == "") {
         $auth_status = func_isauthorisationno_existsinrebill($voiceauth, $phonenumber, $i_company_id, $cnn_cs);
     }
     if ($auth_status != "") {
         $msgtodisplay = "Voice authorization id already exist.";
         $outhtml = "y";
         message($msgtodisplay, $outhtml, $headerInclude);
         exit;
     }
 }
 $qrt_select_suspend = "Select suspenduser from cs_companydetails where userid='{$i_company_id}'";
 if (!($show_suspend_Sql = mysql_query($qrt_select_suspend))) {
     dieLog(mysql_errno() . ": " . mysql_error() . "<BR>");
 } else {
     $suspend = mysql_fetch_array($show_suspend_Sql);
예제 #2
0
$domain1 = isset($HTTP_POST_VARS['domain1']) ? Trim($HTTP_POST_VARS['domain1']) : "";
$sessionlogin = isset($HTTP_SESSION_VARS["sessionlogin"]) ? $HTTP_SESSION_VARS["sessionlogin"] : "";
$sessionCompanyUser = isset($HTTP_SESSION_VARS["sessionCompanyUser"]) ? $HTTP_SESSION_VARS["sessionCompanyUser"] : "";
//$dateToEnter = func_get_current_date_time(); //EST Time.
$i_rebill_year = isset($HTTP_POST_VARS["opt_rebill_year"]) ? Trim($HTTP_POST_VARS["opt_rebill_year"]) : date("Y");
$i_rebill_month = isset($HTTP_POST_VARS["opt_rebill_month"]) ? Trim($HTTP_POST_VARS["opt_rebill_month"]) : date("m");
$i_rebill_day = isset($HTTP_POST_VARS["opt_rebill_day"]) ? Trim($HTTP_POST_VARS["opt_rebill_day"]) : date("d");
$setrebilldate = "{$i_rebill_year}-{$i_rebill_month}-{$i_rebill_day}";
if ($amount) {
    $yyyy = date("Y");
    $mm = date("m");
    $dd = date("d");
    $hr = date("G");
    $mn = date("i");
    $tt = date("A");
    $auth_status = func_isauthorisationno_exists($voiceauth, $cnn_cs);
    if ($auth_status == "") {
        $auth_status = func_isauthorisationno_existsinrebill($voiceauth, $cnn_cs);
    }
    if ($auth_status != "") {
        $msgtodisplay = "Voice authorization id with transaction status {$auth_status} already exist.";
        $outhtml = "y";
        message($msgtodisplay, $outhtml, $headerInclude);
        exit;
    }
    if ($sessionlogin != "") {
        $qrt_select_suspend = "Select suspenduser from cs_companydetails where userid='{$sessionlogin}'";
    } elseif ($sessionCompanyUser != "") {
        $qrt_select_suspend = "Select suspenduser from cs_companydetails where userid='{$sessionCompanyUser}'";
    }
    if (!($show_suspend_Sql = mysql_query($qrt_select_suspend, $cnn_cs))) {
예제 #3
0
        $msgtodisplay = "<table width='350' height='100' align='center' valign='middle' style='border:1px solid black'><tr><td align='center' valign='middle'>{$msgdisplay}</td></tr><tr><td align='center'><a href='javascript:window.history.back();'><img border='0' src='http://www.etelegate.com/images/back.jpg'></a></td></tr></table>";
        print $msgtodisplay;
        die;
    }
}
$i_service_user_id = "null";
//end
if ($productdescription == "") {
    $productdescription = "Service";
}
if ($str_currency == "EURO") {
    $str_currency = "EUR";
}
$validupto = "{$yyyy}/{$mm}";
if ($voiceauth != "") {
    $auth_status = func_isauthorisationno_exists($voiceauth, $phone, $companyid, $cnn_cs);
    if ($auth_status == "") {
        $auth_status = func_isauthorisationno_existsinrebill($voiceauth, $phone, $companyid, $cnn_cs);
    }
    if ($auth_status != "") {
        $msgdisplay = "<font face='verdana' size='2' color='black'>Voice authorization id already exist.</font>";
        $msgtodisplay = "<table width='350' height='100' align='center' valign='middle' style='border:1px solid black'><tr><td align='center' valign='middle'>{$msgdisplay}</td></tr><tr><td align='center'><a href='javascript:window.history.back();'><img border='0' src='http://www.etelegate.com/images/back.jpg'></a></td></tr></table>";
        print $msgtodisplay;
        $return_message = "VID";
        exit;
    }
}
$qrt_select_suspend = "Select suspenduser from cs_companydetails where userid='{$companyid}'";
if (!($show_suspend_Sql = mysql_query($qrt_select_suspend))) {
    print mysql_errno() . ": " . mysql_error() . "<BR>";
    print "Cannot execute query";