0e101b6e58
git-svn-id: https://develop.svn.wordpress.org/trunk@822 602fd350-edb4-49c9-b593-d223f7449a82
13 lines
247 B
PHP
13 lines
247 B
PHP
<?php
|
|
|
|
require('../wp-config.php');
|
|
|
|
$user = get_userdatabylogin($log);
|
|
|
|
if (0 == $user->user_level) {
|
|
$redirect_to = $site . '/wp-admin/profile.php';
|
|
} else {
|
|
$redirect_to = $site . '/wp-admin/post.php';
|
|
}
|
|
header ("Location: $redirect_to");
|
|
?>
|