]]jkjjgdjffksdkdxmnvbcbcvbvcbbbbbbbbbvcbcbvcbmnmbnwqeqwewqskfgj
במ12[cvbnvbnvcvbcvbcvbvvvccccccccccccccvbcvbcvbnmnmqewv;'
/
home
/
u729855735
/
public_html
/
lystlynk
/
Upload FileeE
HOME
<?php require('inc/db.php'); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $layout = mysqli_real_escape_string($conn, $_POST['layout']); $pay = mysqli_real_escape_string($conn, $_POST['pay']); $name = mysqli_real_escape_string($conn, $_POST['name']); $email = mysqli_real_escape_string($conn, $_POST['email']); $phone = mysqli_real_escape_string($conn, $_POST['phone']); $address = mysqli_real_escape_string($conn, $_POST['address']); if (isset($_FILES['file']) && $_FILES['file']['error'] === UPLOAD_ERR_OK) { $logo = $_FILES['file']['name']; $temp_name = $_FILES['file']['tmp_name']; $file_size = $_FILES['file']['size']; $file_destination = "./realestate_admin/uploads/".$logo; } $pass = mysqli_real_escape_string($conn, $_POST['password']); $sku = rand(001,999999); $date = date('Y-m-d'); if($layout == 'selling'){ $type = 'Agent'; $insert = "INSERT INTO admin(email,phone,psw,type,name,subscription,date,user_mode,sku,address,image) VALUES('$email','$phone','$pass','$type','$name','$pay','$date','$layout','$sku','$address','$logo')"; $run = mysqli_query($conn, $insert); if($run){ move_uploaded_file($temp_name, $file_destination); echo "<script>location.href='payment.php?amount=$pay&&sku=$sku';</script>"; } } elseif($layout == 'both'){ $type = 'Agent'; $insert = "INSERT INTO admin(email,phone,psw,type,name,subscription,date,user_mode,sku,address,image) VALUES('$email','$phone','$pass','$type','$name','$pay','$date','$layout','$sku','$address','$logo')"; $run = mysqli_query($conn, $insert); if($run){ move_uploaded_file($temp_name, $file_destination); echo "<script>location.href='payment.php?amount=$pay&&sku=$sku';</script>"; } } else{ $type = 'User'; $insert = "INSERT INTO admin(email,phone,psw,type,name,subscription,date,user_mode,sku,address,image) VALUES('$email','$phone','$pass','$type','$name','$pay','$date','$layout','$sku','$address','$logo')"; $run = mysqli_query($conn, $insert); if($run){ move_uploaded_file($temp_name, $file_destination); echo "<script>alert('Sign up successfully.');location.href='index.php';</script>"; } else{ echo "<script>alert('Error! something went wrong.');location.href='index.php';</script>"; } } } ?>