-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.inc.php
More file actions
27 lines (19 loc) · 838 Bytes
/
header.inc.php
File metadata and controls
27 lines (19 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
// Inicia a sessão
session_start();
// Criamos uma variável $pagina com o valor da query string 'pagina'
$pagina = !empty($_GET['pagina']) ? $_GET['pagina'] : 'home';
// Conectamos ao servidor. A variável $conexão agora contém
// o resource de conexão, retornado pelo mysql_connect
$conexao = require_once 'conecta.inc.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Mural de recados</title>
<link rel="stylesheet" type="text/css" media="all" href="mural.css" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div id="container">
<div id="cabecalho"><h1><a href="index.php" title="Principal">Mural de Recados</a></h1></div>