6b8ee14b77
git-svn-id: https://develop.svn.wordpress.org/trunk@825 602fd350-edb4-49c9-b593-d223f7449a82
14 lines
260 B
PHP
14 lines
260 B
PHP
<?php
|
|
|
|
require('../wp-config.php');
|
|
require_once('auth.php');
|
|
|
|
get_currentuserinfo();
|
|
|
|
if (0 == $user_level) {
|
|
$redirect_to = $siteurl . '/wp-admin/profile.php';
|
|
} else {
|
|
$redirect_to = $siteurl . '/wp-admin/post.php';
|
|
}
|
|
header ("Location: $redirect_to");
|
|
?>
|