Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/07/2012, 15:36
juniorhernandezg
 
Fecha de Ingreso: enero-2012
Mensajes: 109
Antigüedad: 12 años, 3 meses
Puntos: 0
Respuesta: Proteger pagina con usuario privilegiado

Necesito mostrar un link/imagen con solo un usuario llamado "root"

Si estoy logueado con "root" me deberia aparecer todo esto normal, pero si no estoy logueado con "root" me debe quitar esta linea:

echo("<td width='5%'><a href='borrar.php?id=$id' class='estilo'><img src='images/eliminar.png' title='Eliminar'></a></td>\n");
echo "</tr>";


El codigo es:
Cita:
echo("<tr>\n");
echo("<td width='5%'>" . $row["tecnologia"] . "</td>\n");
echo("<td width='5%'>" . $row["equipo"] . "</td>\n");
echo("<td width='10%'>" . $row["nombre"] . "</td>\n");
echo("<td width='5%'>" . $row["serial_mv"] . "</td>\n");
echo("<td width='5%'>" . $row["serial_e"] . "</td>\n");
echo("<td width='5%'>" . $row["cod_m"] . "</td>\n");
echo("<td width='5%'>" . $row["cod_p"] . "</td>\n");
echo("<td width='10%'>" . $row["fecha_i"] . "</td>\n");
echo("<td width='10%'>" . $row["usuario_i"] . "</td>\n");
echo("<td width='10%'>" . $row["com_i"] . "</td>\n");
echo("<td width='5%'>" . $row["fecha_s"] . "</td>\n");
echo("<td width='5%'>" . $row["usuario_s"] . "</td>\n");
echo("<td width='10%'>" . $row["com_s"] . "</td>\n");
echo("<td width='5%'><a href='borrar.php?id=$id' class='estilo'><img src='images/eliminar.png' title='Eliminar'></a></td>\n");
echo "</tr>";



}
echo "</table>";


?>