<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts Multicart                     |
// +----------------------------------------------------------------------+
// | Authors: Programmer<programmer@armia.com>        		              |
// +----------------------------------------------------------------------+
// | Copyrights Armia Systems, Inc and iScripts.com © 2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
?>
<?php
	if(!isset($_SERVER['REQUEST_URI'])) {
			if(isset($_SERVER['SCRIPT_NAME']))
				$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
			else
				$_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'];

			if($_SERVER['QUERY_STRING']){
				$_SERVER['REQUEST_URI'] .=  '?'.$_SERVER['QUERY_STRING'];
			}
		}


if(strcasecmp(basename($_SERVER['REQUEST_URI']),"install.php")==0){
;
}else{
	if (INSTALLED ===true) {
		;
	}else{

		header("Location:./install/install.php");
	}

}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title><?php echo htmlentities(SITE_NAME);?></title>

<!--Rating css begins-->

<link href="./style/rating.css" rel="stylesheet" type="text/css">

<!--Rating css ends-->

<?php
if(strstr($_SERVER['PHP_SELF'],'admin') == TRUE)
{
?>

<script src="../js/javascript_check.js"></script>


<!--Template admin css begins-->

<link href="../style/template1-admin.css" rel="stylesheet" type="text/css">

<!--Template admin css ends-->

<?php
}
else
{

	//$test = showRegForm('')
	
		
	//$css_path = SITE_URL."/style/".$active_template[4];
	
	//$sample_array_value['details'] = $active_template[3];
	
	//showRegForm(SAMPLE_ROOT_TEMPLATE_PATH."admin/index_center.html",$sample_array_value);

?>

<!--Template home css begins-->

<link href="./style/<?php echo $active_template[4]?>" rel="stylesheet" type="text/css">

<!--Template home css ends-->


<?php
}
?>


<!--Home page javscript begins-->

<script src="./js/script_homepage.js"></script>

<!--Home page javscript ends-->

<!-- rating star script begins -->

<script type="text/javascript" language="javascript" src="./js/behavior.js"></script>
<script type="text/javascript" language="javascript" src="./js/rating.js"></script>
<script type="text/javascript">AC_FL_RunContent = 0;</script>
<script language="javascript" type="text/javascript" src="./js/AC_RunActiveContent.js"></script>

<!-- rating star script ends -->
</head>

