diff --git a/pandora_console/general/logon_ok.php b/pandora_console/general/logon_ok.php index eeb3a2e4a4..adb3cdd078 100644 --- a/pandora_console/general/logon_ok.php +++ b/pandora_console/general/logon_ok.php @@ -26,50 +26,6 @@ echo $lang_label["main_text"]; echo "

"; - echo "
"; - // Show last activity from this user - echo "

" . $lang_label["user_last_activity"] . "

"; - // Show table header - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - - // Skip offset records - $query1="SELECT * FROM tsesion WHERE (TO_DAYS(fecha) > TO_DAYS(NOW()) - 7) - AND ID_usuario = '" . $nick . "' ORDER BY fecha DESC limit 15"; - - $result = mysql_query ($query1); - $contador = 5; // Max items - $color = 1; - while (($row = mysql_fetch_array ($result)) and ($contador > 0)) { - - if ($color == 1){ - $tdcolor = "datos"; - $color = 0; - } else { - $tdcolor = "datos2"; - $color = 1; - } - - $usuario = $row["ID_usuario"]; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - - $contador--; - } - - echo "
' . $lang_label["user"] . '' . $lang_label["action"] . '' . $lang_label["date"] . '' . $lang_label["src_address"] . '' . $lang_label["comments"] . '
' . $usuario . '' . $row["accion"]. '' . $row["fecha"]. '' . $row["IP_origen"]. '' . $row["descripcion"]. '
"; - echo "
"; - echo "
"; // activity - // Private messages pending to read ! $sql='SELECT COUNT(*) FROM tmensajes WHERE id_usuario_destino="'.$nick.'" @@ -154,5 +110,50 @@ echo ""; echo ""; + + echo "
"; + // Show last activity from this user + echo "

" . $lang_label["user_last_activity"] . "

"; + // Show table header + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + + // Skip offset records + $query1="SELECT * FROM tsesion WHERE (TO_DAYS(fecha) > TO_DAYS(NOW()) - 7) + AND ID_usuario = '" . $nick . "' ORDER BY fecha DESC limit 15"; + + $result = mysql_query ($query1); + $contador = 5; // Max items + $color = 1; + while (($row = mysql_fetch_array ($result)) and ($contador > 0)) { + + if ($color == 1){ + $tdcolor = "datos"; + $color = 0; + } else { + $tdcolor = "datos2"; + $color = 1; + } + + $usuario = $row["ID_usuario"]; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + + $contador--; + } + + echo "
' . $lang_label["user"] . '' . $lang_label["action"] . '' . $lang_label["date"] . '' . $lang_label["src_address"] . '' . $lang_label["comments"] . '
' . $usuario . '' . $row["accion"]. '' . $row["fecha"]. '' . $row["IP_origen"]. '' . $row["descripcion"]. '
"; + echo "
"; + echo "
"; // activity + echo ''; // class "jus" ?> \ No newline at end of file