header("Content-Type: text/html; charset=ISO-8859-1"); session_start(); if(isset($_SESSION['logado'])) { if(!$_SESSION['logado']) header("Location: logar"); } else header("Location: logar"); require "funcoes/banco.php"; require "funcoes/paginacao.php"; /***************************** $mysql = new DataBase; $mysql->driver = 'localhost'; $mysql->user = 'root'; $mysql->password = ''; $mysql->database = 'compecas'; $mysql->pre = 'com_'; $mysql->connect(); *****************************/ /*****************************/ $mysql = new DataBase; $mysql->driver = 'localhost'; $mysql->user = 'compecas_pecas'; $mysql->password = '159159'; $mysql->database = 'compecas_compecas'; $mysql->pre = 'com'; $mysql->connect(); /*****************************/ ?>
".$_SESSION['msn_ok']."
"; $_SESSION['msn_ok'] = NULL; } else if (array_key_exists('msn_erro', $_SESSION) && $_SESSION['msn_erro'] ) { echo "".$_SESSION['msn_erro']."
"; $_SESSION['msn_erro'] = NULL; } if(isset($_GET['i']) && $_GET['i']) { if(file_exists('inc/'.$_GET['i'].'.php')) include 'inc/'.$_GET['i'].'.php'; else include 'notefound.php'; } else include 'inc/home.php'; ?>