', '2', '3', '4', '5', '6', '7', '8', '8' ); foreach ( $attributeIcons as $attributeIcon ) { $thisIcon[]= "$attributeIcon"; } //----END ICON CREATING-------- //*** LOOK THE VISITOR'S PROPERTY AND CREATE a who stat**** $memberStat=$_SESSION["web_member_status"]; $who=whoisVisitor($memberStat); $memberID=$_SESSION["web_member_id"]; //---END LOOK UP WHOIS--- //*** GETTING PAGE CONTENTS FROM DB ------------------- $requiredPageID=$ID; // Quote variable to make safe function quote_smart_latis3($value) { // Stripslashes if (get_magic_quotes_gpc()) { $value = stripslashes($value); } // Quote if not a number or a numeric string if (!is_numeric($value)) { $value = "'" . mysql_real_escape_string($value) . "'"; } return $value; } // Make a safe query $requiredPageID_safe= quote_smart_latis3($requiredPageID); $docquery=sprintf("SELECT page_id,page_title,page_titlex,page_content,page_contentx,page_date,page_keys,page_keysx,page_description,page_descriptionx,page_stat,page_parent_id,page_hit,page_relations,page_attribute,page_members,page_sort from pages where page_id=%s ", $requiredPageID_safe); $_pageexists=0; if(!$docq = pc_db_query($docquery)){ echo "SYSTEM ERROR"; }else{ $_pageexists=pc_db_num_rows($docq); } if(!$_pageexists) { $page_htm=""; }else { $thedoc = pc_db_fetch_array($docq); $pageid=$thedoc[page_id]; $page_stat=$thedoc[page_stat]; $page_attribute=$thedoc[page_attribute]; $page_members=$thedoc[page_members]; if($uselang!=1){ $page_title=stripslashes($thedoc[page_title]); $page_contents=stripslashes($thedoc[page_content]); $page_keys=stripslashes($thedoc[page_keys]); $page_description=stripslashes($thedoc[page_description]); }else{ $page_title=stripslashes($thedoc[page_titlex]); $page_contents=stripslashes($thedoc[page_contentx]); $page_keys=stripslashes($thedoc[page_keysx]); $page_description=stripslashes($thedoc[page_descriptionx]); } $page_headers="\n"; $thisPageHit=$thedoc[page_hit]+1; $updateHitSQL="UPDATE pages SET page_hit='$thisPageHit' where page_id='$pageid' "; pc_db_query($updateHitSQL); $page_htm.=$page_contents; } //$incmodulefile="$tempDir/templateadds.php"; //if(file_exists($incmodulefile)) include_once($incmodulefile); //Page visibility $visibleLogic = pageVisibility ($page_attribute,$who); //$visibleLogic=1; //if($_SESSION['web_member_id']==$page_keys) { // $visibleLogic=1; //} if ($visibleLogic) { //*****TEMPLATE DYNAMIC CONTENT (TDC) $TDC_keys=TDC_keyFinder($page_htm); if($TDC_keys!=false) { $doTemplateReplacement=1; if($TDC_keys[0]==0) { $hideLeftRelatedLinks=1; } } //*----TDC--- }else{ $page_htm= $thisIcon[2]; } if($page_description!="") { $title_page_description=" $page_title - $page_description"; }else { $title_page_description=" $page_title"; } ?> <? echo TITLE .$title_page_description; ?> ',1); echo "\n".$page_headers."\n"; ?>