tiki-live_support_message.php 898 Bytes
Newer Older
lrargerich's avatar
minor  
lrargerich committed
1
<?php
2
// (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project
changi67's avatar
changi67 committed
3
// 
4 5
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
changi67's avatar
changi67 committed
6
// $Id$
7 8 9

require_once ('tiki-setup.php');
include_once ('lib/live_support/lsadminlib.php');
10
$access->check_feature('feature_live_support');
11 12 13
$smarty->assign('sent', 'n');
$smarty->assign('nomsg', 'y');
if (isset($_REQUEST['save'])) {
changi67's avatar
changi67 committed
14
	$lsadminlib->post_support_message($_REQUEST['username'], $user, $_REQUEST['user_email'], $_REQUEST['data'], $_REQUEST['priority'], $_REQUEST['module'], 'o', '');
15
	$smarty->assign('sent', 'y');
lrargerich's avatar
minor  
lrargerich committed
16
}
17
if ($user) {
18
	$smarty->assign('user_email', $userlib->get_user_email($user));
lrargerich's avatar
minor  
lrargerich committed
19
}
20
$smarty->assign('modules', $lsadminlib->get_modules());
lrargerich's avatar
minor  
lrargerich committed
21
// Display the template
22
$smarty->display("tiki-live_support_client.tpl");