tiki-live_support_client.php 1015 Bytes
Newer Older
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/lslib.php');
changi67's avatar
changi67 committed
10 11 12
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
lrargerich's avatar
lrargerich committed
13
header("Cache-Control: post-check=0, pre-check=0", false);
changi67's avatar
changi67 committed
14
header("Pragma: no-cache"); // HTTP/1.0
15
$access->check_feature('feature_live_support');
16
if (!$lslib->operators_online()) {
changi67's avatar
changi67 committed
17
	header("location: tiki-live_support_message.php");
lrargerich's avatar
lrargerich committed
18 19
	die;
}
20 21
$smarty->assign('senderId', md5(uniqid('.')));
if ($user) {
22
	$smarty->assign('user_email', $userlib->get_user_email($user));
23 24 25
}
// Display the template
$smarty->display("tiki-live_support_client.tpl");