I am using an open source helpdesk and want to add in a few links to files that I have created but I am having trouble as they do not appear when I run the helpdesk
Code: Select all
define('IN_SCRIPT',1);
/* Get all the required files and functions */
require_once('hesk_settings.inc.php');
require_once('language/'.$hesk_settings['language'].'.inc.php');
require_once('inc/common.inc.php');
hesk_session_start();
hesk_isLoggedIn();
require_once('inc/database.inc.php');
hesk_dbConnect() or hesk_error("$hesklang[cant_connect_db] $hesklang[contact_webmsater] $hesk_settings[webmaster_mail]!");
/* Print header */
require_once('inc/header.inc.php');
/* Print admin navigation */
require_once('inc/show_admin_nav.inc.php');
?>
</td>
</tr>
<tr>
<td>
<h3 align="center"><?php echo $hesklang['open_tickets']; ?></h3>
<?php
require_once('inc/print_tickets.inc.php');
?>
<hr>
<?php
require_once('inc/show_search_form.inc.php');Code: Select all
/* 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="form.html.php"><?php echo $hesklang['form']; ?></a>
| <a href="profile.php"><?php echo $hesklang['profile']; ?></a>
| <a href="admin_settings.php"><?php echo $hesklang['settings']; ?></a>
<a href="admin.php?a=logout"><?php echo $hesklang['logout']; ?></a>
|
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</center>
</div>This is the code that<a href="form.html"><?php echo $hesklang['form']; ?></a>
but nothing happens when I run the program.If I delete one of the links shown above then the link will be deleted when I run the program so I am sure I am editing the correct file.Anybody any ideas?I am a novice at PHP so if I have left any information out I can paste it.
Thanks in advance