Example #1
0
}
foreach (glob("classe/*.php") as $filename) {
    require_once $filename;
}
$_REQUEST['raiz'] = $raiz;
define("DIRETORIO", $raiz);
$controle = $url[0];
$acao = $url[1];
foreach ($url as $key => $value) {
    if ($key > 1 && $key % 2 == 0) {
        $_REQUEST[$value] = $url[$key + 1];
    }
}
$sessao = new Sessao();
if ($controle == "" && $acao == "") {
    if ($sessao->verifica()) {
        header("Location: usuario/home");
    } else {
        header("Location: usuario/login");
    }
}
function debug($x)
{
    echo "<pre>";
    print_r($x);
    echo "</pre>";
}
require_once 'visao/topo.php';
echo "<title>{$controle} - {$acao}</title>";
$controle .= "Controle";
require_once 'controle/' . $controle . '.php';