mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
drop references to magic_quotes; see: https://github.com/postfixadmin/postfixadmin/pull/325
This commit is contained in:
parent
5f772afe14
commit
036245063e
@ -31,12 +31,6 @@ if (!defined('POSTFIXADMIN')) { # already defined if called from setup.php
|
|||||||
}
|
}
|
||||||
|
|
||||||
$incpath = dirname(__FILE__);
|
$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
|
* @param string $class
|
||||||
|
@ -47,9 +47,6 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
|||||||
$fSubject = safepost('fSubject');
|
$fSubject = safepost('fSubject');
|
||||||
|
|
||||||
$tBody = $_POST['fBody'];
|
$tBody = $_POST['fBody'];
|
||||||
if (get_magic_quotes_gpc()) {
|
|
||||||
$tBody = stripslashes($tBody); # TODO: check for get_magic_quotes_gpc inside safepost/safeget
|
|
||||||
}
|
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$email_check = check_email($fTo);
|
$email_check = check_email($fTo);
|
||||||
|
@ -37,7 +37,6 @@ require(dirname(__FILE__) . '/../templates/header.php');
|
|||||||
//
|
//
|
||||||
$f_phpversion = function_exists("phpversion");
|
$f_phpversion = function_exists("phpversion");
|
||||||
$f_apache_get_version = function_exists("apache_get_version");
|
$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_mysql_connect = function_exists("mysql_connect");
|
||||||
$f_mysqli_connect = function_exists("mysqli_connect");
|
$f_mysqli_connect = function_exists("mysqli_connect");
|
||||||
$f_pg_connect = function_exists("pg_connect");
|
$f_pg_connect = function_exists("pg_connect");
|
||||||
@ -95,18 +94,6 @@ require(dirname(__FILE__) . '/../templates/header.php');
|
|||||||
print "<p>Checking environment:\n";
|
print "<p>Checking environment:\n";
|
||||||
print "<ul>\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
|
// Check for config.local.php
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user