示例#1
0
 function index()
 {
     $visao = new Visao('layout');
     $visao->mostrarPadrao();
     $layout = $visao->Layout();
     $procurar = array('%%site%%');
     $substituir = array($layout['este']);
     $lay = str_replace($procurar, $substituir, $layout['padrao']);
     echo comprimeHtml($lay);
 }
示例#2
0
 function index()
 {
     header("HTTP/1.0 404 Not Found");
     $visao = new Visao('layout');
     $visao->mostrarPadrao();
     $metas[] = array('name' => 'robots', 'content' => 'noindex,follow');
     $visao->AdicionaMeta($metas);
     $layout = $visao->Layout();
     $layout404 = file_get_contents('../' . DIR . SUBDOMINIO . '/erros/visao404.php');
     $procurar = array('%%site%%');
     $substituir = array($layout404);
     $lay = str_replace($procurar, $substituir, $layout['padrao']);
     echo comprimeHtml($lay);
 }