course_home.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * HOME PAGE FOR EACH COURSE
  5. *
  6. *
  7. * Edit visibility of tools
  8. *
  9. * visibility = 1 - everybody
  10. * visibility = 0 - course admin (teacher) and platform admin
  11. *
  12. * Who can change visibility ?
  13. *
  14. * admin = 0 - course admin (teacher) and platform admin
  15. * admin = 1 - platform admin
  16. *
  17. * Show message to confirm that a tools must be hide from available tools
  18. *
  19. * visibility 0,1
  20. *
  21. *
  22. * @package chamilo.course_home
  23. */
  24. /*
  25. if (isset($_GET['action']) && $_GET['action'] == 'subscribe') {
  26. if (Security::check_token('get')) {
  27. Security::clear_token();
  28. $auth = new AuthLib();
  29. $msg = $auth->subscribe_user($course_code);
  30. if (!empty($msg)) {
  31. $show_message .= Display::return_message(get_lang($msg));
  32. }
  33. }
  34. }*/
  35. /* Is the user allowed here? */
  36. //api_protect_course_script(true);
  37. /* STATISTICS */
  38. /*
  39. if (!isset($coursesAlreadyVisited[$course_code])) {
  40. Event::accessCourse();
  41. $coursesAlreadyVisited[$course_code] = 1;
  42. Session::write('coursesAlreadyVisited', $coursesAlreadyVisited);
  43. }*/