$member_db[4]"; } else{ $author = "$member_db[4]"; } }else{ if($member_db[7] != 1 and $member_db[5] != ""){ $author = "$member_db[2]"; } else{ $author = "$member_db[2]"; } } $output = $template_active; $output = str_replace("{title}", $title, $output); $output = str_replace("{date}", date($config_timestamp_active, time()), $output); $output = str_replace("{author}", $author, $output); if($avatar != ""){$output = str_replace("{avatar}", "", $output); } else{ $output = str_replace("{avatar}", "", $output); } $output = str_replace("[link]","", $output); $output = str_replace("[/link]","", $output); $output = str_replace("{comments-num}", countComments($id), $output); $output = str_replace("{short-story}", $short_story, $output); $output = str_replace("{full-story}", $full_story, $output); if($full_story){ $output = str_replace("[full-link]", "", $output); } else{ $output = preg_replace("'\[full-link\].*?\[/full-link\]'","", $output); } $output = str_replace("[/full-link]", "", $output); $output = str_replace("[com-link]", "", $output); $output = str_replace("[/com-link]", "", $output); $output = str_replace("{category}", $cat[$category], $output); $output = str_replace("{category-id}", $category, $output); if($cat_icon[$category] != ""){ $output = str_replace("{category-icon}", "", $output); } else{ $output = str_replace("{category-icon}", "", $output); } $output = str_replace("{author-name}", $member_db[2], $output); if($member_db[5] != ""){ $output = str_replace("[mail]","", $output); $output = str_replace("[/mail]","", $output); }else{ $output = str_replace("[mail]","", $output); $output = str_replace("[/mail]","", $output); } $output = str_replace("{news-id}", "ID Unknown", $output); $output = str_replace("{archive-id}", $archive, $output); $output = str_replace("{php-self}", $PHP_SELF, $output); $output = str_replace("{cute-http-path}", $config_http_script_dir, $output); $output = replace_news("show", $output); echo("
Aktív hírek: ".$output."
"); if($full_story){ $output = $template_full; $output = str_replace("{title}", $title, $output); $output = str_replace("{date}", date($config_timestamp_active, time()), $output); $output = str_replace("{author}", $author, $output); if($avatar != ""){$output = str_replace("{avatar}", "", $output); } else{ $output = str_replace("{avatar}", "", $output); } $output = str_replace("[link]","", $output); $output = str_replace("[/link]","", $output); $output = str_replace("{comments-num}", countComments($id), $output); $output = str_replace("{short-story}", $short_story, $output); $output = str_replace("{full-story}", $full_story, $output); if($full_story){ $output = str_replace("[full-link]", "", $output); } else{ $output = preg_replace("'\[full-link\].*?\[/full-link\]'","", $output); } $output = str_replace("[/full-link]", "", $output); $output = str_replace("[com-link]", "", $output); $output = str_replace("[/com-link]", "", $output); $output = str_replace("{category}", $cat[$category], $output); $output = str_replace("{category-id}", $category, $output); if($cat_icon[$category] != ""){ $output = str_replace("{category-icon}", "", $output); } else{ $output = str_replace("{category-icon}", "", $output); } $output = str_replace("{author-name}", $member_db[2], $output); if($member_db[5] != ""){ $output = str_replace("[mail]","", $output); $output = str_replace("[/mail]","", $output); }else{ $output = str_replace("[mail]","", $output); $output = str_replace("[/mail]","", $output); } $output = str_replace("{news-id}", "ID Unknown", $output); $output = str_replace("{archive-id}", $archive, $output); $output = str_replace("{php-self}", $PHP_SELF, $output); $output = str_replace("{cute-http-path}", $config_http_script_dir, $output); $output = replace_news("show", $output); echo("
Teljes hír: ".$output."
"); } ?>