示例#1
0
function afficher_msg()
{
    // message vert
    if (isset($_GET['msg'])) {
        if (array_key_exists(htmlspecialchars($_GET['msg']), $GLOBALS['lang'])) {
            $suffix = isset($_GET['nbnew']) ? htmlspecialchars($_GET['nbnew']) . ' ' . $GLOBALS['lang']['rss_nouveau_flux'] : '';
            // nb new RSS
            confirmation($GLOBALS['lang'][$_GET['msg']] . $suffix);
        }
    }
    // message rouge
    if (isset($_GET['errmsg'])) {
        if (array_key_exists($_GET['errmsg'], $GLOBALS['lang'])) {
            no_confirmation($GLOBALS['lang'][$_GET['errmsg']]);
        }
    }
}
示例#2
0
function afficher_msg($titre)
{
    if (strlen($titre) != 0) {
        echo '<h1>' . $titre . '</h1>' . "\n";
    } else {
        echo '<h1>' . $GLOBALS['nom_application'] . '</h1>' . "\n";
    }
    // message vert
    if (isset($_GET['msg'])) {
        if (array_key_exists(htmlspecialchars($_GET['msg']), $GLOBALS['lang'])) {
            confirmation($GLOBALS['lang'][$_GET['msg']]);
        }
    }
    // message rouge
    if (isset($_GET['errmsg'])) {
        if (array_key_exists($_GET['errmsg'], $GLOBALS['lang'])) {
            no_confirmation($GLOBALS['lang'][$_GET['errmsg']]);
        }
    }
}