Hide Settings from other admins
Posted: Sat May 17, 2008 5:12 pm
/*************************************
Title: Hide Settings from other admins
Version: 0.1
Author: AbdulAziz AlOraij
Short description:
I used to face a problem of other admins, seeing and being able to edit Hesk general info and settings, specially DB info.
So I created this small link hider, by editing "inc/show_admin_nav.inc.php" here is what it should be like:
*************************************/
Title: Hide Settings from other admins
Version: 0.1
Author: AbdulAziz AlOraij
Short description:
I used to face a problem of other admins, seeing and being able to edit Hesk general info and settings, specially DB info.
So I created this small link hider, by editing "inc/show_admin_nav.inc.php" here is what it should be like:
*************************************/
Code: Select all
<?php
/*******************************************************************************
* Title: Helpdesk software Hesk
* Version: 0.94.1 @ October 25, 2007
* Author: Klemen Stirn
* Website: http://www.phpjunkyard.com
********************************************************************************
* COPYRIGHT NOTICE
* Copyright 2005-2007 Klemen Stirn. All Rights Reserved.
*
* This script may be used and modified free of charge by anyone
* AS LONG AS COPYRIGHT NOTICES AND ALL THE COMMENTS REMAIN INTACT.
* By using this code you agree to indemnify Klemen Stirn from any
* liability that might arise from it's use.
*
* Selling the code for this program, in part or full, without prior
* written consent is expressly forbidden.
*
* Obtain permission before redistributing this software over the Internet
* or in any other medium. In all cases copyright and header must remain
* intact. This Copyright is in full effect in any country that has
* International Trade Agreements with the United States of America or
* with the European Union.
*
* Removing any of the copyright notices without purchasing a license
* is illegal! To remove PHPJunkyard copyright notice you must purchase a
* license for this script. For more information on how to obtain a license
* please visit the site below:
* http://www.phpjunkyard.com/copyright-removal.php
*******************************************************************************/
/* Check if this is a valid include */
if (!defined('IN_SCRIPT')) {die($hesklang['attempt']);}
?>
<div align="center">
<center>
<table border="0" width="750" cellspacing="1" cellpadding="3" class="white">
<tr>
<td align="center" class="admin_white">
<a href="admin_main.php"><?php echo $hesklang['main_page']; ?></a>
| <a href="manage_users.php"><?php echo $hesklang['manage_users']; ?></a>
| <a href="manage_categories.php"><?php echo $hesklang['manage_cat']; ?></a>
| <a href="manage_canned.php"><?php echo $hesklang['manage_saved']; ?></a>
| <a href="profile.php"><?php echo $hesklang['profile']; ?></a>
<?php if($_SESSION[user] == "Administrator"){?>
| <a href="admin_settings.php"><?php echo $hesklang['settings']; ?></a>
<?php }?>
| <a href="admin.php?a=logout"><?php echo $hesklang['logout']; ?></a>
</td>
</tr>
</table>
</center>
</div>