read() ) { if (substr( $file, -4 ) == '.php' ) { require_once( _CORE_DIR . 'attrs/' .$file ); $classname = 'attr_' . substr( $file,0,-4 ); if ( class_exists( $classname ) ) { $loaded_attrs[] = substr( $file,0,-4 ); } } } } // Только для WEB окружения if ( $is_cli == false ) { require_once( _ENGINE_DIR . 'rewrite.php'); /* Авторизация админов */ require_once( _CORE_DIR . 'auth.core.php'); $auth = new auth(); /* Формы */ require_once( _CORE_DIR . 'walker.core.php'); require_once( _CORE_DIR . 'form.core.php'); require_once( _CORE_DIR . 'filter.core.php'); /* render */ require_once( _CORE_DIR . 'render.core.php'); $R = new render(); require_once( _CORE_DIR . 'blade/BladeOne.php'); $blade = new BladeOne( _BASE_DIR . '/bladetpl', _BASE_DIR . '/bladetpl/cache', BladeOne::MODE_AUTO ); $blade->share('auth', $auth); /* cat */ require_once( _CORE_DIR . 'cat.core.php'); $cat = new cat(); $blade->share('cat', $cat); } ?>