tu podaję 3 pliki odpowiedzialne za to
blogs_full.php
<?php /* (C) ABK-Soft Ltd., 2004-2006 IMPORTANT: This is a commercial software product and any kind of using it must agree to the ABK-Soft Ltd. license agreement. It can be found at <a href=\"http://abk-soft.com/license.doc\" target=\"_blank\">http://abk-soft.com/license.doc</a> This notice may not be removed from the source code. */ include("./_include/core/main_start.php"); payment_check('blogs_read'); class CBlog extends CHtmlBlock { function action() { $cmd = get_param("cmd", ""); if ($cmd == "comment") { if ($g_user['user_id'] == 0) redirect("join.php"); { DB::execute(" INSERT INTO blog_comment SET msg_id=" . to_sql(get_param("id", ""), "Number") . ", user_id=" . $g_user['user_id'] . ", comment=" . to_sql(get_param("comment", ""), "Text") . ", "); DB::execute(" UPDATE blog_msg SET count_comment=(count_comment+1) WHERE id=" . to_sql(get_param("id", ""), "Number") . " "); } } } function parseBlock(&$html) { if ($g['options']['blogs'] == "Y") { $html->parse("my_blog", true); } else { redirect("home.php"); } DB::query(" FROM (blog_msg AS b LEFT JOIN user AS u ON u.user_id=b.user_id) WHERE b.id=" . to_sql(get_param("id", ""), "Number") . " "); if ($row = DB::fetch_row()) { DB::query(" FROM (blog_comment AS b LEFT JOIN user AS u ON u.user_id=b.user_id) WHERE b.msg_id=" . to_sql(get_param("id", ""), "Number") . " "); while ($row2 = DB::fetch_row()) { foreach ($row2 as $k => $v) { $html->setvar($k, to_html($v)); } $html->setvar("comment", to_html($row2['comment'])); $html->parse("comment", true); } foreach ($row as $k => $v) { $html->setvar($k, to_html($v)); } $html->setvar("msg", to_html($row['msg'])); if ($row['image'] != "") { $html->setvar("image", $row['id'] . ".jpg"); $html->parse($this->m_name . "_image", false); } else { $html->setblockvar($this->m_name . "_image", ""); } #$html->setvar("city_title", DB::result("SELECT city_title FROM geo_city WHERE city_id=" . $row['city_id'], 0, 2)); #$html->setvar("state_title", DB::result("SELECT state_title FROM geo_state WHERE state_id=" . $row['state_id'], 0, 2)); #$html->setvar("country_title", DB::result("SELECT country_title FROM geo_country WHERE country_id=" . $row['country_id'], 0, 2)); } else { redirect("blogs.php"); } parent::parseBlock($html); } } $page = new CBlog("blogs_list", $g['tmpl']['dir_tmpl_main'] . "blogs_full.html"); $header = new CHeader("header_blogi", $g['tmpl']['dir_tmpl_main'] . "_header_blogi.html"); $page->add($header); $footer = new CFooter("footer", $g['tmpl']['dir_tmpl_main'] . "_footer.html"); $page->add($footer); $users_ims = new CIms("ims", $g['tmpl']['dir_tmpl_main'] . "_ims.html"); $page->add($users_ims); include("./_include/core/main_close.php"); ?>
blogs_full.html
{header_blogi} {ims} <div align="left"> <td width="1" valign="top"> <div style="padding: 10px;"> <!-- begin_blogs_list_image --> <img src="{url_files}blog/{image}" border="0" class="blog_photo"> <!-- end_blogs_list_image --> </div> </td> <td valign="top"> </td> </div> <div align="right" class="blog_inf"> </div> <br /> <br /> <!-- begin_comment --> <td width="1" valign="top"> <div style="padding: 10px;"> <!-- begin_blogs_list_image --> <img src="{url_files}blog/{image}" border="0"> <!-- end_blogs_list_image --> </div> </td> <td valign="top"> </td> <br /> <br /> <!-- end_comment --> <div align="left" > <form action="{url_page}?id={id}" method="POST"> <input type="hidden" name="cmd" value="comment"> <input type="submit" class="button" style=" padding-left: 5px; padding-right: 5px;cursor: pointer; cursor: hand;" tabindex="13" value="{l_send_comment}"> </form> </div> {footer}
Ostatniego Pliku _header_blogi.html nie szło wgrać