|
if ((($sbConfig['pubwrite']==0 && $my_id != 0)||$sbConfig['pubwrite']==1) && ($topicLock==0 || ($topicLock==1 && $is_moderator))) {
//this user is allowed to post a new topic:
if ($sbIcons['new_topic']){
echo ' | |||||||
| '; //pagination 1 if (count($messages[0]) > 0) { echo _PAGE; if (($page-2) > 1) { echo '1 '; echo "... "; } for ($i=($page-2)<=0?1:($page-2); $i<= $page+2 && $i<= ceil($total/$threads_per_page); $i++) { if ($page == $i) { echo "[$i] "; } else { echo ''.$i.' '; } } if ($page+2 < ceil($total/$threads_per_page)) { echo "... "; echo ''.ceil($total/$threads_per_page).''; } } echo " | "; echo "|||||||
';
echo '';
echo $sbIcons['forumlist'] ? ' ';
} else {
echo ' ';
}
echo ' '.$objCatParentInfo->name.' ';
if (file_exists($mosConfig_absolute_path.'/templates/'.$mainframe->getTemplate().'/images/arrow.png')) {
echo ' ';
} else {
echo ' ';
}
echo ' '.$objCatInfo->name.' ';
if ($forumLocked)
{
echo $sbIcons['forumlocked'] ? ' | |||||||
| ";
//get all readTopics in an array
$readTopics="";
$database->setQuery("SELECT readtopics FROM #__sb_sessions WHERE userid=$my->id");
$readTopics=$database->loadResult();
if ( count ($readTopics) == 0 ) { $readTopics = "0"; } //make sure at least something is in there..
//make it into an array
$read_topics=explode(',',$readTopics);
if (count($messages) > 0)
{
if ($view=="flat")
include_once(JB_ABSPATH.'/flat.php');
else
include_once(JB_ABSPATH.'/thread.php');
}
else
{
echo " ";
echo ' |
|||||||
|
Strana: [1] 2 |
|||||||