OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
new_cream
/
arvind-assets
/
arvind-php
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/12/2025 10:35:45 AM
rwxr-xr-x
📄
11-02-25navbar.php
23.94 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
29-01-2025function.php
24.17 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
PHPMailer
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
aditya_function.php
23.93 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
arvind_go_backbar.php
3.01 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
backfunction.php
24.17 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
backup-navbar.php
27.29 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
backupnavbar.php
21.23 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
bemerge_stream.php
3.75 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
blockAccount.php
2.23 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
bnavbar.php
35.82 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
bottom_navbar.php
6.18 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
bvalidate.logged.php
1.06 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
common.js
46.89 KB
05/12/2025 10:35:26 AM
rw-r--r--
📄
config.php
9.37 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
db_config.php
3.43 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
db_connect.php
293 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
db_gallery.php
294 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
delete_account.php
3.5 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
edit_post.php
2.23 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
emerge_stream.php
4.67 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
event_scrollbar.php
4.63 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
footer.php
1.25 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
function.php
28.22 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
go_backbar.php
2.27 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
handler.php
3.51 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
indexFooter.php
785 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
mail.php
2.67 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
navbar.php
22.77 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
process_data.php
3.87 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
readert_validate.logged.php
481 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
report_account.php
1.42 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
report_stream.php
2.08 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
savePost.php
2.38 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
sidebar.php
13.74 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
siginupProcess.php
5.24 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
simplepie
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
social_navbar.php
19.24 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
stream_post_handler.php
3.68 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
test_navbar.php
7.91 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
test_social_navbar.php
18.83 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
validate.logged-status.php
424 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
validate.logged.php
1.31 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
vvalidate.logged.php
1.01 KB
05/19/2025 10:07:21 AM
rw-r--r--
Editing: report_account.php
Close
<?php // Assuming you have a database connection include 'validate.logged.php'; include 'db_config.php'; include 'mail.php'; header('Content-Type: application/json'); // Get the data from the AJAX request $guserid = $_POST['guserId']; $accountId = $_POST['accountId']; $reason = $_POST['reason']; $reportName = $_POST['username']; function report_account_mail($toName, $toEmail, $reason,$reportName) { $emailSubject = "Content Abuse Account Report"; $emailBody = " Dear $toName ,<br><br> You reported an account:<b>$reportName</b> with following reason:$reason. <br> We will examine this and take necessary action.<br><br> Thank You<br> Knobly Cream "; sendEmail($toName, $toEmail, '', $emailSubject, $emailBody); } report_account_mail($gUserName, $gUserEmail, $reason,$reportName); // Prepare an SQL query to insert the report into the database $sql = "INSERT INTO report_acc (userId, reportId, reason) VALUES (?, ?, ?)"; // Prepare statement $stmt = $creamdb->prepare($sql); // Bind parameters to the statement $stmt->bind_param("iis", $guserid, $accountId, $reason); // Execute the statement if ($stmt->execute()) { echo json_encode(["success" => true]); } else { echo json_encode(["success" => false, "error" => "Failed to submit the report."]); } // Close the statement $stmt->close(); ?>