$smarty->assign("gkard_support", $companyInfo['bk_gkard']);
if ($companyInfo['bank_Creditcard'] == 19 && ($_SESSION['ProcessingMode'] == 'UserAccount' || $_SESSION['ProcessingMode'] == 'Credit')) {
    $custom_text = "Forcetronix Inc.<BR>\n\tU12 Gamma Commercial Complex, #47<BR>\n\tRizal Highway cor. Manila Avenue,<BR>\n\tSubic Bay Freeport, Olongapo City<BR>\n\tPhilippines<BR>\n\tIs an authorized payment service provider\n\n<strong>{$companyInfo['cs_name']}</strong><BR>\n{$companyInfo['cs_support_email']}<BR>\n{$companyInfo['cs_support_phone']}\n\t";
    $smarty->assign("custom_text", $custom_text);
}
etel_smarty_display('int_header.tpl');
if ($_SESSION['ProcessingMode'] == 'Check') {
    etel_smarty_display('int_check.tpl');
} else {
    if ($_SESSION['ProcessingMode'] == 'Web900') {
        etel_smarty_display('int_web900.tpl');
    } else {
        if ($_SESSION['ProcessingMode'] == 'UserAccount') {
            etel_smarty_display('int_account.tpl');
        } else {
            etel_smarty_display('int_creditcard.tpl');
        }
    }
}
if (!$_SESSION['mt_prod_desc']) {
    $_SESSION['mt_prod_desc'] = formatMoney($chargeAmount);
}
?>

<?php 
etel_smarty_display('int_footer.tpl');
?>



<?php

$allowBank = true;
include "includes/sessioncheck.php";
$headerInclude = "companies";
include "includes/header.php";
if (!$_GET['submit']) {
    $smarty->assign("etel_hear_about_us", $etel_hear_about_us);
    $smarty->assign("etel_timezone", $etel_timezone);
    etel_smarty_display('main_applynow_form.tpl');
    include "../includes/footer.php";
    die;
}
foreach ($_POST as $k => $c) {
    $postback .= "<input type='hidden' name='{$k}' value='{$c}' >";
}
$newCompanyInfo['en_company'] = quote_smart($_POST['newcompany']);
$newCompanyInfo['en_ref'] = substr(strtoupper(md5(time() + rand(1, 1000000))), 0, 8);
$newCompanyInfo['en_email'] = quote_smart($_POST['email']);
$newCompanyInfo['en_username'] = trim(strtolower(quote_smart($_POST['username'])));
$newCompanyInfo['en_password'] = strtolower(substr(md5(time()), 0, 6));
$newCompanyInfo['how_about_us'] = quote_smart($_POST['how_about_us']);
if ($_POST['reseller']) {
    $newCompanyInfo['how_about_us'] = quote_smart($_POST['reseller']);
}
$newCompanyInfo['volumenumber'] = quote_smart($_POST['merchant_volume']);
$newCompanyInfo['url1'] = quote_smart($_POST['url1']);
$newCompanyInfo['phonenumber'] = quote_smart($_POST['phonenumber']);
$newCompdanyInfo['contact_phone'] = quote_smart($_POST['phonenumber']);
$newCompanyInfo['cd_timezone'] = quote_smart($_POST['cd_timezone']);
$newCompanyInfo['en_gateway_ID'] = $_SESSION['gw_id'];
Beispiel #3
0
<?php

