complete reminder mail to users without task see BT#489

skala
Carlos Vargas 16 years ago
parent 28ae52d104
commit 5f2932d70c
  1. 5
      main/work/work.lib.php
  2. 8
      main/work/work.php

@ -104,8 +104,9 @@ function display_action_links($cur_dir_path, $always_show_tool_options, $always_
$display_output .= "<a href=\"".api_get_self()."?".api_get_cidreq()."&amp;curdirpath=".$cur_dir_path."&amp;origin=$origin&amp;gradebook=$gradebook&amp;list=with\">".
Display::return_icon('check.gif', get_lang('ViewUsersWithTask')).' '.get_lang('ViewUsersWithTask').
"</a>\n";
$display_output .= "<a href=\"".api_get_self()."?".api_get_cidreq()."&amp;curdirpath=".$cur_dir_path."&amp;origin=$origin&amp;gradebook=$gradebook&amp;list=without&amp;action=send_mail&amp;sec_token=".$_SESSION['sec_token']."\">".
$_SESSION['token'] = time();
$display_output .= "<a href=\"".api_get_self()."?".api_get_cidreq()."&amp;curdirpath=".$cur_dir_path."&amp;origin=$origin&amp;gradebook=$gradebook&amp;list=without&amp;action=send_mail&amp;sec_token=".$_SESSION['token']."\">".
Display::return_icon('messagebox_warning.gif', get_lang('ReminderMessage')).' '.get_lang('ReminderMessage').
"</a>\n";
}

@ -217,8 +217,12 @@ if (isset($_GET['list']) && Security::remove_XSS($_GET['list'])=='without') {
$display_list_users_without_publication= false;
}
if (isset($_GET['action']) && $_GET['action'] == 'send_mail') {
send_reminder_users_without_publication($publication['id']);
if (isset($_GET['action']) && $_GET['action'] == 'send_mail') {
if ($_GET['sec_token'] == $_SESSION['token']) {
send_reminder_users_without_publication($publication['id']);
unset($_SESSION['token']);
}
}
api_protect_course_script(true);

Loading…
Cancel
Save