Witam
Oto moje pliki:
class/template_class.php<?php
class template
{
var $theme = 'Default';
var $assigned_vars = array(); var $template_content = '';
var $block_vars = array(); var $template_html = NULL;
function add_file ($template_file)
{
$template_path = "./templates/$this->theme/$template_file";
{
}
else
{
echo ("[ <b>Template</b> ] :: Szablon $template_path nie może zostać odnaleziony<br>"); }
}
function set_block_template ($block_name, $array)
{
{
$block_count = 0;
foreach ($array as $key => $value)
{
$temp_array[$key] = $value;
$block_count++;
}
$this->block_name[$block_name][] = $temp_array;
}
else
{
echo ("[ <b>Template</b> ] :: Dane przekazane funkcją <b>assign_block</b> nie są tablicą"); }
}
function set_template ($array)
{
foreach ($array as $key => $value)
{
}
foreach ($this->assigned_vars as $key => $value)
{
$this->assigned_vars = str_replace('{'.$key.'}', $value, $this->assigned_vars); }
echo $this->template_content; }
?>
index.php<?php
$template = new template;
$template-> add_file("header.tpl");
$template-> add_file("index.tpl");
$template-> add_file("footer.tpl");
$user['lang'] = 'polish';
include ($keybb_path . "language/" . $user['lang'] . ".php");
$template-> set_template
(array( "L_POWERED_INFO" => $lang['powered_info'],
"ALL_POSTS" => $result_1,
));
?>
header.tpl<title>{BOARD_TITLE} - ( {L_POWERED_INFO} )
</title>
Zamiast napisu {L_POWERED_INFO} powinno pojawiać się na stronie Strona oparta o skrypt, jednak tak się nie dzieje. Próbuję to rozgryźć kilka dni i nadal nic

Pomocy