Beispiel #1
0
$deltaTime = $endTime - $startTime;
if (count($bottle) > 0) {
    foreach ($bottle as $bottle_message) {
        $bottleMsg .= "{$bottle_message}\n";
    }
} else {
    $bottleMsg = $mod_strings['LBL_PERFORM_SUCCESS'];
}
installerHook('post_installModules');
$out = <<<EOQ
<br><p><b>{$mod_strings['LBL_PERFORM_OUTRO_1']} {$setup_sugar_version} {$mod_strings['LBL_PERFORM_OUTRO_2']}</b></p>

{$mod_strings['LBL_PERFORM_OUTRO_3']} {$deltaTime} {$mod_strings['LBL_PERFORM_OUTRO_4']}<br />
<p><b>{$memoryUsed}</b></p>
<p><b>{$errTcpip}</b></p>
<p><b>{$fpResult}</b></p>
</div>
<footer id="install_footer">
    <p id="footer_links"><a href="https://suitecrm.com" target="_blank">Visit suitecrm.com</a> | <a href="https://suitecrm.com/index.php?option=com_kunena&view=category&Itemid=1137&layout=list" target="_blank">Support Forums</a> | <a href="https://suitecrm.com/wiki/index.php/Installation" target="_blank">Installation Guide</a> | <a href="LICENSE.txt" target="_blank">License</a>
</footer>
</div>
</body>
</html>
<!--
<bottle>{$bottleMsg}</bottle>
-->
EOQ;
echo $out;
$loginURL = str_replace('install.php', 'index.php', "//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
installStatus(sprintf($mod_strings['STAT_INSTALL_FINISH_LOGIN'], $loginURL), array('function' => 'redirect', 'arguments' => $loginURL));
Beispiel #2
0
    // We start by malking sure we have PHP5 as a base requirement
    if (version_compare(PHP_VERSION, '5.4.0') >= 0) {
        $strInstall = installStatus('Server is running at least PHP 5.4', 'OK', true);
        $strRecommendation = '';
    } else {
        $strInstall = installStatus('Server is running at least PHP 5.4', 'FAIL', false);
        $strRecommendation = '<li>Check your server documentation to activate at least PHP 5.4</li>';
    }
    // Writable file requirements
    $tests = array('/custom', '/custom/people.opml', '/admin/inc/pwd.inc.php', '/cache');
    // We now test that all required files and directories are writable.
    foreach ($tests as $v) {
        if (touch(dirname(__FILE__) . $v)) {
            $strInstall .= installStatus("<code>{$v}</code> is writable", 'OK', true);
        } else {
            $strInstall .= installStatus("<code>{$v}</code> is writable", 'FAIL', false);
            $strRecommendation .= "<li>Make <code>{$v}</code> writable with CHMOD</li>";
        }
    }
    // We can now decide if we install moonmoon or not
    $status = $strRecommendation != '' ? 'error' : 'install';
}
?>
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<head>
    <title><?php 
echo _g('moonmoon installation');
?>
</title>