Example #1
0
# 2010-2015 Timo Van Neerden <*****@*****.**>
#
# BlogoText is free software.
# You can redistribute it under the terms of the MIT / X11 Licence.
#
# *** LICENSE ***
$begin = microtime(TRUE);
$GLOBALS['BT_ROOT_PATH'] = '../';
require_once '../inc/inc.php';
error_reporting($GLOBALS['show_errors']);
operate_session();
if (isset($_POST['_verif_envoi'])) {
    if ($erreurs_form = valider_form_preferences()) {
        afficher_form_prefs($erreurs_form);
    } else {
        if (fichier_user() === TRUE and fichier_prefs() === TRUE) {
            redirection(basename($_SERVER['PHP_SELF']) . '?msg=confirm_prefs_maj');
            exit;
        }
    }
} else {
    if (isset($_GET['test_captcha'])) {
        afficher_form_captcha();
    } else {
        afficher_form_prefs();
    }
}
/*
	FORMULAIRE NORMAL DES PRÉFÉRENCES
*/
function afficher_form_prefs($erreurs = '')
Example #2
0
function traiter_install_2()
{
    $config_dir = '../config';
    if (!is_file($config_dir . '/prefs.php')) {
        fichier_prefs();
    }
    fichier_mysql(FALSE);
    // create an empty file
}