upgrade_school_calendar.php 739 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. // not used??
  4. exit;
  5. require_once '../inc/global.inc.php';
  6. $allow = api_get_configuration_value('extra');
  7. if (empty($allow)) {
  8. exit;
  9. }
  10. Display::display_header($nameTools, "Tracking");
  11. foreach ($_POST as $x) {
  12. echo "$x <br />";
  13. }
  14. foreach ($_POST as $index => $valeur) {
  15. $$index = Database::escape_string(trim($valeur));
  16. }
  17. ?>
  18. <?php echo get_lang('edit_save'); ?>
  19. <?php
  20. $d_id = (int) $d_id;
  21. $d_number = (int) $d_number;
  22. $sql4 = "UPDATE set_module SET cal_day_num = $d_number WHERE id = $d_id ";
  23. Database::query($sql4);
  24. print_r(
  25. UnserializeApi::unserialize(
  26. 'not_allowed_classes',
  27. Security::remove_XSS($_POST['aaa'])
  28. )
  29. );
  30. Display::display_footer();