WebShell: t.me/oghbnz


Current Path : /home/sreemitragroup/public_html/admin/
Upload File :
Current File : /home/sreemitragroup/public_html/admin/logs.php

<?php require("header.php"); ?>

<?php require("sub_header.php"); ?>





<div class="main">

<div class="container"> 

<div class="row"> 

<div class="span12"> 

<div class="widget stacked"> 

<div class="widget-header" align="center">

      				<i class=""></i><!-- can keep icon of form -->

      				<h3>Login Details of Users</h3>

  				</div> <!-- /widget-header -->

  <div class="widget-content">





<section id="tables">



<table  class="table table-bordered table-striped table-highlight">

<thead>

<tr>

<th>Id</th>

<th>Name</th>

<th>IP-Address</th>

<th>Log-In date and time</th>

</tr>

</thead>

<?php require("db_conn.php"); ?>

<?php

@$page=$_GET['page'];



if($page == "" || $page == "1" ){

	$page1=0;

}else{

	$page1=($page*20)-20;

}



$pages=20;

//$r_index=0;

$records1 =$conn->query("SELECT * FROM logs");

$row1 = $records1->rowCount();

if($_GET['page'] != ""){

$no=(($page-1)*6)+1;

}else{

	$no=1;

}

$records = $conn->query("SELECT * FROM logs ORDER BY id DESC LIMIT $page1,$pages");

while($phani=$records->fetch(PDO::FETCH_ASSOC)){ ?>

<tbody>

<tr>

<td><?php echo $no; ?></td>

<td><?php echo $phani['user'] ?></td>

<td><?php echo $phani['ipaddr'] ?></td>

<td><?php echo $phani['login_time'] ?></td>



</tr>

</tbody>

<?php $no++;

}

?>



</table>

		<section id="paginations">

			<div class="pagination">

		  		<ul>

<?php



$a=ceil($row1/$pages);



for($b=1; $b<=$a; $b++){

	?>



		  			<li class="active">

					<a href="logs.php?page=<?php echo $b." "; ?>">

						<?php echo $b." "; ?></a>

				</li>

				

		<?php

}



?>

</ul>

		</div>

		</section>



</section>



	</div> <!-- /widget-content -->

	</div> <!-- /widget stacked -->

	</div> <!-- /span12 -->

	</div> <!-- /row -->

	</div> <!-- /container -->

	</div> <!-- /main -->



<?php include_once("foter.php"); ?>