Vergleich admin/modules/tools/tasks.php - 1.8.2 - 1.8.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 23Zeile 23
/**
* Validates a string or array of values
*

/**
* Validates a string or array of values
*

 * @param mixed Comma-separated list or array of values
* @param int Minimum value
* @param int Maximum value
* @param string Set "string" to return in a comma-separated list, or "array" to return in an array
* @return mixed String or array of valid values OR false if string/array is invalid

 * @param string|array $value Comma-separated list or array of values
* @param int $min Minimum value
* @param int $max Maximum value
* @param string $return_type Set "string" to return in a comma-separated list, or "array" to return in an array
* @return string|array String or array of valid values OR false if string/array is invalid

 */
function check_time_values($value, $min, $max, $return_type)
{

 */
function check_time_values($value, $min, $max, $return_type)
{

Zeile 132Zeile 132
				"day" => $db->escape_string($mybb->input['day']),
"month" => $db->escape_string(implode(',', $mybb->input['month'])),
"weekday" => $db->escape_string(implode(',', $mybb->input['weekday'])),

				"day" => $db->escape_string($mybb->input['day']),
"month" => $db->escape_string(implode(',', $mybb->input['month'])),
"weekday" => $db->escape_string(implode(',', $mybb->input['weekday'])),

				"enabled" => (int)$mybb->input['enabled'],
"logging" => (int)$mybb->input['logging']

				"enabled" => $mybb->get_input('enabled', MyBB::INPUT_INT),
"logging" => $mybb->get_input('logging', MyBB::INPUT_INT)

			);

$new_task['nextrun'] = fetch_next_run($new_task);

			);

$new_task['nextrun'] = fetch_next_run($new_task);

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

// Log admin action

			$cache->update_tasks();

// 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 247Zeile 247

if($mybb->input['action'] == "edit")
{


if($mybb->input['action'] == "edit")
{

	$query = $db->simple_select("tasks", "*", "tid='".$mybb->get_input('tid', 1)."'");

	$query = $db->simple_select("tasks", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'");

	$task = $db->fetch_array($query);

// Does the task not exist?

	$task = $db->fetch_array($query);

// Does the task not exist?

Zeile 332Zeile 332
				"day" => $db->escape_string($mybb->input['day']),
"month" => $db->escape_string(implode(',', $mybb->input['month'])),
"weekday" => $db->escape_string(implode(',', $mybb->input['weekday'])),

				"day" => $db->escape_string($mybb->input['day']),
"month" => $db->escape_string(implode(',', $mybb->input['month'])),
"weekday" => $db->escape_string(implode(',', $mybb->input['weekday'])),

				"enabled" => (int)$mybb->input['enabled'],
"logging" => (int)$mybb->input['logging']

				"enabled" => $mybb->get_input('enabled', MyBB::INPUT_INT),
"logging" => $mybb->get_input('logging', MyBB::INPUT_INT)

			);

$updated_task['nextrun'] = fetch_next_run($updated_task);

			);

$updated_task['nextrun'] = fetch_next_run($updated_task);

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

// Log admin action

			$cache->update_tasks();

// 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');



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


Zeile 449Zeile 449

if($mybb->input['action'] == "delete")
{


if($mybb->input['action'] == "delete")
{

	$query = $db->simple_select("tasks", "*", "tid='".$mybb->get_input('tid', 1)."'");

	$query = $db->simple_select("tasks", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'");

	$task = $db->fetch_array($query);

// Does the task not exist?

	$task = $db->fetch_array($query);

// Does the task not exist?

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

// Log admin action

		$cache->update_tasks();

// 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 499Zeile 499
		admin_redirect("index.php?module=tools-tasks");
}


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


	$query = $db->simple_select("tasks", "*", "tid='".$mybb->get_input('tid', 1)."'");

	$query = $db->simple_select("tasks", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'");

	$task = $db->fetch_array($query);

// Does the task not exist?

	$task = $db->fetch_array($query);

// Does the task not exist?

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

// Log admin action

				$cache->update_tasks();

// 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 558Zeile 558
			$cache->update_tasks();

// Log admin action

			$cache->update_tasks();

// 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 573Zeile 573
		$cache->update_tasks();

// Log admin action

		$cache->update_tasks();

// Log admin action

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

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

$plugins->run_hooks("admin_tools_tasks_run");



$plugins->run_hooks("admin_tools_tasks_run");


	$query = $db->simple_select("tasks", "*", "tid='".$mybb->get_input('tid', 1)."'");

	$query = $db->simple_select("tasks", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'");

	$task = $db->fetch_array($query);

// Does the task not exist?

	$task = $db->fetch_array($query);

// Does the task not exist?

Zeile 608Zeile 608
	$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 652Zeile 652

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


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

		$current_page = $mybb->get_input('page', 1);

		$current_page = $mybb->get_input('page', MyBB::INPUT_INT);

		$start = ($current_page-1)*$per_page;
$pages = $log_count / $per_page;
$pages = ceil($pages);

		$start = ($current_page-1)*$per_page;
$pages = $log_count / $per_page;
$pages = ceil($pages);