HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/commandorestoration/public_html/wp-content/plugins/honeypot/includes/views/wpa_main.php
<?php 
if ( ! defined( 'ABSPATH' ) ) exit; 
if (isset($_POST['submit-wpa-general-settings'])){
    $saveReturn = wpa_save_settings();
}

if (isset($_POST['submit-wpae-general-settings'])){
    $saveReturn = wpae_save_settings();
}

if (isset($_POST['submit-wpae-whitelist_ips'])){
    $saveReturn = wpae_save_whitelist_ips();
}

if (isset($_POST['submit-wpae-integrations'])){
    $saveReturn = wpae_save_integrations();
}

if (isset($_GET['tab']) && array_key_exists($_GET['tab'],$wpa_tabs)){
  $currentTab = $_GET['tab'];
} else {
  $currentTab = 'settings';
}
?>

<?php if (isset($saveReturn)):?>
    <div class="updated <?php echo $saveReturn['status']; ?>" id="message"><p><?php echo $saveReturn['body']; ?></p></div>
  <?php endif; ?>
      
<div class="wrap">
    
    <h1>WP Armour - HoneyPot Anti Spam</h1>

    <nav class="nav-tab-wrapper">
        <?php foreach ($wpa_tabs as $tabKey => $tabData) { ?>
            <a href="<?php echo admin_url(); ?>admin.php?page=wp-armour&tab=<?php echo $tabKey; ?>" class="nav-tab <?php echo $currentTab == $tabKey?'nav-tab-active':''; ?>"><?php echo $tabData['name']; ?></a>
        <?php } ?>
    </nav>

    <div class="tab-content">
        <table width="100%">
            <tr>
                <td valign="top">
                <?php include($wpa_tabs[$currentTab]['path']); ?>
                </td>
                <td width="15">&nbsp;</td>
                <td width="250" valign="top"><?php include('wpa_sidebar.php'); ?></td>
            </tr>
        </table>
    </div>          
            
</div>