-
Notifications
You must be signed in to change notification settings - Fork 0
/
boot.php
41 lines (39 loc) · 1.71 KB
/
boot.php
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
<?php
/*-----------------------------------------------------------------------------
cheetan is licensed under the MIT license.
copyright (c) 2006 cheetan all right reserved.
http://php.cheetan.net/
-----------------------------------------------------------------------------*/
require_once LIBDIR . DIRECTORY_SEPARATOR . "object.php";
require_once LIBDIR . DIRECTORY_SEPARATOR . "database.php";
require_once LIBDIR . DIRECTORY_SEPARATOR . "sanitize.php";
require_once LIBDIR . DIRECTORY_SEPARATOR . "validate.php";
require_once LIBDIR . DIRECTORY_SEPARATOR . "controller.php";
require_once LIBDIR . DIRECTORY_SEPARATOR . "view.php";
require_once LIBDIR . DIRECTORY_SEPARATOR . "model.php";
require_once LIBDIR . DIRECTORY_SEPARATOR . "dispatch.php";
if( file_exists( LIBDIR . DIRECTORY_SEPARATOR . "db" . DIRECTORY_SEPARATOR . "common.php" ) )
{
require_once LIBDIR . DIRECTORY_SEPARATOR . "db" . DIRECTORY_SEPARATOR . "common.php";
}
if( file_exists( LIBDIR . DIRECTORY_SEPARATOR . "db" . DIRECTORY_SEPARATOR . "mysql.php" ) )
{
require_once LIBDIR . DIRECTORY_SEPARATOR . "db" . DIRECTORY_SEPARATOR . "mysql.php";
}
if( file_exists( LIBDIR . DIRECTORY_SEPARATOR . "db" . DIRECTORY_SEPARATOR . "pgsql.php" ) )
{
require_once LIBDIR . DIRECTORY_SEPARATOR . "db" . DIRECTORY_SEPARATOR . "pgsql.php";
}
if( file_exists( LIBDIR . DIRECTORY_SEPARATOR . "db" . DIRECTORY_SEPARATOR . "txtsql.php" ) )
{
require_once LIBDIR . DIRECTORY_SEPARATOR . "db" . DIRECTORY_SEPARATOR . "txtsql.php";
}
if( !defined( "SCRIPTFILE" ) )
{
define( "SCRIPTFILE", basename( $_SERVER["SCRIPT_FILENAME"] ) );
}
if( !defined( "SCRIPTDIR" ) )
{
define( "SCRIPTDIR", dirname( $_SERVER["SCRIPT_FILENAME"] ) . DIRECTORY_SEPARATOR );
}
?>