mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Интеграция с Zend Framework
Класс интеграции + вывод версии ZF в админку (для своевременного обновления).
This commit is contained in:
parent
1ac86c5b0d
commit
0387f38d7f
7 changed files with 111 additions and 2 deletions
|
@ -19,6 +19,10 @@ header('X-Frame-Options: SAMEORIGIN');
|
|||
// Get initial config
|
||||
require(BB_ROOT . 'library/config.php');
|
||||
|
||||
// Load Zend Framework
|
||||
require(CLASS_DIR . 'zendLoader.php');
|
||||
ZendLoader::getInstance()->setupAutoloader(BB_ROOT . '/library');
|
||||
|
||||
$server_protocol = ($bb_cfg['cookie_secure']) ? 'https://' : 'http://';
|
||||
$server_port = (in_array($bb_cfg['server_port'], array(80, 443))) ? '' : ':' . $bb_cfg['server_port'];
|
||||
define('FORUM_PATH', $bb_cfg['script_path']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue