tiki-live_support_client.php 1.02 KB
Newer Older
1
<?php
changi67's avatar
changi67 committed
2 3 4
/**
 * @package tikiwiki
 */
5
// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
changi67's avatar
changi67 committed
6
// 
7 8
// 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
9
// $Id$
10 11 12

require_once ('tiki-setup.php');
include_once ('lib/live_support/lslib.php');
changi67's avatar
changi67 committed
13 14 15
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
16
header("Cache-Control: post-check=0, pre-check=0", false);
changi67's avatar
changi67 committed
17
header("Pragma: no-cache"); // HTTP/1.0
18
$access->check_feature('feature_live_support');
19
if (!$lslib->operators_online()) {
changi67's avatar
changi67 committed
20
	header("location: tiki-live_support_message.php");
lrargerich's avatar
lrargerich committed
21 22
	die;
}
23 24
$smarty->assign('senderId', md5(uniqid('.')));
if ($user) {
25
	$smarty->assign('user_email', $userlib->get_user_email($user));
26 27 28
}
// Display the template
$smarty->display("tiki-live_support_client.tpl");