WordPress/wp-admin/index.php
saxmatt 340804aa79 Move all auth stuff into functions.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-14 03:00:55 +00:00

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");
?>