if (!$printable_version) {
    $query_info = "";
    if ($etel_debug_mode == 1) {
        $query_info = "<table width='800px'><tr><td><font style='font-size:8pt;'>";
        if (isset($etel_query_info['results'])) {
            $total_time = 0;
            foreach ($etel_query_info['results'] as $index => $info) {
                $query_info .= "<p>Query " . $info['sql'] . " Took " . $info['duration'] . " Seconds" . ($info['error'] ? " With Error:" . $info['error'] : '') . ".</p>";
                $total_time += $info['duration'];
            }
            $query_info .= "<p>Total Time: " . $total_time . "seconds</p>";
        }
        $query_info .= "</font></td></tr></table>";
    }
    $gen_time = "Page Generated in " . round(microtime_float() - $etel_generate_page_time, 5) . " Seconds.";
    if ($etel_generate_page_time) {
        $smarty->assign('page_generate_time', $gen_time);
    }
    etel_smarty_display('cp_footer.tpl');
    echo wordwrap($query_info, 250, "<br />\n", 1);
}
                        $emailData["username"] = $username;
                        $emailData["password"] = $password;
                        $emailData["gateway_select"] = $companyInfo['gateway_id'];
                        $emailContents = get_email_template("merchant_referral_letter", $emailData);
                        send_email_template("merchant_referral_letter", $emailData);
                        $msgtodisplay = $emailContents['et_htmlformat'];
                    }
                }
            }
            // is suceess ends here
        }
    }
}
//print func_getreplymailbody_htmlformat($companyname,$username,$password);
print $msgtodisplay;
etel_smarty_display("main_footer.tpl");
function func_reseller_merchant_loginletter_htmlformat()
{
    $str_mail_string = "<html><head><title>::eTelegate.com::</title><style>";
    $str_mail_string .= ".TextBox{font-family:verdana;font-size:14px}</style></head><body topmargin='0' leftmargin='0'>";
    $str_mail_string .= "<table border='0' cellpadding='0' cellspacing='0' width='772' align='center' ><tr><td ></td></tr>";
    $str_mail_string .= "</table><table border='0' cellpadding='0' cellspacing='0' width='772' align='center'><tr>";
    $str_mail_string .= "<td height='1' valign='top' align='center' width='33' bgcolor='#FFFFFF' rowspan='3'>&nbsp;";
    $str_mail_string .= "<td height='102' valign='top' align='center' width='701' class='TextBox' bgcolor='#F1F5FA' colspan='2'>";
    $str_mail_string .= "<p align='left'>Dear [CompanyName],<br><br>[ResellerCompanyName] has registered you into the etelegate system. You ";
    $str_mail_string .= "are now ready to login to the system and apply for your new offshore merchant account by completing the application process. The entire process should ";
    $str_mail_string .= "take about 10 minutes, and you'll need the following information on hand:<br></td><td height='1' valign='top' align='center' width='33' bgcolor='#FFFFFF' rowspan='3'><img src='https://www.etelegate.com/images/logo2os.jpg' alt='eTelegate Logo' width='80' height='58'>";
    $str_mail_string .= "</td></tr><tr><td height='64' valign='top' align='center' width='72' class='TextBox' bgcolor='#F1F5FA'>";
    $str_mail_string .= "<p align='left'></td><td height='64' valign='top' align='left' width='631' class='TextBox' bgcolor='#F1F5FA'>";
    $str_mail_string .= "<ul><br><li>Your company's registration number and registered address (if applicable)</li>";
    $str_mail_string .= "<li>Your company's bank account details</li><li>Copy of Driver's License or Passport</li>";
            $ibill_array['CUSTZIP'] = $transInfo['zipcode'];
            $ibill_array['DESC'] = $transInfo['productdescription'];
            $ibill_array['EMAIL'] = $transInfo['email'];
            $ibill_array['FIRSTNAME'] = $transInfo['name'];
            $ibill_array['LASTNAME'] = $transInfo['surname'];
            $ibill_array['REBILL'] = $transInfo['td_enable_rebill'];
            $ibill_array['REMOTEIP'] = $transInfo['ipaddress'];
            $ibill_array['STATE'] = $transInfo['state'];
            $ibill_array['STATEDESC'] = $transInfo['state'];
            $ibill_array['TRANS'] = $transInfo['reference_number'];
            $ibill_array['TRAN'] = $transInfo['reference_number'];
            $ibill_array['firstname'] = $transInfo['name'];
            foreach ($ibill_array as $key => $data) {
                $landingContent = preg_replace("/%%" . $key . "[?]/i", $data, $landingContent);
            }
            die($landingContent);
        }
        $ord = $smarty->fetch('int_orderapproval.tpl');
        $smarty->assign("body", $ord);
    } else {
        if ($_SESSION['stat'] == 4) {
            $smarty->assign("body", "<div align=\"center\">Your Check Has Been Accepted And Is Now Awaiting Approval. This process may take up to 6 days");
        }
    }
}
$custom = FALSE;
etel_smarty_display("int_orderhead.tpl");
//etel_smarty_display('int_order_header.tpl');
//etel_smarty_display('int_order_creditcard.tpl');
//etel_smarty_display('int_footer.tpl');
//echo $_SESSION['companyid'];
Beispiel #6
0
<?php

