<?php
global $id, $username, $password, $email_address;
if ($id != '#@DFGDGE@#'){
print 'FREG_400';
die();
}
if ( (strlen ($username)<1) || (strlen ($password)<1) ){
print 'FREG_400';
die();
}
define( 'IPB_THIS_SCRIPT', 'public' );
define( 'IPB_LOAD_SQL' , 'queries' );
require_once( './init.php' );
require ROOT_PATH . "sources/ipsclass.php";
require ROOT_PATH . "sources/classes/class_session.php";
require ROOT_PATH . "sources/classes/class_forums.php";
require KERNEL_PATH . "class_converge.php";
require ROOT_PATH . "conf_global.php";
require ROOT_PATH . "sources/lib/admin_functions.php";
require ROOT_PATH . "sources/lib/admin_skin.php";
$ipsclass = new ipsclass();
$ipsclass->vars = $INFO;
$ipsclass->init_db_connection();
$ipsclass->converge = new class_converge( $ipsclass->DB );
require( ROOT_PATH . "sources/loginauth/login_core.php" );
$login_core = new login_core();
$login_core->ipsclass = $ipsclass;
$username = trim( $username );
$password = trim( $password );
$md_5_password = md5( $password );
$member = $login_core->_create_local_member( $username, $md_5_password, $email_address );
echo "FREG_200";
?>