diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-12-28 14:38:20 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-12-28 14:38:20 +0100 |
commit | e99281261767710f96b9967a0ab03a3ea24a05e0 (patch) | |
tree | 0630f0838ddcc13f779fcef7f634326eeafce77e /index.php | |
download | r7r-repo-e99281261767710f96b9967a0ab03a3ea24a05e0.tar.gz r7r-repo-e99281261767710f96b9967a0ab03a3ea24a05e0.tar.bz2 r7r-repo-e99281261767710f96b9967a0ab03a3ea24a05e0.zip |
Initial Commit.
* Many files copied from Ratatöskr (maybe there should be some kind of
libratatoeskr ?)
* Included the Stupid Template Engine
* Wrote first version of models.php
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/index.php b/index.php new file mode 100644 index 0000000..3ce0daa --- /dev/null +++ b/index.php @@ -0,0 +1,23 @@ +<?php + +/* Load and check config */ +require_once(dirname(__FILE__) . "/config.php"); +if(!defined("CONFIG_FILLED_OUT")) + die("Config file not filled out."); + +/* Include more files... */ +require_once(dirname(__FILE__) . "/stupid_template_engine.php"); +require_once(dirname(__FILE__) . "/db.php"); +require_once(dirname(__FILE__) . "/models.php"); +require_once(dirname(__FILE__) . "/urlprocess.php"); +require_once(dirname(__FILE__) . "/pwhash.php"); + +/* init STE */ +$tpl_basedir = dirname(__FILE__). "/templates"; +$ste = new \ste\STECore(new \ste\FilesystemStorageAccess("$tpl_basedir/src", "$tpl_basedir/transc")); + +/* start session and check auth. */ +session_start(); + + +?> |