function ServerClientArea($func_id) { $params = ModuleBuildParams($func_id); if (function_exists($params['moduletype'] . "_ClientArea")) { $result = call_user_func($params['moduletype'] . "_ClientArea", $params); } else { $result = ""; } return $result; }
$modulebtns[] = $frm->button($aInt->lang("modulebuttons", "terminate"), "showDialog('modterminate')"); } if (function_exists($module . "_ChangePackage")) { $modulebtns[] = $frm->button($aInt->lang("modulebuttons", "changepackage"), "showDialog('modchangepackage')"); } if (function_exists($module . "_ChangePassword")) { $modulebtns[] = $frm->button($aInt->lang("modulebuttons", "changepassword"), "runModuleCommand('changepw')"); } if ($adminbuttonarray) { foreach ($adminbuttonarray as $key => $value) { $modulebtns[] = $frm->button($key, "runModuleCommand('custom','" . $value . "')"); } } $tbl->add($aInt->lang("services", "modulecommands"), "<div id=\"modcmdbtns\">" . implode(" ", $modulebtns) . "</div><div id=\"modcmdworking\" style=\"display:none;text-align:center;\"><img src=\"images/loader.gif\" /> Working...</div>", 1); if (function_exists($module . "_AdminServicesTabFields")) { $params = ModuleBuildParams($id); $fieldsarray = call_user_func($params['moduletype'] . "_AdminServicesTabFields", $params); if (is_array($fieldsarray)) { foreach ($fieldsarray as $k => $v) { $tbl->add($k, $v, 1); } } } } $hookret = run_hook("AdminClientServicesTabFields", array("id" => $id)); foreach ($hookret as $hookdat) { foreach ($hookdat as $k => $v) { $tbl->add($k, $v, 1); } } $addonshtml = "";
$userid = $data['userid']; $currency = $data['currency']; $domain = $data['domain']; $diskusage = $data['diskusage']; $disklimit = $data['disklimit']; $bwusage = $data['bwusage']; $bwlimit = $data['bwlimit']; $result3 = select_query("tblcurrencies", "rate", array("id" => $currency)); $data = mysql_fetch_array($result3); $convertrate = $data['rate']; if (!$convertrate) { $convertrate = 1; } $overagesdiskprice = $overagesbasediskprice * $convertrate; $overagesbwprice = $overagesbasebwprice * $convertrate; $moduleparams = ModuleBuildParams($serviceid); $thisoveragesdisklimit = $overagesdisklimit; $thisoveragesbwlimit = $overagesbwlimit; if ($moduleparams['customfields']["Disk Space"]) { $thisoveragesdisklimit = $moduleparams['customfields']["Disk Space"]; } if ($moduleparams['customfields']['Bandwidth']) { $thisoveragesbwlimit = $moduleparams['customfields']['Bandwidth']; } if ($moduleparams['configoptions']["Disk Space"]) { $thisoveragesdisklimit = $moduleparams['configoptions']["Disk Space"]; } if ($moduleparams['configoptions']['Bandwidth']) { $thisoveragesbwlimit = $moduleparams['configoptions']['Bandwidth']; } $diskunits = "MB";