Vergleich admin/modules/tools/tasks.php - 1.8.6 - 1.8.24

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 79Zeile 79
			$errors[] = $lang->error_missing_description;
}


			$errors[] = $lang->error_missing_description;
}


		if(!file_exists(MYBB_ROOT."inc/tasks/".$mybb->input['file'].".php"))




		$file = $mybb->get_input('file');
$file = basename($file, '.php');

if(!file_exists(MYBB_ROOT."inc/tasks/".$file.".php"))

		{
$errors[] = $lang->error_invalid_task_file;
}

		{
$errors[] = $lang->error_invalid_task_file;
}

Zeile 126Zeile 129
			$new_task = array(
"title" => $db->escape_string($mybb->input['title']),
"description" => $db->escape_string($mybb->input['description']),

			$new_task = array(
"title" => $db->escape_string($mybb->input['title']),
"description" => $db->escape_string($mybb->input['description']),

				"file" => $db->escape_string($mybb->input['file']),

				"file" => $db->escape_string($file),

				"minute" => $db->escape_string($mybb->input['minute']),
"hour" => $db->escape_string($mybb->input['hour']),
"day" => $db->escape_string($mybb->input['day']),

				"minute" => $db->escape_string($mybb->input['minute']),
"hour" => $db->escape_string($mybb->input['hour']),
"day" => $db->escape_string($mybb->input['day']),

Zeile 144Zeile 147
			$cache->update_tasks();

// Log admin action

			$cache->update_tasks();

// Log admin action

			log_admin_action($tid, htmlspecialchars_uni($mybb->input['title']));

			log_admin_action($tid, $mybb->input['title']);


flash_message($lang->success_task_created, 'success');
admin_redirect("index.php?module=tools-tasks");


flash_message($lang->success_task_created, 'success');
admin_redirect("index.php?module=tools-tasks");

Zeile 153Zeile 156
	$page->add_breadcrumb_item($lang->add_new_task);
$page->output_header($lang->scheduled_tasks." - ".$lang->add_new_task);


	$page->add_breadcrumb_item($lang->add_new_task);
$page->output_header($lang->scheduled_tasks." - ".$lang->add_new_task);






	$sub_tabs['scheduled_tasks'] = array(
'title' => $lang->scheduled_tasks,
'link' => "index.php?module=tools-tasks"

	$sub_tabs['scheduled_tasks'] = array(
'title' => $lang->scheduled_tasks,
'link' => "index.php?module=tools-tasks"

Zeile 163Zeile 166
		'title' => $lang->add_new_task,
'link' => "index.php?module=tools-tasks&action=add",
'description' => $lang->add_new_task_desc

		'title' => $lang->add_new_task,
'link' => "index.php?module=tools-tasks&action=add",
'description' => $lang->add_new_task_desc

	);


	);


	$sub_tabs['task_logs'] = array(
'title' => $lang->view_task_logs,
'link' => "index.php?module=tools-tasks&action=logs"

	$sub_tabs['task_logs'] = array(
'title' => $lang->view_task_logs,
'link' => "index.php?module=tools-tasks&action=logs"

Zeile 175Zeile 178
	if($errors)
{
$page->output_inline_error($errors);

	if($errors)
{
$page->output_inline_error($errors);

	}

	}

	else
{
$mybb->input['minute'] = '*';

	else
{
$mybb->input['minute'] = '*';

Zeile 271Zeile 274
			$errors[] = $lang->error_missing_description;
}


			$errors[] = $lang->error_missing_description;
}


		if(!file_exists(MYBB_ROOT."inc/tasks/".$mybb->input['file'].".php"))




        $file = $mybb->get_input('file');
$file = basename($file, '.php');

if(!file_exists(MYBB_ROOT."inc/tasks/".$file.".php"))

		{
$errors[] = $lang->error_invalid_task_file;
}

		{
$errors[] = $lang->error_invalid_task_file;
}

Zeile 326Zeile 332
			$updated_task = array(
"title" => $db->escape_string($mybb->input['title']),
"description" => $db->escape_string($mybb->input['description']),

			$updated_task = array(
"title" => $db->escape_string($mybb->input['title']),
"description" => $db->escape_string($mybb->input['description']),

				"file" => $db->escape_string($mybb->input['file']),

				"file" => $db->escape_string($file),

				"minute" => $db->escape_string($mybb->input['minute']),
"hour" => $db->escape_string($mybb->input['hour']),
"day" => $db->escape_string($mybb->input['day']),

				"minute" => $db->escape_string($mybb->input['minute']),
"hour" => $db->escape_string($mybb->input['hour']),
"day" => $db->escape_string($mybb->input['day']),

Zeile 345Zeile 351
			$cache->update_tasks();

// Log admin action

			$cache->update_tasks();

// Log admin action

			log_admin_action($task['tid'], htmlspecialchars_uni($mybb->input['title']));

			log_admin_action($task['tid'], $mybb->input['title']);


flash_message($lang->success_task_updated, 'success');



flash_message($lang->success_task_updated, 'success');


Zeile 480Zeile 486
		$cache->update_tasks();

// Log admin action

		$cache->update_tasks();

// Log admin action

		log_admin_action($task['tid'], htmlspecialchars_uni($task['title']));

		log_admin_action($task['tid'], $task['title']);


flash_message($lang->success_task_deleted, 'success');
admin_redirect("index.php?module=tools-tasks");


flash_message($lang->success_task_deleted, 'success');
admin_redirect("index.php?module=tools-tasks");

Zeile 538Zeile 544
				$cache->update_tasks();

// Log admin action

				$cache->update_tasks();

// Log admin action

				log_admin_action($task['tid'], htmlspecialchars_uni($task['title']), $mybb->input['action']);

				log_admin_action($task['tid'], $task['title'], $mybb->input['action']);


flash_message($lang->success_task_enabled, 'success');
admin_redirect("index.php?module=tools-tasks");


flash_message($lang->success_task_enabled, 'success');
admin_redirect("index.php?module=tools-tasks");

Zeile 558Zeile 564
			$cache->update_tasks();

// Log admin action

			$cache->update_tasks();

// Log admin action

			log_admin_action($task['tid'], htmlspecialchars_uni($task['title']), $mybb->input['action']);

			log_admin_action($task['tid'], $task['title'], $mybb->input['action']);


flash_message($lang->success_task_enabled, 'success');
admin_redirect("index.php?module=tools-tasks");


flash_message($lang->success_task_enabled, 'success');
admin_redirect("index.php?module=tools-tasks");

Zeile 573Zeile 579
		$cache->update_tasks();

// Log admin action

		$cache->update_tasks();

// Log admin action

		log_admin_action($task['tid'], htmlspecialchars_uni($task['title']), htmlspecialchars_uni($mybb->input['action']));

		log_admin_action($task['tid'], $task['title'], $mybb->input['action']);


flash_message($lang->success_task_disabled, 'success');
admin_redirect("index.php?module=tools-tasks");


flash_message($lang->success_task_disabled, 'success');
admin_redirect("index.php?module=tools-tasks");

Zeile 608Zeile 614
	$plugins->run_hooks("admin_tools_tasks_run_commit");

// Log admin action

	$plugins->run_hooks("admin_tools_tasks_run_commit");

// Log admin action

	log_admin_action($task['tid'], htmlspecialchars_uni($task['title']));

	log_admin_action($task['tid'], $task['title']);


flash_message($lang->success_task_run, 'success');
admin_redirect("index.php?module=tools-tasks");


flash_message($lang->success_task_run, 'success');
admin_redirect("index.php?module=tools-tasks");

Zeile 730Zeile 736
	{
$task['title'] = htmlspecialchars_uni($task['title']);
$task['description'] = htmlspecialchars_uni($task['description']);

	{
$task['title'] = htmlspecialchars_uni($task['title']);
$task['description'] = htmlspecialchars_uni($task['description']);

		$next_run = date($mybb->settings['dateformat'], $task['nextrun']).", ".date($mybb->settings['timeformat'], $task['nextrun']);

		$next_run = my_date('normal', $task['nextrun'], "", 2);

		if($task['enabled'] == 1)
{
$icon = "<img src=\"styles/{$page->style}/images/icons/bullet_on.png\" alt=\"({$lang->alt_enabled})\" title=\"{$lang->alt_enabled}\" style=\"vertical-align: middle;\" /> ";

		if($task['enabled'] == 1)
{
$icon = "<img src=\"styles/{$page->style}/images/icons/bullet_on.png\" alt=\"({$lang->alt_enabled})\" title=\"{$lang->alt_enabled}\" style=\"vertical-align: middle;\" /> ";