Mask ip for mod and above

Started by rickandmary, July 20, 2012, 01:41:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rickandmary

This will mask moderators and above ip's after being off the site for 1 hour or more.

add to cleanup.php

/////////Set IP for Mods and above to block nosey gits from trying to access////////////
    $hour= 1*3600;
    $dt = sqlesc(get_date_time(gmtime() - $hour));
    mysql_query("UPDATE users SET ip = '127.0.0.0' WHERE  class >= " .  UC_MODERATOR . " AND  last_login < $dt") or sqlerr(__FILE__, __LINE__);


All credit to author