Parašė sampas· 2007 Bir. 24 20:06:30
#5
Esu pradedantis su
php, tad nelabai ką suprantu, paredagavau viewpage.php failo turinį į štai kokį:
<?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";
include LOCALE.LOCALESET."custom_pages.php";
if (isset($page_id) && !isNum($page_id)) fallback("index.php");
$result = dbquery("SELECT * FROM ".$db_prefix."custom_pages WHERE page_id='$page_id'");
if (dbrows($result) != 0) {
$data = dbarray($result);
opentable($data['page_title']);
if (checkgroup($data['page_access'])) {
$page = stripslashes($data['page_content']);
$page = explode("<--PAGEBREAK-->", $page);
$pagecount = count($page);
$page_info = array("page_id" => $data['page_id'],);
if (count($page) > 1) {
$rows = $pagecount;
echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,1,$rows,3,FUSION_SELF."?page_id=$page_id&")."\n</div>\n";
}
} else {
echo "<center><br>\n".$locale['400']."\n<br><br></center>\n";
}
} else {
opentable($locale['401']);
echo "<center><br>\n".$locale['402']."\n<br><br></center>\n";
}
closetable();
if (dbrows($result) && checkgroup($data['page_access'])) {
if ($data['page_allow_comments']) showcomments("C","custom_pages","page_id",$page_id,FUSION_SELF."?page_id=$page_id");
if ($data['page_allow_ratings']) showratings("C",$page_id,FUSION_SELF."?page_id=$page_id");
}
require_once "side_right.php";
require_once "footer.php";
?>
tačiau nerodo pačio puslapio turinio, tai yra rodo tik komentarus, reitingus, puslapius, jų skaičių ir puslapio pavadinimą. Manau bėda kažkur su
$page = stripslashes($data['page_content']); , gal kas nors galėtumėte pasakyti kur,ką ir kaip pakeisti, kad rodytų puslapio turinį?
Redagavo sampas· 2007 Bir. 24 20:06:48