If you are using FengOffice and want to be redirected to your main site after logout, here is how you do it.
Step 1:
Edit /home/public_html/fengoffice/config/config.php and add the following php constant.
define('SITE_ROOT_URL', 'http://yoursite.com/');
Step 2:
Edit /home/public_html/fengoffice/application/controllers/AccessController.class.php
and replace $this->redirectTo(‘access’, ‘login’) with $this->redirectToUrl(SITE_ROOT_URL)
function logout() { ApplicationLogs::createLog(logged_user(),ApplicationLogs::ACTION_LOGOUT,false,false,true,get_ip_address()); CompanyWebsite::instance()->logUserOut(); //$this->redirectTo('access', 'login'); //<-- REMOVE $this->redirectToUrl(SITE_ROOT_URL); //<-- ADD } // logout
Try it out!
Don’t forget to download FengOffice. Its a great open source self hosted project management system.
Leave a Reply