Changeset 1513
- Timestamp:
- 08/07/2004 01:22:17 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-includes/functions.php (modified) (2 diffs)
-
wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r1500 r1513 11 11 return ((float) $string); 12 12 } 13 } 14 15 function get_profile($field, $user = false) { 16 global $wpdb; 17 if (!$user) 18 $user = $wpdb->escape($_COOKIE['wordpressuser_' . COOKIEHASH]); 19 return $wpdb->get_var("SELECT $field FROM $wpdb->users WHERE user_login = '$user'"); 13 20 } 14 21 … … 166 173 function get_userdata($userid) { 167 174 global $wpdb, $cache_userdata; 175 $userid = (int) $userid; 168 176 if ( empty($cache_userdata[$userid]) ) { 169 177 $cache_userdata[$userid] = -
trunk/wp-settings.php
r1449 r1513 62 62 $wpdb->show_errors(); 63 63 64 if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) { 65 64 if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) : 66 65 $querystring_start = '?'; 67 66 $querystring_equal = '='; 68 67 $querystring_separator = '&'; 69 //} 70 // Used to guarantee unique cookies68 69 // Used to guarantee unique hash cookies 71 70 $cookiehash = md5(get_settings('siteurl')); 72 73 } //end !$_wp_installing 71 define('COOKIEHASH', $cookiehash); 72 endif; 74 73 75 74 require (ABSPATH . WPINC . '/vars.php');
Note: See TracChangeset
for help on using the changeset viewer.