",""); return str_replace($srch,$repl, LAN_MEMBERS_3); } } function sc_membersonly_returntohome() { $pref = e107::pref('core'); if($pref['membersonly_redirect'] == 'login') { return "".LAN_MEMBERS_4.""; } } function sc_membersonly_restricted_area() { return LAN_MEMBERS_1; } function sc_membersonly_login() { $srch = array("[","]"); $repl = array("",""); return str_replace($srch,$repl, LAN_MEMBERS_2); } } require_once(HEADERF); $mem = new membersonly; $BODY = e107::getParser()->parseTemplate( $MEMBERSONLY_TEMPLATE['default']['body'],true,$mem); echo $MEMBERSONLY_TEMPLATE['default']['header']; e107::getRender()->tablerender($MEMBERSONLY_TEMPLATE['default']['caption'], $BODY, 'membersonly'); echo $MEMBERSONLY_TEMPLATE['default']['footer']; require_once(FOOTERF); ?>