PHP 8.2.31
Preview: antibot-subscription.php Size: 3.64 KB
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/newsletter/includes/antibot-subscription.php

<?php
/** @var bool $captcha */

header('Content-Type: text/html;charset=UTF-8');
header('X-Robots-Tag: noindex,nofollow,noarchive');
header('Cache-Control: no-cache,no-store,private');
?><!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style type="text/css">
            .tnp-captcha {
                text-align: center;
                margin: 200px auto 0 auto !important;
                max-width: 300px !important;
                padding: 10px !important;
                font-family: sans-serif;
                background: #ECF0F1;
                border-radius: 5px;
                padding: 50px !important;
                border: none !important;
            }
            input[type=text] {
                width: 50px;
                padding: 10px 10px;
                border: none;
                border-radius: 2px;
                margin: 0px 5px;
            }
            input[type=button] {
                text-align: center;
                border: none;
                padding: 10px 15px;
                font-family: "Open Sans", sans-serif;
                background-color: #27AE60;
                color: white;
                cursor: pointer;
            }
        </style>
        <script>
            var captcha = <?php echo $captcha ? 'true' : 'false'; ?>;
            function m(ev) {
                //let e = new Date();
                //e.setTime(e.getTime() + 300 * 1000);
                //document.cookie = "tnpab=1; expires=" + e.toGMTString() + "; path=/";
                let f = document.getElementById("form");
                f.action = location.pathname;
                f.method = 'POST';
                f.submit();
            }
            if (!captcha) {
                window.setTimeout(() => {
                    m();
                }, 500);
            }
            function go() {
                if (!captcha)
                    return;

                m();
            }
        </script>
    </head>
    <body>
        <form method="get" action="" id="form">

            <?php
            foreach ($_REQUEST as $name => $value) {
                if ($name == 'submit')
                    continue;
                if (is_array($value)) {
                    foreach ($value as $k => $v) {
                        echo '<input type="hidden" name="';
                        echo esc_attr($name);
                        echo '[', esc_attr($k), ']" value="';
                        echo esc_attr(stripslashes($v ?? ''));
                        echo '">';
                    }
                } else {
                    echo '<input type="hidden" name="', esc_attr($name), '" value="', esc_attr(stripslashes($value)), '">';
                }
            }
            if (isset($_SERVER['HTTP_REFERER'])) {
                echo '<input type="hidden" name="nhr" value="' . esc_attr(sanitize_url($_SERVER['HTTP_REFERER'])) . '">';
            }
            echo '<input type="hidden" name="ts" value="' . time() . '">';

            if ($captcha) {
                echo '<div class="tnp-captcha">';
                echo '<input type="text" name="n1" value="', rand(1, 9), '" readonly style="width: 50px">';
                echo '+';
                echo '<input type="text" name="n2" value="', rand(1, 9), '" readonly style="width: 50px">';
                echo '=';
                echo '<input type="text" name="n3" value="" placeholder="?" style="width: 50px">';
                echo '<br><br>';
                echo '<input type="button" value="&gt;" onclick="go(); return false;">';
                echo '</div>';
            }
            ?>
        </form>
    </body>
</html>

Directory Contents

Dirs: 0 × Files: 27

Name Size Perms Modified Actions
5.49 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
3.64 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
1.59 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
6.43 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
12.11 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
889 B lrw-r--r-- 2026-06-03 14:57:28
Edit Download
30.01 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
1.86 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
92.78 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
1.76 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
10.24 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
2.37 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
32.76 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
15.72 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
3.43 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
11 B lrw-r--r-- 2026-06-03 14:57:28
Edit Download
21.00 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
43.63 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
43.77 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
1.26 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
4.21 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
7.71 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
8.49 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
5.79 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
9.41 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
7.26 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download
23.36 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).