session_start();
require_once "includes/indexheader.php";
etel_smarty_display('main_resellers.tpl');
<?php

$etel_debug_mode = 0;
chdir("..");
session_start();
$_SESSION['stat'] = isset($_SESSION['stat']) ? $_SESSION['stat'] : 1;
$gateway_db_select = $_SESSION["gw_id"];
require_once "includes/dbconnection.php";
include "includes/integration.php";
include "includes/transaction.class.php";
require_once 'includes/function.php';
require_once $rootdir . 'smarty/libs/Smarty.class.php';
$smarty = new Smarty();
$smarty->compile_check = true;
$smarty->debugging = false;
$curtemplate = $_SESSION['gw_template'];
$smarty->template_dir = $etel_root_path . "/tmpl/" . $curtemplate . "/";
$smarty->compile_dir = $etel_root_path . "/tmpl/" . $curtemplate . "_c/";
$smarty->config_dir = $etel_root_path . "/tmpl/" . $curtemplate . "/config/";
$smarty->assign("rootdir", $etel_domain_path);
$smarty->assign("tempdir", $etel_domain_path . "/tmpl/" . $curtemplate . "/");
$smarty->assign("GET", $_GET);
$smarty->assign("tmpl_language", $mt_language);
$mt_language = isset($_SESSION['mt_language']) ? quote_smart($_SESSION['mt_language']) : "eng";
$smarty->assign("mt_language", $mt_language);
etel_smarty_display("legal_privacy.tpl");
?>



