Pengembangan sistem informasi penggajian (studi kasus: SMK al-Firdaus Jakarta)
header('location: '.ADMIN_URL.'home.php?info=success'); exit;
} else{
header('location:
'.ADMIN_URL.'login/index.php?action='.$status.'&err=invalid'); exit;
} break; case 'logout' :
$logoutResult = $tlPegawai->logout(); if($logoutResult == TRUE){
header('location: '.ADMIN_URL.'login/index.php?action=logout'); }
break; }
//ob_end_flush(); ?>
home.php
<?php // $Id: home.php 194 2011-05-01 11:02:11Z afrialdi.syahputra $ ?> <?php
include_once("../init.auth.inc.php");
$pegawaiData = $tlPegawai->getPegawaiById( $_SESSION['IDPEGAWAI'] );
$config->show_header(); ?>
<div id="content" style="padding:0px 10px;"> <div class="content-detail">
<div class="content-title home" style="padding-left: 20px;"> <?php echo $str['welcome'];?>, <?php echo
$_SESSION['NAMAPEGAWAI']; ?></div> <br/>
<?php echo $str['home_page']; ?>
<div class="clear"> </div>
<div class="content-title"><?php echo $str['history']?></div>
<?php echo $str['username']; ?>: <?php echo $pegawaiData[0]['username']?><br/>
<?php echo $str['last_login']; ?>: <?php echo
$config->toIndonesianFullDate(strtotime($pegawaiData[0]['loginTerakhir']))?><br />
<?php echo $str['last_IP']; ?>: <?php echo $pegawaiData[0]['IP']?> </div>
</div> <?php
$config->show_footer(); ?>