Tema destacado: Suscripción al boletín mensual de elhacker.net
Autor
|
Tema: ayuda en mi godigo de programacion (Leído 1,959 veces)
|
|
|
Nakp
casi es
Ex-Staff
Desconectado
Mensajes: 6.334
he vuelto :)
|
ese es el codigo completo? ordenalo quieres? xD
|
|
|
|
|
En línea
|
Ojo por ojo, y el mundo acabará ciego.
|
|
|
neopuerta360
Desconectado
Mensajes: 240
La mejor comunidad de neopets
|
<?phpheader( "Expires: Mon, 10 Jul 2011 04:00:00 GMT" ); // disable IE cachingheader( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . " GMT" ); header( "Cache-Control: no-cache, must-revalidate" ); header( "Pragma: no-cache" );?>
<? include("config.php");?> <? include("otracosa/seguridad22.php");?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es"> <HEAD> <meta http-equiv="X-UA-Compatible" content="IE=8"> <META content="text/html; charset=utf-8" http-equiv=Content-Type> <META name=description content="NeoPuerta Xxx - La mejor pagina de Videos pornos Gratis y en español. Ideal para ver tus videos en linea,ver videos de todas las categorias,chat,foro,encontrar amigos, animaciones e imaganes, red social,juegos,fotos,y mucho mas!"> <meta name="title" content="NeoPuerta Xxx - Tu mejor página de videos porno en Español y Gratis.">
<META NAME="Author" CONTENT="Alfredo Puerta"> <meta name="DC.Creator" content="neopuerta@gmail.com"> <META NAME="Subject" CONTENT="NeoPuerta Xxx"> <META NAME="Language" CONTENT="es,spanish"> <link rel="alternate" type="application/rss+xml" title="Nuevos videos en NeoPuerta Xxx" href="rss.php" /> <META NAME="Generator" CONTENT="NeoPuerta 2.0"> <title>NeoPuerta Xxx - Tu mejor página de videos porno en Español y Gratis.</title> <META name=keywords content=porno,videos,películas,chat,foro,red social,imagenes,juegos,animaciones,fotos,amigos,twitter,facebook,google,email,correo,el tigre,hi5,badoo,videos pornos,imagenes xxx,games,putas,zorras,perras,peliculas,xxx,plaboy,venezuela,venezolanas,linea,online,streaming,español,castellano,gratis,sexo,amateur,anal,asiáticas,mamadas,rubias,morenas,lesbianas,orgías,jovencitas,maduritas,masturbación,famosos,famosas,lesbianas,gay,interracial,pornstars,españolas,pilladas,squirting,hardcore,otros,porn,sex,free.><LINK rel="shortcut icon" href="imagenes/favicon.ico">
<link rel="stylesheet" type="text/css" href="estilos/normal.css" /> <script src="antixss.js.php" type="text/javascript" language="javascript"></script> </HEAD> <body onLoad="javascript:verifica_url('404.php')"> <BODY> <TABLE border=0 width="100%"> <TBODY> <TR> <TD> <TABLE border=0 width="80%" align=center> <TBODY> <TR> <TD width="48%"> <TABLE border=0 width="99%"> <TBODY> <TR> <TD><IMG border=0 alt="NeoPuerta Xxx" src="imagenes/logo.png" width=385 height=73 useMap=#Map><BR><MAP id=Map name=Map><AREA href="index.php" shape=rect coords=5,3,377,69></MAP><br>
<form style="border:1px solid #ccc;padding:3px;text-align:center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=neopuertaxxx', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
<P align=left><B>Deseo recibir noticias en mi correo!</B><BR><INPUT size="30" type="text" onclick="if(this.value == 'Ingresa tu correo') this.value='';" onblur="if(this.value.length == 0) this.value='Ingresa tu correo';" value="Ingresa tu correo" name="email" class="form"> <input type="hidden" value="neopuertaxxx" name="uri"/> <input type="hidden" name="loc" value="en_US"/>
<INPUT value="Suscribirme" type="submit" class="form" name="buttonb"><BR> </FORM>
</TD></TR></TBODY></TABLE></TD> <TD width="52%"> <TABLE border=0 width="99%"> <TBODY> <TR> <TD width="74%" align=middle> <FORM id="form1" method="GET" action="index.php"> <P align=left><B>Buscador:</B><BR>
<input type="hidden" value="buscador" name="page"/> <INPUT size="30" type="text" onclick="if(this.value == 'Ingresa tu búsqueda') this.value='';" onblur="if(this.value.length == 0) this.value='Ingresa tu búsqueda';" value="Ingresa tu búsqueda" name="buscar" class="form"> <INPUT id="button" value="Buscar" type="submit" class="form"><BR></P> <HR align="left" color="#e952cf" width="280">
<P align="left"><B>Total Visualizaciones:</B>
<? include_once("config.php");?> <? $reproduciones = mysql_query("select vistas from videosnp") ; $totalvistos = mysql_num_rows($reproduciones) ; mysql_free_result($reproduciones) ; ?> <? echo $totalvistos ?> <BR><B>Total visitas:</B> <? include_once("include/visitas.php");?> <BR>
<B>Total videos:</B> <? $videos = mysql_query("select id from videosnp") ; $totaldevideos = mysql_num_rows($videos) ; mysql_free_result($videos) ; ?> <? echo $totaldevideos ?> <BR>
<B>Total comentarios:</B> <? $comentar = mysql_query("select id from comentariosnp") ; $totaldecomentarios = mysql_num_rows($comentar) ; mysql_free_result($comentar) ; ?> <? echo $totaldecomentarios ?> <BR></P></FORM></TD> <TD width="26"><IMG src="imagenes/cerdo.jpg" width=164 height=137></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD height=42 background=imagenes/fondomenu.png colSpan=2> <TABLE border=0 borderColor=#ff99ff width="100%" height=44> <TBODY> <TR align=middle borderColor=#ff99ff> <TD onmouseover='this.style.background="#DB00AF"' onmouseout='this.style.background=""' width="9%"><A href="index.php"><FONT size=3><IMG border=0 alt="Home" src="imagenes/inicio.png" width=25 height=18 > Home</FONT></A></TD> <TD onmouseover='this.style.background="#DB00AF"' onmouseout='this.style.background=""' width="9%"><A href="foro/"><FONT size=3><IMG border=0 alt="Foro" src="imagenes/foro.png" width=25 height=18></FONT><FONT size=3> Foro</FONT></A></TD> <TD onmouseover='this.style.background="#DB00AF"' onmouseout='this.style.background=""' width="15%"><FONT size=3><A href="index.php?page=categorias"><IMG border=0 alt="Categorías" src="imagenes/categorias.png" width=25 height=18> Categorías</A></FONT></TD> <TD onmouseover='this.style.background="#DB00AF"' onmouseout='this.style.background=""' width="13%"><FONT size=3><A href="#mas"><IMG border="0" alt="Mas" src="imagenes/mas.png" width="25" height="18"> Mas</A></FONT></TD> <TD onmouseover='this.style.background="#DB00AF"' onmouseout='this.style.background=""' width="14%"><A href="index.php?page=chat"><FONT size=3><IMG border=0 alt="Chat" src="imagenes/chat.png" width=25 height=18> Chat</FONT></A></TD> <TD onmouseover='this.style.background="#DB00AF"' onmouseout='this.style.background=""' width="17%"><FONT size=3><A href="index.php?page=imagenes"><IMG border=0 alt="Imagenes" src="imagenes/imagenes.png" width=25 height=18> Imagenes</A><A href="index.php?page=top"></A></FONT></TD> <TD onmouseover='this.style.background="#DB00AF"' onmouseout='this.style.background=""' width="8%"><FONT size=3><A href="index.php?page=top"><IMG border=0 alt="Top ranking" src="imagenes/top.png" width=25 height=18> Top</A></FONT></TD> <TD onmouseover='this.style.background="#DB00AF"' onmouseout='this.style.background=""' width="15%"><FONT size=3><A onclick="window.open(this.href, this.target, 'width=600,height=400,scrollbars=yes' ); return false;" href="enviar_archivo.php" target=_blank><IMG border=0 alt="Enviar un archivo" src="imagenes/enviararchivo.png" width=25 height=18> Enviar archivo</A></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<? include("include/aletarios.php");?>
<br> <TABLE border=0 width="100%" align=center> <TBODY> <TR> <TD height=30 background=imagenes/cuadradofondo.png><FONT class="bi" size=3><B class="bi" id="mas"> Submenu</B> - Pincha un link</FONT></TD> </TR> <TR> <TD height=30 align=middle> <DIV style="WIDTH: 100%; HEIGHT: auto; MARGIN-LEFT: 50px"> <DIV style="WIDTH: 20%; FLOAT: left; HEIGHT: auto"> <P align=left ><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=noticias">Noticias</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=animaciones">Animaciones</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=juegos">Juegos</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=imagenes">Imagenes</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=desgargas">Desgargas</A></P></DIV> <DIV style="WIDTH: 20%; FLOAT: left; HEIGHT: auto"> <P align=left><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=estadisticas">Estadisticas</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=conectados">Conectados</A></A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=wallpapers">Wallpapers</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=chat">Chat</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=top">Top ranking</A></P></DIV> <DIV style="WIDTH: 20%; FLOAT: left; HEIGHT: auto"> <P align=left><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=encuestas">Encuestas</A><BR>
<IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=movil">Movil</A><BR>
<IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=visitas">Libro visitas</A><BR><BR></P></DIV></DIV></TD></TR>
</tbody> <br>
<? if($page == "") { include("otracosa/principal.php"); } else { if(file_exists("$page.php")) { $page = htmlspecialchars(trim($_GET["page"])); $page = eregi_replace("<[^>]*>","",$page) ; $page = eregi_replace(".*//","",$page) ; $page = str_replace("http://","",$page) ; $page = str_replace("www","",$page) ; $page = str_replace("https://","",$page) ; if (is_file(dirname(__FILE__) . '/otracosa/'. $page .'.php')) {require_once(dirname(__FILE__) . '/otracosa/'. $page .'.php');} else{ include("error.php"); } } ?>
<TABLE width="100%" align=center> <TBODY> <TR> <TD height=30 background=imagenes/cuadradofondo.png><FONT size=3><B class="bi"> Publicidad</B></FONT></TD></TR></TBODY></TABLE> <TABLE border=0 width="40%" align=center> <TBODY> <TR> <TD align=middle><!--JuicyAds v2.0--><IFRAME vspace=0 height=258 marginHeight=0 border=0 src="imagenes/adshow(2).htm" frameBorder=0 width=924 allowTransparency marginWidth=0 scrolling=no hspace=0></IFRAME><!--JuicyAds END--></TD></TR></TBODY></TABLE></DIV></DIV></TD></TR> <TR> <TD height=30 background=imagenes/cuadradofondo.png><FONT size=3><B class="bi"> Categorías</B><FONT class="bi"> - Pincha en una categoría para ver los videos que contiene</FONT></TD></TR> <TR> <TD height=30 align=middle> <DIV style="WIDTH: 100%; HEIGHT: auto; MARGIN-LEFT: 50px"> <DIV style="WIDTH: 20%; FLOAT: left; HEIGHT: auto"> <P align=left><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=amateur">Amateur</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=anal">Anal</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=asiaticas">Asiáticas</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=mamadas">Mamadas</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=rubias">Rubias</A></P></DIV> <DIV style="WIDTH: 20%; FLOAT: left; HEIGHT: auto"> <P align=left><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=morenas">Morenas</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=lesbianas">Lesbianas</A></A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=orgias">Orgías</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=jovencitas">Jovencitas</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=maduritas">Maduritas</A></P></DIV> <DIV style="WIDTH: 20%; FLOAT: left; HEIGHT: auto"> <P align=left><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=masturbacion">Masturbación</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=famosas">Famosas</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=interracial">Interracial</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=peliculas">Películas</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=pornstars">Pornstars</A></P></DIV> <DIV style="WIDTH: 20%; FLOAT: left; HEIGHT: auto"> <P align=left><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=espanolas">Españolas</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=pilladas">Pilladas</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=squirting">Squirting</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=hardcore">Hardcore</A><BR><IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=hd_alta_definicion">Alta definición</A></P></DIV> <DIV style="WIDTH: 15%; FLOAT: left; HEIGHT: auto"> <P align=left>
<IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=colegiales">Colegiales</A><BR>
<IMG border=0 src="imagenes/carpeta.png" width=20 height=14> <A href="index.php?page=otros">Otros</A><BR></P></DIV></DIV></TD></TR> <TR> <TD height=10 align=middle><IMG src="imagenes/lineafinal.png" width=800 height=2></TD></TR> <TR> <TD height=30 align=middle> <P><A onclick="window.open(this.href, this.target, 'width=450,height=450,scrollbars=yes' ); return false;" href="contacto.php" target=_blank>Contacta con nosotros</A> | <A href="index.php?page=aviso_legal">Aviso legal</A> | <A href="index.php?page=somos">Quienes Somos?</A> | Copiright © NeoPuerta Xxx <? $fecha = date ("Y"); echo "2011-" . $fecha; ?></P> <P><A href="http://www.php.net/"><IMG src="imagenes/badge_php.gif" border="0" width=80 height=15></a> <IMG src="imagenes/button-mysql.png.jpg" width=80 height=15> <IMG src="imagenes/css_powered.png" width=80 height=15> <A href="sitemap.html"><IMG border=0 src="imagenes/sitemap.jpg" width=80 height=15></A> <IMG border=0 src="imagenes/firefox.gif" width=80 height=15 useMap=#Map2></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><MAP id=Map2 name=Map2><AREA href="http://www.mozilla-europe.org/es/" shape=rect target=_blank coords=0,2,80,14></MAP></BODY></HTML>
|
|
|
|
|
En línea
|
|
|
|
|
|
neopuerta360
Desconectado
Mensajes: 240
La mejor comunidad de neopets
|
lo q me dice nada mas q el error esta en la ultima linea...yo creo q es el hostin, es de miarroba.es
|
|
|
|
|
En línea
|
|
|
|
|
|
|
bomba1990
|
por lo general cuando te dice que el error esta en la ultima linea se debe a que hay un corchete mal cerrado
modificacion: consegui el error, linea 269, hay un else sin cerrar. suerte
te recomiendo que hagas el espaciado necesario de tu codigo para que este este acorde a lo que estas ahciendo y sea facil de entender.
|
|
|
|
« Última modificación: 6 Marzo 2011, 03:30 por bomba1990 »
|
En línea
|
|
|
|
neopuerta360
Desconectado
Mensajes: 240
La mejor comunidad de neopets
|
disculpame...pero no se en donde poner el cochete???
|
|
|
|
|
En línea
|
|
|
|
Sinedra
Desconectado
Mensajes: 44
<?php include("Sinedra.php"); ?>
|
A simple vista encontre esto:
<? echo $totalvistos ?>
<? echo $totaldevideos ?>
<? echo $totaldecomentarios ?>
debes cerrar cada sentencia con ;
<? echo $totalvistos; ?>
<? echo $totaldevideos; ?>
<? echo $totaldecomentarios; ?>
Seguramente hay mas sentencias sin ; revisa el codigo Saludos!
|
|
|
|
|
En línea
|
|
|
|
neopuerta360
Desconectado
Mensajes: 240
La mejor comunidad de neopets
|
a ok..gracias! voy aprobar!
|
|
|
|
|
En línea
|
|
|
|
~ Yoya ~
Wiki
Desconectado
Mensajes: 954
|
Usa Smarty, asi todo esta mas organizado y resuelves los problemas mas rapido. Smarty es un motor de plantillas para PHP, es decir, separa el código PHP, como lógica de negocios, del código HTML, como lógica de presentación, y genera contenidos web mediante la colocación de etiquetas Smarty en un documento También puedes poner todo el código HTML en un archivo para incluirlo.
Es muy incomodo tratar de leer todo ese source xD. En la pagina php.net, hay una lista de errores y que los causa pero no tengo el link xD.
|
|
|
|
|
En línea
|
|
|
|
Stoya
Desconectado
Mensajes: 83
Nerviosismo esperando respuesta a tema.
|
He buscado un ide para php y eclipse aparece el 1º en google.
¿Eclipse es el ide universal o es que google está compinchado?
|
|
|
|
|
En línea
|
|
|
|
~ Yoya ~
Wiki
Desconectado
Mensajes: 954
|
No hay un IDE universal o el apropiado para PHP, como pasa en Java.
Quizás el que se acerque mas, seria Dreamweaver pero es para window.
Yo utilizo Quanta Plus que esta en lo repositorios de Fedora, Ubuntu, Debian, y algunos mas.
Pero nada tiene que ver xd
|
|
|
|
|
En línea
|
|
|
|
Nakp
casi es
Ex-Staff
Desconectado
Mensajes: 6.334
he vuelto :)
|
yo uso netbeans para php y va de lujo, sobre los ; comentados por sinedra, no son necesarios  es cierto que es mejor separar la logica de las vistas  y sobre el error... Que pereza revisar todo ese codigo desordenado sin el error especifico (tal como lo da php)... En vez de subir tus archivos a un host deberias probarlos localmente asi evitas depender del entorno que impone el host cuando desarrollas  (me refiero a eso de mostrar errores y como hacerlo)
|
|
|
|
|
En línea
|
Ojo por ojo, y el mundo acabará ciego.
|
|
|
|
bomba1990
|
yo entre en tu pagina (neopuerta)y salia ese error, revise el codigo y en: <? if($page == "") { include("otracosa/principal.php"); } else { //si te fijas en esta linea esta la llave abierta pero abajo no esta cerrado. if(file_exists("$page.php")) { $page = htmlspecialchars(trim($_GET["page"])); $page = eregi_replace("<[^>]*>","",$page) ; $page = eregi_replace(".*//","",$page) ; $page = str_replace("http://","",$page) ; $page = str_replace("www","",$page) ; $page = str_replace("https://","",$page) ; if (is_file(dirname(__FILE__) . '/otracosa/'. $page .'.php')){ require_once(dirname(__FILE__) . '/otracosa/'. $page .'.php'); } else { include("error.php"); } } ?> Toda persona que quiera programar en php y tenga un codigo entendible y facil de leer para otros, debe tener todas las sangrias necesarias para que se vea donde empiesa una llave y donde termina. yo le puse la sangria a esas lineas de codigo y veras que ahora si se ve mejor que hay un else que esta sin cerrar. creo que esta obvio donde hay que ponerlo. es mas esta es la unica parte de tu codigo donde usas llaves, te recomiendo que cambies tu forma de programar, que mejores el estilo, poniendo mas sangrias, y usando un mvc, ya sea creado por ti o algun buen framework como codeigniter que es facil de usar y facil de aprender.
|
|
|
|
|
En línea
|
|
|
|
|
|