/* NPDS Copyright (c) 2002-2015 by Philippe Brunier */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /************************************************************************/ if (!function_exists("Mysql_Connexion")) { include "mainfile.php"; } include "functions.php"; include "auth.php"; global $admin; if ($admin) { include "header.php"; global $startdate; list($membres, $totala, $totalb, $totalc, $totald, $totalz) = req_stat(); //LNL Email in outside table $result = sql_query("select email from " . $NPDS_Prefix . "lnl_outside_users"); if ($result) { $totalnl = sql_num_rows($result); } else { $totalnl = "0"; } echo '<h2>' . translate("Administration BlackBoard") . '</h2>'; echo '<p class="lead"><a href="admin.php">' . translate("Administration Tools") . '</a></p>'; include "abla.log.php"; $timex = time() - $xdate; if ($timex >= 86400) { $timex = round($timex / 86400) . " " . translate("Day(s)"); } elseif ($timex >= 3600) { $timex = round($timex / 3600) . " " . translate("Hour(s)");
function Site_Activ() { global $startdate, $top; list($membres, $totala, $totalb, $totalc, $totald, $totalz) = req_stat(); $who_online = ' <p class="text-xs-center">' . translate("Pages showed since") . ' ' . $startdate . ' : ' . wrh($totalz) . '</p> <ul id="site_active"> <li>' . translate("Nb of members") . ' <span class="tag tag-pill tag-default float-xs-right">' . wrh($membres) . '</span></li> <li>' . translate("Nb of articles") . ' <span class="tag tag-pill tag-default float-xs-right">' . wrh($totala) . '</span></li> <li>' . translate("Nb of forums") . ' <span class="tag tag-pill tag-default float-xs-right">' . wrh($totalc) . '</span></li> <li>' . translate("Nb of topics") . ' <span class="tag tag-pill tag-default float-xs-right">' . wrh($totald) . '</span></li> <li>' . translate("Nb of reviews") . ' <span class="tag tag-pill tag-default float-xs-right">' . wrh($totalb) . '</span></li> </ul>'; if ($ibid = theme_image("box/top.gif")) { $imgtmp = $ibid; } else { $imgtmp = false; } if ($imgtmp) { $who_online .= ' <p class="text-xs-center"><a href="top.php"><img src="' . $imgtmp . '" alt="' . translate("Top") . ' ' . $top . '" /></a> '; if ($ibid = theme_image("box/stat.gif")) { $imgtmp = $ibid; } else { $imgtmp = false; } $who_online .= '<a href="stats.php"><img src="' . $imgtmp . '" alt="' . translate("Statistics") . '" /></a></p>'; } else { $who_online .= ' <p class="text-xs-center"><a href="top.php">' . translate("Top") . ' ' . $top . '</a> <a href="stats.php" >' . translate("Statistics") . '</a></p>'; } global $block_title; if ($block_title == '') { $title = translate("Web Activity"); } else { $title = $block_title; } themesidebox($title, $who_online); }
function Site_Activ() { global $startdate, $top; list($membres, $totala, $totalb, $totalc, $totald, $totalz) = req_stat(); $who_online = ' <p align="center">' . translate("Pages showed since") . ' ' . $startdate . ' : ' . wrh($totalz) . '</p> <ul id="site_active"> <li>' . translate("Nb of members") . ' <span class="label label-pill label-default pull-right">' . wrh($membres) . '</span></li> <li>' . translate("Nb of articles") . ' <span class="label label-pill label-default pull-right">' . wrh($totala) . '</span></li> <li>' . translate("Nb of forums") . ' <span class="label label-pill label-default pull-right">' . wrh($totalc) . '</span></li> <li>' . translate("Nb of topics") . ' <span class="label label-pill label-default pull-right">' . wrh($totald) . '</span></li> <li>' . translate("Nb of reviews") . ' <span class="label label-pill label-default pull-right">' . wrh($totalb) . '</span></li> </ul>'; if ($ibid = theme_image("box/top.gif")) { $imgtmp = $ibid; } else { $imgtmp = false; } if ($imgtmp) { $who_online .= "<p align=\"center\"><a href=\"top.php\"><img alt=\"" . translate("Top") . " {$top}\" src=\"{$imgtmp}\" border=\"0\" /></a> "; if ($ibid = theme_image("box/stat.gif")) { $imgtmp = $ibid; } else { $imgtmp = false; } $who_online .= "<a href=\"stats.php\"><img alt=\"" . translate("Statistics") . "\" src=\"{$imgtmp}\" border=\"0\" /></a></p>\n"; } else { $who_online .= "<p align=\"center\"><a href=\"top.php\" >" . translate("Top") . " {$top}</a> "; $who_online .= "<a href=\"stats.php\" >" . translate("Statistics") . "</a></p>\n"; } global $block_title; if ($block_title == '') { $title = translate("Web Activity"); } else { $title = $block_title; } themesidebox($title, $who_online); }