Ir para conteúdo

Featured Replies

Postado

Olá, tudo bem? estou com um probleminha no  meu site, que é o Gesior 2020
fiz todo processo de extração dos arquivos diretamente no XXAMP mais recente, porém está dando o seguinte erro:

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\config\config.php on line 4

Já fiz alterações para TRUE E FALSE e continua a mesma coisa, alguém pode me ajudar? segue abaixo o código do config.php

<?PHP
# Account Maker Config
$config['site']['serverPath'] = "C:\Users\Leo\Desktop\OT\baiak_pvp\";
$config['site']['useServerConfigCache'] = true;
$config['site']['worlds'] = array(0 => 'RealBaiak');
$towns_list[0] = array(1 => 'Principal');
$config['site']['newchar_towns2'] = 1; // -- AQUI COLOQUE A CITY EM QUE O PERSONAGEM IRÁ NASCER
$config['site']['google_captcha_key'] = "";
$config['site']['google_captcha_secret'] = "";
$config['site']['google_captcha_enabled'] = false;
$config['site']['google_captcha_host'] =  'realbaiak.com';

#Clock
$config['site']['clockactive'] = true;


$config['site']['outfit_images_url'] = '/outfit.php';
$config['site']['item_images_url'] = '/images/items/';
$config['site']['item_images_extension'] = '.gif';
$config['site']['flag_images_url'] = '/images/flags/';
$config['site']['flag_images_extension'] = '.png';
$config['site']['players_group_id_block'] = 3;
$config['site']['limitDeath'] = 8;
$config['site']['levelVideo'] = 100;

# PAGE: donate.php
$config['site']['usePagseguro'] = true; //true show / false hide
$config['site']['usePaypal'] = false;	//true show / false hide
$config['site']['useDeposit'] = true;	//true show / false hide
$config['site']['useZaypay'] = false;	//true show / false hide
$config['site']['useContenidopago'] = false;	//true show / false hide
$config['site']['useOnebip'] = false;	//true show / false hide

# Pagseguro config By IVENSPONTES
$config['pagSeguro']['email'] = "jairolisboa20@hotmail.com"; //Email Pagseguro
$config['pagSeguro']['token'] = "c42de904-e000-43f2-9bd6-becbae40c70fc02b1c934fbdac30e8693604f8ee4691334a-5d17-44e9-a06e-ea0c2a61af53"; // TOKEN
$config['pagSeguro']['urlRedirect'] = 'http://baiak-wars.com/index.php?subtopic=pagconcluido'; //turn off redirect and notifications in pagseguro.com.br
$config['pagSeguro']['urlNotification'] = 'http://baiak-wars.com/retpagseguro.php'; //your return location

$config['pagSeguro']['productName'] = 'Premium Points';
$config['pagSeguro']['productValue'] = 1.00; 	// 1.50 = R$ 1,50 etc...
$config['pagSeguro']['doublePoints'] = true; 	## Double points - true is on / false is off

$config['pagSeguro']['host'] = 'localhost';		## YOUR HOST
$config['pagSeguro']['database'] = 'baiak';	## DATABASE
$config['pagSeguro']['databaseUser'] = 'root';	## USER
$config['pagSeguro']['databasePass'] = 'b123147456';		## PASSWORD

# Create Account Options
$config['site']['one_email'] = true;
$config['site']['create_account_verify_mail'] = false;
$config['site']['verify_code'] = false;
$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'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
$config['site']['newchar_towns'][0] = array(9);
$config['site']['max_players_per_account'] = 10;


# Emails Config
$config['site']['send_emails'] = true;
$config['site']['mail_address'] = "xxx@xxxx.com.br";
$config['site']['smtp_enabled'] = true;
$config['site']['smtp_host'] = "smtp.xxxxx.com.br";
$config['site']['smtp_port'] = 587;
$config['site']['smtp_auth'] = true;
$config['site']['smtp_user'] = "xxx@xxx.com.br";
$config['site']['smtp_pass'] = "xxx";

