<?php
define("ALLOW", true);
define('FCPATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);

session_start();

// Check if .settings.ini exists (installation check)
if (!file_exists(FCPATH . 'RABBIT/Go/.settings.ini')) {
    // Not installed yet, redirect to install page
    header("Location: /install/");
    exit();
}

require 'RABBIT/Go/helpers.php';
require 'RABBIT/Go/core.php';

$core = new goRABBIT();
$core->runApp();
