Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*--------------------------------------
- * leexoCMS - Content Managament System
- * Copyright (c) 2012 - Livar Shekhani
- *---------------------------------------
- * Compatible with PhoenixEmulator by
- * Sojobojo from RZ && DB
- * --------------------------------------
- * leexoCMS is licensed under the DBAD
- * license by Phil Sturgeon thus means
- * that you may NOT rename or sell it
- * for your own benifets, but you may
- * learn from it so please enjoy!
- *--------------------------------------*/
- //Security Reasons
- if(!DEFINED('SECURITY')) { die ('Loading directly is forbidden!'); }
- //Class Name
- class Application
- {
- //Our Configuration Variable
- var $Configuration;
- //Our Page Loading Variable
- var $PageTime;
- //Class Constructor
- function __Construct()
- {
- //Page Loading Time
- $this->PageTime = microtime(true);
- //Getting our Configuration
- $this->getConfig();
- }
- //Getting our Configuration
- function getConfig()
- {
- //Check if Our Configuration Exists
- if(!file_exists('./includes/configuration.php'))
- {
- $this->ApplicationError('Configuration File does not exist!');
- }
- //Include the Configuration
- include './includes/configuration.php';
- //Set our Variables
- $this->Configuration = $Configuration;
- }
- //Our Error Function
- function ApplicationError($error)
- {
- echo "<center><h1>leexoCMS - Lock-down!</h1>";
- echo "$error<br>";
- echo "Page took: ", microtime(true) - $this->PageTime, " seconds!";
- echo "<br><br><i>Powered by leexoCMS - Copyright (c) 2012, Livar Shekhani</i>";
- die();
- }
- //Password Hasher
- function PasswordHash($input)
- {
- return $this->Configuration['Password']['type']($input.$this->Configuration['Password']['hash']);
- }
- }
- ?>
Add Comment
Please, Sign In to add comment