Exemplo n.º 1
0
    $_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";
    $_menu_ = list_pages();
}
Exemplo n.º 2
0
 static function edition()
 {
     global $_LANGUAGES, $MMORPG_Language;
     //$lang = $_LANGUAGES[$MMORPG_Language];
     if (request_confirm($MMORPG_Language)) {
         $messageFile = translateForm::getMessageFileForLanguage();
         $messageFile->setMessage(Request_post('key'), Request_post($MMORPG_Language));
         $messageFile->save();
         header('location:' . Request_post('referer'));
         //frameValidation::redirection(Request_post('referer'), 'element modifi?');
     }
 }