Jump to content
php.lv forumi

scripts


Puika1

Recommended Posts

man ir šāds scripts

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?
$db_host='host';
$db_user='user';
$db_pass='pass';
$db_name='db';
mysql_connect($db_host,$db_user,$db_pass)or die(mysql_error());
mysql_select_db($db_name)or die(mysql_error());
		$reg = mysql_query("SELECT * FROM ibf_members");
		$reg = mysql_num_rows($reg);
		$delay = "900";
		$delays = time() - $delay;
		$useri = mysql_query("SELECT * FROM ibf_members WHERE last_activity >= ".$delays."");
		$regon = mysql_num_rows($useri);
		$viesi = mysql_query("SELECT * FROM ibf_sessions WHERE member_id = '0' and running_time >= ".$delays."");
		$viesi = mysql_num_rows($viesi);
		$kopa = $regon + $viesi;
		echo '
		<span style="font-size:9pt;">
		Reģistrējušies: '.$reg.'<br />
		Online: '.$kopa.'<br />
		Viesi: '.$viesi.'<br />
		Lietotāji: '.$regon.'<br />
		<hr style="margin:2px 0;"/>
		';
		$getusers = mysql_query("SELECT * FROM ibf_members WHERE last_activity >= '$delays'");
		while ($users = mysql_fetch_array($getusers)){
		echo "<a href='f/index.php?showuser=$users[id]' title='$users[members_display_name]'>$users[members_display_name]</a><br />";
		}
		?>
		</span>

un rāda lietotājus online šādi

1237921896.JPG

 

kā var dabūt lai rādītu šādi?

 

lietotajvards

lietotajvards

lietotajvards

lietotajvards

utt.

 

tipa uz leju

 

ludzu palidziet

Link to comment
Share on other sites

×
×
  • Create New...