Jump to content

ubnt1337

Newbie
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Software
    IPS4
  • Version
    4.3.1

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ubnt1337's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I managed to solve it, if you still need help i can help you.
  2. 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
×
×
  • Create New...