
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: sms_helper.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

defined('BASEPATH') or exit('No direct script access allowed');

hooks()-&gt;add_action('admin_init', 'maybe_test_sms_gateway');

function maybe_test_sms_gateway()
{
    $CI = &amp;get_instance();
    if (is_staff_logged_in() &amp;&amp; $CI-&gt;input-&gt;post('sms_gateway_test')) {

        $retval = $CI-&gt;{'sms_' . $CI-&gt;input-&gt;post('id')}-&gt;send(
            $CI-&gt;input-&gt;post('number'),
            clear_textarea_breaks(nl2br($CI-&gt;input-&gt;post('message')))
        );

        $response = ['success' =&gt; false];

        if (isset($GLOBALS['sms_error'])) {
            $response['error'] = $GLOBALS['sms_error'];
        } else {
            $response['success'] = true;
        }

        echo json_encode($response);
        die;
    }
}

hooks()-&gt;add_action('admin_init', '_maybe_sms_gateways_settings_group');

function _maybe_sms_gateways_settings_group($groups)
{
    $CI = &amp;get_instance();

    $gateways = $CI-&gt;app_sms-&gt;get_gateways();

    if (count($gateways) &gt; 0) {
        $CI-&gt;app_tabs-&gt;add_settings_tab('sms', [
            'name'     =&gt; 'SMS',
            'view'     =&gt; 'admin/settings/includes/sms',
            'position' =&gt; 60,
        ]);
    }
}

hooks()-&gt;add_action('app_init', 'app_init_sms_gateways');

function app_init_sms_gateways()
{
    $CI = &amp;get_instance();

    $gateways = [
        'sms/sms_clickatell',
        'sms/sms_msg91',
        'sms/sms_twilio',
    ];

    $gateways = hooks()-&gt;apply_filters('sms_gateways', $gateways);

    foreach ($gateways as $gateway) {
        $CI-&gt;load-&gt;library($gateway);
    }
}

function is_sms_trigger_active($trigger = '')
{
    $CI     = &amp;get_instance();
    $active = $CI-&gt;app_sms-&gt;get_active_gateway();

    if (!$active) {
        return false;
    }

    return $CI-&gt;app_sms-&gt;is_trigger_active($trigger);
}

function can_send_sms_based_on_creation_date($data_date_created)
{
    $now       = time();
    $your_date = strtotime($data_date_created);
    $datediff  = $now - $your_date;

    $days_diff = floor($datediff / (60 * 60 * 24));

    return $days_diff &lt; DO_NOT_SEND_SMS_ON_DATA_OLDER_THEN || $days_diff == DO_NOT_SEND_SMS_ON_DATA_OLDER_THEN;
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://satyadevaresidency.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-gallery-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-testimonial-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-gallery_cat-1.xml</loc></sitemap></sitemapindex>
