/** * Call cron if time since last launch elapsed * * @return nothing **/ function callCron() { if (isset($_SESSION["glpicrontimer"])) { // call function callcron() every 5min if (time() - $_SESSION["glpicrontimer"] > 300) { if (callCronForce()) { // Restart timer $_SESSION["glpicrontimer"] = time(); } } } else { // Start timer $_SESSION["glpicrontimer"] = time(); } }
echo $LANG['install'][50] . " : " . GLPI_SESSION_DIR; break; } } echo "</div>"; // Display FAQ is enable if ($CFG_GLPI["use_public_faq"]) { echo '<div id="box-faq"><a href="front/helpdesk.faq.php">[ ' . $LANG['knowbase'][24] . ' ]</a>'; echo '</div>'; } if ($CFG_GLPI["use_mailing"]) { echo '<div id="box-faq"><a href="front/lostpassword.php?lostpassword=1">[ ' . $LANG['users'][3] . ' ]</a>'; echo '</div>'; } echo "</div>"; // end contenu login if (GLPI_DEMO_MODE) { echo "<div class='center'>"; getCountLogin(); echo "</div>"; } echo "<div id='footer-login'>"; echo "<a href='http://glpi-project.org/' title='Powered By Indepnet'>"; echo 'GLPI version ' . (isset($CFG_GLPI["version"]) ? $CFG_GLPI["version"] : "") . ' Copyright (C) 2003-' . date("Y") . ' INDEPNET Development Team.'; echo "</a></div>"; } // call cron if (!GLPI_DEMO_MODE) { callCronForce(); } echo "</body></html>";