VEREIS MI DUDA RADICA EN SI SE PUEDE INSERTAR JAVASCRIPT EN PHP!! PARECE UNA TONTERIA PERO NO LO ES!! OS PONGO UN EJEMPLO:
Código:
<?php
ob_start("ob_gzhandler");
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi ([email protected]) */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
foreach ($HTTP_GET_VARS as $secvalue) {
if (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) {
die ("I don't like you...");
}
}
if (eregi("mainfile.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
require_once("config.php");
require_once("includes/sql_layer.php");
$dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
$mainfile = 1;Y SIGUE Y SIGUE Y SIGUE...... ?>
DONDE TENDRIA QUE PONER EL JAVASCRIPT SI NO HAY TAG <HEAD></HEAD> NI BODY NI NA!! ALGUNO SABE COMO HACERLO??