OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
opalv1
/
inc
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/25/2024 03:43:29 AM
rwxr-xr-x
📁
PHPMailer
-
02/18/2024 06:24:11 AM
rwxr-xr-x
📄
common.js
29.58 KB
03/07/2024 06:55:12 AM
rw-rw-r--
📄
config.php
2.25 KB
03/14/2024 01:14:34 PM
rw-rw-r--
📁
fontawesome
-
02/18/2024 06:23:33 AM
rwxr-xr-x
📄
jquery-3.7.1.min.js
85.48 KB
02/12/2024 01:39:30 PM
rw-rw-r--
📄
moment.min.js
52.07 KB
03/07/2020 02:57:44 PM
rw-rw-r--
📄
style.css
5.02 KB
02/17/2024 02:56:40 PM
rw-rw-r--
Editing: config.php
Close
<? ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); ini_set('default_charset', 'UTF-8'); $servername = "localhost"; $dbname = "opal"; $username = "root"; $password = "1234"; $db = new mysqli($servername, $username, $password, $dbname); if ($db ->connect_error) { die("Connection failed: " . $db->connect_error); } mysqli_query($db, "SET NAMES utf8"); mysqli_query($db, "SET time_zone = '+5:30'"); function sendEmail($toName, $toEmail, $toEmailCC, $emailSubject, $emailBody) { $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->setFrom('support@knobly.com', 'Knobly Cream'); $mail->Host = 'smtp.gmail.com'; $mail->Username = 'support@knobly.com'; $mail->Password = 'bvsewkatwogqkyki'; $mail->Port = 587; $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; if ($toEmail != '') { $arrEmail = explode(',', $toEmail); foreach ($arrEmail as $value) { $mail->addAddress(trim($value)); } } //$mail->addAddress($toEmail, $toName); if ($toEmailCC != '') { $arrCC = explode(',', $toEmailCC); foreach ($arrCC as $value) { $mail->addCC(trim($value)); } } $mail->addBCC('chiranjeev@gmail.com'); $mail->isHTML(true); $mail->Subject = $emailSubject; $mail->Body = $emailBody; $mail->send(); } catch (Exception $e) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; } } function simpleEncDec($string, $action = 'e') { $secret_key = 'opal@2024'; $secret_iv = 'my_simple_secret_iv'; $output = false; $encrypt_method = "AES-256-CBC"; $key = hash('sha256', $secret_key); $iv = substr(hash( 'sha256', $secret_iv ), 0, 16); if ($action == 'e') { $output = base64_encode(openssl_encrypt($string, $encrypt_method, $key, 0, $iv)); } else if($action == 'd'){ $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv); } return $output; } function createArticleURL($title) { if ($title <> '') { $title = str_replace(':','-',$title); $title = str_replace(' ','-',$title); $title = str_replace('%','',$title); $title = str_replace("'","",$title); $title = str_replace('"','',$title); return $title; } else { return ''; } }