twofa(); } if ( !$user || !$user['admin'] ) { $controller = new \admin\Controllers\UsersController( new \Domain\User\UserRepository( $mdb ) ); return $controller->login_form(); } $tpl = new \Tpl; $tpl -> content = \admin\Site::route(); return $tpl -> render( 'site/main-layout' ); } } ?>