[ArcEmu][PhP]Joomla! Controller.php Account Registration Error menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    Firedemon13's Avatar Member
    Reputation
    1
    Join Date
    Jul 2010
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [ArcEmu][PhP]Joomla! Controller.php Account Registration Error

    Trying to link my Joomla! Account registration to the ArcEmu database, it creates the accounts fine, it's just that it won't allow any log in until the LogonServer is restarted... I don't really want to have a seperate registration page for everything... The trinity core registration works just fine with the controller and allows me to log in, yet the ArcEmu does not... Any suggestions? :confused:

    Controller.php
    Code:
    <?php
    /**
     * @version		$Id: controller.php 16385 2010-04-23 10:44:15Z ian $
     * @package		Joomla
     * @subpackage	Content
     * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
     * @license		GNU/GPL, see LICENSE.php
     * Joomla! is free software. This version may have been modified pursuant to the
     * GNU General Public License, and as distributed it includes or is derivative
     * of works licensed under the GNU General Public License or other free or open
     * source software licenses. See COPYRIGHT.php for copyright notices and
     * details.
     */
    
    // Check to ensure this file is included in Joomla!
    defined('_JEXEC') or die( 'Restricted access' );
    
    jimport('joomla.application.component.controller');
    
    /**
     * User Component Controller
     *
     * @package		Joomla
     * @subpackage	Weblinks
     * @since 1.5
     */
    
    // Start ArcEmu Class
    
    class DBLayer
    {
    	var $prefix;
    	var $link_id;
    	var $query_result;
    
    	var $saved_queries = array();
    	var $num_queries = 0;
    
    
    	function DBLayer($db_host, $db_user, $db_pass, $db_name, $db_prefix, $p_connect)
    	{
    		$this->prefix = $db_prefix;
    
    		if ($p_connect)
    			$this->link_id = @mysql_pconnect($db_host, $db_user, $db_pass);
    		else
    			$this->link_id = @mysql_connect($db_host, $db_user, $db_pass);
    
    		if ($this->link_id)
    		{
    			if (@mysql_select_db($db_name, $this->link_id))
    				return $this->link_id;
    			else
    				error('Unable to select database. MySQL reported: '.mysql_error(), __FILE__, __LINE__);
    		}
    	}
    
    
    	function select_db($dbsel)
    	{
    
    	return @mysql_select_db($dbsel, $this->link_id);
    
    	}
    	
    	function pun_htmlspecialchars($str)
    	{
    	$str = preg_replace('/&(?!#[0-9]+;)/s', '&amp;', $str);
    	$str = str_replace(array('<', '>', '"'), array('&lt;', '&gt;', '&quot;'), $str);
    
    	return $str;
    	}
    	
    	function start_transaction()
    	{
    		return;
    	}
    
    
    	function end_transaction()
    	{
    		return;
    	}
    
    
    	function query($sql, $unbuffered = false)
    	{
    		if (defined('PUN_SHOW_QUERIES'))
    			$q_start = get_microtime();
    
    		if ($unbuffered)
    			$this->query_result = @mysql_unbuffered_query($sql, $this->link_id);
    		else
    			$this->query_result = @mysql_query($sql, $this->link_id);
    
    		if ($this->query_result)
    		{
    			if (defined('PUN_SHOW_QUERIES'))
    				$this->saved_queries[] = array($sql, sprintf('%.5f', get_microtime() - $q_start));
    
    			++$this->num_queries;
    
    			return $this->query_result;
    		}
    		else
    		{
    			if (defined('PUN_SHOW_QUERIES'))
    				$this->saved_queries[] = array($sql, 0);
    
    			return false;
    		}
    	}
    
    function result($query_id = 0, $row = 0)
    	{
    		return ($query_id) ? @mysql_result($query_id, $row) : false;
    	}
    
    	function fetch_assoc($query_id = 0)
    	{
    		return ($query_id) ? @mysql_fetch_assoc($query_id) : false;
    	}
    
    
    	function fetch_row($query_id = 0)
    	{
    		return ($query_id) ? @mysql_fetch_row($query_id) : false;
    	}
    
    
    	function num_rows($query_id = 0)
    	{
    		return ($query_id) ? @mysql_num_rows($query_id) : false;
    	}
    
    
    	function affected_rows()
    	{
    		return ($this->link_id) ? @mysql_affected_rows($this->link_id) : false;
    	}
    
    
    	function insert_id()
    	{
    		return ($this->link_id) ? @mysql_insert_id($this->link_id) : false;
    	}
    
    
    	function get_num_queries()
    	{
    		return $this->num_queries;
    	}
    
    
    	function get_saved_queries()
    	{
    		return $this->saved_queries;
    	}
    
    
    	function free_result($query_id = false)
    	{
    		return ($query_id) ? @mysql_free_result($query_id) : false;
    	}
    
    
    	function escape($str)
    	{
    		if (is_array($str))
    			return '';
    		else if (function_exists('mysql_real_escape_string'))
    			return mysql_real_escape_string($str, $this->link_id);
    		else
    			return mysql_escape_string($str);
    	}
    
    
    	function error()
    	{
    		$result['error_sql'] = @current(@end($this->saved_queries));
    		$result['error_no'] = @mysql_errno($this->link_id);
    		$result['error_msg'] = @mysql_error($this->link_id);
    
    		return $result;
    	}
    
    
    	function close()
    	{
    		if ($this->link_id)
    		{
    			if ($this->query_result)
    				@mysql_free_result($this->query_result);
    
    			return @mysql_close($this->link_id);
    		}
    		else
    			return false;
    	}
    }
    
    // End ArcEmu Class
    
    class UserController extends JController
    {
    	/**
    	 * Method to display a view
    	 *
    	 * @access	public
    	 * @since	1.5
    	 */
    	function display()
    	{
    		parent::display();
    	}
    
    	function edit()
    	{
    		global $mainframe, $option;
    
    		$db		=& JFactory::getDBO();
    		$user	=& JFactory::getUser();
    
    		if ( $user->get('guest')) {
    			JError::raiseError( 403, JText::_('Access Forbidden') );
    			return;
    		}
    
    		JRequest::setVar('layout', 'form');
    
    		parent::display();
    	}
    
    	function save()
    	{
    		// Check for request forgeries
    		JRequest::checkToken() or jexit( 'Invalid Token' );
    
    		$user	 =& JFactory::getUser();
    		$userid = JRequest::getVar( 'id', 0, 'post', 'int' );
    
    		// preform security checks
    		if ($user->get('id') == 0 || $userid == 0 || $userid <> $user->get('id')) {
    			JError::raiseError( 403, JText::_('Access Forbidden') );
    			return;
    		}
    
    		//clean request
    		$post = JRequest::get( 'post' );
    		$post['username']	= JRequest::getVar('username', '', 'post', 'username');
    		$post['password']	= JRequest::getVar('password', '', 'post', 'string', JREQUEST_ALLOWRAW);
    		$post['password2']	= JRequest::getVar('password2', '', 'post', 'string', JREQUEST_ALLOWRAW);
    	
    		// get the redirect
    		$return = JURI::base();
    		
    		// do a password safety check
    		if(strlen($post['password']) || strlen($post['password2'])) { // so that "0" can be used as password e.g.
    			if($post['password'] != $post['password2']) {
    				$msg	= JText::_('PASSWORDS_DO_NOT_MATCH');
    				// something is wrong. we are redirecting back to edit form.
    				// TODO: HTTP_REFERER should be replaced with a base64 encoded form field in a later release
    				$return = str_replace(array('"', '<', '>', "'"), '', @$_SERVER['HTTP_REFERER']);
    				if (empty($return) || !JURI::isInternal($return)) {
    					$return = JURI::base();
    				}
    				$this->setRedirect($return, $msg, 'error');
    				return false;
    			}
    		}
    
    		// we don't want users to edit certain fields so we will unset them
    		unset($post['gid']);
    		unset($post['block']);
    		unset($post['usertype']);
    		unset($post['registerDate']);
    		unset($post['activation']);
    
    		// store data
    		$model = $this->getModel('user');
    
    		if ($model->store($post)) {
    $host="localhost";
    $user="root";
    $pass="root";
    $realmdata="logon";
    $conn = mysql_connect($host, $user, $pass) or die(mysql_error());
    mysql_select_db($realmdata, $conn) or die(mysql_error());
    $username = ($_POST["username"]);
    $password = ($_POST["password"]);
    $ip = getenv("REMOTE_ADDR");
    $email = $_POST["email"];
    $query = "UPDATE account SET password = '".$password."'), sessionkey = null , v = null , s = null , email = '".$email."' WHERE login = '".$username."' ";
    $result = mysql_query($query) or die(mysql_error()); 
    			$msg	= JText::_( 'Your settings have been saved.' );
    		} else {
    			//$msg	= JText::_( 'Error saving your settings.' );
    			$msg	= $model->getError();
    		}
    
    		
    		$this->setRedirect( $return, $msg );
    	}
    
    	function cancel()
    	{
    		$this->setRedirect( 'index.php' );
    	}
    
    	function login()
    	{
    		// Check for request forgeries
    		JRequest::checkToken('request') or jexit( 'Invalid Token' );
    
    		global $mainframe;
    
    		if ($return = JRequest::getVar('return', '', 'method', 'base64')) {
    			$return = base64_decode($return);
    			if (!JURI::isInternal($return)) {
    				$return = '';
    			}
    		}
    
    		$options = array();
    		$options['remember'] = JRequest::getBool('remember', false);
    		$options['return'] = $return;
    
    		$credentials = array();
    		$credentials['username'] = JRequest::getVar('username', '', 'method', 'username');
    		$credentials['password'] = JRequest::getString('passwd', '', 'post', JREQUEST_ALLOWRAW);
    
    		//preform the login action
    		$error = $mainframe->login($credentials, $options);
    
    		if(!JError::isError($error))
    		{
    			// Redirect if the return url is not registration or login
    			if ( ! $return ) {
    				$return	= 'index.php?option=com_user';
    			}
    
    			$mainframe->redirect( $return );
    		}
    		else
    		{
    			// Facilitate third party login forms
    			if ( ! $return ) {
    				$return	= 'index.php?option=com_user&view=login';
    			}
    
    			// Redirect to a login form
    			$mainframe->redirect( $return );
    		}
    	}
    
    	function logout()
    	{
    		global $mainframe;
    
    		//preform the logout action
    		$error = $mainframe->logout();
    
    		if(!JError::isError($error))
    		{
    			if ($return = JRequest::getVar('return', '', 'method', 'base64')) {
    				$return = base64_decode($return);
    				if (!JURI::isInternal($return)) {
    					$return = '';
    				}
    			}
    
    			// Redirect if the return url is not registration or login
    			if ( $return && !( strpos( $return, 'com_user' )) ) {
    				$mainframe->redirect( $return );
    			}
    		} else {
    			parent::display();
    		}
    	}
    
    	/**
    	 * Prepares the registration form
    	 * @return void
    	 */
    	function register()
    	{
    		$usersConfig = &JComponentHelper::getParams( 'com_users' );
    		if (!$usersConfig->get( 'allowUserRegistration' )) {
    			JError::raiseError( 403, JText::_( 'Access Forbidden' ));
    			return;
    		}
    
    		$user 	=& JFactory::getUser();
    
    		if ( $user->get('guest')) {
    			JRequest::setVar('view', 'register');
    		} else {
    			$this->setredirect('index.php?option=com_user&task=edit',JText::_('You are already registered.'));
    		}
    
    		parent::display();
    	}
    
    	/**
    	 * Save user registration and notify users and admins if required
    	 * @return void
    	 */
    	function register_save()
    	{
    		global $mainframe;
    
    		// Check for request forgeries
    		JRequest::checkToken() or jexit( 'Invalid Token' );
    
    		// Get required system objects
    		$user 		= clone(JFactory::getUser());
    		$pathway 	=& $mainframe->getPathway();
    		$config		=& JFactory::getConfig();
    		$authorize	=& JFactory::getACL();
    		$document   =& JFactory::getDocument();
    
    		// If user registration is not allowed, show 403 not authorized.
    		$usersConfig = &JComponentHelper::getParams( 'com_users' );
    		if ($usersConfig->get('allowUserRegistration') == '0') {
    			JError::raiseError( 403, JText::_( 'Access Forbidden' ));
    			return;
    		}
    
    		// Initialize new usertype setting
    		$newUsertype = $usersConfig->get( 'new_usertype' );
    		if (!$newUsertype) {
    			$newUsertype = 'Registered';
    		}
    
    		// Bind the post array to the user object
    		if (!$user->bind( JRequest::get('post'), 'usertype' )) {
    			JError::raiseError( 500, $user->getError());
    		}
    
    		// Set some initial user values
    		$user->set('id', 0);
    		$user->set('usertype', $newUsertype);
    		$user->set('gid', $authorize->get_group_id( '', $newUsertype, 'ARO' ));
    
    		$date =& JFactory::getDate();
    		$user->set('registerDate', $date->toMySQL());
    
    		// If user activation is turned on, we need to set the activation information
    		$useractivation = $usersConfig->get( 'useractivation' );
    		if ($useractivation == '1')
    		{
    			jimport('joomla.user.helper');
    			$user->set('activation', JUtility::getHash( JUserHelper::genRandomPassword()) );
    			$user->set('block', '1');
    		}
    
    		// If there was an error with registration, set the message and display form
    		if ( !$user->save() )
    		{
    			JError::raiseWarning('', JText::_( $user->getError()));
    			$this->register();
    			return false;
    		}
    
    		// Send registration confirmation mail
    		$password = JRequest::getString('password', '', 'post', JREQUEST_ALLOWRAW);
    		$password = preg_replace('/[\x00-\x1F\x7F]/', '', $password); //Disallow control chars in the email
    		UserController::_sendMail($user, $password);
    
    		// Start ArcEmu Registration
    		$db_host='localhost';
    		$db_user='root';
    		$db_pass='root';
    		$db_name='logon';
    		$db = new DBLayer($db_host, $db_user, $db_pass, $db_name, $db_prefix, $p_connect);
    		$username = mysql_real_escape_string($_POST["username"]);
    		$password = mysql_real_escape_string($_POST["password"]);
    		$ip = getenv("REMOTE_ADDR");
    		$email = $_POST["email"];
    		$db->select_db($db_name);
    		$result = $db->query("INSERT INTO accounts (login, password, gm, banned, email, flags) VALUES ('".$username."','".$password."','0','0','".$email."','24')") or die(mysql_error());							
    		$db->select_db($db_name);
    		$result = $db->query("SELECT login FROM accounts WHERE login = '".$username."' LIMIT 1") or die(mysql_error());
    		$rows   = $db->num_rows($result);
    		if ($rows>=1)
    			{								
    				$db->select_db($db_name);
    			}
    
    		// End ArcEmu Registration
    							
    		
    
    		// Everything went fine, set relevant message depending upon user activation state and display message
    		if ( $useractivation == 1 ) {
    			$message  = JText::_( 'REG_COMPLETE_ACTIVATE' );
    		} else {
    			$message = JText::_( 'REG_COMPLETE' );
    		}
    
    		$this->setRedirect('index.php', $message);
    	}
    
    	function activate()
    	{
    		global $mainframe;
    
    		// Initialize some variables
    		$db			=& JFactory::getDBO();
    		$user 		=& JFactory::getUser();
    		$document   =& JFactory::getDocument();
    		$pathway 	=& $mainframe->getPathWay();
    
    		$usersConfig = &JComponentHelper::getParams( 'com_users' );
    		$userActivation			= $usersConfig->get('useractivation');
    		$allowUserRegistration	= $usersConfig->get('allowUserRegistration');
    
    		// Check to see if they're logged in, because they don't need activating!
    		if ($user->get('id')) {
    			// They're already logged in, so redirect them to the home page
    			$mainframe->redirect( 'index.php' );
    		}
    
    		if ($allowUserRegistration == '0' || $userActivation == '0') {
    			JError::raiseError( 403, JText::_( 'Access Forbidden' ));
    			return;
    		}
    
    		// create the view
    		require_once (JPATH_COMPONENT.DS.'views'.DS.'register'.DS.'view.html.php');
    		$view = new UserViewRegister();
    
    		$message = new stdClass();
    
    		// Do we even have an activation string?
    		$activation = JRequest::getVar('activation', '', '', 'alnum' );
    		$activation = $db->getEscaped( $activation );
    
    		if (empty( $activation ))
    		{
    			// Page Title
    			$document->setTitle( JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' ) );
    			// Breadcrumb
    			$pathway->addItem( JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' ));
    
    			$message->title = JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' );
    			$message->text = JText::_( 'REG_ACTIVATE_NOT_FOUND' );
    			$view->assign('message', $message);
    			$view->display('message');
    			return;
    		}
    
    		// Lets activate this user
    		jimport('joomla.user.helper');
    		if (JUserHelper::activateUser($activation))
    		{
    			// Page Title
    			$document->setTitle( JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' ) );
    			// Breadcrumb
    			$pathway->addItem( JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' ));
    
    			$message->title = JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' );
    			$message->text = JText::_( 'REG_ACTIVATE_COMPLETE' );
    		}
    		else
    		{
    			// Page Title
    			$document->setTitle( JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' ) );
    			// Breadcrumb
    			$pathway->addItem( JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' ));
    
    			$message->title = JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' );
    			$message->text = JText::_( 'REG_ACTIVATE_NOT_FOUND' );
    		}
    
    		$view->assign('message', $message);
    		$view->display('message');
    	}
    
    	/**
    	 * Password Reset Request Method
    	 *
    	 * @access	public
    	 */
    	function requestreset()
    	{
    		// Check for request forgeries
    		JRequest::checkToken() or jexit( 'Invalid Token' );
    
    		// Get the input
    		$email		= JRequest::getVar('email', null, 'post', 'string');
    
    		// Get the model
    		$model = &$this->getModel('Reset');
    
    		// Request a reset
    		if ($model->requestReset($email) === false)
    		{
    			$message = JText::sprintf('PASSWORD_RESET_REQUEST_FAILED', $model->getError());
    			$this->setRedirect('index.php?option=com_user&view=reset', $message);
    			return false;
    		}
    
    		$this->setRedirect('index.php?option=com_user&view=reset&layout=confirm');
    	}
    
    	/**
    	 * Password Reset Confirmation Method
    	 *
    	 * @access	public
    	 */
    	function confirmreset()
    	{
    		// Check for request forgeries
    		JRequest::checkToken() or jexit( 'Invalid Token' );
    
    		// Get the input
    		$token = JRequest::getVar('token', null, 'post', 'alnum');
    		$username = JRequest::getVar('username', null, 'post');
    
    		// Get the model
    		$model = &$this->getModel('Reset');
    
    		// Verify the token
    		if ($model->confirmReset($token, $username) !== true)
    		{
    			$message = JText::sprintf('PASSWORD_RESET_CONFIRMATION_FAILED', $model->getError());
    			$this->setRedirect('index.php?option=com_user&view=reset&layout=confirm', $message);
    			return false;
    		}
    		$this->setRedirect('index.php?option=com_user&view=reset&layout=complete');
    	}
    
    	/**
    	 * Password Reset Completion Method
    	 *
    	 * @access	public
    	 */
    	function completereset()
    	{
    		// Check for request forgeries
    		JRequest::checkToken() or jexit( 'Invalid Token' );
    
    		// Get the input
    		$password1 = JRequest::getVar('password1', null, 'post', 'string', JREQUEST_ALLOWRAW);
    		$password2 = JRequest::getVar('password2', null, 'post', 'string', JREQUEST_ALLOWRAW);
    
    		// Get the model
    		$model = &$this->getModel('Reset');
    
    		// Reset the password
    		if ($model->completeReset($password1, $password2) === false)
    		{
    			$message = JText::sprintf('PASSWORD_RESET_FAILED', $model->getError());
    			$this->setRedirect('index.php?option=com_user&view=reset&layout=complete', $message);
    			return false;
    		}
    
    		$message = JText::_('PASSWORD_RESET_SUCCESS');
    		$this->setRedirect('index.php?option=com_user&view=login', $message);
    	}
    
    	/**
    	 * Username Reminder Method
    	 *
    	 * @access	public
    	 */
    	function remindusername()
    	{
    		// Check for request forgeries
    		JRequest::checkToken() or jexit( 'Invalid Token' );
    
    		// Get the input
    		$email = JRequest::getVar('email', null, 'post', 'string');
    
    		// Get the model
    		$model = &$this->getModel('Remind');
    
    		// Send the reminder
    		if ($model->remindUsername($email) === false)
    		{
    			$message = JText::sprintf('USERNAME_REMINDER_FAILED', $model->getError());
    			$this->setRedirect('index.php?option=com_user&view=remind', $message);
    			return false;
    		}
    
    		$message = JText::sprintf('USERNAME_REMINDER_SUCCESS', $email);
    		$this->setRedirect('index.php?option=com_user&view=login', $message);
    	}
    
    	function _sendMail(&$user, $password)
    	{
    		global $mainframe;
    
    		$db		=& JFactory::getDBO();
    
    		$name 		= $user->get('name');
    		$email 		= $user->get('email');
    		$username 	= $user->get('username');
    
    		$usersConfig 	= &JComponentHelper::getParams( 'com_users' );
    		$sitename 		= $mainframe->getCfg( 'sitename' );
    		$useractivation = $usersConfig->get( 'useractivation' );
    		$mailfrom 		= $mainframe->getCfg( 'mailfrom' );
    		$fromname 		= $mainframe->getCfg( 'fromname' );
    		$siteURL		= JURI::base();
    
    		$subject 	= sprintf ( JText::_( 'Account details for' ), $name, $sitename);
    		$subject 	= html_entity_decode($subject, ENT_QUOTES);
    
    		if ( $useractivation == 1 ){
    			$message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password);
    		} else {
    			$message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL);
    		}
    
    		$message = html_entity_decode($message, ENT_QUOTES);
    
    		//get all super administrator
    		$query = 'SELECT name, email, sendEmail' .
    				' FROM #__users' .
    				' WHERE LOWER( usertype ) = "super administrator"';
    		$db->setQuery( $query );
    		$rows = $db->loadObjectList();
    
    		// Send email to user
    		if ( ! $mailfrom  || ! $fromname ) {
    			$fromname = $rows[0]->name;
    			$mailfrom = $rows[0]->email;
    		}
    
    		JUtility::sendMail($mailfrom, $fromname, $email, $subject, $message);
    
    		// Send notification to all administrators
    		$subject2 = sprintf ( JText::_( 'Account details for' ), $name, $sitename);
    		$subject2 = html_entity_decode($subject2, ENT_QUOTES);
    
    		// get superadministrators id
    		foreach ( $rows as $row )
    		{
    			if ($row->sendEmail)
    			{
    				$message2 = sprintf ( JText::_( 'SEND_MSG_ADMIN' ), $row->name, $sitename, $name, $email, $username);
    				$message2 = html_entity_decode($message2, ENT_QUOTES);
    				JUtility::sendMail($mailfrom, $fromname, $row->email, $subject2, $message2);
    			}
    		}
    	}
    }
    ?>
    ArcEmu scripts are documented in the file...

    [ArcEmu][PhP]Joomla! Controller.php Account Registration Error
  2. #2
    myran2's Avatar Contributor

    Reputation
    130
    Join Date
    Dec 2008
    Posts
    475
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I haven't used Arcemu in a long time, but the solution for this is pretty simple. Arcemu reloads its account DB every 10 minutes by default. Which means you'd have to wait 10 minutes after creating an account for it to be able to "see" your account. There should be an option in the logon config file that will allow you to change this.

    to test it, type "reload" into the logonserver after creating an account. If manually reloading works, just change the interval, if it doesn't, we can try something else.

  3. #3
    Vragoth's Avatar Established Member
    Reputation
    55
    Join Date
    Nov 2008
    Posts
    422
    Thanks G/R
    5/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try what Myran2 stated above, but having same account for everything isn't the most brightest or secure thing to do . Unless you secure it yourself and know how to secure it properly .

  4. #4
    Firedemon13's Avatar Member
    Reputation
    1
    Join Date
    Jul 2010
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by myran2 View Post
    I haven't used Arcemu in a long time, but the solution for this is pretty simple. Arcemu reloads its account DB every 10 minutes by default. Which means you'd have to wait 10 minutes after creating an account for it to be able to "see" your account. There should be an option in the logon config file that will allow you to change this.

    to test it, type "reload" into the logonserver after creating an account. If manually reloading works, just change the interval, if it doesn't, we can try something else.
    Thanks for the information, it seemed to do the trick, first time using ArcEmu, didn't realize it was so Config Based (Used to WCell and TC2)...
    But as my database becomes more populated will the short account reload time cause any issues with latency?

    Originally Posted by Vragoth View Post
    Try what Myran2 stated above, but having same account for everything isn't the most brightest or secure thing to do . Unless you secure it yourself and know how to secure it properly .
    I combined a Sha_Hash_Pass of the TC2 core with ArcEmu so the actually Joomla! Registration plugin hashes both passwords separately when entered and sent into the MySql database... Not only that but the servers that I have this running on is within my reach...

  5. #5
    myran2's Avatar Contributor

    Reputation
    130
    Join Date
    Dec 2008
    Posts
    475
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's good to hear that the solution was that simple.
    It's also cool to see someone else who has even heard of Wcell.

    GL with your project.

Similar Threads

  1. [ArcEmu]: Account registration website issue
    By CloudxEdge in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 07-07-2013, 08:58 PM
  2. [PHP] Account Creation Page Syntax Error
    By tranced in forum Programming
    Replies: 7
    Last Post: 04-26-2010, 10:39 PM
  3. PHP Account converter
    By brock106 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 12-01-2008, 03:26 PM
  4. [Guide] How to make a great website with account registration [Noob Friendly]
    By King Shaun in forum WoW EMU Guides & Tutorials
    Replies: 84
    Last Post: 06-16-2008, 08:26 PM
  5. Account Site Error...
    By Daxo in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 10-02-2007, 04:03 AM
All times are GMT -5. The time now is 08:45 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search