webchatdeny.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004 Dokeos S.A.
  6. Copyright (c) Denes Nagy
  7. For a full list of contributors, see "credits.txt".
  8. The full license can be read in "license.txt".
  9. This program is free software; you can redistribute it and/or
  10. modify it under the terms of the GNU General Public License
  11. as published by the Free Software Foundation; either version 2
  12. of the License, or (at your option) any later version.
  13. See the GNU General Public License for more details.
  14. Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
  15. ==============================================================================
  16. */
  17. /**
  18. * @todo can't this be moved to a different file so that we can delete this file?
  19. * Is this still in use? If not, then it should be removed or maybe offered as an extension
  20. */
  21. /**
  22. ==============================================================================
  23. * Deletes the web-chat request form the user table
  24. ==============================================================================
  25. */
  26. // name of the language file that needs to be included
  27. $language_file = "index";
  28. // including necessary files
  29. include_once('./main/inc/global.inc.php');
  30. // table definitions
  31. $track_user_table = Database::get_main_table(TABLE_MAIN_USER);
  32. $sql="update $track_user_table set chatcall_user_id = '', chatcall_date = '', chatcall_text='DENIED' where (user_id = ".$_user['user_id'].")";
  33. $result=api_sql_query($sql,__FILE__,__LINE__);
  34. Display::display_header();
  35. $message=get_lang("RequestDenied")."<br><br><a href='javascript:history.back()'>".get_lang("Back")."</a>";
  36. Display::display_normal_message($message);
  37. /*
  38. ==============================================================================
  39. FOOTER
  40. ==============================================================================
  41. */
  42. Display::display_footer();
  43. ?>