Postado Setembro 1, 2014 10 anos Solução Entre em system/load.compat.php ... procure essa parte: if(Website::fileExists("pages/" . $_REQUEST['subtopic'] . ".php")) { $subtopic = $_REQUEST['subtopic']; } else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); } Mude isso: else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); Para isso: else { header('Location: ?subtopic=error'); } E pronto, basta criar em pages/ um arquivo com o nome error.php e coloca o que tu quiser dentro, lembrando que é um arquivo php. STYLLER OT 2022
Postado Setembro 1, 2014 10 anos Autor Entre em system/load.compat.php ... procure essa parte: if(Website::fileExists("pages/" . $_REQUEST['subtopic'] . ".php")) { $subtopic = $_REQUEST['subtopic']; } else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); } Mude isso: else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); Para isso: else { header('Location: ?subtopic=error'); } E pronto, basta criar em pages/ um arquivo com o nome error.php e coloca o que tu quiser dentro, lembrando que é um arquivo php. Entre em system/load.compat.php ... procure essa parte: if(Website::fileExists("pages/" . $_REQUEST['subtopic'] . ".php")) { $subtopic = $_REQUEST['subtopic']; } else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); } Mude isso: else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); Para isso: else { header('Location: ?subtopic=error'); } E pronto, basta criar em pages/ um arquivo com o nome error.php e coloca o que tu quiser dentro, lembrando que é um arquivo php. Muito obrigado, deu totalmente certo! Continue o bom trabalho no TK, excelente! TibiaServers.org | A sua nova lista de servidores de Tibia [url=https://tibiaservers.org/server/evolution-ot][img]https://tibiaservers.org/dynamic_banners/76-ankrahmun.png[/img][/url]
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.