Feature #6083 ยป webchatdeny.php
1 |
<?php |
---|---|
2 |
/* For licensing terms, see /license.txt */ |
3 |
|
4 |
/** |
5 |
* @todo can't this be moved to a different file so that we can delete this file? |
6 |
* Is this still in use? If not, then it should be removed or maybe offered as an extension |
7 |
*/ |
8 |
/** |
9 |
* Deletes the web-chat request form the user table |
10 |
*/ |
11 |
|
12 |
// name of the language file that needs to be included |
13 |
$language_file = 'index'; |
14 |
|
15 |
// including necessary files |
16 |
include_once './main/inc/global.inc.php'; |
17 |
|
18 |
// table definitions |
19 |
$track_user_table = Database::get_main_table(TABLE_MAIN_USER); |
20 |
if (isset($_user['user_id']) && $_user['user_id'] != '') { |
21 |
$_user['user_id'] = intval($_user['user_id']); |
22 |
$sql = "update $track_user_table set chatcall_user_id = '', chatcall_date = '', chatcall_text='DENIED' where (user_id = ".$_user['user_id'].")"; |
23 |
$result = Database::query($sql); |
24 |
} |
25 |
|
26 |
Display::display_header(); |
27 |
|
28 |
$message = get_lang('RequestDenied').'<br /><br /><a href="javascript: history.back();">'.get_lang('Back').'</a>'; |
29 |
Display::display_normal_message($message); |
30 |
|
31 |
/* FOOTER */ |
32 |
|
33 |
Display::display_footer(); |