спасибо, да в таком виде эта строка прошла и у меня.
после этого Easy Mod ещё два раза споткнулся. Первый об запятую в "That's all, Folks!", которой не стало в новых версиях, а второй об строчку
Код: Выделить всё
<td class="row1">{L_NO} <input type="radio" name="gzipcompress" value="0" checked /> {L_YES} <input type="radio" name="gzipcompress" value="1" /></t
теперь в ней добавился перед {L_YES}
После внесения этих поправок Easymod проглотил то, что ему давали и мод успешно установился.
Вот весь код мода, успешно пролезающий в phpBB 2.0.18 и EasyMod 0.3.0 (может кому ещё пригодится):
Код: Выделить всё
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_db_utilities.php
#
#-----[ FIND ]------------------------------------------
#
$tables = array('auth_access', 'banlist', 'categories', 'config', 'disallow', 'forums', 'forum_prune', 'groups', 'posts', 'posts_text', 'privmsgs', 'privmsgs_text', 'ranks', 'search_results', 'search_wordlist', 'search_wordmatch', 'sessions', 'smilies', 'themes', 'themes_name', 'topics', 'topics_watch', 'user_group', 'users', 'vote_desc', 'vote_results', 'vote_voters', 'words', 'confirm');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$extralight = (!empty($HTTP_POST_VARS['extralight'])) ? $HTTP_POST_VARS['extralight'] : ( (!empty($HTTP_GET_VARS['extralight'])) ? $HTTP_GET_VARS['extralight'] : 0 );
if ($extralight)
{
$tables = array('auth_access', 'banlist', 'categories', 'config', 'disallow', 'forums', 'forum_prune', 'groups', 'posts', 'posts_text', 'privmsgs', 'privmsgs_text', 'ranks', 'smilies', 'themes', 'themes_name', 'topics', 'topics_watch', 'user_group', 'users', 'vote_desc', 'vote_results', 'vote_voters', 'words', 'confirm');
}
else
{
$tables = array('auth_access', 'banlist', 'categories', 'config', 'disallow', 'forums', 'forum_prune', 'groups', 'posts', 'posts_text', 'privmsgs', 'privmsgs_text', 'ranks', 'search_results', 'search_wordlist', 'search_wordmatch', 'sessions', 'smilies', 'themes', 'themes_name', 'topics', 'topics_watch', 'user_group', 'users', 'vote_desc', 'vote_results', 'vote_voters', 'words', 'confirm');
}
#
#-----[ FIND ]------------------------------------------
#
"L_GZIP_COMPRESS" => $lang['Gzip_compress'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_EXTRALIGHT_BACKUP" => $lang['ExtraLight_backup'],
#
#-----[ FIND ]------------------------------------------
#
"META" => '<meta http-equiv="refresh" content="2;url=' . append_sid("admin_db_utilities.$phpEx?perform=backup&additional_tables=" . quotemeta($additional_tables) . "&backup_type=$backup_type&drop=1&backupstart=1&gzipcompress=$gzipcompress&startdownload=1") . '">',
#
#-----[ IN-LINE FIND ]------------------------------------------
#
&gzipcompress=$gzipcompress
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
&extralight=$extralight
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// eXtraLight Backup
$lang['ExtraLight_backup'] = 'eXtraLight Backup';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/db_utils_backup_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_GZIP_COMPRESS}</td>
<td class="row1">{L_NO} <input type="radio" name="gzipcompress" value="0" checked /> {L_YES} <input type="radio" name="gzipcompress" value="1" /></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_EXTRALIGHT_BACKUP}</td>
<td class="row1">{L_NO} <input type="radio" name="extralight" value="0" checked /> {L_YES} <input type="radio" name="extralight" value="1" /></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Добавлено спустя 18 минут 36 секунд:
хочется ещё раз сказать спасибо.
только что оттестил мод на рабочем форуме. 17-меговая база ужалась до 7 мБ, которые с gzip'ом весили и вовсе 2мБ.
Даже покурить не успел.