Beispiel #8
0
        $reparray = array('.php', '_smart', '_Smart');
        $pageTitle = str_replace($reparray, "", $page);
        $pageTitle = substr($pageTitle, strrpos($pageTitle, '/'));
        $link['href'] = '/admin/' . $page;
        $link['text'] = ucfirst(preg_replace('/[^a-zA-Z0-9]+/', ' ', $pageTitle));
        $sub_header['links'][] = $link;
        $main_header['links'][] = $link;
    }
}
$link['href'] = $etel_domain_path . "/support/knowledgebase.php";
$link['text'] = "Frequently Asked Questions";
//if($_SESSION["gw_links"] == 'all') $main_header['links'][] = $link;
$link['href'] = $udir . "help.php";
$link['text'] = "Legend";
//if($_SESSION["userType"]!="Admin" && $_SESSION["userType"]!="CustomerService") $main_header['links'][] = $link;
$link['href'] = $etel_domain_path . "/logout.php";
$link['text'] = "Log Out";
$main_header['links'][] = $link;
if (!$pageConfig['HideToDo'] == true) {
    $smarty->assign("display_todo_list", $display_todo_list);
}
$smarty->assign("etel_postback", $etel_postback);
$smarty->assign("main_header", $main_header);
$smarty->assign("sub_header", $sub_header);
$smarty->assign("etel_debug_mode", $etel_debug_mode);
$smarty->assign("etel_full_name", trim(ucwords($companyInfo['en_firstname'] . " " . $companyInfo['en_lastname'])));
if (!$printable_version) {
    $smarty->assign("hide_header", $_REQUEST['hide_header']);
    etel_smarty_display('cp_header.tpl');
    //$smarty->display();
}
    $Payouts['InvoiceProfit']['Revenue']['Funds Transfer Fee']['Comments'] = "Wire/ACH/Other Payment Transfer Fee";
}
if ($Payouts['PreviousProfit']['Revenue']['Sale Funds']) {
    $Payouts['PreviousProfit']['Revenue']['Sale Funds']['Comments'] = "After Reserve and CS Fees";
}
if ($Payouts['PreviousProfit']['Revenue']['Reserve Release']) {
    $Payouts['PreviousProfit']['Revenue']['Reserve Release']['Comments'] = "Reserve Released after hold period";
}
if ($Payouts['PreviousProfit']['Revenue']['Funds Transfer Fee']) {
    $Payouts['PreviousProfit']['Revenue']['Funds Transfer Fee']['Comments'] = "Wire/ACH/Other Payment Transfer Fee";
}
$Payouts['InvoiceProfit']['Total'] = array('Amount' => $Payouts['InvoiceInfo']['Amount'], 'Count' => 1);
$Payouts['InvoiceProfit']['Title'] = $Payouts['InvoiceInfo']['pa_desc'] . "<BR>";
//$Payouts['InvoiceProfit']['Notes'] = "Date Range extends from ".date('m-d-Y',strtotime($Payouts['ThisPeriodStart']))." to ".date('m-d-Y',strtotime($Payouts['ThisPeriodEnd']));
//$Payouts['InvoiceProfit']['Notes'] .= "<BR>Transaction Profit is effective days behind the transaction date.";
if ($Payouts['InvoiceInfo']['pa_info']['Notes']) {
    $Payouts['InvoiceProfit']['Notes'] .= "<BR><BR>" . nl2br($Payouts['InvoiceInfo']['pa_info']['Notes']) . "<BR>";
}
$Payouts['PreviousProfit']['Title'] = "Previous Profit Breakdown";
//$Payouts['PreviousProfit']['Notes'] = "Date Range extends from First Transaction to ".date('m-d-Y',strtotime($Payouts['LastPeriodEnd']));
//$Payouts['PreviousProfit']['Notes'] .= "<BR>Transaction Profit is effective days behind the transaction date.";
beginTable();
$smarty->assign("Profit", $Payouts['InvoiceProfit']);
etel_smarty_display('cp_profitreport.tpl');
endTable("Invoice Information");
beginTable();
$smarty->assign("Profit", $Payouts['PreviousProfit']);
etel_smarty_display('cp_profitreport.tpl');
endTable("Previous Profit Breakdown");
//etelPrint($Payouts);
include "includes/footer.php";
Beispiel #10
0
$companyInfo['how_about_us'] = quote_smart($_POST['how_about_us']);
if ($_POST['reseller']) {
    $companyInfo['how_about_us'] = quote_smart($_POST['reseller']);
}
$companyInfo['volumenumber'] = quote_smart($_POST['merchant_volume']);
$companyInfo['url1'] = quote_smart($_POST['url1']);
$companyInfo['phonenumber'] = quote_smart($_POST['phonenumber']);
$companyInfo['contact_phone'] = quote_smart($_POST['phonenumber']);
$companyInfo['cd_timezone'] = quote_smart($_POST['cd_timezone']);
$companyInfo['en_gateway_ID'] = $_SESSION['gw_id'];
if (!$companyInfo['cd_timezone']) {
    $companyInfo['cd_timezone'] = '-7.0';
}
$companyInfo['cd_contact_im'] = quote_smart($_POST['cd_contact_im_type'] . $_POST['cd_contact_im']);
$companyInfo['transaction_type'] = isset($_POST['rad_order_type']) ? quote_smart($_POST['rad_order_type']) : "";
if (!$companyInfo['transaction_type']) {
    $transaction_type = 'Adult';
}
$companyInfo['etel_reseller_ref'] = $_COOKIE['etel_reseller_ref'];
$companyInfo['etel_merchant'] = true;
$result = add_new_merchant($companyInfo, true, true);
if ($result['status'] == true) {
    $msgtodisplay = $result['email_info']['et_htmlformat'];
    print "<div  style='border:1;padding:30; ' align='left' >{$msgtodisplay}</div>\n\t\t\t<!-- Start Conversion Code -->\n\t\t\t<img src='/trackpoint/tp.php?name=Etelegate%20Signup&u=1&amount=5' width='1' height='1'>\n\t\t\t<!-- End Conversion Code -->\n\t\t";
} else {
    message($result['msg'] . $postback, "", "Error", "content.php?show=main_applynow", false);
    etel_smarty_display('main_footer.tpl');
    die;
}
etel_smarty_display('main_footer.tpl');
Beispiel #11
0
<?php

session_start();
require_once "includes/function.php";
session_start();
require $rootdir . 'smarty/libs/Smarty.class.php';
$smarty = new Smarty();
$smarty->compile_check = true;
$smarty->debugging = false;
$smarty->template_dir = $etel_root_path . "/tmpl/" . $curtemplate . "/";
$smarty->compile_dir = $etel_root_path . "/tmpl/" . $curtemplate . "_c/";
$smarty->assign("rootdir", $etel_domain_path);
$smarty->assign("tempdir", $etel_domain_path . "/tmpl/" . $curtemplate . "/");
etel_smarty_display('main_resources.tpl');
Beispiel #12
0
<?php

