-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsteptest.php
More file actions
executable file
·62 lines (47 loc) · 1.63 KB
/
steptest.php
File metadata and controls
executable file
·62 lines (47 loc) · 1.63 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
try {
session_start();
echo "1. Session started OK<br>";
define('LIBRARIES', './libraries/');
define('SOURCES', './sources/');
define('LAYOUT', 'layout/');
define('THUMBS', 'thumbs');
define('WATERMARK', 'watermark');
echo "2. Constants defined OK<br>";
require_once LIBRARIES . "config.php";
echo "3. Config loaded OK<br>";
require_once LIBRARIES . 'autoload.php';
echo "4. Autoload included OK<br>";
new AutoLoad();
echo "5. AutoLoad instantiated OK<br>";
$injection = new AntiSQLInjection();
echo "6. AntiSQLInjection OK<br>";
$d = new PDODb($config['database']);
echo "7. Database connection OK<br>";
$flash = new Flash();
echo "8. Flash OK<br>";
$seo = new Seo($d);
echo "9. SEO OK<br>";
$emailer = new Email($d);
echo "10. Email OK<br>";
$router = new AltoRouter();
echo "11. Router OK<br>";
$cache = new Cache($d);
echo "12. Cache OK<br>";
$func = new Functions($d, $cache);
echo "13. Functions OK<br>";
echo "All classes loaded successfully!<br>";
} catch (Exception $e) {
echo "ERROR: " . $e->getMessage() . "<br>";
echo "File: " . $e->getFile() . "<br>";
echo "Line: " . $e->getLine() . "<br>";
echo "Trace:<br><pre>" . $e->getTraceAsString() . "</pre>";
} catch (Error $e) {
echo "FATAL ERROR: " . $e->getMessage() . "<br>";
echo "File: " . $e->getFile() . "<br>";
echo "Line: " . $e->getLine() . "<br>";
echo "Trace:<br><pre>" . $e->getTraceAsString() . "</pre>";
}
?>