Commit 1e3f93de authored by Johan Cwiklinski's avatar Johan Cwiklinski

Drop countlogin

Demo will be reset, this is no longer relevant
parent 03e0bcc8
......@@ -405,33 +405,6 @@ class Event extends CommonDBTM {
}
echo "</table></div><br>";
}
/** Display how many logins since
*
* @return nothing
**/
static function getCountLogin() {
global $DB;
$query = "SELECT COUNT(*)
FROM `glpi_events`
WHERE `message` LIKE '%logged in%'";
$query2 = "SELECT `date`
FROM `glpi_events`
ORDER BY `date` ASC
LIMIT 1";
$result = $DB->query($query);
$result2 = $DB->query($query2);
$nb_login = $DB->result($result, 0, 0);
$date = $DB->result($result2, 0, 0);
// Only for DEMO mode (not need to be translated)
printf(_n('%1$s login since %2$s', '%1$s logins since %2$s', $nb_login),
'<span class="b">'.$nb_login.'</span>', $date);
}
}
// For compatibility
......
......@@ -211,11 +211,6 @@ if (!file_exists(GLPI_CONFIG_DIR . "/config_db.php")) {
echo "</div>"; // end contenu login
if (GLPI_DEMO_MODE) {
echo "<div class='center'>";
Event::getCountLogin();
echo "</div>";
}
echo "<div id='footer-login' class='home'>" . Html::getCopyrightMessage(false) . "</div>";
}
......
......@@ -107,7 +107,6 @@ $obsoleted = [
'formatNumber' => 'Html::formatNumber',
'getActiveTab' => 'Session::getActiveTab',
'getAllReplicateForAMaster' => 'AuthLDAP::getAllReplicateForAMaster',
'getCountLogin' => 'Event::getCountLogin',
'getItemTypeFormURL' => 'Toolbox::getItemTypeFormURL',
'getItemTypeSearchURL' => 'Toolbox::getItemTypeSearchURL',
'getItemTypeTabsURL' => 'Toolbox::getItemTypeTabsURL',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment