$rows = @mysql_num_rows($tmp); $flag = 1; if ($rows >= 1 || strlen($_POST['lavida_id']) > 20 || strlen($_POST['lavida_id']) < 3) { alertBox("<strong>Error!</strong> User ID '{$_POST['lavida_id']}' is invalid!"); } else { if ($_POST['lavida_pw'] != $_POST['lavida_pw_confirm']) { alertBox("<strong>Error!</strong> Check your password!"); } else { if (!is_valid_user_name($user_id)) { alertBox("<strong>Error!</strong> User ID '{$_POST['lavida_id']}' is invalid!"); } else { $pw = md5($_POST['lavida_pw']); $sql = "insert into `users` (`user_id`,`password`,`ip`,`accesstime`) values('{$_POST['lavida_id']}','{$pw}','{$_SERVER['REMOTE_ADDR']}',now())"; $tmp = @mysql_query($sql); if ($tmp) { infoBox("<strong>Success</strong> Register Complete!"); } else { alertBox("<strong>Error</strong> Contact Administrator!"); } } } } } else { ?> <form action="" method="post" class="form-horizontal" id="myform"> <legend>Welcome to Lavida Online Judge!</legend> <input type="hidden" name="send" value="ok"> <div class="control-group"> <label class="control-label" for="lavida_id">ID</label> <div class="controls"> <input type="text" name="lavida_id" id="lavida_id" tabindex="1">
} else { if (!trim($email) && !$cccheck) { infoBox($aInt->lang("global", "validationerror"), $aInt->lang("clients", "invalidemail"), "error"); } else { if (!$cccheck && trim($email)) { $emaildomain = explode("@", $email, 2); $emaildomain = $emaildomain[1]; if (!preg_match('/^([a-zA-Z0-9&\'.])+([\\.a-zA-Z0-9+_-])*@([a-zA-Z0-9_-])+(\\.[a-zA-Z0-9_-]+)*\\.([a-zA-Z]{2,6})$/', $email)) { $errormessage .= "<li>" . $_LANG['clientareaerroremailinvalid']; infoBox($aInt->lang("global", "validationerror"), $aInt->lang("clients", "invalidemail"), "error"); } else { $query = "subaccount=1 AND email='" . mysql_real_escape_string($email) . "'"; $result = select_query("tblcontacts", "COUNT(*)", $query); $data = mysql_fetch_array($result); if ($data[0]) { infoBox($aInt->lang("clients", "duplicateemail"), $aInt->lang("clients", "duplicateemailexp"), "error"); } } } if (!$infobox) { $_SESSION['currency'] = $currency; $userid = addClient($firstname, $lastname, $companyname, $email, $address1, $address2, $city, $state, $postcode, $country, $phonenumber, $password, $securityqid, $securityqans, $sendemail, array("notes" => $notes, "status" => $status, "credit" => $credit, "taxexempt" => $taxexempt, "latefeeoveride" => $latefeeoveride, "overideduenotices" => $overideduenotices, "language" => $language, "billingcid" => $billingcid, "lastlogin" => "00000000000000", "groupid" => $groupid, "separateinvoices" => $separateinvoices, "disableautocc" => $disableautocc, "defaultgateway" => $paymentmethod)); unset($_SESSION['uid']); unset($_SESSION['upw']); redir("userid=" . $userid, "clientssummary.php"); } } } } releaseSession(); ob_start();
} $result = select_query("tblcurrencies", "id,code", "", "code", "ASC"); $i = 0; while ($currenciesarray[$i] = mysql_fetch_assoc($result)) { ++$i; } array_pop($currenciesarray); ob_start(); if ($activated) { infoBox($aInt->lang("global", "success"), $aInt->lang("gateways", "activatesuccess")); } if ($deactivated) { infoBox($aInt->lang("global", "success"), $aInt->lang("gateways", "deactivatesuccess")); } if ($updated) { infoBox($aInt->lang("global", "success"), $aInt->lang("gateways", "savesuccess")); } echo $infobox; echo "<p>" . $aInt->lang("gateways", "intro") . " <a href=\"http://docs.whmcs.com/Creating_Modules\" target=\"_blank\">http://docs.whmcs.com/Creating_Modules</a></p>"; echo "\n<p>"; echo "<form method=\"post\" action=\"" . $PHP_SELF . "\"><input type=\"hidden\" name=\"action\" value=\"activate\"><b>" . $aInt->lang("gateways", "activatemodule") . ":</b> "; if (0 < count($DisabledGateways)) { $AlphaDisabled = array(); foreach ($DisabledGateways as $modulename) { $AlphaDisabled[$GatewayConfig[$modulename]['FriendlyName']['Value']] = $modulename; } ksort($AlphaDisabled); echo "<select name=\"gateway\">"; foreach ($AlphaDisabled as $displayname => $modulename) { echo "<option value=\"" . $modulename . "\">" . $displayname . "</option>"; }
$affiliatepaytype = $data['affiliatepaytype']; $affiliateonetime = $data['affiliateonetime']; $downloads = $data['downloads']; $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") {
++$i; } $params['transfersecret'] = $_POST['transfersecret']; if (!$ac) { $result = RegRegisterDomain($params); } else { $result = RegTransferDomain($params); } if ($result['error']) { infoBox($aInt->lang("global", "erroroccurred"), $result['error']); echo $infobox; } else { if (!$ac) { infoBox($aInt->lang("global", "success"), $aInt->lang("domains", "regsuccess")); } else { infoBox($aInt->lang("global", "success"), $aInt->lang("domains", "transuccess")); } echo "<br />" . $infobox; echo "\n<p align=\"center\"><input type=\"button\" value=\""; echo $aInt->lang("global", "continue"); echo " >>\" class=\"btn\" onClick=\"window.location='clientsdomains.php?userid="; echo $userid; echo "&domainid="; echo $domainid; echo "'\"></p>\n\n"; if ($sendregisterconfirm == "on") { if ($ac == "") { sendMessage("Domain Registration Confirmation", $domainid); } else { sendMessage("Domain Transfer Initiated", $domainid); }
infoBox($aInt->lang("configservers", "groupdelsuccessful"), $aInt->lang("configservers", "groupdelsuccessfuldesc")); } if ($deleteerror) { infoBox($aInt->lang("configservers", "error"), $aInt->lang("configservers", "errordesc")); } if ($savesuccess) { infoBox($aInt->lang("configservers", "changesuccess"), $aInt->lang("configservers", "changesuccessdesc")); } if ($enablesuccess) { infoBox($aInt->lang("configservers", "enabled"), $aInt->lang("configservers", "enableddesc")); } if ($disablesuccess) { infoBox($aInt->lang("configservers", "disabled"), $aInt->lang("configservers", "disableddesc")); } if ($makedefault) { infoBox($aInt->lang("configservers", "defaultchange"), $aInt->lang("configservers", "defaultchangedesc")); } echo $infobox; $aInt->deleteJSConfirm("doDelete", "configservers", "delserverconfirm", "?action=delete&id="); $aInt->deleteJSConfirm("doDeleteGroup", "configservers", "delgroupconfirm", "?action=deletegroup&id="); echo "\n<p>"; echo $aInt->lang("configservers", "pagedesc"); echo "</p>\n\n<p><B>"; echo $aInt->lang("fields", "options"); echo ":</B> <a href=\""; echo $PHP_SELF; echo "?action=manage\">"; echo $aInt->lang("configservers", "addnewserver"); echo "</a> | <a href=\""; echo $PHP_SELF; echo "?action=managegroup\">";
if ($open_row['server']) { $open_row->type .= " (" . $open_row['server'] . ")"; } if ($open_row['status'] == "Resolved") { $actions = "<a href=\"" . $_SERVER['PHP_SELF'] . "?action=reopen&id=" . $open_row['id'] . generate_token("link") . "\">Reopen</a>"; } else { $actions = "<a href=\"" . $_SERVER['PHP_SELF'] . "?action=close&id=" . $open_row['id'] . generate_token("link") . "\">Close</a>"; } $tabledata[] = array("<a href=\"" . $_SERVER['PHP_SELF'] . "?action=manage&id=" . $open_row['id'] . "\">" . $open_row['title'] . "</a>", $open_row['type'], $open_row['priority'], $open_row['status'], fromMySQLDate($open_row['startdate'], true), $enddate, $actions, "<a href=\"#\" onClick=\"doDelete('" . $open_row['id'] . "');return false\"><img src=\"images/delete.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Delete\"></a>"); } } echo $aInt->sortableTable(array("Title", "Type", "Priority", "Status", "Start Date", "End Date", " ", ""), $tabledata); } else { if ($action == "manage") { if ($errormessage) { infoBox("Validation Failed", $errormessage); echo $infobox; } echo "<script type=\"text/javascript\" src=\"../includes/jscript/jquery-ui-timepicker-addon.js\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../includes/jscript/css/jquery-ui-timepicker-addon.css\" />\n<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "?action=save\">"; if ($id) { $pagetitle = "Modify Existing Issue"; $result = select_query("tblnetworkissues", "", array("id" => $id)); $data = mysql_fetch_array($result); $title = $data['title']; $startdate = $data['startdate']; $enddate = $data['enddate']; $description = $data['description']; $type = $data['type']; $affecting = $data['affecting']; $server = $data['server']; $priority = $data['priority'];
} ?> </ul> </div><!--/.nav-collapse --> </div> </div> </div> <div class="container"> <!--require start--> <?php $msg = file_get_contents("admin/msg.txt"); if (strlen($msg) > 4) { infoBox($msg); } ?> <?php include_once $now_page; ?> <!--require end--> <hr/> <!--footer--> <div class="row-fluid"> <center> <a href="https://github.com/flrngel/LavidaOnlineJudge.git" target="_blank"><img src="/image/github.png"></a> </center>
define("ADMINAREA", true); require "../init.php"; $aInt = new WHMCS_Admin("Database Status"); $aInt->title = $aInt->lang("utilities", "dbstatus"); $aInt->sidebar = "utilities"; $aInt->icon = "dbbackups"; $aInt->requiredFiles(array("backupfunctions")); if ($optimize) { check_token("WHMCS.admin.default"); $alltables = full_query("SHOW TABLES"); while ($table = mysql_fetch_assoc($alltables)) { foreach ($table as $db => $tablename) { full_query("OPTIMIZE TABLE '" . $tablename . "'"); } } infoBox($aInt->lang("system", "optcomplete"), $aInt->lang("system", "optcompleteinfo")); } if ($dlbackup) { check_token("WHMCS.admin.default"); $db_name = ""; require ROOTDIR . "/configuration.php"; set_time_limit(0); header("Content-type: application/octet-stream"); header("Content-disposition: attachment; filename=" . $db_name . "_backup_" . date("Ymd_His") . ".zip"); echo generateBackup(); } ob_start(); echo $infobox; echo "\n<table width=760 align=center cellspacing=0 cellpadding=0><tr><td width=380 valign=top>\n\n<table bgcolor=#cccccc cellspacing=1 width=370 align=center>\n<tr style=\"text-align:center;font-weight:bold;background-color:#efefef\"><td>"; echo $aInt->lang("fields", "name"); echo "</td><td>";
checkPermission("Delete Transaction"); delete_query("tblaccounts", array("id" => $id)); logActivity("Deleted Transaction - Transaction ID: " . $id); redir("deleted=true"); 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") {
update_query("tblconfiguration", array("value" => $invoicegensemiannually), array("setting" => "CreateInvoiceDaysBeforeSemiAnnually")); update_query("tblconfiguration", array("value" => $invoicegenannually), array("setting" => "CreateInvoiceDaysBeforeAnnually")); update_query("tblconfiguration", array("value" => $invoicegenbiennially), array("setting" => "CreateInvoiceDaysBeforeBiennially")); update_query("tblconfiguration", array("value" => $invoicegentriennially), array("setting" => "CreateInvoiceDaysBeforeTriennially")); update_query("tblconfiguration", array("value" => $autoclientstatuschange), array("setting" => "AutoClientStatusChange")); $renewalstring = ""; foreach ($renewals as $renewal) { $renewalstring .= "" . $renewal . ","; } update_query("tblconfiguration", array("value" => $renewalstring), array("setting" => "DomainRenewalNotices")); redir("success=true"); exit; } ob_start(); if ($success) { infoBox($aInt->lang("automation", "changesuccess"), $aInt->lang("automation", "changesuccessinfo")); echo $infobox; } echo "\n<form method=\"post\" action=\""; echo $PHP_SELF; echo "?sub=save\">\n<p>"; echo $aInt->lang("automation", "croninfo"); echo "</p>\n\n<div class=\"contentbox\">\n"; echo $aInt->lang("automation", "cronphp"); echo ":<br><input type=\"text\" size=\"100\" value=\"php -q "; $adminfolder = $whmcs->get_admin_folder_name(); echo ROOTDIR . "/" . $adminfolder; echo "/cron.php\"><br><b>OR</b><br>\n"; echo $aInt->lang("automation", "cronget"); echo ":<br><input type=\"text\" size=\"100\" value=\"GET "; echo $CONFIG['SystemURL'];
delete_query("tblorderstatuses", array("id" => $id)); header("Location: configorderstatuses.php?delete=true"); } else { header("Location: configorderstatuses.php"); } exit; } ob_start(); if ($added) { infoBox($aInt->lang("orderstatusconfig", "addtitle"), $aInt->lang("orderstatusconfig", "adddesc")); } if ($update) { infoBox($aInt->lang("orderstatusconfig", "edittitle"), $aInt->lang("orderstatusconfig", "editdesc")); } if ($delete) { infoBox($aInt->lang("orderstatusconfig", "deltitle"), $aInt->lang("orderstatusconfig", "deldesc")); } echo $infobox; $aInt->deleteJSConfirm("doDelete", "orderstatusconfig", "delsure", "?action=delete&id="); echo "\n<p>"; echo $aInt->lang("orderstatusconfig", "pagedesc"); echo "</p>\n\n<p>"; echo "<s"; echo "trong>"; echo $aInt->lang("fields", "options"); echo ":</strong> <a href=\""; echo $PHP_SELF; echo "\"><img src=\"images/icons/add.png\" align=\"top\" /> "; echo $aInt->lang("global", "addnew"); echo "</a></p>\n\n"; $aInt->sortableTableInit("nopagination");
while ($regperiod <= 10) { $regperiods .= "<option value=\"" . $regperiod . "\">" . $regperiod . " " . $aInt->lang("domains", "year" . $regperiodss) . "</option>"; $regperiodss = "s"; ++$regperiod; } $jquerycode = "\n\$(function(){\n var prodtemplate = \$(\"#products .product:first\").clone();\n var productsCount = 0;\n window.addProduct = function(){\n productsCount++;\n var order = prodtemplate.clone().find(\"*\").each(function(){\n var newId = this.id.substring(0, this.id.length-1) + productsCount;\n\n \$(this).prev().attr(\"for\", newId); // update label for\n this.id = newId; // update id\n\n }).end()\n .attr(\"id\", \"ord\" + productsCount)\n .appendTo(\"#products\");\n return false;\n }\n \$(\".addproduct\").click(addProduct);\n\n var domainsCount = 0;\n window.addDomain = function(){\n domainsCount++;\n \$('<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\" style=\"margin-top:10px;\"><tr><td width=\"130\" class=\"fieldlabel\">" . $aInt->lang("domains", "regtype", 1) . "</td><td class=\"fieldarea\"><input type=\"radio\" name=\"regaction['+domainsCount+']\" id=\"domnon'+domainsCount+'\" value=\"\" onclick=\"loaddomainoptions(this,0);updatesummary()\" checked /> <label for=\"domnon'+domainsCount+'\">" . $aInt->lang("global", "none", 1) . "</label> <input type=\"radio\" name=\"regaction['+domainsCount+']\" value=\"register\" id=\"domreg'+domainsCount+'\" onclick=\"loaddomainoptions(this,1);updatesummary()\" /> <label for=\"domreg'+domainsCount+'\">" . $aInt->lang("domains", "register", 1) . "</label> <input type=\"radio\" name=\"regaction['+domainsCount+']\" value=\"transfer\" id=\"domtrf'+domainsCount+'\" onclick=\"loaddomainoptions(this,2);updatesummary()\" /> <label for=\"domtrf'+domainsCount+'\">" . $aInt->lang("domains", "transfer", 1) . "</label></td></tr><tr class=\"hiddenrow\" id=\"domrowdn'+domainsCount+'\" style=\"display:none;\"><td class=\"fieldlabel\">" . $aInt->lang("fields", "domain", 1) . "</td><td class=\"fieldarea\"><input type=\"text\" class=\"regdomain\" id=\"regdomain'+domainsCount+'\" name=\"regdomain['+domainsCount+']\" size=\"40\" onkeyup=\"updatesummary()\" /></td></tr><tr class=\"hiddenrow\" id=\"domrowrp'+domainsCount+'\" style=\"display:none;\"><td class=\"fieldlabel\">" . $aInt->lang("domains", "regperiod", 1) . "</td><td class=\"fieldarea\"><select name=\"regperiod['+domainsCount+']\" onchange=\"updatesummary()\">" . $regperiods . "</select></td></tr><tr class=\"hiddentransrow\" id=\"domrowep'+domainsCount+'\" style=\"display:none;\"><td class=\"fieldlabel\">" . $aInt->lang("domains", "eppcode", 1) . "</td><td class=\"fieldarea\"><input type=\"text\" name=\"eppcode['+domainsCount+']\" size=\"20\" /></td></tr><tr class=\"hiddenrow\" id=\"domrowad'+domainsCount+'\" style=\"display:none;\"><td class=\"fieldlabel\">" . $aInt->lang("domains", "addons", 1) . "</td><td class=\"fieldarea\"><label><input type=\"checkbox\" name=\"dnsmanagement['+domainsCount+']\" onclick=\"updatesummary()\" /> " . $aInt->lang("domains", "dnsmanagement", 1) . "</label> <label><input type=\"checkbox\" name=\"emailforwarding['+domainsCount+']\" onclick=\"updatesummary()\" /> " . $aInt->lang("domains", "emailforwarding", 1) . "</label> <label><input type=\"checkbox\" name=\"idprotection['+domainsCount+']\" onclick=\"updatesummary()\" /> " . $aInt->lang("domains", "idprotection", 1) . "</label></td></tr><tr id=\"domainaddlfieldserase'+domainsCount+'\" style=\"display:none\"></tr></table>').appendTo(\"#domains\");\n return false;\n }\n \$(\".adddomain\").click(addDomain);\n\n \$(\"#domain0\").keyup(function() {\n \$(\"#regdomain0\").val(\$(\"#domain0\").val());\n });\n\n\t\$(\".regdomain\").live(\"keyup\", function(){\n \tvar domainname = \$(this).val();\n\t\tif(domainname.length >= 5){\n\t\t\tvar ord = \$(this).attr(\"id\").replace(\"regdomain\",\"\");\n\t\t\t\$.post(\"ordersadd.php\", { action: \"getdomainaddlfields\", domain: domainname, order:ord, token: \"" . generate_token("plain") . "\" },\n\t\t\tfunction(data){\n\t\t\t\t\$(\".domainaddlfields\"+ord).remove();\n\t\t\t\t\$(\"#domainaddlfieldserase\"+ord).after(data);\n\t\t\t});\n\t\t}\n });\n\n});\n"; $jscode = "\nfunction loadproductoptions(piddd) {\n var ord = piddd.id.substring(3);\n var pid = piddd.value;\n var billingcycle = \$(\"#billingcycle option:selected\").val();\n if (pid==0) {\n \$(\"#productconfigoptions\"+ord).html(\"\");\n \$(\"#addonsrow\"+ord).hide();\n updatesummary();\n } else {\n \$(\"#productconfigoptions\"+ord).html(\"<p align=\\\"center\\\">" . $aInt->lang("global", "loading") . "<br><img src=\\\"../images/loading.gif\\\"></p>\");\n \$.post(\"ordersadd.php\", { action: \"getconfigoptions\", pid: pid, cycle: billingcycle, orderid: ord, token: \"" . generate_token("plain") . "\" },\n function(data){\n if (data.addons) {\n \$(\"#addonsrow\"+ord).show();\n \$(\"#addonscont\"+ord).html(data.addons);\n } else {\n \$(\"#addonsrow\"+ord).hide();\n }\n \$(\"#productconfigoptions\"+ord).html(data.options);\n updatesummary();\n },\"json\");\n }\n}\nfunction loaddomainoptions(domrd,type) {\n var ord = domrd.id.substring(6);\n if (type==1) {\n \$(\"#domrowdn\"+ord).css(\"display\",\"\");\n \$(\"#domrowrp\"+ord).css(\"display\",\"\");\n \$(\"#domrowep\"+ord).css(\"display\",\"none\");\n \$(\"#domrowad\"+ord).css(\"display\",\"\");\n } else if (type==2) {\n \$(\"#domrowdn\"+ord).css(\"display\",\"\");\n \$(\"#domrowrp\"+ord).css(\"display\",\"\");\n \$(\"#domrowep\"+ord).css(\"display\",\"\");\n \$(\"#domrowad\"+ord).css(\"display\",\"\");\n } else {\n \$(\"#domrowdn\"+ord).css(\"display\",\"none\");\n \$(\"#domrowrp\"+ord).css(\"display\",\"none\");\n \$(\"#domrowep\"+ord).css(\"display\",\"none\");\n \$(\"#domrowad\"+ord).css(\"display\",\"none\");\n }\n}\nfunction updatesummary() {\n jQuery.post(\"ordersadd.php\", \"submitorder=1&calconly=1&\"+jQuery(\"#orderfrm\").serialize(),\n function(data){\n jQuery(\"#ordersumm\").html(data);\n });\n}\n"; ob_start(); if (!checkActiveGateway()) { $aInt->gracefulExit($aInt->lang("gateways", "nonesetup")); } if ($userid && !$paymentmethod) { $paymentmethod = getClientsPaymentMethod($userid); } if ($whmcs->get_req_var("noselections")) { infoBox($aInt->lang("global", "validationerror"), $aInt->lang("orders", "noselections")); } echo $infobox; echo "\n<form method=\"post\" action=\""; echo $_SERVER['PHP_SELF']; echo "\" id=\"orderfrm\">\n<input type=\"hidden\" name=\"submitorder\" value=\"true\" />\n\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=\"top\" class=\"ordersummaryleftcol\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"130\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "client"); echo "</td><td class=\"fieldarea\">"; echo $aInt->clientsDropDown($userid); echo "</td></tr>\n<tr><td class=\"fieldlabel\">"; echo $aInt->lang("fields", "paymentmethod"); echo "</td><td class=\"fieldarea\">"; echo paymentMethodsSelection(); echo "</td></tr>\n<tr><td class=\"fieldlabel\">"; echo $aInt->lang("fields", "promocode"); echo "</td><td class=\"fieldarea\">";
} ?> </ul> </div> <h1><?php echo $res->title; ?> </h1> <?php if (empty($res->source) == false) { echo "<span class=\"label label-info\">Source : " . $res->source . "</span>"; } ?> <hr/> <?php echo $res->spj == 1 ? infoBox('<b>Notice!</b> Submissions on this problem will be special judged') : ""; ?> <?php echo $res->defunct == 'Y' ? errorBox('<b>Notice!</b> This Problem is not available') : ""; ?> <h5>Description</h5> <p><?php echo $res->description; ?> </p> <hr/> <h5>Input</h5> <p><?php echo $res->input; ?> </p><br/>
} $success = $domains->moduleCall("GetNameservers"); if ($success) { $nsvalues = $domains->getModuleReturn(); } else { if (!$infobox) { infoBox($aInt->lang("domains", "registrarerror"), $domains->getLastError()); } } if ($conf == "renew") { $values = wGetCookie("DomRenewRes", 1); if ($values['error']) { infoBox($aInt->lang("domains", "renewfailed"), $values['error'], "error"); } else { $successmessage = str_replace("%s", $registrationperiod, $aInt->lang("domains", "renewinfo")); infoBox($aInt->lang("domains", "renewsuccess"), $successmessage, "success"); } } $success = $domains->moduleCall("GetRegistrarLock"); if ($success) { $lockstatus = $domains->getModuleReturn(); } } $clientnotes = array(); $result = select_query("tblnotes", "tblnotes.*,(SELECT CONCAT(firstname,' ',lastname) FROM tbladmins WHERE tbladmins.id=tblnotes.adminid) AS adminuser", array("userid" => $userid, "sticky" => "1"), "modified", "DESC"); while ($data = mysql_fetch_assoc($result)) { $data['created'] = fromMySQLDate($data['created'], 1); $data['modified'] = fromMySQLDate($data['modified'], 1); $data['note'] = autoHyperLink(nl2br($data['note'])); $clientnotes[] = $data; }
insert_query("tblbannedemails", array("domain" => $email)); redir("success=true"); exit; } 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");
echo "</td>\n <td class=\"fieldarea\">"; echo $aInt->lang("sendmessage", "massmailsetting1"); echo " <input\n type=\"text\" name=\"massmailamount\" size=\"5\" value=\"25\" /> "; echo $aInt->lang("sendmessage", "massmailsetting2"); echo " <input\n type=\"text\" name=\"massmailinterval\" size=\"5\" value=\"30\" /> "; echo $aInt->lang("sendmessage", "massmailsetting3"); echo "</td>\n </tr>"; } echo "</table>\n\n <p align=\"center\">\n <input type=\"button\"\n value=\""; echo $aInt->lang("sendmessage", "preview"); echo "\"\n onclick=\"previewMsg()\" class=\"btn\" /> <input type=\"submit\"\n value=\""; echo $aInt->lang("global", "sendmessage"); echo " »\"\n class=\"btn-primary\" />\n </p>\n\n</form>\n\n"; $aInt->richTextEditor(); echo "<div id=\"emailoptoutinfo\">"; infoBox($aInt->lang("sendmessage", "marketingemail"), $aInt->lang("sendmessage", "marketingemaildesc")); echo $infobox; echo "</div>"; $i = 1; include "mergefields.php"; echo "\n<form method=\"post\" action=\""; echo $_SERVER['PHP_SELF']; echo "\">\n <input type=\"hidden\" name=\"sub\" value=\"loadmessage\"> <input\n type=\"hidden\" name=\"type\" value=\""; echo $type; echo "\">\n"; if ($massmailquery) { if ($queryMgr->isValidTokenFormat($massmailquery)) { $queryToStore = $queryMgr->getQuery($massmailquery); } else { $queryToStore = $massmailquery; }
<?php /*<h2><?php ; ?></h2> <a href="http://<?php echo DOMAIN; ?>/"><p><?php L("to.home") ?></p></a>*/ $tab = addTab(L("404"), "404"); infoBox($tab, L("404"), L("to.home"));
$contactid = "addnew"; } echo "<option value=\"addnew\""; if ($contactid == "addnew") { echo " selected"; } echo ">"; echo $aInt->lang("global", "addnew"); echo "</option>\n</select> <input type=\"submit\" value=\""; echo $aInt->lang("global", "go"); echo "\">\n</form>\n\n<br>\n\n"; $aInt->deleteJSConfirm("deleteContact", "clients", "deletecontactconfirm", "?action=delete&userid=" . $userid . "&contactid="); if ($resetpw) { check_token("WHMCS.admin.default"); sendMessage("Automated Password Reset", $userid, array("contactid" => $contactid)); infoBox($aInt->lang("clients", "resetsendpassword"), $aInt->lang("clients", "passwordsuccess")); echo $infobox; } if ($contactid && $contactid != "addnew") { $result = select_query("tblcontacts", "", array("userid" => $userid, "id" => $contactid)); $data = mysql_fetch_array($result); $contactid = $data['id']; $firstname = $data['firstname']; $lastname = $data['lastname']; $companyname = $data['companyname']; $email = $data['email']; $address1 = $data['address1']; $address2 = $data['address2']; $city = $data['city']; $state = $data['state']; $postcode = $data['postcode'];
$balance = formatCurrency($balance); $withdrawn = formatCurrency($withdrawn); $date = fromMySQLDate($date); $tabledata[] = array("<input type=\"checkbox\" name=\"selectedclients[]\" value=\"" . $id . "\" class=\"checkall\" />", "<a href=\"affiliates.php?action=edit&id=" . $id . "\">" . $id . "</a>", $date, $aInt->outputClientLink($userid, $firstname, $lastname, $companyname, $groupid), $visitors, $signups, $balance, $withdrawn, "<a href=\"" . $PHP_SELF . "?action=edit&id=" . $id . "\"><img src=\"images/edit.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"" . $aInt->lang("global", "edit") . "\"></a>", "<a href=\"#\" onClick=\"doDelete('" . $id . "');return false\"><img src=\"images/delete.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"" . $aInt->lang("global", "delete") . "\"></a>"); } $tableformurl = "sendmessage.php?type=affiliate&multiple=true"; $tableformbuttons = "<input type=\"submit\" value=\"" . $aInt->lang("global", "sendmessage") . "\" class=\"button\">"; echo $aInt->sortableTable(array("checkall", array("id", $aInt->lang("fields", "id")), array("date", $aInt->lang("affiliates", "signupdate")), array("clientname", $aInt->lang("fields", "clientname")), array("visitors", $aInt->lang("affiliates", "visitorsref")), $aInt->lang("affiliates", "signups"), array("balance", $aInt->lang("fields", "balance")), array("withdrawn", $aInt->lang("affiliates", "withdrawn")), "", ""), $tabledata, $tableformurl, $tableformbuttons); } else { if ($action == "edit") { if ($pay == "true") { $error = AffiliatePayment($affaccid, ""); if ($error) { infoBox($aInt->lang("affiliates", "paymentfailed"), $error); } else { infoBox($aInt->lang("affiliates", "paymentsuccess"), $aInt->lang("affiliates", "paymentsuccessdetail")); } } echo $infobox; $result = select_query("tblaffiliates", "", array("id" => $id)); $data = mysql_fetch_array($result); $id = $data['id']; if (!$id) { $aInt->gracefulExit("Invalid Affiliate ID. Please Try Again..."); } $date = $data['date']; $clientid = $data['clientid']; $visitors = $data['visitors']; $balance = $data['balance']; $withdrawn = $data['withdrawn']; $paymenttype = $data['paytype'];
$color = "#fff"; } } } $servicesarr[$servicelist_id] = array($color, $servicelist_product); } $frmsub = new WHMCS_Form("frm2"); echo $frmsub->form("", "", "", "get", true); echo $frmsub->hidden("userid", $userid); echo " Products: " . $frmsub->dropdown("id", $servicesarr, $id, "submit()"); echo " " . $frmsub->submit($aInt->lang("global", "go"), "btn btn-success"); echo $frmsub->close(); echo "</td><td align=\"right\">\n\n" . $frm->button($aInt->lang("services", "createupgorder"), "window.open('clientsupgrade.php?id=" . $id . "','','width=750,height=350,scrollbars=yes')") . " " . $frm->button($aInt->lang("services", "moveservice"), "window.open('clientsmove.php?type=hosting&id=" . $id . "','movewindow','width=500,height=300,top=100,left=100,scrollbars=yes')") . " \n\n</td></tr></table>\n\n<div id=\"modcmdresult\" style=\"display:none;\"></div>\n"; if ($cancelid) { if (!$infobox) { infoBox($aInt->lang("services", "cancrequest"), $aInt->lang("services", "cancrequestinfo") . "<br />" . $_ADMINLANG['fields']['reason'] . ": " . $autoterminatereason); } } echo $infobox ? $infobox : "<img src=\"images/spacer.gif\" height=\"10\" width=\"1\" /><br />"; if ($lastupdate && $lastupdate != "0000-00-00 00:00:00") { echo "<div class=\"contentbox\">\n<strong>" . $aInt->lang("services", "diskusage") . ":</strong> " . $diskusage . " " . $aInt->lang("fields", "mb") . ", <strong>" . $aInt->lang("services", "disklimit") . ":</strong> " . $disklimit . " " . $aInt->lang("fields", "mb") . ", "; if ($diskusage == $aInt->lang("global", "unlimited") || $disklimit == $aInt->lang("global", "unlimited")) { } else { echo "<strong>" . round($diskusage / $disklimit * 100, 0) . "% " . $aInt->lang("services", "used") . "</strong> :: "; } echo "<strong>" . $aInt->lang("services", "bwusage") . ":</strong> " . $bwusage . " " . $aInt->lang("fields", "mb") . ", <strong>" . $aInt->lang("services", "bwlimit") . ":</strong> " . $bwlimit . " " . $aInt->lang("fields", "mb") . ", "; if ($bwusage == $aInt->lang("global", "unlimited") || $bwlimit == $aInt->lang("global", "unlimited")) { } else { echo "<strong>" . round($bwusage / $bwlimit * 100, 0) . "% " . $aInt->lang("services", "used") . "</strong><br>"; } echo "<small>(" . $aInt->lang("services", "lastupdated") . ": " . fromMySQLDate($lastupdate, "time") . ")</small>\n</div>\n<br />\n";
if ($page) { $userid .= "&page=" . $page; } redir("userid=" . $userid . "&filter=1"); } ob_start(); $aInt->deleteJSConfirm("doDelete", "invoices", "delete", "clientsinvoices.php?userid=" . $userid . "&delete=true&invoiceid="); $jquerycode .= "\$(\".invtooltip\").tooltip({cssClass:\"invoicetooltip\"});"; if ($mergeerr) { infoBox($aInt->lang("invoices", "mergeerror"), $aInt->lang("invoices", "mergeerrordesc")); } if ($masspayerr) { infoBox($aInt->lang("invoices", "masspay"), $aInt->lang("invoices", "mergeerrordesc")); } if ($masspayid) { infoBox($aInt->lang("invoices", "masspay"), $aInt->lang("invoices", "masspaysuccess") . " - <a href=\"invoices.php?action=edit&id=" . (int) $masspayid . "\">" . $aInt->lang("fields", "invoicenum") . $masspayid . "</a>"); } echo $infobox; $filt = new WHMCS_Filter("clinv"); $filterops = array("serviceid", "addonid", "domainid", "clientname", "invoicenum", "lineitem", "paymentmethod", "invoicedate", "duedate", "datepaid", "totalfrom" . "totalto", "status"); $filt->setAllowedVars($filterops); $filters = array(); $filters[] = "userid='" . (int) $userid . "'"; if ($serviceid = $filt->get("serviceid")) { $filters[] = "id IN (SELECT invoiceid FROM tblinvoiceitems WHERE type='Hosting' AND relid='" . (int) $serviceid . "')"; } if ($addonid = $filt->get("addonid")) { $filters[] = "id IN (SELECT invoiceid FROM tblinvoiceitems WHERE type='Addon' AND relid='" . (int) $addonid . "')"; } if ($domainid = $filt->get("domainid")) { $filters[] = "id IN (SELECT invoiceid FROM tblinvoiceitems WHERE type IN ('DomainRegister','DomainTransfer','Domain') AND relid='" . (int) $domainid . "')";
define("ADMINAREA", true); require "../init.php"; $licensing->forceRemoteCheck(); $aInt = new WHMCS_Admin("Configure General Settings"); $aInt->title = $aInt->lang("system", "checkforupdates"); $aInt->sidebar = "help"; $aInt->icon = "support"; ob_start(); if (!$licensing->getLatestVersion()) { infoBox($aInt->lang("system", "updatecheck"), $aInt->lang("system", "connectfailed"), "error"); echo $infobox; } else { if ($CONFIG['Version'] != $licensing->getLatestVersion()) { infoBox($aInt->lang("system", "updatecheck"), $aInt->lang("system", "upgrade") . " <a href=\"https://www.whmcs.com/members/clientarea.php\" target=\"_blank\">" . $aInt->lang("system", "clickhere") . "</a>"); } else { infoBox($aInt->lang("system", "updatecheck"), $aInt->lang("system", "runninglatestversion"), "success"); } echo "<div class=\"versionnoticecont\">" . $infobox . "</div>"; echo "\n<br />\n\n"; echo "<s"; echo "tyle>\n.versioncont {\n margin:0 auto;\n padding:0 0 25px 0;\n width:480px;\n}\n.versionyour {\n float:left;\n margin:0;\n padding:10px 20px;\n width:200px;\n background-color:#535353;\n border-bottom:1px solid #fff;\n color: #fff;\n font-size:20px;\n text-align:right;\n -moz-border-radius: 10px 0 0 0;\n -webkit-border-radius: 10px 0 0 0;\n -o-border-ra"; echo "dius: 10px 0 0 0;\n border-radius: 10px 0 0 0;\n}\n.versionyournum {\n float:left;\n margin:0;\n padding:5px 20px;\n width:200px;\n background-color:#666;\n color: #fff;\n font-family:Arial;\n font-size:70px;\n text-align:right;\n -moz-border-radius: 0 0 0 10px;\n -webkit-border-radius: 0 0 0 10px;\n -o-border-radius: 0 0 0 10px;\n border-radius: 0 0 0 10p"; echo "x;\n}\n.versionlatest {\n float:left;\n margin:0;\n padding:10px 20px;\n width:200px;\n background-color:#035485;\n border-bottom:1px solid #fff;\n color: #fff;\n font-size:20px;\n text-align:left;\n -moz-border-radius: 0 10px 0 0;\n -webkit-border-radius: 0 10px 0 0;\n -o-border-radius: 0 10px 0 0;\n border-radius: 0 10px 0 0;\n}\n.versionlatestnum {\n fl"; echo "oat:left;\n margin:0;\n padding:5px 20px;\n width:200px;\n background-color:#0467A2;\n color: #fff;\n font-family:Arial;\n font-size:70px;\n text-align:left;\n -moz-border-radius: 0 0 10px 0;\n -webkit-border-radius: 0 0 10px 0;\n -o-border-radius: 0 0 10px 0;\n border-radius: 0 0 10px 0;\n}\n.versionnoticecont {\n width:700px;\n margin:30px auto 10px;\n}\n"; echo "\n.newspost {\n margin:10px auto;\n padding:6px 15px;\n width:80%;\n background-color:#f8f8f8;\n border:1px solid #ccc;\n -moz-border-radius: 10px;\n -webkit-border-radius: 10px;\n -o-border-radius: 10px;\n border-radius: 10px;\n}\n</style>\n\n<div class=\"versioncont\">\n<div class=\"versionyour\">"; echo $aInt->lang("system", "yourversion"); echo "</div>\n<div class=\"versionlatest\">"; echo $aInt->lang("system", "latestversion"); echo "</div>\n<div class=\"versionyournum\">"; echo $whmcs->get_config("Version"); echo "</div>\n<div class=\"versionlatestnum\">";
$notes = $data['notes']; $template = $data['template']; $language = $data['language']; $disabled = $data['disabled']; } $numrows = get_query_vals("tbladmins", "COUNT(id)", array("roleid" => "1")); $onlyadmin = $numrows == "1" && $roleid == "1" ? true : false; $managetitle = $aInt->lang("administrators", "editadmin"); } else { $supportdepts = $ticketnotify = array(); $managetitle = $aInt->lang("administrators", "addadmin"); } $language = $whmcs->validateLanguage($language, true); echo "<p><b>" . $managetitle . "</b></p>"; if ($validate->hasErrors()) { infoBox($aInt->lang("global", "validationerror"), $validate->getHTMLErrorOutput(), "error"); echo $infobox; } echo "\n<form method=\"post\" action=\""; echo $PHP_SELF; echo "?action=save&id="; echo $id; echo "\">\n\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"20%\" class=\"fieldlabel\">"; echo $aInt->lang("administrators", "role"); echo "</td><td class=\"fieldarea\">"; echo "<s"; echo "elect name=\"roleid\""; if ($onlyadmin) { echo " disabled"; } echo ">";
redir(); } ob_start(); if (!$action) { if ($invoice && is_array($bitem)) { foreach ($bitem as $id => $v) { update_query("tblbillableitems", array("invoiceaction" => "1"), array("id" => $id)); } infoBox($aInt->lang("billableitems", "invoiceitems"), $aInt->lang("billableitems", "itemswillinvoice")); echo $infobox; } if ($delete && is_array($bitem)) { foreach ($bitem as $id => $v) { delete_query("tblbillableitems", array("id" => $id)); } infoBox($aInt->lang("billableitems", "itemsdeleted"), $aInt->lang("billableitems", "itemsdeleteddesc")); echo $infobox; } $aInt->deleteJSConfirm("doDelete", "billableitems", "itemsdeletequestion", "billableitems.php?userid=" . $userid . "&action=delete&id="); 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 $_SERVER['PHP_SELF']; echo "\" method=\"get\">\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"15%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "client"); echo "</td><td class=\"fieldarea\">"; echo $aInt->clientsDropDown($userid, "", "userid", true); echo "</td><td width=\"15%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "amount"); echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"amount\" size=\"15\" value=\""; echo $amount; echo "\"></td></tr>\n<tr><td class=\"fieldlabel\">";
redir("success=true"); } if ($action == "saveaddons") { check_token("WHMCS.admin.default"); foreach ($_POST['currency'] as $currency_id => $pricing) { update_query("tblpricing", $pricing, array("type" => "domainaddons", "currency" => $currency_id, "relid" => 0)); } redir("success=true"); } $aInt->deleteJSConfirm("doDelete", "domains", "delsureextension", "?action=delete&id="); $jquerycode = "\n\$('#domainpricing').tableDnD({\n onDrop: function(table, row) {\n \$.post(\"configdomains.php\", { action: \"saveorder\", pricingarr: \$('#domainpricing').tableDnDSerialize(), token: \"" . generate_token("plain") . "\" });\n },\n dragHandle: \"sortcol\"\n });\n"; if ($success) { infoBox($aInt->lang("global", "changesuccess"), $aInt->lang("global", "changesuccessdesc")); } if ($errormessage) { infoBox($aInt->lang("global", "erroroccurred"), $errormessage, "error"); } echo $infobox; echo "<p>" . $aInt->lang("domains", "pricinginfo") . "</p>"; echo "\n<form method=\"post\" action=\""; echo $_SERVER['PHP_SELF']; echo "\">\n<input type=\"hidden\" name=\"action\" value=\"save\" />\n\n<div class=\"tablebg\">\n<table class=\"datatable\" width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" id=\"domainpricing\">\n<tr><th>"; echo $aInt->lang("fields", "tld"); echo "</th><th>"; echo $aInt->lang("global", "pricing"); echo "</th><th>"; echo $aInt->lang("domains", "dnsmanagement"); echo "</th><th>"; echo $aInt->lang("domains", "emailforwarding"); echo "</th><th>"; echo $aInt->lang("domains", "idprotection");
if ($error == "noinvoice") { infoBox($aInt->lang("orders", "statusrefundfailed"), $aInt->lang("orders", "statusrefundnoinvoice"), "error"); } else { if ($error == "notpaid") { infoBox($aInt->lang("orders", "statusrefundfailed"), $aInt->lang("orders", "statusrefundnotpaid"), "error"); } else { if ($error == "alreadyrefunded") { infoBox($aInt->lang("orders", "statusrefundfailed"), $aInt->lang("orders", "statusrefundalready"), "error"); } else { if ($error == "refundfailed") { infoBox($aInt->lang("orders", "statusrefundfailed"), $aInt->lang("orders", "statusrefundfailedmsg"), "error"); } else { if ($error == "manual") { infoBox($aInt->lang("orders", "statusrefundfailed"), $aInt->lang("orders", "statusrefundnoauto"), "error"); } else { infoBox($aInt->lang("orders", "statusrefundsuccess"), $aInt->lang("orders", "statusrefundsuccessmsg"), "success"); } } } } } } if ($whmcs->get_req_var("updatenotes")) { check_token("WHMCS.admin.default"); update_query("tblorders", array("notes" => $notes), array("id" => $id)); exit; } echo $infobox; $gatewaysarray = getGatewaysArray(); require ROOTDIR . "/includes/countries.php"; $result = select_query("tblorders", "tblorders.*,tblclients.firstname,tblclients.lastname,tblclients.email,tblclients.companyname,tblclients.address1,tblclients.address2,tblclients.city,tblclients.state,tblclients.postcode,tblclients.country,tblclients.groupid,(SELECT status FROM tblinvoices WHERE id=tblorders.invoiceid) AS invoicestatus", array("tblorders.id" => $id), "", "", "", "tblclients ON tblclients.id=tblorders.userid");
check_token("WHMCS.admin.default"); checkPermission("Delete Transaction"); delete_query("tblaccounts", array("id" => $ide)); logActivity("Deleted Transaction (ID: " . $ide . " - User ID: " . $userid . ")"); redir("userid=" . $userid); exit; } ob_start(); if ($action == "") { $aInt->deleteJSConfirm("doDelete", "transactions", "deletesure", "clientstransactions.php?userid=" . $userid . "&sub=delete&ide="); $currency = getCurrency($userid); if ($error == "invalidinvid") { infoBox("Check Invoice ID", "The Invoice ID you entered could not be found", "error"); } else { if ($error == "wronguser") { infoBox("Check Invoice ID", "The Invoice ID you entered to assign this payment to belongs to a different client", "error"); } } echo $infobox; $result = select_query("tblaccounts", "SUM(amountin),SUM(fees),SUM(amountout),SUM(amountin-fees-amountout)", array("userid" => $userid)); $data = mysql_fetch_array($result); echo "\n<table width=90% cellspacing=1 cellpadding=5 bgcolor=\"#CCCCCC\" align=\"center\"><tr bgcolor=\"#f4f4f4\" style=\"text-align:center\"><td><a href=\""; echo $PHP_SELF; echo "?userid="; echo $userid; echo "&action=add\">"; echo $aInt->lang("transactions", "addnew"); echo "</a></td><td>"; echo $aInt->lang("transactions", "totalin"); echo ": "; echo formatCurrency($data[0]);
$module = $_GET['module']; if ($module) { delete_query("tblregistrars", array("registrar" => $module)); } redir("deactivated=true"); exit; } ob_start(); if ($saved) { infoBox($aInt->lang("domainregistrars", "changesuccess"), $aInt->lang("domainregistrars", "changesuccessinfo")); } if ($activated) { infoBox($aInt->lang("domainregistrars", "moduleactivated"), $aInt->lang("domainregistrars", "moduleactivatedinfo"), "success"); } if ($deactivated) { infoBox($aInt->lang("domainregistrars", "moduledeactivated"), $aInt->lang("domainregistrars", "moduledeactivatedinfo"), "success"); } echo $infobox; $aInt->deleteJSConfirm("deactivateMod", "domainregistrars", "deactivatesure", $_SERVER['PHP_SELF'] . "?action=deactivate&module="); $jscode .= "function showConfig(module) {\n \$(\"#\"+module+\"config\").fadeToggle();\n}\n"; echo "<div class=\"tablebg\">\n<table class=\"datatable\" width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\">\n<tr><th width=\"140\"></th><th>" . $aInt->lang("addonmodules", "module") . "</th><th width=\"350\"></th></tr>"; $modulesarray = array(); $dh = opendir("../modules/registrars/"); while (false !== ($file = readdir($dh))) { if (is_file("../modules/registrars/" . $file . "/" . $file . ".php")) { $modulesarray[] = $file; } } closedir($dh); sort($modulesarray); foreach ($modulesarray as $module) {
echo "&viewpdf=1','pdfinv','')\" /> <input type=\"button\" value=\""; echo $aInt->lang("invoices", "downloadpdf"); echo "\" class=\"button\" onclick=\"window.location='../dl.php?type=i&id="; echo $id; echo "'\" />\n\n"; $addons_html = run_hook("AdminInvoicesControlsOutput", array("invoiceid" => $id, "userid" => $userid, "subtotal" => $subtotal, "tax" => $tax, "tax2" => $tax2, "credit" => $credit, "total" => $total, "balance" => $balance, "taxrate" => $taxrate, "taxrate2" => $taxrate2, "paymentmethod" => $paymentmethod)); foreach ($addons_html as $output) { echo $output; } echo "\n</td></tr></table>\n\n </div>\n</div>\n<div id=\"tab1box\" class=\"tabbox\">\n <div id=\"tab_content\">\n\n<form method=\"post\" action=\""; echo $PHP_SELF; echo "\">\n<input type=\"hidden\" name=\"action\" value=\"edit\">\n<input type=\"hidden\" name=\"id\" value=\""; echo $id; echo "\">\n<input type=\"hidden\" name=\"sub\" value=\"markpaid\">\n\n"; if ($rawbalance <= 0) { infoBox($aInt->lang("invoices", "paidstatuscredit"), $aInt->lang("invoices", "paidstatuscreditdesc")); echo $infobox; } echo "\n<table class=\"form\" width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\">\n<tr><td width=\"20%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "date"); echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"date\" value=\""; echo getTodaysDate(); echo "\" class=\"datepick\"></td><td width=\"20%\" class=\"fieldlabel\">"; echo $aInt->lang("fields", "amount"); echo "</td><td class=\"fieldarea\"><input type=\"text\" name=\"amount\" value=\""; echo $rawbalance; echo "\" size=\"10\"></td></tr>\n<tr><td class=\"fieldlabel\">"; echo $aInt->lang("fields", "paymentmethod"); echo "</td><td class=\"fieldarea\">"; echo paymentMethodsSelection("None"); echo "</td><td class=\"fieldlabel\">";