nO way for nO admin

The script that disables all non admin users to enter the web site:

function admin_maintenace_mode() {

global $current_user;

get_currentuserinfo();

if($current_user->user_login != ‘admin’) {

echo “UNDER CONSTRUCTION”;

wp_die();

}

}

add_action(‘wp_head’, ‘admin_maintenace_mode’);

</code>

Thanks

=D

tags: & category: -