Exemplo n.º 1
0
<?php

header('Content-type: text/html; charset=utf-8');
define('PATH_CONTROLLER', 'controller/');
define('PATH_VIEW', 'view/');
include 'include/mysql.php';
include 'include/app.php';
$app = new MyApp();
if ($app->connect()) {
    $app->db->query('SET NAMES utf8');
    /*session_start();
    	if(isset($_SESSION['time'])&&(time()-$_SESSION['time'])>$app->maxlifetime)
     	{
            session_destroy();
    	}*/
    $app->Run();
}