2003-06-01 09:47:29 +02:00
|
|
|
<?php
|
|
|
|
|
2004-02-02 03:35:08 +01:00
|
|
|
require('../wp-config.php');
|
2004-12-14 04:00:55 +01:00
|
|
|
auth_redirect();
|
2003-06-01 09:47:29 +02:00
|
|
|
|
2004-02-02 22:54:32 +01:00
|
|
|
get_currentuserinfo();
|
|
|
|
|
|
|
|
if (0 == $user_level) {
|
2004-02-26 17:15:48 +01:00
|
|
|
$redirect_to = get_settings('siteurl') . '/wp-admin/profile.php';
|
2004-02-02 03:35:08 +01:00
|
|
|
} else {
|
2004-02-26 17:15:48 +01:00
|
|
|
$redirect_to = get_settings('siteurl') . '/wp-admin/post.php';
|
2004-02-02 03:35:08 +01:00
|
|
|
}
|
|
|
|
header ("Location: $redirect_to");
|
2003-06-01 09:47:29 +02:00
|
|
|
?>
|