Vergleich admin/modules/tools/tasks.php - 1.6.2 - 1.6.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: tasks.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 144Zeile 144
			$plugins->run_hooks("admin_tools_tasks_add_commit");

// Log admin action

			$plugins->run_hooks("admin_tools_tasks_add_commit");

// Log admin action

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

			log_admin_action($tid, htmlspecialchars_uni($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 343Zeile 343
			$plugins->run_hooks("admin_tools_tasks_edit_commit");

// Log admin action

			$plugins->run_hooks("admin_tools_tasks_edit_commit");

// Log admin action

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

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


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

if($enable_confirmation == true)
{


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

if($enable_confirmation == true)
{

				admin_redirect("index.php?module=tools-tasks&action=enable&tid={$task['tid']}&my_post_key={$mybb->post_code}");

				admin_redirect("index.php?module=tools-tasks&action=enable&tid={$task['tid']}&my_post_key={$mybb->post_code}");

			}
else
{

			}
else
{

Zeile 386Zeile 386
	$form_container = new FormContainer($lang->edit_task);
echo $form->generate_hidden_field("tid", $task['tid']);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $task_data['title'], array('id' => 'title')), 'title');

	$form_container = new FormContainer($lang->edit_task);
echo $form->generate_hidden_field("tid", $task['tid']);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $task_data['title'], array('id' => 'title')), 'title');

	$form_container->output_row($lang->short_description, "", $form->generate_text_box('description', $task_data['description'], array('id' => 'description')), 'description');

	$form_container->output_row($lang->short_description." <em>*</em>", "", $form->generate_text_box('description', $task_data['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 398Zeile 398
			$task_list[$file_id] = $task_file;
}
}

			$task_list[$file_id] = $task_file;
}
}

	$form_container->output_row($lang->task." <em>*</em>", $lang->task_desc, $form->generate_select_box("file", $task_list, $task_data['file'], array('id' => 'file')), 'file');

	$form_container->output_row($lang->task." <em>*</em>", $lang->task_file_desc, $form->generate_select_box("file", $task_list, $task_data['file'], array('id' => 'file')), 'file');

	$form_container->output_row($lang->time_minutes, $lang->time_minutes_desc, $form->generate_text_box('minute', $task_data['minute'], array('id' => 'minute')), 'minute');
$form_container->output_row($lang->time_hours, $lang->time_hours_desc, $form->generate_text_box('hour', $task_data['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', $task_data['day'], array('id' => 'day')), 'day');

	$form_container->output_row($lang->time_minutes, $lang->time_minutes_desc, $form->generate_text_box('minute', $task_data['minute'], array('id' => 'minute')), 'minute');
$form_container->output_row($lang->time_hours, $lang->time_hours_desc, $form->generate_text_box('hour', $task_data['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', $task_data['day'], array('id' => 'day')), 'day');

Zeile 477Zeile 477
		$plugins->run_hooks("admin_tools_tasks_delete_commit");

// Log admin action

		$plugins->run_hooks("admin_tools_tasks_delete_commit");

// Log admin action

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

		log_admin_action($task['tid'], htmlspecialchars_uni($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 502Zeile 502
	}
else
{

	}
else
{

		$plugins->run_hooks("admin_tools_tasks_enable");

		$plugins->run_hooks("admin_tools_tasks_disable");

	}

$query = $db->simple_select("tasks", "*", "tid='".intval($mybb->input['tid'])."'");

	}

$query = $db->simple_select("tasks", "*", "tid='".intval($mybb->input['tid'])."'");

Zeile 521Zeile 521
		{
// User clicked no
if($mybb->input['no'])

		{
// User clicked no
if($mybb->input['no'])

			{

			{

				admin_redirect("index.php?module=tools-tasks");
}


				admin_redirect("index.php?module=tools-tasks");
}


Zeile 532Zeile 532
				$cache->update_tasks();

$plugins->run_hooks("admin_tools_tasks_enable_commit");

				$cache->update_tasks();

$plugins->run_hooks("admin_tools_tasks_enable_commit");

				

				

				// Log admin action

				// Log admin action

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

				log_admin_action($task['tid'], htmlspecialchars_uni($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 553Zeile 553
			$plugins->run_hooks("admin_tools_tasks_enable_commit");

// Log admin action

			$plugins->run_hooks("admin_tools_tasks_enable_commit");

// Log admin action

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

			log_admin_action($task['tid'], htmlspecialchars_uni($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 567Zeile 567
		$plugins->run_hooks("admin_tools_tasks_disable_commit");

// Log admin action

		$plugins->run_hooks("admin_tools_tasks_disable_commit");

// Log admin action

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

		log_admin_action($task['tid'], htmlspecialchars_uni($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 601Zeile 601
	$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'], $task['title']);

	log_admin_action($task['tid'], htmlspecialchars_uni($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 627Zeile 627
		'title' => $lang->view_task_logs,
'link' => "index.php?module=tools-tasks&amp;action=logs",
'description' => $lang->view_task_logs_desc

		'title' => $lang->view_task_logs,
'link' => "index.php?module=tools-tasks&amp;action=logs",
'description' => $lang->view_task_logs_desc

	);


	);


	$page->output_nav_tabs($sub_tabs, 'task_logs');

	$page->output_nav_tabs($sub_tabs, 'task_logs');





	$table = new Table;
$table->construct_header($lang->task);
$table->construct_header($lang->date, array("class" => "align_center", "width" => 200));

	$table = new Table;
$table->construct_header($lang->task);
$table->construct_header($lang->date, array("class" => "align_center", "width" => 200));

Zeile 638Zeile 638

$query = $db->simple_select("tasklog", "COUNT(*) AS log_count");
$log_count = $db->fetch_field($query, "log_count");


$query = $db->simple_select("tasklog", "COUNT(*) AS log_count");
$log_count = $db->fetch_field($query, "log_count");





	$per_page = 50;

if($mybb->input['page'] > 0)

	$per_page = 50;

if($mybb->input['page'] > 0)

Zeile 657Zeile 657
	{
$start = 0;
$current_page = 1;

	{
$start = 0;
$current_page = 1;

	}


	}


	$pagination = draw_admin_pagination($current_page, $per_page, $log_count, "index.php?module=tools-tasks&amp;action=logs&amp;page={page}");

$query = $db->query("

	$pagination = draw_admin_pagination($current_page, $per_page, $log_count, "index.php?module=tools-tasks&amp;action=logs&amp;page={page}");

$query = $db->query("

Zeile 750Zeile 750
		$table->construct_cell($popup->fetch(), array("class" => "align_center"));
$table->construct_row();
}

		$table->construct_cell($popup->fetch(), array("class" => "align_center"));
$table->construct_row();
}

 

if($table->num_rows() == 0)
{
$table->construct_cell($lang->no_tasks, array('colspan' => 3));
$table->construct_row();
}


	$table->output($lang->scheduled_tasks);

$page->output_footer();

	$table->output($lang->scheduled_tasks);

$page->output_footer();