Vergleich admin/modules/config/spiders.php - 1.8.6 - 1.8.36

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 81Zeile 81
	}

$form_container = new FormContainer($lang->add_new_bot);

	}

$form_container = new FormContainer($lang->add_new_bot);

	$form_container->output_row($lang->name." <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');
$form_container->output_row($lang->user_agent." <em>*</em>", $lang->user_agent_desc, $form->generate_text_box('useragent', $mybb->input['useragent'], array('id' => 'useragent')), 'useragent');

	$form_container->output_row($lang->name." <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->get_input('name'), array('id' => 'name')), 'name');
$form_container->output_row($lang->user_agent." <em>*</em>", $lang->user_agent_desc, $form->generate_text_box('useragent', $mybb->get_input('useragent'), array('id' => 'useragent')), 'useragent');


$languages = array('' => $lang->use_board_default);
$languages = array_merge($languages, $lang->get_languages());


$languages = array('' => $lang->use_board_default);
$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->language_str, $lang->language_desc, $form->generate_select_box("language", $languages, $mybb->get_input('language'), array("id" => "language")), 'language');





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

	$form_container->output_row($lang->theme, $lang->theme_desc, build_theme_select("theme", $mybb->get_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 97Zeile 97
	{
$usergroups[$usergroup['gid']] = $usergroup['title'];
}

	{
$usergroups[$usergroup['gid']] = $usergroup['title'];
}

	if(!$mybb->input['usergroup'])

	if(!$mybb->get_input('usergroup'))

	{
$mybb->input['usergroup'] = 1;
}

	{
$mybb->input['usergroup'] = 1;
}

Zeile 125Zeile 125
	}

// User clicked no

	}

// User clicked no

	if($mybb->input['no'])

	if($mybb->get_input('no'))

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

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

Zeile 272Zeile 272
	);

$page->output_nav_tabs($sub_tabs, "spiders");

	);

$page->output_nav_tabs($sub_tabs, "spiders");

 

$query = $db->simple_select("spiders", "COUNT(sid) AS spiders");
$total_rows = $db->fetch_field($query, "spiders");

$pagenum = $mybb->get_input('page', MyBB::INPUT_INT);
if($pagenum)
{
$start = ($pagenum - 1) * 20;
$pages = ceil($total_rows / 20);
if($pagenum > $pages)
{
$start = 0;
$pagenum = 1;
}
}
else
{
$start = 0;
$pagenum = 1;
}


$table = new Table;
$table->construct_header($lang->bot);
$table->construct_header($lang->last_visit, array("class" => "align_center", "width" => 200));
$table->construct_header($lang->controls, array("class" => "align_center", "width" => 150, "colspan" => 2));



$table = new Table;
$table->construct_header($lang->bot);
$table->construct_header($lang->last_visit, array("class" => "align_center", "width" => 200));
$table->construct_header($lang->controls, array("class" => "align_center", "width" => 150, "colspan" => 2));


	$query = $db->simple_select("spiders", "*", "", array("order_by" => "lastvisit", "order_dir" => "desc"));

	$query = $db->simple_select("spiders", "*", "", array('limit_start' => $start, 'limit' => 20, "order_by" => "lastvisit", "order_dir" => "desc"));

	while($spider = $db->fetch_array($query))
{
$lastvisit = $lang->never;

	while($spider = $db->fetch_array($query))
{
$lastvisit = $lang->never;

Zeile 288Zeile 308
		{
$lastvisit = my_date('relative', $spider['lastvisit']);
}

		{
$lastvisit = my_date('relative', $spider['lastvisit']);
}





		$table->construct_cell("<a href=\"index.php?module=config-spiders&amp;action=edit&amp;sid={$spider['sid']}\"><strong>{$spider['name']}</strong></a>");
$table->construct_cell($lastvisit, array("class" => "align_center", "width" => 200));
$table->construct_cell("<a href=\"index.php?module=config-spiders&amp;action=edit&amp;sid={$spider['sid']}\">{$lang->edit}</a>", array("class" => "align_center", "width" => 75));
$table->construct_cell("<a href=\"index.php?module=config-spiders&amp;action=delete&amp;sid={$spider['sid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_bot_deletion}');\">{$lang->delete}</a>", array("class" => "align_center", "width" => 75));

		$table->construct_cell("<a href=\"index.php?module=config-spiders&amp;action=edit&amp;sid={$spider['sid']}\"><strong>{$spider['name']}</strong></a>");
$table->construct_cell($lastvisit, array("class" => "align_center", "width" => 200));
$table->construct_cell("<a href=\"index.php?module=config-spiders&amp;action=edit&amp;sid={$spider['sid']}\">{$lang->edit}</a>", array("class" => "align_center", "width" => 75));
$table->construct_cell("<a href=\"index.php?module=config-spiders&amp;action=delete&amp;sid={$spider['sid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_bot_deletion}');\">{$lang->delete}</a>", array("class" => "align_center", "width" => 75));

		$table->construct_row();
}


		$table->construct_row();
}


	if($table->num_rows() == 0)
{
$table->construct_cell($lang->no_bots, array("colspan" => 4));

	if($table->num_rows() == 0)
{
$table->construct_cell($lang->no_bots, array("colspan" => 4));

Zeile 303Zeile 323
	}

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

	}

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

 

echo "<br />".draw_admin_pagination($pagenum, "20", $total_rows, "index.php?module=config-spiders&amp;page={page}");


	$page->output_footer();
}

	$page->output_footer();
}