Не могу зарегистрироваться на сервере
Клиент Gracia Final
База L2jdb
на страничке регистрации делаю новый аккаунт..написано что создался и тд, захожу в игру - аккаунта нету, и в базе тоже, хотя настройки веб обвязки те которые нужны...
На сервере где то в конфигах стоит авторег ( правда не могу найти) но он стоит...
В чем причина не скажете?
Скрипт регистрации переделай под свою базу, т.е. сам запрос в бд внутри скрипта.
Авторег в конфиге логин сервера
You can't feeling! No you can't feeling! And you can't feeling!
— People = Shit
Авторег то стоит, и конвы настроены, а не может быть такого что что то с серваком?
SapFIRko: Клиент Gracia Final
База L2jdb
на страничке регистрации делаю новый аккаунт..написано что создался и тд, захожу в игру - аккаунта нету, и в базе тоже, хотя настройки веб обвязки те которые нужны...
На сервере где то в конфигах стоит авторег ( правда не могу найти) но он стоит...
В чем причина не скажете?
как ты обяснил должно работать
Автор, скинь сюда или в пм скрипт регистрации и скажи, какая сборка.
You can't feeling! No you can't feeling! And you can't feeling!
— People = Shit
Сборка скачана от сюда _http://www.la2portal.ru/load/12-1-0-1255_
Движок обвязки Moy-Web , пробовал и простой скрипт реистрации "ACM" и клиент не регистрирует
Еще вопрос на каком хостинге стоит сайт - если на бесплатном, то оно и не будет регить акки, если с хостингом порядок то выкладывай скрипт регистрации и структуру таблицы accounts, тогда и будем думать.
Я играю на стандартном (127.0.0.1)
Проблему решил не полностью - но теперь клиент регистрирует аккаунты...осталось чтото с Веб делать...
Структура регистрации )) - я пока поставил простой скрипт регистрации аккаунта, ACM...на нем настройки сделаны, он показывает скока создано акков, но почемуто не регает
Но если хочешь - вот код конфига
/**
* Account manager Configuration file
* @author Lauri Ls <[email protected]>
* @version $Id: configuration.php 20 2005-06-01 22:09:30Z madest $
* @package AccountManager
* @filesource
*/
#-------------------------------------
# SQL Database Configuration
#-------------------------------------
$sql['host'] = "localhost"; //Sql server address
$sql['user'] = "root"; //Sql login username
$sql['password'] = "root"; //Sql login password
$sql['database'] = "l2jdb"; //Sql database name
#-------------------------------------
# Admin Accounts (old version)
#-------------------------------------
$i = 0; // << DO not Delete this
//$login[$i]['login'] = "YourAdminLogin";
//$login[$i]['allow_delete'] = true;
//$i++;
#-------------------------------------
# Manager settings
#-------------------------------------
# access settings
$manager['admin_level'] = 100; // Set access_level value for manager admins (exact value!)
$manager['level_based'] = true; // Enable access_level based managment
# account creation
$manager['account_limit'] = 1000; // Account limit that can be created
$manager['default_level'] = 0; // Access level for created accounts (default 0),
// NB: Keep in mind that for banning it has to be negative value!
# Misc
$manager['dateformat'] = "d.M.Y"; // Date and timeformat for last_active fields
# Logging
$manager['log_enabled'] = false; // Path where logs will be written (true/false)
$manager['log_path'] = "log"; // Path where logs will be written
# Pages
$manager['account_creation'] = true; // Enables account creation page in manager (true/false)
$manager['online_page'] = true; // Enables page that shows currently online characters (true/false)
$manager['online_page_field'] = "level"; // Ordering fileld (char_name / level )
$manager['online_page_order'] = "desc"; // Order (asc/desc)
$manager['template_path'] = "templates/default/"; // Path to templates you want to use
#-------------------------------------
# Manager Admin - functionality
#-------------------------------------
$admin['can_delete'] = true; // Enable deletion for level based admins
#-------------------------------------
# Default User - functionality
#-------------------------------------
$user['set_pass'] = true; // Enables account owners to change their password (true/false)
$user['view_character'] = true; // Enables account owners to see their characters (true/false)
$user['can_delete'] = false; // Enables regular users to delete their characters (true/false)
// NOT WORKING //$user['can_search'] = true; // Enables account owners to change their password (true/false)
# ** End of configuration file !
?>
а это код регистрации
/**
* Account manager Registration form module
* @author Lauri Ls <[email protected]>
* @version $Id: Registration.php 15 2005-05-29 17:32:41Z madest $
* @package AccountManager
* @filesource
*/
/**
* Registration form
* @author Lauri Ls <[email protected]>
* @version $Id: Registration.php 15 2005-05-29 17:32:41Z madest $
* @package AccountManager
*/
class Registration extends Module
{
/**
* Constructor, specification template file and starts to create contents.
*/
function registration()
{
$this->Module();
if($this->template = temp_load($this->config->manager['template_path']."registration.htm"))
{
$this->check_form();
$this->output = $this->template;
} else {
$this->output = "Class:registration - Template not found";
}
}
/**
* Check form input and that
*/
function check_form()
{
include('configuration.php');
$fill['login'] = "";
if(isset($_POST['login'])&& isset($_POST['password']) && isset($_POST['password2']))
{
if($_POST['password']!="")
{
if($_POST['password']==$_POST['password2'])
{
if($this->get_count() < $this->config->manager['account_limit'])
{
// Account object creation with specified login and password
$accountObj = new account($_POST['login'], $_POST['password']);
$accountObj->access_level = $this->config->manager['default_level'];
if($accountObj->create() == true)
{
$this->write_log("REGISTRATION: Account created: '{$accountObj->login}'");
$this->template = "<font color=red>You have registred login \"<b>{$_POST['login']}</b>\".</font>".$this->template;
}else{
$this->template = "<font color=red>Login \"<b>{$_POST['login']}</b>\" is allready registred! Choose another</font>".$this->template;
}
} else {
$this->template = "<font color=red>Account limit {$manager['account_limit']} if full.</font>".$this->template;
}
}else{
$fill['login'] = $_POST['login'];
$this->template = "<font color=red>Password mismatch! Retype again.</font>".$this->template;
}
}else{
$this->template = "<font color=red>Fill password!</font>".$this->template;
}
}
$this->template = temp_subs($this->template, "register", $fill);
$ac_inf['registred'] = account_count();
$ac_inf['limit'] = $this->config->manager['account_limit'];
$this->template = temp_subs($this->template, "reg", $ac_inf);
}
/**
* Get account count in database
* @return int
*/
function get_count()
{
if($q = mysql_query("SELECT COUNT(login) as acs FROM accounts"))
{
$r = mysql_fetch_array($q);
return $r['acs'];
} else {
return false;
}
}
}
?>




