Location: PHPKode > projects > Basic Announce > Basic Announce Version 4.0/system/user_home.php
<?php
################################################################################
##              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 #
## --------------------------------------------------------------------------- #
##  ApPHP AdminPanel Pro                                                       #
##  Developed by:  ApPHP <hide@address.com>                                      #
##  License:       GNU LGPL v.3                                                #
##  Site:          http://www.apphp.com/php-adminpanel/                        #
##  Copyright:     ApPHP AdminPanel (c) 2006-2011. All rights reserved.        #
##                                                                             #
################################################################################

    // Initialize the session.
    session_start();
    
    require_once("../inc/classes/session.class.php");	
    require_once("../inc/checkUserPagePermissions.php");    
    
    require_once("../inc/config.inc.php");
    require_once("../inc/settings.inc.php");
	require_once("../inc/functions.inc.php");
	require_once("../inc/languages/".$SETTINGS['site_language'].".php");

	if(!module_istalled('users')) redirect_to("access_denied.php");
 ///   if(!page_access_allowed($_SERVER['SCRIPT_NAME'])) redirect_to("access_denied.php");
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
	<title><?php echo $SETTINGS['site_name']; ?> :: <?php echo lang('user_panel_panel'); ?></title>
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    <!-- CSS style files -->
    <link href="../styles/<?php echo $SETTINGS['css_style'];?>/style.css" type=text/css rel=stylesheet>
    <link href="../styles/<?php echo $SETTINGS['css_style'];?>/menu.css" type=text/css rel=stylesheet>
</head>
<body style="background:#ffffff; padding:0px 2px; margin:0px;" dir="<?php echo $SETTINGS['language_dir'];?>">
	<table width='100%'>
	<tr>
		<td width='60px' align='".(($SETTINGS['language_dir'] == "rtl") ? "right" : "left")."' valign='top' style='border:0px solid #efefef; padding:0px;'>
            <table width='100%' border='0' cellspacing='0' cellpadding='0'>
            <tr>
                <td><div class='section_title_<?php echo (($SETTINGS['language_dir'] == "rtl") ? "right" : "left");?>'></div></td>
                <td width='100%' align='<?php echo (($SETTINGS['language_dir'] == "rtl") ? "right" : "left");?>'><div class='section_title'><div class='section_title_text'><?php echo lang('general'); ?></div></div></td>  
                <td><div class='section_title_<?php echo (($SETTINGS['language_dir'] == "rtl") ? "left" : "right");?>'></div></td>
            </tr>
            </table>            
			<table>
			<tr>
				<td width='100px' onmouseover='this.style.borderColor="#ababab"' onmouseout='this.style.borderColor="#dedede"' style='border:1px solid #dedede; padding:4px;' nowrap align='center' valign='top'>
					<a href='user_home.php' title='<?php echo lang('home'); ?>'><img src='../images/icons/home.png' title='<?php echo lang('home'); ?>' width='48px' height='48px' alt='' /></a><br />
					<a href='user_home.php' style='font-size:12px;'><?php echo lang('home'); ?></a>
				</td>
				<td width='100px' onmouseover='this.style.borderColor="#ababab"' onmouseout='this.style.borderColor="#dedede"' style='border:1px solid #dedede; padding:4px;' nowrap align='center' valign='top'>
					<a href='user_edit_account.php' title='Edit Account'><img src='../images/icons/edit_account.png' title='Edit Account' width='48px' height='48px' alt='' /></a><br />
					<a href='user_edit_account.php' style='font-size:12px;'><?php echo lang('edit_account'); ?></a>
				</td>
			</tr>
			</table>
		</td>
		<td nowrap width='1%'></td>
		<td width='39%' style='border:0px solid #efefef; padding:0px;'>
			<table width='100%' align='right' style='border:1px solid #c1c13a; background-color:#fffff1;' border='0' cellspacing='0' cellpadding='7'>
			<tr>
				<td colspan='2' align="center"><span class="welcome"><?php echo $_SESSION['adm_username']; ?>
					<br><?php echo lang('welcome_to'); ?> <?php echo $SETTINGS['panel_name']; ?>!</span>
					<br>
					<?php echo date("M d, Y"); ?><br />
				</td>
			</tr>
			<tr><td colspan="2" align="left"><b><?php echo lang('account_summary'); ?>:</b></td></tr>
			<tr>
				<td align="left" width="100px"><?php echo lang('last_login'); ?></td>
				<td align='right' width="130px">
					<?php
						$last_login = isset($_SESSION['last_login']) ? $_SESSION['last_login'] : ""; 
						echo my_date_format($last_login);				
					?>					
				</td>
			</tr>
			<tr>
				<td align="left"><?php echo lang('logins_count'); ?></td>
				<td align='right'>
					<?php
						$logins = isset($_SESSION['logins_count']) ? $_SESSION['logins_count'] : "0"; 
						echo $logins;
					?>
				</td>
			</tr>
			</table>        		
		</td>
	</tr>
	</table>
<br />
</body>
</html>
Return current item: Basic Announce