mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 07:20:01 +01:00
37c1c275bf
git-svn-id: http://svn.automattic.com/wordpress/trunk@825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
14 lines
260 B
PHP
14 lines
260 B
PHP
<?php
|
|
|
|
require('../wp-config.php');
|
|
require_once('auth.php');
|
|
|
|
get_currentuserinfo();
|
|
|
|
if (0 == $user_level) {
|
|
$redirect_to = $siteurl . '/wp-admin/profile.php';
|
|
} else {
|
|
$redirect_to = $siteurl . '/wp-admin/post.php';
|
|
}
|
|
header ("Location: $redirect_to");
|
|
?>
|