2003-06-01 09:47:29 +02:00
|
|
|
<?php
|
|
|
|
|
2004-02-02 03:35:08 +01:00
|
|
|
require('../wp-config.php');
|
2003-06-01 09:47:29 +02:00
|
|
|
|
2004-02-02 22:54:32 +01:00
|
|
|
get_currentuserinfo();
|
|
|
|
|
|
|
|
if (0 == $user_level) {
|
|
|
|
$redirect_to = $siteurl . '/wp-admin/profile.php';
|
2004-02-02 03:35:08 +01:00
|
|
|
} else {
|
2004-02-02 22:54:32 +01:00
|
|
|
$redirect_to = $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
|
|
|
?>
|