<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Configure Tax Setup"); $aInt->title = $aInt->lang("taxconfig", "taxrulestitle"); $aInt->sidebar = "config"; $aInt->icon = "taxrules"; $aInt->helplink = "Tax/VAT"; ob_start(); if ($action == "save") { check_token("WHMCS.admin.default"); $save_arr = array("TaxEnabled" => $taxenabled, "TaxType" => $taxtype, "TaxDomains" => $taxdomains, "TaxBillableItems" => $taxbillableitems, "TaxLateFee" => $taxlatefee, "TaxCustomInvoices" => $taxcustominvoices, "TaxL2Compound" => $taxl2compound, "TaxInclusiveDeduct" => $taxinclusivededuct); foreach ($save_arr as $k => $v) { if (!isset($CONFIG[$k])) { insert_query("tblconfiguration", array("setting" => $k, "value" => $v)); continue; } update_query("tblconfiguration", array("value" => $v), array("setting" => $k)); } redir("saved=true");
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Add New Client", false); $aInt->title = $aInt->lang("clients", "addnew"); $aInt->sidebar = "clients"; $aInt->icon = "clientsadd"; $aInt->requiredFiles(array("clientfunctions", "customfieldfunctions", "gatewayfunctions")); if ($action == "add") { check_token("WHMCS.admin.default"); $result = select_query("tblclients", "COUNT(*)", array("email" => $email)); $data = mysql_fetch_array($result); if ($data[0]) { infoBox($aInt->lang("clients", "duplicateemail"), $aInt->lang("clients", "duplicateemailexp"), "error"); } else { if (!trim($email) && !$cccheck) { infoBox($aInt->lang("global", "validationerror"), $aInt->lang("clients", "invalidemail"), "error"); } else { if (!$cccheck && trim($email)) { $emaildomain = explode("@", $email, 2);
**/ function defineGatewayField($gateway, $type, $name, $defaultvalue, $friendlyname, $size, $description) { global $GatewayFieldDefines; if ($type == "dropdown") { $options = $description; $description = ""; } else { $options = ""; } $GatewayFieldDefines[$name] = array("FriendlyName" => $friendlyname, "Type" => $type, "Size" => $size, "Description" => $description, "Value" => $defaultvalue, "Options" => $options); } define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Configure Payment Gateways"); $aInt->title = $aInt->lang("setup", "gateways"); $aInt->sidebar = "config"; $aInt->icon = "offlinecc"; $aInt->helplink = "Payment Gateways"; $aInt->requiredFiles(array("gatewayfunctions", "modulefunctions")); $GatewayValues = $GatewayConfig = $ActiveGateways = $DisabledGateways = array(); $result = select_query("tblpaymentgateways", "", "", "setting", "ASC"); while ($data = mysql_fetch_array($result)) { $gwv_gateway = $data['gateway']; $gwv_setting = $data['setting']; $gwv_value = $data['value']; $GatewayValues[$gwv_gateway][$gwv_setting] = $gwv_value; } $includedmodules = array(); $dh = opendir("../modules/gateways/"); while (false !== ($file = readdir($dh))) {
/** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $licensing->forceRemoteCheck(); $aInt = new WHMCS_Admin("Configure General Settings"); $aInt->title = $aInt->lang("system", "checkforupdates"); $aInt->sidebar = "help"; $aInt->icon = "support"; ob_start(); if (!$licensing->getLatestVersion()) { infoBox($aInt->lang("system", "updatecheck"), $aInt->lang("system", "connectfailed"), "error"); echo $infobox; } else { if ($CONFIG['Version'] != $licensing->getLatestVersion()) { infoBox($aInt->lang("system", "updatecheck"), $aInt->lang("system", "upgrade") . " <a href=\"https://www.whmcs.com/members/clientarea.php\" target=\"_blank\">" . $aInt->lang("system", "clickhere") . "</a>"); } else { infoBox($aInt->lang("system", "updatecheck"), $aInt->lang("system", "runninglatestversion"), "success"); } echo "<div class=\"versionnoticecont\">" . $infobox . "</div>"; echo "\n<br />\n\n"; echo "<s";
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Perform Registrar Operations"); $aInt->title = $aInt->lang("domains", "regtransfer"); $aInt->sidebar = "clients"; $aInt->icon = "clientsprofile"; $aInt->requiredFiles(array("clientfunctions", "registrarfunctions")); if ($action == "do") { check_token("WHMCS.admin.default"); } ob_start(); $result = select_query("tbldomains", "", array("id" => $domainid)); $data = mysql_fetch_array($result); $domainid = $data['id']; $userid = $data['userid']; $domain = $data['domain']; $orderid = $data['orderid']; $registrar = $data['registrar']; $registrationperiod = $data['registrationperiod'];
$where = array("status" => "Scheduled"); } else { if ($view == "resolved") { $pagetitle = "Resolved"; $where = array("status" => "Resolved"); } else { $pagetitle = "Open"; $where = "status!='Resolved' AND status!='Scheduled'"; } } $result = select_query("tblnetworkissues", "*,(select name from tblservers where id = tblnetworkissues.server) as server", $where, "lastupdate", "DESC"); $aInt->deleteJSConfirm("doDelete", "global", "deleteconfirm", "?action=delete&id="); echo "\n<p>"; echo "<s"; echo "trong>"; echo $aInt->lang("fields", "options"); echo ":</strong> <a href=\"networkissues.php\">"; echo $aInt->lang("networkissues", "open"); echo "</a> | <a href=\"networkissues.php?view=scheduled\">"; echo $aInt->lang("networkissues", "scheduled"); echo "</a> | <a href=\"networkissues.php?view=resolved\">"; echo $aInt->lang("networkissues", "resolved"); echo "</a> | <a href=\"?action=manage\"><img src=\"images/icons/add.png\" border=\"0\" align=\"absmiddle\" /> "; echo $aInt->lang("networkissues", "addnew"); echo "</a></p>\n\n<h2>"; echo $pagetitle; echo " Issues</h2>\n\n"; $aInt->sortableTableInit("nopagination"); if (mysql_num_rows($result)) { while ($open_row = mysql_fetch_assoc($result)) { $enddate = $open_row['enddate'];
} if (!$id && $hostingid) { $id = $hostingid; } if (!$userid && !$id) { $userid = get_query_val("tblclients", "id", "", "id", "ASC", "0,1"); } if ($userid && !$id) { $aInt->valUserID($userid); if (!$userid) { $aInt->gracefulExit("Invalid User ID"); } $id = get_query_val("tblhosting", "id", array("userid" => $userid), "domain", "ASC", "0,1"); } if (!$id) { $aInt->gracefulExit($aInt->lang("services", "noproductsinfo") . " <a href=\"ordersadd.php?userid=" . $userid . "\">" . $aInt->lang("global", "clickhere") . "</a> " . $aInt->lang("orders", "toplacenew")); } $result = select_query("tblhosting", "tblhosting.*,tblproducts.servertype,tblproducts.type", array("tblhosting.id" => $id), "", "", "", "tblproducts ON tblproducts.id=tblhosting.packageid"); $service_data = mysql_fetch_array($result); $id = $service_data['id']; if (!$id) { $aInt->gracefulExit("Service ID Not Found"); } $userid = $service_data['userid']; $aInt->valUserID($userid); $producttype = $service_data['type']; $module = $service_data['servertype']; $orderid = $service_data['orderid']; $packageid = $service_data['packageid']; $server = $service_data['server']; $regdate = $service_data['regdate'];
$aInt->inClientsProfile = true; if (!$id && $domainid) { $id = $domainid; } if (!$userid && !$id) { $userid = get_query_val("tblclients", "id", "", "id", "ASC", "0,1"); } if ($userid && !$id) { $aInt->valUserID($userid); if (!$userid) { $aInt->gracefulExit("Invalid User ID"); } $id = get_query_val("tbldomains", "id", array("userid" => $userid), "domain", "ASC", "0,1"); } if (!$id) { $aInt->gracefulExit($aInt->lang("domains", "nodomainsinfo") . " <a href=\"ordersadd.php?userid=" . $userid . "\">" . $aInt->lang("global", "clickhere") . "</a> " . $aInt->lang("orders", "toplacenew")); } $domains = new WHMCS_Domains(); $domain_data = $domains->getDomainsDatabyID($id); $id = $did = $domainid = $domain_data['id']; $userid = $domain_data['userid']; $aInt->valUserID($userid); if (!$id) { $aInt->gracefulExit("Domain ID Not Found"); } if ($action == "delete") { check_token("WHMCS.admin.default"); checkPermission("Delete Clients Domains"); run_hook("DomainDelete", array("userid" => $userid, "domainid" => $id)); delete_query("tbldomains", array("id" => $id)); logActivity("Deleted Domain - User ID: " . $userid . " - Domain ID: " . $id);
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Mass Mail", false); $aInt->title = $aInt->lang("sendmessage", "sendmessagetitle"); $aInt->sidebar = "clients"; $aInt->icon = "massmail"; ob_start(); $massmailquery = $query = $safeStoredQuery = $queryMadeFromEmailType = $token = null; $userInput_massmailquery = $whmcs->get_req_var("massmailquery"); $queryMgr = new WHMCS_Token_Query("Admin.Massmail"); if (!$queryMgr->isValidTokenFormat($userInput_massmailquery)) { $userInput_massmailquery = null; } if ($action == "preview") { check_token("WHMCS.admin.default"); $email_preview = true; delete_query("tblemailtemplates", array("name" => "Mass Mail Template")); insert_query("tblemailtemplates", array("type" => $type, "name" => "Mass Mail Template", "subject" => html_entity_decode($subject), "message" => html_entity_decode($messagetxt), "fromname" => "", "fromemail" => "", "copyto" => "")); if ($massmail && ($safeStoredQuery = $queryMgr->getQuery($queryMgr->getTokenValue()))) {
if ($error == "invalidinvid") { infoBox("Check Invoice ID", "The Invoice ID you entered could not be found", "error"); } else { if ($error == "wronguser") { infoBox("Check Invoice ID", "The Invoice ID you entered to assign this payment to belongs to a different client", "error"); } } echo $infobox; $result = select_query("tblaccounts", "SUM(amountin),SUM(fees),SUM(amountout),SUM(amountin-fees-amountout)", array("userid" => $userid)); $data = mysql_fetch_array($result); echo "\n<table width=90% cellspacing=1 cellpadding=5 bgcolor=\"#CCCCCC\" align=\"center\"><tr bgcolor=\"#f4f4f4\" style=\"text-align:center\"><td><a href=\""; echo $PHP_SELF; echo "?userid="; echo $userid; echo "&action=add\">"; echo $aInt->lang("transactions", "addnew"); echo "</a></td><td>"; echo $aInt->lang("transactions", "totalin"); echo ": "; echo formatCurrency($data[0]); echo "</td><td>"; echo $aInt->lang("transactions", "totalfees"); echo ": "; echo formatCurrency($data[1]); echo "</td><td>"; echo $aInt->lang("transactions", "totalout"); echo ": "; echo formatCurrency($data[2]); echo "</td><td><B>"; echo $aInt->lang("fields", "balance"); echo ": ";
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("View Email Message Log"); $aInt->title = $aInt->lang("system", "emailmessagelog"); $aInt->sidebar = "utilities"; $aInt->icon = "logs"; $aInt->sortableTableInit("date"); $result = select_query("tblemails,tblclients", "COUNT(tblemails.id)", "tblemails.userid=tblclients.id"); $data = mysql_fetch_array($result); $numrows = $data[0]; $result = select_query("tblemails,tblclients", "tblemails.id,tblemails.date,tblemails.subject,tblemails.userid,tblclients.firstname,tblclients.lastname", "tblemails.userid=tblclients.id", "tblemails`.`id", "DESC", $page * $limit . ("," . $limit)); while ($data = mysql_fetch_array($result)) { $id = $data['id']; $date = $data['date']; $subject = $data['subject']; $userid = $data['userid']; $firstname = $data['firstname']; $lastname = $data['lastname']; $tabledata[] = array(fromMySQLDate($date, "time"), "<a href=\"#\" onClick=\"window.open('clientsemails.php?&displaymessage=true&id=" . $id . "','','width=650,height=400,scrollbars=yes');return false\">" . $subject . "</a>", "<a href=\"clientssummary.php?userid=" . $userid . "\">" . $firstname . " " . $lastname . "</a>", "<a href=\"sendmessage.php?resend=true&emailid=" . $id . "\"><img src=\"images/icons/resendemail.png\" border=\"0\" alt=\"" . $aInt->lang("emails", "resendemail") . "\"></a>");
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Configure Domain Pricing"); $aInt->title = $aInt->lang("domains", "pricingtitle"); $aInt->sidebar = "config"; $aInt->icon = "domains"; $aInt->helplink = "Domain Pricing"; $aInt->requiredFiles(array("registrarfunctions")); ob_start(); $action = $whmcs->get_req_var("action"); $success = $whmcs->get_req_var("success"); if ($action == "saveorder") { check_token("WHMCS.admin.default"); $pricingarr = explode("&", $pricingarr); $dpnum = 0; foreach ($pricingarr as $v) { $v = explode("-", $v); $v = $v[1]; if ($v) {
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Configure General Settings"); $aInt->title = $aInt->lang("supportreq", "title"); $aInt->sidebar = "help"; $aInt->icon = "support"; ob_start(); echo "\n<p class=\"bigtext\">Our online community is full of helpful resources, from how-to guides on setup, configuration, to advanced troubleshooting, as well as a thriving forum community which prides itself on giving back.</p>\n\n<table style=\"width:100%\">\n<tr>\n<td style=\"width:25%;text-align:center;font-size:24px;color:#00446d;border-right:1px dashed #ccc;padding:20px;vertical-align:middle;\">Read our Do"; echo "cs</td>\n<td style=\"width:25%;text-align:center;font-size:24px;color:#00446d;border-right:1px dashed #ccc;padding:20px;vertical-align:middle;\">Watch Tutorials</td>\n<td style=\"width:25%;text-align:center;font-size:24px;color:#00446d;border-right:1px dashed #ccc;padding:20px;vertical-align:middle;\">Ask the Community</td>\n<td style=\"width:25%;text-align:center;font-size:24px;color:#00446d;padding:20px;ve"; echo "rtical-align:middle;\">"; if ($licensing->getSupportAccess()) { echo "Ask Us"; } else { echo " Ask Your Reseller"; } echo "</td>\n</tr>\n<tr style=\"\">\n<td style=\"width:25%;text-align:center;border-right:1px dashed #ccc;\"><a href=\"http://docs.whmcs.com/\"><img src=\"http://updates.whmcs.com/images/docs.gif\" alt=\"Online Documentation\" width=\"64\" height=\"64\" /></a></td>\n<td style=\"width:25%;text-align:center;border-right:1px dashed #ccc;\"><a href=\"http://www.whmcs.com/get-support/video-tutorials/\"><img src=\"http://updates.whmcs.com"; echo "/images/tutorials.gif\" alt=\"Online Documentation\" width=\"64\" height=\"64\" /></a></td>\n<td style=\"width:25%;text-align:center;border-right:1px dashed #ccc;\"><a href=\"http://forums.whmcs.com/\"><img src=\"http://updates.whmcs.com/images/community.gif\" alt=\"Online Documentation\" width=\"64\" height=\"64\" /></a></td>\n<td style=\"width:25%;text-align:center;\"><a href=\"mailto:mtimercms@hotmail.com\">"; echo "<img src=\"http://updates.whmcs.com/images/submitticket.gif\" alt=\"Online Documentation\" width=\"64\" height=\"64\" /></a></td>\n</tr>\n<tr>\n<td style=\"width:25%;text-align:center;border-right:1px dashed #ccc;padding:20px;\">Full of helpful articles and guides on how to use WHMCS</p>\n<div style=\"margin:0 auto;width:100px;\"><a class=\"btn\" href=\"http://docs.whmcs.com/\">Go »</a></div>\n</td>\n<td style=\"width:25"; echo "%;text-align:center;border-right:1px dashed #ccc;padding:20px;\">Step by step walkthrough’s on all the most common setup & functionality of WHMCS</p>\n<div style=\"margin:0 auto;width:100px;\"><a class=\"btn\" href=\"http://www.whmcs.com/get-support/video-tutorials/\">Go »</a></div>\n</td>\n<td style=\"width:25%;text-align:center;border-right:1px dashed #ccc;padding:20px;\">Home to a very active ";
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("View Activity Log"); $aInt->title = $aInt->lang("system", "activitylog"); $aInt->sidebar = "utilities"; $aInt->icon = "logs"; ob_start(); echo $aInt->Tabs(array($aInt->lang("global", "searchfilter")), true); echo "\n<div id=\"tab0box\" class=\"tabbox\">\n <div id=\"tab_content\">\n\n<form method=\"post\" action=\"systemactivitylog.php\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "date"); echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"date\" value=\""; echo $date; echo "\" class=\"datepick\"></td><td width=\"15%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "username"); echo "</td><td class=\"fieldarea\">"; echo "<s"; echo "elect name=\"username\"><option value=\"\">"; echo $aInt->lang("global", "any"); echo "</option>";
} if ($action == "delete") { check_token("WHMCS.admin.default"); delete_query("tblbillableitems", array("id" => $id)); redir("userid=" . $userid); exit; } $currency = getCurrency($userid); ob_start(); if (!$action) { if ($invoice && is_array($bitem)) { foreach ($bitem as $id => $v) { update_query("tblbillableitems", array("invoiceaction" => "1", "duedate" => "now()"), array("id" => $id)); } $invoiceid = createInvoices($userid); infoBox($aInt->lang("invoices", "gencomplete"), $aInt->lang("billableitems", "itemsinvoiced") . (" <a href=\"invoices.php?action=edit&id=" . $invoiceid . "\" target=\"_blank\">") . $aInt->lang("fields", "invoicenum") . ("" . $invoiceid . "</a>")); echo $infobox; } if ($delete && is_array($bitem)) { foreach ($bitem as $id => $v) { delete_query("tblbillableitems", array("id" => $id)); } infoBox($aInt->lang("billableitems", "itemsdeleted"), $aInt->lang("billableitems", "itemsdeleteddesc")); echo $infobox; } $aInt->deleteJSConfirm("doDelete", "billableitems", "itemsdeletequestion", "clientsbillableitems.php?userid=" . $userid . "&action=delete&id="); $result = select_query("tblbillableitems", "COUNT(id),SUM(amount)", array("userid" => $userid, "invoicecount" => "0")); $data = mysql_fetch_array($result); $unbilledcount = $data[0]; $unbilledamount = formatCurrency($data[1]); echo "<div align=\"right\"><input type=\"button\" value=\"" . $aInt->lang("billableitems", "additem") . "\" class=\"button\" onClick=\"window.location='clientsbillableitems.php?userid=" . $userid . "&action=manage'\"> <input type=\"button\" value=\"" . $aInt->lang("billableitems", "addtimebilling") . "\" class=\"button\" onClick=\"window.location='clientsbillableitems.php?userid=" . $userid . "&action=timebilling'\"></div><h2>" . $aInt->lang("billableitems", "uninvoiced") . " - <span class=\"textred\">" . $unbilledamount . "</span> (" . $unbilledcount . ")</h2>";
if ($sub == "disable") { check_token("WHMCS.admin.default"); update_query("tblservers", array("disabled" => "1"), array("id" => $id)); redir("disablesuccess=1"); } if ($sub == "makedefault") { check_token("WHMCS.admin.default"); $result = select_query("tblservers", "", array("id" => $id)); $data = mysql_fetch_array($result); $type = $data['type']; update_query("tblservers", array("active" => ""), array("type" => $type)); update_query("tblservers", array("active" => "1"), array("id" => $id)); redir("makedefault=1"); } if ($createsuccess) { infoBox($aInt->lang("configservers", "addedsucessful"), $aInt->lang("configservers", "addedsucessfuldesc")); } if ($deletesuccess) { infoBox($aInt->lang("configservers", "delsuccessful"), $aInt->lang("configservers", "delsuccessfuldesc")); } if ($deletegroupsuccess) { infoBox($aInt->lang("configservers", "groupdelsuccessful"), $aInt->lang("configservers", "groupdelsuccessfuldesc")); } if ($deleteerror) { infoBox($aInt->lang("configservers", "error"), $aInt->lang("configservers", "errordesc")); } if ($savesuccess) { infoBox($aInt->lang("configservers", "changesuccess"), $aInt->lang("configservers", "changesuccessdesc")); } if ($enablesuccess) { infoBox($aInt->lang("configservers", "enabled"), $aInt->lang("configservers", "enableddesc"));
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("List Support Tickets"); $aInt->title = $aInt->lang("support", "insertkblink"); ob_start(); echo "\n"; echo "<s"; echo "cript language=\"JavaScript\">\nfunction insertKBLink(id) {\n\twindow.opener.insertKBLink('"; echo $CONFIG['SystemURL']; echo "/knowledgebase.php?action=displayarticle&catid="; echo $cat; echo "&id='+id);\n\twindow.close();\n}\n</script>\n\n<p><b>Categories</b></p>\n"; if ($cat == "") { $cat = 0; } $result = select_query("tblknowledgebasecats", "", array("parentid" => $cat), "name", "ASC"); while ($data = mysql_fetch_array($result)) { $id = $data['id']; $name = $data['name'];
function domaincloud_output($vars) { require_once "config.php"; $uid = isset($_REQUEST['userid']) ? $_REQUEST['userid'] : ""; $action = isset($_REQUEST['a']) ? $_REQUEST['a'] : ""; $domainid = isset($_REQUEST['domainid']) ? $_REQUEST['domainid'] : ""; $document_download = isset($_REQUEST['dl']) ? $_REQUEST['dl'] : ""; $document_name = isset($_REQUEST['doc_name']) ? $_REQUEST['doc_name'] : ""; $domainname = isset($_POST["domainname"]) ? $_POST["domainname"] : ""; $domain_status = isset($_POST["domain_status"]) ? $_POST["domain_status"] : ""; $transfersecret = isset($_POST["transfersecret"]) ? $_POST["transfersecret"] : ""; $current_date = date('Y-m-d'); $aInt = new WHMCS_Admin(); $name = ""; $orderby = "id"; $sort = "DESC"; $pageObj = new WHMCS_Pagination($name, $orderby, $sort); $pageObj->digestCookieData(); $domainsModel = new WHMCS_DomainDocuments($pageObj); ob_start(); echo "\n <a href=\"addonmodules.php?module=domaincloud\" style=\"text-decoration: none\">\n <span style=\"background-color: #84B429; padding: 5px; color: #fff;\">\n ←<i class=\"fa fa-home\"></i> Go to Dashboard\n </span>\n </a><br /><br />"; echo $aInt->Tabs(array($aInt->lang("global", "searchfilter")), true) . "\n <div id=\"tab0box\" class=\"tabbox\" style=\"display: block;\">\n <div id=\"tab_content\">\n <form action=\"addonmodules.php?module=domaincloud\" method=\"post\">\n <table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n <tbody>\n <tr>\n <td width=\"15%\" class=\"fieldlabel\">Domain Name</td>\n <td class=\"fieldarea\"><input type=\"text\" name=\"domainname\" size=\"30\" value=\"\"></td>\n </tr>\n </tbody>\n </table>\n <p align=\"center\"><input type=\"submit\" id=\"search-clients\" value=\"Search\" class=\"button\"></p>\n </form>\n </div>\n </div>\n <br />\n <script type=\"text/javascript\">\n \$(document).ready(function() {\n \$(\".tabbox\").css(\"display\",\"none\");\n var selectedTab;\n \$(\".tab\").click(function(){\n var elid = \$(this).attr(\"id\");\n \$(\".tab\").removeClass(\"tabselected\");\n \$(\"#\"+elid).addClass(\"tabselected\");\n \$(\".tabbox\").slideUp();\n if (elid != selectedTab) {\n selectedTab = elid;\n \$(\"#\"+elid+\"box\").slideDown();\n } else {\n selectedTab = null;\n \$(\".tab\").removeClass(\"tabselected\");\n }\n \$(\"#tab\").val(elid.substr(3));\n });\n });\n </script>\n "; $criteria = array("domainname" => $domainname, "domainid" => $domainid); $section = new WHMCS_DomainCloudFunctions($domainid); $tbl = new WHMCS_AddonListTable($pageObj); $tbl->setColumns(array("checkall", "Domain", "Identity Document", "Legality Document", "Other Document", "Registration Date", "Special Action", "Domain Status", "Payment")); $domainsModel->execute($criteria); $numresults = $pageObj->getNumResults(); $domainlist = $pageObj->getData(); foreach ($domainlist as $dom) { $linkopen = "<a href=\"clientsdomains.php?userid=" . $dom['userid'] . "&id=" . $dom['id'] . "\">"; $linkclose = "</a>"; $actionlink = "<a href=\"addonmodules.php?module=domaincloudReseller&userid=" . $dom['id'] . "&action=generate_key\" style=\"text-decoration: none;\"><span class=\"label active\">Generate New Key <i class=\"fa fa-comment-o\"></i></span></a> " . ($dom['disabled'] ? "<a href=\"addonmodules.php?module=domaincloudReseller&userid=" . $dom['id'] . "&action=enable_api\" style=\"text-decoration: none;\"><span class=\"label upload\">Enable API <i class=\"fa fa-comment-o\"></i></span></a>" : "<a href=\"addonmodules.php?module=domaincloudReseller&userid=" . $dom['id'] . "&action=disable_api\" style=\"text-decoration: none;\"><span class=\"label closed\">Disable API <i class=\"fa fa-comment-o\"></i></span></a>"); $tbl->addRow(array("<input type=\"checkbox\" name=\"selecteddomains[]\" value=\"" . $dom['id'] . "\" class=\"checkall\">", $linkopen . $dom['domain'] . $linkclose, ($dom['id_doc_storage_name'] ? "<a href=\"addonmodules.php?module=domaincloud&userid=" . $dom['userid'] . "&a=download_1&domainid=" . $dom['id'] . "&doc_name=" . $dom['id_doc_storage_name'] . "\" style=\"text-decoration: none;\"><span class=\"label check\">Manage <i class=\"fa fa-comment-o\"></i></span></a> | " : "") . "<a href=\"addonmodules.php?module=domaincloud&userid=" . $dom['userid'] . "&a=upload_1&domainid=" . $dom['id'] . "\" style=\"text-decoration: none;\"><span class=\"label upload\">Upload <i class=\"fa fa-upload\"></i></span></a>", ($dom['le_doc_storage_name'] ? "<a href=\"addonmodules.php?module=domaincloud&userid=" . $dom['userid'] . "&a=download_2&domainid=" . $dom['id'] . "&doc_name=" . $dom['le_doc_storage_name'] . "\" style=\"text-decoration: none;\"><span class=\"label check\">Manage <i class=\"fa fa-comment-o\"></i></span></a> | " : "") . "<a href=\"addonmodules.php?module=domaincloud&userid=" . $dom['userid'] . "&a=upload_2&domainid=" . $dom['id'] . "\" style=\"text-decoration: none;\"><span class=\"label upload\">Upload <i class=\"fa fa-upload\"></i></span></a>", ($dom['su_doc_storage_name'] ? "<a href=\"addonmodules.php?module=domaincloud&userid=" . $dom['userid'] . "&a=download_3&domainid=" . $dom['id'] . "&doc_name=" . $dom['su_doc_storage_name'] . "\" style=\"text-decoration: none;\"><span class=\"label check\">Manage <i class=\"fa fa-comment-o\"></i></span></a> | " : "") . "<a href=\"addonmodules.php?module=domaincloud&userid=" . $dom['userid'] . "&a=upload_3&domainid=" . $dom['id'] . "\" style=\"text-decoration: none;\"><span class=\"label upload\">Upload <i class=\"fa fa-upload\"></i></span></a>", $dom['registrationdate'], "<a href=\"addonmodules.php?module=domaincloud&userid=" . $dom['userid'] . "&a=transfer&domainid=" . $dom['id'] . "\" style=\"text-decoration: none;\"><span class=\"label check\">Renew via Transfer</span></a>", $dom['domain_status'] == 3 ? "<span class=\"label active\">Approved</span>" : ($dom['domain_status'] == 2 ? "<span class=\"label pending\">Review</span>" : ($dom['domain_status'] == 1 ? "<span class=\"label closed\">Rejected</span>" : "")), $dom['status'] == 'Paid' ? "<span class=\"label active\">" . $dom['status'] . "</span>" : "<span class=\"label cancelled\">" . $dom['status'] . "</span>")); } echo $tbl->output("domaincloud"); $output = ob_get_contents(); ob_end_clean(); echo $output; if ($uid && $action && $domainid) { $query = full_query("\n SELECT t.*, m.domain AS coza_domain, m.id_doc_storage_name, m.le_doc_storage_name, m.su_doc_storage_name, m.domain_approval_date, m.domain_status\n FROM tbldomains t\n LEFT JOIN mod_domaincloudregistrar m ON t.id = m.domainid\n WHERE t.id = " . $domainid . "\n "); $rows = mysql_fetch_array($query); $domain = $rows['domain']; if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br>"; } else { if ($_FILES["file"]["name"] != null) { $ext = pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION); $filename = md5($uid . $domain . $action) . "." . $ext; move_uploaded_file($_FILES["file"]["tmp_name"], $upload_path . $filename); $domainparts = explode(".", $domain, 2); $config = getregistrarconfigoptions('domainku'); $data = array("action" => 'UploadFile', "token" => $config['Token'], "authemail" => $config['AuthEmail'], "sld" => $domainparts[0], "tld" => $domainparts[1], "file" => '@' . $upload_path . $filename . ';filename=' . $filename . ';type=' . $_FILES['file']['type'], "user_action" => $action, "doc_type" => $_POST['doc_type']); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api_endpoint); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, false); $output = curl_exec($ch); if ($output == false) { $res = array("error" => curl_error($ch)); } else { $res = json_decode($output, true); } curl_close($ch); if (empty($res['error'])) { $values = array("userid" => $uid, "domain" => $domain); if ($action == "upload_1") { $values["id_doc_storage_name"] = $filename; $values["id_doc_type"] = $_POST["doc_type"]; } if ($action == "upload_2") { $values["le_doc_storage_name"] = $filename; $values["le_doc_type"] = $_POST["doc_type"]; } if ($action == "upload_3") { $values["su_doc_storage_name"] = $filename; $values["su_doc_type"] = $_POST["doc_type"]; } if ($rows["coza_domain"] == $domain && $filename) { $query = update_query("mod_domaincloudregistrar", $values, array("domainid" => $domainid)); } else { $values['domainid'] = $domainid; $values['domain_registration_date'] = $rows['registrationdate']; $values['domain_status'] = "2"; $query = insert_query("mod_domaincloudregistrar", $values); } $query = update_query("tbldomains", array("registrar" => "domainku"), array("id" => $domainid)); redir("module=domaincloud"); } } } if (strpos($action, 'upload') !== false) { echo $section->outputUploadSection($domain, $action); } elseif (strpos($action, 'dl') !== false) { $file = $upload_path . $document_name; if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename=' . basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); ob_clean(); flush(); readfile($file); exit; } } elseif (strpos($action, 'download') !== false) { echo $section->outputDownloadSection($domain, $domainid, $uid, $document_name, $action, $domain_status); $file = $upload_path . $document_name; if ($rows["coza_domain"] == $domain && $domain_status != "") { $mvalues = array("domain_status" => $domain_status); $params = array(); $params['userid'] = $uid; $params['domainid'] = $domainid; $domainparts = explode(".", $domain, 2); $params['sld'] = $domainparts[0]; $params['tld'] = $domainparts[1]; $params['regperiod'] = $rows['registrationperiod']; $params['registrar'] = $rows['registrar']; $params['regtype'] = $rows['type']; if ($domain_status == 3) { if ($rows['type'] == 'Register') { $result_epp = RegRegisterDomain($params); } elseif ($rows['type'] == 'Transfer') { $params['transfersecret'] = $rows['transfersecret']; $result_epp = RegTransferDomain($params); } if (!$result_epp['error']) { $mvalues['domain_approval_date'] = $current_date; echo "\n <div class=\"infobox\">\n <strong><span class=\"title\">Registrar Status</span></strong><br />" . $result_epp['status'] . "\n </div>\n "; } else { $mvalues['domain_status'] = $rows['domain_status']; echo "\n \t\t\t\t<div class=\"infobox\">\n \t\t\t\t\t<strong><span class=\"title\">Registrar Error</span></strong><br>" . $result_epp['error'] . "\n \t\t\t\t</div>\n \t\t\t\t"; } } $query = update_query("mod_domaincloudregistrar", $mvalues, array("domainid" => $domainid)); } } elseif (strpos($action, 'transfer') !== false) { echo "\n <form method=\"post\">\n EPP Code: <input type=\"textbox\" name=\"transfersecret\" id=\"transfersecret\" value=\"\">\n <input type=\"submit\" value=\"Submit Domain Renewal via Transfer\">\n </form>"; if (!empty($transfersecret)) { $params = array(); $params['userid'] = $uid; $params['domainid'] = $rows['id']; $domainparts = explode(".", $domain, 2); $params['sld'] = $domainparts[0]; $params['tld'] = $domainparts[1]; $params['regperiod'] = $rows['registrationperiod']; $params['registrar'] = $rows['registrar']; $params['regtype'] = 'transfer'; $params['transfersecret'] = $transfersecret; $result_epp = RegTransferDomain($params); if (!$result_epp['error']) { # Set domain approval to 'Approved'. $query = update_query("mod_domaincloudregistrar", array("domain_approval_date" => $current_date, "domain_status" => 3), array("domainid" => $rows['id'])); # Check domain status, if 'Pending Transfer' set it to 'Active'. $query = update_query("tbldomains", array("status" => "Active"), array("domainid" => $rows['id'], "status" => "Pending Transfer")); echo "\n <div class=\"infobox\">\n <strong><span class=\"title\">Registrar Status</span></strong><br />Command completed successfully.\n </div>\n "; } else { echo "\n \t\t\t\t<div class=\"infobox\">\n \t\t\t\t\t<strong><span class=\"title\">Registrar Error</span></strong><br>" . $result_epp['error'] . "\n \t\t\t\t</div>\n \t\t\t\t"; } } } } }
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("View WHOIS Lookup Log"); $aInt->title = $aInt->lang("system", "whois"); $aInt->sidebar = "utilities"; $aInt->icon = "logs"; $aInt->sortableTableInit("date"); $numrows = get_query_val("tblwhoislog", "COUNT(*)", ""); $result = select_query("tblwhoislog", "", "", "id", "DESC", $page * $limit . "," . $limit); while ($data = mysql_fetch_array($result)) { $id = $data['id']; $date = $data['date']; $domain = $data['domain']; $ip = $data['ip']; $tabledata[] = array(fromMySQLDate($date, true), "<a href=\"#\" onclick=\"\$('#frmWhoisDomain').val('" . addslashes($domain) . ("');\$('#frmWhois').submit();return false\">" . $domain . "</a>"), "<a href=\"http://www.geoiptool.com/en/?IP=" . $ip . "\" target=\"_blank\">" . $ip . "</a>"); } $content = $aInt->sortableTable(array($aInt->lang("fields", "date"), $aInt->lang("fields", "domain"), $aInt->lang("fields", "ipaddress")), $tabledata); $content .= "\n<form method=\"post\" action=\"whois.php\" target=\"_blank\" id=\"frmWhois\">\n<input type=\"hidden\" name=\"domain\" value=\"\" id=\"frmWhoisDomain\" />\n</form>\n"; $aInt->content = $content;
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Offline Credit Card Processing"); $aInt->title = $aInt->lang("offlineccp", "title"); $aInt->sidebar = "billing"; $aInt->icon = "offlinecc"; $aInt->requiredFiles(array("clientfunctions", "invoicefunctions", "gatewayfunctions", "ccfunctions")); if ($processwindow) { check_token("WHMCS.admin.default"); $result = select_query("tblinvoices", "", array("id" => $id)); $data = mysql_fetch_array($result); $id = $data['id']; $userid = $data['userid']; $date = $data['date']; $duedate = $data['duedate']; $subtotal = $data['subtotal']; $credit = $data['credit']; $tax = $data['tax']; $total = $data['total'];
$parentid = $data['parentid']; $category = $data['name']; $categorieslist .= "<option value=\"" . $id . "\">"; $i = 1; while ($i <= $parentlevel) { $categorieslist .= "- "; ++$i; } $categorieslist .= "" . $category . "</option>"; buildCategoriesList($id, $parentlevel + 1); } } define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("View Products/Services"); $aInt->title = $aInt->lang("products", "title"); $aInt->sidebar = "config"; $aInt->icon = "configproducts"; $aInt->helplink = "Configuring Products/Services"; $aInt->requiredFiles(array("modulefunctions", "gatewayfunctions")); if ($action == "getdownloads") { check_token("WHMCS.admin.default"); if (!checkPermission("Edit Products/Services", true)) { exit("Access Denied"); } $dir = $_POST['dir']; $dir = preg_replace("/[^0-9]/", "", $dir); echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">"; $result = select_query("tbldownloadcats", "", array("parentid" => $dir), "name", "ASC"); while ($data = mysql_fetch_array($result)) { $catid = $data['id'];
$generalemails = 1; } if ($invoiceemails) { $invoiceemails = 1; } if ($productemails) { $productemails = 1; } if ($supportemails) { $supportemails = 1; } if ($affiliateemails) { $affiliateemails = 1; } if ($contactid == "addnew") { if ($password && $password != $aInt->lang("fields", "password")) { $array['password'] = generateClientPW($password); } $contactid = addContact($userid, $firstname, $lastname, $companyname, $email, $address1, $address2, $city, $state, $postcode, $country, $phonenumber, $password, $permissions, $generalemails, $productemails, $domainemails, $invoiceemails, $supportemails); logActivity("Added Contact - User ID: " . $userid . " - Contact ID: " . $contactid); } else { logActivity("Contact Modified - User ID: " . $userid . " - Contact ID: " . $contactid); $oldcontactdata = get_query_vals("tblcontacts", "", array("userid" => $_SESSION['uid'], "id" => $id)); if ($permissions) { $permissions = implode(",", $permissions); } $table = "tblcontacts"; $array = array("firstname" => $firstname, "lastname" => $lastname, "companyname" => $companyname, "email" => $email, "address1" => $address1, "address2" => $address2, "city" => $city, "state" => $state, "postcode" => $postcode, "country" => $country, "phonenumber" => $phonenumber, "subaccount" => $subaccount, "permissions" => $permissions, "domainemails" => $domainemails, "generalemails" => $generalemails, "invoiceemails" => $invoiceemails, "productemails" => $productemails, "supportemails" => $supportemails, "affiliateemails" => $affiliateemails); if ($password && $password != $aInt->lang("fields", "entertochange")) { $array['password'] = generateClientPW($password); }
* @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ function assignedips_trim($value) { $value = trim($value); } define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Domain Resolver Checker"); $aInt->title = $aInt->lang("utilitiesresolvercheck", "domainresolverchecktitle"); $aInt->sidebar = "utilities"; $aInt->icon = "domainresolver"; $aInt->helplink = "Domain Resolver Checker"; $aInt->requiredFiles(array("modulefunctions")); ob_start(); echo "\n<p>"; echo $aInt->lang("utilitiesresolvercheck", "pagedesc"); echo "</p>\n\n"; if ($step == "") { echo "\n<p align=\"center\">\n<form method=\"post\" action=\""; echo $PHP_SELF; echo "?step=2\">\n"; echo "<s"; echo "elect name=\"server\" onChange=\"submit()\"><option value=\"\">Check All"; $result = select_query("tblservers", "", array("disabled" => "0"), "name", "ASC");
/** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; require "../includes/customfieldfunctions.php"; $aInt = new WHMCS_Admin("List Support Tickets"); $aInt->title = $aInt->lang("support", "printticketversion"); $aInt->requiredFiles(array("ticketfunctions")); $result = select_query("tbltickets", "", array("id" => $id)); $data = mysql_fetch_array($result); $id = $data['id']; $tid = $data['tid']; $deptid = $data['did']; $pauserid = $data['userid']; $name = $data['name']; $email = $data['email']; $date = $data['date']; $title = $data['title']; $message = $data['message']; $tstatus = $data['status']; $attachment = $data['attachment']; $urgency = $data['urgency'];
* * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; if (!$action) { $reqperm = "View Billable Items"; } else { $reqperm = "Manage Billable Items"; } $aInt = new WHMCS_Admin($reqperm); $aInt->title = $aInt->lang("billableitems", "title"); $aInt->sidebar = "billing"; $aInt->icon = "billableitems"; $aInt->requiredFiles(array("invoicefunctions", "gatewayfunctions")); if ($action == "save") { check_token("WHMCS.admin.default"); if (!$userid) { $aInt->gracefulExit($aInt->lang("billableitems", "noclientsmsg")); } $duedate = toMySQLDate($duedate); getUsersLang($userid); if ($id) { if ($hours != 0) { if (strpos($description, " " . $_LANG['billableitemshours'] . " @ ")) { $description = substr($description, 0, strrpos($description, " - ")) . " - " . $hours . " " . $_LANG['billableitemshours'] . " @ " . $amount . "/" . $_LANG['billableitemshour']; }
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Main Homepage"); $aInt->title = $aInt->lang("license", "title"); $aInt->sidebar = "help"; $aInt->icon = "support"; ob_start(); echo "\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"20%\" class=\"fieldlabel\">"; echo $aInt->lang("license", "regto"); echo "</td><td class=\"fieldarea\">"; echo $licensing->getKeyData("registeredname"); echo "</td></tr>\n<tr><td class=\"fieldlabel\">"; echo $aInt->lang("license", "key"); echo "</td><td class=\"fieldarea\">"; echo $whmcs->get_license_key(); echo "</td></tr>\n<tr><td class=\"fieldlabel\">"; echo $aInt->lang("license", "type"); echo "</td><td class=\"fieldarea\">"; echo $licensing->getKeyData("productname");
* @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $action = $whmcs->get_req_var("action"); if ($action == "view") { $reqperm = "View Order Details"; } else { $reqperm = "View Orders"; } $aInt = new WHMCS_Admin($reqperm); $aInt->title = $aInt->lang("orders", "manage"); $aInt->sidebar = "orders"; $aInt->icon = "orders"; $aInt->helplink = "Order Management"; $aInt->requiredFiles(array("gatewayfunctions", "orderfunctions", "modulefunctions", "domainfunctions", "invoicefunctions", "processinvoices", "clientfunctions", "ccfunctions", "registrarfunctions", "fraudfunctions")); if ($whmcs->get_req_var("rerunfraudcheck")) { check_token("WHMCS.admin.default"); $result = select_query("tblorders", "id,userid,ipaddress", array("id" => $orderid)); $data = mysql_fetch_array($result); $orderid = $data['id']; $userid = $data['userid']; $ipaddress = $data['ipaddress']; $fraudmodule = "maxmind"; $results = runFraudCheck($orderid, $fraudmodule, $userid, $ipaddress); $fraudoutput = $results['fraudoutput']; $fraudresults = getResultsArray($fraudoutput);
* @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("View Activity Log"); $aInt->inClientsProfile = true; $aInt->valUserID($userid); ob_start(); echo "\n<form method=\"post\" action=\"clientslog.php?userid="; echo $userid; echo "\">\n<div style=\"width:100%;margin:0 auto;background-color:#f4f4f4;border:1px solid #ccc;text-align:center;-moz-border-radius: 5px;-webkit-border-radius: 5px;-o-border-radius: 5px;border-radius: 5px;\"><table cellpadding=\"6\" cellspacing=\"0\" align=\"center\"><tr><td><b>"; echo $aInt->lang("global", "searchfilter"); echo "</b></td><td>"; echo $aInt->lang("fields", "date"); echo ": <input type=\"text\" name=\"date\" value=\""; echo $date; echo "\" class=\"datepick\"></td><td>"; echo $aInt->lang("fields", "description"); echo ": <input type=\"text\" name=\"description\" value=\""; echo $description; echo "\" size=\"30\"></td><td>"; echo $aInt->lang("fields", "username"); echo ": "; echo "<s"; echo "elect name=\"username\"><option value=\"\">Any</option>"; $result = select_query("tblactivitylog", "DISTINCT user", "", "user", "ASC"); while ($data = mysql_fetch_array($result)) {
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Configure Domain Registrars"); $aInt->title = $aInt->lang("domainregistrars", "title"); $aInt->sidebar = "config"; $aInt->icon = "domains"; $aInt->helplink = "Domain Registrars"; $aInt->requiredFiles(array("registrarfunctions", "modulefunctions")); if ($action == "save") { check_token("WHMCS.admin.default"); $module = $_GET['module']; unset($_POST['token']); unset($_POST['save']); if ($module) { delete_query("tblregistrars", array("registrar" => $module)); foreach ($_POST as $key => $value) { insert_query("tblregistrars", array("registrar" => $module, "setting" => $key, "value" => encrypt(html_entity_decode(trim($value))))); } }
<?php /** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Configure Administrators"); $aInt->title = $aInt->lang("administrators", "title"); $aInt->sidebar = "config"; $aInt->icon = "admins"; $aInt->helplink = "Administrators"; $validate = new WHMCS_Validate(); if ($action == "save") { check_token("WHMCS.admin.default"); $auth = new WHMCS_Auth(); $auth->getInfobyID(WHMCS_Session::get("adminid")); if (!$auth->comparePassword($whmcs->get_req_var("confirmpassword"))) { $_ADMINLANG['administrators']['confirmexistingpw'] = "You must confirm your existing administrator password"; $validate->addError(array("administrators", "confirmexistingpw")); } else { $validate->validate("required", "firstname", array("administrators", "namerequired")); if ($validate->validate("required", "email", array("administrators", "emailerror"))) { $validate->validate("email", "email", array("administrators", "emailinvalid"));