mb_internal_encoding("UTF-8");
include ("connect.php");
include ("core.php");
//include ("core_ajax.php");
include ("include/markdown.php");
//include ("loginza.php");
con ();
$id=req ('id');
$section=req ('section');
?>
';
$news=q("SELECT * FROM ok_news WHERE header!=''".($section=="ok"?" AND ok=1":"").($section=="youngok"?" AND youngok=1":"").($section=="opencollection"?" AND opencollection=1":"")." ORDER BY timestamp DESC");
while ($n=mysql_fetch_array($news))
{
$txt=str_replace ('/news/', 'https://www.openklub.ru/news/', transform_text($n['text'],$n['header'],$n['id']));
echo '