mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 18:18:01 +01:00
340804aa79
git-svn-id: http://svn.automattic.com/wordpress/trunk@1947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
14 lines
281 B
PHP
14 lines
281 B
PHP
<?php
|
|
|
|
require('../wp-config.php');
|
|
auth_redirect();
|
|
|
|
get_currentuserinfo();
|
|
|
|
if (0 == $user_level) {
|
|
$redirect_to = get_settings('siteurl') . '/wp-admin/profile.php';
|
|
} else {
|
|
$redirect_to = get_settings('siteurl') . '/wp-admin/post.php';
|
|
}
|
|
header ("Location: $redirect_to");
|
|
?>
|