| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 | 
							- <?php
 
- /**
 
-  *
 
-  * PHP Pro Bid $Id$ ywBq0GD/Wfo6NkXOTpHP+JXJC2leduaTfdJqu899Nds=
 
-  *
 
-  * @link        http://www.phpprobid.com
 
-  * @copyright   Copyright (c) 2017 Online Ventures Software & CodeCube SRL
 
-  * @license     http://www.phpprobid.com/license Commercial License
 
-  *
 
-  * @version     7.9 [rev.7.9.01]
 
-  */
 
- namespace Listings;
 
- use App\Bootstrap as AppBootstrap,
 
-     Ppb\Service;
 
- class Bootstrap extends AppBootstrap
 
- {
 
-     protected function _initUser()
 
-     {
 
-         $this->bootstrap('settings');
 
-         $this->bootstrap('authentication');
 
-         $this->bootstrap('rememberMe');
 
-         if (isset($this->_storage['id'])) {
 
-             $usersService = new Service\Users();
 
-             $user = $usersService->findBy('id', $this->_storage['id'], true);
 
-             if (count($user) > 0) {
 
-                 $this->_role = $user->getRole();
 
-                 $user['role'] = $this->_role;
 
-                 return $user;
 
-             }
 
-         }
 
-         return null;
 
-     }
 
-     protected function _initAcl()
 
-     {
 
-         $front = $this->getResource('FrontController');
 
-         $this->_acl = new Model\Acl();
 
-         $front->registerPlugin(
 
-             new Controller\Plugin\Acl($this->_acl, $this->_role));
 
-         $view = $this->getResource('view');
 
-         $view->navigation()
 
-             ->setAcl($this->_acl)
 
-             ->setRole($this->_role);
 
-     }
 
-     protected function _initPlugins()
 
-     {
 
-         $front = $this->getResource('FrontController');
 
-         $front->registerPlugin(new Controller\Plugin\ListingExistsCheck())
 
-             ->registerPlugin(new Controller\Plugin\UserVerificationCheck());
 
-         $this->_registerModuleControllerPlugins('Listings');
 
-     }
 
-     protected function _initListingViewHelpers()
 
-     {
 
-         $this->_registerModuleViewHelpers('Listings');
 
-     }
 
- }
 
 
  |