forked from simpleinvoices/simpleinvoices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpinfo.php
36 lines (32 loc) · 879 Bytes
/
phpinfo.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
<?php
/*
* Script: phpinfo.php
* Show the servers PHP settings
*
* License:
* GPL v3 or above
*/
$secure = true;
if($secure)
{
die("
=============================<br/>
Simple Invoices security warning<br/>
=============================<br/>
<br/>
PHPINFO is disabled by default for security reasons.
<br/>
To view your phpinfo contents, edit the file phpinfo.php
in your Simple Invoices directory and change line 11 from: <br />
<br />
\$secure = true;<br /><br />
to<br /><br />
\$secure = false;<br /><br />
and refresh this page.
Once you have finished using the information from phpinfo it
is advised to re-edit the phpinfo.php and change it back to \$secure = true;
");
} else {
#print all the PHP info for your system
phpinfo();
}