Html::nullFooter PHP Method

nullFooter() static public method

Print footer for null page
static public nullFooter ( )
    static function nullFooter()
    {
        global $CFG_GLPI, $FOOTER_LOADED;
        // Print foot for null page
        if ($FOOTER_LOADED) {
            return;
        }
        $FOOTER_LOADED = true;
        if (!isCommandLine()) {
            echo "</div></div>";
            echo "<div id='footer-login'>" . self::getCopyrightMessage() . "</div>";
            echo "</body></html>";
        }
        closeDBConnections();
    }

Usage Example

Example #1
0
 /**
  *  Display a common mysql connection error
  **/
 static function displayMySQLError()
 {
     if (!isCommandLine()) {
         Html::nullHeader("Mysql Error", '');
         echo "<div class='center'><p class ='b'>\n                A link to the Mysql server could not be established. Please check your configuration.\n                </p><p class='b'>\n                Le serveur Mysql est inaccessible. Vérifiez votre configuration</p>\n               </div>";
         Html::nullFooter();
     } else {
         echo "A link to the Mysql server could not be established. Please check your configuration.\n";
         echo "Le serveur Mysql est inaccessible. Vérifiez votre configuration\n";
     }
     die;
 }
All Usage Examples Of Html::nullFooter
Html