OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
process
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/31/2025 06:36:42 AM
rwxr-xr-x
📄
_get.section.collection.php
58.55 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
_get.section.create.php
21.82 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
_get.section.general.php
8.06 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
b.get.section.newsletter.php
18.36 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
bbget.section.curated.php
33.74 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
bget.section.newsletter.php
18.39 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
bget.section.request.article.php
6.04 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
chk.logged.in.php
1.16 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
chk.login.php
1.31 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
d_get.section.collection.php
57.93 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
d_get.section.create.php
21.87 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
fget.section.curated.php
17.04 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
fget.section.settings.php
33.55 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.account.php
8.55 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.analytics.php
11.45 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.collection copy.php
67.57 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.collection.php
69.19 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.community.php
7.7 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.create.php
22.41 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.curated.php
33.74 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.dashboard.php
3.31 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.feed.php
6.87 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.genai.php
9.84 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.genaicreative.php
10.52 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.general.php
2.28 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.newsletter.php
18.94 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.request.article - Copy.php
5.82 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.request.article.php
16.31 KB
03/26/2025 03:48:10 AM
rw-r--r--
📄
get.section.settings.php
41.71 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
get.section.team.php
6.72 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
get.section.test.php
529 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
get.section.utils.php
4.77 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
logout.php
428 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
my-get.section.curated.php
18.56 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
old.get.section.genai.php
10.22 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
old1get.section.create.php
30.29 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
sendgrid.php
3.62 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
upload.php
2.4 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
z.get.section.feed.php
6.88 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
zget.section.newsletter.php
17.97 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
zget.section.settings.php
34.6 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
zzget.section.curated.php
13.95 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
zzget.section.genai.php
12.7 KB
03/26/2025 03:48:11 AM
rw-r--r--
Editing: get.section.request.article.php
Close
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Knobly Cream: Create • Reach • Measure</title> <!-- jQuery --> <script src="../assets/js/jquery-3.6.0.min.js"></script> <script src="../assets/js/jquery-3.6.0.min.js"></script> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Font Awesome CSS --> <link rel="stylesheet" href="../assets/css/all.min.5.15.3.css"> <link rel="stylesheet" href="../assets/css/all.min.5.15.css"> <link rel="stylesheet" href="../assets/css/bootstrap.min.4.5.0.css" /> <link rel="stylesheet" href="../assets/css/animate.min.4.0.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="stylesheet" href="inc/genai_style.css" /> <link rel="icon" type="image/x-icon" href="/img/logo.ico"> <script src="../assets/js/jquery-3.6.0.min.js"></script> <script src="../assets/js/jquery-3.5.1.min.js" ></script> <script src="../assets/js/bootstrap.min.4.5.js" ></script> <script src="../assets/js/Chart.min.2.8.js" crossorigin="anonymous"></script> <!-- <script src="https://cdn.tiny.cloud/1/u5oz235qw5jiqww4udm90ocp9zg2rncblqo2ch0ym3twjgyt/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script> --> <script src="../assets/js/zf-widget.js"></script> <script src="inc/jquery.magnific-popup.min.js"></script> <script src="../assets/php/common.js"></script> <script src="inc/genai_func.js"></script> <script type="text/javascript"> $(function() { $('#panelContent').load('process/get.section.curated.php', function() { $('#contentLoader').hide() }); }); </script> <style> .newsroll-dropdown { border: none; outline: none; position: relative; display: inline-block; /* display: flex; */ align-items: center; padding-left: 8px; /* border: none; */ padding-bottom: 8px; } .newsroll-dropbtn { border: none; color: rgba(255, 255, 255, 0.5); background-color: #212529; } .newsroll-dropbtn:focus { border: none; outline: none; } .newsroll-dropdown-content { display: none; outline: none; position: relative; background-color: #212529; min-width: 160px; /* box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); */ /* z-index: 1; */ } .newsroll-dropdown-content a { color: white; padding: 12px 16px; text-decoration: none; display: block; } .show { display: block; } </style> </head> <body> </body> </html> <? // Cream: Request Article // require_once '../inc/validate.logged.php'; require_once '../inc/config.php'; // require_once '../genai/genai_function.php'; $act = ''; if (!empty($_POST)) $act = isset($_POST["act"]) ? $_POST["act"] : ''; if ($act == 'generateArticle') { $model = "gpt-4o"; //Ensure to update the GPT model when required $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 if you are using them to pepper the response." ), array( "role" => "system", "content" => "You are a report generator where you are able to generate the article." ), array( "role" => "system", "content" => "Please respond only with the result and do not try to give any response message. Don't even give the result in the code box. Reply only with the result and this is very very very important!!" ), array( "role" => "system", "content" => "Please mention the heading of the article at the beginning as per the markdown syntax." ) ); $articleHeadline = isset($_POST['articleHeadline']) ? $_POST['articleHeadline'] : ''; $articleObjective = isset($_POST['articleObjective']) ? $_POST['articleObjective'] : ''; $articleTargetGroup = isset($_POST['articleTargetGroup']) ? $_POST['articleTargetGroup'] : ''; $articleKeywords = isset($_POST['articleKeywords']) ? $_POST['articleKeywords'] : ''; $articleNumWords = isset($_POST['articleNumWords']) ? $_POST['articleNumWords'] : ''; $articleNumImages = isset($_POST['articleNumImages']) ? $_POST['articleNumImages'] : ''; $articleOutline = isset($_POST['articleOutline']) ? $_POST['articleOutline'] : ''; $articlePrimarySource = isset($_POST['articlePrimarySource']) ? $_POST['articlePrimarySource'] : ''; $articleSecondarySource = isset($_POST['articleSecondarySource']) ? $_POST['articleSecondarySource'] : ''; $articleImageLink = isset($_POST['imageLink']) ? $_POST['imageLink'] : ''; $user_prompt = array( array( "role" => "user", "content" => 'I wanted to create an article which will be a typical article but amazing one.' ), array( "role" => "user", "content" => 'The title of the article is "' . $articleHeadline . '".' ), array( "role" => "user", "content" => 'The main objective of the article is to ' . $articleObjective . '.' ), array( "role" => "user", "content" => 'The target group for the article are "' . $articleTargetGroup . '"' ), array( "role" => "user", "content" => 'The main keywords for the article are "' . $articleKeywords . '" and these keywords are really important.' ), array( "role" => "user", "content" => 'And try to complete within ' . $articleNumWords . ' words as I want to complete within these ' . $articleNumWords . ' words' ) ); if ($articleNumImages != '') { $user_prompt[] = array( "role" => "user", "content" => 'If possible try to have probably ' . $articleNumImages . ' images or graphics in this article. Give the real image links and not the sample one. Very important' ); } if ($articleOutline != '') { $user_prompt[] = array( "role" => "user", "content" => 'The outline of the article should contain ' . $articleOutline ); } if ($articlePrimarySource != '') { $user_prompt[] = array( "role" => "user", "content" => 'The primary source for this article can be viewed in this link "' . $articlePrimarySource . '"' ); } if ($articleSecondarySource != '') { $user_prompt[] = array( "role" => "user", "content" => 'The outline of the article should contain "' . $articleSecondarySource ); } if ($articleImageLink != '') { $user_prompt[] = array( "role" => "user", "content" => 'Use this above image link to put the image which are: "' . $articleImageLink . '". Use the first image link as the main article title image. ' ); } $response = processPrompt($type, $system_prompt, $user_prompt, $model); $articleData = extractTitleAndDescription($response); ?> <style> #generated_response img { display: block; width: 45vw; } </style> <!-- <div> <?=htmlspecialchars($response)?> </div><br><br> --> <div id="generated_response"> <?= $response ?> </div> <div> <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> </div> <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); // Display the converted HTML $('#generated_response').html(htmlContent); }); </script> <? } // Create Post if ($act == 'sendRequest') { $articleHeadline = isset($_POST['articleHeadline']) ? $_POST['articleHeadline'] : ''; $articleObjective = isset($_POST['articleObjective']) ? $_POST['articleObjective'] : ''; $articleTargetGroup = isset($_POST['articleTargetGroup']) ? $_POST['articleTargetGroup'] : ''; $articleKeywords = isset($_POST['articleKeywords']) ? $_POST['articleKeywords'] : ''; $articleNumWords = isset($_POST['articleNumWords']) ? $_POST['articleNumWords'] : ''; $articleNumImages = isset($_POST['articleNumImages']) ? $_POST['articleNumImages'] : ''; $articleOutline = isset($_POST['articleOutline']) ? $_POST['articleOutline'] : ''; $articlePrimarySource = isset($_POST['articlePrimarySource']) ? $_POST['articlePrimarySource'] : ''; $articleSecondarySource = isset($_POST['articleSecondarySource']) ? $_POST['articleSecondarySource'] : ''; if ($articleHeadline != '' && $articleObjective != '') { $tmpHTML = ""; $tmpHTML .= "<html>"; $tmpHTML .= "<body>"; $tmpHTML .= "<div style=\"font-family:Arial;font-size:12px;\">\r\n"; $tmpHTML .= "The following has been requested from Knobly Cream:<br><br>\r\n"; $tmpHTML .= "<b>Request by:</b><br>\r\n"; $tmpHTML .= "$gUserName [$gUserEmail]<br><br>\r\n"; $tmpHTML .= "<b>Headline:</b><br>\r\n"; $tmpHTML .= "$articleHeadline<br><br>\r\n"; $tmpHTML .= "<b>Objective:</b><br>\r\n"; $tmpHTML .= "$articleObjective <br><br>\r\n"; $tmpHTML .= "<b>Target Group:</b><br>\r\n"; $tmpHTML .= "$articleTargetGroup <br><br>\r\n"; $tmpHTML .= "<b>Keywords:</b><br>\r\n"; $tmpHTML .= "$articleKeywords<br><br>\r\n"; $tmpHTML .= "<b>Number of words:</b><br>\r\n"; $tmpHTML .= "$articleNumWords<br><br>\r\n"; $tmpHTML .= "<b>Number of Pictures/Graphics/etc.:</b><br>\r\n"; $tmpHTML .= "$articleNumImages<br><br>\r\n"; $tmpHTML .= "<b>Outline:</b><br>\r\n"; $tmpHTML .= "$articleOutline<br><br>\r\n"; $tmpHTML .= "<b>Primary Source:</b><br>\r\n"; $tmpHTML .= "$articlePrimarySource<br><br>\r\n"; $tmpHTML .= "<b>Secondary Source:</b><br>\r\n"; $tmpHTML .= "$articleSecondarySource<br><br>\r\n"; $tmpHTML .= "Warm Regards,<br>\r\n"; $tmpHTML .= "Knobly Cream<br>\r\n"; $tmpHTML .= "</body>"; $tmpHTML .= "</html>"; sendEmail('Prashanth Hebbar', 'prashanth@knobly.com', '', 'Knobly Cream: Request Article', $tmpHTML); echo 'Thank you for your submission!<br>We will get back to you at the earliest.'; } } // Default if ($act == '') { ?> <ol class="breadcrumb my-3"> <li class="breadcrumb-item"> <h4 class="m-0">Request Article</h4> </li> </ol> <div id="panelRequestArticleHeader" class="row mb-4 p-2"> <div class="col"> Fill up the form to help our writers understand your requirement. Charges are applicable.<br> Fields marked with <span class="txtRed">*</span> are mandatory.<br> </div> </div> <div class="row mb-4 p-2"> <div id="panelRequestArticle" class="col"> <form id="frmArticle"> <div class="form-row"> <div class="form-group col-12 col-md-6"> <label for="postTitle">Headline<sup class="txtRed"><big>*</big></sup></label> <input type="text" class="form-control px-2 py-4" id="articleHeadline" name="articleHeadline" maxlength="100" /> </div> <div class="form-group col-12 col-md-6"> <label for="postTitle">Objective<sup class="txtRed"><big>*</big></sup></label> <input type="text" class="form-control px-2 py-4" id="articleObjective" name="articleObjective" maxlength="100" /> </div> </div> <div class="form-row"> <div class="form-group col-12 col-md-6"> <label for="postTitle">Target Group<sup class="txtRed"><big>*</big></sup></label> <input type="text" class="form-control px-2 py-4" id="articleTargetGroup" name="articleTargetGroup" maxlength="100" /> </div> <div class="form-group col-12 col-md-6"> <label for="postTitle">Keywords<sup class="txtRed"><big>*</big></sup></label> <input type="text" class="form-control px-2 py-4" id="articleKeywords" name="articleKeywords" maxlength="100" /> </div> </div> <div class="form-row"> <div class="form-group col-12 col-md-6"> <label for="postTitle">Number of words<sup class="txtRed"><big>*</big></sup></label> <input type="text" class="form-control px-2 py-4" id="articleNumWords" name="articleNumWords" maxlength="100" /> </div> <div class="form-group col-12 col-md-6"> <label for="postTitle">Number of Pictures/Graphics/etc.</label> <!-- <label for="postTitle">Number of Pictures/Graphics/etc.<sup class="txtRed"><big>*</big></sup></label> --> <input type="text" class="form-control px-2 py-4" id="articleNumImages" name="articleNumImages" maxlength="100" /> </div> </div> <div class="form-row"> <div class="form-group col"> <label for="postTitle">Outline</label> <textarea class="form-control" id="articleOutline" name="articleOutline"></textarea> </div> </div> <div class="form-row"> <div class="form-group col"> <label for="postTitle">Drop Image links</label> <textarea class="form-control" id="imageLink" name="imageLink"></textarea> </div> </div> <div class="form-row"> <div class="form-group col-12 col-md-6"> <label for="postTitle">Primary source</label> <textarea class="form-control" id="articlePrimarySource" name="articlePrimarySource"></textarea> </div> <div class="form-group col-12 col-md-6"> <label for="postTitle">Secondary source</label> <textarea class="form-control" id="articleSecondarySource" name="articleSecondarySource"></textarea> </div> </div> <div class="mt-3"> <button type="button" class="btn btn-primary btn-spacing" onclick="chkGenerateArticle('generateArticle')">Generate Article</button> <button type="button" class="btn btn-primary" onclick="chkGenerateArticle('sendRequest')">Request Article</button> <div class="float-left ml-4 pt-2"> <div id="panelStatusRequestArticle"></div> </div> </div> <input type="hidden" id="actionType" name="act" value="" /> </form> </div> </div> <? } ?>