示例#1
0
 public static function init()
 {
     global $whmcs;
     $obj = new WHMCS_License();
     $obj->licensekey = $whmcs->get_license_key();
     $obj->localkey = $whmcs->get_config("License");
     $obj->salt = sha1("WHMCS" . $whmcs->get_config("Version") . "TFB" . $whmcs->get_hash());
     $obj->date = date("Ymd");
     $obj->decodeLocalOnce();
     if (isset($_GET['forceremote'])) {
         $obj->forceRemoteCheck();
         exit;
     }
     return $obj;
 }