OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2025 11:18:49 AM
rwxr-xr-x
📄
.browserslistrc
208 bytes
02/11/2020 10:49:08 AM
rw-rw-r--
📄
.gitignore
42 bytes
02/11/2020 10:49:08 AM
rw-rw-r--
📄
.htaccess
803 bytes
07/18/2023 08:55:06 AM
rw-r--r--
📄
.htaccess.swp
12 KB
08/13/2021 06:21:55 AM
rw-r--r--
📄
.travis.yml
199 bytes
02/11/2020 10:49:16 AM
rw-rw-r--
📁
.well-known
-
11/28/2024 11:03:35 AM
rwxr-xr-x
📁
API
-
08/07/2024 07:35:13 AM
rwxr-xr-x
📁
_backup
-
06/22/2024 04:05:28 AM
rwxr-xr-x
📄
about.html
3.05 KB
06/15/2021 04:56:35 AM
rw-r--r--
📄
activate.php
2.56 KB
01/10/2021 11:01:39 AM
rw-r--r--
📁
admin
-
11/12/2024 08:53:01 AM
rwxr-xr-x
📄
article.php
17.24 KB
08/08/2024 12:15:43 PM
rw-r--r--
📁
arvindfacebook
-
08/14/2024 11:07:25 AM
rwxr-xr-x
📁
audio
-
04/16/2025 05:06:46 AM
rwxrwxrwx
📁
aws-ses
-
11/11/2024 12:41:09 PM
rwxr-xr-x
📄
back-dashboard.php
8.33 KB
07/25/2024 04:55:30 PM
rw-r--r--
📄
barticle.php
16.58 KB
07/22/2024 11:38:48 AM
rw-r--r--
📄
bin_article.php
6.62 KB
07/10/2024 07:41:53 AM
rw-r--r--
📄
bnewsletter.php
1.33 KB
08/08/2024 11:26:41 AM
rw-r--r--
📄
bview.php
14.07 KB
07/22/2024 07:30:50 AM
rw-r--r--
📁
clients
-
10/30/2024 11:05:12 AM
rwxr-xr-x
📄
contact.html
2.79 KB
06/15/2021 04:53:32 AM
rw-r--r--
📁
conversations
-
07/10/2024 06:53:08 AM
rwxr-xr-x
📁
covid
-
04/29/2021 04:36:04 PM
rwxr-xr-x
📁
creamapi
-
10/22/2024 10:53:04 AM
rwxrwxrwx
📄
dashboard.php
9.94 KB
04/16/2025 04:53:21 AM
rw-r--r--
📁
data
-
08/22/2020 09:10:30 AM
rwxrwxrwx
📄
down.html
1.23 KB
06/08/2021 03:26:16 PM
rw-r--r--
📁
downloads
-
11/10/2024 09:51:33 AM
rwxrwxrwx
📁
eSamudaay
-
10/10/2024 10:20:39 AM
rwxr-xr-x
📁
facebook
-
10/14/2024 07:24:26 AM
rwxr-xr-x
📄
fb_access.php
855 bytes
05/04/2021 04:21:24 AM
rw-r--r--
📁
galaxy
-
08/26/2024 06:22:21 AM
rwxr-xr-x
📄
gen2_1.php
45.17 KB
06/18/2024 09:16:17 AM
rw-r--r--
📁
genai
-
09/17/2024 07:46:25 AM
rwxr-xr-x
📄
geo_location.php
3.69 KB
08/07/2024 10:52:37 AM
rw-r--r--
📁
grfx
-
08/22/2020 01:22:42 PM
rwxr-xr-x
📁
groupchat
-
08/31/2024 11:08:59 AM
rwxr-xr-x
📁
hps
-
10/28/2024 10:38:34 AM
rwxr-xr-x
📁
img
-
09/16/2024 11:54:26 AM
rwxrwxrwx
📁
inc
-
03/04/2025 03:52:11 AM
rwxr-xr-x
📄
index.html
21.27 KB
10/09/2024 08:44:24 AM
rw-r--r--
📄
info.php
14 bytes
10/02/2020 04:48:53 AM
rw-r--r--
📁
knaadu
-
01/27/2024 09:01:23 AM
rwxr-xr-x
📁
knoblyExpressLandingPage
-
08/21/2024 10:01:16 AM
rwxr-xr-x
📁
live
-
03/11/2022 08:19:30 AM
rwxr-xr-x
📁
mailer_images
-
03/01/2023 03:50:20 AM
rwxr-xr-x
📁
mhd
-
09/05/2024 08:18:56 AM
rwxr-xr-x
📄
more.php
7.36 KB
06/25/2021 02:14:38 PM
rw-r--r--
📁
newgalaxy
-
11/22/2024 06:02:02 AM
rwxr-xr-x
📁
newsapi
-
06/19/2024 06:43:29 AM
rwxr-xr-x
📄
newsletter.php
1.33 KB
08/08/2024 12:14:17 PM
rw-r--r--
📁
oauth
-
01/26/2024 03:40:40 PM
rwxr-xr-x
📄
old1dashboard.php
8.4 KB
07/02/2024 11:18:03 AM
rw-r--r--
📄
olddashboard.php
11.58 KB
07/26/2024 06:11:34 AM
rw-r--r--
📁
postarticle
-
03/15/2024 03:05:03 AM
rwxrwxrwx
📄
privacy.html
9.99 KB
06/15/2021 04:53:16 AM
rw-r--r--
📁
process
-
03/04/2025 03:53:29 AM
rwxr-xr-x
📁
reeliv
-
09/04/2024 11:00:16 AM
rwxr-xr-x
📄
refund.html
7.34 KB
06/15/2021 04:53:16 AM
rw-r--r--
📄
reset.html
3.01 KB
06/15/2021 04:53:17 AM
rw-r--r--
📁
sendy
-
11/18/2021 09:43:15 AM
rwxr-xr-x
📄
showcase.php
7.93 KB
02/16/2024 04:22:28 AM
rw-r--r--
📄
signup.html
8.08 KB
07/05/2021 07:28:05 AM
rw-r--r--
📁
social_media
-
10/16/2024 12:36:51 PM
rwxr-xr-x
📄
splash.html
1.11 KB
01/10/2021 12:49:20 PM
rw-r--r--
📄
test.email.php
2.5 KB
06/13/2024 06:52:38 AM
rw-r--r--
📄
test.php
969 bytes
02/21/2023 04:35:32 AM
rw-r--r--
📁
testing
-
10/10/2024 05:27:49 AM
rwxr-xr-x
📁
texttovoice
-
07/16/2024 06:14:42 AM
rwxr-xr-x
📄
usage.html
30.88 KB
06/15/2021 04:53:17 AM
rw-r--r--
📁
venv
-
05/09/2024 06:58:41 AM
rwxr-xr-x
📁
videoAI
-
09/16/2024 01:25:53 PM
rwxr-xr-x
📄
view.php
12.44 KB
11/13/2024 03:42:52 AM
rw-r--r--
📁
zaws-ses
-
10/23/2024 05:53:49 AM
rwxr-xr-x
📁
znew1aws-ses
-
08/16/2024 08:24:03 AM
rwxr-xr-x
📄
zview.php
16.09 KB
07/22/2024 10:53:51 AM
rw-r--r--
📁
zzaws-ses
-
10/04/2024 04:34:42 AM
rwxr-xr-x
Editing: article.php
Close
<!DOCTYPE html> <? include 'inc/validate.logged.php'; include 'inc/config.php'; include 'conversations/functions.php'; // db_connect.php // $servername1 = "localhost"; // $username1 = "root"; // $password1 = ""; // $dbname1 = "cream"; // $conn1 = new mysqli($servername1, $username1, $password1, $dbname1); // // Check connection // if ($conn1->connect_error) { // die("Connection failed: " . $conn1->connect_error); // } // Fetch article content from the database based on the article ID passed through GET parameter $articleId = isset($_GET['article_id']) ? $_GET['article_id'] : null; if ($articleId) { $sql = "SELECT * FROM user_collection WHERE id = $articleId"; $result = mysqli_query($db, $sql); if ($result && mysqli_num_rows($result) > 0) { $article = mysqli_fetch_assoc($result); } else { // Handle article not found } } else { // Handle missing article ID } $user_id = $_SESSION['userId']; $chat = []; $user_name = $_SESSION['userName']; $ip = getenv('HTTP_CLIENT_IP') ?: getenv('HTTP_X_FORWARDED_FOR') ?: getenv('HTTP_X_FORWARDED') ?: getenv('HTTP_FORWARDED_FOR') ?: getenv('HTTP_FORWARDED') ?: getenv('REMOTE_ADDR'); $response = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $ip)); if ($response === false) { $visitCity = ''; $visitCountry = ''; } else { $visitCity = $response['geoplugin_city']; $visitCountry = $response['geoplugin_countryName']; } $sql = "INSERT INTO metrics(article_id,ip,visit_city,visit_country,date_visited,category) VALUES($articleId,'$ip','$visitCity','$visitCountry',Now(), 'Article')"; mysqli_query($db, $sql); $chat = fetch_messages($db, $articleId); ?> <head> <title>Knobly Cream: Create • Reach • Measure</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css" /> <link rel="stylesheet" href="inc/fontawesome/css/all.min.css" /> <link rel="stylesheet" href="inc/magnific-popup.css" /> <link rel="stylesheet" href="inc/style.css" /> <link rel="icon" type="image/x-icon" href="/img/logo.ico"> <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script> <script src="https://cdn.tiny.cloud/1/u5oz235qw5jiqww4udm90ocp9zg2rncblqo2ch0ym3twjgyt/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script> <script src="https://js.zohostatic.com/books/zfwidgets/assets/js/zf-widget.js"></script> <script src="inc/jquery.magnific-popup.min.js"></script> <script src="inc/common.js"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <style> .conversations { overflow-y: scroll; scrollbar-width: none; /* For Firefox */ -ms-overflow-style: none; /* For Internet Explorer and Edge */ margin-bottom: 20px; } /* Hide scrollbar for WebKit (Safari, Chrome, etc.) */ .conversations::-webkit-scrollbar { display: none; } .comment-section { margin-top: 40px; } .comment-form { margin-bottom: 20px; } .comment-form textarea { width: 100%; height: 100px; margin-bottom: 10px; } /* .comment { width: fit-content; margin-bottom: 20px; padding: 10px 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); border-radius: 5px; } */ .comment { max-width: 88%; width: fit-content; margin: 10px; /* padding: 10px; */ background-color: #f0f0f0; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); font-family: Arial, sans-serif; color: #333; align-self: flex-start; padding: 14px 14px; margin-block: 12px; border-radius: 5px; } .comment .text { font-size: 14px; font-weight: 300; color: #333; word-wrap: break-word; } .sendername { font-weight: bold; font-size: 12px; color: #555; } .datewithtime { font-size: 11px; color: #777; margin-top: 1px; } .comment .author { font-weight: bold; font-size: 12px; color: #555; } .conversation-form { display: flex; position: fixed; bottom: 5px; width: 100%; column-gap: 15px; background-color: white; justify-content: left; margin: 10px 0px; padding-bottom: 30px; } .comment-text { border-radius: 6px; padding: 5px 10px; width: 80%; height: 40px; } .conversation-btn { border-radius: 5px; height: fit-content; padding: 5px 10px; } .author span { padding-left: 10px; } #footer { position: fixed; bottom: 0; width: 100%; } #comments-section { padding: 0 15px; min-height: fit-content; position: relative; bottom: 31px; margin-bottom: 20px; } /* Default styles */ .comments-section { max-width: 100%; /* Ensures the comments section is fluid */ margin: 0 auto; padding: 0 15px; /* Adjust as needed */ } /* Responsive adjustments */ @media screen and (max-width: 576px) { .whole-content { padding: 20px 20px; } /* Small devices (phones, 576px and up) */ .comments-section .col-md-6 { flex: 0 0 50%; /* Two columns per row */ max-width: 100%; } #comments-section { padding: 0 0px; min-height: fit-content; position: relative; bottom: 40px !important; margin-bottom: 20px; } .comment .author { font-weight: lighter; font-size: 12px; } .conversation-form { min-width: 100px; width: 84%; margin: 10px 34px; } } @media screen and (min-width: 768px) { .whole-content, .conversation-form { padding: 13px 30px; bottom: 20px; } /* Medium devices (tablets, 768px and up) */ .comments-section .col-md-6 { flex: 0 0 50%; /* Two columns per row */ max-width: 100%; margin: 0px !important; } #comments-section { /* padding: 0 15px; */ min-height: fit-content; position: relative; bottom: 45px; margin-bottom: 20px; } /* .conversation-form { min-width: 100px; width: 318px; margin: 10px 34px; }*/ .conversation-form { min-width: 100px; width: 100%; /* margin: 10px 34px; */ } } @media screen and (min-width: 992px) { .whole-content, .conversation-form { padding: 13px 40px; } /* Large devices (desktops, 992px and up) */ .comments-section .col-md-6 { flex: 0 0 33.333%; max-width: 33.333%; } .comment .author { font-weight: lighter; font-size: 12px; } #comments-section { min-height: fit-content; position: relative; bottom: 45px; margin-bottom: 20px; } } @media screen and (min-width: 1200px) { .whole-content, .conversation-form { padding: 13px 250px; } /* Extra large devices (large desktops, 1200px and up) */ .comments-section .col-md-6 { flex: 0 0 25%; /* Four columns per row */ max-width: 25%; } #comments-section { min-height: fit-content; position: relative; bottom: 45px; margin-bottom: 20px; } } @media screen and (min-width: 2060px) { .whole-content, .conversation-form { padding: 30px 270px; } /* Screens up to 2560px width */ .comments-section .col-md-6 { flex: 0 0 20%; /* Five columns per row */ max-width: 20%; } #comments-section { min-height: fit-content; position: relative; bottom: 45px; margin-bottom: 20px; } } .news-content iframe { width: 100%; /* Set the width to 100% of its container */ height: 40%; /* Initial height set to 0 (will be determined by padding-bottom) */ position: relative; /* Set positioning context */ } .news-content iframe[src*="youtube.com"] { height: auto; /* Override height to auto to ensure responsiveness */ } @media screen and (min-width:720px) { .news-content iframe[src*="youtube.com"] { height: 400px; /* Override height to auto to ensure responsiveness */ } } </style> </head> <body class="sb-nav-fixed"> <nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark"> <a class="navbar-brand" href="dashboard.php"><img src="grfx/logo.png" width="120"></a> <div class="navbar-nav ml-auto"> <div class="navbar-nav text-light" style="margin-top:6px;margin-right:20px"><?= $gUserName; ?></div> <div class="navbar-nav text-light" style="margin-top:6px;margin-right:20px"><? if ($gUserPlan == 1) { ?>Pro<? } else { ?>Free<? } ?></div> <!-- <div class="navbar-nav text-light cursorH" style="margin-top:10px;margin-right:10px" onclick="goSection('utils','','showNotifications')"><i class="fas fa-bell"></i></div> --> <ul class="navbar-nav ml-md-0"> <!-- <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" id="userDropdown" href="#" role="button" data-toggle="dropdown"><i class="fas fa-user fa-fw"></i></a> <div class="dropdown-menu dropdown-menu-right"> <a class="dropdown-item" href="javascript:goSection('account')">My Account</a> <a class="dropdown-item" href="javascript:goSection('settings')">My Settings</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="process/logout.php" onclick="removeSignedIn()">Logout</a> </div> </li> --> </ul> </div> </nav> <div id="layoutSidenav" style="display: block;"> <div class="whole-content" style=" padding-bottom: 0px; padding-top: 66px;"> <main> <div id="panelContent" class="container-fluid" style="padding:20px 20px"> <!-- Display article content here --> <?php if (isset($article)) : ?> <h1><?= htmlentities($article['title']) ?></h1> <p> <div class="news-content"> <?= htmlspecialchars_decode($article['description']) ?> </div> </p> <!-- Add social buttons and copy text button here --> <?php else : ?> <p>Article not found</p> <?php endif; ?> </div> </main> <div id="comments-section" class="comments-section container py-3 px-0"> <h3>Comments<span style="font-size: 12px; font-style: italic; color: grey; margin-left: 10px;"><?= noOfComments($db, $articleId) ?> Comments</span></h3> <div class="conversations"> <div id="comments" class=" mx-0"> <?php display_comments($chat); ?> </div> </div> </div> </div> </div> <div class="conversation-form"> <textarea class="comment-text" id="comment-text" placeholder="Start your conversation..."></textarea> <!-- <input type="text" id="comment-author" placeholder="Your name"> --> <!-- <button class="conversation-btn" onclick=" sendMessage('','');">Post</button> --> <button class="conversation-btn btn-primary" onclick="sendMessageAndRefresh('<?php echo $articleId; ?>', '<?php echo $user_id; ?>');">Post</button> </div> <footer id="footer" class="py-2 bg-light" style="margin-bottom: 0px;"> <div class="container-fluid"> <div class="text-muted text-right small">© 2024, Knobly Consulting</div> </div> </footer> </body> <script> $(document).ready(function() { $('.conversations').animate({ scrollTop: $('.conversations')[0].scrollHeight }, 'fast'); }); // function sendMessageAndRefresh(articleId, user_id) { // // Place your sendMessage functionality here // sendMessage(articleId, user_id); // var currentPosition = window.pageYOffset || document.documentElement.scrollTop; // // Refresh the page // location.reload(); // // $('.conversations').scrollBottom($('.conversations')[0].scrollHeight); // $('.conversations').animate({ // scrollTop: $('.conversations').offset().top // }, 'fast'); // window.onload = function() { // window.scrollTo(0, currentPosition); // }; // } function sendMessageAndRefresh(articleId, user_id) { // Place your sendMessage functionality here sendMessage(articleId, user_id); var currentPosition = window.pageYOffset || document.documentElement.scrollTop; // Refresh the page location.reload(); $(window).scrollTop(currentPosition); } function sendMessage(article_id, user_id) { var messageText = $('#comment-text').val().trim(); var now = new Date(); // Get current date and time in user's local time zone console.log(messageText); var posted_on = now.getFullYear() + '-' + ('0' + (now.getMonth() + 1)).slice(-2) + '-' + ('0' + now.getDate()).slice(-2) + ' ' + ('0' + now.getHours()).slice(-2) + ':' + ('0' + now.getMinutes()).slice(-2) + ':' + ('0' + now.getSeconds()).slice(-2); // Format as 'YYYY-MM-DD HH:MM:SS' if (messageText === '') { return; } $.ajax({ url: 'conversations/save_conversations.php', method: 'POST', data: { article_id: article_id, user_id: user_id, message: messageText, posted_on: posted_on }, success: function(response) { // Handle the response // alert('Message sent successfully!'); console.log(response); // Log response to console // location.reload(); // Reload the page after successful message post }, error: function(xhr, status, error) { // Handle errors console.error(xhr.responseText); } }); } </script> </html>