OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2025 11:18:49 AM
rwxr-xr-x
📄
.htaccess
860 bytes
03/26/2025 03:47:46 AM
rw-r--r--
📁
.vscode
-
03/26/2025 03:47:57 AM
rwxr-xr-x
📁
CreateLeadPage
-
03/26/2025 04:16:47 AM
rwxr-xr-x
📄
ImageMagick-7.1.1-45-Q16-HDRI-x64-dll.exe
22.2 MB
03/26/2025 03:47:54 AM
rw-r--r--
📁
Xpress
-
03/26/2025 04:21:24 AM
rwxr-xr-x
📄
XpressPage.php
47.13 KB
03/26/2025 03:47:57 AM
rw-r--r--
📄
about.html
3.26 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
account.php
47.77 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
activate.php
2.19 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
add_channel.php
9.7 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
add_to_channel.php
980 bytes
03/26/2025 03:47:46 AM
rw-r--r--
📁
admin
-
03/26/2025 04:16:40 AM
rwxr-xr-x
📄
analytics.php
37.71 KB
03/26/2025 03:47:46 AM
rw-r--r--
📁
assets
-
03/26/2025 04:16:41 AM
rwxr-xr-x
📁
audio
-
03/26/2025 03:48:03 AM
rwxr-xr-x
📄
businessLp.php
46.33 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
bussLp.php
57.87 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
card-news.php
6.2 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
channel.php
36.21 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
chattest.php
8.66 KB
03/26/2025 03:47:46 AM
rw-r--r--
📁
clients
-
03/26/2025 03:48:03 AM
rwxr-xr-x
📄
collections.php
94.62 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
comments.php
1.67 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
composer.json
65 bytes
03/26/2025 03:47:46 AM
rw-r--r--
📄
composer.lock
4.03 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
contact.html
3.01 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
cookie.php
750 bytes
03/26/2025 03:47:46 AM
rw-r--r--
📄
copytest.html
4.04 KB
03/26/2025 03:47:46 AM
rw-r--r--
📁
creamAdmin
-
03/26/2025 04:07:42 AM
rwxr-xr-x
📄
cream_dashboard.php
25.87 KB
03/26/2025 03:47:46 AM
rw-r--r--
📁
creamapi
-
03/26/2025 03:48:04 AM
rwxr-xr-x
📄
create.php
42.93 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
created_magazine.html
11.96 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
dashboard.php
55.52 KB
03/26/2025 03:47:46 AM
rw-r--r--
📁
data
-
03/26/2025 04:16:48 AM
rwxr-xr-x
📄
down.html
829 bytes
03/26/2025 03:47:46 AM
rw-r--r--
📁
education-podcasts
-
03/31/2025 06:36:42 AM
rwxr-xr-x
📁
featured_channels
-
03/26/2025 03:48:04 AM
rwxr-xr-x
📄
featured_channels.php
32.48 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
featured_topics.php
26.59 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
fetch_articles.php
1.83 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
fetch_liked_users.php
1.55 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
filter.php
4.91 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
follow_action.php
1.75 KB
03/26/2025 03:47:46 AM
rw-r--r--
📄
follow_dash.php
33.76 KB
03/26/2025 03:47:46 AM
rw-r--r--
📁
form-builder
-
03/26/2025 03:48:04 AM
rwxr-xr-x
📄
function.php
20.61 KB
03/26/2025 03:47:47 AM
rw-r--r--
📁
genai
-
03/26/2025 04:20:06 AM
rwxr-xr-x
📄
generated_article.php
11.86 KB
03/26/2025 03:47:47 AM
rw-r--r--
📄
get_recent_items.php
1.37 KB
03/26/2025 03:47:47 AM
rw-r--r--
📄
handle_channel.php
856 bytes
03/26/2025 03:47:47 AM
rw-r--r--
📁
hindiConverter
-
03/26/2025 04:15:50 AM
rwxr-xr-x
📄
homePin.php
68.38 KB
03/26/2025 03:47:47 AM
rw-r--r--
📁
hps
-
03/26/2025 03:48:05 AM
rwxr-xr-x
📄
impmy_collection.php
124.17 KB
03/26/2025 03:47:47 AM
rw-r--r--
📁
inc
-
03/26/2025 04:15:50 AM
rwxr-xr-x
📄
index.php
30.55 KB
03/26/2025 03:47:48 AM
rw-r--r--
📄
index1.php
61.34 KB
03/26/2025 03:47:50 AM
rw-r--r--
📄
influencer.php
11.72 KB
03/26/2025 03:47:54 AM
rw-r--r--
📁
interface
-
03/26/2025 03:48:05 AM
rwxr-xr-x
📁
kannada
-
03/26/2025 04:20:06 AM
rwxr-xr-x
📄
knobly_logo.png
9.45 KB
03/26/2025 03:47:54 AM
rw-r--r--
📄
landing_page.php
17.27 KB
03/26/2025 03:47:54 AM
rw-r--r--
📄
landing_signin.php
5.11 KB
03/26/2025 03:47:54 AM
rw-r--r--
📁
leadpage
-
03/26/2025 04:15:53 AM
rwxr-xr-x
📄
link.php
5.63 KB
03/26/2025 03:47:54 AM
rw-r--r--
📄
logInCheck.php
4.41 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
loggedInCheck.php
1.15 KB
03/26/2025 03:47:54 AM
rw-r--r--
📄
logo (1).svg
814 bytes
03/26/2025 03:47:55 AM
rw-r--r--
📄
logout.php
503 bytes
03/26/2025 03:47:55 AM
rw-r--r--
📄
magazine.html
4.46 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
magazine.php
23.57 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
more.php
9.21 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
my_collection.php
153.03 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
my_settings.php
17.44 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
navbar.php
3.36 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
new-page.php
10.46 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
newEditor.php
17.04 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
newsletter.php
24.31 KB
03/26/2025 03:47:55 AM
rw-r--r--
📁
pageLanding
-
03/26/2025 04:20:07 AM
rwxr-xr-x
📁
pages
-
03/26/2025 04:15:53 AM
rwxr-xr-x
📄
payment.php
29.86 KB
03/26/2025 03:47:55 AM
rw-r--r--
📁
pdf
-
03/26/2025 03:48:06 AM
rwxr-xr-x
📄
pdftk_server-2.02-win-setup.exe
2.91 MB
03/26/2025 03:47:56 AM
rw-r--r--
📄
post-details.php
37.75 KB
03/26/2025 03:47:55 AM
rw-r--r--
📄
premium.php
21.79 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
privacy.html
12.1 KB
03/26/2025 03:47:56 AM
rw-r--r--
📁
process
-
03/26/2025 03:48:11 AM
rwxr-xr-x
📄
process-plan.php
1.44 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
process.php
1.52 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
process_data.php
5.02 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
profile.php
37.8 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
profile_pic_upload.php
4.83 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
profile_test.php
19.78 KB
03/26/2025 03:47:56 AM
rw-r--r--
📁
reels
-
03/26/2025 04:20:08 AM
rwxr-xr-x
📄
refund.html
9.04 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
replyPost.php
3.93 KB
03/26/2025 03:47:56 AM
rw-r--r--
📁
report
-
03/26/2025 03:48:11 AM
rwxr-xr-x
📄
request_article.php
22.76 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
reset.html
4.7 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
save_profile.php
2.78 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
saved.php
34.28 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
saved_posts.php
49.25 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
search_bar.php
16.95 KB
03/26/2025 03:47:56 AM
rw-r--r--
📁
sendy
-
03/26/2025 04:21:20 AM
rwxr-xr-x
📄
settings.php
81.93 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
sharemarket.php
3.88 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
showcase.php
10.34 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
signInProcess.php
13.83 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
signInProcess_backup.php
11.18 KB
03/26/2025 03:47:56 AM
rw-r--r--
📁
social_media
-
03/26/2025 04:16:12 AM
rwxr-xr-x
📄
start.html
3.99 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
store_articles.php
1.04 KB
03/26/2025 03:47:56 AM
rw-r--r--
📄
stream.php
62.31 KB
03/26/2025 03:47:57 AM
rw-r--r--
📄
streamPush.php
29.82 KB
03/26/2025 03:47:57 AM
rw-r--r--
📄
streamb.php
40.75 KB
03/26/2025 03:47:57 AM
rw-r--r--
📄
streambb.php
47.34 KB
03/26/2025 03:47:57 AM
rw-r--r--
📁
texttovoice
-
03/26/2025 03:48:13 AM
rwxr-xr-x
📁
thumbsUp
-
03/26/2025 03:48:13 AM
rwxr-xr-x
📄
toggle_channel.php
2.28 KB
03/26/2025 03:47:57 AM
rw-r--r--
📄
udupi_sign_up.php
34.5 KB
03/26/2025 03:47:57 AM
rw-r--r--
📁
uploads
-
03/26/2025 04:06:46 AM
rwxr-xr-x
📄
usage.html
37.76 KB
03/26/2025 03:47:57 AM
rw-r--r--
📄
userActivity.php
9.79 KB
03/26/2025 03:47:57 AM
rw-r--r--
📁
vendor
-
03/26/2025 04:20:23 AM
rwxr-xr-x
📄
verify.php
744 bytes
03/26/2025 03:47:57 AM
rw-r--r--
📄
view.php
13.36 KB
03/26/2025 03:47:57 AM
rw-r--r--
📄
view_newsletter.php
1.58 KB
03/26/2025 03:47:57 AM
rw-r--r--
📄
xpress_landing_page.php
78.63 KB
03/26/2025 03:47:57 AM
rw-r--r--
📄
xpress_landingpage.html
11.15 KB
03/26/2025 03:47:57 AM
rw-r--r--
Editing: generated_article.php
Close
<?php session_start(); if (isset($_SESSION['article_attempts'])) { echo "Total Attempts: " . $_SESSION['article_attempts']; } else { echo "No attempted"; // Default value if the session variable is not set } require_once './assets/php/db_connect.php'; require_once './assets/php/config.php'; require_once './assets/php/db_config.php'; // require_once 'genai/genai_function.php'; require_once './genai/genai_function.php'; require_once 'assets/php/validate.logged.php'; require_once 'assets/php/function.php'; if (!isset($_SESSION['article_attempts'])) { $_SESSION['article_attempts'] = 0; // Set default attempts to 0 } if ($_SERVER['REQUEST_METHOD'] === 'POST') { $model = "gpt-4o"; $type = 'request_article'; $system_prompt = array( array("role" => "system", "content" => "Try to complete the sentence within the max_tokens."), array("role" => "system", "content" => "Try to complete the sentence even if the max_tokens is reached."), array("role" => "system", "content" => "Always use MySQL-compatible SVG embeds to show icons or images."), array("role" => "system", "content" => "You are a report generator that can generate an article."), array("role" => "system", "content" => "Please respond only with the result and do not add extra messages.") ); $articleHeadline = $_POST['articleHeadline'] ?? ''; $articleObjective = $_POST['articleObjective'] ?? ''; $articleTargetGroup = $_POST['articleTargetGroup'] ?? ''; $articleKeywords = $_POST['articleKeywords'] ?? ''; $articleNumWords = $_POST['articleNumWords'] ?? ''; $articleOutline = $_POST['articleOutline'] ?? ''; $articlePrimarySource = $_POST['articlePrimarySource'] ?? ''; $articleSecondarySource = $_POST['articleSecondarySource'] ?? ''; $articleImageLink = $_POST['imageLink'] ?? ''; $user_prompt = array( array("role" => "user", "content" => 'I want to create an amazing article.'), array("role" => "user", "content" => 'Title: "' . $articleHeadline . '".'), array("role" => "user", "content" => 'Objective: ' . $articleObjective . '.'), array("role" => "user", "content" => 'Target audience: "' . $articleTargetGroup . '"'), array("role" => "user", "content" => 'Keywords: "' . $articleKeywords . '".'), array("role" => "user", "content" => 'Limit the article to ' . $articleNumWords . ' words.') ); if ($articleOutline) { $user_prompt[] = array("role" => "user", "content" => 'Outline: ' . $articleOutline); } if ($articlePrimarySource) { $user_prompt[] = array("role" => "user", "content" => 'Primary source: "' . $articlePrimarySource . '"'); } if ($articleSecondarySource) { $user_prompt[] = array("role" => "user", "content" => 'Secondary source: "' . $articleSecondarySource . '"'); } if ($articleImageLink) { $user_prompt[] = array("role" => "user", "content" => 'Use this image: "' . $articleImageLink . '".'); } $response = processPrompt($type, $system_prompt, $user_prompt, $model); // Store response in session so it can be accessed after redirection $_SESSION['generated_article'] = $response; // Redirect to the same page to display content header("Location: generated_article.php?article_ready=1"); exit; } function extractTitleDescription($text) { // Trim whitespace and remove newline characters $text = trim(str_replace("\n", ' ', $text)); // Use regex to capture the first sentence (title) if (preg_match('/^(.*?[.!?])(\s+|$)/s', $text, $matches)) { $title = trim($matches[1]); // First sentence as title $description = trim(substr($text, strlen($matches[0]))); // Remaining text as description // Limit title to 150 characters (truncate if needed) if (strlen($title) > 150) { $title = substr($title, 0, 150) . '...'; // Adding ellipsis for clarity } return [ 'title' => json_encode($title, JSON_UNESCAPED_UNICODE), 'description' => json_encode($description, JSON_UNESCAPED_UNICODE) ]; } return null; // No valid format found } // Display article if available $article_content = $_SESSION['generated_article'] ?? 'No article generated yet.'; $articleData = extractTitleDescription($article_content); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Generated Article</title> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <script src="assets/js/genai_func.js"></script> <script src="assets/js/stream.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.0.2/marked.min.js"></script> <script src="assets/js/jquery-3.6.0.min.js"></script> <script> $(document).ready(function() { // Get the Markdown content from the hidden div var markdownContent = $('#generated_response').text(); // Convert Markdown to HTML using marked.js var htmlContent = convert_text(markdownContent); console.log(htmlContent) // Display the converted HTML $('#generated_response').html(htmlContent); }); </script> <script> function article_save(title, description) { console.log('Title:', title); console.log('Description:', description); title = convert_text(title); description = convert_text(description); $.ajax({ type: 'POST', url: 'genai/genai_article_save.php', data: { title: title, description: description }, success: function(response) { console.log('Success Response:', response); alert(response); }, error: function(xhr, status, error) { console.error('Error saving data:', error); console.error('XHR:', xhr); console.error('Status:', status); } }); } </script> </head> <style> @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); :root { --primary-bg: #0f172a; --secondary-bg: #1e293b; --accent-color: #38bdf8; --text-primary: #f8fafc; --text-secondary: #94a3b8; } * { margin: 0; padding: 0; box-sizing: border-box; } body { background: var(--primary-bg); color: var(--text-primary); font-family: 'Inter', sans-serif; line-height: 1.6; min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 2rem; margin-top: 120px; } .header { text-align: center; margin-bottom: 2rem; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease forwards; } .header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; background: linear-gradient(45deg, var(--accent-color), #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .header p { color: var(--text-secondary); font-size: 1.1rem; } #generated_response { background: var(--secondary-bg); padding: 2rem; border-radius: 1rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease forwards 0.3s; position: relative; overflow: hidden; } #generated_response::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent-color), #818cf8); } .actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease forwards 0.6s; } .btn { padding: 0.75rem 1.5rem; border: none; border-radius: 0.5rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem; } .btn-primary { background: var(--accent-color); color: var(--primary-bg); } .btn-secondary { background: var(--secondary-bg); color: var(--text-primary); } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } #generated_response { user-select: none; pointer-events: none; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 768px) { .container { padding: 1rem; } .header h1 { font-size: 2rem; } #generated_response { padding: 1.5rem; } } </style> <body> <?php include 'navbar.php' ?> <div class="container"> <header class="header"> <h1>Generated Article</h1> </header> <div id="generated_response"><?= $article_content ?></div> <!-- <div id="generatedArticleContent"></div> --> <div style="margin-top: 10px;"> <? if ($gUserPlan) { ?> <button class='btn btn-primary' onclick="article_save(<?= htmlspecialchars($articleData['title'], ENT_QUOTES, 'UTF-8') ?>,<?= htmlspecialchars($articleData['description'], ENT_QUOTES, 'UTF-8') ?>)">Save to Collections</button> <? } else { ?> <button class='btn btn-primary' onclick="window.location.href='test_premium.php'" style="color:red">Upgrade to pro to save the article</button> <? } ?> </div> </div> </body> <script> document.addEventListener('DOMContentLoaded', function() { const element = document.getElementById('generated_response'); // Disable right-click element.addEventListener('contextmenu', function(event) { event.preventDefault(); }); // Disable keyboard shortcuts for copying document.addEventListener('keydown', function(event) { if ((event.ctrlKey && event.key === 'c') || (event.ctrlKey && event.key === 'u') || (event.ctrlKey && event.key === 's') || (event.ctrlKey && event.key === 'p')) { event.preventDefault(); } }); }); </script> <script> // Assuming the backend sets the attempts count in session or localStorage let userAttempts = <?php echo $_SESSION['article_attempts'] ?? 0; ?>; const maxAttempts = 3; function chkGenerateArticle(action) { if (userAttempts < maxAttempts) { // Proceed with article generation userAttempts++; <?php $_SESSION['article_attempts'] = $userAttempts; ?> // Call the function for article generation here // For example: generateArticle(action); } else { alert("You have reached the maximum attempts."); } } </script> </html>