api('/me')); if(isset($_GET['word'])){ $word_url=post_slug($_GET['word']); //if(isset($_GET['q'])) //$word_text=mysql_real_escape_string(urldecode($_GET['q'])); //echo $word_url; //echo "
"; //echo $word_text; $sql = "SELECT * FROM `".$table_words."` WHERE `url` = '".$word_url."' LIMIT 0 , 1"; //echo $sql; $result = mysql_query($sql); $result_num_rows = @mysql_num_rows($result); if($result_num_rows>0){ $is_there_word=true; $array = mysql_fetch_array($result); $word_text=htmlentities($array['text'], ENT_COMPAT, 'utf-8'); $word_graph_eq=$array['graph_eq']; $word_comment_count=$array['comment_count']; $word_like_count=$array['like_count']; $meta_description=sprintf($lang['description_word'],$word_text); $meta_title=sprintf($lang['title_word'],$word_text); }else{ $is_there_word=false; } }else{ $is_there_word=false; } include_once('header.php'); //if($is_there_word==true) //echo "zz"; if($user_logged_in==false && $is_there_word==true){ include_once('guest.php'); } if($is_there_word==false){ include_once('homepage.php'); }else{ include_once('middle.php'); } include_once('footer.php'); ?>