Наши скрипты > MobilePublisherPHP

Баг 1.5 RC2 в редактировании шаблонов

(1/1)

monte:
Невозможно редактировать шаблоны
post_step1
post_step2

скрипт сбивается и показывает сам html файл вместо того, чтоб показать шаблон в форме.

monte:
Решение

Ищем файл admin/templates.php

меняем

if($edit && !$editsubmit) {
if($tid == "default") {
redirect($PHP_SELF, $lang_selecttemplate);
exit;
}
eval(\'$out .= "\'.template("admin_edit_templates3").\'";\');
    $template[name]=$tid;
    $fp=fopen("$abspath/templates/$templatesdir/$tid.html",\'r\');
    $template[template]=fread($fp, filesize("$abspath/templates/$templatesdir/$tid.html"));

eval(\'$out .= "\'.template("admin_edit_templates4").\'";\');
}

на

if($edit && !$editsubmit) {
if($tid == "default") {
redirect($PHP_SELF, $lang_selecttemplate);
exit;
}
eval(\'$out .= "\'.template("admin_edit_templates3").\'";\');
    $template[name]=$tid;
    $fp=fopen("$abspath/templates/$templatesdir/$tid.html",\'r\');
    $template[template]=fread($fp, filesize("$abspath/templates/$templatesdir/$tid.html"));
$template[template] = stripslashes($template[template]);
$template[template] = htmlspecialchars($template[template]);
eval(\'$out .= "\'.template("admin_edit_templates4").\'";\');
}

AN:
Спасибо!
Исправим!

Навигация

[0] Главная страница сообщений

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 
Перейти к полной версии