Hi all,
We're using phpsupporttickets as our helpdesk, and I want to modify the search button so it searches the body field rather than subject field, problem is I can't find the search function on the index.php page. Does anyone here have experience with phpsupporttickets or can someone point me in the right direction as to how to edit an application similar to that? It seems to be on of those php scripts that autogenerates content, which I am not too familar with.Thanks in advance.
Edit: here is the code for the orginal page if this helps:
<?php
/**
* File containing the index page.
*
* @category Class
* @package PHPSupportTickets
* @author Ian Warner, <iwarner@triangle-solutions.com>
* @author Nicolas Connault, <nick@connault.com.au>
* @copyright (C) 2001 Triangle Solutions Ltd
* @version SVN: $Id: index.php 4 2005-12-13 01:47:15Z nicolas $
* @since File available since Release 1.1.1.1
* \\||
*/
class Timer
{
public static $timer;
}
session_start();
require_once('config.inc.php');
require_once 'Benchmark/Timer.php';
Timer::$timer = new Benchmark_Timer(DEBUG_PROFILE);
Timer::$timer->setMarker('config.inc.php');
require_once(PHPST_PATH . 'include/config.php');
Timer::$timer->setMarker('Config');
$_REQUEST = array_merge($_POST, $_GET);
PHPST_GUIFactory::$absoluteURL = BASE_URL . PHPST_INDEXPAGE;
$myGUI = null;
if (!isset($_SESSION['GUI']) || isset($_REQUEST['logout'])) {
// Upon first visit or logout, show login screen
$myGUI = PHPST_GUIFactory::getInstance('Login', array());
} elseif (isset($_REQUEST['login'])) {
// If login info sent, verify user and create appropriate GUI
$admin_type = PHPST_FormHandler::verify_login();
if (!$admin_type) {
// Validation failed. keep Login GUI and output errors
$myGUI = unserialize($_SESSION['GUI']);
$myGUI->update();
} else {
// Validation successful, create correct GUI
$myGUI = PHPST_GUIFactory::getInstance($admin_type);
}
} elseif (isset($_REQUEST['register'])) {
// If register info is sent from LoginGUI, try to add user
$result = PHPST_FormHandler::register_createuser();
if ($result === false || is_array($result)) {
$myGUI = unserialize($_SESSION['GUI']);
$myGUI->update();
} else {
$myGUI = PHPST_GUIFactory::getInstance('Client');
}
} else {
Timer::$timer->setMarker('Unserialize GUI');
$myGUI = unserialize($_SESSION['GUI']);
$myGUI->update();
}
Timer::$timer->setMarker('pre-output');
$myGUI->output();
Timer::$timer->setMarker('post-output');
$_SESSION['GUI'] = serialize($myGUI);
?>
and here is the URL for the app: http://www.phpsupporttickets.com/