コード例 #1
0
 public static function getConditionalLinks()
 {
     global $whmcs;
     $calinkupdatecc = isset($_SESSION['calinkupdatecc']) ? $_SESSION['calinkupdatecc'] : CALinkUpdateCC();
     $security = isset($_SESSION['calinkupdatesq']) ? $_SESSION['calinkupdatesq'] : CALinkUpdateSQ();
     if (!$security) {
         $twofa = new WHMCS_2FA();
         if ($twofa->isActiveClients()) {
             $security = true;
         }
     }
     return array("updatecc" => $calinkupdatecc, "updatesq" => $security, "security" => $security, "addfunds" => $whmcs->get_config("AddFundsEnabled"), "masspay" => $whmcs->get_config("EnableMassPay"), "affiliates" => $whmcs->get_config("AffiliateEnabled"), "domainreg" => $whmcs->get_config("AllowRegister"), "domaintrans" => $whmcs->get_config("AllowTransfer"), "domainown" => $whmcs->get_config("AllowOwnDomain"), "pmaddon" => get_query_val("tbladdonmodules", "value", array("module" => "project_management", "setting" => "clientenable")));
 }
コード例 #2
0
ファイル: clientarea.php プロジェクト: billyprice1/whmcs
     $smartyvalues['contactaddress2'] = $address2;
     $smartyvalues['contactcity'] = $city;
     $smartyvalues['contactstate'] = $state;
     $smartyvalues['contactpostcode'] = $postcode;
     $smartyvalues['contactphonenumber'] = $phonenumber;
     $smartyvalues['countriesdropdown'] = getCountriesDropDown($country);
     $smartyvalues['subaccount'] = $subaccount;
     $smartyvalues['permissions'] = $permissions;
     $smartyvalues['generalemails'] = $generalemails;
     $smartyvalues['productemails'] = $productemails;
     $smartyvalues['domainemails'] = $domainemails;
     $smartyvalues['invoiceemails'] = $invoiceemails;
     $smartyvalues['supportemails'] = $supportemails;
 } else {
     if ($action == "creditcard") {
         if (!CALinkUpdateCC()) {
             redir();
         }
         checkContactPermission("invoices");
         $ca->setTemplate("clientareacreditcard");
         $ca->addToBreadCrumb("clientarea.php?action=details", $whmcs->get_lang("clientareanavdetails"));
         $ca->addToBreadCrumb("clientarea.php?action=creditcard", $whmcs->get_lang("clientareanavchangecc"));
         $gateways = new WHMCS_Gateways();
         $gotpm = false;
         if (!$gotpm) {
             $result = select_query("tblpaymentgateways", "gateway", array("setting" => "type", "value" => "CC"));
         }
         while ($data = mysql_fetch_array($result)) {
             $gateway = $data['gateway'];
             if (function_exists($gateway . "_remoteupdate")) {
                 $params = getGatewayVariables($gateway);