2003-06-01 09:47:29 +02:00
|
|
|
<?php
|
|
|
|
|
2004-02-02 03:35:08 +01:00
|
|
|
require('../wp-config.php');
|
2004-02-03 01:06:57 +01:00
|
|
|
require_once('auth.php');
|
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
|
|
|
?>
|