예제 #1
0
    echo " checked";
}
echo "> <label for=\"taxl2compound\">";
echo $aInt->lang("taxconfig", "compoundtaxdesc");
echo "</label></td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("taxconfig", "deducttaxamount");
echo "</td><td class=\"fieldarea\"><input type=\"checkbox\" name=\"taxinclusivededuct\" id=\"taxinclusivededuct\"";
if ($CONFIG['TaxInclusiveDeduct'] == "on") {
    echo " checked";
}
echo "> <label for=\"taxinclusivededuct\">";
echo $aInt->lang("taxconfig", "deducttaxamountdesc");
echo "</label></td></tr>\n</table>\n<p align=\"center\"><input type=\"submit\" value=\"";
echo $aInt->lang("global", "savechanges");
echo "\" class=\"button\"></p>\n</form>\n\n<br>\n\n";
echo $aInt->Tabs(array($aInt->lang("taxconfig", "level1rules"), $aInt->lang("taxconfig", "level2rules"), $aInt->lang("taxconfig", "addnewrule")));
if ($validationerror) {
    $jquerycode = "\$(\".tab\").removeClass(\"tabselected\");\$(\".tabbox\").hide();\$(\"#tab2\").addClass(\"tabselected\");\$(\"#tab2box\").show();";
}
echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n";
$aInt->sortableTableInit("nopagination");
$tabledata = "";
$result = select_query("tbltax", "", array("level" => "1"), "state", "ASC");
while ($data = mysql_fetch_array($result)) {
    $id = $data['id'];
    $name = $data['name'];
    $state = $data['state'];
    $country = $data['country'];
    $taxrate = $data['taxrate'];
    if ($state == "") {
        $state = $aInt->lang("taxconfig", "taxappliesanystate");
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";
                }
            }
        }
    }
}
예제 #3
0
     $visitorstype = $visitorstype == "greater" ? ">" : "<";
     $query .= " AND visitors " . $visitorstype . " '" . db_escape_string($visitors) . "'";
 }
 if ($balance) {
     $balancetype = $balancetype == "greater" ? ">" : "<";
     $query .= " AND balance " . $balancetype . " '" . db_escape_string($balance) . "'";
 }
 if ($withdrawn) {
     $withdrawntype = $withdrawntype == "greater" ? ">" : "<";
     $query .= " AND withdrawn " . $withdrawntype . " '" . db_escape_string($withdrawn) . "'";
 }
 $result = full_query("SELECT COUNT(tblaffiliates.id) " . $query);
 $data = mysql_fetch_array($result);
 $numrows = $data[0];
 $aInt->deleteJSConfirm("doDelete", "affiliates", "deletesure", "affiliates.php?sub=delete&ide=");
 echo $aInt->Tabs(array($aInt->lang("global", "searchfilter")), true);
 echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form action=\"";
 echo $PHP_SELF;
 echo "\" method=\"get\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
 echo $aInt->lang("fields", "clientname");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"client\" size=\"25\" value=\"";
 echo $client;
 echo "\"></td><td width=\"10%\" class=\"fieldlabel\">";
 echo $aInt->lang("fields", "balance");
 echo "</td><td class=\"fieldarea\">";
 echo "<s";
 echo "elect name=\"balancetype\"><option value=\"greater\">";
 echo $aInt->lang("affiliates", "greaterthan");
 echo "<option>";
 echo $aInt->lang("affiliates", "lessthan");
 echo "</select> <input type=\"text\" name=\"balance\" size=\"5\" value=\"";
