Ejemplo n.º 1
0
function fbCreate()
{
    echo n . '<div id="setup_container" class="txp-container">' . txp_setup_progress_meter(4) . n . '<div class="txp-setup">';
    if ($GLOBALS['txp_install_successful'] === false) {
        return n . graf('<span class="error">' . setup_gTxt('errors_during_install', array('{num}' => $GLOBALS['txp_err_count'])) . '</span>') . n . '</div>' . n . '</div>';
    } else {
        // Clear the session so no data is leaked.
        $_SESSION = array();
        $warnings = @find_temp_dir() ? '' : n . graf('<span class="warning">' . setup_gTxt('set_temp_dir_prefs') . '</span>');
        $login_url = $GLOBALS['rel_txpurl'] . '/index.php';
        return n . hed(setup_gTxt('that_went_well'), 1) . $warnings . n . graf(setup_gTxt('you_can_access', array('index.php' => $login_url))) . n . graf(setup_gTxt('installation_postamble')) . n . hed(setup_gTxt('thanks_for_interest'), 3) . n . graf('<a href="' . $login_url . '" class="navlink publish">' . setup_gTxt('go_to_login') . '</a>');
        n . '</div>' . n . '</div>';
    }
}
Ejemplo n.º 2
0
/**
 * Renders stage 4: either installation completed panel (success) or
 * installation error message (fail).
 */
function fbCreate()
{
    echo txp_setup_progress_meter(4) . n . '<div class="txp-setup">';
    if ($GLOBALS['txp_install_successful'] === false) {
        return graf(span(null, array('class' => 'ui-icon ui-icon-closethick')) . ' ' . setup_gTxt('config_php_not_found', array('{num}' => $GLOBALS['txp_err_count'])), array('class' => 'alert-block error')) . n . '<ol>' . $GLOBALS['txp_err_html'] . n . '</ol>' . n . '</div>';
    } else {
        // Clear the session so no data is leaked.
        $_SESSION = array();
        $warnings = @find_temp_dir() ? '' : graf(span(null, array('class' => 'ui-icon ui-icon-alert')) . ' ' . setup_gTxt('set_temp_dir_prefs'), array('class' => 'alert-block warning'));
        $login_url = $GLOBALS['rel_txpurl'] . '/index.php';
        return hed(setup_gTxt('that_went_well'), 1) . $warnings . graf(setup_gTxt('you_can_access', array('index.php' => $login_url))) . graf(setup_gTxt('installation_postamble')) . hed(setup_gTxt('thanks_for_interest'), 3) . graf(href(setup_gTxt('go_to_login'), $login_url, ' class="navlink publish"')) . n . '</div>';
    }
}