diff --git a/include/langchooser.inc b/include/langchooser.inc index 4da2636b3..ead85974c 100644 --- a/include/langchooser.inc +++ b/include/langchooser.inc @@ -172,10 +172,10 @@ function language_choose_code() // Add a language to the possible languages' list function language_add($langcode, &$langs) { - global $LANGUAGES, $INACTIVE_ONLINE_LANGUAGES, $MQ; + global $LANGUAGES, $INACTIVE_ONLINE_LANGUAGES; // Make language code lowercase, html encode special chars and remove slashes - $langcode = strtolower(htmlspecialchars($MQ ? stripslashes($langcode) : $langcode)); + $langcode = strtolower(htmlspecialchars($langcode)); // The Brazilian Portuguese code needs special attention if ($langcode == 'pt_br') { $langcode = 'pt_BR'; } diff --git a/include/prepend.inc b/include/prepend.inc index ee8678887..67616bddf 100644 --- a/include/prepend.inc +++ b/include/prepend.inc @@ -66,12 +66,6 @@ unset($LAST_UPDATED); // Load the My PHP.net settings before any includes myphpnet_load(); -// TODO: Remove MQ dependencies from phpweb -$MQ = get_magic_quotes_gpc(); -if (get_magic_quotes_runtime()) { - @set_magic_quotes_runtime(0); -} - // Site details (mirror site information) include __DIR__ . '/site.inc'; diff --git a/manual-lookup.php b/manual-lookup.php index 1048a1fce..b515926ef 100644 --- a/manual-lookup.php +++ b/manual-lookup.php @@ -21,10 +21,6 @@ if(!empty($_GET['scope']) && is_string($_GET['scope'])) { // Prepare data for search if ($function) { - if ($MQ) { - $function = stripslashes($function); - } - $function = strtolower($function); // Try to find appropriate manual page diff --git a/manual/add-note.php b/manual/add-note.php index 8203c172a..e42e449cc 100644 --- a/manual/add-note.php +++ b/manual/add-note.php @@ -93,13 +93,12 @@ if ($process) { (isset($_SERVER['HTTP_VIA']) ? $_SERVER['HTTP_VIA'] : ''); // Post the variables to the central user note script - // ($MQ is defined in prepend.inc) $result = posttohost( "http://master.php.net/entry/user-note.php", array( - 'user' => ($MQ ? stripslashes($user) : $user), - 'note' => ($MQ ? stripslashes($note) : $note), - 'sect' => ($MQ ? stripslashes($_POST['sect']) : $_POST['sect']), + 'user' => $user, + 'note' => $note, + 'sect' => $_POST['sect'], 'ip' => $_SERVER['REMOTE_ADDR'], 'redirip' => $redirip ) @@ -145,7 +144,7 @@ if ($process) { // Print out preview of note echo '
This is what your entry will look like, roughly:
'; echo '