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