Removing webchatdeny see #6083

skala
Julio Montoya 12 years ago
parent fceceb5903
commit b34ca38e46
  1. 3
      robots.txt
  2. 33
      webchatdeny.php

@ -24,10 +24,9 @@ Disallow: /main/
Disallow: /plugin/
Disallow: /searchdb/
Disallow: /tests/
# Files
Disallow: /license.txt
Disallow: /README.txt
Disallow: /webchatdeny.php
Disallow: /whoisonline.php
Disallow: /whoisonlinesession.php

@ -1,33 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
/**
* @todo can't this be moved to a different file so that we can delete this file?
* Is this still in use? If not, then it should be removed or maybe offered as an extension
*/
/**
* Deletes the web-chat request form the user table
*/
// name of the language file that needs to be included
$language_file = 'index';
// including necessary files
include_once './main/inc/global.inc.php';
// table definitions
$track_user_table = Database::get_main_table(TABLE_MAIN_USER);
if (isset($_user['user_id']) && $_user['user_id'] != '') {
$_user['user_id'] = intval($_user['user_id']);
$sql = "update $track_user_table set chatcall_user_id = '', chatcall_date = '', chatcall_text='DENIED' where (user_id = ".$_user['user_id'].")";
$result = Database::query($sql);
}
Display::display_header();
$message = get_lang('RequestDenied').'<br /><br /><a href="javascript: history.back();">'.get_lang('Back').'</a>';
Display::display_normal_message($message);
/* FOOTER */
Display::display_footer();
Loading…
Cancel
Save