1 | <?php |
---|
2 | //******************************************************************** |
---|
3 | // Descripción : |
---|
4 | // Pagina de informacion sobre el proyecto OpenGnsys |
---|
5 | //******************************************************************** |
---|
6 | include_once("../includes/ctrlacc.php"); |
---|
7 | include_once("../idiomas/php/".$idioma."/acercade_".$idioma.".php"); |
---|
8 | |
---|
9 | ?> |
---|
10 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
11 | <html> |
---|
12 | <head> |
---|
13 | <title> Administración web de aulas </title> |
---|
14 | <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
15 | <link rel="stylesheet" type="text/css" href="../estilos.css" /> |
---|
16 | </head> |
---|
17 | |
---|
18 | <body class="acercade"> |
---|
19 | |
---|
20 | <img alt="*" src="../images/acercade.png" align="left" hspace="10em" vspace="10em" /> |
---|
21 | |
---|
22 | <h1><img alt="OpenGnsys" src="../images/iconos/logoopengnsys.png" /></h1> |
---|
23 | |
---|
24 | <p> |
---|
25 | <?php |
---|
26 | // Añadir versión. |
---|
27 | $data = json_decode(@file_get_contents(__DIR__ . '/../../doc/VERSION.json')); |
---|
28 | if (empty($data->project)) { |
---|
29 | echo "OpenGnsys"; |
---|
30 | } else { |
---|
31 | echo @$data->project.' ' |
---|
32 | .@$data->version.' ' |
---|
33 | .(isset($data->codename) ? '(<a href="'.@$data->definition.'" target="_blank">'.$data->codename.'</a>) ' : '') |
---|
34 | .@$data->release; |
---|
35 | } |
---|
36 | ?> |
---|
37 | </p> |
---|
38 | <?php |
---|
39 | // Añadir CHANGELOG. |
---|
40 | $buschangelog=exec('ls ../../doc | grep CHANGELOG*', $nombrechange); |
---|
41 | $changelogfile="../../doc/".$buschangelog; |
---|
42 | ?> |
---|
43 | <?php |
---|
44 | // Añadir Manual. |
---|
45 | $usermanual="../../doc/userManual"; |
---|
46 | $destdir="../api/userManual"; |
---|
47 | if (file_exists ($usermanual)){ |
---|
48 | // Copiamos el directorio userManual |
---|
49 | system("rm -fr $destdir; cp -a $usermanual $destdir"); |
---|
50 | // Creamos el Inicio del Manual |
---|
51 | // Añadimos instrucciones |
---|
52 | $ficheroinicio="$destdir/Inicio.php"; |
---|
53 | system("touch $ficheroinicio"); |
---|
54 | |
---|
55 | $crearficheroinicio=fopen($ficheroinicio,"w"); |
---|
56 | fwrite($crearficheroinicio," |
---|
57 | <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'> |
---|
58 | <html> |
---|
59 | <head> |
---|
60 | <title> Administración web de aulas </title> |
---|
61 | <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'> |
---|
62 | <link rel='stylesheet' type='text/css' href='../estilos.css' /> |
---|
63 | </head> |
---|
64 | |
---|
65 | <body class='acercade'> |
---|
66 | <table width='100%' border='0'> |
---|
67 | <tr> |
---|
68 | <td width='30%'><p><img src='../../images/acercade.png' alt='*' hspace='10em' vspace='10em' align='left' /></p> |
---|
69 | <p> </p> |
---|
70 | <p> </p> |
---|
71 | <p> </p> |
---|
72 | <p> </p> |
---|
73 | <p><img alt='OpenGnsys' src='../../images/iconos/logoopengnsys.png' /></p></td> |
---|
74 | <td width='61%'> |
---|
75 | |
---|
76 | <p> |
---|
77 | |
---|
78 | |
---|
79 | |
---|
80 | <?php |
---|
81 | \$directorio = opendir('.'); //ruta actual |
---|
82 | while (\$archivo = readdir(\$directorio)) //obtenemos un archivo y luego otro sucesivamente |
---|
83 | { |
---|
84 | if (is_dir(\$archivo))//verificamos si es o no un directorio |
---|
85 | { |
---|
86 | if (\$archivo == '.' || \$archivo == '..') |
---|
87 | {}else{ |
---|
88 | echo '['.\$archivo . ']<br />'; //de ser un directorio lo envolvemos entre corchetes |
---|
89 | } |
---|
90 | } |
---|
91 | else |
---|
92 | { |
---|
93 | if (\$archivo == 'Inicio.php' || \$archivo == '.' || \$archivo == '..') |
---|
94 | {}else{ |
---|
95 | \$fichero[] = \$archivo; |
---|
96 | } |
---|
97 | } |
---|
98 | } |
---|
99 | sort(\$fichero); |
---|
100 | foreach (\$fichero as \$ficheros) { |
---|
101 | echo '<P><a href='.\$ficheros.' target=miframeflotante >'.\$ficheros.'</a></P>'; |
---|
102 | } |
---|
103 | |
---|
104 | ?> |
---|
105 | |
---|
106 | </td> |
---|
107 | </tr> |
---|
108 | |
---|
109 | </table> |
---|
110 | |
---|
111 | <table width='100%' height='100%' border='0'> |
---|
112 | <tr > |
---|
113 | <td align='center' > |
---|
114 | <?php echo '<iframe id=miframeflotante name=miframeflotante src='.\$fichero[0].' width=100% height=700 frameborder=0 scrolling=no marginwidth=0 marginheight=0 align=left>Tu navegador no soporta frames!!</iframe>'; |
---|
115 | ?> |
---|
116 | </td> |
---|
117 | </tr> |
---|
118 | </table> |
---|
119 | "); |
---|
120 | fclose($crearficheroinicio); |
---|
121 | |
---|
122 | |
---|
123 | } |
---|
124 | ?> |
---|
125 | |
---|
126 | |
---|
127 | |
---|
128 | <p><strong><?php echo $TbMsg["TITLE"] ?></strong></p> |
---|
129 | |
---|
130 | <p><?php echo $TbMsg["DESCRIPTION"] ?> </p> |
---|
131 | |
---|
132 | <p><?php echo $TbMsg["LICENSE"] ?> <a href="https://www.gnu.org/licenses/gpl.html" target="_blank" ><img alt="GPL v3" src="../images/gplv3-88x31.png" height="20em" /></a></p> |
---|
133 | |
---|
134 | </body> |
---|
135 | </html> |
---|