Seite 1 von 1

statistics_mod_215_7d

Verfasst: 12.03.2006 23:46
von Gulaschk@none
habe den mod's installiert -er geht auch gut :grin:

aber als zusatz stand das noch da was sagt mir das ?
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

#-------------------------------------------------------------
# NOTE: THIS STEP IS ONLY NEEDED IF YOU USE THE FILE-BASED CACHED TEMPLATE.PHP FILE
#
# If you are using the template cache system (only file-based is mentioned here),
# please adjust your template.php as followed (This will NOT disable the Template Caching)
# It is a little tweak to let the template use the non-cached output if no cached template
# file could be found.
#-------------------------------------------------------------

#
#-----[ OPEN ]---------------------------------------------
#
includes/template.php

#
#-----[ FIND ]---------------------------------------------
# around line 144
$fp = fopen($cache_file, 'w+');
fwrite ($fp, '<?php' . "\n" . $this->compiled_code[$handle] . "\n?" . '>');

#
#-----[ REPLACE WITH ]--------------------------------------
#
$fp = @fopen($cache_file, 'w+');
if (!$fp)
{
eval($this->compiled_code[$handle]);
return true;
}
fwrite ($fp, '<?php' . "\n" . $this->compiled_code[$handle] . "\n?" . '>');

#
#-----[ FIND ]---------------------------------------------
# around line 188
$fp = fopen($cache_file, 'w+');
fwrite ($fp, '<?php' . "\n" . $code . "\n?" . '>');

#
#-----[ REPLACE WITH ]--------------------------------------
#
$fp = @fopen($cache_file, 'w+');
if (!$fp)
{
$_str = '';
eval($code);
$this->assign_var($varname, $_str);
return true;
}
fwrite ($fp, '<?php' . "\n" . $code . "\n?" . '>');

wer schön wenn mir das jemand beantwortet .

Verfasst: 14.03.2006 15:14
von Gulaschk@none
schie´b :roll:

Verfasst: 14.03.2006 15:43
von easygo
Irrelevant! Betrifft nur Foren, wo die file-basierte Variante von dem

Caching template system

zum Einsatz kommt. Im Original ist der Code nicht drin. easy