golden hour
/home/godaofbq/zenhealingstore.com/wp-content/plugins/blocker-plugin/admin
⬆️ Go Up
Upload
File/Folder
Size
Actions
admin.php
11.23 KB
Del
OK
assets
-
Del
OK
blocksettings.php
8.82 KB
Del
OK
index.php
1.22 KB
Del
OK
ipsettings.php
9.05 KB
Del
OK
logs.php
3.83 KB
Del
OK
Edit: ipsettings.php
<?php if ( !function_exists( 'add_action' ) ) { echo 'Code is poetry.'; exit; } function DADB_plugin_ipset() { if( get_option("dadb_start") == 1) { $curlCheck = dadb_is_curl_installed(); } else { $curlCheck = true; } if ($curlCheck) { ?> <div class="wrap projectStyle"> <div id="whiteboxH" class="postbox"> <div class="topHead"> <h2><?php echo __("Main Settings - Blocker.", "dadb-plugin") ?></h2> <?php echo settings_errors(); ?> </div> <div class="inside"> <form action="options.php" method="post"> <?php settings_fields("DADB_ip_settings") ?> <table class="form-table"> <tr valign="top"> <th scope="row"><label for="dadb_botacc"><?php echo __("Web Bots Access","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_botacc") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_botacc" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label> <p class="description" ><?php echo __("This feature prevents fake users (web bots). It only allows safe web bots.","dadb-plugin"); ?> <strong><?php echo __("Use With Caution!","dadb-plugin"); ?></strong></p> </td> </tr> <tr valign="top"> <th scope="row"><label for="dadb_vpnproxy"><?php echo __("Proxy and VPN Access","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_vpnproxy") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_vpnproxy" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label> <p class="description" ><?php echo __("This feature prevents VPN and Proxy. More Information:","dadb-plugin") ?> <a target="_blank" href="http://proxy.mind-media.com/block/">Black Box</a></p> </td> </tr> <tr valign="top"> <th scope="row"><label for="dadb_maliip"><?php echo __("Malicious IP Access","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_maliip") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_maliip" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label> <p class="description" ><?php echo __("This feature prevents Malicious, SPAM, Virus and Hacker IP Addresses. More Information:","dadb-plugin") ?> <a href="https://www.stopforumspam.com/donate" target="_blank">StopForumSpam</a></p> </td> </tr> <tr valign="top"> <th scope="row"><label for="dadb_malimail"><?php echo __("Registration Protection","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_malimail") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_malimail" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label> <p class="description" ><?php echo __("This feature prevents Malicious, SPAM, Virus and Hacker E-Mail Addresses. More Information:","dadb-plugin") ?> <a href="https://www.stopforumspam.com/donate" target="_blank">StopForumSpam</a></p> </td> </tr> <tr valign="top"> <th scope="row"><label for="dadb_malicomm"><?php echo __("Comment Protection","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_malicomm") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_malicomm" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label> <p class="description" ><?php echo __("This feature prevents Malicious, SPAM, Virus and Hacker E-Mail Addresses. More Information:","dadb-plugin") ?> <a href="https://www.stopforumspam.com/donate" target="_blank">StopForumSpam</a></p> </td> </tr> <tr valign="top"> <th scope="row"><label for="dadb_torip"><?php echo __("Tor Browser & Tor DNS Access","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_torip") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_torip" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label> <p class="description" ><?php echo __("This feature prevents Tor Browser and Tor DNS.","dadb-plugin") ?></p> </td> </tr> <tr valign="top"> <th scope="row"><label for="dadb_fakesearch"><?php echo __("Fake Search Engine User Agents","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_fakesearch") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_fakesearch" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label> <p class="description" ><?php echo __("This feature prevents Fake Search Engines and Malicious Web Bots. Reduce unnecessary traffic on your website.","dadb-plugin") ?></p> </td> </tr> <tr valign="top"> <th scope="row"><label for="dadb_fakeuser"><?php echo __("Unknown User Agents","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_fakeuser") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_fakeuser" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label> <p class="description" ><?php echo __("This feature prevents Unknown and Undetectable user agents. Reduce unnecessary traffic on your website.","dadb-plugin") ?> <strong><?php echo __("Use With Caution!","dadb-plugin"); ?></strong></p> </td> </tr> <?php if( get_option("dadb_start") == 1 ) : ?> <?php endif; ?> </table> </div> </div> </div> <div class="wrap projectStyle" id="whiteboxH"> <div class="postbox"> <div class="inside"> <div style="display:inline-block"> <div class="contentDoYouLike"> <p><?php echo __("How would you rate <strong>Blocker</strong>?", "dadb-plugin") ?></p> </div> <div class="wrapperDoYouLike"> <input type="checkbox" id="st1" value="1" /> <label for="st1"></label> <input type="checkbox" id="st2" value="2" /> <label for="st2"></label> <input type="checkbox" id="st3" value="3" /> <label for="st3"></label> <input type="checkbox" id="st4" value="4" /> <label for="st4"></label> <input type="checkbox" id="st5" value="5" /> <label for="st5"></label> </div> <a target="_blank" href="https://codecanyon.net/item/blocker-wordpress-firewall-security-plugin/reviews/22312960" class="sabutton button button-primary" style="margin: -5px 0 0 10px;"><?php echo __("Rate this plugin!", "dadb-plugin") ?></a> </div> <?php submit_button(); ?> </div> </div> </div> </form> <?php } else { echo "<div class='wrap projectStyle'> <div id='whiteboxH' class='postbox'><div class='topHead'>".__("cURL is NOT <span style='color:red'>installed</span> on this server. Please contact your server / hosting provider.", "dadb-plugin")."</div></div></div>"; } } add_action("admin_init","DADB_ip_register"); function DADB_ip_register() { //Mail register_setting("DADB_ip_settings","dadb_vpnproxy"); register_setting("DADB_ip_settings","dadb_maliip"); register_setting("DADB_ip_settings","dadb_malimail"); register_setting("DADB_ip_settings","dadb_malicomm"); register_setting("DADB_ip_settings","dadb_torip"); register_setting("DADB_ip_settings","dadb_fakesearch"); register_setting("DADB_ip_settings","dadb_fakeuser"); register_setting("DADB_ip_settings","dadb_botacc"); }
Save