Jump to content
FLASH SALE (EXTENDED TO 2/21/19)! Take 20% off all store products! Read more... ×
We're hiring! We are accepting applications for Junior Moderator, Uploader, and Support Team. Read more... ×
Having trouble connecting to our Discord server or has your role been mistakenly removed? Let us know! Read more... ×

ubnt1337

Newbies
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ubnt1337

  • Rank
    New Flake

Profile Information

  • Software
    IPS4
  • Version
    4.3.1
  1. I have an application that checks a login against my forum. Back in 3.4.9 the code below would let me do that. Could anyone help me achive the same thing in 4? require_once( '../forum/initdata.php' ); require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' ); require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' ); $ipbRegistry = ipsRegistry::instance(); $ipbRegistry->init(); $user = $_POST['u']; $pass = $_POST['p']; $cleanname = IPSText::parseCleanValue($user); $member = IPSMember::load($cleanname, 'all', 'username'); $cleanpass = IPSText::parseCleanValue($pass); if(IPSMember::authenticateMember($member['member_id'], $cleanpass)) { if (IPSMember::isInGroup($member['member_id'], 4, true) || IPSMember::isInGroup($member['member_id'], 6, true) ) //admin { } } Thanks
×