My website right now is Floggero.com i have my domain in GoDaddy.com
and my hosting is x10hosting.com and im experience some kind of problem, if you guys know please help me.
My frist problem is this
Code: Select all
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/floggero/public_html/index.php:2) in /home/floggero/public_html/index.php on line 3Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php
session_start();
include('configs.php');
include('tflog.php');
//Funcion los mas visitados
function mas_visitados($tabla_visitas, $tabla_fotos, $s){
$query_ranking = mysql_query ("SELECT * FROM $tabla_visitas ORDER BY visitas DESC LIMIT $s,1") or die (print(mysql_error()));
while($dp = mysql_fetch_array($query_ranking)){
$id_user_ranking = $dp['ID_user'];
$visitas = $dp['visitas'];
$query_thumbs_user_ranking = mysql_query ("SELECT * FROM $tabla_fotos WHERE ID_user='$id_user_ranking' ORDER BY ID DESC LIMIT 0,1");
while($dp = mysql_fetch_array($query_thumbs_user_ranking)){
$thumb_user_ranking = $dp['thumb'];
$usuario_ranking = $dp['usuario'];
echo "<a href='$usuario_ranking'><img src=\"$thumb_user_ranking\" border=0</a><br><b><a href='$usuario_ranking'>$usuario_ranking</a></b><br><br>";
}
}
}
//Funcion ultimas fotos
function ultimas_fotos($tabla_fotos, $s){
$query_thumbs = mysql_query ("SELECT * FROM $tabla_fotos ORDER BY ID DESC LIMIT $s,1") or die (print(mysql_error()));
while($dp = mysql_fetch_array($query_thumbs)){
$id_foto = $dp['ID'];
$thumbs = $dp['thumb'];
$fecha = $dp['fecha'];
$id_user = $dp['ID_user'];
$t_user = $dp['usuario'];
echo "<a href='$t_user/$id_foto'><img src=\"$thumbs\" border=0</a><br><b><a href='$t_user/$id_foto'>$t_user</a></b><br><br>";
}
}
//Funcion ultimos registrados
function ultimos_registrados($tabla_usuarios, $tabla_fotos, $s){
$query_tflogs = mysql_query ("SELECT * FROM $tabla_usuarios ORDER BY date DESC LIMIT $s,1") or die (print(mysql_error()));
while($dp = mysql_fetch_array($query_tflogs)){
$id_u_tflogs = $dp['ID'];
$u_tflogs = $dp['usuario'];
$query_thumbs_tflogs = mysql_query ("SELECT * FROM $tabla_fotos WHERE ID_user='$id_u_tflogs' ORDER BY ID DESC LIMIT 0,1");
while($dp = mysql_fetch_array($query_thumbs_tflogs)){
$thumb_user_tflog = $dp['thumb'];
}
if($thumb_user_tflog == ""){
$thumb_user_tflog = "archivos/imagenes/sin_fotos.jpg";
}
echo "<a href='$u_tflogs'><img src=\"$thumb_user_tflog\" border=0</a><br><b><a href='$u_tflogs'>$u_tflogs</a></b><br><br>";
}
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<?php include('head.php'); ?>
<body background="archivos/imagenes/bg.jpg" link="#C3D6E6" vlink="#C3D6E6" alink="#D0E4F5" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="font-family: <?php echo $fuente; ?>; font-size: 13px;">
<table style="font-size: 13px;" id="Tabla_01" align="center" width="1000" height="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5">
<img src="archivos/imagenes/banner.jpg" width="1000" height="200" alt=""></td>
</tr>
<tr>
<td colspan="5" background="archivos/imagenes/index_02.png" width="1000" height="50" alt="">
<?php
if (isset($_SESSION["usuario"])){
echo "<div align=center>
<a href=$usuario_l>$usuario_l</a> |
<a href=subir_foto.php>Subir foto</a> |
<a href=configuraciones.php>Configuraciónes</a> |
<a href=mps.php>$c_mps</a> |
<a href=amigos.php?u=$usuario_l>Amigos</a> |
<a href=faq.php>Puntos</a> |
<a href=logout.php>Salir</a>
</div><p></p>";
} else {
?>
<div align="center">
<form method="post" action="login2.php" name="login" style="color: #FFF">
<p>Usuario:
<input maxlength="24" name="usuario" value="" size="10">
Contraseña:
<input maxlength="20" name="contrasena" value="" size="10" type="password" autocomplete="off">
<input name="ingresar" value="Ingresar" type="submit">
<a href="recuperar_pass.php">¿Olvidaste tu contraseña?</a></p>
</form>
</div>
<?php } ?>
</td>
</tr>
<tr>
<td colspan="5">
<img src="archivos/imagenes/index_03.png" width="1000" height="23" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="archivos/imagenes/index_04.png" width="50" height="700" alt=""></td>
<td rowspan="2" background="archivos/imagenes/index_05.png" width="500" height="700" alt=""><div align="center">
<table style="text-align: center; font-weight: bold; width: 476px; font-size: 13px;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="vertical-align: top; width: 150px; color: FFF;">
Más visitados<br><br>
<?php
mas_visitados($tabla_visitas, $tabla_fotos, "0");
?>
</td>
<td style="vertical-align: top; width: 151px; color: FFF;">
Últimas fotos<br><br>
<?php
ultimas_fotos($tabla_fotos, "0");
?>
</td>
<td style="vertical-align: top; width: 151px; color: FFF;">
Usuarios nuevos<br><br>
<?php
ultimos_registrados($tabla_usuarios, $tabla_fotos, "0");
?>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 150px;">
<?php
mas_visitados($tabla_visitas, $tabla_fotos, "1");
?>
</td>
<td style="vertical-align: top; width: 151px;">
<?php
ultimas_fotos($tabla_fotos, "1");
?>
</td>
<td style="vertical-align: top; width: 151px;">
<?php
ultimos_registrados($tabla_usuarios, $tabla_fotos, "1");
?>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 150px;">
<?php
mas_visitados($tabla_visitas, $tabla_fotos, "2");
?>
</td>
<td style="vertical-align: top; width: 151px;">
<?php
ultimas_fotos($tabla_fotos, "2");
?>
</td>
<td style="vertical-align: top; width: 151px;">
<?php
ultimos_registrados($tabla_usuarios, $tabla_fotos, "2");
?>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 150px;">
<?php
mas_visitados($tabla_visitas, $tabla_fotos, "3");
?>
</td>
<td style="vertical-align: top; width: 151px;">
<?php
ultimas_fotos($tabla_fotos, "3");
?>
</td>
<td style="vertical-align: top; width: 151px;">
<?php
ultimos_registrados($tabla_usuarios, $tabla_fotos, "3");
?>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 150px;">
<?php
mas_visitados($tabla_visitas, $tabla_fotos, "4");
?>
</td>
<td style="vertical-align: top; width: 151px;">
<?php
ultimas_fotos($tabla_fotos, "4");
?>
</td>
<td style="vertical-align: top; width: 151px;">
<?php
ultimos_registrados($tabla_usuarios, $tabla_fotos, "4");
?>
</td>
</tr>
</tbody>
</table>
</div></td>
<td><img src="archivos/imagenes/index_06.png" width="50" height="677" alt=""></td>
<td rowspan="2" background="archivos/imagenes/index_07.png" width="350" height="700" alt="">
<table style="text-align: top; width: 100%; font-size: 11px;" border="0" cellpadding="2" cellspacing="2">
<?php
if (!isset($_SESSION["usuario"])){
include ('registro.php');
}
?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</table>
</td>
<td>
<img src="archivos/imagenes/index_08.png" width="50" height="677" alt=""></td>
</tr>
<tr>
<td>
<img src="archivos/imagenes/index_09.png" width="50" height="23" alt=""></td>
<td>
<img src="archivos/imagenes/index_10.png" width="50" height="23" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="archivos/imagenes/index_11.png" width="1000" height="27" alt=""></td>
</tr>
</table>
<br>
<?php include ('footer.php'); ?>
<br>
</body>
</html>but i can access to them by going to the link like this:
Floggero.com/usuario.php?u=Sphairo
And i want the users to be like this:
Floggero.com/USERNAME
Can i change something in the Httaccess to give me that or what should i do?
My third problem is that the site is to slow, and doesnt have a lot of things, that all. PLEASE HELP ME :S