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 | $versionfile="../../doc/VERSION.txt"; |
---|
28 | if (file_exists ($versionfile)) |
---|
29 | include ($versionfile); |
---|
30 | |
---|
31 | ?> |
---|
32 | </p> |
---|
33 | <?php |
---|
34 | // Añadir CHANGELOG. |
---|
35 | $buschangelog=exec('ls ../../doc | grep CHANGELOG*', $nombrechange); |
---|
36 | $changelogfile="../../doc/".$buschangelog; |
---|
37 | ?> |
---|
38 | <?php |
---|
39 | // Añadir Manual. |
---|
40 | $usermanual="../../doc/userManual-1.0.6"; |
---|
41 | if (file_exists ($usermanual)){ |
---|
42 | // Copiamos el directorio userManual |
---|
43 | system("cp -R ../../doc/userManual-1.0.6 ../api/userManual"); |
---|
44 | // Creamos el Inicio del Manual |
---|
45 | system("touch ../api/userManual/Inicio.php"); |
---|
46 | // Añadimos instrucciones |
---|
47 | $ficheroinicio="../api/userManual/Inicio.php"; |
---|
48 | |
---|
49 | $crearficheroinicio=fopen($ficheroinicio,"w"); |
---|
50 | fwrite($crearficheroinicio," |
---|
51 | <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'> |
---|
52 | <html> |
---|
53 | <head> |
---|
54 | <title> Administración web de aulas </title> |
---|
55 | <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'> |
---|
56 | <link rel='stylesheet' type='text/css' href='../estilos.css' /> |
---|
57 | </head> |
---|
58 | |
---|
59 | <body class='acercade'> |
---|
60 | <table width='100%' border='0'> |
---|
61 | <tr> |
---|
62 | <td width='30%'><p><img src='../../images/acercade.png' alt='*' hspace='10em' vspace='10em' align='left' /></p> |
---|
63 | <p> </p> |
---|
64 | <p> </p> |
---|
65 | <p> </p> |
---|
66 | <p> </p> |
---|
67 | <p><img alt='OpenGnsys' src='../../images/iconos/logoopengnsys.png' /></p></td> |
---|
68 | <td width='61%'> |
---|
69 | |
---|
70 | <p> |
---|
71 | |
---|
72 | |
---|
73 | |
---|
74 | <?php |
---|
75 | \$directorio = opendir('.'); //ruta actual |
---|
76 | while (\$archivo = readdir(\$directorio)) //obtenemos un archivo y luego otro sucesivamente |
---|
77 | { |
---|
78 | if (is_dir(\$archivo))//verificamos si es o no un directorio |
---|
79 | { |
---|
80 | if (\$archivo == '.' || \$archivo == '..') |
---|
81 | {}else{ |
---|
82 | echo '['.\$archivo . ']<br />'; //de ser un directorio lo envolvemos entre corchetes |
---|
83 | } |
---|
84 | } |
---|
85 | else |
---|
86 | { |
---|
87 | if (\$archivo == 'Inicio.php' || \$archivo == '.' || \$archivo == '..') |
---|
88 | {}else{ |
---|
89 | \$fichero[] = \$archivo; |
---|
90 | } |
---|
91 | } |
---|
92 | } |
---|
93 | sort(\$fichero); |
---|
94 | foreach (\$fichero as \$ficheros) { |
---|
95 | echo '<P><a href='.\$ficheros.' target=miframeflotante >'.\$ficheros.'</a></P>'; |
---|
96 | } |
---|
97 | |
---|
98 | ?> |
---|
99 | |
---|
100 | </td> |
---|
101 | </tr> |
---|
102 | |
---|
103 | </table> |
---|
104 | |
---|
105 | <table width='100%' height='100%' border='0'> |
---|
106 | <tr > |
---|
107 | <td align='center' > |
---|
108 | <?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>'; |
---|
109 | ?> |
---|
110 | </td> |
---|
111 | </tr> |
---|
112 | </table> |
---|
113 | "); |
---|
114 | fclose($crearficheroinicio); |
---|
115 | |
---|
116 | |
---|
117 | } |
---|
118 | ?> |
---|
119 | |
---|
120 | |
---|
121 | |
---|
122 | <p><strong><?php echo $TbMsg["TITLE"] ?></strong></p> |
---|
123 | |
---|
124 | <p><?php echo $TbMsg["DESCRIPTION"] ?> </p> |
---|
125 | |
---|
126 | <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> |
---|
127 | |
---|
128 | <p><?php |
---|
129 | if (file_exists ($changelogfile)){ |
---|
130 | system("cp ../../doc/$buschangelog ../api"); |
---|
131 | echo "<strong><a href='../api/$buschangelog' target='_blank'>".$TbMsg["CHANGE"]."</a></strong>"; |
---|
132 | include ($versionfile);} |
---|
133 | ?></p> |
---|
134 | |
---|
135 | <p><?php echo "<strong><a href='../api/userManual/Inicio.php' target='_blank'>".$TbMsg["MANUAL"]." (v1.0.6)</a></strong>";?></p> |
---|
136 | |
---|
137 | <p><strong><?php echo $TbMsg["LINK"]; ?> <a href="https://opengnsys.es" target="_blank" >opengnsys.es</a><strong></p> |
---|
138 | |
---|
139 | |
---|
140 | |
---|
141 | |
---|
142 | |
---|
143 | </body> |
---|
144 | </html> |
---|