Exemplo n.º 1
0
 /**
  * @constructor
  */
 public function __construct($data_folder = '')
 {
     // load the config file.
     $this->config = new Config();
     $this->config->load($data_folder);
     // load the templates.
     $this->templates = new Templates();
     $this->templates->load($data_folder);
     // loading data files.
     $this->files = new Files();
     $this->files->load($data_folder, $this->config->get('pages_data'));
     // initialize database.
     $this->db = new Database();
     //
     $this->renders = new Renders();
 }
Exemplo n.º 2
0
<?php

// $Id: index.php 336 2009-03-28 10:38:54Z cubegames $
/**
 * Initialization page
 * @author Ryan McCue <*****@*****.**>
 * @package Lilina
 * @version 1.0
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 */
/** */
define('LILINA_PATH', dirname(__FILE__));
define('LILINA_INCPATH', LILINA_PATH . '/inc');
$settings = array();
error_reporting(E_ALL);
require_once LILINA_INCPATH . '/core/install-functions.php';
lilina_check_installed();
require_once LILINA_INCPATH . '/core/conf.php';
lilina_level_playing_field();
require_once LILINA_INCPATH . '/core/plugin-functions.php';
$timer_start = lilina_timer_start();
require_once LILINA_INCPATH . '/core/version.php';
Locale::load_default_textdomain();
require_once LILINA_INCPATH . '/core/feed-functions.php';
require_once LILINA_INCPATH . '/core/file-functions.php';
require_once LILINA_INCPATH . '/core/skin.php';
do_action('init');
Templates::load();