Редакция 210 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 210 | Редакция 238 | ||
---|---|---|---|
Строка 24... | Строка 24... | ||
24 | require_once dirname(__FILE__)."/DB.php"; |
24 | require_once dirname(__FILE__)."/DB.php"; |
25 | require_once dirname(__FILE__)."/config.inc.php"; |
25 | require_once dirname(__FILE__)."/config.inc.php"; |
26 | require dirname(__FILE__)."/Smarty.class.php"; |
26 | require dirname(__FILE__)."/Smarty.class.php"; |
27 | require dirname(__FILE__)."/core.php"; |
27 | require dirname(__FILE__)."/core.php"; |
28 | require dirname(__FILE__)."/security.php"; |
28 | require dirname(__FILE__)."/security.php"; |
- | 29 | require dirname(__FILE__)."/theme.php"; |
|
29 | 30 | ||
30 | $dsn = "mysql://".$DBuser.":".$DBpass."@".$DBhost."/".$DBname; |
31 | $dsn = "mysql://".$DBuser.":".$DBpass."@".$DBhost."/".$DBname; |
31 | $options = array( |
32 | $options = array( |
32 | 'debug' => 2, |
33 | 'debug' => 2, |
33 | 'portability' => DB_PORTABILITY_ALL, |
34 | 'portability' => DB_PORTABILITY_ALL, |
Строка 40... | Строка 41... | ||
40 | 41 | ||
41 | $query =& $db->query("SET NAMES utf8"); |
42 | $query =& $db->query("SET NAMES utf8"); |
42 | 43 | ||
43 | $core = new Core; |
44 | $core = new Core; |
44 | $secure = new Security; |
45 | $secure = new Security; |
45 | - | ||
- | 46 | $theme = new Theme; |
|
46 | $smarty = new Smarty; |
47 | $smarty = new Smarty; |
47 | $smarty->compile_check = true; |
48 | $smarty->compile_check = true; |
48 | 49 | ||
49 | ?>
|
50 | ?>
|