require_once "fwk_cabecalho.php"; if ((bool) $_REQUEST["logoff"]) { $_SESSION["login"] = ""; $_SESSION["senha"] = ""; fechar_janela(); } $adwords = $_REQUEST["adwords"]; if (strlen($adwords)) { $_SESSION["adwords"] = $adwords; } if (!isset($_REQUEST["page"])) { include "site.php"; } $page = $_REQUEST["page"]; //if ($page == "pg_home") $page = ""; //if ($page == "livrodevisitas") redireciona("http://www.sitepratico.com/livrodevisitas/?site=www.espacocasualfestas.com.br&bg=FFCE08"); //$page = $_REQUEST["page"]; $pagina_administrativa = is_numeric(strpos($page, "ad_")) && !is_numeric(strpos($page, "login")); if ($pagina_administrativa) { include "fwk_controleacesso.php"; } if ($msg == "acesso_negado") { $msg = "Ops!"; } // $contem_trecho_invalido = eregi("http|www|ftp|.dat|.txt|.gif|wget|.exe", $page); // if ($contem_trecho_invalido) die("Erro n.666"); if (strlen($page)) { if (file_exists("$page.php")) { include "$page.php"; } else { die("p�gina n�o encontrada."); } //include("pg_notfound.php"); } else { ?>
//if (rand(1,10)>5) { ?> //} else { ?> //} ?> } if (!strlen($msg)) { $msg = $_REQUEST["msg"]; } if (strlen($msg)) { if ($msg == "contato_enviado") { $msg = "Contato enviado com sucesso."; } if ($msg == "acesso_negado") { $msg = "Acesso negado."; } print ""; } ?>