$content = ''; $content.= 'Herzlich Wilkommen <span class="miniprofile" rel="'.$user->prop('user_id').'">'.utf8_encode($user->prop('user_firstname').' '.$user->prop('user_lastname')).'</span><br /><br />'; $data = getMasterserverData(); if(!$data) { $content.='<h3>Verbindung zum Master-Server konnte nicht hergestellt werden!</h3>'; } else { $content.='<h3>'.$data->master_server.'</h3><br />'; foreach($data->news as $news) { $content.='<div style="border:1px solid gray;margin: 10px 0;padding:10px;width:500px;">'; $content.='<span style="font-weight:bold;font-size:16px;"><a href="'.$news->link.'" target="_blank">'.$news->title.'</a></span> <span style="font-size:10px">'.UF_date(strtotime($news->ts)).'</span><br />'; $content.=$news->content; $content.='</div>'; } $content.='<br />'; if($data->versions->mcms > $config['app_version']) $content.= icon('cancel', 2).' Ihre MCMS-Version ist nicht aktuell!'; if($data->versions->mcms <= $config['app_version']) $content.= icon('accept', 2).' Ihre MCMS-Version ist aktuell'; } //$content.= print_r($_SESSION, true); $page['dashboard']['content'] = $content; ?>
//$feedcontent = $feedcontent.' '.$feedcontent_link[1].' '; //$feedcontent = str_replace(array('<','>'), ' ', $feedcontent); $feedcontent = utf8_encode(strip_tags(trim($feedcontent), '<br><br /><br/>')); $feedtitle = $feedcontent; $feedcontent = str_replace(array('<br>','<br />','<br/>'), ' ', $feedcontent); if(strlen($feedcontent) > 80) { $add = '...'; $feedcontent = substr($feedcontent, 0, 75); } } echo '<div id="feed" '.(($feedtitle != "")? "class='feedtitle' title='".$feedtitle."'":"").'> <a href="'.$feed->feed_link.'"'.$target.'><b>'.ucfirst($feed->feed_type).':</b> '.$feedcontent.$add.'</a> <br /><span class="feedtime">'.UF_date(strtotime($feed->feed_ts)).'</span> <!--<span class="feedoptions"><a href="#"> </a></span>--> </div>'; $feedcontent_long =""; } break; } ?>
$resultrange = $startval.'-'.$endval; $output.= pagination($page_count, $news_count, $maxresults, 'News'); $sql = "SELECT * FROM plugin_".$plugin->plugin_identify." WHERE plugin_news_ts_delete IS NULL ORDER BY plugin_news_ts_create DESC LIMIT ".$startval.", ".$endval.";"; $new = $db->get_results($sql); $count = count($new); foreach($new as $news) { $author = getUsername($news->plugin_news_id_create); $created = UF_date(strtotime($news->plugin_news_ts_create)); $commentcount = $db->get_var( 'SELECT COUNT(plugin_news_comment_id) FROM plugin_news_comments WHERE plugin_news_comment_news_id = "'.$news->plugin_news_id.'" AND plugin_news_comment_ts_delete IS NULL;'); //$db->debug(); $commentcount = ($commentcount == '0' || $commentcount == '')? 'keine':$commentcount; $news_content = explode('<!-- pagebreak -->', $news->plugin_news_content); $news_content_new = stripslashes($news_content[0]); //$news_content_new = $news->plugin_news_content; include($plugin_folder.'plugin.news.tpl.php');