0) { usort($allnews,'cmp_dat'); $next='right'; $cntn=0; foreach ($allnews as $v) { $cntn++; if ($cntn>$maxnews){break;}; if ($v['user']!=0){continue;}; $biglink="newsbig.php?uid=$v[uniqid]"; $t=parsetext($v['textsmall']); $sm=$t; if ($next=='left') { $next='right'; }else {$next='left';}; $st=''; if ($next!='left') { $st='style="background-color: #FFFFFF"'; }; $img=''; if ($v['imagesmall']!='') { $img=<< LL; }; $vv='/dyn/'.$v['imagebig']; $urlop="$img"; if ($v['imagebig']=='') { $vv='null'; $urlop="$img"; }; $ss=<<< SSS $urlop [$v[dateofmsg]]  $sm

SSS; echo $ss; }; }; }; */ $datafile='data/news.dat'; $newslib= new StorageLibClass; $newslib->datafile=$datafile; $newslib->datadescr=$datadescr_news; $allnews=$newslib->get_all_users(); usort($allnews,'cmp_dat'); //echo "shown $shown
"; //var_dump($allnews); $cntn=0; if (isset($shown)) { //PrintNews($allnews,'corp'); foreach($allnews as $v) { if (isset($yearfilt) && isset($monthfilt)) { $y=date('Y',$v['timestamp']); $m=date('m',$v['timestamp']); if ($y!=$yearfilt||$m!=$monthfilt) continue; }; $cntn++; if (isset($uniqid) && $uniqid==$v['uniqid'] /*$cntn==$shown*/) { $srr=replacetags($v['textbig']); $ss=<<< SSS

$v[name]

$v[dateofmsg]
$srr

SSS; echo $ss; $tttittle=$v[name]; }; }; } ?>