Zeile 118 | Zeile 118 |
---|
$mybb->input['day'] = '*'; }
|
$mybb->input['day'] = '*'; }
|
$mybb->input['month'] = check_time_values($mybb->input['month'], 1, 12, 'array');
| $mybb->input['month'] = check_time_values($mybb->get_input('month', MyBB::INPUT_ARRAY), 1, 12, 'array');
|
if($mybb->input['month'] === false) { $errors[] = $lang->error_invalid_month;
| if($mybb->input['month'] === false) { $errors[] = $lang->error_invalid_month;
|
Zeile 188 | Zeile 188 |
---|
$mybb->input['month'] = '*'; } $form_container = new FormContainer($lang->add_new_task);
|
$mybb->input['month'] = '*'; } $form_container = new FormContainer($lang->add_new_task);
|
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title'); $form_container->output_row($lang->short_description." <em>*</em>", "", $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
| $form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->get_input('title'), array('id' => 'title')), 'title'); $form_container->output_row($lang->short_description." <em>*</em>", "", $form->generate_text_box('description', $mybb->get_input('description'), array('id' => 'description')), 'description');
|
$task_list = array(); $task_files = scandir(MYBB_ROOT."inc/tasks/");
| $task_list = array(); $task_files = scandir(MYBB_ROOT."inc/tasks/");
|
Zeile 201 | Zeile 201 |
---|
$task_list[$file_id] = $task_file; } }
|
$task_list[$file_id] = $task_file; } }
|
$form_container->output_row($lang->task_file." <em>*</em>", $lang->task_file_desc, $form->generate_select_box("file", $task_list, $mybb->input['file'], array('id' => 'file')), 'file'); $form_container->output_row($lang->time_minutes, $lang->time_minutes_desc, $form->generate_text_box('minute', $mybb->input['minute'], array('id' => 'minute')), 'minute'); $form_container->output_row($lang->time_hours, $lang->time_hours_desc, $form->generate_text_box('hour', $mybb->input['hour'], array('id' => 'hour')), 'hour'); $form_container->output_row($lang->time_days_of_month, $lang->time_days_of_month_desc, $form->generate_text_box('day', $mybb->input['day'], array('id' => 'day')), 'day');
| $form_container->output_row($lang->task_file." <em>*</em>", $lang->task_file_desc, $form->generate_select_box("file", $task_list, $mybb->get_input('file'), array('id' => 'file')), 'file'); $form_container->output_row($lang->time_minutes, $lang->time_minutes_desc, $form->generate_text_box('minute', $mybb->get_input('minute'), array('id' => 'minute')), 'minute'); $form_container->output_row($lang->time_hours, $lang->time_hours_desc, $form->generate_text_box('hour', $mybb->get_input('hour'), array('id' => 'hour')), 'hour'); $form_container->output_row($lang->time_days_of_month, $lang->time_days_of_month_desc, $form->generate_text_box('day', $mybb->get_input('day'), array('id' => 'day')), 'day');
|
$options = array( "*" => $lang->every_weekday,
| $options = array( "*" => $lang->every_weekday,
|
Zeile 233 | Zeile 233 |
---|
"11" => $lang->november, "12" => $lang->december );
|
"11" => $lang->november, "12" => $lang->december );
|
$form_container->output_row($lang->time_months, $lang->time_months_desc, $form->generate_select_box('month[]', $options, $mybb->input['month'], array('id' => 'month', 'multiple' => true, 'size' => 13)), 'month');
| $form_container->output_row($lang->time_months, $lang->time_months_desc, $form->generate_select_box('month[]', $options, $mybb->get_input('month', MyBB::INPUT_ARRAY), array('id' => 'month', 'multiple' => true, 'size' => 13)), 'month');
|
|
|
$form_container->output_row($lang->enable_logging." <em>*</em>", "", $form->generate_yes_no_radio("logging", $mybb->input['logging'], true));
| $form_container->output_row($lang->enable_logging." <em>*</em>", "", $form->generate_yes_no_radio("logging", $mybb->get_input('logging'), true));
|
|
|
$form_container->output_row($lang->enabled." <em>*</em>", "", $form->generate_yes_no_radio("enabled", $mybb->input['enabled'], true));
| $form_container->output_row($lang->enabled." <em>*</em>", "", $form->generate_yes_no_radio("enabled", $mybb->get_input('enabled'), true));
|
$form_container->end();
$buttons[] = $form->generate_submit_button($lang->save_task);
| $form_container->end();
$buttons[] = $form->generate_submit_button($lang->save_task);
|
Zeile 313 | Zeile 313 |
---|
$mybb->input['day'] = '*'; }
|
$mybb->input['day'] = '*'; }
|
$mybb->input['month'] = check_time_values($mybb->input['month'], 1, 12, 'array');
| $mybb->input['month'] = check_time_values($mybb->get_input('month', MyBB::INPUT_ARRAY), 1, 12, 'array');
|
if($mybb->input['month'] === false) { $errors[] = $lang->error_invalid_month;
| if($mybb->input['month'] === false) { $errors[] = $lang->error_invalid_month;
|
Zeile 466 | Zeile 466 |
---|
}
// User clicked no
|
}
// User clicked no
|
if($mybb->input['no'])
| if($mybb->get_input('no'))
|
{ admin_redirect("index.php?module=tools-tasks"); }
| { admin_redirect("index.php?module=tools-tasks"); }
|
Zeile 499 | Zeile 499 |
---|
if($mybb->input['action'] == "enable" || $mybb->input['action'] == "disable") {
|
if($mybb->input['action'] == "enable" || $mybb->input['action'] == "disable") {
|
if(!verify_post_check($mybb->input['my_post_key']))
| if(!verify_post_check($mybb->get_input('my_post_key')))
|
{ flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=tools-tasks");
| { flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=tools-tasks");
|
Zeile 529 | Zeile 529 |
---|
if($task['file'] == "backupdb" || $task['file'] == "checktables") { // User clicked no
|
if($task['file'] == "backupdb" || $task['file'] == "checktables") { // User clicked no
|
if($mybb->input['no'])
| if($mybb->get_input('no'))
|
{ admin_redirect("index.php?module=tools-tasks"); }
| { admin_redirect("index.php?module=tools-tasks"); }
|
Zeile 588 | Zeile 588 |
---|
if($mybb->input['action'] == "run") {
|
if($mybb->input['action'] == "run") {
|
if(!verify_post_check($mybb->input['my_post_key']))
| if(!verify_post_check($mybb->get_input('my_post_key')))
|
{ flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=tools-tasks");
| { flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=tools-tasks");
|
Zeile 656 | Zeile 656 |
---|
$per_page = 50; $current_page = 1;
|
$per_page = 50; $current_page = 1;
|
if($mybb->input['page'] > 0)
| if(($mybb->get_input('page', MyBB::INPUT_INT)) > 0)
|
{ $current_page = $mybb->get_input('page', MyBB::INPUT_INT); $start = ($current_page-1)*$per_page;
| { $current_page = $mybb->get_input('page', MyBB::INPUT_INT); $start = ($current_page-1)*$per_page;
|