- Код: Выделить всё
##############################################################
## MOD Title: Cut parsed template
## MOD Author: R@ < meos@mail.ru > (n/a) n/a
## MOD Description: Save traffic by cutting tabs, new lines and spaces from parsed template
## MOD Version: 2.0.0
##
## Installation Level: Easy
## Installation Time: 1 Minutes
## Files To Edit: /includes/template.php
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: All good ;)
##
## Thanks to: Xpert for some code hints
##
##############################################################
## MOD History:
##
## 2005-07-24 - Version 2.0.0
## - Full rewrite :)
##
## 2005-07-24 - Version 1.0.0
## - Firs version
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
/includes/template.php
#
#-----[ FIND ]------------------------------------------
#
{
$code_lines[$i] = '$' . $retvar . '.= \'' . $code_lines[$i] . '\' . "\\n";';
}
#
#-----[ AFFTER ADD ]------------------------------------------
#
$code_lines[$i] = str_replace("\t", '', preg_replace('# *#', ' ', str_replace("\\n", ' ', $code_lines[$i])));
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
А так же усложняет процесс копирования HTML кода всякими плагиаторами.
Интересует совместимость с быстрым ответом by Xpert (на момент 3-его редактирования не актуально)







