-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (33 loc) · 1.12 KB
/
index.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
<?php
if (file_exists("core/.config/config.php")) {
require("core/.config/config.php");
} else {
// echo "<body>\n<h1>Error 1</h1>\n<p>Brak konfiguracji aplikacji</p>\n</body>";
include("installer.php");
exit;
}
if (file_exists("core/.config/con.fig.php")) {
require("core/.config/con.fig.php");
} else {
echo "<body>\n<h1>Error 2</h1>\n<p>Brak konfiguracji połączenia z serweram bazy danych</p>\n</body>";
exit;
}
if (file_exists("core/lib/funkcje.php")) {
include("core/lib/funkcje.php");
} else {
echo "<body>\n<h1>Error 3</h1>\n<p>Brak siłnika apliakcji, nie ma funkcji</p>\n</body>";
exit;
}
if ($dev == 1) {
ini_set('display_errors', 'On');
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE);
}
if (file_exists("public/include-base/head.php"))
include("public/include-base/head.php");
if (file_exists("public/include-base/nav.php"))
include("public/include-base/nav.php");
if (file_exists("public/include-base/body.php"))
include("public/include-base/body.php");
if (file_exists("public/include-base/footer.php"))
include("public/include-base/footer.php");
?>