Revision 1189
Added by Luisehahne about 16 years ago
| initialize.php | ||
|---|---|---|
| 33 | 33 |
// Create database class |
| 34 | 34 |
$database = new database(); |
| 35 | 35 |
|
| 36 |
if (function_exists("set_magic_quotes_runtime"))
|
|
| 36 |
if(version_compare(PHP_VERSION, '5.3.0', '<'))
|
|
| 37 | 37 |
{
|
| 38 |
set_magic_quotes_runtime(0); |
|
| 39 |
}
|
|
| 38 |
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
|
|
| 39 |
}
|
|
| 40 | 40 |
// Get website settings (title, keywords, description, header, and footer) |
| 41 | 41 |
$query_settings = "SELECT name,value FROM ".TABLE_PREFIX."settings"; |
| 42 | 42 |
$get_settings = $database->query($query_settings); |
Also available in: Unified diff
fix some PHP 5.3 deprecated functions