$allowBank = true;
include "includes/sessioncheck.php";
if (!$headerInclude) {
    $headerInclude = "companies";
}
include "includes/header.php";
require_once $rootdir . "includes/function2.php";
etel_smarty_display('main_header.tpl');
foreach ($_POST as $k => $c) {
    $postback .= "<input type='hidden' name='{$k}' value='{$c}' >";
}
$newCompanyInfo['en_company'] = quote_smart($_POST['newcompany']);
$newCompanyInfo['en_ref'] = substr(strtoupper(md5(time() + rand(1, 1000000))), 0, 8);
$newCompanyInfo['en_email'] = quote_smart($_POST['email']);
$newCompanyInfo['en_username'] = trim(strtolower(quote_smart($_POST['username'])));
$newCompanyInfo['en_password'] = strtolower(substr(md5(time()), 0, 6));
$newCompanyInfo['how_about_us'] = quote_smart($_POST['how_about_us']);
if ($_POST['reseller']) {
    $newCompanyInfo['how_about_us'] = quote_smart($_POST['reseller']);
}
$newCompanyInfo['volumenumber'] = quote_smart($_POST['merchant_volume']);
$newCompanyInfo['url1'] = quote_smart($_POST['url1']);
$newCompanyInfo['phonenumber'] = quote_smart($_POST['phonenumber']);
$newCompanyInfo['contact_phone'] = quote_smart($_POST['phonenumber']);
$newCompanyInfo['cd_timezone'] = quote_smart($_POST['cd_timezone']);
$newCompanyInfo['en_gateway_ID'] = $_SESSION['gw_id'];
if (!$newCompanyInfo['cd_timezone']) {
    $newCompanyInfo['cd_timezone'] = '-7.0';
}
Beispiel #13
0
<?php

require '../libs/Smarty.class.php';
$smarty = new Smarty();
$smarty->compile_check = true;
$smarty->debugging = true;
$smarty->assign("Name", "Fred Irving Johnathan Bradley Peppergill");
$smarty->assign("FirstName", array("John", "Mary", "James", "Henry"));
$smarty->assign("LastName", array("Doe", "Smith", "Johnson", "Case"));
$smarty->assign("Class", array(array("A", "B", "C", "D"), array("E", "F", "G", "H"), array("I", "J", "K", "L"), array("M", "N", "O", "P")));
$smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"), array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234")));
$smarty->assign("option_values", array("NY", "NE", "KS", "IA", "OK", "TX"));
$smarty->assign("option_output", array("New York", "Nebraska", "Kansas", "Iowa", "Oklahoma", "Texas"));
$smarty->assign("option_selected", "NE");
etel_smarty_display('index.tpl');
Beispiel #14
0
<?php

$etel_debug_mode = 0;
chdir("..");
session_start();
$_SESSION['stat'] = isset($_SESSION['stat']) ? $_SESSION['stat'] : 1;
$gateway_db_select = $_SESSION["gw_id"];
require_once "includes/dbconnection.php";
include "includes/integration.php";
include "includes/transaction.class.php";
require_once 'includes/function.php';
require_once $rootdir . 'smarty/libs/Smarty.class.php';
$smarty = new Smarty();
$smarty->compile_check = true;
$smarty->debugging = false;
$curtemplate = $_SESSION['gw_template'];
$smarty->template_dir = $etel_root_path . "/tmpl/" . $curtemplate . "/";
$smarty->compile_dir = $etel_root_path . "/tmpl/" . $curtemplate . "_c/";
$smarty->config_dir = $etel_root_path . "/tmpl/" . $curtemplate . "/config/";
$smarty->assign("rootdir", $etel_domain_path);
$smarty->assign("tempdir", $etel_domain_path . "/tmpl/" . $curtemplate . "/");
$smarty->assign("GET", $_GET);
$smarty->assign("tmpl_language", $mt_language);
$mt_language = isset($_SESSION['mt_language']) ? quote_smart($_SESSION['mt_language']) : "eng";
$smarty->assign("mt_language", $mt_language);
etel_smarty_display("legal_terms.tpl");
?>