Postado Maio 23, 2018 7 anos Base: TFS 1.3 , 'Ombra' Não consigo criar nenhuma conta , apartir do http://127.0.0.1/?subtopic=createaccount Eu Coloco Account , Email , A Senha , Dou Accept e dou enter E Ele vai pra Pagina de Entar na Account , Sem Criar Na DB createaccount.php <?php if(!defined('INITIALIZED')) exit; require 'config/namesblocked.php'; if(!$logged) { $voc = array(); // Rookgard Active ! if (isset($_POST['step']) && $_POST['step'] == 'docreate') { $erro = array(); # Nome da conta $accountname = isset($_POST['accountname']) ? $_POST['accountname'] : ''; if ($accountname == '') $erro['acc'] = 'Please enter an account name!'; elseif (strlen($accountname) < 3) $erro['acc'] = 'This account name is too short!'; elseif (strlen($accountname) > 30) $erro['acc'] = 'This account name is too long!'; else { $accountname = strtoupper($accountname); if (!ctype_alnum($accountname)) $erro['acc'] = 'This account name has an invalid format. Your account name may only consist of numbers 0-9 and letters A-Z!'; elseif (!preg_match('/[A-Z0-9]/', $accountname)) $erro['acc'] = 'Your account name must include at least one letter A-Z!'; else { $acc = new Account($accountname, Account::LOADTYPE_NAME); if ($acc->isLoaded()) $erro['acc'] = 'This account name is already used. Please select another one!'; } } /*# Nome do personagem $charactername = isset($_POST['name']) ? trim($_POST['name']) : ''; if(empty($charactername)) $erro['name'] = 'Please enter a name for your character!'; elseif(strlen($charactername) < 2 || strlen($charactername) > 29) $erro['name'] = 'A name must have at least 2 but no more than 29 letters!'; elseif(preg_match('/[^a-zA-Z ]/', $charactername)) $erro['name'] = 'This name contains invalid letters. Please use only A-Z, a-z and space!'; elseif(!ctype_upper($charactername[0])) $erro['name'] = 'The first letter of a name has to be a capital letter!'; elseif(strpos($charactername, ' ') !== false) $erro['name'] = 'This name contains more than one space between words. Please use only one space between words!'; else { foreach(explode(' ', $charactername) as $k =>$v) { $words[$k] = str_split($v); $len = strlen($v); if($len == 1) { $erro['name'] = 'This name contains a word with only one letter. Please use more than one letter for each word!'; break; } elseif($len > 14) { $erro['name'] = 'This name contains a word that is too long. Please use no more than 14 letters for each word!'; break; } } if(!isset($e['name'])) { $total = 0; foreach($words as $k =>$p) { if(isset($erro['name'])) break; $total++; if($total > 3) { $erro['name'] = 'This name contains more than 3 words. Please choose another name!'; break; } $len = 0; foreach($p as $i =>$j) { $len++; if($i != 0 && ctype_upper($j)) { $erro['name'] = 'In names capital letters are only allowed at the beginning of a word!'; break; } elseif($i == $len-1) { $ff = null; for($h = 0; $h < strlen($v); $h++) { if(in_array(strtolower($v[$h]), array('a','e','i','o','u')) !== false) { $ff = true; break; } } if(!$ff) { $erro['name'] = 'This name contains a word without vowels. Please choose another name!'; break; } } } } } if(!isset($erro['name'])) { $charactername = strtolower($charactername); for($i = 0; $i < strlen($charactername); $i++) if($charactername[$i] == $charactername[($i+1)] && $charactername[$i] == $charactername[($i+2)]) { $erro['name'] = 'This character name is already used. Please select another one!'; break; } } if(!isset($erro['name'])) { foreach($nomesBloqueados as $v) if(strpos($charactername, $v) !== false) { $erro['name'] = 'This character name can not be used. Please select another one!'; break; } } if(!isset($erro['name'])) { $ple = new Player($charactername, Player::LOADTYPE_NAME); if($ple->isLoaded()) $erro['name'] = 'This character name is already used. Please select another one!'; } } if(!isset($_POST['sex']) || ($_POST['sex'] != 'male' && $_POST['sex'] != 'female')) $erro['sex'] = 'Please select the sex for your character!'; if(count($voc) != 0 && (!isset($_POST['vocation']) || !is_numeric($_POST['vocation']) || !isset($voc[$_POST['vocation']]))) $erro['vocation'] = 'Please select the vocation for your character!';*/ $email = isset($_POST['email']) ? $_POST['email'] : ''; if ($email == '') $erro['email'] = 'Please enter your email address!'; elseif (strlen($email) > 49) $erro['email'] = 'Your email address is too long!'; elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) $erro['email'] = 'This email address has an invalid format. Please enter a correct email address!'; else { $accMailCheck = new Account($email, Account::LOADTYPE_MAIL); if ($accMailCheck->isLoaded()) $erro['email'] = 'This email address is already used. Please enter another email address!'; } $password1 = isset($_POST['password1']) ? $_POST['password1'] : ''; $password2 = isset($_POST['password2']) ? $_POST['password2'] : ''; if (empty($password2)) $erro['pass'] = 'Please enter the password again!'; elseif ($password1 != $password2) $erro['pass'] = 'The two passwords do not match!'; else { $err = array(); if (strlen($password1) < 6 || strlen($password1) > 29) $err[] = 'The password must have at least 8 and less than 30 letters!'; if (!ctype_alnum($password1)) $err[] = 'The password contains invalid letters!'; if (count($err) != 0) { $erro['pass'] = ''; for ($i = 0; $i < count($err); $i++) $erro['pass'] .= ($i == 0 ? '' : '<br/>') . $err[$i]; } } if (!isset($_POST['agreeagreements']) || empty($_POST['agreeagreements'])) $erro['rules'] = 'You have to agree to the ' . $config['server']['serverName'] . ' Rules in order to create an account!'; if (count($erro) != 0) { $main_content = '<div class="SmallBox"><div class="MessageContainer"><div class="BoxFrameHorizontal" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-horizontal.gif)"/></div><div class="BoxFrameEdgeLeftTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif)"/></div><div class="BoxFrameEdgeRightTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif)"/></div><div class="ErrorMessage"><div class="BoxFrameVerticalLeft" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif)"/></div><div class="BoxFrameVerticalRight" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif)"/></div><div class="AttentionSign" style="background-image:url(' . $layout_name . '/images/global/content/attentionsign.gif)"/></div><b>The Following Errors Have Occurred:</b><br/>'; foreach ($erro as $error) $main_content .= $error . '<br/>'; $main_content .= '</div><div class="BoxFrameHorizontal" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-horizontal.gif)"/></div><div class="BoxFrameEdgeRightBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif)"/></div><div class="BoxFrameEdgeLeftBottom" style="background-image:url(' . $layout_name . '/images/content/global/box-frame-edge.gif)"/></div></div></div><br/>'; } else { $reg_account = new Account(); $reg_account->setName(strtoupper($_POST['accountname'])); $reg_account->setPassword($_POST['password1']); $reg_account->setEMail($_POST['email']); $reg_account->setCreateDate(time()); $reg_account->setCreateIP(Visitor::getIP()); $reg_account->setFlag(Website::getCountryCode(long2ip(Visitor::getIP()))); $reg_account->save(); /*if($reg_account->getID() > 0) { $sample = (count($voc) == 0 ? 'Rook' : $voc[$_POST['vocation']]).' Sample'; $char_to_copy = new Player(); $char_to_copy->find($sample); if(!$char_to_copy->isLoaded()) die('Missing sample character ('.$sample.')'); $char_to_copy->getItems()->load(); $char_to_copy->setLookType(($_POST['sex'] == 'female' ? 136 : 128)); $char_to_copy->setID(null); // save as new character $char_to_copy->setLastIP(0); $char_to_copy->setLastLogin(0); $char_to_copy->setLastLogout(0); $char_to_copy->setName($_POST['name']); $char_to_copy->setAccount($reg_account); $char_to_copy->setSex(($_POST['sex'] == 'female' ? 0 : 1)); $char_to_copy->setPosX(0); $char_to_copy->setPosY(0); $char_to_copy->setPosZ(0); $char_to_copy->setCreateIP(Visitor::getIP()); $char_to_copy->setCreateDate(time()); $char_to_copy->setSave(); // make character saveable $char_to_copy->save(); // now it will load 'id' of new player }*/ //show information about registration if ($config['site']['send_emails']) { $reg_name = $reg_account->getName(); $reg_email = $reg_account->getEMail(); $mailBody = '<html> <body> <h3>Your account name and password!</h3> <p>You or someone else registred on server <a href="' . $config['server']['url'] . '"><b>' . htmlspecialchars($config['server']['serverName']) . '</b></a> with this e-mail.</p> <p>Account name: <b>' . htmlspecialchars($reg_name) . '</b></p> <br /> <p>After login you can:</p> <li>Create new characters <li>Change your current password <li>Change your current e-mail </body> </html> config.lua -- Combat settings -- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced" worldType = "pvp" hotkeyAimbotEnabled = true protectionLevel = 7 pzLocked = 60 * 1000 removeChargesFromRunes = true removeChargesFromPotions = true removeWeaponAmmunition = true removeWeaponCharges = true timeToDecreaseFrags = 24 * 60 * 60 * 1000 whiteSkullTime = 15 * 60 * 1000 stairJumpExhaustion = 2 * 1000 experienceByKillingPlayers = false expFromPlayersLevelRange = 75 dayKillsToRedSkull = 3 weekKillsToRedSkull = 5 monthKillsToRedSkull = 10 redSkullDuration = 30 blackSkullDuration = 45 orangeSkullDuration = 7 -- Connection Config -- NOTE: maxPlayers set to 0 means no limit ip = "127.0.0.1" bindOnlyGlobalAddress = false loginProtocolPort = 7171 gameProtocolPort = 7172 statusProtocolPort = 7171 maxPlayers = 0 motd = "Welcome to The OTXServer Global!" onePlayerOnlinePerAccount = true allowClones = false serverName = "OTXServer-Global" statusTimeout = 5 * 1000 replaceKickOnLogin = true maxPacketsPerSecond = 25 -- Version Manual clientVersionMin = 1100 clientVersionMax = 1157 clientVersionStr = "11.57" -- Depot Limit freeDepotLimit = 2000 premiumDepotLimit = 10000 depotBoxes = 17 -- GameStore gamestoreByModules = true -- Casting System enableLiveCasting = true liveCastPort = 7173 -- Expert Pvp Config expertPvp = false -- Deaths -- NOTE: Leave deathLosePercent as -1 if you want to use the default -- death penalty formula. For the old formula, set it to 10. For -- no skill/experience loss, set it to 0. deathLosePercent = -1 -- Houses -- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality housePriceEachSQM = 1000 houseRentPeriod = "daily" -- Item Usage timeBetweenActions = 200 timeBetweenExActions = 1000 -- Map -- NOTE: set mapName WITHOUT .otbm at the end mapName = "realmap" mapAuthor = "Cipsoft" -- Market marketOfferDuration = 30 * 24 * 60 * 60 premiumToCreateMarketOffer = true checkExpiredMarketOffersEachMinutes = 60 maxMarketOffersAtATimePerPlayer = 100 -- MySQL mysqlHost = "127.0.0.1" mysqlUser = "root" mysqlPass = "cenoura12" mysqlDatabase = "servercogumelos" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" -- Misc. allowChangeOutfit = true freePremium = true kickIdlePlayerAfterMinutes = 15 idleWarningTime = 10 * 60 * 1000 idleKickTime = 15 * 60 * 1000 maxMessageBuffer = 4 emoteSpells = false classicEquipmentSlots = false allowWalkthrough = true coinPacketSize = 1 coinImagesURL = "http://localhost/images/store/" classicAttackSpeed = false -- Rates -- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml rateExp = 1 rateSkill = 50 rateLoot = 3 rateMagic = 25 rateSpawn = 1 -- Monster rates rateMonsterHealth = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 -- Monsters deSpawnRange = 2 deSpawnRadius = 50 -- Stamina staminaSystem = true -- Scripts warnUnsafeScripts = true convertUnsafeScripts = true -- Startup -- NOTE: defaultPriority only works on Windows and sets process -- priority, valid values are: "normal", "above-normal", "high" defaultPriority = "high" startupDatabaseOptimization = true -- Status server information ownerName = "Malucooo" ownerEmail = "[email protected]" url = "http://www.facebook.com/erick.nunes.75" location = "Brazil" config.php <?PHP // ----Config Shop---- $outfits_list = array(); $loyalty_title = array(50 => 'Scout', 100 => 'Sentinel', 200 => 'Steward', 400 => 'Warden', 1000 => 'Squire', 2000 => 'Warrior', 3000 => 'Keeper', 4000 => 'Guardian', 5000 => 'Sage'); $config['shop']['newitemdays'] = 1; #days to item be new in shop # Pagseguro configs $config['pagseguro']['testing'] = false; $config['pagseguro']['tokentest'] = ""; $config['pagseguro']['email'] = ''; $config['pagseguro']['apitoken'] = ''; # Bank transfer data $config['banktransfer']['bank'] = "Caixa Econômica"; $config['banktransfer']['agency'] = ""; $config['banktransfer']['account'] = ""; $config['banktransfer']['name'] = ""; $config['banktransfer']['operation'] = 003; // 0 = no operation # PayPal configs $config['paypal']['email'] = ""; # Social Networks $config['social']['status'] = true; $config['social']['facebook'] = "https://www.facebook.com/tibia"; # PAGE: characters.php $config['site']['quests'] = array( "Demon Helmet" => 2213, "In Service of Yalahar" => 12279, "Pits Of Inferno" => 10544, "The Ancient Tombs" => 50220, "The Annihilator" => 2215, "The Demon Oak" => 1010, "Wrath Of The Emperor" => 12374); # time in days to show the former names $config['site']['formerNames'] = 10; $config['site']['formerNames_amount'] = 10; # Account Maker Config $config['site']['serverPath'] = "C:/Users/Angell/Downloads/ombra-pack10x-master/Otxserver-Global-master-1a84695ecc9eb65fc559b73bd4fb917cc18c967a/"; $config['site']['useServerConfigCache'] = false; $towns_list = array( 1 => 'Venore', 2 => 'Thais', 3 => 'Kazordoon', 4 => 'Carlin', 5 => 'Ab\'Dendriel', 6 => 'Rookgaard', 7 => 'Liberty Bay', 8 => 'Port Hope', 9 => 'Ankrahmun', 10 => 'Darashia', 11 => 'Edron', 12 => 'Svargrond', 13 => 'Yalahar', 14 => 'Farmine', 28 => 'Gray Beach', 29 => 'Roshamuul', 33 => 'Rathleton', 34 => 'Krailos', 51 => 'Dawnport', 52 => 'Feyrist', ); # this is important if you want to use ajax check in your create account $config['site']['sqlHost'] = "localhost"; $config['site']['sqlUser'] = "root"; $config['site']['sqlPass'] = "cenoura12"; $config['site']['sqlBD'] = "servercogumelos"; # Create Account Options $config['site']['one_email'] = true; $config['site']['create_account_verify_mail'] = true; $config['site']['verify_code'] = true; $config['site']['email_days_to_change'] = 7; $config['site']['newaccount_premdays'] = 0; $config['site']['send_register_email'] = true; # Create Character Options $config['site']['newchar_vocations'] = array(0 => 'Rook Sample'); // if you wan't use rook, put (1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample'); $config['site']['newchar_towns'] = array(6, 51); $config['site']['max_players_per_account'] = 10; # Emails Config $config['site']['send_emails'] = true; $config['site']['mail_address'] = ""; $config['site']['mail_senderName'] = ""; $config['site']['smtp_enabled'] = true; $config['site']['smtp_host'] = "ssl://smtp.gmail.com"; $config['site']['smtp_port'] = 465; $config['site']['smtp_auth'] = true; $config['site']['smtp_user'] = ""; $config['site']['smtp_pass'] = ""; $config['site']['smtp_secure'] = true; # PAGE: accountmanagement.php $config['site']['send_mail_when_change_password'] = true; $config['site']['send_mail_when_generate_reckey'] = true; $config['site']['email_time_change'] = 7; $config['site']['daystodelete'] = 7; $config['site']['flash_client_enabled'] = false; # PAGE: guilds.php $config['site']['guild_need_level'] = 8; $config['site']['guild_need_pacc'] = false; $config['site']['guild_image_size_kb'] = 50; $config['site']['guild_description_chars_limit'] = 2000; $config['site']['guild_description_lines_limit'] = 6; $config['site']['guild_motd_chars_limit'] = 250; # PAGE: adminpanel.php $config['site']['access_admin_panel'] = 3; # PAGE: latestnews.php $config['site']['news_limit'] = 6; # PAGE: killstatistics.php $config['site']['last_deaths_limit'] = 40; # PAGE: team.php $config['site']['groups_support'] = array(2, 3, 4, 5, 6); # PAGE: highscores.php $config['site']['groups_hidden'] = array(3, 4, 5, 6); $config['site']['accounts_hidden'] = array(1); # PAGE: lostaccount.php $config['site']['email_lai_sec_interval'] = 180; # Pagseguro offers // ValorR$ => Qtd_coins $config['pagseguro']['offers'] = array( 500=>75, 800=>125, 1500=>250, 2800=>500, 4900=>1000 ); // Nome do produto $config['pagseguro']['produtoNome'] = 'Tibia Coins'; $config['pagseguro']['urlRedirect'] = 'https://127.0.0.1/'; $config['pagseguro']['urlNotification'] = 'https://127.0.0.1/retpagseguro.php'; # Layout Config $config['site']['layout'] = 'tibiarl'; $config['site']['vdarkborder'] = '#505050'; $config['site']['darkborder'] = '#D4C0A1'; $config['site']['lightborder'] = '#F1E0C6'; $config['site']['download_page'] = false; $config['site']['serverinfo_page'] = true; Editado Maio 23, 2018 7 anos por Aminius Averum (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.