-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_option.php
87 lines (78 loc) · 3.31 KB
/
check_option.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2006 Michael Earls |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| - phpIP - http://www.phpip.net/ |
+-------------------------------------------------------------------------+
*/
/*
Our php.ini contains the following settings:
display_errors = On
register_globals = Off
post_max_size = 8M
*/
// include the layout file
include 'layout.php';
// Use the myheader function from layout.php
myheader("phpIP Management");
?>
<table class="listTable" style="width:100%" cellpadding="0" cellspacing="0">
<tr class="listCell">
<TD class="listCell" colspan="3">Recommended Settings</TD>
</tr>
<tr class="listHeadRow">
<TD class="listCell" colspan="3">Select Prefix</TD>
</tr>
<?php
echo "<TR class=\"listCell\">";
echo "<TD class=\"listCell\">DIRECTIVE</TD>";
echo "<TD class=\"listCell\">RECOMMENDED</TD>";
echo "<TD class=\"listCell\">Actual</TD>";
echo "</TR>";
echo "<TR class=\"listCell\">";
echo "<TD class=\"listCell\">Safe Mode:</TD>";
echo "<TD class=\"listCell\"> OFF</TD>";
echo "<TD class=\"listCell\"> ".ini_get('safe_mode')."</TD>";
echo "</TR>";
echo "<TR class=\"listCell\">";
echo "<TD class=\"listCell\">Display Errors:</TD>";
echo "<TD class=\"listCell\"> ON</TD>";
echo "<TD class=\"listCell\"> ".ini_get('display_errors')."</TD>";
echo "</TR>";
echo "<TR class=\"listCell\">";
echo "<TD class=\"listCell\">Magic Quotes GPC:</TD>";
echo "<TD class=\"listCell\"> ON</TD>";
echo "<TD class=\"listCell\"> ".ini_get('magic_quotes_gpc')."</TD>";
echo "</TR>";
echo "<TR class=\"listCell\">";
echo "<TD class=\"listCell\">Magic Quotes Runtime:</TD>";
echo "<TD class=\"listCell\"> OFF</TD>";
echo "<TD class=\"listCell\"> ".ini_get('magic_quotes_runtime')."</TD>";
echo "</TR>";
echo "<TR class=\"listCell\">";
echo "<TD class=\"listCell\">Register Globals:</TD>";
echo "<TD class=\"listCell\"> OFF</TD>";
echo "<TD class=\"listCell\"> ".ini_get('register_globals')."</TD>";
echo "</TR>";
echo "<TR class=\"listCell\">";
echo "<TD class=\"listCell\">Output Buffering:</TD>";
echo "<TD class=\"listCell\"> OFF</TD>";
echo "<TD class=\"listCell\"> ".ini_get('output_buffering')."</TD>";
echo "</TR>";
echo "<TR class=\"listCell\">";
echo "<TD class=\"listCell\">Session auto start:</TD>";
echo "<TD class=\"listCell\"> OFF</TD>";
echo "<TD class=\"listCell\"> ".ini_get('session.auto_start')."</TD>";
echo "</TR>";
?>