0 AND (a.pretty_url="'.text2query($_GET['url']).'" OR a.id="'.intval($_GET['id']).'")'); $r = mysql_fetch_assoc($result); if (!$r) { Header('Location: '.$site['root'].'404.php'); exit; } if ($r && !$_GET['url']) { $link = getnewslink($r); Header('HTTP/1.1 301 Moved Permanently'); Header('Location: '.$link); exit; } $meta_title = ($r['meta_title'] ? $r['meta_title'] : $r['name']); $meta_descr = ($r['meta_descr']); $meta_keywords = ($r['meta_keywords']); if (!$_fromscript) { require_once $z.'include/module/content_show.php'; p_start($meta_title, '', '', $meta_descr, $meta_keywords); if ($id_cat) $crumbs = $section_crumbs.'^./|'.$type_name.'^|'.date_select ($r['cdate'],-3,'','y-m-d'); else $crumbs = $section_crumbs.'^|'.date_select ($r['cdate'],-3,'','y-m-d'); p_header('news', $crumbs); } else { $section_crumbs_lastnotlink = $section_crumbs.'^|'.date_select ($r['cdate'],-3,'','y-m-d'); } echo '

'.vparse($r['name']).'

'; echo '

'.date_select ($r['cdate'],-3,'','y-m-d').'

'; if (!$r['content']) { echo '

'.vparse($r['descr']).'

'; } echo $r['content']; outputimages($dbtable['newsimages'], $r['id'], $path['newsimg']); echo '
'; if (file_exists($site['path'].'include/module/comments.php')) { $_addtype = 'news'; require $site['path'].'include/module/comments.php'; } if (!$_fromscript) { p_bottom(); p_final(); } ?>