Wordpress/wp-admin/index.php
Matt Mullenweg 59d1012c9d Move all auth stuff into functions.
git-svn-id: https://develop.svn.wordpress.org/trunk@1947 602fd350-edb4-49c9-b593-d223f7449a82
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");
?>