Example #1
0
 function menu($menu_selected, $uid = FALSE)
 {
     global $hlpdsk_theme, $name, $prefix, $file;
     $rows = Opentts::menu_values();
     $_BUTTONS = "";
     foreach ($rows as $line) {
         if ($line->file == $menu_selected) {
             $selected = TRUE;
         } else {
             $selected = FALSE;
         }
         $_BUTTONS .= draw_button($line->link, $line->title, $line->image, $selected);
         $_EXTRA_BUTTONS = show_hidden() . draw_extra_button();
     }
     $textfile = "themes/{$hlpdsk_theme}/menu.html";
     #$custom_title=get_cross_value("{$prefix}_modules","custom_title"," where title='$name'");
     $custom_title = $name;
     $text = addslashes(implode("", file($textfile)));
     eval("\$content=\"{$text}\";");
     echo $content;
     return TRUE;
 }
function notify()
{
    #email ticket
    $assign_msg_subject = Opentts::loadvar("agent_subject");
    eval("\$assign_msg_subject=\"{$assign_msg_subject}\";");
    $assign_msg_body = Opentts::loadvar("agent_email_body");
    eval("\$assign_msg_body=\"{$assign_msg_body}\";");
    $reply_msg_subject = Opentts::loadvar("client_email_subject");
    eval("\$reply_msg_subject=\"{$reply_msg_subject}\";");
    $reply_msg_body = Opentts::loadvar("client_email_body");
    eval("\$reply_msg_body=\"{$reply_msg_body}\";");
    if ($t_sms) {
        priv_msg("{$t_from}", "{$t_assigned}", "{$assign_msg_subject}", "{$assign_msg_body}");
        priv_msg("{$t_assigned}", "{$t_from}", "{$reply_msg_subject}", "{$reply_msg_body}");
    }
    if ($t_email) {
        $agent_email = User::fetch_email_by_uid($t_assigned);
        $issuer_email = User::fetch_email_by_uid($t_from);
        mail("{$agent_email}", "{$assign_msg_subject}", "{$assign_msg_body}");
        mail("{$issuer_email}", "{$reply_msg_subject}", "{$reply_msg_body}");
    }
}
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
require "../../Group-Office.php";
//authenticate the user
//if $GO_SECURITY->authenticate(true); is used the user needs admin permissons
$GO_SECURITY->authenticate();
//see if the user has access to this module
//for this to work there must be a module named 'example'
$GO_MODULES->authenticate('opentts');
require $GO_LANGUAGE->get_language_file('opentts');
//set the page title for the header file
$page_title = "Opentts";
require $GO_THEME->theme_path . "header.inc";
$tts = new db();
require_once "classes.php";
require_once "menu.php";
$tabtable = new tabtable('stats_tabtable', $helpdesk_title_stat, '100%', '400');
$tabtable->print_head();
if (Security::is_action_allowed("admin")) {
    echo "<center><font class=content>" . Opentts::status_stat() . "</center>";
    echo "<br>";
    echo "<center><font class=content>" . Opentts::cat_stat() . "</center>";
    echo "<br>";
    echo "<center><font class=content>" . Opentts::cat_status_stat() . "</center>";
}
$tabtable->print_foot();
?>

	
Example #4
0
/*                                                                      */
/* Copyright (c) 2002 by Meir Michanie                                  */
/* http://www.riunx.com                                                 */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
header('location: my_tickets.php');
require "../../Group-Office.php";
//authenticate the user
//if $GO_SECURITY->authenticate(true); is used the user needs admin permissons
$GO_SECURITY->authenticate();
require $GO_LANGUAGE->get_language_file('opentts');
//see if the user has access to this module
//for this to work there must be a module named 'example'
$GO_MODULES->authenticate('opentts');
//set the page title for the header file
$page_title = "Opentts";
require $GO_THEME->theme_path . "header.inc";
$tts = new db();
require_once "classes.php";
require_once "menu.php";
$tabtable = new tabtable('index_tabtable', $helpdesk_title_start, '100%', '400');
$tabtable->print_head();
Opentts::welcome();
$tabtable->print_foot();
?>

	
Example #5
0
function mod_globals($mod_varname, $mod_definition, $mod_action)
{
    Opentts::mod_globals($mod_varname, $mod_definition, $mod_action);
}
Example #6
0
<?php

Opentts::menu("index.php");