Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/03/2004, 09:57
Avatar de nuevo
nuevo
 
Fecha de Ingreso: mayo-2003
Ubicación: Spain
Mensajes: 2.009
Antigüedad: 21 años
Puntos: 2
a ver si esto te sirve como ejemplo....

fichero: leer.php
Código PHP:
<?php

if ($_GET['accion'] != ""){


    
$script $_GET['accion'];

    if (!
$script) {

        echo 
"<br /><b>ERROR: Se necesita nombre del fichero</b><br />";

    } else {

        if (
ereg("(\.php|\.inc)$",$script)) {

            echo 
"<h1>Fichero Codigo Fuente: $script</h1>\n<hr /></center>\n";

                echo 
"<b>$script</b><br><br>";

                    
highlight_file($script);

                    echo 
"<br><b>$script</b>";

        } else {

            echo 
"<h1>ERROR: Solo nombres de ficheros en Php</h1>";

        }

    }

    echo 
"<hr /><center>Procesado: "date("d-M-Y H:i:s"time());
}
/*
leer.php?accion=leer.php
*/

?>
__________________
3w.valenciadjs.com
3w.laislatv.com

Última edición por nuevo; 31/03/2004 a las 09:58