PATH: /home/hwyuvbry/public_html/function
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 deposit.php
↓
X
📄 deposit_asli.php
↓
X
📄 deposit_qris.php
↓
X
📄 edit-user.php
↓
X
📄 error_log
↓
X
📄 index.php
↓
X
📄 konfirmasi.php
↓
X
📄 password.php
↓
X
📄 post-chat.php
↓
X
📄 post-reg.php
↓
X
📄 reset-proses.php
↓
X
📄 session.php
↓
X
📄 step-1.php
↓
X
📄 taruhan4d.php
↓
X
📄 taruhancb.php
↓
X
📄 taruhancb2d.php
↓
X
📄 taruhancj.php
↓
X
📄 taruhancn.php
↓
X
📄 taruhandasar.php
↓
X
📄 taruhankembang.php
↓
X
📄 taruhanshio.php
↓
X
📄 taruhansilang.php
↓
X
📄 taruhantengah.php
↓
X
📄 transferBalanceBack.php
↓
X
📄 upload.php
↓
X
📄 withdraw.php
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: upload.php
<?php ob_start(); session_start(); date_default_timezone_set("Asia/Jakarta"); include('../config/koneksi.php'); $sql_0 = mysqli_query($conn,"SELECT * FROM `tb_seo` WHERE cuid = 1") or die(mysqli_error()); $s0 = mysqli_fetch_array($sql_0); $urlweb = $s0['urlweb']; $urlwebs = $s0['urlweb']; $date = date('Y-m-d H:i:s'); $ipaddress = $_GET['ipaddress']; $sessionid = $_GET['sessionid']; $upload_dir = "../upload/"; $valid_extensions = array('jpeg', 'jpg', 'png'); $img = $_FILES['file']['name']; $tmp = $_FILES['file']['tmp_name']; $ext = strtolower(pathinfo($img, PATHINFO_EXTENSION)); $final_image = rand(1000,1000000).$img; $gambarnya = '<img src="'.$urlweb.'/upload/'.$final_image.'" style="width:100%; height: auto;"">'; if(in_array($ext, $valid_extensions)){ move_uploaded_file($_FILES['file']['tmp_name'], $upload_dir . $final_image); $cekChat = mysqli_query($conn,"SELECT * FROM `tb_chat` WHERE ipaddress = '$ipaddress' AND sessionid = '$sessionid'") or die(mysqli_error()); $cc = mysqli_fetch_array($cekChat); $userid = $cc['userid']; $insert_chat = mysqli_query($conn,"INSERT INTO `tb_chat_respon` (`sessionid`, `ipaddress`, `userid`, `content`, `jenis`, `created_date`, `status`) VALUES ('$sessionid','$ipaddress', '$userid','$gambarnya', 1,'$date', 0)") or die(mysqli_error()); } ?>
SIMPAN PERUBAHAN