на форум контакты вход ";} else {echo "Добро пожаловать, ".$z_name."!";} ?>
FAQ Статьи



"; $my_result = mysql_query("SELECT * FROM `zf_topics` WHERE forum_id =18",$date); $i=0; while ($i < mysql_num_rows($my_result)) { if ($i % 2 == 0) { printf(""); } else if ($i % 3 ==0) { printf(""); } else printf(""); printf("%s
", mysql_result($my_result,$i, "tid"),mysql_result($my_result,$i, "title")); printf(""); $i++; } echo ""; } else { echo ""; $topicview=(int) $act; if ($topicview==0) {echo "Error: ".$error_msg[0];} else { $my_result = mysql_query("SELECT * FROM `zf_topics` WHERE tid =".$topicview,$date); $firstpostnumber=mysql_result($my_result,0, "topic_firstpost"); $my_result = mysql_query("SELECT * FROM `zf_posts` WHERE pid =".$firstpostnumber,$date); echo "
"; printf("Материал подготовил(и): %s

",mysql_result($my_result,0, "author_name"),mysql_result($my_result,0, "edit_name")); $pd=mysql_result($my_result,0, "post"); $pd=str_replace("[pascode]","[PASCODE]",$pd); $pd=str_replace("[PASCODE]","
Код
",$pd);
        $pd=str_replace("[/pascode]","[/PASCODE]",$pd);
        $pd=str_replace("[/PASCODE]","
",$pd); $pd=str_replace("[codefaq]","
Код
",$pd);
        $pd=str_replace("[/codefaq]","
",$pd); $pd=str_replace("[codebox]","
Код
",$pd);
        $pd=str_replace("[/codebox]","
",$pd); printf("%s",$pd ); $my_result = mysql_query("SELECT * FROM `zf_posts` WHERE (topic_id =".$topicview.") AND (pid !=".$firstpostnumber.")",$date); while ($i < mysql_num_rows($my_result)) { echo "

"; printf("Материал подготовил(и): %s

",mysql_result($my_result,$i, "author_name"),mysql_result($my_result,$i, "edit_name")); $pd=mysql_result($my_result,$i, "post"); $pd=str_replace("[pascode]","
Код
",$pd);
          $pd=str_replace("[/pascode]","
",$pd); $pd=str_replace("[codefaq]","
Код
",$pd);
          $pd=str_replace("[/codefaq]","
",$pd); printf("%s",$pd ); $i++; } } } mysql_close($date); ?>