Location: PHPKode > projects > web-cp - Web Hosting Control Panel > webcp/web/personal/userinfo.phps
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" class="tblbg">
	<tr>
		<td>
		<table border="0" cellspacing="1">
			<tr>
				<td colspan="2" class="tbltop">&nbsp;<?=$T[$cp][$url];?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Username'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$personaldata['username'];?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Full Name'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$personaldata['name'];?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['User Root Directory'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=str_replace($cfg['webdir']."/".$personaldata['id'],"",$personaldata['root']);?>/&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Access Level'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$T['userlvl'][$personaldata['level']];?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['User Type'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$T['usertype'][$personaldata['type']];?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['IP Restriction'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?if(!$personaldata['ip_restrict']) echo $T['none']; else echo $personaldata['ip_restrict'];?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Hard Disk Usage'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$personaldata['hd_used'];?> / <?=$personaldata['hd'];?> (<?=(round($personaldata['hd_used'] / $personaldata['hd'] * 100,2));?>%)&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Language'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$T[$personaldata['lang']];?>&nbsp;</td>
			</tr>
			<tr>
			<?
				$aliases = str_replace(" ", ", ", $personaldata['aliases']);
				if (!$aliases)
					$aliases = $T['none'];
			?>
			
				<td class="row1"><b>&nbsp;<?=$T['E-Mail Aliases'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$aliases;?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['E-Mail Options'];?>&nbsp;</b></td>
				<td class="row2">
				<table border="0" cellpadding="0" summary="">
					<tr>
						<td class="row2">&nbsp;<?=$T['Autoresponder'];?>&nbsp;</td>
						<td class="row2">&nbsp;<b><? if ($personaldata['autoreply']) echo $T['on']; else echo $T['off']; ?></b>&nbsp;</td>
					</tr>
					<tr>
						<td class="row2">&nbsp;<?=$T['Forward'];?>&nbsp;</td>
						<td class="row2">&nbsp;<b><? if ($personaldata['forward']) echo $T['on']; else echo $T['off']; ?></b>&nbsp;</td>
					</tr>
					<tr>
						<td class="row2">&nbsp;<?=$T['Catch-All'];?>&nbsp;</td>
						<td class="row2">&nbsp;<b><? if ($personaldata['catchall'] == "true") echo $T['on']; else echo $T['off']; ?></b>&nbsp;</td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Default Page'];?>&nbsp;</b></td>
				<td class="row2">
				<? // check & parse user's default page
					if ($personaldata['favorites']) {
						$tmp = explode(":",$personaldata['favorites']);
						$fav_cp = $T['menu'][$tmp[0]];
						$fav_url = $T[$tmp[0]][$tmp[1]];
				   	}
				   	else {
				  		$fav_cp = $T['none'];
				  		$fav_url = $T['none'];
				   	}
				?>
				<table border="0" cellpadding="0" summary="">
					<tr>
						<td class="row2">&nbsp;<?=$T['Panel'];?>&nbsp;</td>
						<td class="row2">&nbsp;<?=$fav_cp;?>&nbsp;</td>
					</tr>
					<tr>
						<td class="row2">&nbsp;<?=$T['Page'];?>&nbsp;</td>
						<td class="row2">&nbsp;<?=$fav_url;?>&nbsp;</td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
			<?
				unset($skin_name);
				if (file_exists("skin/list")) {
					$i = 0;
					$tmp = file("skin/list");
					while ($tmp[$i]) {
						$tmp_info = split("[[:space:]]+",$tmp[$i]);
						
						if ($tmp_info[0] == $personaldata['skin']) {
							array_shift($tmp_info);
							if (count($tmp_info) > 1)
								$skin_name = implode(" ",$tmp_info);
							else
								$skin_name = $tmp_info[0];
	
							break;
						}
						++$i;
					}
				}
				if (!$skin_name)
					$skin_name = $cfg['defaultskin'];
				?>		
				<td class="row1"><b>&nbsp;<?=$T['Interface Look'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$skin_name;?>&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" class="tblbg">
	<tr>
		<td>
		<table border="0" cellspacing="1">
			<tr>
				<td colspan="3" class="tbltop">&nbsp;<?=$T['Latest Login Attempts'];?>&nbsp;</td>
			</tr>
			<?
			$SQL = "SELECT time, log_msg, extra, remote_ip FROM log WHERE log_msg like 'login %' AND extra = '".$personaldata['username']."' ORDER BY time desc LIMIT 0,5";
			$res = mysql_query($SQL);
			for($i=0; $row=mysql_fetch_array($res); $i++) {
			?>
			<tr>
				<td class="row1"><?=$row["time"];?></td>
				<td class="row1"><?=$row["log_msg"];?></td>
				<td class="row1"><?=$row["remote_ip"];?></td>
			</tr>
			<? } ?>
		</table>
		</td>
	</tr>
</table>
</div>
Return current item: web-cp - Web Hosting Control Panel