Jump to content


Submitter

SUPPORT TOPIC File Information

  • Submitted: Jul 29 2009 10:14 AM
  • Last Updated: Aug 11 2009 09:46 AM
  • File Size: 90K
  • Views: 6806
  • Downloads: 671

Previous Versions

  • 29 Jul 2009 Download (IM) IPB SDK V3
  • 29 Jul 2009 Download (IM) IPB SDK V3

Download (IM) IPB SDK V3

* * * * * 3 Votes



This is just an alpha version of the IPB SDK for IPB 3. Currently it supports:

Here is a list of available functions.

Login & Register:

* Authenticate the user - creates account if possible
* Change a user's email address
* Change a login name/display name
* Change a user's password
* Check login information to see if it's valid
* Create a user's account
* Delete a user's cookies
* Check if the email is already in use
* Check to see if a member is logged in
* Login a member without checking credentials
* Delete members cookies set by the board And logout the member

Member, Group & Access:

*  buildAvatar - Returns user's avatar
* Parse a member for display
* Parse a member's profile photo
* Determine if two members are friends
* Determine if a member is ignoring another member
* Check forum permissions Forum perms can be: view read start reply upload download - by member
* Cleans a username or display name, also checks for any errors
* Check forum permissions - by group(s)
* Delete personal photo function
* Fetches SEO name, updating the table if required
* Retrieve all IP addresses a user (or multiple users) have used
* Create new member - extended
* Generates a log in key
* Generates a compiled passhash.
* Generates a password salt.
* Grab all hosted avatar gallery directories
* Grab all images within a particular avatar gallery directory
* Check to see if a member is banned (or not)
* Load member information
* Sends a query to the IPS Spam Service
* Delete member(s)
* Remove member's avatar
* Remove member uploaded photos
* Save member information
* Saves the member's avatar
* Set up defaults for a guest user
* Updates member's DB row password - extended
* Upload personal photo function


Simple to use interface.

currently there is only one simple example, we will extend this within time.
documentation and class reference available also.

Demo:

<?php

<?php

// Define the IPB path here on inside the SDKConfig.php file.
define('IPB_PATH', '');
require_once('../SDKConfig.php');
$sdk = IPBSDK::instance();
$login = $sdk->getClass('login');
$self = $_SERVER['PHP_SELF'];

if( $sdk->request['dologin'] )
{
	$login->authLogin( 'admin', '123' );
	header('Location: ' . $self);
}

if( $sdk->request['logout'] )
{
	$login->logOut();
	header('Location: ' . $self);
}

if( !$login->isLoggedIn() )
{
	
	echo "You are not logged in.<Br/>";
	echo "Please <a href='{$self}?dologin=1'>Here</a> to login as admin.";
}
else
{
	echo "Welcome, {$sdk->memberData['members_display_name']} <Br/>";
	echo "Please <a href='{$self}?logout=1'>Here</a> to logout.";
}


var_dump($login->checkLoginAuth('username', 'email', 'password'));


Bug reporting and feature requests please refer to the bug tracker (link available at the top of the page).
We will be updating it with new features and options within time.






  • 1,381 Total Files
  • 44 Total Categories
  • 164 Total Authors
  • 480,463 Total Downloads
  • Deviant Latest File
  • Bitter Latest Submitter

4 user(s) are online (in the past 30 minutes)

1 members, 2 guests, 0 anonymous users


blAQbARt, Google