用appserv 2.4.1
本來用2.0.6~不過作天有人惡意破壞所以更新2.0.13
現在都沒問題~只係由2.0.11更新至2.0.13時~有一個檔案找不到要改的地方~
問題出現在includes/template.php 這個檔~它要由\r
includes/template.php
代碼: 選擇全部
#
#-----[ FIND ]---------------------------------------------
# Line 233
$filename = phpbb_realpath($this->root . '/' . $filename);
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$filename = ($rp_filename = phpbb_realpath($this->root . '/' . $filename)) ? $rp_filename : $filename;
但我根本就找不到 $filename = phpbb_realpath($this->root . '/' . $filename);
我本來的template.php 233那行是這樣的 :
$this->cachedir = $phpbb_root_path . $this->cachedir;
請問我應該怎樣改?還是不改也行??
template.php <---這個檔是負責什麼的呢??
謝謝~
我附上一段template.php code 請各位高手幫忙
代碼: 選擇全部
if (!@is_dir($dir))
{
return false;
}
$dir = str_replace('\\\', '/', $dir);
// creating absolute path for cache
$this->cachedir = str_replace('\\\', '/', $board_config['xs_cache_dir']);
if(!$board_config['xs_cache_dir_absolute'])
{
$this->cachedir = $phpbb_root_path . $this->cachedir; }
// adding trailing '/'
if(substr($this->cachedir, strlen($this->cachedir)-1, 1) != '/')
{
$this->cachedir .= '/';
}
// creating absolute path for current template and root dir
$this->tpldir = $phpbb_root_path . 'templates/';
// adding trailing '/'
if(substr($this->tpldir, strlen($this->tpldir)-1, 1) != '/')
{
$this->tpldir .= '/';
}
$this->tpldir_len = strlen($this->tpldir);
$this->root = $dir;
$this->tpl = $this->template_name($dir);
return true;
}