One Hat Cyber Team
Your IP :
216.73.216.152
Server IP :
27.254.111.200
Server :
Linux wh-sh59.csloxinfo.com 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64
Server Software :
Apache
PHP Version :
5.5.38
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
vhosts
/
oakwine.co.th
/
httpdocs
/
controller
/
Edit File:
banksController.php
<?php SYS::DOMAIN("Banks"); $action = isset($_GET["action"]) ? $_GET["action"] : null ; switch ($action) { case "save" : $banksInstance = new Banks(); $excute = $banksInstance->save($_POST); if($excute) { $banksInstance->lastRow(); header("location:?page=Banks/list"); } break; case "update" : $banksInstance = new Banks(); $banksInstance->get($_GET["id"]); $excute = $banksInstance->update($_POST); if($excute) { header("location:?page=Banks/list"); } break; case "delete" : $banksInstance = new Banks(); $banksInstance->get($_GET["id"]); $excute = $banksInstance->delete(); if($excute) { header("location:?page=Banks/list"); } break; case "des" : $strFileName = CREATELINK::VIEW("Banks/".$_POST['fileName']); $objFopen = fopen($strFileName, 'w+'); fwrite($objFopen, $_POST['description']); fclose($objFopen); chmod($strFileName, 0777); echo "<script>alert('บันทึกสำเร็จ');window.location.href = 'admin.php?page=Banks/list';</script>"; break; case "delivery" : $strFileName = CREATELINK::VIEW("Delivery/".$_POST['fileName']); $objFopen = fopen($strFileName, 'w+'); fwrite($objFopen, $_POST['description']); fclose($objFopen); // chmod($strFileName, 0777); echo "<script>alert('บันทึกสำเร็จ');window.location.href = 'admin.php?page=Delivery/detail';</script>"; break; case "localMap" : $strFileName = CREATELINK::VIEW("ContactUs/".$_POST['fileName']); $objFopen = fopen($strFileName, 'w+'); $strText = ""; if ($_POST['fileName']=='localMap'){ $strText = "<?php $"."map = array('lat'=>'".$_POST['lat']."', 'lng'=>'".$_POST['lng']."', 'title'=>'".$_POST['title']."', 'dis'=>'".$_POST['dis']."', 'emailReader'=>'".$_POST['emailReader']."');?>"; }else{ $strText = $_POST['description']; } fwrite($objFopen, $strText); fclose($objFopen); chmod($strFileName, 0777); echo "<script>alert('บันทึกสำเร็จ');window.location.href = 'admin.php?page=ContactUs/form';</script>"; break; } ?>
Simpan