示例#1
0
 function __construct()
 {
     $this->session = session::getInstance();
     $this->post = post::getInstance();
     $this->get = get::getInstance();
     $this->http = http::getInstance();
     $this->file = file::getInstance();
     $this->cookie = cookie::getInstance();
 }
示例#2
0
 public function __construct()
 {
     $this->registry = registry::getInstance();
     $this->path = $this->registry["path"];
     $this->html = html::getInstance();
     $this->session = session::getInstance();
     $this->cookie = cookie::getInstance();
     $this->ajax = new ajax();
     $this->l10n = l10n::getInstance();
 }
 public function __construct()
 {
     parent::__construct();
     $this->cookie = cookie::getInstance();
     if (!defined('GESHI_VERSION') and file_exists(Absolute_Path . "app/plugins/geshi/GeSHi.php")) {
         require_once Absolute_Path . "app/plugins/geshi/GeSHi.php";
     }
     $this->addAction('index_comment_added', 'usersNotify');
     $this->addAction('index_comment_added', 'adminNotify');
     $this->addAction('comment_approbed', 'notify');
 }
示例#4
0
 function checkConfig()
 {
     $this->cookie = cookie::getInstance();
     if (!$this->cookie->check("logged")) {
         return;
     }
     $conf = new configuration();
     $row = $conf->findBy('name', 'blog_feedburner_rssLink');
     $setupMsg = "<p style=\"border:1px solid #f00;background-color:#ff0;padding:10px;font-size:15px;\">Please <a href=\"{$this->registry->path}admin/config#blog_feedburner_rssLink\">setup</a> the feedburner plugin.</p>";
     if (!$row) {
         echo $setupMsg;
     } else {
         if (!preg_match(VALID_URL, $row['value'])) {
             echo $setupMsg;
         }
     }
 }
示例#5
0
    $path = substr(Path, strlen(Path) - strlen("/")) == "/" ? Path : Path . "/";
    $registry->path = $path;
    if (!defined('requiresBD')) {
        $db = new dbFactory(strtolower(DB_Engine));
    } else {
        if (requiresBD) {
            $db = new dbFactory(strtolower(DB_Engine));
        } else {
            $db = null;
        }
    }
    $registry->db = $db;
    $views = new appviews();
    $registry->views = $views;
    $themes = new themes();
    $registry->themes = $themes;
    $session = session::getInstance();
    $registry->session = $session;
    $cookie = cookie::getInstance();
    $registry->cookie = $cookie;
    $router = new router();
    $registry->router = $router;
    $debug = debug::getInstance();
    $registry->debug = $debug;
    $registry->validateErrors = array();
    $router->dispatch();
    // Here starts the party
} catch (Exception $e) {
    echo $e->getMessage();
    exit;
}