Location: PHPKode > projects > MembersGear > membersgear/config/if_user_is_bann_and_message_get_set_settings.php
<?php

    // Ban Ip Address, Host, Ip Range stored in the database table "banlist"
    require_once(INCLUDE_DIR.  '/banlist_class.php');
    $banlist_config = new banlist_class();


    if(!strpos($_SERVER['SCRIPT_NAME'],'user_banned.php')>0)
    {
        if($banlist_config->isBanned())
            Redirect(WEB_URL. '/user_banned.php?hostip='.$_SERVER['REMOTE_ADDR'].'&hostname='.gethostbyaddr($_SERVER['REMOTE_ADDR']),true);
    }

    // Include MessageGetSet class
    global $message;
    require_once(INCLUDE_DIR.'/messagegetset.php');
    $message = new message_class();


?>
Return current item: MembersGear