Пример #1
0
<?php

if (!isset($_SESSION['PATH_SYS'])) {
    require_once '_loadPaths.inc.php';
}
$path = $_SESSION['PATH_SYS'];
include_once $path['template'] . 'Template.php';
include_once $path['template'] . 'TemplateForum.php';
include_once $path['controller'] . 'ForumTopicoController.php';
$templateGeral = new Template();
$templateForum = new TemplateForum();
$topicoController = new ForumTopicoController();
$topicos = $topicoController->selectAtivos();
//print_r($topicos);
?>
<!DOCTYPE html>
<html lang="pt-br">
      <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
        <title>Fórum</title>
        <!-- Bootstrap -->
        <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="css/style.css">    	
        <link href='http://fonts.googleapis.com/css?family=Overlock:400,400italic,700,900,700italic,900italic' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,700,600italic,700italic,900,900italic' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="js/malihu.3.0.3/mCustomScrollbar.css" />
        <link rel="stylesheet" type="text/css" href="css/forum.css">        
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
Пример #2
0
 function __construct()
 {
     self::$path = $_SESSION['URL_SYS'];
 }