OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
assets
/
php
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/26/2025 04:16:41 AM
rwxr-xr-x
📁
PHPMailer
-
03/26/2025 04:16:41 AM
rwxr-xr-x
📄
backfunction.php
23.84 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
blockAccount.php
2.23 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
bottom_navbar.php
5.67 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
common.js
46.89 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
config.php
9.43 KB
03/26/2025 06:28:45 AM
rw-r--r--
📄
db_config.php
3.42 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
db_connect.php
296 bytes
03/26/2025 06:29:48 AM
rw-r--r--
📄
db_gallery.php
294 bytes
03/26/2025 04:07:41 AM
rw-r--r--
📄
delete_account.php
3.5 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
edit_post.php
2.23 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
event_scrollbar.php
4.63 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
footer.php
1.12 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
function.php
27.94 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
go_backbar.php
2.27 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
handler.php
3.51 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
indexFooter.php
1.02 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
mail.php
2.67 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
navbar.php
21.77 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
process_data.php
3.87 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
readert_validate.logged.php
481 bytes
03/26/2025 04:07:41 AM
rw-r--r--
📄
report_account.php
1.42 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
report_stream.php
2.08 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
savePost.php
2.38 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
sidebar.php
18.83 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
siginupProcess.php
5.24 KB
03/26/2025 04:07:41 AM
rw-r--r--
📁
simplepie
-
03/26/2025 04:21:01 AM
rwxr-xr-x
📄
social_navbar.php
24.82 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
stream_post_handler.php
3.68 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
validate.logged-status.php
424 bytes
03/26/2025 04:07:41 AM
rw-r--r--
📄
validate.logged.php
1.09 KB
03/26/2025 04:07:41 AM
rw-r--r--
📄
vvalidate.logged.php
1.01 KB
03/26/2025 04:07:41 AM
rw-r--r--
Editing: edit_post.php
Close
<?php header('Content-Type: application/json'); include 'db_config.php'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_POST['action'] == 'edit') { // edit_post.php if (isset($_POST['post_id']) && isset($_POST['content'])) { $post_id = $_POST['post_id']; $new_content = trim($_POST['content']); // Get the current timestamp for 'editedOn' $editedOn = date('Y-m-d H:i:s'); // Get current time // Prepare the SQL statement to update the post content and editedOn timestamp $stmt = $readerdb->prepare("UPDATE reader_stream SET chat = ?, editedOn = ? WHERE id = ?"); $stmt->bind_param("ssi", $new_content, $editedOn, $post_id); // "ssi" means string, string, integer if ($stmt->execute()) { $response = [ 'status' => 'success', 'message' => 'Post updated successfully.' ]; } else { $response = [ 'status' => 'error', 'message' => 'Error: ' . $stmt->error ]; } $stmt->close(); echo json_encode($response); } } if ($_POST['action'] == 'delete') { // delete_post.php if (isset($_POST['post_id'])) { $post_id = $_POST['post_id']; $deletedOn = date('Y-m-d H:i:s'); // Get current time for deletedOn // Prepare the SQL statement to set the deleteFlag and the deletedOn timestamp $stmt = $readerdb->prepare("UPDATE reader_stream SET deleteFlag = 1, deletedOn = ? WHERE id = ?"); $stmt->bind_param("si", $deletedOn, $post_id); // "si" means string, integer if ($stmt->execute()) { $response = [ 'status' => 'success', 'message' => 'Post deleted successfully.' ]; } else { $response = [ 'status' => 'error', 'message' => 'Error: ' . $stmt->error ]; } $stmt->close(); echo json_encode($response); } } } ?>