Beispiel #1
0
function load_image_config()
{
    $avatar_maxsize = 100;
    $avatar_maxh = 1;
    $avatar_maxl = 1;
    if (!isInstalling()) {
        $conf = list_db('image_config');
        if (!empty($conf)) {
            foreach ($conf as $donnees_jeu) {
                if ($donnees_jeu['Configuration_Name'] === 'avatar_maxsize') {
                    $avatar_maxsize = stripslashes($donnees_jeu['Configuration_Value']);
                }
                if ($donnees_jeu['Configuration_Name'] === 'avatar_maxh') {
                    $avatar_maxh = stripslashes($donnees_jeu['Configuration_Value']);
                }
                if ($donnees_jeu['Configuration_Name'] === 'avatar_maxl') {
                    $avatar_maxl = stripslashes($donnees_jeu['Configuration_Value']);
                }
            }
        }
    }
    return array($avatar_maxsize, $avatar_maxh, $avatar_maxl);
}
Beispiel #2
0
if (file_exists($Config)) {
    require_once $Config;
    $_configured = true;
} else {
    $_path = realpath($kernel_path . '/../') . '/';
    $_url = get_url();
    $_configured = false;
}
require_once $kernel_path . "/Database.php";
require_once $core_path . "/Constants.php";
require_once $core_path . "/db-mapping.php";
require_once $core_path . "/Requetes.php";
connect_db();
// verifie l'installation complete
$install_step = verif_install();
$installing = isInstalling();
// verifie si l'URL REWRITING est activée
$_rewrite = _mod_rewrite();
// info config
extract(load_config());
if (!$installing) {
    // load_plugin(); // => import de plug-in... non fonctionnel
    require_once $core_path . "/Functions.php";
    if (request_confirm('setMessageEditionMode')) {
        LanguageValidation::setMessageEditionMode();
    }
    if (LanguageValidation::isMessageEditionMode()) {
        translateForm::edition();
    }
    require_once $core_path . "/Refresh.php";
    require_once $core_path . "/Menu.php";