It is currently Wed Jun 26, 2019 2:14 pm




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: Integration with e107
PostPosted: Mon Oct 31, 2011 12:42 am 
Support Staff

Joined: Fri Nov 01, 2002 4:06 am
Posts: 43
The following PHP script integrates the ChatBlazer login process with e107. Tested on version 0.7.26.

Create a PHP script (e.g. cb_e107.php) using the content below and put it in the e107 root directory.

<?php
require_once('class2.php');

$reply = array();
$username = $_POST['username'];
$password = md5($_POST['password']);

$v = $sql->db_Select("user", "*", "user_loginname = '".$tp->toDB($username)."' AND user_password = '{$password}' AND user_ban!=2 ");
if ($v == 1) {
   $reply['username'] = $username;
}
else {
   // Comment out the following line to prevent ChatBlazer from falling
   // back to its own user database.
   $reply['__status'] = 1;
}

echo http_build_query($reply);
?>



_________________
Samuel
ChatBlazer Support
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron