Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: templates.php 5150 2010-07-31 01:46:18Z RyanGordon $
| * $Id$
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 60 | Zeile 60 |
---|
'description' => $lang->find_updated_desc ); }
|
'description' => $lang->find_updated_desc ); }
|
else if(($sid && !$mybb->input['action']) || $mybb->input['action'] == "edit_set" || $mybb->input['action'] == "edit_template")
| else if(($sid && !$mybb->input['action']) || $mybb->input['action'] == "edit_set" || $mybb->input['action'] == "check_set" || $mybb->input['action'] == "edit_template")
|
{ $sub_tabs['manage_templates'] = array( 'title' => $lang->manage_templates,
| { $sub_tabs['manage_templates'] = array( 'title' => $lang->manage_templates,
|
Zeile 179 | Zeile 179 |
---|
{ $errors[] = $lang->error_invalid_set; }
|
{ $errors[] = $lang->error_invalid_set; }
|
| // Are we trying to do malicious things in our template? if(check_template($mybb->input['template'])) { $errors[] = $lang->error_security_problem; }
|
if(!$errors) { $template_array = array(
| if(!$errors) { $template_array = array(
|
Zeile 385 | Zeile 391 |
---|
{ $errors[] = $lang->error_missing_title; }
|
{ $errors[] = $lang->error_missing_title; }
|
| // Are we trying to do malicious things in our template? if(check_template($mybb->input['template'])) { $errors[] = $lang->error_security_problem; }
|
if(!$errors) { $query = $db->simple_select("templates", "*", "tid='{$mybb->input['tid']}'");
| if(!$errors) { $query = $db->simple_select("templates", "*", "tid='{$mybb->input['tid']}'");
|
Zeile 403 | Zeile 415 |
---|
// Make sure we have the correct tid associated with this template. If the user double submits then the tid could originally be the master template tid, but because the form is sumbitted again, the tid doesn't get updated to the new modified template one. This then causes the master template to be overwritten $query = $db->simple_select("templates", "tid", "title='".$db->escape_string($template['title'])."' AND (sid = '-2' OR sid = '{$template['sid']}')", array('order_by' => 'sid', 'order_dir' => 'desc', 'limit' => 1)); $template['tid'] = $db->fetch_field($query, "tid");
|
// Make sure we have the correct tid associated with this template. If the user double submits then the tid could originally be the master template tid, but because the form is sumbitted again, the tid doesn't get updated to the new modified template one. This then causes the master template to be overwritten $query = $db->simple_select("templates", "tid", "title='".$db->escape_string($template['title'])."' AND (sid = '-2' OR sid = '{$template['sid']}')", array('order_by' => 'sid', 'order_dir' => 'desc', 'limit' => 1)); $template['tid'] = $db->fetch_field($query, "tid");
|
|
|
if($sid > 0) { // Check to see if it's never been edited before (i.e. master) of if this a new template (i.e. we've renamed it) or if it's a custom template
| if($sid > 0) { // Check to see if it's never been edited before (i.e. master) of if this a new template (i.e. we've renamed it) or if it's a custom template
|
Zeile 474 | Zeile 486 |
---|
if($errors) {
|
if($errors) {
|
$page->output_inline_error($errors);
| |
$template = $mybb->input; } else
| $template = $mybb->input; } else
|
Zeile 491 | Zeile 502 |
---|
<script type="text/javascript"> CodePress.language = \'mybb\'; </script>';
|
<script type="text/javascript"> CodePress.language = \'mybb\'; </script>';
|
} $page->add_breadcrumb_item($template_sets[$sid], "index.php?module=style-templates&sid={$sid}{$expand_str}"); if($mybb->input['from'] == "diff_report") {
| }
$page->add_breadcrumb_item($template_sets[$sid], "index.php?module=style-templates&sid={$sid}{$expand_str}");
if(!isset($mybb->input['from'])) { $mybb->input['from'] = ''; }
if($mybb->input['from'] == "diff_report") {
|
$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->edit_template_breadcrumb.$template['title'], "index.php?module=style-templates&sid={$sid}");
|
$page->add_breadcrumb_item($lang->edit_template_breadcrumb.$template['title'], "index.php?module=style-templates&sid={$sid}");
|
| |
$page->output_header($lang->edit_template);
|
$page->output_header($lang->edit_template);
|
|
|
$sub_tabs = array(); if($mybb->input['from'] == "diff_report")
| $sub_tabs = array(); if($mybb->input['from'] == "diff_report")
|
Zeile 526 | Zeile 541 |
---|
); $page->output_nav_tabs($sub_tabs, 'edit_template');
|
); $page->output_nav_tabs($sub_tabs, 'edit_template');
|
| if($errors) { $page->output_inline_error($errors); }
|
$form = new Form("index.php?module=style-templates&action=edit_template{$expand_str}", "post", "edit_template"); echo $form->generate_hidden_field('tid', $template['tid'])."\n"; if($mybb->input['from'] == "diff_report") { echo $form->generate_hidden_field('from', "diff_report");
|
$form = new Form("index.php?module=style-templates&action=edit_template{$expand_str}", "post", "edit_template"); echo $form->generate_hidden_field('tid', $template['tid'])."\n"; if($mybb->input['from'] == "diff_report") { echo $form->generate_hidden_field('from', "diff_report");
|
}
| }
|
$form_container = new FormContainer($lang->edit_template_breadcrumb.$template['title']); $form_container->output_row($lang->template_name, $lang->template_name_desc, $form->generate_text_box('title', $template['title'], array('id' => 'title')), 'title');
| $form_container = new FormContainer($lang->edit_template_breadcrumb.$template['title']); $form_container->output_row($lang->template_name, $lang->template_name_desc, $form->generate_text_box('title', $template['title'], array('id' => 'title')), 'title');
|
Zeile 614 | Zeile 634 |
---|
// Select all templates with that search term $query = $db->query("
|
// Select all templates with that search term $query = $db->query("
|
SELECT t.tid, t.title, t.sid
| SELECT t.tid, t.title, t.sid, t.template
|
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')
|
Zeile 649 | Zeile 669 |
---|
{ // Do replacement $newtemplate = str_ireplace($mybb->input['find'], $mybb->input['replace'], $template['template']);
|
{ // Do replacement $newtemplate = str_ireplace($mybb->input['find'], $mybb->input['replace'], $template['template']);
|
if($newtemplate != $template['template'])
| if($newtemplate != $template['template'] && check_template($newtemplate) === false)
|
{ // If the template is different, that means the search term has been found. if(trim($mybb->input['replace']) != "")
| { // If the template is different, that means the search term has been found. if(trim($mybb->input['replace']) != "")
|
Zeile 889 | Zeile 909 |
---|
$page->output_footer(); exit;
|
$page->output_footer(); exit;
|
} }
| } }
|
} if($admin_options['codepress'] != 0)
| } if($admin_options['codepress'] != 0)
|
Zeile 953 | Zeile 973 |
---|
var area = $('find_cp'); area.id = 'find'; area.value = find.getCode();
|
var area = $('find_cp'); area.id = 'find'; area.value = find.getCode();
|
area.disabled = false; }
| area.disabled = false; }
|
if($('replace_cp')) { var area = $('replace_cp');
| if($('replace_cp')) { var area = $('replace_cp');
|
Zeile 965 | Zeile 985 |
---|
}); </script>"; }
|
}); </script>"; }
|
|
|
$page->output_footer(); }
|
$page->output_footer(); }
|
|
|
if($mybb->input['action'] == "find_updated") { $plugins->run_hooks("admin_style_templates_find_updated");
// Finds templates that are old and have been updated by MyBB $compare_version = $mybb->version_code;
|
if($mybb->input['action'] == "find_updated") { $plugins->run_hooks("admin_style_templates_find_updated");
// Finds templates that are old and have been updated by MyBB $compare_version = $mybb->version_code;
|
$query = $db->query("
| $query = $db->query("
|
SELECT COUNT(*) AS updated_count FROM ".TABLE_PREFIX."templates t LEFT JOIN ".TABLE_PREFIX."templates m ON (m.title=t.title AND m.sid=-2 AND m.version > t.version)
| SELECT COUNT(*) AS updated_count FROM ".TABLE_PREFIX."templates t LEFT JOIN ".TABLE_PREFIX."templates m ON (m.title=t.title AND m.sid=-2 AND m.version > t.version)
|
Zeile 988 | Zeile 1008 |
---|
flash_message($lang->no_updated_templates, 'success'); admin_redirect("index.php?module=style-templates"); }
|
flash_message($lang->no_updated_templates, 'success'); admin_redirect("index.php?module=style-templates"); }
|
|
|
$page->add_breadcrumb_item($lang->find_updated, "index.php?module=style-templates&action=find_updated"); $page->output_header($lang->find_updated);
| $page->add_breadcrumb_item($lang->find_updated, "index.php?module=style-templates&action=find_updated"); $page->output_header($lang->find_updated);
|
Zeile 997 | Zeile 1017 |
---|
$query = $db->simple_select("templatesets", "*", "", array('order_by' => 'title')); while($templateset = $db->fetch_array($query))
|
$query = $db->simple_select("templatesets", "*", "", array('order_by' => 'title')); while($templateset = $db->fetch_array($query))
|
{
| {
|
$templatesets[$templateset['sid']] = $templateset; }
| $templatesets[$templateset['sid']] = $templateset; }
|
Zeile 1042 | Zeile 1062 |
---|
} foreach($templates as $template)
|
} foreach($templates as $template)
|
{
| {
|
$popup = new PopupMenu("template_{$template['tid']}", $lang->options); $popup->add_item($lang->full_edit, "index.php?module=style-templates&action=edit_template&title=".urlencode($template['title'])."&sid={$sid}&from=diff_report");
|
$popup = new PopupMenu("template_{$template['tid']}", $lang->options); $popup->add_item($lang->full_edit, "index.php?module=style-templates&action=edit_template&title=".urlencode($template['title'])."&sid={$sid}&from=diff_report");
|
$popup->add_item($lang->diff_report, "index.php?module=style-templates&action=diff_report&title=".urlencode($template['title'])."&sid1=".$template['sid']."&sid2=-2");
| $popup->add_item($lang->diff_report, "index.php?module=style-templates&action=diff_report&title=".urlencode($template['title'])."&sid1=".$template['sid']."&sid2=-2&from=diff_report");
|
$popup->add_item($lang->revert_to_orig, "index.php?module=style-templates&action=revert&title=".urlencode($template['title'])."&sid={$sid}&from=diff_report&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_template_revertion}')"); $table->construct_cell("<a href=\"index.php?module=style-templates&action=edit_template&title=".urlencode($template['title'])."&sid={$sid}&from=diff_report\">{$template['title']}</a>", array('width' => '80%'));
| $popup->add_item($lang->revert_to_orig, "index.php?module=style-templates&action=revert&title=".urlencode($template['title'])."&sid={$sid}&from=diff_report&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_template_revertion}')"); $table->construct_cell("<a href=\"index.php?module=style-templates&action=edit_template&title=".urlencode($template['title'])."&sid={$sid}&from=diff_report\">{$template['title']}</a>", array('width' => '80%'));
|
Zeile 1058 | Zeile 1078 |
---|
{ $done_output[$sid] = 1; if($count == 1)
|
{ $done_output[$sid] = 1; if($count == 1)
|
{
| {
|
$table->output($lang->find_updated); } else { $table->output();
|
$table->output($lang->find_updated); } else { $table->output();
|
} } } $page->output_footer();
| } } } $page->output_footer();
|
}
if($mybb->input['action'] == "delete_set")
| }
if($mybb->input['action'] == "delete_set")
|
Zeile 1112 | Zeile 1132 |
---|
$db->delete_query("templates", "sid='{$set['sid']}'"); $plugins->run_hooks("admin_style_templates_delete_set_commit");
|
$db->delete_query("templates", "sid='{$set['sid']}'"); $plugins->run_hooks("admin_style_templates_delete_set_commit");
|
// Log admin action
| // Log admin action
|
log_admin_action($set['sid'], $set['title']);
flash_message($lang->success_template_set_deleted, 'success');
| log_admin_action($set['sid'], $set['title']);
flash_message($lang->success_template_set_deleted, 'success');
|
Zeile 1157 | Zeile 1177 |
---|
$db->delete_query("templates", "tid='{$template['tid']}'"); $plugins->run_hooks("admin_style_templates_delete_template_commit");
|
$db->delete_query("templates", "tid='{$template['tid']}'"); $plugins->run_hooks("admin_style_templates_delete_template_commit");
|
|
|
// Log admin action log_admin_action($template['tid'], $template['title'], $template['sid'], $template['set_title']);
| // Log admin action log_admin_action($template['tid'], $template['title'], $template['sid'], $template['set_title']);
|
Zeile 1184 | Zeile 1204 |
---|
'title' => $lang->find_updated, 'link' => "index.php?module=style-templates&action=find_updated" );
|
'title' => $lang->find_updated, 'link' => "index.php?module=style-templates&action=find_updated" );
|
| }
if(!$mybb->input['from']) { $mybb->input['from'] = 0;
|
} $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'])."&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=".$mybb->input['from']."sid1=".intval($mybb->input['sid1'])."&sid2=".intval($mybb->input['sid2']),
|
'description' => $lang->diff_report_desc );
| 'description' => $lang->diff_report_desc );
|
Zeile 1218 | Zeile 1243 |
---|
$template2['template'] = explode("\n", $template2['template']);
$plugins->run_hooks("admin_style_templates_diff_report_run");
|
$template2['template'] = explode("\n", $template2['template']);
$plugins->run_hooks("admin_style_templates_diff_report_run");
|
require_once MYBB_ROOT."inc/3rdparty/diff/Diff.php"; require_once MYBB_ROOT."inc/3rdparty/diff/Diff/Renderer/inline.php";
| |
|
|
$diff = new Text_Diff('auto', array($template1['template'], $template2['template'])); $renderer = new Text_Diff_Renderer_inline();
| require_once MYBB_ROOT."inc/3rdparty/diff/Diff.php"; require_once MYBB_ROOT."inc/3rdparty/diff/Diff/Renderer.php"; require_once MYBB_ROOT."inc/3rdparty/diff/Diff/Renderer/Inline.php";
$diff = new Horde_Text_Diff('auto', array($template1['template'], $template2['template'])); $renderer = new Horde_Text_Diff_Renderer_Inline();
|
if($sid) {
| if($sid) {
|
Zeile 1234 | Zeile 1261 |
---|
$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'])."&sid1=".intval($mybb->input['sid1'])."&sid2=".intval($mybb->input['sid2']));
| $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->output_header($lang->template_sets);
| $page->output_header($lang->template_sets);
|
Zeile 1242 | Zeile 1269 |
---|
$table = new Table;
|
$table = new Table;
|
$table->construct_header("<ins>".$lang->master_updated_ins."</ins><br /><del>".$lang->master_updated_del."</del>");
| if($mybb->input['from']) { $table->construct_header("<ins>".$lang->master_updated_ins."</ins><br /><del>".$lang->master_updated_del."</del>"); } else { $table->construct_header("<ins>".$lang->master_updated_del."</ins><br /><del>".$lang->master_updated_ins."</del>"); }
|
$table->construct_cell("<pre class=\"differential\">".$renderer->render($diff)."</pre>"); $table->construct_row();
| $table->construct_cell("<pre class=\"differential\">".$renderer->render($diff)."</pre>"); $table->construct_row();
|
Zeile 1253 | Zeile 1287 |
---|
}
if($mybb->input['action'] == "revert")
|
}
if($mybb->input['action'] == "revert")
|
{
| {
|
$plugins->run_hooks("admin_style_templates_revert");
|
$plugins->run_hooks("admin_style_templates_revert");
|
|
|
$query = $db->query(" SELECT t.*, s.title as set_title FROM ".TABLE_PREFIX."templates t
| $query = $db->query(" SELECT t.*, s.title as set_title FROM ".TABLE_PREFIX."templates t
|
Zeile 1269 | Zeile 1303 |
---|
{ flash_message($lang->error_invalid_template, 'error'); admin_redirect("index.php?module=style-templates");
|
{ flash_message($lang->error_invalid_template, 'error'); admin_redirect("index.php?module=style-templates");
|
}
| }
|
// User clicked no if($mybb->input['no'])
|
// User clicked no if($mybb->input['no'])
|
{
| {
|
admin_redirect("index.php?module=style-templates&sid={$template['sid']}{$expand_str2}"); }
| admin_redirect("index.php?module=style-templates&sid={$template['sid']}{$expand_str2}"); }
|
Zeile 1283 | Zeile 1317 |
---|
$db->delete_query("templates", "tid='{$template['tid']}'"); $plugins->run_hooks("admin_style_templates_revert_commit");
|
$db->delete_query("templates", "tid='{$template['tid']}'"); $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 log_admin_action($template['tid'], $template['sid'], $template['sid'], $template['set_title']);
|
|
|
flash_message($lang->success_template_reverted, 'success'); if($mybb->input['from'] == "diff_report")
|
flash_message($lang->success_template_reverted, 'success'); if($mybb->input['from'] == "diff_report")
|
{
| {
|
admin_redirect("index.php?module=style-templates&action=find_updated");
|
admin_redirect("index.php?module=style-templates&action=find_updated");
|
}
| }
|
else { admin_redirect("index.php?module=style-templates&sid={$template['sid']}{$expand_str2}");
| else { admin_redirect("index.php?module=style-templates&sid={$template['sid']}{$expand_str2}");
|
Zeile 1303 | Zeile 1337 |
---|
$page->output_confirm_action("index.php?module=style-templates&sid={$template['sid']}{$expand_str}", $lang->confirm_template_revertion); } }
|
$page->output_confirm_action("index.php?module=style-templates&sid={$template['sid']}{$expand_str}", $lang->confirm_template_revertion); } }
|
|
|
if($mybb->input['sid'] && !$mybb->input['action']) { $plugins->run_hooks("admin_style_templates_set");
|
if($mybb->input['sid'] && !$mybb->input['action']) { $plugins->run_hooks("admin_style_templates_set");
|
|
|
$table = new Table;
|
$table = new Table;
|
$page->extra_header .= '<script type="text/javascript"> Event.observe(document, "dom:loaded", function() { var lastelement = \'\'; link_preview_template_list = $$(\'a.preview_template_list\'); link_preview_template_list.each(function(element) { Event.observe(element, "mouseover", function(event) { if(lastelement != \'\') { $(lastelement).hide(); } listelement = Event.element(event); $(listelement.id.replace("preview_", "")).show(); lastelement = listelement.id.replace("preview_", ""); } ); Event.observe(element, "mouseout", function(event) { listelement = Event.element(event); $(listelement.id.replace("preview_", "")).hide(); lastelement = \'\'; } ); }); }); </script>';
| |
$page->add_breadcrumb_item($template_sets[$sid], "index.php?module=style-templates&sid={$sid}");
| $page->add_breadcrumb_item($template_sets[$sid], "index.php?module=style-templates&sid={$sid}");
|
Zeile 1357 | Zeile 1379 |
---|
$page->output_footer(); }
|
$page->output_footer(); }
|
| if(!isset($mybb->input['expand'])) { $mybb->input['expand'] = ''; }
|
if($mybb->input['expand'] == 'all') { // If we're expanding everything, stick in the ungrouped templates in the list as well
| if($mybb->input['expand'] == 'all') { // If we're expanding everything, stick in the ungrouped templates in the list as well
|
Zeile 1391 | Zeile 1417 |
---|
"title" => $lang->ungrouped_templates, "gid" => -1 );
|
"title" => $lang->ungrouped_templates, "gid" => -1 );
|
|
|
// Load the list of templates $query = $db->simple_select("templates", "*", "sid='".intval($mybb->input['sid'])."' OR sid='-2'", array('order_by' => 'sid DESC, title', 'order_dir' => 'ASC')); while($template = $db->fetch_array($query)) { $exploded = explode("_", $template['title'], 2);
|
// Load the list of templates $query = $db->simple_select("templates", "*", "sid='".intval($mybb->input['sid'])."' OR sid='-2'", array('order_by' => 'sid DESC, title', 'order_dir' => 'ASC')); while($template = $db->fetch_array($query)) { $exploded = explode("_", $template['title'], 2);
|
|
|
if(isset($template_groups[$exploded[0]])) { $group = $exploded[0];
| if(isset($template_groups[$exploded[0]])) { $group = $exploded[0];
|
Zeile 1406 | Zeile 1432 |
---|
{ $group = -1; }
|
{ $group = -1; }
|
$template['gid'] = $template_groups[$exploded[0]]['gid'];
| |
|
|
// Ungrouped template? if(!$template['gid'])
| $template['gid'] = -1; if(isset($template_groups[$exploded[0]]['gid']))
|
{
|
{
|
$template['gid'] = -1;
| $template['gid'] = $template_groups[$exploded[0]]['gid'];
|
}
// If this template is not a master template, we simple add it to the list
| }
// If this template is not a master template, we simple add it to the list
|
Zeile 1524 | Zeile 1549 |
---|
} else if(isset($group['templates']) && count($group['templates']) > 0) {
|
} else if(isset($group['templates']) && count($group['templates']) > 0) {
|
$table->construct_cell("<strong><a href=\"index.php?module=style-templates&sid={$sid}{$group['expand_str']}#group_{$group['gid']}\" class=\"preview_template_list\" id=\"preview_template_list_{$group['gid']}\">{$group['title']}</a></strong>"); $table->construct_cell("<a href=\"index.php?module=style-templates&sid={$sid}{$group['expand_str']}#group_{$group['gid']}\">{$expand}</a>", array("class" => "align_center")); $table->construct_row(array("class" => "alt_row", "id" => "group_".$group['gid'], "name" => "group_".$group['gid']));
| $table->construct_cell("<strong><a href=\"index.php?module=style-templates&sid={$sid}{$group['expand_str']}#group_{$group['gid']}\">{$group['title']}</a></strong>"); $table->construct_cell("<a href=\"index.php?module=style-templates&sid={$sid}{$group['expand_str']}#group_{$group['gid']}\">{$expand}</a>", array("class" => "align_center")); $table->construct_row(array("class" => "alt_row", "id" => "group_".$group['gid'], "name" => "group_".$group['gid']));
|
} }
| } }
|
Zeile 1548 | Zeile 1573 |
---|
while($theme = $db->fetch_array($query)) { $tbits = unserialize($theme['properties']);
|
while($theme = $db->fetch_array($query)) { $tbits = unserialize($theme['properties']);
|
$themes[$tbits['templateset']][$theme['tid']] = $theme['name']; }
| $themes[$tbits['templateset']][$theme['tid']] = htmlspecialchars_uni($theme['name']); }
|
$template_sets = array(); $template_sets[-1]['title'] = $lang->global_templates; $template_sets[-1]['sid'] = -1;
| $template_sets = array(); $template_sets[-1]['title'] = $lang->global_templates; $template_sets[-1]['sid'] = -1;
|
Zeile 1573 | Zeile 1598 |
---|
$table->construct_cell("<a href=\"index.php?module=style-templates&sid=-1\">{$lang->expand_templates}</a>", array("class" => "align_center")); $table->construct_row(); continue;
|
$table->construct_cell("<a href=\"index.php?module=style-templates&sid=-1\">{$lang->expand_templates}</a>", array("class" => "align_center")); $table->construct_row(); continue;
|
}
| }
|
if($themes[$set['sid']]) {
| if($themes[$set['sid']]) {
|
Zeile 1583 | Zeile 1608 |
---|
{ $used_by_note .= $comma.$theme_name; $comma = $lang->comma;
|
{ $used_by_note .= $comma.$theme_name; $comma = $lang->comma;
|
} } else
| } } else
|
{ $used_by_note = $lang->not_used_by_any_themes; }
| { $used_by_note = $lang->not_used_by_any_themes; }
|
Zeile 1621 | Zeile 1646 |
---|
$page->output_footer(); }
|
$page->output_footer(); }
|
| |
?>
| ?>
|