The website doesn’t show register only Registration is closed. Someone can help me? i want open registration.
[php]<?php
if (ALLOW_OPEN != 1){
exit(“You can’t open this site directly”);
}
?>
'; if(!ctype_alnum($val) and $key <> 'KalEmail' and $key <> 'KalEmail2'and $key <> 'sub') { $error = "You cannot use special characters such as *, /, ?, =, <, >, -, ! or a space"; die("Illegal input detected in post variable \"".$key."\" with value ".$val.". The administrator has been notified."); //die($error); //die("You cannot use special characters such as *, /, # or ?"); } } //Define posted variables $login = ereg_replace("[^A-Za-z0-9]", "", $_POST['KalLogin']); $password = ereg_replace("[^A-Za-z0-9]", "", $_POST['KalPassword']); $password2 = ereg_replace("[^A-Za-z0-9]", "", $_POST['KalPassword2']); $email = $_POST['KalEmail']; $email2 = $_POST['KalEmail2']; //Checking post variables $sql = mssql_num_rows(mssql_query("SELECT UID FROM Login WHERE ID='".$login."'")); //check is username already exists if($sql > 0) { $error = "Username already in use."; include 'pages/register/failed.php'; } else { if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) { unset($_SESSION['security_code']); if($email == $email2) { if (check_email_address($email)) { if($password == $password2) { if((strlen($login) >= 4) AND (strlen($login) <= 10)) //check length login { if((strlen($password) >= 5) AND (strlen($password) <= 8)) //check length pw { $sql2 = mssql_num_rows(mssql_query("SELECT * FROM LoginExtend WHERE UserEmail='".$email."'")); if($sql2 < 3) { $pass = encode($password); mssql_query("INSERT INTO Login(ID, PWD, Birth, Type, ExpTime) VALUES ('".$login."', ".$pass.", '19190101', '1', '4000')"); $lastuid = mssql_fetch_array(mssql_query("Select TOP 1 UID from Login order by UID desc")); $uid = $lastuid['UID']; $string = CreateString(15); echo 'Your account has been successfully made. Before you can login, you need to activate your account.
You have received an email with an activation key, please follow the instructions.
Sending activation e-mail........
'; mssql_query("INSERT INTO LoginExtend(UID, UserEmail, UserRegIP, UserLastIP, UserLoginAttempt, UserLastLoginDate, ActivationKey, Server, StarterPoints) VALUES(".$uid.", '".$email."', '".$_SERVER['REMOTE_ADDR']."', '".$_SERVER['REMOTE_ADDR']."', -1, GETDATE(), '".$string."', '0', 20)"); require $root_url.'/mailer2.php?type=activation&pw='.$password.'&id='.$login.'&email='.$email.'&key='.$string; echo '
If you didn\'t receive the activation email, click here to resend'; } else { $error = "There are already 2 accounts on this e-mail address"; include 'pages/register/failed.php'; } } else { $error = "Password is too long/short! Min. 5 chars, max. 8"; include 'pages/register/failed.php'; } } else { $error = "Username is too long/short! Min. 4 chars, max. 10"; include 'pages/register/failed.php'; } } else { $error = "Passwords do not match"; include 'pages/register/failed.php'; } } else { $error = "Email is not valid."; include 'pages/register/failed.php'; } } else { $error = "Emails do not match"; include 'pages/register/failed.php'; } } else { $error = "Wrong security code"; include 'pages/register/failed.php'; } } } else { echo "
Login name: | "; echo "(min[4], max[10]) | "; echo "
"; echo " | |
Login password: | "; echo "(min[5], max[8]) | "; echo "
Re-type password: | "; echo "(min[5], max[8]) | "; echo "
"; echo " | |
Your email: | "; echo ""; echo " |
Re-type email: | "; echo ""; echo " |
"; echo " | |
"; echo " | "; echo " |
Terms of Service | "; //echo ""; /* Server rules 1. Accounts The GM-team is not responsible for you losing your secret number, password or ID. In certain cases you may be able to retrieve your secret number or password by using the User Panel. Trading accounts or items for other servers is FORBIDDEN. We don't help scammed players in this case. Attempting to sell accounts or items for real money (eBay, PayPal, ...) is strictly FORBIDDEN. Sharing accounts or items is AT OWN RISK. We will never restore items when we find out you gave away your PW/ID or used the same ID/PW info on another server. 2. Scamming If your character is shared and is found "empty", we will not restore items. Sharing is a risk you take so only share with somebody you know well. If your character is shared and is found "empty", the players on which the items are now, will not be blocked. If you won't bother keeping the account for yourself, we won't bother spending time finding who took your stuff and block him. If you get scammed while trading items/accounts for another server, we will not restore the account/items because we cannot verify if the transaction occured on the other server or not. Keeping drops in party cannot be considered scamming. Don't party players that you don't know, and if you do, make a droprule like finders-keepers. 3. Insulting Insulting is not the way to play a game. If you are found excessively insulting (the GM in question may decide whether the insults were excessive or not), you risk getting a number of warnings. When you have 3 warnings, your account will be blocked for 1 week. When the insults are over the top, like racial/sexual insults, we can decide to block your account for 3 to 7 days. Insulting a GM will immediately get you blocked for the amount of days the GM in question feels appropriate (1 day up to permanent). 4. RB-Killing It is very hard to prohibit RB-Killing because of the many different cases, but generally please try to think of the other player's feelings, even if you don't like them. 5. Hacking Hacking in any way (2 jobs, storms, speed, etc) will get you banned and IP banned permanently. So think about the people in your area that play on the same IP or range (e.g. Internet caf?). UCEs are not allowed when playing on SwordOnline. Even if they are attached to another process, you will get automatically banned by GBL and unban is impossible. You will also get banned on Hardware ID through GBL. This means you will not be able to play on any server supported by K2O with your computer, even if your IP changes. 6. GM Impersonators There are always people trying to ruin the fun for others. There may be people that tell you they are GM's and ask for your items or id and password. Do not trust these people! A real GM will never ask you to give your items to him/her. We also will not ask you for your login data, if we need them, we can get them without asking. If you get scammed by these people we can not help you. We do expect a certain level of intelligence from the players here. We hold the right to block players with names that match GM names but with capitals in other places. (e.g. GM: junk, Impersonator: junK) 7. Update notifications Server news or required updates will be posted in Notices on the forum and on the homepage. Shoutspammed URLs ingame are not ours. 8. GameMasters GMs do not play active on this server that means: No GMs in war, no GMs as assassin, no players with stuff from GMs, no player who levels together with GMs in party and no GMs which help to make better weapons. If you discover (and can prove) that a GM is helping a player with items, please report this to Bjorn using the forum's Mail function as soon as possible. 9. Assassin drops Assassin drops don't have to be given back! Free PVP drops MUST be given back within the hour, if not, you will be banned. 10. AFK-splashying AFK-splashying is not allowed! If we catch you doing it, you will be banned permanently, even if you are not using any illegal program to do it. 11. Advertising Advertising other servers, in any way, is forbidden! You will be IP/HID banned permanently. */ //echo " | "; //echo "
"; echo " | I agree to the server rules | "; echo "
"; echo " |   | "; echo "
"; echo " | "; echo " |
* Max. 2 accounts per e-mail are allowed | ";
echo "
}
}
else
{
echo “Registration is closed.”;
}
?>[/php]