Groundwork Support Forum
Community forum for Groundwork Open Source Products
 
 FAQ   Search   Memberlist   Usergroups   Register 
 Profile   Log in to check your private messages   Log in 

Logout hack.

 
       Groundwork Support Forum Forum Index -> Open Forum
View previous topic :: View next topic  
Author Message
mharber



Joined: 06 Mar 2006
Posts: 1
Location: memphis, tn

Posted: Mon Mar 06, 2006 12:20 pm    Post subject: Logout hack.

For those that are annoyed with going to the "Home" page to logout. I have thrown in a little hack to have the logout option on the header nav bar. Below is the code.

File: includes/guava.inc.php
Line: 1159
Code:

<td colspan="4"> <span class="header_menu" id="headermenu"><?=$this->printMenu();?></span></td><td><a href="http://nagios/monitor/logout.php">Log Out</a></td>
Back to top
tdondich



Joined: 13 Feb 2006
Posts: 11
Location: Groundwork, San Francisco

Posted: Tue Mar 07, 2006 12:33 pm    Post subject:

Thanks for the suggestion. This was definately something customers have been wanting. I've made some modifications to your patchdue to you have a hardcoded server url and a modification to the colspan attribute to the first td, since you're creating a new td. The code below will function:

Code:
<tr class="header_menu">
   <td colspan="3"> <span class="header_menu" id="headermenu"><?=$this->printMenu();?></span></td><td><a href="<?=GUAVA_WS_ROOT;?>logout.php">Logout</a></td>
</tr>


Notice the GUAVA_WS_ROOT definition usage. This will always point to the root of the Guava installation. Other global definitions you can use are defined in config.inc.php in the includes/ directory. Some of the useful ones are:

GUAVA_SYS_NAME: the system name.
GUAVA_WS_ROOT: the web path to the Guava installation
GUAVA_FS_ROOT: the full filesystem path to the Guava installation
GUAVA_SSO_ENABLE: boolean, states if single sign-on is used.

In later versions, these variables will be contained in a outside configuration file (non-php) and will be stored inside the Guava object. You'll need to talk to Guava's API's to get these values later on. They'll be marked deprecated in 1.2, but will be gone in 2.0.
_________________
Project Maintainer for Guava, Status Viewer and Fruity at Groundwork Open Source.
Back to top
tdondich



Joined: 13 Feb 2006
Posts: 11
Location: Groundwork, San Francisco

Posted: Tue Mar 07, 2006 12:44 pm    Post subject:

May I ask how you are using Guava? Are you using it strictly for IT Monitoring? Are you using it as a development platform?

Taylor
_________________
Project Maintainer for Guava, Status Viewer and Fruity at Groundwork Open Source.
Back to top
Guest






Posted: Fri Mar 10, 2006 8:01 am    Post subject:

We are still looking at this and other solutions to monitor customer networks. That logout button was getting really annoying.
Back to top
Display posts from previous:   
       Groundwork Support Forum Forum Index -> Open Forum All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group