webchatdeny.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. ==============================================================================
  19. * Deletes the web-chat request form the user table
  20. *
  21. ==============================================================================
  22. */
  23. $langFile = "index";
  24. include_once('./main/inc/global.inc.php');
  25. $track_user_table = Database::get_main_table(MAIN_USER_TABLE);
  26. $sql="update $track_user_table set chatcall_user_id = '', chatcall_date = '', chatcall_text='DENIED' where (user_id = $_uid)";
  27. $result=api_sql_query($sql,__FILE__,__LINE__);
  28. Display::display_header();
  29. $message=get_lang("RequestDenied")."<br><br><a href='javascript:history.back()'>".get_lang("Back")."</a>";
  30. Display::display_normal_message($message);
  31. /*
  32. ==============================================================================
  33. FOOTER
  34. ==============================================================================
  35. */
  36. Display::display_footer();
  37. ?>