<?
require('startinclude.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="style2.css" />
<link href="./favicon.ico" rel="shortcut icon"/>
<link href="./favicon.png" rel="icon"/>
<meta name="author" content="Jorge Castro Castillo">
<title>ATS INTECH PREFRIO 2010</title>	
<style type="text/css">

/*
USAGE: All you have to do is include this one line in your CSS file, with the
tag names to which you want the script applied:
*/

img, div { behavior: url(iepngfix.htc) }

/*
Alternatively, you can specify that this will apply to all tags like so:
* { behavior: url(iepngfix.htc) }
*/

</style>
</head>
<body>
<form name="form1" method="post" action='inicio.php'>
<div id="body">
	<div id="header">
		<img src="img/logo.png" alt="logo" />
	</div>
	<div id="content">
		<div id="login">
			<h2>Inicio de Sesi&oacute;n</h2>
			
				<p>
					<fieldset>
						<label for="usuario">Usuario:</label>
						<input name="user" id="user" type="text" tabindex="1" /><br/>
						<label for="password">Clave:</label>
						<input name="clave" id="clave" type="password" tabindex="2" /><br/>
						<button type="submit" name="button" value="Login">Iniciar <img src="img/go.png" alt="Iniciar" /></button>
					</fieldset>
				</p>
 		
			
		</div>
	</div>
</div>
               <input type="hidden" name="paso" value="0">
                <input type="hidden" name="areamodulo" value="1">				
</form>
</body>
<br><br><br>
<p align='center'><font face=Arial Size=1 color=a0a0a0>
<? 
require_once "util_db.php";

date_default_timezone_set('America/Santiago');

leer_ultima_fecha($ultima_fecha);

echo "<b>Fecha y Hora Actual :</b>";
echo cnvepochdatelargo(epochnow());
echo "&nbsp;&nbsp;&nbsp;<b>Fecha y Hora Ultima Lectura :</b>";
$verano=0;
if (abs(epochnow()-$ultima_fecha)>40) {
	$verano=1;
}

echo cnvepochdatelargo($ultima_fecha);


if ($verano) {
	echo "<br><b>Revise el motor y la configuraci&oacute;n regional</b>";
}

  ?></font></p>
  <p align='center'><font face=Arial Size=1 color=a0a0a0><a href='revision.php'>Revisar consistencia</a>&nbsp;&nbsp;&nbsp;
  <a href='respaldo.php'>Generar Respaldo</a></font></p>
  
  <script>
  var isFlashInstalled = (function(){
var b=new function(){var n=this;n.c=!1;var a="ShockwaveFlash.ShockwaveFlash",r=[{name:a+".7",version:function(n){return e(n)}},{name:a+".6",version:function(n){var a="6,0,21";try{n.AllowScriptAccess="always",a=e(n)}catch(r){}return a}},{name:a,version:function(n){return e(n)}}],e=function(n){var a=-1;try{a=n.GetVariable("$version")}catch(r){}return a},i=function(n){var a=-1;try{a=new ActiveXObject(n)}catch(r){a={activeXError:!0}}return a};n.b=function(){if(navigator.plugins&&navigator.plugins.length>0){var a="application/x-shockwave-flash",e=navigator.mimeTypes;e&&e[a]&&e[a].enabledPlugin&&e[a].enabledPlugin.description&&(n.c=!0)}else if(-1==navigator.appVersion.indexOf("Mac")&&window.execScript)for(var t=-1,c=0;c<r.length&&-1==t;c++){var o=i(r[c].name);o.activeXError||(n.c=!0)}}()};  
return b.c;
    })();

if(isFlashInstalled){
    // Do something with flash

    }else{
    // Don't use flash  
	alert('NO HAY FLASH');
        }
  
  </script>
</html>
