Jump to content
  • 0

Question

Posted (edited)

hello.. i use other cp but i got lots of error and i dont know why... please help me!!

heres my config

<?php
$statistics = "on"; // write in "" on or off
$registration = "on"; // write in "" on or off
$md5 = "on"; //if you using md5 encrypt you must write replace off with on
$userminlength = "4"; // Username Minimum Length, default is 4
$usermaxlength = "10"; // Username Maximum Length, default is 10
$passminlength = "6"; // Password Minimum Length, recomended is 6
$passmaxlength = "12"; // Password Maximum Length, recomended is 12
$servername = "MyRo"; // You Ragnarok Server Name
/************************* Database ********************/
DEFINE(host, "localhost"); // database hostname default is localhost
DEFINE(user, "root"); // database username
DEFINE(pass, "ragnarok"); // database password
DEFINE(db, "ragnarok");  // database
/*********************** Main *************************/
DEFINE(Username, "Username");
DEFINE(Password, "Password");
DEFINE(RePassword, "Re-Password");
DEFINE(Email, "Email Address");
DEFINE(Remail, "Re-Email Address");
DEFINE(Rules, "Accept rules");
DEFINE(Email, "Email");
DEFINE(Sex, "Sex");
DEFINE(Male, "Male");
DEFINE(Female, "Female");
DEFINE(captcha, "Captcha");
DEFINE(check, "Check");
DEFINE(reset, "Reset");
DEFINE(submit, "Register");
/********************* Statistics **********************/
DEFINE(rm, "Registered Members");
DEFINE(cc, "Created Characters");
/****************** Registration Errors *****************/
DEFINE(vrules, "You must read and accept rules for complete registration!");
DEFINE(Already, "Username '+document.getElementById('username').value+' is already exits, please choose another Username");
DEFINE(ud, "You didn't enter a Username.");
DEFINE(un, "Username is Already Exits");
DEFINE(ul, "Username length must be from ".$userminlength." to ".$usermaxlength."");
DEFINE(ui, "Username contained are Illegal characters.");
DEFINE(pd, "You didn't enter a Password.");
DEFINE(pl, "Password length must be from ".$passminlength." to ".$passmaxlength."");
DEFINE(pi, "Password contained are Illegal characters.");
DEFINE(ed, "You didn't enter a Email.");
DEFINE(el, "Invalid Email Address");
DEFINE(ei, "You didn't enter a Username.");
DEFINE(rem, "Emails do not mutch");
DEFINE(pem, "Passwords do not mutch");
DEFINE(vcap, "Captcha must contain 5 chars");
DEFINE(vin, "Security code is Incorrect");
DEFINE(reg, "Username ".$username." Registered, now you can join in game<bGood luck!");
/********************* Mainterance **********************/
DEFINE(mainterance, "Sorry Registration are disabled at the moment");
$con = mysql_connect(host,user,pass);
?>

i got this from eathena and heres the link http://www.eathena.w...614&hl=register

bump... please help me w/ this

Edited by Byakuran

2 answers to this question

Recommended Posts

Posted (edited)

Hi Byakuran,

If you haven't already, you must properly define the values for your MySQL Username and Password for the registration script to access the 'ragnarok' database. Also, take into note that if you are using the latest version of rAthena; this script will not work. The values in the tables of `login` has been changed, and may cause this script to not function as it should.

/************************* Database ********************/
DEFINE(host, "localhost"); // database hostname default is localhost
DEFINE(user, "root"); // database username
DEFINE(pass, "ragnarok"); // database password
DEFINE(db, "ragnarok");  // database
Edited by Asura
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...