예제 #1
0
<?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");
예제 #2
0
<?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);
예제 #3
0
 *
 **/
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/");
예제 #4
0
<?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";
$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";
예제 #5
0
<?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'];
예제 #6
0
<?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("Manage Network Issues");
$aInt->title = "Network Issues";
$aInt->sidebar = "support";
$aInt->icon = "networkissues";
$upd = fromMySQLDate(date("Y-m-d H:i:s"), true);
if ($action == "save") {
    check_token("WHMCS.admin.default");
    if (!$startdate) {
        $startdate = $upd;
    }
    $errormessage = "";
    if (!$description) {
        $errormessage = "A description of the issue is required";
    }
    if (!$startdate) {
        $errormessage = "The start date is required";
    }
예제 #7
0
<?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 Clients Products/Services");
$aInt->requiredFiles(array("clientfunctions", "gatewayfunctions", "modulefunctions", "customfieldfunctions", "configoptionsfunctions", "invoicefunctions", "processinvoices"));
$aInt->inClientsProfile = true;
$id = (int) $whmcs->get_req_var("id");
$hostingid = (int) $whmcs->get_req_var("hostingid");
$userid = (int) $whmcs->get_req_var("userid");
$aid = $whmcs->get_req_var("aid");
$action = $whmcs->get_req_var("action");
$modop = $whmcs->get_req_var("modop");
if ($modop) {
    checkPermission("Perform Server Operations");
}
if (!$id && $hostingid) {
    $id = $hostingid;
}
if (!$userid && !$id) {
    $userid = get_query_val("tblclients", "id", "", "id", "ASC", "0,1");
예제 #8
0
<?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 Clients Domains", false);
$aInt->requiredFiles(array("clientfunctions", "domainfunctions", "gatewayfunctions", "registrarfunctions"));
$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) {
예제 #9
0
<?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()))) {
예제 #10
0
 * @ Release on : 2013-12-24
 * @ Website  : http://www.mtimer.cn
 *
 **/
define("ADMINAREA", true);
require "../init.php";
if ($action == "add") {
    $reqperm = "Add Transaction";
} else {
    if ($action == "edit") {
        $reqperm = "Edit Transaction";
    } else {
        $reqperm = "List Transactions";
    }
}
$aInt = new WHMCS_Admin($reqperm);
$aInt->inClientsProfile = true;
$aInt->requiredFiles(array("gatewayfunctions", "invoicefunctions"));
$aInt->valUserID($userid);
if ($sub == "add") {
    check_token("WHMCS.admin.default");
    if ($invoiceid) {
        $transuserid = get_query_val("tblinvoices", "userid", array("id" => $invoiceid));
        if (!$transuserid) {
            redir("error=invalidinvid");
        } else {
            if ($transuserid != $userid) {
                redir("error=wronguser");
            }
        }
        addInvoicePayment($invoiceid, $transid, $amountin, $fees, $paymentmethod, "", $date);
예제 #11
0
<?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>");
예제 #12
0
<?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("&amp;", $pricingarr);
    $dpnum = 0;
    foreach ($pricingarr as $v) {
        $v = explode("-", $v);
        $v = $v[1];
        if ($v) {
예제 #13
0
<?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 &raquo;</a></div>\n</td>\n<td style=\"width:25";
echo "%;text-align:center;border-right:1px dashed #ccc;padding:20px;\">Step by step walkthrough&#8217;s on all the most common setup &#038; 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 &raquo;</a></div>\n</td>\n<td style=\"width:25%;text-align:center;border-right:1px dashed #ccc;padding:20px;\">Home to a very active ";
예제 #14
0
<?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>";
예제 #15
0
 * @ 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";
if (!$action) {
    $reqperm = "View Billable Items";
} else {
    $reqperm = "Manage Billable Items";
}
$aInt = new WHMCS_Admin($reqperm);
$aInt->inClientsProfile = true;
$aInt->requiredFiles(array("invoicefunctions", "processinvoices", "gatewayfunctions", "clientfunctions"));
if ($action == "getproddesc") {
    $result = select_query("tblproducts", "name,description", array("id" => $id));
    $data = mysql_fetch_array($result);
    echo $data[0];
    if ($data[1]) {
        echo " - " . $data[1];
    }
    exit;
}
if ($action == "getprodprice") {
    if (!$currency) {
        $currency = getCurrency();
        $currency = $currency['id'];
예제 #16
0
<?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 Servers");
$aInt->title = "Servers";
$aInt->sidebar = "config";
$aInt->icon = "servers";
$aInt->helplink = "Servers";
if ($action == "delete") {
    check_token("WHMCS.admin.default");
    $numaccounts = get_query_val("tblhosting", "COUNT(*)", array("server" => $id));
    if (0 < $numaccounts) {
        redir("deleteerror=true");
        exit;
    } else {
        run_hook("ServerDelete", array("serverid" => $id));
        delete_query("tblservers", array("id" => $id));
        redir("deletesuccess=true");
        exit;
    }
예제 #17
0
<?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            &larr;<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&amp;userid=" . $dom['id'] . "&amp;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&amp;userid=" . $dom['id'] . "&amp;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&amp;userid=" . $dom['id'] . "&amp;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&amp;userid=" . $dom['userid'] . "&amp;a=download_1&amp;domainid=" . $dom['id'] . "&amp;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> &#124; " : "") . "<a href=\"addonmodules.php?module=domaincloud&amp;userid=" . $dom['userid'] . "&amp;a=upload_1&amp;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&amp;userid=" . $dom['userid'] . "&amp;a=download_2&amp;domainid=" . $dom['id'] . "&amp;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> &#124; " : "") . "<a href=\"addonmodules.php?module=domaincloud&amp;userid=" . $dom['userid'] . "&amp;a=upload_2&amp;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&amp;userid=" . $dom['userid'] . "&amp;a=download_3&amp;domainid=" . $dom['id'] . "&amp;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> &#124; " : "") . "<a href=\"addonmodules.php?module=domaincloud&amp;userid=" . $dom['userid'] . "&amp;a=upload_3&amp;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&amp;userid=" . $dom['userid'] . "&amp;a=transfer&amp;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";
                }
            }
        }
    }
}
예제 #19
0
<?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;
예제 #20
0
<?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'];
예제 #21
0
        $id = $data['id'];
        $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)) {
예제 #22
0
<?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("Edit Clients Details");
$aInt->requiredFiles(array("clientfunctions"));
$aInt->inClientsProfile = true;
$aInt->valUserID($userid);
if ($action == "save") {
    check_token("WHMCS.admin.default");
    checkPermission("Edit Clients Details");
    if ($subaccount) {
        $subaccount = "1";
        $result = select_query("tblclients", "COUNT(*)", array("email" => $email));
        $data = mysql_fetch_array($result);
        $result = select_query("tblcontacts", "COUNT(*)", array("email" => $email, "id" => array("sqltype" => "NEQ", "value" => $contactid)));
        $data2 = mysql_fetch_array($result);
        if ($data[0] + $data2[0]) {
            $querystring = "";
            foreach ($_REQUEST as $k => $v) {
                if (!is_array($v) && $k != "action") {
예제 #23
0
 *
 * @ 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";
예제 #24
0
<?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";
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'];
예제 #25
0
 * @ 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";
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'];
예제 #26
0
<?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");
예제 #27
0
 *
 * @ 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'];
예제 #28
0
<?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->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>";
예제 #29
0
<?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)))));
        }
    }
예제 #30
0
<?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"));