PluginProbe
HTTP Headers / 1.13.0
HTTP Headers v1.13.0
1.19.5 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.12.0 1.12.1 1.12.2 1.13.0 1.13.1 1.13.2 1.13.3 1.13.4 1.14.0 1.14.1 1.14.2 1.15.0 All 60 releases
http-headers / views / index.php

index.php in HTTP Headers 1.13.0, at views/index.php

62 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) {
3 exit;
4 }
5 ?>
6 <div class="wrap">
7 <h1>HTTP Headers</h1>
8 <?php
9 $check = check_webserver_requirements();
10 if ($check !== true) {
11 ?>
12 <div class="notice notice-error">
13 <h2><?php _e('Error!', 'http-headers'); ?></h2>
14 <?php
15 if ($check == -1) {
16 ?><p><?php _e('The following file was not found. Please make sure the file exists and has write permissions:', 'http-headers'); ?> <code><?php echo get_home_path(); ?>.htaccess</code></p><?php
17 } elseif ($check == -2) {
18 ?><p><?php _e('Please make sure the following file has write permissions:', 'http-headers'); ?> <code><?php echo get_home_path(); ?>.htaccess</code></p><?php
19 }
20 ?>
21 </div>
22 <?php
23 }
24 $check = check_php_requirements();
25 if ($check !== true) {
26 ?>
27 <div class="notice notice-warning">
28 <h2><?php _e('Warning!', 'http-headers'); ?></h2>
29 <?php
30 if ($check == -1) {
31 ?><p><?php _e('The following file was not found. Please make sure the file exists and has write permissions:', 'http-headers'); ?> <code><?php echo get_home_path().ini_get('user_ini.filename'); ?></code></p><?php
32 } elseif ($check == -2) {
33 ?><p><?php _e('Please make sure the following file has write permissions:', 'http-headers'); ?> <code><?php echo get_home_path().ini_get('user_ini.filename'); ?></code></p><?php
34 }
35 ?>
36 </div>
37 <?php
38 }
39 ?>
40 <p><?php _e('Quick links', 'http-headers'); ?>:
41 <a href="https://zinoui.com/blog/http-headers-for-wordpress" target="_blank" title="HTTP Headers"><?php _e('Getting started', 'http-headers'); ?></a>,
42 <a href="<?php echo get_admin_url(); ?>options-general.php?page=http-headers&amp;tab=advanced"><?php _e('Advanced settings', 'http-headers'); ?></a>,
43 <a href="<?php echo get_admin_url(); ?>options-general.php?page=http-headers&amp;tab=manual"><?php _e('Manual setup', 'http-headers'); ?></a>,
44 <a href="<?php echo get_admin_url(); ?>options-general.php?page=http-headers&amp;tab=inspect"><?php _e('Inspect headers', 'http-headers'); ?></a>
45 </p>
46 <?php
47 if (isset($_GET['header']) && !empty($_GET['header']))
48 {
49 include dirname(__FILE__) . '/header.php';
50 } elseif (isset($_GET['tab']) && $_GET['tab'] == 'advanced') {
51 include dirname(__FILE__) . '/advanced.php';
52 } elseif (isset($_GET['tab']) && $_GET['tab'] == 'manual') {
53 include dirname(__FILE__) . '/manual.php';
54 } elseif (isset($_GET['tab']) && $_GET['tab'] == 'inspect') {
55 include dirname(__FILE__) . '/inspect.php';
56 } elseif (isset($_GET['category'])) {
57 include dirname(__FILE__) . '/category.php';
58 } else {
59 include dirname(__FILE__) . '/dashboard.php';
60 }
61 ?>
62 </div>