Código PHP:
<style>
font {BACKGROUND: none; COLOR: #ffffff; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:link {BACKGROUND: none; COLOR: #ffffff; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:active {BACKGROUND: none; COLOR: #ffffff; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:visited {BACKGROUND: none; COLOR: #ffffff; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:hover {BACKGROUND: none; COLOR: #ffffff; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
</style>
<body bgcolor="#000000">
<?php
if (!isset($mainfile)) { include("mainfile.php"); }
global $user,$admin,$bgcolor;
global $bgcolor2, $bgcolor1, $prefix;
$serverdate = date("l, d F Y h:i a");
$query = "SELECT uname, host_addr, time, guest
FROM $prefix"._session."";
$results = mysql_query ($query);
while (list($uname, $host_addr, $time, $guest) = mysql_fetch_row($results)) {
if($guest == 0) {
$image="<img src=images/blocks/ur-member.gif>";
if ($uname=="LVP_FRANCiSCO_LARA"){
$image="<img src=images/blocks/ur-admin.gif>";
}
$largo = strlen($uname);
$unames = ($largo > 13) ? substr($uname, 0, 13) . '...' : $uname;
$uname = "$image <a href=modules.php?name=Your_Account&op=userinfo&username=$uname>$unames</a>";
}
if($guest == 1) {
$uname = "<img src=images/blocks/ur-anony.gif><font>Anonimo</font>";
}
$host = gethostbyaddr ($host_addr);
$array = explode(".", $host);
$top_domain = $array[sizeof($array)-1];
$country = "";
if (is_numeric($host))
$country = "Not a domain."; /* host is an ip-address */
else
$country = "Unknown domain."; /* domain not listed above */
print ("$uname<br>");
$unixtime = time() - $time;
if($unixtime < 60){
$sec=$unixtime;
$min=0;
$hour=0;
} else if($unixtime < 3600){
$sec=$unixtime%60;
$hour=0;
$min_t = explode('.', number_format($unixtime/60,2));
$min=$min_t[0];
} else if($unixtime >= 216000){
$hour_t = explode('.',number_format($unixtime/216000,2));
$hour=$hour_t[0];
$sec=$unixtime%60;
$min_te = $unixtime%216000;
$min_t = explode('.',number_format($min_te/60,2));
$min=$min_t[0];
}
}
?>
_jose_
Fran
Lara
peddro
anonimo
anonimo
anonimo
lo que quiero es q me ayuden a contar los usuarios con algun codigo
y q el resultado sea así, como por ejemplo:
01. _jose_
02. Fran
03. Lara
04 .peddro
05. anonimo
06. anonimo
07. anonimo
espero que hayan entendido y espero q me ayuden.
gracias de ante mano