Verfasst: 02.06.2003 14:16
Habt ihr immer noch keinen Plan?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Acid hat geschrieben:Schauen tun sicherlich viele, nur wenn´s keine Antwort gibt... hmm, woran wird das liegen ?
Code: Alles auswählen
#-------------------------------------------------------------
# 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?" . '>');
# EoM