Vergleich admin/modules/style/templates.php - 1.6.11 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 425Zeile 425

if(($existing_sid == -2 && $existing_rows == 1) || $existing_rows == 0)
{


if(($existing_sid == -2 && $existing_rows == 1) || $existing_rows == 0)
{

					$tid = $db->insert_query("templates", $template_array);

					$template['tid'] = $db->insert_query("templates", $template_array);

				}
else
{

				}
else
{

Zeile 455Zeile 455
			}

// Log admin action

			}

// Log admin action

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

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


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



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


Zeile 493Zeile 493
		$query = $db->simple_select("templates", "*", "title='".$db->escape_string($mybb->input['title'])."' AND (sid='-2' OR sid='{$sid}')", array('order_by' => 'sid', 'order_dir' => 'DESC', 'limit' => 1));
$template = $db->fetch_array($query);
}

		$query = $db->simple_select("templates", "*", "title='".$db->escape_string($mybb->input['title'])."' AND (sid='-2' OR sid='{$sid}')", array('order_by' => 'sid', 'order_dir' => 'DESC', 'limit' => 1));
$template = $db->fetch_array($query);
}

 
	$template['title'] = htmlspecialchars_uni($template['title']);


if($admin_options['codepress'] != 0)
{


if($admin_options['codepress'] != 0)
{

Zeile 638Zeile 639
					FROM ".TABLE_PREFIX."templates t
LEFT JOIN ".TABLE_PREFIX."templatesets s ON (t.sid=s.sid)
LEFT JOIN ".TABLE_PREFIX."templates t2 ON (t.title=t2.title AND t2.sid='1')

					FROM ".TABLE_PREFIX."templates t
LEFT JOIN ".TABLE_PREFIX."templatesets s ON (t.sid=s.sid)
LEFT JOIN ".TABLE_PREFIX."templates t2 ON (t.title=t2.title AND t2.sid='1')

					WHERE t.template LIKE '%".$db->escape_string_like($mybb->input['find'])."%' AND NOT (t.sid = -2 AND NOT ISNULL(t2.tid))

					WHERE t.template LIKE '%".$db->escape_string_like($mybb->input['find'])."%' AND NOT (t.sid = -2 AND (t2.tid) IS NOT NULL)

					ORDER BY t.title ASC
");
if($db->num_rows($query) == 0)

					ORDER BY t.title ASC
");
if($db->num_rows($query) == 0)

Zeile 1219Zeile 1220

$sub_tabs['diff_report'] = array(
'title' => $lang->diff_report,


$sub_tabs['diff_report'] = array(
'title' => $lang->diff_report,

		'link' => "index.php?module=style-templates&action=diff_report&title=".$db->escape_string($mybb->input['title'])."&from=".$mybb->input['from']."sid1=".intval($mybb->input['sid1'])."&sid2=".intval($mybb->input['sid2']),

		'link' => "index.php?module=style-templates&action=diff_report&title=".$db->escape_string($mybb->input['title'])."&from=".htmlspecialchars_uni($mybb->input['from'])."sid1=".intval($mybb->input['sid1'])."&sid2=".intval($mybb->input['sid2']),

		'description' => $lang->diff_report_desc
);


		'description' => $lang->diff_report_desc
);


Zeile 1267Zeile 1268
		$page->add_breadcrumb_item($lang->find_updated, "index.php?module=style-templates&action=find_updated");
}


		$page->add_breadcrumb_item($lang->find_updated, "index.php?module=style-templates&action=find_updated");
}


	$page->add_breadcrumb_item($lang->diff_report.": ".$template1['title'], "index.php?module=style-templates&action=diff_report&title=".$db->escape_string($mybb->input['title'])."&from=".$mybb->input['from']."&sid1=".intval($mybb->input['sid1'])."&sid2=".intval($mybb->input['sid2']));

	$page->add_breadcrumb_item($lang->diff_report.": ".htmlspecialchars_uni($template1['title']), "index.php?module=style-templates&action=diff_report&title=".$db->escape_string($mybb->input['title'])."&from=".htmlspecialchars_uni($mybb->input['from'])."&sid1=".intval($mybb->input['sid1'])."&sid2=".intval($mybb->input['sid2']));


$page->output_header($lang->template_sets);



$page->output_header($lang->template_sets);


Zeile 1325Zeile 1326
		$plugins->run_hooks("admin_style_templates_revert_commit");

// Log admin action

		$plugins->run_hooks("admin_style_templates_revert_commit");

// Log admin action

		log_admin_action($template['tid'], $template['sid'], $template['sid'], $template['set_title']);

		log_admin_action($template['tid'], $template['title'], $template['sid'], $template['set_title']);


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



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


Zeile 1405Zeile 1406
	$query = $db->simple_select("templategroups", "*");
while($templategroup = $db->fetch_array($query))
{

	$query = $db->simple_select("templategroups", "*");
while($templategroup = $db->fetch_array($query))
{

		$templategroup['title'] = $lang->parse($templategroup['title'])." ".$lang->templates;

		$templategroup['title'] = htmlspecialchars_uni($lang->parse($templategroup['title']))." ".$lang->templates;

		if($mybb->input['expand'] == 'all')
{
$expand_array[] = $templategroup['gid'];

		if($mybb->input['expand'] == 'all')
{
$expand_array[] = $templategroup['gid'];