Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/03/2002, 09:08
Avatar de Cacharro
Cacharro
 
Fecha de Ingreso: enero-2002
Ubicación: Tenerife, Islas Canarias
Mensajes: 151
Antigüedad: 22 años, 3 meses
Puntos: 7
¿Cómo insertar HTML en PHPNUKE?

Hola.

Quiero insertar una parte de la web hecha en dreamweaver, que tiene imágenes y javascript. Probé a insertar el código html en la sección de CONTENIDO, del panel de control, y cuando guardo los cambios, la web no se integra en el sitio hecho en phpnuke, sino que se ve superpuesta.

Bajé el archivo html to nuke de phpnuke.org, pero no sé cómo utilizarlo. Mi inglés es malo y mis conocimientos de php, peores. ¿cómo tendría que poner el vínculo al archivo html, para que aparezca integrado en el phpnuke?

Gracias. Éste es el archivo


/* htmltonuke 2.0alpha for postnuke

/* This modules is to display an html page inside a phpnuke web site
/* Install : put htmltonuke.php inside the root of your postnuke site
/* Usage: call htmltonuke.php?filnavn=rep1/rep2/your_page.html
/* to display the rep1/rep2/your_page.html in the middle of your phpnuke page
/* "filnavn" is just a variable which receives a filename to be shown inside the
/* table.
/*
/* change :
/* - look if the file has the .htm or .html extension otherwise it is not displayed
/* - look if the file is under the web site tree otherwise it is not displayed
/* this prevent underground mis-used of the script

--CÓDIGO PHP--
if (!isset($mainfile)) { include("mainfile.php"); }
$index = 1;
include("header.php");
OpenTable();

//verifie s'il y a l'extension ".htm"
if(substr($filnavn,-4)!=".htm" && substr($filnavn,-5)!=".html" ){
echo "Seuls les fichiers html sont autorisés...";
CloseTable();
include("footer.php");
}
else {
// verifie si l'on remonte dans l'arborescense
// verifie si l'on sort du site
if( substr($filnavn,0,5)!="./../" && substr($filnavn,0,7)!="http://" ){
include ($filnavn);
CloseTable();
include("footer.php");
}
else {
echo "Vous n'etes pas autorises a afficher une page qui n'appartient pas au site...";
CloseTable();
include("footer.php");
}
}

?>