0) { while ($content = mysql_fetch_array($f)) { if (!empty($content['tag'])) { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://".$_SERVER['HTTP_HOST']."/articles/".$content['tag'].".html"); exit; } } } } } ?> 0) { while ($content = mysql_fetch_array($f)) { $h1head=$content['name']; echo "".$content['name']."\n"; } } } } else { if (!(empty($_GET['tag']))) { $f = mysql_query("SELECT * FROM `articles_texts` WHERE `tag` = '".$_GET['tag']."'"); if ($f) { if (mysql_numrows($f)>0) { while ($content = mysql_fetch_array($f)) { $h1head=$content['name']; echo "".$content['name']."\n"; } } } } else { $h1head='Статьи, заметки, очерки и обзоры HDD Masters'; echo "Статьи, заметки, очерки и обзоры HDD Masters\n"; } } if (!(empty($_GET['id']))) { $artid = $_GET['id']; } if (!(empty($_GET['tag']))) { $f = mysql_query("SELECT * FROM `articles_texts` WHERE `tag` = '".$_GET['tag']."'"); if ($f) { if (mysql_numrows($f)>0) { while ($content = mysql_fetch_array($f)) { $artid = $content['id']; } } } } $metaid = 6; require_once $_SERVER['DOCUMENT_ROOT']."/serv/meta2.php"; if (!(empty($artid))) { ?>
0) { while ($content = mysql_fetch_array($f)) { echo "
".$content['topic']."
\r\n"; $f2 = mysql_query("SELECT `id`, `name`, `sort`, `tag` FROM `articles_texts` WHERE `id_t` = '".$content['id']."' ORDER BY `sort` ASC"); if (mysql_numrows($f2)>0) { while ($content2 = mysql_fetch_array($f2)) { if (!empty($content2['tag'])) { echo "

".$content2['name']."

\r\n"; } else { echo "

".$content2['name']."

\r\n"; } } } } } } if (!(empty($_GET['tag']))) { $f = mysql_query("SELECT * FROM `articles_texts` WHERE `tag` = '".$_GET['tag']."'"); if ($f) { if (mysql_numrows($f)>0) { while ($content = mysql_fetch_array($f)) { echo "

".$content['name']."

"; echo "
".$content['text']."
"; ?>
Поделиться
|
 
0) { while ($content = mysql_fetch_array($f)) { echo "

".$content['name']."

"; echo "
".$content['text']."
"; } } else { Show(); } } else { Show(); } } else { Show(); } } ?>