sql_query($sql); $row = $db->sql_fetchrow($result); $title= $row[title]; $pagetitle = "| $module_name| $title"; function showpage($pid, $page=0) { global $prefix, $db,$dbi, $sitename, $admin, $module_name; @include("header.php"); OpenTable(); $sql = "SELECT * FROM ".$prefix."_pages WHERE pid='$pid'"; $result = $db->sql_query($sql); $mypage = $db->sql_fetchrow($result); if (($mypage[active] == 0) AND (!is_admin($admin))) { echo "Sorry... This page doesn't exist."; } else { $db->sql_query("UPDATE ".$prefix."_pages SET counter=counter+1 WHERE pid='$pid'"); $date = explode(" ", $mypage[date]); echo "$mypage[title]
" ."$mypage[subtitle]



"; $mypage[text] = decode_bbcode(set_smilies(stripslashes($mypage['text'])),1); $contentpages = explode( "",$mypage[text]); $pageno = count($contentpages); if ( $page=="" || $page < 1 ) $page = 1; if ( $page > $pageno ) $page = $pageno; $arrayelement = (int)$page; $arrayelement --; if ($pageno > 1) { echo ""._PAGE.": $page/$pageno
"; } if ($page == 1) { echo "

".nl2br($mypage[page_header])."


"; } echo "

$contentpages[$arrayelement]

"; if($page >= $pageno) { $next_page = ""; } else { $next_pagenumber = $page + 1; if ($page != 1) { $next_page .= "- "; } $next_page .= ""._NEXT." ($next_pagenumber/$pageno) \""._NEXT."\""; } if ($page == $pageno) { echo "

".nl2br($mypage[page_footer])."



"; } if($page <= 1) { $previous_page = ""; } else { $previous_pagenumber = $page - 1; $previous_page = "\""._PREVIOUS."\" "._PREVIOUS." ($previous_pagenumber/$pageno)"; } echo "


$previous_page $next_page


"; if ($page == $pageno) { echo "

".nl2br($mypage[signature])."

" ."

"._COPYRIGHT." $sitename "._COPYRIGHT2."

" ."

"._PUBLISHEDON.": $date[0] ($mypage[counter] "._READS.")

" ."
"._GOBACK."
"; } } CloseTable(); @include("footer.php"); } function list_pages() { global $prefix, $db, $sitename, $admin, $multilingual, $module_name, $admin_file; @include("header.php"); title("$sitename: "._PAGESLIST.""); OpenTable(); echo "
"._LISTOFCONTENT." $sitename:


"; $sql = "SELECT * FROM ".$prefix."_pages_categories"; $result = $db->sql_query($sql); $numrows = $db->sql_numrows($result); $numrows2 = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_pages WHERE cid!='0' AND active='1'")); if ($numrows > 0 AND $numrows2 > 0) { echo "
"._CONTENTCATEGORIES."


" .""; while ($row = $db->sql_fetchrow($result)) { $cid = $row[cid]; $title = $row[title]; $description = $row[description]; $numrows3 = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_pages WHERE cid='$cid'")); if ($numrows3 > 0) { echo ""; } } echo "
 $title $description


" ."
"._NONCLASSCONT."


"; } $sql = "SELECT pid, title, subtitle, clanguage FROM ".$prefix."_pages WHERE active='1' AND cid='0' ORDER BY date"; $result = $db->sql_query($sql); echo "
"; while ($row = $db->sql_fetchrow($result)) { $pid = $row[pid]; $title = $row[title]; $subtitle = $row[subtitle]; $clanguage = $row[clanguage]; if ($multilingual == 1) { $the_lang = ""; } else { $the_lang = ""; } if ($subtitle != "") { $subtitle = " ($subtitle)"; } else { $subtitle = ""; } if (is_admin($admin)) { echo "· $the_lang $title $subtitle [ "._EDIT." | "._DEACTIVATE." | "._DELETE." ]
"; } else { //@RJR-Pwmg@Rncvkpwo@-@Eqratkijv@(e)@VgejIHZ.eqo echo "· $the_lang $title $subtitle
"; } } echo "
"; if (is_admin($admin)) { $sql = "SELECT pid, cid, title, subtitle, clanguage FROM ".$prefix."_pages WHERE active='0' ORDER BY date"; $result = $db->sql_query($sql); echo "

"._YOURADMINLIST."


"; echo "
"; while ($row = $db->sql_fetchrow($result)) { $pid = $row[pid]; $cid = $row[cid]; $title = $row[title]; $subtitle = $row[subtitle]; $clanguage = $row[clanguage]; if ($multilingual == 1) { $the_lang = ""; } else { $the