WordPress/wp-admin/index.php
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");
?>