Esempio n. 1
0
                bps_check_perms("../.htaccess", "644");
                bps_check_perms("../wp-config.php", "644");
                bps_check_perms("../index.php", "644");
                bps_check_perms("../wp-blog-header.php", "644");
                bps_check_perms("../wp-admin", "755");
                bps_check_perms("../wp-includes", "755");
                bps_check_perms("../{$bps_wpcontent_dir}", "755");
                bps_check_perms("../{$bps_plugin_dir}", "755");
                bps_check_perms(str_replace(WP_CONTENT_DIR, "../{$bps_wpcontent_dir}", get_theme_root()), "755");
                bps_check_perms("../{$bps_uploads_dir}", "755");
                bps_check_perms("../{$bps_wpcontent_dir}/upgrade", "755");
                bps_check_perms("../{$bps_wpcontent_dir}/bps-backup", "755");
                bps_check_perms("../{$bps_wpcontent_dir}/bps-backup/logs", "755");
                bps_check_perms("../{$bps_wpcontent_dir}/bps-backup/master-backups", "755");
                if ($DBBoptions['bps_db_backup_folder'] != '') {
                    bps_check_perms(str_replace($wpcontent_single_slash, "../{$bps_wpcontent_dir}", $db_backup), "755");
                }
                echo '<div style=\'padding-bottom:15px;\'></div>';
            }
        }
        $time_end = microtime(true);
        $run_time = $time_end - $time_start;
        $time_display = '<strong>' . __('System Info Processing Completion Time: ', 'bulletproof-security') . '</strong>' . round($run_time, 2) . ' Seconds';
        echo '<div id="message" class="updated" style="border:1px solid #999999;margin-left:220px;background-color:#ffffe0;"><p>';
        echo bpsPro_memory_resource_usage();
        echo $time_display;
        echo '</p></div>';
        ?>

    </td>
  </tr>
Esempio n. 2
0
        echo '<td style="padding:2px;width:15%;font-weight:bold;">';
        _e('Current', 'bulletproof-security');
        echo '<br>';
        _e('Permissions', 'bulletproof-security');
        echo '</td>';
        echo '</tr>';
        echo '</table>';
        bps_check_perms(".htaccess", "../.htaccess", "644");
        bps_check_perms("wp-config.php", "../wp-config.php", "644");
        bps_check_perms("index.php", "../index.php", "644");
        bps_check_perms("wp-blog-header.php", "../wp-blog-header.php", "644");
        bps_check_perms("root folder", "../", "755");
        bps_check_perms("wp-admin/", "../wp-admin", "755");
        bps_check_perms("wp-includes/", "../wp-includes", "755");
        bps_check_perms("wp-content/", "../wp-content", "755");
        bps_check_perms("wp-content/bps-backup/", "../wp-content/bps-backup", "755");
        echo '<div style=\'padding-bottom:15px;\'></div>';
    }
    ?>
</td>
    <td>&nbsp;</td>
    <td rowspan="4" class="bps-table_cell_file_checks">
    <?php 
    echo general_bps_file_checks();
    ?>
   <table width="100%" border="0" cellspacing="0" cellpadding="0" class="bps-file_checks_bottom_table" style="margin-top:38px;">
      <tr>
        <td class="bps-file_checks_bottom_bps-table_cell">&nbsp;</td>
      </tr>
    </table>
    </td>