Fatal error: Class 'Site' not found in /Volumes/Storage/Projects/TsunamiGS/Sites/soanime/index.php on line 4
<?php
require('../common/lib/classes/site.class.php');
$site = new Site;
$site->app = 'soanime';
$site->loadApp();
?>
<?
class Site {
public $app;
public loadApp() {
/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
*/
$this->system_folder = "../common/lib/codeigniter";
/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
*/
$this->application_folder = "../common/lib/codeigniter/application/" . $this->app;
/*
|===============================================================
| END OF USER CONFIGURABLE SETTINGS
|===============================================================
*/
/*
|---------------------------------------------------------------
| SET THE SERVER PATH
|---------------------------------------------------------------
|
| Let's attempt to determine the full-server path to the "system"
| folder in order to reduce the possibility of path problems.
| Note: We only attempt this if the user hasn't specified a
| full server path.
|
*/
if (strpos($this->system_folder, '/') === FALSE)
{
if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
$this->system_folder = realpath(dirname(__FILE__)).'/'.$this->system_folder;
}
}
else
{
// Swap directory separators to Unix style for consistency
$this->system_folder = str_replace("\\", "/", $this->system_folder);
}
/*
|---------------------------------------------------------------
| DEFINE APPLICATION CONSTANTS
|---------------------------------------------------------------
|
| EXT - The file extension. Typically ".php"
| FCPATH - The full server path to THIS file
| SELF - The name of THIS file (typically "index.php)
| BASEPATH - The full server path to the "system" folder
| APPPATH - The full server path to the "application" folder
|
*/
define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', $this->system_folder.'/');
if (is_dir($this->application_folder))
{
define('APPPATH', $this->application_folder.'/');
}
else
{
if ($this->application_folder == '')
{
$this->application_folder = 'application';
}
define('APPPATH', BASEPATH.$this->application_folder.'/');
}
/*
|---------------------------------------------------------------
| LOAD THE FRONT CONTROLLER
|---------------------------------------------------------------
|
| And away we go...
|
*/
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
}
}
?>