Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Core File **/
- /** Important function **/
- public function __construct () {
- /** Setup of Session-Handler **/
- $key = 'example_key';
- $this->pSession = new Session($key);
- /** Setup of MySQL-Connection **/
- $this->connection = new MySQL('localhost', 'root', 'Development', 'master_database');
- /** Setup of Secure Sessions **/
- ini_set('session.save_handler', 'files');
- session_set_save_handler($this->pSession, true);
- /** Properties **/
- $this->is_native_access_enabled = $this->GetSettingValueByName('native_access_enabled');
- $this->is_ssl_enabled = $this->GetSettingValueByName('https_enabled');
- if($this->is_ssl_enabled === 'true') {
- ini_set('allow_url_fopen', 'On');
- if(!extension_loaded('openssl'))
- die('Please enabled OpenSSL extension!');
- $this->protocol = 'https';
- } else
- $this->protocol = 'http';
- $this->www_address = $this->GetSettingValueByName('www_address');
- $this->pagename = $this->GetSettingValueByName('pagename');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement