We now require PHP 5.4 or newer.
(specifically, we have to drop support for magic_quotes_gpc)
This commit is contained in:
parent
cb062e4e0a
commit
faa56c1cbc
1
CHANGES
1
CHANGES
|
@ -45,6 +45,7 @@ v2.38 (Unreleased)
|
|||
[misc] Directly store the 'iso' value instead of an enumerated list
|
||||
[fix] PHP7-related error when importing images with an XMP/RDF 'Subject' tag
|
||||
[fix] Use hash of various parameters for scaled image filenames
|
||||
[fix] Get rid of support for magic_quotes_gpc; This means we now require PHP 5.4 or newer!
|
||||
|
||||
v2.37.1 (December 3, 2012)
|
||||
|
||||
|
|
|
@ -60,25 +60,10 @@ function site_prolog($min_type = PO_USER_TYPE_DISABLED) {
|
|||
global $site_url;
|
||||
|
||||
$sybase = FALSE;
|
||||
// if magic quotes is enabled
|
||||
if ( get_magic_quotes_gpc () ) {
|
||||
// workaround because magic_quotes does not change $_SERVER['argv']
|
||||
$argv = isset($_SERVER['argv']) ? $_SERVER['argv'] : NULL;
|
||||
|
||||
// fix all affected arrays
|
||||
foreach ( array ('_ENV', '_REQUEST', '_GET', '_POST', '_COOKIE', '_SERVER') as $var ) {
|
||||
$GLOBALS[$var] = fix_magic_quotes ($GLOBALS[$var], $sybase);
|
||||
}
|
||||
$_SERVER['argv'] = $argv;
|
||||
|
||||
// turn off magic quotes, this is so scripts which
|
||||
// are sensitive to the setting will work correctly
|
||||
ini_set ('magic_quotes_gpc', 0);
|
||||
}
|
||||
|
||||
|
||||
/* Turn off error display */
|
||||
ini_set ('display_errors', 0);
|
||||
|
||||
|
||||
/* Establish DB Connection */
|
||||
$database = po_dbconnect();
|
||||
|
||||
|
|
|
@ -965,8 +965,8 @@ if (!$install_enabled) {
|
|||
}
|
||||
|
||||
$x = phpversion();
|
||||
if ($x < "5.0") {
|
||||
print "<h3>You are running PHP $x but Photo Organizer needs PHP >= 5.0</h3>\n";
|
||||
if ($x < "5.4") {
|
||||
print "<h3>You are running PHP $x but Photo Organizer needs PHP >= 5.4</h3>\n";
|
||||
$go = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue