/** * Assign variables and generate the license key. */ public function __construct($sLicenseKey = null) { // Variables assignment $this->_oLicenseModel = new LicenseModel(); $this->_sHostName = Server::getName(); $this->_sHostIp = Server::getIp(); $this->_sBasicLicKey = Security::hash($this->_generate(), 80); // Generate license key $this->generate($sLicenseKey); }
/** * @return string The current URL. */ public function currentUrl() { return PH7_URL_PROT . \PH7\Framework\Server\Server::getName() . $this->_sRequestUri; }