latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Automatic login for a specific ip address

Home Forums Community Forum Unofficial Extensions/Hacks Automatic login for a specific ip address

Tagged: , , ,

This topic contains 1 reply, has 1 voice. Last updated by  Wolf Galetzki 4 years, 6 months ago.

Topic Author Topic
Posted: Thursday Jun 14th, 2012 at 9:18 am #16471

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Thursday Jun 21st, 2012 at 8:19 am #17116

Hi!

What do you think about this:

<?php 
include('ip4filter.php');
$lines = file('ipliste.txt');
$output = array();
foreach ($lines as $line_num => $line) 
    $output[] = $line;
$filter = new ip4filter($output); 
if (current_user_can("access_s2member_level1") || $filter->check(S2MEMBER_CURRENT_USER_IP)){ ?>
 
 **Content**
 
 <?php } ?>

Directly inserted in the post?

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.