php BTS Content Management Framework 2009 Website http cmf barttos net

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
*
* BTS Content Management Framework (c) 2009
* Website: http://cmf.barttos.net/
*
* Copyright (c) 2009 Vartolomei Nicolae <nvartolomei@gmail.com>
* http://barttos.net Barttos <me@barttos.net>
*
* You are not able to use this software until i give you
* right for this. You are not have right to use this code
* in your comercial projects! Only for personal use! For
* any questions you can contact me by email or my site!
*
* @package core
* @version 0.2.1 beta
*
*/
session_start(); //start the session
/**
* If IN_ROOT is set to false we can't use all other included files.
*/
define('IN_ROOT', true);
/**
* For including files <ROOT_DIR . "config.php"> for example.
*/
define('ROOT_DIR', dirname(__file__) . "/");
/**
* All system configuration variables
*/
require_once "./configs/config.php";
/**
* File which will initialize system
*/
require_once SYS_DIR . "init.php";
/**
* Main file for application builded on this framework
* Secondary files will be included from this file
*/
require_once "./application.php";
/**
* Initialize main application
*/
$application = new app;
/**
* Fire all events & output all data to client.
*/
$application->fire();