Навигация
Мини профиль
Все для Ucoz
Все для DLE
Хак новая оффлайн страница с таймером DLE
Установка:
Слить содержимое папки THEME в ваш шаблон.
Открыть: \engine\modules\offline.php
Ищем:
Code
$config['offline_reason'] = str_replace('"', '"', $config['offline_reason']);
$tpl->set('{reason}', $config['offline_reason']);
$tpl->set('{reason}', $config['offline_reason']);
Заменить на:
Code
$config['offline_reason'] = str_replace('"', '"', $config['offline_reason']);
$config['year'] = str_replace('"', '"', $config['offline_year']);
$config['month'] = str_replace('"', '"', $config['offline_month']);
$config['date'] = str_replace('"', '"', $config['offline_date']);
$config['hour'] = str_replace('"', '"', $config['offline_second']);
$config['minute'] = str_replace('"', '"', $config['offline_minute']);
$config['percent'] = str_replace('"', '"', $config['percent']);
$tpl->set('{reason}', $config['offline_reason']);
$tpl->set('{year}', $config['offline_year']);
$tpl->set('{month}', $config['offline_month']);
$tpl->set('{date}', $config['offline_date']);
$tpl->set('{hour}', $config['offline_hour']);
$tpl->set('{minute}', $config['offline_minute']);
$tpl->set('{percent}', $config['percent']);
$config['year'] = str_replace('"', '"', $config['offline_year']);
$config['month'] = str_replace('"', '"', $config['offline_month']);
$config['date'] = str_replace('"', '"', $config['offline_date']);
$config['hour'] = str_replace('"', '"', $config['offline_second']);
$config['minute'] = str_replace('"', '"', $config['offline_minute']);
$config['percent'] = str_replace('"', '"', $config['percent']);
$tpl->set('{reason}', $config['offline_reason']);
$tpl->set('{year}', $config['offline_year']);
$tpl->set('{month}', $config['offline_month']);
$tpl->set('{date}', $config['offline_date']);
$tpl->set('{hour}', $config['offline_hour']);
$tpl->set('{minute}', $config['offline_minute']);
$tpl->set('{percent}', $config['percent']);
Открыть: \engine\inc\options.php
Ищем:
Code
showRow( $lang['opt_sys_reason'], $lang['opt_sys_reasond'], "<textarea class=\"edit bk\" style=\"width:350px;height:100px;\" name=\"save_con[offline_reason]\">{$config['offline_reason']}</textarea>" );
Ниже вставить:
Code
showRow( $lang['opt_sys_percent'], $lang['opt_sys_reasond'], "<b>Формат чисел:</b> 2010, 12, 23, 07, 30
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_year]\">{$config['offline_year']}</textarea></td>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_month]\">{$config['offline_month']}</textarea></td>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_date]\">{$config['offline_date']}</textarea></td>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_hour]\">{$config['offline_hour']}</textarea></td>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_minute]\">{$config['offline_minute']}</textarea></td>
</tr>
<tr>
<td><div align=\"center\">Год</div></td>
<td><div align=\"center\">Месяц</div></td>
<td><div align=\"center\">Число</div></td>
<td><div align=\"center\">Часов</div></td>
<td><div align=\"center\">Минут</div></td>
</tr>
</table>
" );
showRow( $lang['opt_sys_percent2'], $lang['opt_sys_reasond'], "<textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[percent]\">{$config['percent']}</textarea>" );
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_year]\">{$config['offline_year']}</textarea></td>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_month]\">{$config['offline_month']}</textarea></td>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_date]\">{$config['offline_date']}</textarea></td>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_hour]\">{$config['offline_hour']}</textarea></td>
<td><textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[offline_minute]\">{$config['offline_minute']}</textarea></td>
</tr>
<tr>
<td><div align=\"center\">Год</div></td>
<td><div align=\"center\">Месяц</div></td>
<td><div align=\"center\">Число</div></td>
<td><div align=\"center\">Часов</div></td>
<td><div align=\"center\">Минут</div></td>
</tr>
</table>
" );
showRow( $lang['opt_sys_percent2'], $lang['opt_sys_reasond'], "<textarea class=\"edit bk\" style=\"width:50px;height:14px; text-align: center;\" name=\"save_con[percent]\">{$config['percent']}</textarea>" );
Открыть: \language\Russian\adminpanel.lng
В любое место вставить:
Code
'opt_sys_percent' => "Дата завершения технических работ:",
'opt_sys_percent2' => "Процентов до завершения технических работ:",
'opt_sys_percent2' => "Процентов до завершения технических работ:",
ЕСЛИ НИЧЕГО НЕ РАБОТАЕТ!!!
Создаем в каждой папке из папки THEME файл .htaccess
Который должен содержать следующее:
Code
Order Deny,Allow
Allow from all
Options -Indexes
Allow from all
Options -Indexes
Мы будем рады, если файл Хак новая оффлайн страница с таймером DLE стал вам полезен, в свою очередь мы бы хотели, чтобы вы оставили небольшой комментарий.
Поделитесь с друзьями:        
Добавил: ucoz
Просмотров: 4663
Комментариев: 0