Wordpress/wp-admin/index.php
2004-02-26 16:15:48 +00:00

14 lines
290 B
PHP

<?php
require('../wp-config.php');
require_once('auth.php');
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");
?>