-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathincludes.php
More file actions
31 lines (26 loc) · 797 Bytes
/
includes.php
File metadata and controls
31 lines (26 loc) · 797 Bytes
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
<?php
/*------------------------------------
* define absolute path
*------------------------------------*/
define('APATH', dirname('__FILE__'));
/*------------------------------------
* Set path array
*------------------------------------*/
$path = array(
APATH . '/controller',
APATH . '/objects',
APATH . '/views',
get_include_path()
);
/*------------------------------------
* include paths
*------------------------------------*/
set_include_path(implode(PATH_SEPARATOR,$path));
/*------------------------------------
* add required files here
*------------------------------------*/
require_once 'object_country.php';
require_once 'object_utilities.php';
require_once 'object_db.php';
require_once 'control_viewer.php';
?>