# PAGE: whoisonline.php
$config['site']['private-servlist.com_server_id'] = 0;
/*
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('Second Promote' => 722423, 'Cursed Skull' => 722424, 'Special Bags' => 722534, 'Headsplitter' => 722420, 'Donate Quest' => 722513, 'Spiritual Aura' => 722640, '5 Level quest' => 722350, 'Hidden Donate Quest' => 722538, 'PvP Task' => 722510, 'Gonka' => 121219, 'Mega Vip' => 53567, 'Hyper Boots' => 5751, 'Ultimate Donation Ring' => 922066, 'Fast Quest' => 56123, 'Mega Ring' => 54631, 'Vip 3' => 722650, 'Under Free Set' => 722702, 'Under Free Shield' => 722701);
$config['site']['show_skills_info'] = false;
$config['site']['show_vip_storage'] = 0;

# PAGE: accountmanagement.php
$config['site']['send_mail_when_change_password'] = false;
$config['site']['send_mail_when_generate_reckey'] = false;
$config['site']['generate_new_reckey'] = true;
$config['site']['generate_new_reckey_price'] = 10;

# 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;
$config['site']['access_tickers'] = 3;
$config['site']['access_admin_painel'] = 3;
$config['site']['access_staff_painel'] = 3;

# PAGE: latestnews.php
$config['site']['news_limit'] = 5;

# PAGE: killstatistics.php
$config['site']['last_deaths_limit'] = 40;

# PAGE: team.php
$config['site']['groups_support'] = array(2, 3, 4, 5, 6, 7);

# PAGE: highscores.php
$config['site']['groups_hidden'] = array(4, 5, 6, 7);
$config['site']['accounts_hidden'] = array(1, 2);

# PAGE: shopsystem.php
$config['site']['shop_system'] = true;
$config['site']['shopguild_system'] = true;

# PAGE: lostaccount.php
$config['site']['email_lai_sec_interval'] = 180;

# Layout Config
$config['site']['layout'] = 'tibiarl';
$config['site']['vdarkborder'] = '#505050';
$config['site']['darkborder'] = '#D4C0A1';
$config['site']['lightborder'] = '#F1E0C6';
$config['site']['download_page'] = true;
$config['site']['serverinfo_page'] = true;

///Lista de itens Characters
///exemplo
//$config['site']['itensname'] = array(ID DO ITEM => 'DESCRIÇÃO DO ITEM',ID DO ITEM => 'DESCRIÇÃO DO ITEM');
$config['site']['itensname'] = array(
    //PvP Backpack
	12628 => '(club fighting +3, sword fighting +3, axe fighting +3, distance fighting +3, shielding +3, magic level +3, protection all +3%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',
    //PvP Amulet
	11387 => '(club fighting +6, sword fighting +6, axe fighting +6, distance fighting +6, shielding +6, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',
	//PvP Cursed
	5785 => '(club fighting +6, sword fighting +6, axe fighting +6, distance fighting +6, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',
    //PvP Mage Legs
	12623 => '(Arm:26, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',
    //PvP Elite Legs
	2504 => '(Arm:26, club fighting +6, sword fighting +6, axe fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Royal Legs
	5918 => '(Arm:26, distance fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Mage Armor
	12622 => '(Arm:26, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Elite Armor
	2503 => '(Arm:26, club fighting +6, sword fighting +6, axe fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Royal Armor
	6100 => '(Arm:26, distance fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Mage Helmet
	12621 => '(Arm:26, magic level +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Elite Helmet
	2496 => '(Arm:26, club fighting +6, sword fighting +6, axe fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Royal Helmet
	6099 => '(Arm:26, distance fighting +6, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',		
    //PvP Mage Book
	12624 => '(Def:80, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Elite Shield
	2538 => '(Def:100, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Royal Shield
	2527 => '(Def:100, protection all +4%).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Club
	7429 => '(Atk:135).<br><br><font color="green"><b><big>Item VIP</big></b></font>',		
    //PvP Sword
	7407 => '(Atk:135).<br><br><font color="green"><b><big>Item VIP</big></b></font>',		
    //PvP Axe
	2443 => '(Atk:135).<br><br><font color="green"><b><big>Item VIP</big></b></font>',		
    //PvP Slingshot
	5907 => '(Atk:140).<br><br><font color="green"><b><big>Item VIP</big></b></font>',		
    //PvP Staff
	12288 => '(870~1000).<br><br><font color="green"><b><big>Item VIP</big></b></font>',
    //PvP Mage Boots 
	7892 => '(protection physical +3%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Royal Boots 
	5462 => '(protection physical +3%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Elite Boots 
	2646 => '(protection physical +3%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
    //PvP Mage Ring 
	2123 => '(magic level +6, protection all +4%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>',		
    //PvP Elite Ring
	2121 => '(club fighting +6, sword fighting +6, axe fighting +6, protection all +4%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>',	
	//PvP Royal Ring
	6300 => '(distance fighting +6, protection all +4%, faster regeneration).<br><br><font color="green"><b><big>Item VIP</big></b></font>');
	
$SQLlink = mysqli_connect("localhost", "root", "", "ot1"); // EDITAVEL -- Muda aqui se tu deixar essa senha nego vai conseguir usar 1 coisinha que pega senha que esqueci o nome pq vc mexeu no mouse oaskdoaskdasodksa

if (!$SQLlink) {
    echo "Error: Unable to connect to MySQL." . PHP_EOL;
    echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
    echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
    exit;
}
?>

Agradecido a quem puder me ajudar. ?

Postado

@Adm Evolution Troca a linha número 4 por essa aqui:

$config['site']['serverPath'] = "C:\Users\Leo\Desktop\OT\baiak_pvp/";

 

Meu Curso sobre Programação para OTServer

Programando OTServer

 

Peça o seu script! Entre agora mesmo no grupo

Developing

 

Conteúdos:

 

Discord: Belmont#7352

Não esqueça do REP+ :)     

Postado
  • Autor

Agora estou com outro problema:


Warning: parse_ini_file(cache/DONT_EDIT_serverstatus.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 750

Warning: fopen(cache/DONT_EDIT_serverstatus.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 772

Warning: rewind() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 779

Warning: fwrite() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 780

Warning: fclose() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 781

Warning: fopen(cache/DONT_EDIT_usercounter.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 798

Warning: fputs() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 800

Warning: fclose() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 801
Error occured!
Error ID:
More info: CANNOT CONNECT TO DATABASE: SQLSTATE[HY000] [1049] Unknown database 'test1'

File: C:\xampp\htdocs\classes/database_mysql.php   Line: 22
File: C:\xampp\htdocs\classes/database.php   Line: 199
File: C:\xampp\htdocs\pages/latestnews.php   Line: 65
File: C:\xampp\htdocs\system/load.page.php   Line: 7
File: C:\xampp\htdocs/index.php   Line: 39

já alterei todos locais para a Database e mesmo assim continua esse mesmo diretório, tanto o config.lua como também o config.php

Postado

@Adm Evolution Isso não é questão de diretório, é esse nome da Database que não existe e não está conseguindo acessar o banco de dados, verifica se a senha e o nome da Database estão certo, tanto no config.php quanto no config.lua

Meu Curso sobre Programação para OTServer

Programando OTServer

 

Peça o seu script! Entre agora mesmo no grupo

Developing

 

Conteúdos:

 

Discord: Belmont#7352

Não esqueça do REP+ :)     

Postado
  • Autor

Consegui ligar o site, porém está com esses erros de cima:

 


Warning: parse_ini_file(cache/DONT_EDIT_serverstatus.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 750

Warning: fopen(cache/DONT_EDIT_serverstatus.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 772

Warning: rewind() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 779

Warning: fwrite() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 780

Warning: fclose() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 781

Warning: fopen(cache/DONT_EDIT_usercounter.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\system\load.compat.php on line 798

Warning: fputs() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 800

Warning: fclose() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\system\load.compat.php on line 801

 

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo