Mam błąd
Fatal error: Call to undefined function render_recenzje() in /home/acc1149/public_html/readrecenzje.php on line 47
a tak zrobiłem readrecenzje.php
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
require_once INCLUDES."comments_include.php";
require_once INCLUDES."ratings_include.php";
if (!isset($recenzje_id) || !isNum($recenzje_id)) fallback("index.php");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
$result = dbquery(
"SELECT ta.*,tac.*, tu.user_id,user_name FROM ".$db_prefix."recenzje ta
INNER JOIN ".$db_prefix."recenzje_cats tac ON ta.recenzje_cat=tac.recenzje_cat_id
LEFT JOIN ".$db_prefix."users tu ON ta.recenzje_name=tu.user_id
WHERE recenzje_id='$recenzje_id'"
);
$res = 0;
if (dbrows($result) != 0) {
$data = dbarray($result);
if (checkgroup($data['recenzje_cat_access'])) {
$res = 1;
if ($rowstart == 0) $result = dbquery("UPDATE ".$db_prefix."recenzje SET recenzje_reads=recenzje_reads+1 WHERE recenzje_id='$recenzje_id'");
$recenzje = stripslashes($data['recenzje_recenzje']);
$recenzje = explode("<--PAGEBREAK-->", $recenzje);
$pagecount = count($recenzje);
$recenzje_subject = stripslashes($data['recenzje_subject']);
$recenzje_info = array(
"recenzje_id" => $data['recenzje_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"recenzje_date" => $data['recenzje_datestamp'],
"recenzje_breaks" => $data['recenzje_breaks'],
"recenzje_comments" => dbcount("(comment_id)", "comments", "comment_type='A' AND comment_item_id='".$data['recenzje_id']."'"),
"recenzje_reads" => $data['recenzje_reads'],
"recenzje_allow_comments" => $data['recenzje_allow_comments']
);
render_recenzje($recenzje_subject, $recenzje[$rowstart], $recenzje_info);
if (count($recenzje) > 1) {
$rows = $pagecount;
echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,1,$rows,3,FUSION_SELF."?recenzje_id=$recenzje_id&")."\n</div>\n";
}
if ($data['recenzje_allow_comments']) showcomments("A","recenzje","recenzje_id",$recenzje_id,FUSION_SELF."?recenzje_id=$recenzje_id");
if ($data['recenzje_allow_ratings']) showratings("A",$recenzje_id,FUSION_SELF."?recenzje_id=$recenzje_id");
}
}
if ($res == 0) redirect("recenzje.php");
require_once "side_right.php";
require_once "footer.php";
?>
Kolejnym razem będzie warn i temat w koszu//bartek124
PW od moderatora:
- Zmiana nazwy tematu - bartek124 08.06 - 16:35
- Przeniesienie tematu - bartek124 08.06 - 16:35
Edytowane przez bartek124 dnia 08.06.2008 18:14:55
|