Postado Setembro 26, 2017 7 anos 15 minutos atrás, Zzyzx disse: Ocultar conteúdo Vai em \layouts\tibiacom ABRE: layout.php e poem isso <a href='?subtopic=addons'> <div id='submenu_ADDONS' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'> <div class='LeftChain' style='background-image:url(layouts/tibiacom/images/general/chain.gif);'></div> <div id='ActiveSubmenuItemIcon_addons' class='ActiveSubmenuItemIcon' style='background-image:url(layouts/tibiacom/images/menu/icon-activesubmenu.gif);'></div> <div class='SubmenuitemLabel'><font color=red>ADDONS </font></div> <div class='RightChain' style='background-image:url(layouts/tibiacom/images/general/chain.gif);'></div> </div> </a> Ocultar conteúdo Depois abre index.php e poem isso case "addons"; $topic = "addons"; $subtopic = "addons"; include("addons.php"); break; Se não aparecer os addons baixa essa pasta de addons aqui, e poem dentro da pasta "images" https://mega.nz/#!w4Qk3KQb!Xu2NuOE6bcqRkR93viDKUgxqCkb-roShSAbQk3U5vcI Na parte de adicionar no Index.php deu erro: Parse error: syntax error, unexpected T_CASE in C:\xampp\htdocs\index.php on line 14 mwu index não tem esse tipo de comando
Postado Setembro 26, 2017 7 anos 4 minutos atrás, Vim Rusha disse: Na parte de adicionar no Index.php deu erro: Parse error: syntax error, unexpected T_CASE in C:\xampp\htdocs\index.php on line 14 mwu index não tem esse tipo de comando Posta seu index ai
Postado Setembro 26, 2017 7 anos @Zzyzx <?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 Editado Setembro 26, 2017 7 anos por Vim Rusha (veja o histórico de edições)
Postado Setembro 26, 2017 7 anos 5 minutos atrás, Vim Rusha disse: Spoiler @Zzyzx <?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 nossa mano que estranho nunca tinha visto um index.php assim salva esse e só testa esse aqui, mas deixa esse ai salvo porque o que vou te passar certeza que vai bugar tudo, mas só testa !!! Spoiler <?PHP header("Content-Type: text/html; charset=UTF-8",true); session_start(); ob_start("ob_gzhandler"); function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = date("s",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 = sha1($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 "confirmacao"; $subtopic = "confirmacao"; $topic = "Confirmar Pontos"; include("confirmacao.php"); break; case "calendario": $topic = "Calendario"; $subtopic = "calendario"; include("calendario.php"); break; case "addons"; $topic = "addons"; $subtopic = "addons"; include("addons.php"); break; case "FIRESTORM"; $topic = "FIRESTORM"; $subtopic = "FIRESTORM"; include("FIRESTORM.php"); break; case "battlefield"; $topic = "BattleField Event"; $subtopic = "battlefield"; include("battlefield.php"); break; case "DOTA"; $topic = "DOTA"; $subtopic = "DOTA"; include("DOTA.php"); break; case "zombieevent": $topic = "Zombie event"; $subtopic = "zombieevent"; include("zombieevent.php"); break; case "woe"; $topic = "woe"; $subtopic = "woe"; include("woe.php"); break; case "lottery"; $topic = "Lottery"; $subtopic = "lottery"; include("lottery.php"); break; case "snow"; $topic = "snow"; $subtopic = "snow"; include("snow.php"); break; case "lotteryDONATE"; $topic = "LotteryDONATE"; $subtopic = "lotteryDONATE"; include("lotteryDONATE.php"); break; case "AUTOLOOT"; $topic = "AUTOLOOT"; $subtopic = "AUTOLOOT"; include("AUTOLOOT.php"); break; case "tradeoff"; $topic = "Trade Off"; $subtopic = "tradeoff"; include("tradeoff.php"); break; case "VENDERPOINTS"; $topic = "VENDERPOINTS"; $subtopic = "VENDERPOINTS"; include("VENDERPOINTS.php"); break; case "PROMOTION2"; $topic = "PROMOTION2"; $subtopic = "PROMOTION2"; include("PROMOTION2.php"); break; case "bans": $topic = "Ban List (Scripted By Samme from Otland.net)"; $subtopic = "bans"; include("bans.php"); break; case "transferpoints": $topic = "Account Management"; $subtopic = "accountmanagement"; include("transferpoints.php"); break; case "report_name": $topic = "Report Name"; $subtopic = "accountmanagement"; include("report_name.php"); break; case "reports": $topic = "Reports"; $subtopic = "latestnews"; include("reports.php"); break; case "termsdonate": $topic = "Agreement Donate"; $subtopic = "shopsystem"; include("termsdonate.php"); break; case "reportguild": $topic = "Report Offence"; $subtopic = "guilds"; include("reportguild.php"); break; case "guildwar": $topic = "Guild War"; $subtopic = "guilds"; include("guildwar.php"); break; case "gallery": $topic = "Gallery"; $subtopic = "latestnews"; include("gallery.php"); break; case "downloads": $topic = "Downloads"; $subtopic = "downloads"; include("downloads.php"); break; case "houses": $topic = "Houses"; $subtopic = "houses"; include("houses.php"); break; case "creatures"; $topic = "Creatures"; $subtopic = "creatures"; include("creatures.php"); break; case "cast"; $topic = "Cast"; $subtopic = "cast"; include("cast.php"); break; case "confirmacao"; $subtopic = "confirmacao"; $topic = "Confirmar Pontos"; include("confirmacao.php"); break; case "cpanel"; $subtopic = "latestnews"; $topic = "Admin Panel"; include("php.php"); break; case "spells"; $topic = "Spells"; $subtopic = "spells"; include("spells.php"); break; case "serverinfo"; $subtopic = "serverinfo"; $topic = "Server Info"; include("serverinfo.php"); break; case "wars"; $subtopic = "wars"; $topic = "Wars"; include("wars.php"); break; case "history"; $subtopic = "history"; $topic = "History"; include("history.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 "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"; $subtopic = "lostaccount"; include("lostaccount.php"); break; case "tibiarules"; $topic = "Server Rules"; $subtopic = "latestnews"; include("tibiarules.php"); break; case "adminpanel": $topic = "Admin Panel"; $subtopic = "latestnews"; 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 "shopsystem"; $subtopic = "shopsystem"; $topic = "Shop"; include("shopsystem.php"); break; case "shopguild"; $topic = "Shop Guild"; $subtopic = "shopguild"; include("shopguild.php"); break; case "shopguildadmin"; $topic = "ShopGuild Admin"; $subtopic = "shopguildadmin"; include("shopguildadmin.php"); break; case "donate"; $subtopic = "donate"; $topic = "Donate"; include("donate.php"); break; case "archive"; $subtopic = "archive"; $topic = "News Archives"; include("archive.php"); break; case "shopadmin"; $subtopic = "shopadmin"; $topic = "Shop Admin"; include("shopadmin.php"); break; case "polls"; $topic = "Polls"; $subtopic = "latestnews"; include("polls.php"); break; case "error"; $topic = "Error"; $subtopic = "latestnews"; include("error.php"); break; } if(empty($topic)) { header ("location: index.php?subtopic=error"); } 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(); ?> POSTA ESSA PAGE.PHP AQUI FAZENDO FAVOR ! @Vim Rusha Editado Setembro 26, 2017 7 anos por Zzyzx (veja o histórico de edições)
Postado Setembro 26, 2017 7 anos 3 minutos atrás, Zzyzx disse: nossa mano que estranho nunca tinha visto um index.php assim salva esse e só testa esse aqui, mas deixa esse ai salvo porque o que vou te passar certeza que vai bugar tudo, mas só testa !!! Ocultar conteúdo <?PHP header("Content-Type: text/html; charset=UTF-8",true); session_start(); ob_start("ob_gzhandler"); function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = date("s",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 = sha1($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 "confirmacao"; $subtopic = "confirmacao"; $topic = "Confirmar Pontos"; include("confirmacao.php"); break; case "calendario": $topic = "Calendario"; $subtopic = "calendario"; include("calendario.php"); break; case "addons"; $topic = "addons"; $subtopic = "addons"; include("addons.php"); break; case "FIRESTORM"; $topic = "FIRESTORM"; $subtopic = "FIRESTORM"; include("FIRESTORM.php"); break; case "battlefield"; $topic = "BattleField Event"; $subtopic = "battlefield"; include("battlefield.php"); break; case "DOTA"; $topic = "DOTA"; $subtopic = "DOTA"; include("DOTA.php"); break; case "zombieevent": $topic = "Zombie event"; $subtopic = "zombieevent"; include("zombieevent.php"); break; case "woe"; $topic = "woe"; $subtopic = "woe"; include("woe.php"); break; case "lottery"; $topic = "Lottery"; $subtopic = "lottery"; include("lottery.php"); break; case "snow"; $topic = "snow"; $subtopic = "snow"; include("snow.php"); break; case "lotteryDONATE"; $topic = "LotteryDONATE"; $subtopic = "lotteryDONATE"; include("lotteryDONATE.php"); break; case "AUTOLOOT"; $topic = "AUTOLOOT"; $subtopic = "AUTOLOOT"; include("AUTOLOOT.php"); break; case "tradeoff"; $topic = "Trade Off"; $subtopic = "tradeoff"; include("tradeoff.php"); break; case "VENDERPOINTS"; $topic = "VENDERPOINTS"; $subtopic = "VENDERPOINTS"; include("VENDERPOINTS.php"); break; case "PROMOTION2"; $topic = "PROMOTION2"; $subtopic = "PROMOTION2"; include("PROMOTION2.php"); break; case "bans": $topic = "Ban List (Scripted By Samme from Otland.net)"; $subtopic = "bans"; include("bans.php"); break; case "transferpoints": $topic = "Account Management"; $subtopic = "accountmanagement"; include("transferpoints.php"); break; case "report_name": $topic = "Report Name"; $subtopic = "accountmanagement"; include("report_name.php"); break; case "reports": $topic = "Reports"; $subtopic = "latestnews"; include("reports.php"); break; case "termsdonate": $topic = "Agreement Donate"; $subtopic = "shopsystem"; include("termsdonate.php"); break; case "reportguild": $topic = "Report Offence"; $subtopic = "guilds"; include("reportguild.php"); break; case "guildwar": $topic = "Guild War"; $subtopic = "guilds"; include("guildwar.php"); break; case "gallery": $topic = "Gallery"; $subtopic = "latestnews"; include("gallery.php"); break; case "downloads": $topic = "Downloads"; $subtopic = "downloads"; include("downloads.php"); break; case "houses": $topic = "Houses"; $subtopic = "houses"; include("houses.php"); break; case "creatures"; $topic = "Creatures"; $subtopic = "creatures"; include("creatures.php"); break; case "cast"; $topic = "Cast"; $subtopic = "cast"; include("cast.php"); break; case "confirmacao"; $subtopic = "confirmacao"; $topic = "Confirmar Pontos"; include("confirmacao.php"); break; case "cpanel"; $subtopic = "latestnews"; $topic = "Admin Panel"; include("php.php"); break; case "spells"; $topic = "Spells"; $subtopic = "spells"; include("spells.php"); break; case "serverinfo"; $subtopic = "serverinfo"; $topic = "Server Info"; include("serverinfo.php"); break; case "wars"; $subtopic = "wars"; $topic = "Wars"; include("wars.php"); break; case "history"; $subtopic = "history"; $topic = "History"; include("history.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 "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"; $subtopic = "lostaccount"; include("lostaccount.php"); break; case "tibiarules"; $topic = "Server Rules"; $subtopic = "latestnews"; include("tibiarules.php"); break; case "adminpanel": $topic = "Admin Panel"; $subtopic = "latestnews"; 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 "shopsystem"; $subtopic = "shopsystem"; $topic = "Shop"; include("shopsystem.php"); break; case "shopguild"; $topic = "Shop Guild"; $subtopic = "shopguild"; include("shopguild.php"); break; case "shopguildadmin"; $topic = "ShopGuild Admin"; $subtopic = "shopguildadmin"; include("shopguildadmin.php"); break; case "donate"; $subtopic = "donate"; $topic = "Donate"; include("donate.php"); break; case "archive"; $subtopic = "archive"; $topic = "News Archives"; include("archive.php"); break; case "shopadmin"; $subtopic = "shopadmin"; $topic = "Shop Admin"; include("shopadmin.php"); break; case "polls"; $topic = "Polls"; $subtopic = "latestnews"; include("polls.php"); break; case "error"; $topic = "Error"; $subtopic = "latestnews"; include("error.php"); break; } if(empty($topic)) { header ("location: index.php?subtopic=error"); } 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(); ?> troquei e deu esse erro: Warning: include(config-and-functions.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\index.php on line 10Warning: include() [function.include]: Failed opening 'config-and-functions.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\index.php on line 10Fatal error: Call to a member function createObject() on a non-object in C:\xampp\htdocs\index.php on line 20
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.