', '2', '3', '4', '5', '6', '7', '8' ); foreach ( $attributeIcons as $attributeIcon ) { $thisIcon[]= "$attributeIcon"; } //----END ICON CREATING-------- //*** LOOK THE VISITOR'S PROPERTY AND CREATE a who stat**** $memberStat=$HTTP_SESSION_VARS["web_member_status"]; $who=whoisVisitor($memberStat); $memberID=$HTTP_SESSION_VARS["web_member_id"]; //---END LOOK UP WHOIS--- //*** GETTING PAGE CONTENTS FROM DB ------------------- $kosul="where pages.page_id='$homepageID' "; $docquery = "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 ".$kosul; $docq = pc_db_query($docquery); $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; //templates in dynamic content and visibility //$incmodulefile="$tempDir/templateadds.php"; //if(file_exists($incmodulefile)) include_once($incmodulefile); $visibleLogic = pageVisibility ($page_attribute,$who); 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; } } }else{ $page_htm= $thisIcon[2]; } $theHtmPage=$page_htm; if($page_description!="") { $title_page_description=" - ".$page_description; } ?> <? echo TITLE .$title_page_description; ?> ',1); echo "\n".$page_headers."\n"; ?>