-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·69 lines (67 loc) · 2.05 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
if (!file_exists("config.php")){
header ("Location: ./instalacion/");
}?>
<?php
/*
*
* Copyright 2009 Antonio Gomez Garcia <agomeztron@yahoo.es>
*
* Este programa es software libre; lo puedes redistribuir y/o modificar
* bajo los terminos de la licencia publica GNU, publicada por la Free
* Software Foundation; ya sea la version 2 de la licencia, o cualquier
* version posterior.
*
* Este programa se esta distribuyendo con la esperanza de que sea util
* a la comunidad, pero SIN NINGUNA GARANTIA, ¡RECLAMACIONES, AL MAESTRO
* ARMERO!, que decian en la mili. Si te quedas con la duda, examina los
* terminos de la licencia GNU
*
* Deberias haber recibido una copia de la Licencia Publica General GNU
* junto con esta aplicacion. Si no es asi, y te da pereza tirar de In-
* ternet, escribe a: Free Software Foundation, Inc., 51 Franklin Street
* , Fifth Floor, Boston, MA 02110-1301,USA.
*
*/
?>
<?php
function CleanFiles($dir)
{
//Borrar los ficheros temporales
$t = time();
$h = opendir($dir);
while($file=readdir($h))
{
if(substr($file,0,3)=='tmp' && substr($file,-4)=='.pdf')
{
$path = $dir.'/'.$file;
if($t-filemtime($path)>3600)
@unlink($path);
}
}
closedir($h);
}
CleanFiles("evaluacion");
?>
<!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>INFORMES DE EVALUACION</title>
</head>
<body>
<p><img src="LOGO.jpg" width="100%" height="115" /></p>
<form action="procesaclaves.php" method="post" name="claves">
<label for="textfield">Nombre:</label>
<input name="nombre" type="text" id="nombre" />
<label for="label">Contraseña:</label>
<input name="contra" type="password" id="contra" />
<p> </p>
<p>
<label>
<input type="submit" name="Submit" value="ENVIAR" />
</label>
<p> </p>
</form>
</body>
</html>