• Home
  • About
  • Site Rules
squashbrain
/little bytes of fun/
Menu
  • Home
  • About
  • Site Rules
Home  /  Coders Corner • Misc • Snippets  /  FengOffice logoff redirect
02 November 2012

FengOffice logoff redirect

Written by Chris McClenny
Coders Corner, Misc, Snippets fengoffice, logoff, office, productivity, url Leave a Comment

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!

FengOffice Logo

Don’t forget to download FengOffice.  Its a great open source self hosted project management system.

Chris McClenny

 Previous Article Software Development tools
Next Article   Run Android JellyBean 4.2 on Windows

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • EPOS – ESC/P Printing graphics to receipt printers
  • Run Android JellyBean 4.2 on Windows
  • FengOffice logoff redirect
  • Software Development tools

Archives

  • October 2013
  • August 2013
  • November 2012
  • August 2012

Categories

  • "How To" Guides
  • Articles
  • Coders Corner
  • Delphi
  • Misc
  • Snippets
© Copyright 2014. Theme by BloomPixel.