Wordpress/wp-admin/index.php
Matt Mullenweg 0e101b6e58 Redirect to profile.php if user level == 0.
git-svn-id: https://develop.svn.wordpress.org/trunk@822 602fd350-edb4-49c9-b593-d223f7449a82
2004-02-02 02:35:08 +00:00

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