Changeset 1964 for trunk/wp-login.php
- Timestamp:
- 12/16/2004 02:57:05 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r1911 r1964 1 1 <?php 2 require('./wp-config.php'); 3 4 if (!function_exists('add_magic_quotes')) { 5 function add_magic_quotes($array) { 6 foreach ($array as $k => $v) { 7 if (is_array($v)) { 8 $array[$k] = add_magic_quotes($v); 9 } else { 10 $array[$k] = addslashes($v); 11 } 12 } 13 return $array; 14 } 15 } 16 17 if (!get_magic_quotes_gpc()) { 18 $_GET = add_magic_quotes($_GET); 19 $_POST = add_magic_quotes($_POST); 20 $_COOKIE = add_magic_quotes($_COOKIE); 21 } 2 require( dirname(__FILE__) . '/wp-config.php' ); 22 3 23 4 $wpvarstoreset = array('action');
Note: See TracChangeset
for help on using the changeset viewer.