Redirect to profile.php if user level == 0.

git-svn-id: http://svn.automattic.com/wordpress/trunk@822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-02-02 02:35:08 +00:00
parent 724274c8d3
commit 4f3a01a6be
1 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,13 @@
<?php <?php
/* This will possibly be more later but for now let's just redirect. */ require('../wp-config.php');
header ('Location: post.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");
?> ?>