golden hour
/home/godaofbq/zenearth.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: logs.php
<?php if ( !function_exists( 'add_action' ) ) { echo 'Code is poetry.'; exit; } function DADB_plugin_logs() { if (get_option("dadb_logs") == 1) { if( get_option("dadb_start") == 1) { $curlCheck = dadb_is_curl_installed(); } else { $curlCheck = true; } if ($curlCheck) { $getTableLog = get_option("dadb_savelog"); $countLog = count($getTableLog); ?> <div class="wrap projectStyle"> <div id="whiteboxH" class="postbox"> <div class="topHead"> <h2><?php echo __("Logs - Blocker.", "dadb-plugin"); ?></h2> <?php echo settings_errors(); ?> </div> <form action="options.php" method="post"> <?php settings_fields("DADB_LOGS") ?> <div class="inside"> <table class="wp-list-table widefat fixed striped posts"> <thead> <tr> <th><?php echo __("IP Address", "dadb-plugin") ?></th> <th><?php echo __("Country", "dadb-plugin") ?></th> <th><?php echo __("ISP", "dadb-plugin") ?></th> <th><?php echo __("Type", "dadb-plugin") ?></th> <th><?php echo __("Time", "dadb-plugin") ?></th> </tr> </thead> <tbody> <?php if ($countLog > 1) { foreach ($getTableLog as $key => $value) { ?> <tr> <td><?php echo $value[1]; ?></td> <td><?php echo $value[2]; ?></td> <td><?php echo $value[3]; ?></td> <td><?php echo $value[4]; ?></td> <td><?php echo $value[5]; ?></td> </tr> <?php } } ?> </tbody> </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> <input type="hidden" value="" name="dadb_savelog"> <input type="hidden" value="1" name="dadb_bu"> <input type="hidden" value="1" name="dadb_nn"> <input type="hidden" value="1" name="dadb_fn"> <input type="hidden" value="1" name="dadb_rn"> <input type="hidden" value="1" name="dadb_bm"> <input type="hidden" value="1" name="dadb_bcm"> <?php submit_button(__("Reset All Logs", "dadb-plugin")); ?> </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>"; } } else { echo "<div class='wrap projectStyle'> <div id='whiteboxH' class='postbox'><div class='topHead'>".__("Plugin Logs is NOT enabled on this website. Please enable Logs on Dashboard.", "dadb-plugin")."</div></div></div>"; } } add_action("admin_init","DADB_log_register"); function DADB_log_register() { //Mail register_setting("DADB_LOGS","dadb_savelog"); register_setting("DADB_LOGS","dadb_bu"); register_setting("DADB_LOGS","dadb_nn"); register_setting("DADB_LOGS","dadb_fn"); register_setting("DADB_LOGS","dadb_rn"); register_setting("DADB_LOGS","dadb_bm"); register_setting("DADB_LOGS","dadb_bcm"); }
Save