Esempio n. 1
0
 public static function init()
 {
     // for mac
     header('Content-Type: text/html; charset=utf-8');
     date_default_timezone_set('Europe/Moscow');
     LayoutsConfig::setAdminLayoutClassName(LayoutBootstrap::class);
 }
Esempio n. 2
0
 public static function init()
 {
     date_default_timezone_set('Europe/Moscow');
     DBConfig::setDBSettingsObj(AuthConstants::DB_NAME_PHPAUTH, new DBSettings('localhost', 'db_phpauthdemo', 'root', '1'));
     CacheConfig::addServerSettingsObj(new MemcacheServerSettings('localhost', 11211));
     AuthConfig::setExtraCookiesArr(['ignore_nginx_cache' => 1]);
     AuthConfig::setAdminActionsBaseClassname(AdminDemoActionsBase::class);
     LayoutsConfig::setAdminLayoutClassName(LayoutBootstrap::class);
     // AuthConfig::setUserEventClass(UserEvents::class);
     //AuthConfig::setFullAccessCookieName('php_auth');
     /*
     $conf['return_false_if_no_route'] = true; // for local php server
     
     $conf['php-bt'] = [
         'menu_classes_arr' => [
             \OLOG\Auth\Admin\AuthAdminMenu::class
         ],
         'application_title' => 'Auth demo'
     ];
     
     $conf['php_auth'] = [
         'full_access_cookie_name' => 'jkhbsdfhjvkdfvjgvasdc'
     ];
     
     return $conf;
     */
 }