WordPress/wp-admin/index.php

13 lines
234 B
PHP
Raw Normal View History

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