Site Index
global $db, $siteid;
$object=”“;
$query = “SELECT id, title, subject, refurl, published, authorid FROM columnarticles where site_id=’$siteid’ ORDER BY title ASC”;
$arts = $db->querySelectAllRows( $query);
reset($arts);
$n = count($arts)>>1;
$alphabet=”| “;
$i=0;
foreach ( $arts as $art )
{
if (!hasAccessRightsToArticle($art) ) {
$i++;
continue;
}
if (empty($idx)) $idx = mb_strtoupper( mb_substr($art[title],0,1));
$nidx = mb_strtoupper( mb_substr($art[title],0,1)) ;
if ($nidx != $idx) { $idx = $nidx; $object .= “$idx
“; $alphabet .= “$idx | “; }$allTags = split(“;\s*”, $art[subject]); $tags = “”; foreach ($allTags as $tag) { $tags .= “$tag “; } //$tags = “(Tags: “.str_replace(“;”,”; “,$art[subject]).” )”;
// GET TO ARTICLE PAGE //if (ItsMe()) {print $pageurl; }
if (!stristr($art[refurl],$domainname))
$object .= “$art[title] $tags
“ ;
else
$object.= “$art[title] $tags
“ ;
$i++;
}
$object = “
“
.$object.”
“;
$common = $object;