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: admin.php
<?php if ( !function_exists( 'add_action' ) ) { echo 'Code is poetry.'; exit; } function DADB_plugin_dashboard() { $addErr = 0; if( get_option("dadb_start") == 1) { $curlCheck = dadb_is_curl_installed(); $get_useragent = $_SERVER['HTTP_USER_AGENT']; $url = 'http://ip-api.com/'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate'); curl_setopt($ch, CURLOPT_USERAGENT, $get_useragent); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 5); if(curl_exec($ch) === false) { $addErr = 1; echo "<div class='wrap projectStyle'> <div id='whiteboxH' class='postbox'><div class='topHead'>".__("Our system automatically banned the IP address of your website. Please use this form to remove the ban: <a target='_blank' href='http://ip-api.com/docs/unban' class='button button-primary'>Unban Form</a>", "dadb-plugin")."</div></div></div>"; } curl_setopt($ch, CURLOPT_REFERER, "https://google.com"); curl_close($ch); } else { $curlCheck = true; } if ($addErr == 0) { ?> <div class="wrap projectStyle"> <div id="whiteboxH" class="postbox"> <div class="topHead"> <h2><?php echo __("Dashboard - Blocker.", "dadb-plugin") ?></h2> <?php echo settings_errors(); ?> </div> <div class="inside"> <form action="options.php" method="post"> <?php settings_fields("DADB_admin_settings") ?> <table class="form-table"> <tr valign="top"> <th scope="row"><label for="dadb_start"><?php echo __("Blocker Plugin","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_start") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_start" 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 __("Enable Blocker Plugin features","dadb-plugin") ?></p> </td> </tr> <?php if( get_option("dadb_start") == 1 ) : ?> <tr valign="top"> <th scope="row"><label for="dadb_logs"><?php echo __("Logs","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_logs") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_logs" 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 __("Enable blocked visitors log. With this feature you can perform detailed analysis.","dadb-plugin") ?></p> </td> </tr> <tr valign="top"> <th scope="row"><label for="dadb_messag"><?php echo __("Error Messages","dadb-plugin") ?></label></th> <td> <label class="button-toggle-wrap"> <input <?php if( get_option("dadb_messag") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_messag" 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 __("Enable Error Messages on Access Denied Pages.","dadb-plugin") ?></p> </td> </tr> <?php endif; ?> </table> </div> </div> </div> <?php if ($curlCheck) : ?> <?php if( get_option("dadb_start") == 1 ) : ?> <div class="wrap projectStyle"> <div id="whiteboxH" class="postbox"> <div class="topHead"> <h4><?php echo __("Plugin Stats (All Times)", "dadb-plugin") ?> <label style="display:inline-block;margin-left:2rem;margin-top:-.5rem" class="button-toggle-wrap"> <input <?php if( get_option("dadb_start_stat") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_start_stat" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label></h4> </div> <?php if( get_option("dadb_start_stat") == 1 ) : ?> <div style="text-align:center;width:100%"> <div style="padding:10px;text-align:center;display:inline-block;width:30%;" class=""> <h4 style="font-size:18px"><?php echo __("TOTAL BLOCKED", "dadb-plugin") ?></h4> <p style="font-size:22px;background:#ad1717;color:white"><?php echo totalBlocked(); ?></p> </div> <div style="padding:10px;text-align:center;display:inline-block;width:30%;" class=""> <h4 style="font-size:18px"><?php echo __("Blocked Bad-Visitors", "dadb-plugin") ?></h4> <p style="font-size:22px;background:#36708a;color:white"><?php if( get_option("dadb_bu") == "" || get_option("dadb_bu") < 1 ) { update_option("dadb_bu", "1"); echo "1"; } else { echo get_option("dadb_bu"); } ?></p> </div> <div style="padding:10px;text-align:center;display:inline-block;width:30%;" class=""> <h4 style="font-size:18px"><?php echo __("Blocked Bad-Bots", "dadb-plugin") ?></h4> <p style="font-size:22px;background:#489961;color:white;"><?php if( get_option("dadb_nn") == "" || get_option("dadb_nn") < 1 ) { update_option("dadb_nn", "1"); echo "1"; } else { echo get_option("dadb_nn"); } ?></p> </div> <div style="padding:10px;text-align:center;display:inline-block;width:20%;" class=""> <h4 style="font-size:18px"><?php echo __("Blocked Fake Search Bots", "dadb-plugin") ?></h4> <p style="font-size:22px;background:#bbb229;color:white"><?php if( get_option("dadb_fn") == "" || get_option("dadb_fn") < 1 ) { update_option("dadb_fn", "1"); echo "1"; } else { echo get_option("dadb_fn"); } ?></p> </div> <div style="padding:10px;text-align:center;display:inline-block;width:20%;" class=""> <h4 style="font-size:18px"><?php echo __("Blocked Referral Spams", "dadb-plugin") ?></h4> <p style="font-size:22px;background:#73527f;color:white"><?php if( get_option("dadb_rn") == "" || get_option("dadb_rn") < 1 ) { update_option("dadb_rn", "1"); echo "1"; } else { echo get_option("dadb_rn"); } ?></p> </div> <div style="padding:10px;text-align:center;display:inline-block;width:20%;" class=""> <h4 style="font-size:18px"><?php echo __("Blocked Spam-Members", "dadb-plugin") ?></h4> <p style="font-size:22px;background:#489961;color:white"><?php if( get_option("dadb_bm") == "" || get_option("dadb_bm") < 1 ) { update_option("dadb_bm", "1"); echo "1"; } else { echo get_option("dadb_bm"); } ?></p> </div> <div style="padding:10px;text-align:center;display:inline-block;width:20%;" class=""> <h4 style="font-size:18px"><?php echo __("Blocked Spam-Comments", "dadb-plugin") ?></h4> <p style="font-size:22px;background:#bbb229;color:white"><?php if( get_option("dadb_bcm") == "" || get_option("dadb_bcm") < 1 ) { update_option("dadb_bcm", "1"); echo "1"; } else { echo get_option("dadb_bcm"); } ?></p> </div> </div> <?php endif; ?> </div> </div> <div class="wrap projectStyle"> <div id="whiteboxH" class="postbox"> <div class="topHead"> <h4><?php echo __("Check your IP Details", "dadb-plugin") ?> <label style="display:inline-block;margin-left:2rem;margin-top:-.5rem" class="button-toggle-wrap"> <input <?php if( get_option("dadb_start_dash") == 1) {echo 'checked="checked"';} ?> value="1" name="dadb_start_dash" class="toggler" type="checkbox" data-toggle="button-toggle"/> <div class="button-toggle"> <div class="handle"> <div class="bars"></div> </div> </div> </label></h4> </div> <?php if( get_option("dadb_start_dash") == 1 ) : ?> <div class="inside"> <p style="font-size:16px;display:inline-block;margin:15px;"><?php echo __("Your IP Address:", "dadb-plugin") ?> <strong style="padding:0 5px;background:#489961;color:white;"><?php echo getIpAddress(); ?></strong></p> <p style="font-size:16px;display:inline-block;margin:15px;"><?php echo __("Your Country:", "dadb-plugin") ?> <strong style="padding:0 5px;background:#489961;color:white;"><?php echo getIPInfo(1); ?></strong></p> <p style="font-size:16px;display:inline-block;margin:15px;"><?php echo __("Your ISP:", "dadb-plugin") ?> <strong style="padding:0 5px;background:#489961;color:white;"><?php echo getIPInfo(0, 1); ?></strong></p> <p style="font-size:16px;display:inline-block;margin:15px;"><?php echo __("Check Tor DNS:", "dadb-plugin") ?> <strong style="padding:0 5px;background:#489961;color:white;"><?php echo getTor(); ?></strong></p> <p style="font-size:16px;display:inline-block;margin:15px;"><?php echo __("Is your IP address Blacklisted?:", "dadb-plugin") ?> <strong style="padding:0 5px;background:#489961;color:white;"><?php echo getIPBlacklistSFP(); ?></strong></p> <p style="font-size:16px;display:inline-block;margin:15px;"><?php echo __("Is your IP address Proxy/VPN?:", "dadb-plugin") ?> <strong style="padding:0 5px;background:#489961;color:white;"><?php echo getIPBlacklist(); ?></strong></p> </div> <?php endif; ?> </div> </div> <?php endif; ?> <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>"; endif; } } add_action("admin_init","DADB_admin_register"); function DADB_admin_register() { //Mail register_setting("DADB_admin_settings","dadb_start"); register_setting("DADB_admin_settings","dadb_logs"); register_setting("DADB_admin_settings","dadb_start_dash"); register_setting("DADB_admin_settings","dadb_start_stat"); register_setting("DADB_admin_settings","dadb_messag"); }
Save