The Dark Knight 0 Postado Junho 3, 2011 Share Postado Junho 3, 2011 Primeiramente obrigado pelo tempo gasto lendo este post e tentando resolver meu problema. O que acontece: Eu ligo o xampp e tudo certinho e coloquei C:\xampp\htdocs a pasta do gesior 0.3.7 até ai tudo certo mais quando clico para abrir a página acontece isso: Aqui vai o link da img: http://imageshack.us/f/684/webmk.png/ Link para o comentário Compartilhar em outros sites More sharing options...
AlexxNica 32 Postado Junho 3, 2011 Share Postado Junho 3, 2011 The Dark Knight, você deve estar usando a versão 1.7.4 do XAMPP, aconselho instalar a versão 1.7.3, pois o Gesior usa algumas funções que foram retiradas na nova versão do PHP. Download do XAMPP 1.7.3: http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/1.7.3/ Link para o comentário Compartilhar em outros sites More sharing options...
Secular 132 Postado Junho 3, 2011 Share Postado Junho 3, 2011 Primeiramente obrigado pelo tempo gasto lendo este post e tentando resolver meu problema. O que acontece: Eu ligo o xampp e tudo certinho e coloquei C:\xampp\htdocs a pasta do gesior 0.3.7 até ai tudo certo mais quando clico para abrir a página acontece isso: Aqui vai o link da img: http://imageshack.us/f/684/webmk.png/ The Dark Knight, O Erro Pode Estar Na Sua Install.php Em Outro Tópico Um Usuario Resolveu Sua Duvida Substituindo Seu Install.php e Funcionou, Então: <?PHP session_start(); header('Content-Type: text/html; charset=ISO-8859-1'); ob_start("ob_gzhandler"); //require('./exaBD.php'); function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = microtime_float(); //##### CONFIG ##### include('config-and-functions.php'); $action = $_REQUEST['action']; //##### LOGOUT ##### if($action == "logout") { unset($_SESSION['account']); unset($_SESSION['password']); } //##### LOGIN ##### $logged = FALSE; if(isset($_SESSION['account'])) { $account_logged = $ots->createObject('Account'); $account_logged->load($_SESSION['account']); if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password']) { $logged = TRUE; $group_id_of_acc_logged = $account_logged->getPageAccess(); } else { $logged = FALSE; unset($_SESSION['account']); unset($account_logged); } } $login_account = strtoupper(trim($_POST['account_login'])); $login_password = trim($_POST['password_login']); if(!$logged && !empty($login_account) && !empty($login_password)) { $login_password = password_ency($login_password); $account_logged = $ots->createObject('Account'); $account_logged->find($login_account); if($account_logged->isLoaded()) { if($login_password == $account_logged->getPassword()) { $_SESSION['account'] = $account_logged->getId(); $_SESSION['password'] = $login_password; $logged = TRUE; $account_logged->setCustomField("page_lastday", time()); $group_id_of_acc_logged = $account_logged->getPageAccess(); } else $logged = FALSE; } } //#### LOAD PAGE ########## if(empty($_REQUEST['subtopic'])) { $_REQUEST['subtopic'] = "latestnews"; $subtopic = "latestnews"; } switch($_REQUEST['subtopic']) { case "latestnews": $topic = "Latest News"; $subtopic = "latestnews"; include("latestnews.php"); break; case "creatures"; $topic = "Creatures"; $subtopic = "creatures"; include("creatures.php"); break; case "spells"; $topic = "Spells"; $subtopic = "spells"; include("spells.php"); break; case "bugtracker"; $topic = "Bug Tracker"; $subtopic = "bugtracker"; include("bug.php"); break; case "experiencetable"; $topic = "Experience Table"; $subtopic = "experiencetable"; include("experiencetable.php"); break; case "signatures"; $topic = "Signature Generator"; $subtopic = "signatures"; include("signatures.php"); break; case "characters"; $topic = "Characters"; $subtopic = "characters"; include("characters.php"); break; case "whoisonline"; $topic = "Who is online?"; $subtopic = "whoisonline"; include("whoisonline.php"); break; case "highscores"; $topic = "Highscores"; $subtopic = "highscores"; include("highscores.php"); break; case "killstatistics"; $topic = "Last Kills"; $subtopic = "killstatistics"; include("killstatistics.php"); break; case "houses"; $topic = "Houses"; $subtopic = "houses"; include("houses.php"); break; case "guilds"; $topic = "Guilds"; $subtopic = "guilds"; include("guilds.php"); break; case "accountmanagement"; $topic = "Account Management"; $subtopic = "accountmanagement"; include("accountmanagement.php"); break; case "createaccount"; $topic = "Create Account"; $subtopic = "createaccount"; include("createaccount.php"); break; case "lostaccount"; $topic = "Lost Account Interface"; $subtopic = "lostaccount"; include("lostaccount.php"); break; case "tibiarules"; $topic = "Server Rules"; $subtopic = "tibiarules"; include("tibiarules.php"); break; case "adminpanel": $topic = "Admin Panel"; $subtopic = "adminpanel"; include("adminpanel.php"); break; case "forum": $topic = "Forum"; $subtopic = "forum"; include("forum.php"); break; case "team"; $subtopic = "team"; $topic = "Gamemasters List"; include("team.php"); break; case "downloads"; $subtopic = "downloads"; $topic = "Downloads"; include("downloads.php"); break; case "serverinfo"; $subtopic = "serverinfo"; $topic = "Server Info"; include("serverinfo.php"); break; case "shopsystem"; $subtopic = "shopsystem"; $topic = "Shop System"; include("shopsystem.php"); break; case "buypoints"; $subtopic = "buypoints"; $topic = "Buy Points"; include("buypoints.php"); break; case "wars"; $subtopic = "wars"; $topic = "Wars"; include("wars.php"); break; case "gallery"; $subtopic = "gallery"; $topic = "Gallery"; include("gallery.php"); break; case "namelock"; $subtopic = "namelock"; $topic = "Namelock Manager"; include("namelocks.php"); break; case "archive"; $subtopic = "archive"; $topic = "News Archives"; include("archive.php"); break; case "mail"; $subtopic = "mail"; $topic = "Mass emails sender"; include("mail.php"); break; case "shopadmin"; $subtopic = "shopadmin"; $topic = "Shop Admin"; include("shopadmin.php"); break; case "records"; $subtopic = "records"; $topic = "Players Online Records"; include("records.php"); break; case "restarter"; $subtopic = "restarter"; $topic = "Restarter"; include("restarter.php"); break; case "bans"; $subtopic = "bans"; $topic = "Ban List"; include("bans.php"); break; case "polls"; $topic = "Polls"; $subtopic = "polls"; include("polls.php"); break; case "changelog"; $topic = "Changelog"; $subtopic = "changelog"; include("changelog.php"); break; } if(empty($topic)) { $title = $GLOBALS['config']['server']["serverName"]." - OTS"; $main_content .= 'Invalid subtopic. Can\'t load page.'; } else { $title = $GLOBALS['config']['server']["serverName"]." - ".$topic; } //#####LAYOUT##### $layout_header = '<script type=\'text/javascript\'> function GetXmlHttpObject() { var xmlHttp=null; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function MouseOverBigButton(source) { source.firstChild.style.visibility = "visible"; } function MouseOutBigButton(source) { source.firstChild.style.visibility = "hidden"; } function BigButtonAction(path) { window.location = path; } var'; if($logged) { $layout_header .= "loginStatus=1; loginStatus='true';"; } else { $layout_header .= "loginStatus=0; loginStatus='false';"; }; $layout_header .= " var activeSubmenuItem='".$subtopic."';</script>"; include($layout_name."/layout.php"); ob_end_flush(); ?> Subtitua Seu Install.php Por Este. REPUTAÇÃO + Abraços, CmGabriel Link para o comentário Compartilhar em outros sites More sharing options...
AlexxNica 32 Postado Junho 3, 2011 Share Postado Junho 3, 2011 Primeiramente obrigado pelo tempo gasto lendo este post e tentando resolver meu problema. O que acontece: Eu ligo o xampp e tudo certinho e coloquei C:\xampp\htdocs a pasta do gesior 0.3.7 até ai tudo certo mais quando clico para abrir a página acontece isso: Aqui vai o link da img: http://imageshack.us/f/684/webmk.png/ The Dark Knight, O Erro Pode Estar Na Sua Install.php Em Outro Tópico Um Usuario Resolveu Sua Duvida Substituindo Seu Install.php e Funcionou, Então: <?PHP session_start(); header('Content-Type: text/html; charset=ISO-8859-1'); ob_start("ob_gzhandler"); //require('./exaBD.php'); function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = microtime_float(); //##### CONFIG ##### include('config-and-functions.php'); $action = $_REQUEST['action']; //##### LOGOUT ##### if($action == "logout") { unset($_SESSION['account']); unset($_SESSION['password']); } //##### LOGIN ##### $logged = FALSE; if(isset($_SESSION['account'])) { $account_logged = $ots->createObject('Account'); $account_logged->load($_SESSION['account']); if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password']) { $logged = TRUE; $group_id_of_acc_logged = $account_logged->getPageAccess(); } else { $logged = FALSE; unset($_SESSION['account']); unset($account_logged); } } $login_account = strtoupper(trim($_POST['account_login'])); $login_password = trim($_POST['password_login']); if(!$logged && !empty($login_account) && !empty($login_password)) { $login_password = password_ency($login_password); $account_logged = $ots->createObject('Account'); $account_logged->find($login_account); if($account_logged->isLoaded()) { if($login_password == $account_logged->getPassword()) { $_SESSION['account'] = $account_logged->getId(); $_SESSION['password'] = $login_password; $logged = TRUE; $account_logged->setCustomField("page_lastday", time()); $group_id_of_acc_logged = $account_logged->getPageAccess(); } else $logged = FALSE; } } //#### LOAD PAGE ########## if(empty($_REQUEST['subtopic'])) { $_REQUEST['subtopic'] = "latestnews"; $subtopic = "latestnews"; } switch($_REQUEST['subtopic']) { case "latestnews": $topic = "Latest News"; $subtopic = "latestnews"; include("latestnews.php"); break; case "creatures"; $topic = "Creatures"; $subtopic = "creatures"; include("creatures.php"); break; case "spells"; $topic = "Spells"; $subtopic = "spells"; include("spells.php"); break; case "bugtracker"; $topic = "Bug Tracker"; $subtopic = "bugtracker"; include("bug.php"); break; case "experiencetable"; $topic = "Experience Table"; $subtopic = "experiencetable"; include("experiencetable.php"); break; case "signatures"; $topic = "Signature Generator"; $subtopic = "signatures"; include("signatures.php"); break; case "characters"; $topic = "Characters"; $subtopic = "characters"; include("characters.php"); break; case "whoisonline"; $topic = "Who is online?"; $subtopic = "whoisonline"; include("whoisonline.php"); break; case "highscores"; $topic = "Highscores"; $subtopic = "highscores"; include("highscores.php"); break; case "killstatistics"; $topic = "Last Kills"; $subtopic = "killstatistics"; include("killstatistics.php"); break; case "houses"; $topic = "Houses"; $subtopic = "houses"; include("houses.php"); break; case "guilds"; $topic = "Guilds"; $subtopic = "guilds"; include("guilds.php"); break; case "accountmanagement"; $topic = "Account Management"; $subtopic = "accountmanagement"; include("accountmanagement.php"); break; case "createaccount"; $topic = "Create Account"; $subtopic = "createaccount"; include("createaccount.php"); break; case "lostaccount"; $topic = "Lost Account Interface"; $subtopic = "lostaccount"; include("lostaccount.php"); break; case "tibiarules"; $topic = "Server Rules"; $subtopic = "tibiarules"; include("tibiarules.php"); break; case "adminpanel": $topic = "Admin Panel"; $subtopic = "adminpanel"; include("adminpanel.php"); break; case "forum": $topic = "Forum"; $subtopic = "forum"; include("forum.php"); break; case "team"; $subtopic = "team"; $topic = "Gamemasters List"; include("team.php"); break; case "downloads"; $subtopic = "downloads"; $topic = "Downloads"; include("downloads.php"); break; case "serverinfo"; $subtopic = "serverinfo"; $topic = "Server Info"; include("serverinfo.php"); break; case "shopsystem"; $subtopic = "shopsystem"; $topic = "Shop System"; include("shopsystem.php"); break; case "buypoints"; $subtopic = "buypoints"; $topic = "Buy Points"; include("buypoints.php"); break; case "wars"; $subtopic = "wars"; $topic = "Wars"; include("wars.php"); break; case "gallery"; $subtopic = "gallery"; $topic = "Gallery"; include("gallery.php"); break; case "namelock"; $subtopic = "namelock"; $topic = "Namelock Manager"; include("namelocks.php"); break; case "archive"; $subtopic = "archive"; $topic = "News Archives"; include("archive.php"); break; case "mail"; $subtopic = "mail"; $topic = "Mass emails sender"; include("mail.php"); break; case "shopadmin"; $subtopic = "shopadmin"; $topic = "Shop Admin"; include("shopadmin.php"); break; case "records"; $subtopic = "records"; $topic = "Players Online Records"; include("records.php"); break; case "restarter"; $subtopic = "restarter"; $topic = "Restarter"; include("restarter.php"); break; case "bans"; $subtopic = "bans"; $topic = "Ban List"; include("bans.php"); break; case "polls"; $topic = "Polls"; $subtopic = "polls"; include("polls.php"); break; case "changelog"; $topic = "Changelog"; $subtopic = "changelog"; include("changelog.php"); break; } if(empty($topic)) { $title = $GLOBALS['config']['server']["serverName"]." - OTS"; $main_content .= 'Invalid subtopic. Can\'t load page.'; } else { $title = $GLOBALS['config']['server']["serverName"]." - ".$topic; } //#####LAYOUT##### $layout_header = '<script type=\'text/javascript\'> function GetXmlHttpObject() { var xmlHttp=null; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function MouseOverBigButton(source) { source.firstChild.style.visibility = "visible"; } function MouseOutBigButton(source) { source.firstChild.style.visibility = "hidden"; } function BigButtonAction(path) { window.location = path; } var'; if($logged) { $layout_header .= "loginStatus=1; loginStatus='true';"; } else { $layout_header .= "loginStatus=0; loginStatus='false';"; }; $layout_header .= " var activeSubmenuItem='".$subtopic."';</script>"; include($layout_name."/layout.php"); ob_end_flush(); ?> Subtitua Seu Install.php Por Este. REPUTAÇÃO + Abraços, CmGabriel cmgabriel, lembrando que este arquivo que você colocou é o index.php e não o install.php. Observações: Aconselho usar o XAMPP 1.7.3, pois mesmo arrumando o erro que você está tendo, algumas funções do Gesior podem não funcionar devido ao update do PHP. Link para o comentário Compartilhar em outros sites More sharing options...
Secular 132 Postado Junho 3, 2011 Share Postado Junho 3, 2011 Primeiramente obrigado pelo tempo gasto lendo este post e tentando resolver meu problema. O que acontece: Eu ligo o xampp e tudo certinho e coloquei C:\xampp\htdocs a pasta do gesior 0.3.7 até ai tudo certo mais quando clico para abrir a página acontece isso: Aqui vai o link da img: http://imageshack.us/f/684/webmk.png/ The Dark Knight, O Erro Pode Estar Na Sua Install.php Em Outro Tópico Um Usuario Resolveu Sua Duvida Substituindo Seu Install.php e Funcionou, Então: <?PHP session_start(); header('Content-Type: text/html; charset=ISO-8859-1'); ob_start("ob_gzhandler"); //require('./exaBD.php'); function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = microtime_float(); //##### CONFIG ##### include('config-and-functions.php'); $action = $_REQUEST['action']; //##### LOGOUT ##### if($action == "logout") { unset($_SESSION['account']); unset($_SESSION['password']); } //##### LOGIN ##### $logged = FALSE; if(isset($_SESSION['account'])) { $account_logged = $ots->createObject('Account'); $account_logged->load($_SESSION['account']); if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password']) { $logged = TRUE; $group_id_of_acc_logged = $account_logged->getPageAccess(); } else { $logged = FALSE; unset($_SESSION['account']); unset($account_logged); } } $login_account = strtoupper(trim($_POST['account_login'])); $login_password = trim($_POST['password_login']); if(!$logged && !empty($login_account) && !empty($login_password)) { $login_password = password_ency($login_password); $account_logged = $ots->createObject('Account'); $account_logged->find($login_account); if($account_logged->isLoaded()) { if($login_password == $account_logged->getPassword()) { $_SESSION['account'] = $account_logged->getId(); $_SESSION['password'] = $login_password; $logged = TRUE; $account_logged->setCustomField("page_lastday", time()); $group_id_of_acc_logged = $account_logged->getPageAccess(); } else $logged = FALSE; } } //#### LOAD PAGE ########## if(empty($_REQUEST['subtopic'])) { $_REQUEST['subtopic'] = "latestnews"; $subtopic = "latestnews"; } switch($_REQUEST['subtopic']) { case "latestnews": $topic = "Latest News"; $subtopic = "latestnews"; include("latestnews.php"); break; case "creatures"; $topic = "Creatures"; $subtopic = "creatures"; include("creatures.php"); break; case "spells"; $topic = "Spells"; $subtopic = "spells"; include("spells.php"); break; case "bugtracker"; $topic = "Bug Tracker"; $subtopic = "bugtracker"; include("bug.php"); break; case "experiencetable"; $topic = "Experience Table"; $subtopic = "experiencetable"; include("experiencetable.php"); break; case "signatures"; $topic = "Signature Generator"; $subtopic = "signatures"; include("signatures.php"); break; case "characters"; $topic = "Characters"; $subtopic = "characters"; include("characters.php"); break; case "whoisonline"; $topic = "Who is online?"; $subtopic = "whoisonline"; include("whoisonline.php"); break; case "highscores"; $topic = "Highscores"; $subtopic = "highscores"; include("highscores.php"); break; case "killstatistics"; $topic = "Last Kills"; $subtopic = "killstatistics"; include("killstatistics.php"); break; case "houses"; $topic = "Houses"; $subtopic = "houses"; include("houses.php"); break; case "guilds"; $topic = "Guilds"; $subtopic = "guilds"; include("guilds.php"); break; case "accountmanagement"; $topic = "Account Management"; $subtopic = "accountmanagement"; include("accountmanagement.php"); break; case "createaccount"; $topic = "Create Account"; $subtopic = "createaccount"; include("createaccount.php"); break; case "lostaccount"; $topic = "Lost Account Interface"; $subtopic = "lostaccount"; include("lostaccount.php"); break; case "tibiarules"; $topic = "Server Rules"; $subtopic = "tibiarules"; include("tibiarules.php"); break; case "adminpanel": $topic = "Admin Panel"; $subtopic = "adminpanel"; include("adminpanel.php"); break; case "forum": $topic = "Forum"; $subtopic = "forum"; include("forum.php"); break; case "team"; $subtopic = "team"; $topic = "Gamemasters List"; include("team.php"); break; case "downloads"; $subtopic = "downloads"; $topic = "Downloads"; include("downloads.php"); break; case "serverinfo"; $subtopic = "serverinfo"; $topic = "Server Info"; include("serverinfo.php"); break; case "shopsystem"; $subtopic = "shopsystem"; $topic = "Shop System"; include("shopsystem.php"); break; case "buypoints"; $subtopic = "buypoints"; $topic = "Buy Points"; include("buypoints.php"); break; case "wars"; $subtopic = "wars"; $topic = "Wars"; include("wars.php"); break; case "gallery"; $subtopic = "gallery"; $topic = "Gallery"; include("gallery.php"); break; case "namelock"; $subtopic = "namelock"; $topic = "Namelock Manager"; include("namelocks.php"); break; case "archive"; $subtopic = "archive"; $topic = "News Archives"; include("archive.php"); break; case "mail"; $subtopic = "mail"; $topic = "Mass emails sender"; include("mail.php"); break; case "shopadmin"; $subtopic = "shopadmin"; $topic = "Shop Admin"; include("shopadmin.php"); break; case "records"; $subtopic = "records"; $topic = "Players Online Records"; include("records.php"); break; case "restarter"; $subtopic = "restarter"; $topic = "Restarter"; include("restarter.php"); break; case "bans"; $subtopic = "bans"; $topic = "Ban List"; include("bans.php"); break; case "polls"; $topic = "Polls"; $subtopic = "polls"; include("polls.php"); break; case "changelog"; $topic = "Changelog"; $subtopic = "changelog"; include("changelog.php"); break; } if(empty($topic)) { $title = $GLOBALS['config']['server']["serverName"]." - OTS"; $main_content .= 'Invalid subtopic. Can\'t load page.'; } else { $title = $GLOBALS['config']['server']["serverName"]." - ".$topic; } //#####LAYOUT##### $layout_header = '<script type=\'text/javascript\'> function GetXmlHttpObject() { var xmlHttp=null; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function MouseOverBigButton(source) { source.firstChild.style.visibility = "visible"; } function MouseOutBigButton(source) { source.firstChild.style.visibility = "hidden"; } function BigButtonAction(path) { window.location = path; } var'; if($logged) { $layout_header .= "loginStatus=1; loginStatus='true';"; } else { $layout_header .= "loginStatus=0; loginStatus='false';"; }; $layout_header .= " var activeSubmenuItem='".$subtopic."';</script>"; include($layout_name."/layout.php"); ob_end_flush(); ?> Subtitua Seu Install.php Por Este. REPUTAÇÃO + Abraços, CmGabriel cmgabriel, lembrando que este arquivo que você colocou é o index.php e não o install.php. Observações: Aconselho usar o XAMPP 1.7.3, pois mesmo arrumando o erro que você está tendo, algumas funções do Gesior podem não funcionar devido ao update do PHP. Foi Um Engano, Porem Este Index Php Substituido Pelo Dele Pode Resolver o Problema... Link para o comentário Compartilhar em outros sites More sharing options...
The Dark Knight 0 Postado Junho 4, 2011 Autor Share Postado Junho 4, 2011 Agradeço ao, cmgabriel e Alexx Pirado lol Bem já como o Alexx Pirado lol disse que eu poderia ter problemas futuros eu instalei direto o XAMPP 1.7.3 e conseguir solucionar o problema. Agradeço, The Dark Knight! Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados