예제 #1
0
<?php

require '../application.init.php';
require '../../lib/installwizard/installWizard.php';
$config = '../install/wizard.ini.php';
$install = new installWizard($config);
$install->run(isAppInstalled());
예제 #2
0
/**
 * check if the application is not installed. If the app is installed, an
 * error message appears and the scripts ends.
 * It should be called only by some scripts
 * like an installation wizard, not by an entry point.
 * @todo migrate the code to jAppManager or jApp
 */
function checkAppNotInstalled()
{
    if (isAppInstalled()) {
        if (jServer::isCLI()) {
            echo "Application is installed. The script cannot be runned.\n";
        } else {
            header("HTTP/1.1 500 Application not available");
            header('Content-type: text/plain');
            echo "Application is installed. The script cannot be runned.\n";
        }
        exit(1);
    }
}
예제 #3
0
<?php

/**
* @package   havefnubb
* @subpackage havefnubb
* @author    FoxMaSk
* @copyright 2008-2011 FoxMaSk
* @link      http://havefnubb.org
* @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
*/
require 'havefnubb/application.init.php';
if (!isAppInstalled()) {
    header("location: install.php");
} else {
    require JELIX_LIB_CORE_PATH . 'request/jClassicRequest.class.php';
    jApp::loadConfig('havefnubb/config.ini.php');
    jApp::setCoord(new jCoordinator());
    jApp::coord()->process(new jClassicRequest());
}