Changeset 1947
- Timestamp:
- 12/14/2004 03:00:55 AM (20 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r1894 r1947 2 2 require_once('../wp-config.php'); 3 3 require_once(ABSPATH . 'wp-includes/wp-l10n.php'); 4 require_once(ABSPATH . 'wp-admin/admin-functions.php'); 5 auth_redirect(); 4 6 5 require_once(ABSPATH . 'wp-admin/auth.php');6 require(ABSPATH . 'wp-admin/admin-functions.php');7 7 8 8 $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories"); -
trunk/wp-admin/index.php
r1429 r1947 2 2 3 3 require('../wp-config.php'); 4 require_once('auth.php');4 auth_redirect(); 5 5 6 6 get_currentuserinfo(); -
trunk/wp-admin/profile.php
r1943 r1947 22 22 23 23 require_once('../wp-config.php'); 24 require_once('auth.php');24 auth_redirect(); 25 25 switch($action) { 26 26 -
trunk/wp-includes/functions.php
r1940 r1947 1955 1955 } 1956 1956 1957 if ( !function_exists('wp_login') ) : 1957 1958 function wp_login($username, $password, $already_md5 = false) { 1958 1959 global $wpdb, $error; … … 1983 1984 } 1984 1985 } 1986 endif; 1987 1988 if ( !function_exists('auth_redirect') ) : 1989 function auth_redirect() { 1990 // Checks if a user is logged in, if not redirects them to the login page 1991 if ( (!empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && 1992 !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true)) || 1993 (empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) { 1994 header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday 1995 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); 1996 header('Cache-Control: no-cache, must-revalidate'); 1997 header('Pragma: no-cache'); 1998 1999 header('Location: ' . get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI'])); 2000 exit(); 2001 } 2002 } 2003 endif; 1985 2004 1986 2005 function is_plugin_page() {
Note: See TracChangeset
for help on using the changeset viewer.