Wordpress/wp-admin/index.php

14 lines
281 B
PHP
Raw Normal View History

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