Location: PHPKode > projects > Admbook > user-info.php
<?php
	class Timer {
		var $startTime;
		var $endTime;
		function start() {
			$this->startTime = gettimeofday();
		}
		function stop() {
			$this->endTime = gettimeofday();
		}
		function elapsed() {
			return (($this->endTime["sec"] - $this->startTime["sec"]) * 1000000 + ($this->endTime["usec"] - $this->startTime["usec"])) / 1000000;
		}
	}
	$timer = new Timer();
	$timer->start();
	session_start();
	include("settings-data.php");
	include("lib.php");
	include("users-data.php");
	include("config-data.php");
	if (!isset($id))
		$id = "";
	if (!isset($user[$id]))
	{
		Header("Location: index.php");exit;
	}
	if (!isset($page))
		$page = 1;
	$currentContent = $user[$id];
?>
<html>
<head>
<title>admbook :: version <?=$constant['version']?></title>
<?php
	if ($constant['charset'] != "")
	{
?>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$constant['charset']?>"/>
<?php
	}
?>
<link href="style.css" type="text/css" rel="stylesheet"/>
<style type="text/css">
<!--
#error {
	color : <?=$constant['error-color']?>
}

textarea {
	width : 490px;
}

.text {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['text-color']?>
}

.link {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['link-color']?>
}

.messagetext {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['message-text-color']?>
}

.messagelink {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['message-link-color']?>
}

.admintext {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['admin-message-text-color']?>
}

.adminlink {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['admin-message-link-color']?>
}

.headertext {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['header-text-color']?>
}

.headerlink {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['header-link-color']?>
}

<?=$style?>
-->
</style>
</head>
<body bgcolor="<?=$constant['background-color']?>" text="<?=$constant['text-color']?>" link="<?=$constant['link-color']?>" vlink="<?=$constant['link-color']?>" alink="<?=$constant['link-color']?>" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
<tr>
	<td valign="top" class="text">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td bgcolor="<?=$constant['border-color']?>">
				<table width="100%" border="0" cellpadding="2" cellspacing="1">
				<tr>
					<td bgcolor="<?=$constant['header-background-color']?>" class="headertext" id="book-title">Admbook versi0n <?=$constant['version']?></td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
		<br/>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td bgcolor="<?=$constant['border-color']?>">
				<table width="100%" border="0" cellpadding="2" cellspacing="1">
				<tr>
					<td bgcolor="<?=$constant['header-background-color']?>" align="center" class="headertext"><b>User profile</b></td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
		<br/>
		<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
		<tr>
			<td bgcolor="<?=$constant['border-color']?>">
				<table border="0" cellpadding="0" cellspacing="1" width="100%">
				<tr>
					<td>
						<table border="0" cellpadding="2" cellspacing="0" bgcolor="<?=$constant['message-background-color']?>" width="100%">
<?php
	// name
	if ($currentContent['name'] != "")
	{
?>						<tr>
							<td align="center"><img src="img/name.gif" width="11" height="14" border="0" alt="Name"/></td>
							<td class="messagetext"><b>User name:</b></td>
							<td class="messagetext"><?=$currentContent['name']?></td>
						</tr>
<?php
	}
	// name and email as link <<
	// url >>
	if ($currentContent['url'] != "")
	{
?>						<tr>	
							<td align="center"><img src="img/url.gif" width="18" height="18" border="0" alt="Url"/></td>
							<td class="messagetext"><b>User url:</b></td>
							<td class="messagetext"><a href="<?=$currentContent['url']?>" target="_blank" class="messagelink"><?=$currentContent['url']?></a></td>
						</tr>
<?php
	}
	// url <<
	// icq >>
	if ($currentContent['icq'] != "")
	{
?>						<tr>
							<td><img src="http://online.mirabilis.com/scripts/online.dll?icq=<?=$currentContent['icq']?>&img=5" width="18" height="18" alt="User status"></td>
							<td class="messagetext"><b>Icq:</b></td>
							<td><a href="http://web.icq.com/whitepages/message_me/1,,,00.icq?uin=<?=$currentContent['icq']?>&action=message" target="_blank" class="messagelink"><?=$currentContent['icq']?></td>
						</tr>
<?php
	}
	// icq <<
	// country >>
	if ($currentContent['country'] != "")
	{
?>						<tr>
							<td align="center"><img src="img/sp.gif" width="1" height="1" border="0"/></td>
							<td class="messagetext"><b>Country:</b></td>
							<td class="messagetext" valign="top"><?=$config['country'][$currentContent['country']]?></td>
						</tr>
<?php
	}
	// country <<
	// city >>
	if ($currentContent['city'] != "")
	{
?>						<tr>
							<td align="center"><img src="img/sp.gif" width="1" height="1" border="0"/></td>
							<td class="messagetext"><b>City:</b></td>
							<td class="messagetext" valign="top"><?=$currentContent['city']?></td>
						</tr>
<?php
	}
	// message <<
	// date and time >>
	if ($currentContent['day'] != "" || $currentContent['month'] != "" || $currentContent['year'] != "")
	{
?>						<tr>
							<td align="center"><img src="img/date.gif" width="17" height="18" border="0" alt="Date and Time"/></td>
							<td class="messagetext"><b>Birthday:</b></td>
							<td class="messagetext"><?=($currentContent['day'] != "" ? $config['day'][$currentContent['day']] : "")?> <?=($currentContent['month'] != "" ? $config['month'][$currentContent['month']] : "")?> <?=($currentContent['year'] != "" ? $currentContent['year'] : "")?></td>
						</tr>
<?php
	}
	// date and time <<
	// date and time >>
	if ($currentContent['time'])
	{
?>						<tr>
							<td align="center"><img src="img/date.gif" width="17" height="18" border="0" alt="Date and Time"/></td>
							<td class="messagetext"><b>Regist. Date:</b></td>
							<td class="messagetext"><?=getFullDate($currentContent['time'], $constant['locale']).", ".getTime($currentContent['time'])?></td>
						</tr>
<?php
	}
	// date and time <<
?>
						</table>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td align="right"><img src="img/sp.gif" width="1" height="5" alt=""/></td>
		</tr>
		<tr>
			<td align="right"><input type="button" value="close" onClick="opener.focus();window.close();"/></td>
		</tr>
		</table>
	</td>
<?
	$timer->stop();
?>
</tr>
</table>
<div id="count" style="position:absolute; left:0px; top:0px; visibility: hidden">
<layer visibility=hidden>
<!--hide@address.com COUNTER--><script language="JavaScript"><!--
d=document;a='';a+=';r='+escape(d.referrer)
js=10//--></script><script language="JavaScript1.1"><!--
a+=';j='+navigator.javaEnabled()
js=11//--></script><script language="JavaScript1.2"><!--
s=screen;a+=';s='+s.width+'*'+s.height
a+=';d='+(s.colorDepth?s.colorDepth:s.pixelDepth)
js=12//--></script><script language="JavaScript1.3"><!--
js=13//--></script><script language="JavaScript"><!--
d.write('<img src="http://top.list.ru/counter'+
'?id=308946;js='+js+a+';rand='+Math.random()+
'" height=1 width=1>')
if(js>11)d.write('<'+'!-- ')//--></script><noscript><img
src="http://top.list.ru/counter?js=na;id=308946"
height=1 width=1 alt=""></noscript><script language="JavaScript"><!--
if(js>11)d.write('--'+'>')//--></script><!--/COUNTER-->
</layer>
</div>
<!-- generation time <?=$timer->elapsed()." sec";?> -->
</body>
</html>
Return current item: Admbook