<?php
/**
 * Sites index page
 *
 * File showing the index page of the site.
 *
 * PHP version 5.0
 *
 * @category	###Anova###
 * @package		###index###
 * @author 		karthiselvam_75ag04
 * @copyright	Copyright (c) 2009 {@link http://www.agriya.com Agriya Infoway}
 * @license		http://www.agriya.com Agriya Infoway Licence
 * @version		SVN: $Id: $
 * @since 		2008-12-22
 */
require_once('./common/configs/config.inc.php');
if ($CFG['admin']['module']['facebook'])
	{
		if (version_compare(PHP_VERSION,'5','>=')) {
			require_once ('./facebook/client/facebook.php');
		} else {
		 	require_once ('./facebook/php4client/facebook.php');
		  	require_once ('./facebook/php4client/facebookapi_php4_restlib.php');
		}
	}
$CFG['lang']['include_files'][] = 'languages/%s/general/index.php';
$CFG['html']['header'] = 'general/html_header.php';
$CFG['html']['footer'] = 'general/html_footer.php';
$CFG['is']['ajax_page'] = false;
if(isset($_REQUEST['ajax_page']) and $_REQUEST['ajax_page'])
	{
		$CFG['is']['ajax_page'] = true;
		$CFG['html']['is_use_header'] = false;
		$CFG['html']['is_use_footer'] = false;
	}
$CFG['mods']['include_files'][] = 'common/classes/class_Widget.lib.php';
//compulsory
$CFG['mods']['is_include_only']['html_header'] = false;
$CFG['html']['is_use_header'] = false;
/**
 * To include application top file
 */
require($CFG['site']['project_path'].'common/application_top.inc.php');
require('general/index.php');
?>