Location: PHPKode > scripts > BIKE > jagermesh-bike-e2eba42/breeze/Breeze.php
<?php

/**
 * Project:     Breeze framework
 * Author:      Jager Mesh (hide@address.com)
 *
 * @version 1.1.0.0
 * @package Breeze Core
 */

require_once(dirname(__FILE__).'/Br.php');

// Core PHP settings
error_reporting(E_ALL & ~E_COMPILE_WARNING & ~E_DEPRECATED);
set_magic_quotes_runtime(0);

if (get_magic_quotes_gpc()) { 
  br()->stripSlashes($_GET);
  br()->stripSlashes($_POST);
  br()->stripSlashes($_COOKIE); 
  br()->stripSlashes($_REQUEST);
  if (isset($_SERVER['PHP_AUTH_USER'])) br()->stripSlashes($_SERVER['PHP_AUTH_USER']); 
  if (isset($_SERVER['PHP_AUTH_PW'])) br()->stripSlashes($_SERVER['PHP_AUTH_PW']);
}

ini_set('url_rewriter.tags', null);
if (function_exists("date_default_timezone_set") && function_exists("date_default_timezone_get")) {
  @date_default_timezone_set(@date_default_timezone_get());
}

// Core PHP settings - End

// Breeze files base path
define('BreezePath', dirname(__FILE__) . '/');

// Installing custom error handler
require_once(dirname(__FILE__).'/BrErrorHandler.php');
BrErrorHandler::GetInstance();

// Application base path - we assuming that Breeze library inlcuded by main index.php
$traces = debug_backtrace();
br()->saveCallerScript($traces[0]['file']);

// Loading application settings
br()->importAtBasePath('config.php');

// Core PHP settings - Secondary
ini_set('session.gc_maxlifetime', br()->config()->get('php/session.gc_maxlifetime', 3600));
ini_set('session.cache_expire', br()->config()->get('php/session.cache_expire', 180));
ini_set('session.cookie_lifetime', br()->config()->get('php/session.cookie_lifetime', 0));
// Core PHP settings - Secondary - End

// Running application
if (!br()->isConsoleMode()) {
  // Starting session
  session_cache_limiter('none');
  session_start();

  br()->request()->routeGET('/breeze-scripts', function($matches) {
    br()->assetsCache()->send($matches);
  });

  // Running application
  require_once(dirname(__FILE__).'/BrApplication.php');
  $app = new BrApplication();
  $app->main();
} else {
  // If we are in console mode - Breeze is just a set of useful functions
}
Return current item: BIKE