/** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ function downloadLogin() { global $whmcs; global $CONFIG; global $_LANG; global $smarty; global $type; global $id; $pagetitle = $_LANG['downloadstitle']; $breadcrumbnav = "<a href=\"" . $CONFIG['SystemURL'] . "/index.php\">" . $_LANG['globalsystemname'] . "</a> > <a href=\"" . $CONFIG['SystemURL'] . "/downloads.php\">" . $_LANG['downloadstitle'] . "</a>"; initialiseClientArea($pagetitle, $pageicon, $breadcrumbnav); $goto = "download"; require "login.php"; }
if ($view == "resolved") { $query_where = "status='Resolved'"; $breadcrumbnav .= " > <a href=\"networkissues.php?view=resolved\">" . $_LANG['networkissuesstatusresolved'] . "</a>"; } else { if (substr($view, 0, 3) == "nid") { $nid = str_replace("nid", "", $view); $query_where = "id=" . (int) $nid; } else { $view = "open"; $query_where = "status!='Resolved'"; } } } } if (!$fromserverstatus) { initialiseClientArea($pagetitle, $pageicon, $breadcrumbnav); } if ($CONFIG['NetworkIssuesRequireLogin'] && !$_SESSION['uid']) { $goto = "networkissues"; require "login.php"; } $result = select_query("tblnetworkissues", "COUNT(*)", "status!='Resolved' AND status!='Scheduled'"); $data = mysql_fetch_array($result); $smartyvalues['opencount'] = $data[0]; $result = select_query("tblnetworkissues", "COUNT(*)", "status='Scheduled'"); $data = mysql_fetch_array($result); $smartyvalues['scheduledcount'] = $data[0]; $result = select_query("tblnetworkissues", "COUNT(*)", "status='Resolved'"); $data = mysql_fetch_array($result); $smartyvalues['resolvedcount'] = $data[0]; $users_servers = array();
include "init.php"; require_once ROOTDIR . '/includes/api/paymentwall_api/lib/paymentwall.php'; $whmcs->load_function('gateway'); $whmcs->load_function('clientarea'); $whmcs->load_function('invoice'); $gateway = getGatewayVariables("brick"); $whmcsVer = substr($CONFIG['Version'], 0, 1); if ($whmcsVer <= 5) { $gateways = new WHMCS_Gateways(); } else { $gateways = new WHMCS\Gateways(); } $publicKey = $gateway['isTest'] ? $gateway['publicTestKey'] : $gateway['publicKey']; Paymentwall_Config::getInstance()->set(array('api_type' => Paymentwall_Config::API_GOODS, 'public_key' => $publicKey, 'private_key' => $gateway['isTest'] ? $gateway['privateTestKey'] : $gateway['privateKey'])); $pagetitle = $_LANG['clientareatitle'] . " - Pay via Brick (Powered by Paymentwall)"; initialiseClientArea($pagetitle, '', 'Pay via Brick'); # Check login status if ($_SESSION['uid'] && isset($_POST['data']) && ($post = json_decode(decrypt($_POST['data']), true))) { $smartyvalues = array_merge($smartyvalues, $post); $smartyvalues["data"] = $_POST['data']; $smartyvalues["whmcsVer"] = $whmcsVer; $smartyvalues["publicKey"] = $publicKey; $smartyvalues["processingerror"] = ''; $smartyvalues["success"] = false; if ($_POST['frominvoice'] == "true" || $_POST['fromCCForm'] == 'true') { if ($whmcsVer <= 5) { $invoice = new WHMCS_Invoice(); } else { $invoice = new WHMCS\Invoice(); } $invoice->setID($_POST["invoiceid"]);
* @ Website : http://www.mtimer.cn * **/ require "../../../init.php"; $whmcs->load_function("gateway"); $whmcs->load_function("invoice"); $whmcs->load_function("clientarea"); $GATEWAY = getGatewayVariables("worldpayfuturepay"); if (!$GATEWAY['type']) { exit("Module Not Activated"); } $invoiceid = mysql_real_escape_string($_POST['cartId']); $futurepayid = mysql_real_escape_string($_POST['futurePayId']); $transid = mysql_real_escape_string($_POST['transId']); $invoiceid = checkCbInvoiceID($invoiceid, "WorldPay FuturePay"); initialiseClientArea($_LANG['ordercheckout'], "", $_LANG['ordercheckout']); echo processSingleTemplate("/templates/" . $whmcs->get_sys_tpl_name() . "/header.tpl", $smarty->_tpl_vars); echo "<WPDISPLAY ITEM=\"banner\">"; $result = select_query("tblinvoices", "", array("id" => $invoiceid)); $data = mysql_fetch_array($result); $userid = $data['userid']; if ($_POST['transStatus'] == "Y") { logTransaction("WorldPay FuturePay", $_POST, "Successful"); update_query("tblclients", array("gatewayid" => $futurepayid), array("id" => $userid)); addInvoicePayment($invoiceid, $transid, "", "", "worldpayfuturepay"); echo "<p align=\"center\"><a href=\"" . $CONFIG['SystemURL'] . "/viewinvoice.php?id=" . $invoiceid . "&paymentsuccess=true\">Click here to return to " . $CONFIG['CompanyName'] . "</a></p>"; } else { logTransaction("WorldPay FuturePay", $_POST, "Unsuccessful"); echo "<p align=\"center\"><a href=\"" . $CONFIG['SystemURL'] . "/viewinvoice.php?id=" . $invoiceid . "&paymentfailed=true\">Click here to return to " . $CONFIG['CompanyName'] . "</a></p>"; } echo processSingleTemplate("/templates/" . $whmcs->get_sys_tpl_name() . "/footer.tpl", $smarty->_tpl_vars);
if (!$userid) { return $_LANG['unsubscribehashinvalid']; } if ($emailoptout == 1) { return $_LANG['alreadyunsubscribed']; } update_query("tblclients", array("emailoptout" => "1"), array("id" => $userid)); sendMessage("Unsubscribe Confirmation", $userid); logActivity("Unsubscribed From Marketing Emails - User ID:" . $userid, $userid); return null; } return $_LANG['unsubscribehashinvalid']; } define("CLIENTAREA", true); require "init.php"; $pagetitle = $_LANG['unsubscribe']; $breadcrumbnav = "<a href=\"index.php\">" . $_LANG['globalsystemname'] . "</a> > <a href=\"clientarea.php\">" . $_LANG['clientareatitle'] . "</a> > <a href=\"unsubscribe.php\">" . $_LANG['unsubscribe'] . "</a>"; initialiseClientArea($pagetitle, "", $breadcrumbnav); $email = $whmcs->get_req_var("email"); $key = $whmcs->get_req_var("key"); if ($email) { $errormessage = doUnsubscribe($email, $key); $smartyvalues['errormessage'] = $errormessage; if (!$errormessage) { $smartyvalues['successful'] = true; } $templatefile = "unsubscribe"; outputClientArea($templatefile); return 1; } redir("index.php");
<?php define("CLIENTAREA", true); define("FORCESSL", true); include "init.php"; $whmcs->load_function('clientarea'); $pagetitle = $_LANG['clientareatitle'] . " - Pay via Paymentwall"; initialiseClientArea($pagetitle, '', 'Pay via Paymentwall'); $whmcsVer = substr($CONFIG['Version'], 0, 1); $smartyvalues["whmcsVer"] = $whmcsVer; # Check login status if ($_SESSION['uid'] && isset($_POST['data']) && ($iframe = decrypt($_POST['data']))) { if ($iframe) { $smartyvalues['iframe'] = $iframe; } else { // User is logged in but they shouldn't be here (i.e. they weren't here from an invoice) header("Location: " . $CONFIG['SystemURL'] . "/clientarea.php?action=details"); } } else { header("Location: " . $CONFIG['SystemURL'] . "/"); } outputClientArea('/modules/gateways/paymentwall/templates/widget.tpl');
/** * Show Client area * * @param string $templatefile template name * @param array $values smarty values */ function show_template($templatefile, $values) { global $_LANG, $breadcrumbnav, $smartyvalues, $CONFIG; $pagetitle = $_LANG["clientareatitle"]; $pageicon = "images/support/clientarea.gif"; initialiseClientArea($pagetitle, $pageicon, $breadcrumbnav); $smartyvalues = $values; if ($CONFIG['SystemSSLURL']) { $smartyvalues['systemurl'] = $CONFIG['SystemSSLURL'] . '/'; } else { if ($CONFIG['SystemURL'] != 'http://www.yourdomain.com/whmcs') { /* Do not change this URL!!! - Otherwise WHMCS Failed ! */ $smartyvalues['systemurl'] = $CONFIG['SystemURL'] . '/'; } } outputClientArea($templatefile); }
} global $CONFIG; foreach ($_POST['contacts'] as $key => $value) { $split = explode(':', $value); if ($split['0'] == 'email') { ## Try and find the user based upon the email address given by Sirportly $client = select_query('tblclients', 'id', array('email' => $split['1'])); if (mysql_num_rows($client)) { break; } } } if (mysql_num_rows($client)) { $client = mysql_fetch_array($client, MYSQL_ASSOC); } else { die('No such user'); } ## Access the internal API, we stupidly require an administrators id so let's fetch the first one we find ... $administrator = mysql_fetch_array(full_query("SELECT `id` FROM `tbladmins` LIMIT 0, 1"), MYSQL_ASSOC); ## Client Details $results = localAPI('getclientsdetails', array('clientid' => $client['id'], 'stats' => true), $administrator['id']); foreach ($results as $key => $value) { $vars[$key] = $value; } ## Client Products $client_products = localAPI('getclientsproducts', array('clientid' => $client['id']), $administrator['id']); foreach ($client_products['products'] as $key => $value) { $vars['products'] = $value; } initialiseClientArea(); echo processSingleTemplate('/modules/addons/sirportly/templates/frame.tpl', $vars);
* * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("CLIENTAREA", true); require "init.php"; require "includes/gatewayfunctions.php"; require "includes/invoicefunctions.php"; require "includes/clientfunctions.php"; require "includes/countries.php"; $id = $invoiceid = (int) $whmcs->get_req_var("id"); $breadcrumbnav = "<a href=\"index.php\">" . $whmcs->get_lang("globalsystemname") . "</a> > <a href=\"clientarea.php\">" . $whmcs->get_lang("clientareatitle") . "</a> > <a href=\"clientarea.php?action=invoices\">" . $_LANG['invoices'] . "</a> > <a href=\"viewinvoice.php?id=" . $invoiceid . "\">" . $pagetitle . "</a>"; initialiseClientArea($whmcs->get_lang("invoicestitle") . $invoiceid, "", $breadcrumbnav); if (!isset($_SESSION['uid']) && !isset($_SESSION['adminid'])) { $goto = "viewinvoice"; require "login.php"; exit; } $invoice = new WHMCS_Invoice(); $invoice->setID($invoiceid); $invoiceexists = $invoice->loadData(); $allowedaccess = isset($_SESSION['adminid']) ? true : $invoice->isAllowed(); if (!$invoiceexists || !$allowedaccess) { $smarty->assign("error", "on"); $template_output = $smarty->fetch($whmcs->get_sys_tpl_name() . "/viewinvoice.tpl"); echo $template_output; exit; }
define("CLIENTAREA", true); require "init.php"; require "includes/orderfunctions.php"; require "includes/domainfunctions.php"; require "includes/whoisfunctions.php"; require "includes/configoptionsfunctions.php"; require "includes/customfieldfunctions.php"; require "includes/clientfunctions.php"; require "includes/invoicefunctions.php"; require "includes/processinvoices.php"; require "includes/gatewayfunctions.php"; require "includes/fraudfunctions.php"; require "includes/modulefunctions.php"; require "includes/ccfunctions.php"; require "includes/cartfunctions.php"; initialiseClientArea($_LANG['carttitle'], "", "<a href=\"cart.php\">" . $_LANG['carttitle'] . "</a>"); checkContactPermission("orders"); $orderfrm = new WHMCS_OrderForm(); $a = $whmcs->get_req_var("a"); $gid = $whmcs->get_req_var("gid"); $pid = (int) $whmcs->get_req_var("pid"); $aid = (int) $whmcs->get_req_var("aid"); $ajax = $whmcs->get_req_var("ajax"); $sld = $whmcs->get_req_var("sld"); $tld = $whmcs->get_req_var("tld"); $domains = $whmcs->get_req_var("domains"); $step = $whmcs->get_req_var("step"); $orderfrmtpl = $whmcs->get_config("OrderFormTemplate"); if (!isValidforPath($orderfrmtpl)) { exit("Invalid Order Form Template Name"); }