Ejemplo n.º 1
0
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * *   L O G I N - P A G E   ( N O B O D Y - U S E R )   * *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
PageLayout::setHelpKeyword("Basis.Startseite");
// set keyword for new help
PageLayout::setTitle(_("Startseite"));
Navigation::activateItem('/start');
PageLayout::setTabNavigation(NULL);
// disable display of tabs
// Start of Output
include 'lib/include/html_head.inc.php';
// Output of html head
include 'lib/include/header.php';
$index_nobody_template = $GLOBALS['template_factory']->open('index_nobody');
$index_nobody_template->set_attributes(array('num_active_courses' => count_table_rows('seminare'), 'num_registered_users' => count_table_rows('auth_user_md5'), 'num_online_users' => get_users_online_count(10)));
if (Request::get('logout')) {
    $index_nobody_template->set_attribute('logout', true);
}
echo '<div><div class="index_container">';
echo $index_nobody_template->render();
$layout = $GLOBALS['template_factory']->open('shared/index_box');
// Prüfen, ob PortalPlugins vorhanden sind.
$portalplugins = PluginEngine::getPlugins('PortalPlugin');
foreach ($portalplugins as $portalplugin) {
    $template = $portalplugin->getPortalTemplate();
    if ($template) {
        echo $template->render(NULL, $layout);
        $layout->clear_attributes();
    }
}
Ejemplo n.º 2
0
 /**
  * count all entries that exists in the whole installation and return it.
  *
  * @return int
  */
 static function countAllEntries()
 {
     return count_table_rows('forum_entries');
 }
?>
)</a></li>
				<li class="gtthirdchild gtactive"><a class="new_button" style="background-color: #5F5F5F;<?php 
if ($accountType == "closed") {
    ?>
 color:black; background-color: #5F5F5F; <?php 
} else {
    ?>
 background-color: #B0B0B0; <?php 
}
?>
"href="<?php 
echo $baseurl;
?>
index.php?p=my-score&type=closed" title="Closed Accounts">Closed Accounts (<?php 
echo count_table_rows('tbl_getaccounts', 'account_status1', 'Closed', 'id');
?>
)</a></li>
				<li><a class="new_button"style="font-size: 12px;color: blue;text-decoration: underline;" 
				    href="<?php 
echo $baseurl . "showpdf.php?report_file=" . give_report_path($user_id);
?>
" target="_blank" title="Report">View Complete Report*</a></li>
			</ul>
		</div>
	</div>
</h3>
 </div>
 <?php 
if ($totalrows > 0) {
    if ($accountType != 'score') {