Open Sencillo  2015.003
Long live the simplicity of PHP
 All Data Structures Namespaces Functions
/home/peter/git/OpenSencillo/basicstrap.php
1 <?php
2 /*~ basicstrap.php
3 .---------------------------------------------------------------------------.
4 | Software: Sencillo Basic Bootstrap |
5 | Version: 2015.003 |
6 | Contact: ph@mastery.sk |
7 | ------------------------------------------------------------------------- |
8 | Author: Bc. Peter Horváth (original founder) |
9 | Copyright (c) 2015, Bc. Peter Horváth. All Rights Reserved. |
10 | ------------------------------------------------------------------------- |
11 | License: Distributed under the General Public License (GPL) |
12 | http://www.gnu.org/licenses/gpl-3.0.html |
13 | This program is distributed in the hope that it will be useful - WITHOUT |
14 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
15 | FITNESS FOR A PARTICULAR PURPOSE. |
16 '---------------------------------------------------------------------------'
17 ~*/
18 error_reporting(E_ERROR | E_PARSE);
19 include("./fw_headers/mysql-config.php");
20 include("./fw_headers/main-config.php");
21 require("./fw_core/core_sql.php");
22 require("./fw_headers/session.php");
23 require("./fw_headers/cookies.php");
24 require("./cache.php");
25 require("./fw_core/core_functions.php");
26 require("./fw_libraries/lib_identificator.php");
27 $inc=new library;
28 $inc->start();
29 $paths = $inc->exportPath();
30 $realPath = array();
31 foreach($paths as $val)
32 {
33  if(file_exists($val))
34  {
35  require_once("$val");
36  $realPath[] = $val;
37  }
38 }
39 unset($paths);
40 
41 if(PAGE=='admin')
42 {
43  require_once("./fw_core/core_admin.php");
44 }
45 ?>