Vergleich admin/modules/config/spiders.php - 1.8.0 - 1.8.3

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 46Zeile 46
			);
$sid = $db->insert_query("spiders", $new_spider);


			);
$sid = $db->insert_query("spiders", $new_spider);


			$cache->update_spiders();

$plugins->run_hooks("admin_config_spiders_add_commit");

			$plugins->run_hooks("admin_config_spiders_add_commit");

$cache->update_spiders();


// Log admin action
log_admin_action($sid, $mybb->input['name']);


// Log admin action
log_admin_action($sid, $mybb->input['name']);





			flash_message($lang->success_bot_created, 'success');
admin_redirect("index.php?module=config-spiders");
}
}

			flash_message($lang->success_bot_created, 'success');
admin_redirect("index.php?module=config-spiders");
}
}





	$page->add_breadcrumb_item($lang->add_new_bot);
$page->output_header($lang->spiders_bots." - ".$lang->add_new_bot);

$sub_tabs['spiders'] = array(
'title' => $lang->spiders_bots,
'link' => "index.php?module=config-spiders",

	$page->add_breadcrumb_item($lang->add_new_bot);
$page->output_header($lang->spiders_bots." - ".$lang->add_new_bot);

$sub_tabs['spiders'] = array(
'title' => $lang->spiders_bots,
'link' => "index.php?module=config-spiders",

	);

	);

	$sub_tabs['add_spider'] = array(
'title' => $lang->add_new_bot,
'link' => "index.php?module=config-spiders&action=add",

	$sub_tabs['add_spider'] = array(
'title' => $lang->add_new_bot,
'link' => "index.php?module=config-spiders&action=add",

Zeile 88Zeile 88
	$languages = array_merge($languages, $lang->get_languages());
$form_container->output_row($lang->language_str, $lang->language_desc, $form->generate_select_box("language", $languages, $mybb->input['language'], array("id" => "language")), 'language');


	$languages = array_merge($languages, $lang->get_languages());
$form_container->output_row($lang->language_str, $lang->language_desc, $form->generate_select_box("language", $languages, $mybb->input['language'], array("id" => "language")), 'language');


	$form_container->output_row($lang->theme, $lang->theme_desc, build_theme_select("theme", $mybb->input['theme'], 0, "", true));

	$form_container->output_row($lang->theme, $lang->theme_desc, build_theme_select("theme", $mybb->input['theme'], 0, "", true, false, true));


$query = $db->simple_select("usergroups", "*", "", array("order_by" => "title", "order_dir" => "asc"));



$query = $db->simple_select("usergroups", "*", "", array("order_by" => "title", "order_dir" => "asc"));


Zeile 113Zeile 113
}

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

}

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

{
$query = $db->simple_select("spiders", "*", "sid='".$mybb->get_input('sid', 1)."'");
$spider = $db->fetch_array($query);

// Does the spider not exist?
if(!$spider['sid'])
{

{
$query = $db->simple_select("spiders", "*", "sid='".$mybb->get_input('sid', 1)."'");
$spider = $db->fetch_array($query);

// Does the spider not exist?
if(!$spider['sid'])
{

		flash_message($lang->error_invalid_bot, 'error');

		flash_message($lang->error_invalid_bot, 'error');

		admin_redirect("index.php?module=config-spiders");
}

		admin_redirect("index.php?module=config-spiders");
}


// User clicked no
if($mybb->input['no'])
{
admin_redirect("index.php?module=config-spiders");
}


// User clicked no
if($mybb->input['no'])
{
admin_redirect("index.php?module=config-spiders");
}





	$plugins->run_hooks("admin_config_spiders_delete");

if($mybb->request_method == "post")
{
// Delete the spider
$db->delete_query("spiders", "sid='{$spider['sid']}'");

	$plugins->run_hooks("admin_config_spiders_delete");

if($mybb->request_method == "post")
{
// Delete the spider
$db->delete_query("spiders", "sid='{$spider['sid']}'");


$cache->update_spiders();






		$plugins->run_hooks("admin_config_spiders_delete_commit");

		$plugins->run_hooks("admin_config_spiders_delete_commit");

 

$cache->update_spiders();


// Log admin action
log_admin_action($spider['sid'], $spider['name']);


// Log admin action
log_admin_action($spider['sid'], $spider['name']);

Zeile 188Zeile 188
				"usergroup" => (int)$mybb->input['usergroup'],
"useragent" => $db->escape_string($mybb->input['useragent'])
);

				"usergroup" => (int)$mybb->input['usergroup'],
"useragent" => $db->escape_string($mybb->input['useragent'])
);

 

$plugins->run_hooks("admin_config_spiders_edit_commit");


			$db->update_query("spiders", $updated_spider, "sid='{$spider['sid']}'");

$cache->update_spiders();

			$db->update_query("spiders", $updated_spider, "sid='{$spider['sid']}'");

$cache->update_spiders();


$plugins->run_hooks("admin_config_spiders_edit_commit");

 

// Log admin action
log_admin_action($spider['sid'], $mybb->input['name']);


// Log admin action
log_admin_action($spider['sid'], $mybb->input['name']);

Zeile 233Zeile 234
	$languages = array_merge($languages, $lang->get_languages());
$form_container->output_row($lang->language_str, $lang->language_desc, $form->generate_select_box("language", $languages, $spider_data['language'], array("id" => "language")), 'language');


	$languages = array_merge($languages, $lang->get_languages());
$form_container->output_row($lang->language_str, $lang->language_desc, $form->generate_select_box("language", $languages, $spider_data['language'], array("id" => "language")), 'language');


	$form_container->output_row($lang->theme, $lang->theme_desc, build_theme_select("theme", $spider_data['theme'], 0, "", true));

	$form_container->output_row($lang->theme, $lang->theme_desc, build_theme_select("theme", $spider_data['theme'], 0, "", true, false, true));


$query = $db->simple_select("usergroups", "*", "", array("order_by" => "title", "order_dir" => "asc"));
while($usergroup = $db->fetch_array($query))


$query = $db->simple_select("usergroups", "*", "", array("order_by" => "title", "order_dir" => "asc"));
while($usergroup = $db->fetch_array($query))