forked from AppStateESS/phpwebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php.txt
More file actions
33 lines (29 loc) · 1002 Bytes
/
test.php.txt
File metadata and controls
33 lines (29 loc) · 1002 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
32
33
<?php
// copy this file in your phpwebsite root directory as
// test.php. Use only for development.
mb_internal_encoding('UTF-8');
/**
* Include the defines used in Global library
*/
/**
* DISPLAY_ERRORS set in Config/Defines.php
*/
ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);
require_once 'config/core/config.php';
require_once 'config/core/source.php';
if (file_exists(PHPWS_SOURCE_DIR . 'core/conf/defines.php')) {
require_once(PHPWS_SOURCE_DIR . 'core/conf/defines.php');
} else {
require_once(PHPWS_SOURCE_DIR . 'core/conf/defines.dist.php');
}
date_default_timezone_set(DATE_SET_SERVER_TIME_ZONE);
require_once 'Global/Functions.php';
set_exception_handler(array('Error', 'exceptionHandler'));
if (ERRORS_AS_EXCEPTION) {
set_error_handler(array('Error', 'errorHandler'));
}
/* * ************************************************* */
echo 'This is a test file for phpwebsite functionality';
/* * *************************************************** */
?>