0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
This commit is contained in:
David Goodwin 2020-02-10 11:26:23 +00:00
parent 5f772afe14
commit 036245063e
3 changed files with 0 additions and 22 deletions

View File

@ -31,12 +31,6 @@ if (!defined('POSTFIXADMIN')) { # already defined if called from setup.php
}
$incpath = dirname(__FILE__);
(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_runtime', '0') : '1');
(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_sybase', '0') : '1');
if (ini_get('register_globals') == 'on') {
die("Please turn off register_globals; edit your php.ini");
}
/**
* @param string $class

View File

@ -47,9 +47,6 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$fSubject = safepost('fSubject');
$tBody = $_POST['fBody'];
if (get_magic_quotes_gpc()) {
$tBody = stripslashes($tBody); # TODO: check for get_magic_quotes_gpc inside safepost/safeget
}
$error = 0;
$email_check = check_email($fTo);

View File

@ -37,7 +37,6 @@ require(dirname(__FILE__) . '/../templates/header.php');
//
$f_phpversion = function_exists("phpversion");
$f_apache_get_version = function_exists("apache_get_version");
$f_get_magic_quotes_gpc = function_exists("get_magic_quotes_gpc");
$f_mysql_connect = function_exists("mysql_connect");
$f_mysqli_connect = function_exists("mysqli_connect");
$f_pg_connect = function_exists("pg_connect");
@ -95,18 +94,6 @@ require(dirname(__FILE__) . '/../templates/header.php');
print "<p>Checking environment:\n";
print "<ul>\n";
//
// Check for Magic Quotes
//
if ($f_get_magic_quotes_gpc == 1) {
if (get_magic_quotes_gpc() == 0) {
print "<li>Magic Quotes: Disabled - OK</li>\n";
} else {
print "<li><b>Warning: Magic Quotes: ON (internal work around to disable is in place)</b></li>\n";
}
}
//
// Check for config.local.php
//