Exemplo n.º 1
0
     * 1. Upgrade all Infusions
     */
    upgrade_articles();
    upgrade_weblinks();
    upgrade_downloads();
    upgrade_news();
    upgrade_forum();
    upgrade_gallery();
    upgrade_faq();
    upgrade_poll();
    upgrade_comments();
    //upgrade_eshop(); // doesn't do anything unless you have the old e-shop install and the new, not yet developed eshop infusion for PHP-Fusion 9
    /**
     * 2. Upgrade core
     */
    upgrade_user_table();
    upgrade_private_message();
    upgrade_custom_page();
    upgrade_multilang();
    upgrade_user_fields();
    upgrade_panels();
    install_seo();
    install_theme_engine();
    install_email_templates();
    upgrade_site_links();
    upgrade_core_settings();
    upgrade_admin_icons();
}
/*
 * Infusions Upgrade Functions
 * 9 functions in total.
Exemplo n.º 2
0
     SmartyValidate::register_validator('v_db_name', 'db_name', 'notEmpty', false, false, 'trim', 'install');
     SmartyValidate::register_validator('v_db_user', 'db_user', 'notEmpty', false, false, 'trim', 'install');
     SmartyValidate::register_validator('v_db_password', 'db_password', 'dummyValid', true, false, 'trim', 'install');
 } else {
     if ($_POST['submit'] == 'next') {
         SmartyValidate::connect($tpl);
         if (SmartyValidate::is_valid($_POST, 'install')) {
             $db_details = array();
             $db_details['db_driver'] = 'mysql';
             $db_details['db_host'] = !empty($_POST['db_host']) ? $_POST['db_host'] : '';
             $db_details['db_name'] = !empty($_POST['db_name']) ? $_POST['db_name'] : '';
             $db_details['db_user'] = !empty($_POST['db_user']) ? $_POST['db_user'] : '';
             $db_details['db_password'] = !empty($_POST['db_password']) ? $_POST['db_password'] : null;
             $db_details['language'] = !empty($_SESSION['language']) ? $_SESSION['language'] : 'en';
             if (install_db($db_details)) {
                 upgrade_user_table($db_details);
                 SmartyValidate::disconnect();
                 $step++;
                 @header('Location: index.php?step=' . $step);
                 @exit;
             }
         }
     } elseif ($_POST['submit'] == 'back') {
         SmartyValidate::disconnect();
         $step--;
         @header('Location: index.php?step=' . $step);
         @exit;
     }
 }
 $tpl->assign($_SESSION['values']);
 break;