<?php   



ob_start();

$filename =  './config.php';

$file = file_exists($filename);

if($file){

	if(filesize($filename) > 0){

		header('location:index.php');

	}

}else{

	echo "file not exist";

}

include "header.php";

?>

<!Doctype html>

	<head>

		<title>Cleanto Installer</title>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

		<meta name="viewport" content="width=device-width, initial-scale=1">

		<link rel="stylesheet" href="assets/css/ct-installer.css" type="text/css" media="all" />

		<link rel="stylesheet" href="assets/css/bootstrap/bootstrap.min.css" type="text/css" media="all" />

		<link rel="stylesheet" href="assets/css/bootstrap/bootstrap-theme.min.css" type="text/css" media="all" />

		<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" type="text/css" media="all" />

		<link rel="stylesheet" href="<?php  echo BASE_URL; ?>/assets/css/tooltipster.bundle.min.css" type="text/css" media="all" />

		<link rel="stylesheet" href="<?php  echo BASE_URL; ?>/assets/css/tooltipster-sideTip-shadow.min.css" type="text/css" media="all" />

		

		<script src="assets/js/jquery-2.1.4.min.js" type="text/javascript"></script>

		<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>

		<script src="assets/js/ct-installer-jquery.js" type="text/javascript"></script>

		<script src="<?php  echo BASE_URL; ?>/assets/js/tooltipster.bundle.min.js" type="text/javascript"></script>

		<script src="<?php  echo BASE_URL; ?>/assets/js/jquery.validate.min.js"></script>

		<!-- **Google - Fonts** -->

		<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">

		<style> .error{ color:red; } </style>

	</head>

	<body>

		<div class="cti-wrapper" id="cti"> <!-- main wrapper -->

			<div class="cti-main-wrapper">

				<div class="container">

					<div class="cti-inner">

						<div id="cleanto-installer">

							<h4>Cleanto Installer<div class="pull-right">Version 8.2</div></h4>
							<img src="assets/images/cleanto-logo.png" height="100%" width="180">
							<div class="col-md-12 col-sm-12 col-lg-12 np total_text">

								<div class="text_changed"> 

									<div id="sidebar" class="col-md-4 col-sm-4 col-lg-4 np">

										<div class="cti-progress">

											<ul class="left-menu">

												<li class="active completed">1. Start</li>

												<li>2. Server Requirements</li>

												<li>3. Database Information & License</li>

												<li>4. Admin Information</li>

												<li>5. Completed</li>

											</ul>

										</div>

									</div>

									<div id="cti-content" class="col-md-8 col-sm-8 col-lg-8">

										<div class="cti-progress-bar">Step <b>1</b> out of 5 - Start</div>

										<div class="cti-info">

											<img src="assets/images/cleanto-logo.png" height="40%" width="40%">

										</div>

										<div class="radio">

										  <label><input type="radio" name="optradio" value='u'>Update</label>

										</div>

										<div class="radio">

										  <label><input type="radio" name="optradio" checked='checked' value='f'>Fresh Install</label>

										</div>

										

										<br/><br/>

										<a href="javascript:void(0)" class="btn btn-success installer_t_c_submit float-right next-btn" id="first_next">Start Install <i class="fa fa-angle-double-right"></i></a>

										<br/><br/>

										<div class='alert alert-danger text-left' id="overall_errors" style="display:none;">

										Sorry please accept term and condition

										</div>

									</div>

								</div>

							</div>

						</div>

					</div>

				</div>

			</div>

		</div>

	</body>

</html>	

 <script type="text/javascript">

        var obj_installer = {'ajax_url':'<?php  echo AJAX_URL;?>','site_url':'<?php  echo SITE_URL;?>'};

    </script>