Postado Junho 9, 2015 9 anos Bom estou tetando criar um site para meu projeto de otserve, mais quando vou criar aparece o seguinte erro!, click na imagem para ampliar. aqui esta os 3 arquivos que mostra estar com erros. config.php Mostrar conteúdo oculto <?PHP # Account Maker Config $config['site']['serverPath'] = "C:/Users/Casa Tavares/Desktop/ElfenWar/elfenWar/"; $config['site']['useServerConfigCache'] = true; $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', 15 => 'Gray Beach', 16 => 'Roshamuul'); $config['site']['outfit_images_url'] = 'http://outfit-images.ots.me/outfit.php'; $config['site']['item_images_url'] = '/images/items/'; $config['site']['item_images_extension'] = '.gif'; $config['site']['flag_images_url'] = 'http://flag-images.ots.me/'; $config['site']['flag_images_extension'] = '.png'; # Create Account Options $config['site']['one_email'] = true; $config['site']['create_account_verify_mail'] = false; $config['site']['verify_code'] = true; $config['site']['email_days_to_change'] = 3; $config['site']['newaccount_premdays'] = 0; $config['site']['send_register_email'] = false; # Create Character Options $config['site']['newchar_vocations'] = array(0 => 'Rook Sample'); $config['site']['newchar_towns'] = array(6); $config['site']['max_players_per_account'] = 4; # Emails Config $config['site']['lost_acc'] = true; # LOST ACC? SIM (TRUE) OU NÃO (FALSE) $config['site']['send_emails'] = false; # ENVIAR EMAILS? SIM (TRUE) OU NÃO (FALSE) $config['site']['mail_address'] = "no-reply@tibiaold.org"; # SEU EMAIL (TEM QUE SER GMAIL) $config['site']['smtp_enabled'] = true; # NÃO MUDAR $config['site']['smtp_host'] = "mail.tibiaold.org"; # COLOCAR 'smtp.gmail.com' $config['site']['smtp_port'] = 25; # tenta a 25 mesmo, se não der tenta 465 $config['site']['smtp_auth'] = true; # não mudar $config['site']['smtp_user'] = "no-reply@tibiaold.org"; # SEU EMAIL (TEM QUE SER GMAIL) $config['site']['smtp_pass'] = "@ZP?+PF]L@*="; # sua senha # PAGE: whoisonline.php $config['site']['private-servlist.com_server_id'] = 1; /* Server id on 'private-servlist.com' to show Players Online Chart (whoisonline.php page), set 0 to disable Chart feature. To use this feature you must register on 'private-servlist.com' and add your server. Format: number, 0 [disable] or higher */ # PAGE: characters.php $config['site']['quests'] = array(); $config['site']['show_skills_info'] = true; $config['site']['show_vip_storage'] = 0; # PAGE: accountmanagement.php $config['site']['send_mail_when_change_password'] = true; $config['site']['send_mail_when_generate_reckey'] = true; $config['site']['generate_new_reckey'] = false; $config['site']['generate_new_reckey_price'] = 500; # PAGE: guilds.php $config['site']['guild_need_level'] = 100; $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'] = 9999; # 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(2, 3, 4); $config['site']['accounts_hidden'] = array(1); # PAGE: shopsystem.php $config['site']['shop_system'] = true; # PAGE: lostaccount.php $config['site']['email_lai_sec_interval'] = 180; # Layout Config $config['site']['layout'] = 'tibiacom'; $config['site']['vdarkborder'] = '#505050'; $config['site']['darkborder'] = '#D4C0A1'; $config['site']['lightborder'] = '#F1E0C6'; $config['site']['download_page'] = false; $config['site']['serverinfo_page'] = true; load.database.php Mostrar conteúdo oculto <?php if(!defined('INITIALIZED')) exit; if(Website::getServerConfig()->isSetKey('mysqlHost')) { define('SERVERCONFIG_SQL_HOST', 'mysqlHost'); define('SERVERCONFIG_SQL_PORT', 'mysqlPort'); define('SERVERCONFIG_SQL_USER', 'mysqlUser'); define('SERVERCONFIG_SQL_PASS', 'mysqlPass'); define('SERVERCONFIG_SQL_DATABASE', 'mysqlDatabase'); define('SERVERCONFIG_SQLITE_FILE', 'sqlFile'); } else new Error_Critic('#E-3', 'There is no key <b>mysqlHost</b> in server config', array(new Error('INFO', 'use server config cache: <b>' . (Website::getWebsiteConfig()->getValue('useServerConfigCache') ? 'true' : 'false') . '</b>'))); Website::setDatabaseDriver(Database::DB_MYSQL); if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_HOST)) Website::getDBHandle()->setDatabaseHost(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_HOST)); else new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_HOST . '</b> in server config file.'); if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_PORT)) Website::getDBHandle()->setDatabasePort(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_PORT)); else new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_PORT . '</b> in server config file.'); if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_DATABASE)) Website::getDBHandle()->setDatabaseName(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_DATABASE)); else new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_DATABASE . '</b> in server config file.'); if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_USER)) Website::getDBHandle()->setDatabaseUsername(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_USER)); else new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_USER . '</b> in server config file.'); if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_PASS)) Website::getDBHandle()->setDatabasePassword(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_PASS)); else new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_PASS . '</b> in server config file.'); Website::setPasswordsEncryption(Website::getServerConfig()->getValue('passwordType')); $SQL = Website::getDBHandle(); index.php Mostrar conteúdo oculto <?php // comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE); // true = show sent queries and SQL queries status/status code/error message define('DEBUG_DATABASE', false); define('INITIALIZED', true); // if not defined before, set 'false' to load all normal if(!defined('ONLY_PAGE')) define('ONLY_PAGE', false); // check if site is disabled/requires installation include_once('./system/load.loadCheck.php'); // fix user data, load config, enable class auto loader include_once('./system/load.init.php'); // DATABASE include_once('./system/load.database.php'); if(DEBUG_DATABASE) Website::getDBHandle()->setPrintQueries(true); // DATABASE END // LOGIN if(!ONLY_PAGE) include_once('./system/load.login.php'); // LOGIN END // COMPAT // some parts in that file can be blocked because of ONLY_PAGE constant include_once('./system/load.compat.php'); // COMPAT END // LOAD PAGE include_once('./system/load.page.php'); // LOAD PAGE END // LAYOUT // with ONLY_PAGE we return only page text, not layout if(!ONLY_PAGE) include_once('./system/load.layout.php'); else echo $main_content; // LAYOUT END Obrigado a todos desde já, +rep pra quem me ajudar... Editado Junho 9, 2015 9 anos por s2dieginho (veja o histórico de edições)
Postado Junho 13, 2015 9 anos Autor Solução Era só a config.lua arrumei já. Editado Junho 21, 2015 9 anos por s2dieginho (veja o histórico de edições)
Postado Junho 19, 2015 9 anos Autor Em 18/06/2015 em 23:58, Pitico1230 disse: @s2dieginho estou com o mesmo problema, como você conseguiu arrumar?qual Qual seu servidor, é o do ''GLOBAL FULL 10.78 TFS 1.0 [Lion's Rock - Cast System] Atualização V12''???? se for resolvi esse problema apénas trocando de config.lua aqui Mostrar conteúdo oculto -- Combat settings -- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced" worldType = "pvp" hotkeyAimbotEnabled = true protectionLevel = 30 killsToRedSkull = 6 killsToBlackSkull = 10 pzLocked = 60000 removeChargesFromRunes = true timeToDecreaseFrags = 24 * 60 * 60 * 1000 whiteSkullTime = 15 * 60 * 1000 stairJumpExhaustion = 2000 experienceByKillingPlayers = false expFromPlayersLevelRange = 75 -- Connection Config -- NOTE: maxPlayers set to 0 means no limit ip = "127.0.0.1" bindOnlyGlobalAddress = false loginProtocolPort = 7171 gameProtocolPort = 7172 statusProtocolPort = 7171 maxPlayers = 1000 motd = "Bem vindos ao ElfenWar!" onePlayerOnlinePerAccount = true allowClones = false serverName = "ElfenWar" statusTimeout = 5000 replaceKickOnLogin = true maxPacketsPerSecond = 25 -- 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 = "never" -- Item Usage timeBetweenActions = 200 timeBetweenExActions = 1000 -- Map -- NOTE: set mapName WITHOUT .otbm at the end mapName = "realmap" mapAuthor = "Diego silva" -- Market marketOfferDuration = 30 * 24 * 60 * 60 premiumToCreateMarketOffer = true checkExpiredMarketOffersEachMinutes = 60 maxMarketOffersAtATimePerPlayer = 100 -- MySQL mysqlHost = "localhost" mysqlUser = "root" mysqlPass = "sua senha aqui" mysqlDatabase = "elfenwar" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" -- Misc. allowChangeOutfit = true freePremium = false kickIdlePlayerAfterMinutes = 15 maxMessageBuffer = 4 emoteSpells = false classicEquipmentSlots = false -- Rates -- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml rateExp = 5 rateSkill = 20 rateLoot = 3 rateMagic = 7 rateSpawn = 2 -- 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 = false -- Status server information ownerName = "Diego Silva" ownerEmail = "boy.diegobrow@gmail.com" url = "https://otland.net/" location = "Mossoró, Rio Grande do Norte" se não for o mesmo servidor tente trocar sua config.lua por outra de outro servidor que sejá compativel! Foi assim que resolvi o problema, espero ter ajudado. Editado Junho 19, 2015 9 anos por s2dieginho (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.