예제 #4
0
define("ADMINAREA", true);
require "../init.php";
$aInt = new WHMCS_Admin("View Cancellation Requests");
$aInt->title = $aInt->lang("clients", "cancelrequests");
$aInt->sidebar = "clients";
$aInt->icon = "cancelrequests";
$aInt->helplink = "Cancellation Requests";
if ($action == "delete") {
    check_token("WHMCS.admin.default");
    delete_query("tblcancelrequests", array("id" => $id));
    redir();
    exit;
}
$aInt->deleteJSConfirm("doDelete", "clients", "cancelrequestsdelete", "?action=delete&id=");
ob_start();
echo $aInt->Tabs(array("Search/Filter"), true);
echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form action=\"";
echo $PHP_SELF;
echo "\" method=\"get\"><input type=\"hidden\" name=\"filter\" value=\"true\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
echo $aInt->lang("fields", "reason");
echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"reason\" size=\"40\" value=\"";
echo $reason;
echo "\" /></td><td width=\"15%\" class=\"fieldlabel\">";
echo $aInt->lang("fields", "client");
echo "</td><td class=\"fieldarea\">";
echo $aInt->clientsDropDown($userid, "", "userid", true);
echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "domain");
echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"domain\" size=\"40\" value=\"";
echo $domain;
echo "\" /></td><td class=\"fieldlabel\">";
예제 #5
0
    exit;
}
ob_start();
if (!$action) {
    if ($added) {
        infoBox($aInt->lang("transactions", "transactionadded"), $aInt->lang("transactions", "transactionaddedinfo"));
    }
    if ($saved) {
        infoBox($aInt->lang("transactions", "transactionupdated"), $aInt->lang("transactions", "transactionupdatedinfo"));
    }
    if ($deleted) {
        infoBox($aInt->lang("transactions", "transactiondeleted"), $aInt->lang("transactions", "transactiondeletedinfo"));
    }
    echo $infobox;
    $jscode = "function doDelete(id) {\n    if (confirm(\"" . $aInt->lang("transactions", "deletesure") . "\")) {\n        window.location='" . $_SERVER['PHP_SELF'] . "?action=delete&id='+id+'" . generate_token("link") . "';\n    }\n}\n";
    echo $aInt->Tabs(array($aInt->lang("global", "searchfilter"), $aInt->lang("transactions", "add")), true);
    if (!count($_REQUEST)) {
        $within = $_REQUEST['within'] = "month";
    }
    echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form method=\"post\" action=\"transactions.php\"><input type=\"hidden\" name=\"filter\" value=\"true\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
    echo $aInt->lang("transactions", "show");
    echo "</td><td class=\"fieldarea\">";
    echo "<s";
    echo "elect name=\"show\">\n<option value=\"\">";
    echo $aInt->lang("transactions", "allactivity");
    echo "</option>\n<option value=\"received\"";
    if ($_REQUEST['show'] == "received") {
        echo " SELECTED";
    }
    echo ">";
    echo $aInt->lang("transactions", "preceived");
예제 #6
0
if ($action == "delete") {
    check_token("WHMCS.admin.default");
    delete_query("tblbannedemails", array("id" => $id));
    redir("delete=true");
    exit;
}
ob_start();
if ($success) {
    infoBox($aInt->lang("bans", "emailaddsuccess"), $aInt->lang("bans", "emailaddsuccessinfo"));
}
if ($delete) {
    infoBox($aInt->lang("bans", "emaildelsuccess"), $aInt->lang("bans", "emaildelsuccessinfo"));
}
echo $infobox;
$aInt->deleteJSConfirm("doDelete", "bans", "emaildelsure", "?action=delete&id=");
echo $aInt->Tabs(array($aInt->lang("global", "add")), true);
echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form method=\"post\" action=\"";
echo $PHP_SELF;
echo "\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
echo $aInt->lang("fields", "email");
echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"email\" size=\"50\"> (";
echo $aInt->lang("bans", "onlydomain");
echo ")</td></tr>\n</table>\n\n<img src=\"images/spacer.gif\" height=\"10\" width=\"1\"><br>\n<div align=\"center\"><input type=\"submit\" value=\"";
echo $aInt->lang("bans", "addbannedemail");
echo "\" class=\"button\"></div>\n\n</form>\n\n  </div>\n</div>\n\n<br>\n\n";
$aInt->sortableTableInit("nopagination");
$result = select_query("tblbannedemails", "", "", "domain", "ASC");
while ($data = mysql_fetch_array($result)) {
    $id = $data['id'];
    $domain = $data['domain'];
    $count = $data['count'];
예제 #7
0
    }
    redir();
    exit;
}
if ($mass_delete) {
    check_token("WHMCS.admin.default");
    foreach ($selids as $id) {
        delete_query("tbltodolist", array("id" => $id));
    }
    redir();
    exit;
}
ob_start();
if ($action == "") {
    $jscode = "function doDelete(id) {\nif (confirm(\"" . addslashes($aInt->lang("todolist", "delsuretodoitem")) . "\")) {\nwindow.location='" . $_SERVER['PHP_SELF'] . "?action=delete&id='+id+'" . generate_token("link") . "';\n}}";
    echo $aInt->Tabs(array($aInt->lang("global", "searchfilter"), $aInt->lang("todolist", "additem")), true);
    echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form method=\"post\" action=\"todolist.php\"><input type=\"hidden\" name=\"filter\" value=\"true\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">Date</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", "duedate");
    echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"duedate\" value=\"";
    echo $duedate;
    echo "\" class=\"datepick\"></td></tr>\n<tr><td class=\"fieldlabel\">Title</td><td class=\"fieldarea\"><input type=\"text\" name=\"title\" size=50 value=\"";
    echo $title;
    echo "\"></td><td class=\"fieldlabel\">";
    echo $aInt->lang("fields", "admin");
    echo "</td><td class=\"fieldarea\">";
    echo "<s";
    echo "elect name=\"admin\"><option value=\"\">Any";
    $result2 = select_query("tbladmins", "id,username", "", "username", "ASC");
    while ($data2 = mysql_fetch_array($result2)) {
예제 #8
0
$supportdepts = getAdminDepartmentAssignments();
ob_start();
$smartyvalues['ticketfilterdata'] = array("view" => $filt->getFromSession("view"), "deptid" => $filt->getFromSession("deptid"), "subject" => $filt->getFromSession("subject"), "email" => $filt->getFromSession("email"));
if (!$action) {
    $smartyvalues['inticketlist'] = true;
    if (!count($supportdepts)) {
        $aInt->gracefulExit($aInt->lang("permissions", "accessdenied") . " - " . $aInt->lang("support", "noticketdepts"));
    }
    $tickets = new WHMCS_Tickets();
    if ($_COOKIE['WHMCSAutoRefresh'] && !$action) {
        $refreshtime = intval($_COOKIE['WHMCSAutoRefresh']) * 60;
        if ($refreshtime && !$disable_auto_ticket_refresh) {
            echo "<meta http-equiv=\"refresh\" content=\"" . $refreshtime . "\">";
        }
    }
    echo $aInt->Tabs(array($aInt->lang("global", "searchfilter"), $aInt->lang("support", "autorefresh")), true);
    $filterops = array("view", "deptid", "client", "subject", "email", "tag");
    $filt->setAllowedVars($filterops);
    $view = $filt->get("view");
    $deptid = $filt->get("deptid");
    $client = $filt->get("client");
    $subject = $filt->get("subject");
    $email = $filt->get("email");
    $tag = $filt->get("tag");
    $filt->store();
    $smartyvalues['ticketfilterdata'] = array("view" => $view, "deptid" => $deptid, "subject" => $subject, "email" => $email);
    echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form action=\"";
    echo $PHP_SELF;
    echo "\" method=\"post\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
    echo $aInt->lang("fields", "status");
    echo "</td><td class=\"fieldarea\">";
 if ($savecat) {
     infoBox($aInt->lang("global", "success"), $aInt->lang("support", "predefsavecat"));
 }
 if ($delete) {
     infoBox($aInt->lang("global", "success"), $aInt->lang("support", "predefdelete"));
 }
 if ($deletecat) {
     infoBox($aInt->lang("global", "success"), $aInt->lang("support", "predefdeletecat"));
 }
 echo $infobox;
 if ($catid) {
     $catid = get_query_val("tblticketpredefinedcats", "id", array("id" => $catid));
 }
 $aInt->deleteJSConfirm("doDelete", "support", "predefdelsure", $_SERVER['PHP_SELF'] . "?catid=" . $catid . "&sub=delete&id=");
 $aInt->deleteJSConfirm("doDeleteCat", "support", "predefdelcatsure", $_SERVER['PHP_SELF'] . "?catid=" . $catid . "&sub=deletecategory&id=");
 echo $aInt->Tabs(array($aInt->lang("support", "addcategory"), $aInt->lang("support", "addpredef"), $aInt->lang("global", "searchfilter")), true);
 echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form method=\"post\" action=\"";
 echo $PHP_SELF;
 echo "?catid=";
 echo $catid;
 echo "&addcategory=true\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
 echo $aInt->lang("support", "catname");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"catname\" size=\"40\"></tr>\n</table>\n<img src=\"images/spacer.gif\" width=\"1\" height=\"10\"><br>\n<div align=\"center\"><input type=\"submit\" value=\"";
 echo $aInt->lang("support", "addcategory");
 echo "\" class=\"button\"></div>\n</form>\n\n  </div>\n</div>\n<div id=\"tab1box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n";
 if ($catid != "") {
     echo "<form method=\"post\" action=\"";
     echo $PHP_SELF;
     echo "?catid=";
     echo $catid;
     echo "&addreply=true\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
예제 #10
0
releaseSession();
ob_start();
$jquerycode .= "\$(\"#removewhitelistedip\").click(function () {\n    var removeip = \$('#whitelistedips option:selected;').text();\n    \$('#whitelistedips option:selected').remove();\n    \$.post(\"configgeneral.php\", { action: \"deletewhitelistip\", removeip: removeip, token: '" . generate_token("plain") . "'});\n    return false;\n});\nfunction addwhitelistedip(ipaddress,note) {\n    \$('#whitelistedips').append('<option>'+ipaddress+' - '+note+'</option>');\n    \$.post(\"configgeneral.php\", { action: \"addwhitelistip\", ipaddress: ipaddress, notes: note, token: '" . generate_token("plain") . "'});\n    \$('#addwhitelistip').dialog('close');\n    return false;\n};\n\$(\"#removeapiip\").click(function () {\n    var removeip = \$('#apiallowedips option:selected;').text();\n    \$('#apiallowedips option:selected').remove();\n    \$.post(\"configgeneral.php\", { action: \"deleteapiip\", removeip: removeip, token: '" . generate_token("plain") . "'});\n    return false;\n});\nfunction addapiip(ipaddress,note) {\n    \$('#apiallowedips').append('<option>'+ipaddress+' - '+note+'</option>');\n    \$.post(\"configgeneral.php\", { action: \"addapiip\", ipaddress: ipaddress, notes: note, token: '" . generate_token("plain") . "'});\n    \$('#addapiip').dialog('close');\n    return false;\n};\n";
echo $aInt->jqueryDialog("addwhitelistip", $aInt->lang("general", "addwhitelistedip"), "<table><tr><td>" . $aInt->lang("fields", "ipaddress") . ":</td><td><input type=\"text\" id=\"ipaddress\" size=\"20\" /></td></tr><tr><td>" . $aInt->lang("fields", "reason") . ":</td><td><input type=\"text\" id=\"notes\" size=\"40\" /></td></tr></table>", array($aInt->lang("general", "addip") => "addwhitelistedip(\$(\"#ipaddress\").val(),\$(\"#notes\").val());", $aInt->lang("global", "cancel") => ""), "", "350", "");
echo $aInt->jqueryDialog("addapiip", $aInt->lang("general", "addwhitelistedip"), "<table><tr><td>" . $aInt->lang("fields", "ipaddress") . ":</td><td><input type=\"text\" id=\"ipaddress2\" size=\"20\" /></td></tr><tr><td>" . $aInt->lang("fields", "notes") . ":</td><td><input type=\"text\" id=\"notes2\" size=\"40\" /></td></tr></table>", array($aInt->lang("general", "addip") => "addapiip(\$(\"#ipaddress2\").val(),\$(\"#notes2\").val());", $aInt->lang("global", "cancel") => ""), "", "350", "");
if ($success) {
    infoBox($aInt->lang("general", "changesuccess"), $aInt->lang("general", "changesuccessinfo"));
    echo $infobox;
}
$result = select_query("tblconfiguration", "", "");
while ($data = mysql_fetch_array($result)) {
    $setting = $data['setting'];
    $value = $data['value'];
    $CONFIG["" . $setting] = "" . $value;
}
echo $aInt->Tabs(array($aInt->lang("general", "tabgeneral"), $aInt->lang("general", "tablocalisation"), $aInt->lang("general", "tabordering"), $aInt->lang("general", "tabdomains"), $aInt->lang("general", "tabmail"), $aInt->lang("general", "tabsupport"), $aInt->lang("general", "tabinvoices"), $aInt->lang("general", "tabcredit"), $aInt->lang("general", "tabaffiliates"), $aInt->lang("general", "tabsecurity"), $aInt->lang("general", "tabsocial"), $aInt->lang("general", "tabother")));
echo "\n<form method=\"post\" action=\"";
echo $PHP_SELF;
echo "?action=save\" name=\"configfrm\">\n\n<!-- General -->\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "companyname");
echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"companyname\" value=\"";
echo $CONFIG['CompanyName'];
echo "\" size=35> ";
echo $aInt->lang("general", "companynameinfo");
echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "email");
echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"email\" value=\"";
echo $CONFIG['Email'];
echo "\" size=35> ";
echo $aInt->lang("general", "emailaddressinfo");
echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
예제 #11
0
     $catparentid = $data['parentid'];
     $catname = $data['name'];
     $catbreadcrumbnav = " > <a href=\"" . $PHP_SELF . "?catid=" . $catid . "\">" . $catname . "</a>";
     while ($catparentid != "0") {
         $result = select_query("tbldownloadcats", "", array("id" => $catparentid));
         $data = mysql_fetch_array($result);
         $cattempid = $data['id'];
         $catparentid = $data['parentid'];
         $catname = $data['name'];
         $catbreadcrumbnav = " > <a href=\"" . $PHP_SELF . "?catid=" . $cattempid . "\">" . $catname . "</a>" . $catbreadcrumbnav;
     }
     $breadcrumbnav .= $catbreadcrumbnav;
 }
 $aInt->deleteJSConfirm("doDelete", "support", "dldelsure", $_SERVER['PHP_SELF'] . "?catid=" . $catid . "&sub=delete&id=");
 $aInt->deleteJSConfirm("doDeleteCat", "support", "dlcatdelsure", $_SERVER['PHP_SELF'] . "?catid=" . $catid . "&sub=deletecategory&id=");
 echo $aInt->Tabs(array($aInt->lang("support", "addcategory"), $aInt->lang("support", "adddownload")), true);
 echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form method=\"post\" action=\"";
 echo $PHP_SELF;
 echo "?catid=";
 echo $catid;
 echo "&addcategory=true\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
 echo $aInt->lang("support", "catname");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"catname\" size=\"40\"> <input type=\"checkbox\" name=\"hidden\"> ";
 echo $aInt->lang("support", "ticktohide");
 echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "description");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"description\" size=\"100\"></td></tr>\n</table>\n<img src=\"images/spacer.gif\" width=\"1\" height=\"10\"><br>\n<div align=\"center\"><input type=\"submit\" value=\"";
 echo $aInt->lang("support", "addcategory");
 echo "\" class=\"button\"></div>\n</form>\n\n  </div>\n</div>\n<div id=\"tab1box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n";
 if ($catid != "") {
     echo "<form method=\"post\" action=\"";
예제 #12
0
     $noautoresponder = $data['noautoresponder'];
     $hidden = $data['hidden'];
     $host = $data['host'];
     $port = $data['port'];
     $login = $data['login'];
     $password = decrypt($data['password']);
 }
 $jscode = "function doDelete(id) {\nif (confirm(\"" . addslashes($aInt->lang("supportticketdepts", "delsurefielddata")) . "\")) {\nwindow.location='" . $_SERVER['PHP_SELF'] . "?sub=deletecustomfield&id='+id+'" . generate_token("link") . "';\n}}";
 echo "\n<h2>";
 echo $aInt->lang("supportticketdepts", "editdept");
 echo "</h2>\n\n<form method=\"post\" action=\"";
 echo $PHP_SELF;
 echo "?sub=save\">\n<input type=\"hidden\" name=\"id\" value=\"";
 echo $id;
 echo "\">\n\n";
 echo $aInt->Tabs(array("Details", "Custom Fields"));
 echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"20%\" class=\"fieldlabel\">";
 echo $aInt->lang("supportticketdepts", "deptname");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"name\" size=\"25\" value=\"";
 echo $name;
 echo "\"></td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "description");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"description\" size=\"50\" value=\"";
 echo $description;
 echo "\"></td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("supportticketdepts", "deptemail");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"email\" size=\"40\" value=\"";
 echo $email;
 echo "\"></td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("supportticketdepts", "assignedadmins");
 echo "</td><td class=\"fieldarea\">\n";
예제 #13
0
echo "?action=add\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"20%\" class=\"fieldlabel\"><b>";
echo $aInt->lang("global", "add");
echo ":</b> ";
echo $aInt->lang("stspamcontrol", "typeval");
echo "</td><td class=\"fieldarea\">";
echo "<s";
echo "elect name=\"type\"><option value=\"sender\">";
echo $aInt->lang("stspamcontrol", "sender");
echo "</option><option value=\"subject\">";
echo $aInt->lang("stspamcontrol", "subject");
echo "</option><option value=\"phrase\">";
echo $aInt->lang("stspamcontrol", "phrase");
echo "</option></select> <input type=\"text\" name=\"spamvalue\" size=\"50\"> <input type=\"submit\" value=\"";
echo $aInt->lang("stspamcontrol", "addnewsc");
echo "\" class=\"button\"></td></tr>\n</table>\n</form>\n\n<br>\n\n";
echo $aInt->Tabs(array($aInt->lang("stspamcontrol", "tab1"), $aInt->lang("stspamcontrol", "tab2"), $aInt->lang("stspamcontrol", "tab3")));
$nums = array("0", "1", "2");
foreach ($nums as $num) {
    echo "<div id=\"tab" . $num . "box\" class=\"tabbox\">\n  <div id=\"tab_content\">";
    if ($num == 0) {
        $filtertype = "sender";
    } else {
        if ($num == 1) {
            $filtertype = "subject";
        } else {
            if ($num == 2) {
                $filtertype = "phrase";
            }
        }
    }
    $result = select_query("tblticketspamfilters", "COUNT(*)", array("type" => $filtertype));
예제 #14
0
 $retired = $data['retired'];
 $freedomainpaymentterms = explode(",", $freedomainpaymentterms);
 $freedomaintlds = explode(",", $freedomaintlds);
 $overagesenabled = explode(",", $overagesenabled);
 $upgradepackages = unserialize($upgradepackages);
 $downloads = unserialize($downloads);
 $order = $data['order'];
 echo "<script type=\"text/javascript\" src=\"../includes/jscript/jquerylq.js\"></script>\n<script type=\"text/javascript\" src=\"../includes/jscript/jqueryFileTree.js\"></script>\n<link href=\"../includes/jscript/css/jqueryFileTree.css\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\" />\n\n<h2>Edit Product</h2>\n<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "?action=save&id=" . $id;
 echo "\" name=\"packagefrm\">";
 $jscode = "function deletecustomfield(id) {\nif (confirm(\"Are you sure you want to delete this field and ALL DATA associated with it?\")) {\nwindow.location='" . $_SERVER['PHP_SELF'] . "?action=edit&id=" . $id . "&tab=3&sub=deletecustomfield&fid='+id+'" . generate_token("link") . "';\n}}\nfunction deleteoption(id) {\nif (confirm(\"Are you sure you want to delete this product configuration?\")) {\nwindow.location='" . $_SERVER['PHP_SELF'] . "?action=edit&id=" . $id . "&tab=4&sub=deleteoption&confid='+id+'" . generate_token("link") . "';\n}}";
 $jquerycode = "\$('#productdownloadsbrowser').fileTree({ root: '0', script: 'configproducts.php?action=getdownloads" . generate_token("link") . "', folderEvent: 'click', expandSpeed: 1, collapseSpeed: 1 }, function(file) {\n    \$.post(\"configproducts.php?action=managedownloads&id=" . $id . generate_token("link") . "&adddl=\"+file, function(data) {\n        \$(\"#productdownloadslist\").html(data);\n    });\n});\n\$(\".removedownload\").livequery(\"click\", function(event) {\n    var dlid = \$(this).attr(\"rel\");\n    \$.post(\"configproducts.php?action=managedownloads&id=" . $id . generate_token("link") . "&remdl=\"+dlid, function(data) {\n        \$(\"#productdownloadslist\").html(data);\n    });\n});\n\$(\"#showquickupload\").click(\n    function() {\n        \$(\"#quickupload\").dialog(\"open\");\n        \$(\"#quickupload\").load(\"configproducts.php?action=quickupload&id=" . $id . generate_token("link") . "\");\n        return false;\n    }\n);\n\$(\"#showadddownloadcat\").click(\n    function() {\n        \$(\"#adddownloadcat\").dialog(\"open\");\n        \$(\"#adddownloadcat\").load(\"configproducts.php?action=adddownloadcat&id=" . $id . generate_token("link") . "\");\n        return false;\n    }\n);\n";
 if ($success) {
     infoBox($aInt->lang("global", "changesuccess"), $aInt->lang("global", "changesuccessdesc"));
 }
 echo $infobox;
 echo $aInt->Tabs(array($aInt->lang("products", "tabsdetails"), $aInt->lang("global", "pricing"), $aInt->lang("products", "tabsmodulesettings"), $aInt->lang("setup", "customfields"), $aInt->lang("setup", "configoptions"), $aInt->lang("products", "tabsupgrades"), $aInt->lang("products", "tabsfreedomain"), $aInt->lang("setup", "other"), $aInt->lang("products", "tabslinks")));
 echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "producttype");
 echo "</td><td class=\"fieldarea\">";
 echo "<s";
 echo "elect name=\"type\" onChange=\"doFieldUpdate()\"><option value=\"hostingaccount\"";
 if ($type == "hostingaccount") {
     echo " SELECTED";
 }
 echo ">";
 echo $aInt->lang("products", "hostingaccount");
 echo "<option value=\"reselleraccount\"";
 if ($type == "reselleraccount") {
     echo " SELECTED";
 }
 echo ">";
예제 #15
0
 $pageObj = new WHMCS_Pagination($name, $orderby, $sort);
 $pageObj->digestCookieData();
 $tbl = new WHMCS_ListTable($pageObj);
 $tbl->setColumns(array("checkall", array("id", $aInt->lang("fields", "invoicenum")), array("clientname", $aInt->lang("fields", "clientname")), array("date", $aInt->lang("fields", "invoicedate")), array("duedate", $aInt->lang("fields", "duedate")), array("total", $aInt->lang("fields", "total")), array("paymentmethod", $aInt->lang("fields", "paymentmethod")), array("status", $aInt->lang("fields", "status")), "", ""));
 $invoicesModel = new WHMCS_Invoices($pageObj);
 if (checkPermission("View Income Totals", true)) {
     $invoicetotals = $invoicesModel->getInvoiceTotals();
     if (count($invoicetotals)) {
         echo "<div class=\"contentbox\" style=\"font-size:18px;\">";
         foreach ($invoicetotals as $vals) {
             echo "<b>" . $vals['currencycode'] . "</b> " . $aInt->lang("status", "paid") . ": <span class=\"textgreen\"><b>" . $vals['paid'] . "</b></span> " . $aInt->lang("status", "unpaid") . ": <span class=\"textred\"><b>" . $vals['unpaid'] . "</b></span> " . $aInt->lang("status", "overdue") . ": <span class=\"textblack\"><b>" . $vals['overdue'] . "</b></span><br />";
         }
         echo "</div><br />";
     }
 }
 echo $aInt->Tabs(array($aInt->lang("global", "searchfilter")), true);
 $clientid = $filters->get("clientid");
 $invoicenum = $filters->get("invoicenum");
 echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<!-- Filter -->\n<form action=\"";
 echo $PHP_SELF;
 echo "\" method=\"post\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
 echo $aInt->lang("fields", "clientname");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"clientname\" size=\"25\" value=\"";
 echo $clientname = $filters->get("clientname");
 echo "\"></td><td width=\"15%\" class=\"fieldlabel\">";
 echo $aInt->lang("fields", "invoicedate");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"invoicedate\" size=\"15\" value=\"";
 echo $invoicedate = $filters->get("invoicedate");
 echo "\" class=\"datepick\"></td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "lineitem");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"lineitem\" size=\"40\" value=\"";
예제 #16
0
    }
    $filters->redir();
}
if ($whmcs->get_req_var("sendmessage")) {
    check_token("WHMCS.admin.default");
    $clientslist = "";
    $result = select_query("tblorders", "DISTINCT userid", "id IN (" . db_build_in_array($selectedorders) . ")");
    while ($data = mysql_fetch_array($result)) {
        $clientslist .= "selectedclients[]=" . $data['userid'] . "&";
    }
    redir("type=general&multiple=true&" . substr($clientslist, 0, 0 - 1), "sendmessage.php");
}
ob_start();
if (!$action) {
    releaseSession();
    echo $aInt->Tabs(array($aInt->lang("global", "searchfilter")), true);
    $client = $filters->get("client");
    $clientid = $filters->get("clientid");
    if (!$clientid && $client) {
        $clientid = $client;
    }
    $clientname = $filters->get("clientname");
    echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form action=\"";
    echo $PHP_SELF;
    echo "\" method=\"post\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
    echo $aInt->lang("fields", "orderid");
    echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"orderid\" size=\"8\" value=\"";
    echo $orderid = $filters->get("orderid");
    echo "\"></td><td width=\"15%\" class=\"fieldlabel\">";
    echo $aInt->lang("fields", "client");
    echo "</td><td class=\"fieldarea\">";
예제 #17
0
     $catparentid = $data['parentid'];
     $catname = $data['name'];
     $catbreadcrumbnav = " > <a href=\"" . $PHP_SELF . "?catid=" . $catid . "\">" . $catname . "</a>";
     while ($catparentid != "0") {
         $result = select_query("tblknowledgebasecats", "", array("id" => $catparentid));
         $data = mysql_fetch_array($result);
         $cattempid = $data['id'];
         $catparentid = $data['parentid'];
         $catname = $data['name'];
         $catbreadcrumbnav = " > <a href=\"" . $PHP_SELF . "?catid=" . $cattempid . "\">" . $catname . "</a>" . $catbreadcrumbnav;
     }
     $breadcrumbnav .= $catbreadcrumbnav;
 }
 $aInt->deleteJSConfirm("doDelete", "support", "kbdelsure", $_SERVER['PHP_SELF'] . "?catid=" . $catid . "&action=delete&id=");
 $aInt->deleteJSConfirm("doDeleteCat", "support", "kbcatdelsure", $_SERVER['PHP_SELF'] . "?catid=" . $catid . "&action=deletecategory&id=");
 echo $aInt->Tabs(array($aInt->lang("support", "addcategory"), $aInt->lang("support", "addarticle")), true);
 echo "\n<div id=\"tab0box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n<form method=\"post\" action=\"";
 echo $PHP_SELF;
 echo "?catid=";
 echo $catid;
 echo "&addcategory=true\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">";
 echo $aInt->lang("support", "catname");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"catname\" size=\"40\"> <input type=\"checkbox\" name=\"hidden\"> ";
 echo $aInt->lang("support", "ticktohide");
 echo "</td></tr>\n<tr><td class=\"fieldlabel\">";
 echo $aInt->lang("fields", "description");
 echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"description\" size=\"100\"></td></tr>\n\n</table>\n<img src=\"images/spacer.gif\" width=\"1\" height=\"10\"><br>\n<div align=\"center\"><input type=\"submit\" value=\"";
 echo $aInt->lang("support", "addcategory");
 echo "\" class=\"button\"></div>\n</form>\n\n  </div>\n</div>\n<div id=\"tab1box\" class=\"tabbox\">\n  <div id=\"tab_content\">\n\n";
 if ($catid != "") {
     echo "<form method=\"post\" action=\"";