//#########################################################################//
//# Index File
//#
//# Author: Petre Florin (E-mail: florinamg@yahoo.com)
//# Date: 22.01.2004
//#########################################################################//
ob_start();
error_reporting(E_ALL);
set_time_limit(0);
session_start();
$section = "SITE";
$_SESSION['lang']='ro';
include "init.php";
if(!isset($_GET["section"])) $_GET["section"] = "index";
if(!isset($_GET["action"])) $_GET["action"] = "";
if(file_exists(COMPONENT_DIR.'site/'.$_GET["section"].".class.php"))
{
if(DEBUG == 1)
$profiler->enterSection($_GET["section"]."-".$_GET["action"]);
include_once COMPONENT_DIR.'site/'.$_GET["section"].".class.php";
if($_GET["action"] != "")
$obj = new $_GET["section"]($_GET["action"]);