Ver Mensaje Individual
  #7 (permalink)  
Antiguo 04/05/2006, 16:48
escan_0
 
Fecha de Ingreso: febrero-2003
Mensajes: 763
Antigüedad: 21 años, 2 meses
Puntos: 2
Código PHP:
<?php
echo <<< HTML
<body bgcolor="#FFFFFF">

<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="780" id="AutoNumber1">
    <tr>
      <td colspan="2" width="800">
HTML;
// linea 11
include("../arriba.php");

echo <<< HTML
 </td>
    </tr>
    <tr>
      <td width="180">
      <img border="0" src="../images/men.gif" width="180" height="1"></td>
      <td width="600">
      <img border="0" src="../images/pri.gif" width="600" height="1"></td>
    </tr>
    <tr>
      <td width="180" valign="top">
HTML;

include(
"../menu.php");

echo <<< HTML

</td>
      <td width="680" valign="top">

HTML;
// fin de mi codigo
//comienzo del codigo php del foro
error_reporting(7);

// start prep shutdown function
$noshutdownfunc 0// #CHANGE ME IF YOU CAN'T USE register_shutdown_function

.....
.....
.....

// ###################### Start vbsetcookie #######################
function vbsetcookie($name,$value="",$permanent=1) {
  global 
$cookiepath,$cookiedomain$SERVER_PORT;

  if (
$permanent) {
    
$expire=time() + 60*60*24*365;
  } else {
    
$expire 0;
  }

  if (
$SERVER_PORT == "443") {
    
// we're using SSL
    
$secure 1;
  } else {
    
$secure 0;
  }

  if (
defined('USE_COOKIE_WORKAROUND')) {
    
// It's been reported that there's a bug in PHP 4.2.0/4.2.1 with Apache 2 causing setcookie() to not work correctly.
    // This is the workaround. If you need to use this code, please add:
    //      define('USE_COOKIE_WORKAROUND', 1);
    // to your config.php.

    
if (!$value) {
      
// need to do this so IE deletes the cookie correctly
      
$expire time() - 31536001;
      
$value 'deleted';
    }
    
$cookieheader "Set-Cookie: $name=".urlencode($value);
    if (
$expire) {
        
$cookieheader .= '; expires='.gmdate('D, d-M-Y H:i:s'$expire).' GMT';
    }
    if (
$cookiepath) {
      
$cookieheader .= "; path=$cookiepath";
    }
    if (
$cookiedomain) {
      
$cookieheader .= "; domain=$cookiedomain";
    }
    if (
$secure) {
      
$cookieheader .= '; secure';
    }
    
header($cookieheaderfalse); // force multiple headers of same type
  
} else {
    
setcookie($name$value$expire$cookiepath$cookiedomain$secure); // linea 1629
  
}

}

.....
.....
.....

?>
Warning: Cannot modify header information - headers already sent by (output started at /home/medi/public_html/foros/admin/functions.php:11) in /home/medi/public_html/foros/admin/functions.php on line 1629

Este seria el codigo php entero, respecto al panel de control efectivamente tiene una opcion para insertar una cabezera en php pero dice que no puedo utilizar ni echos ni printf por pobar lo puse y funciona bien pero en esa pagina en concreto me vuelve a salir un error parecido al que puso porque lo que estoy en las mismas, el vbulletin me avisa el mismo:

PHP parsed code:

(Don't print/echo out directly!)


Probe a preguntarlo en hermientas prefrabricadas y el foro de vbulletinhispano pero nadie sabe nada o no responde, por eso pense hacerlo directamente en algun archivo .php del foro importante que utilize en todas sus paguinas ese es funcion.php pero sale ese error y no acabo de comprender los de header mi codigo son las 34 primeras lineas que posteado y no se donde puede estar el problema. Las lineas 11 y 1629 las he señalado comentadas

gracias