Пример #1
0
<body>	
	<div id="wrap">
		<header id="header">
			<h1><a href="index.php"><?php 
echo $config['sitename'];
?>
</a></h1>
			
			<div id="user_wrapper">
				<?php 
if ($users->client->is_logged) {
    ?>
				<div id="user_left">
					<div class="avatar">
						<img src="<?php 
    echo getav($_SESSION['uid']);
    ?>
" alt="" />
					</div>
				</div>
				<div id="user_right">
					<b><a href="profile.php"><?php 
    echo $_SESSION['username'];
    ?>
</a></b> | <a href="account.php">account</a> | <a href="user_logout.php">logout</a>
				</div>
				<div class="clear"></div>
				<?php 
} else {
    ?>
				<a href="user_login.php">log in</a> or <a href="user_register.php">sign up</a>
Пример #2
0
}
$profile = db_query_single("SELECT users.*, groups.name AS group_name FROM users LEFT JOIN groups ON groups.id = users.group WHERE users.id = '{$id}'");
// bad id? non-admin? don't go through! oh, and make sure the profile exists!
if ($id && $profile) {
    $page->setType('account');
    $page->setTitle($profile['username'] . '\'s account');
    $subpage = $_GET['p'];
    ?>

<div class="imgtitle imgtitle-32">
	<img class="image" src="<?php 
    echo $location['images'];
    ?>
/titles/account.png" alt="" />
	<img src="<?php 
    echo getav($id);
    ?>
" style="position: absolute; top: 16px; left: 16px; width: 16px; height: 16px;" alt="" />
	<div class="text">
		<h1><?php 
    echo $profile['username'];
    ?>
's account</h1>
	</div>
	<div class="clear"></div>
</div>

<div class="tabs">
	<a href="account.php"<?php 
    echo !$subpage ? ' class="sel"' : '';
    ?>