2003-06-01 03:47:29 -04:00
|
|
|
<?php
|
|
|
|
|
2004-02-01 21:35:08 -05:00
|
|
|
require('../wp-config.php');
|
2004-02-02 19:06:57 -05:00
|
|
|
require_once('auth.php');
|
2003-06-01 03:47:29 -04:00
|
|
|
|
2004-02-02 16:54:32 -05:00
|
|
|
get_currentuserinfo();
|
|
|
|
|
|
|
|
if (0 == $user_level) {
|
2004-02-26 11:15:48 -05:00
|
|
|
$redirect_to = get_settings('siteurl') . '/wp-admin/profile.php';
|
2004-02-01 21:35:08 -05:00
|
|
|
} else {
|
2004-02-26 11:15:48 -05:00
|
|
|
$redirect_to = get_settings('siteurl') . '/wp-admin/post.php';
|
2004-02-01 21:35:08 -05:00
|
|
|
}
|
|
|
|
header ("Location: $redirect_to");
|
2003-06-01 03:47:29 -04:00
|
|
|
?>
|