Esempio n. 1
0
<?php

date_default_timezone_set('America/Sao_Paulo');
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'autoload.php';
if (file_exists('model.php')) {
    require_once 'model.php';
}
use Agil\Session\Session;
use Agil\Model\Import;
Import::get('account', __FILE__);
Import::get('project', __FILE__);
Import::get('notification', __FILE__);
Session::start();
if (!Session::exist('logado') || (bool) Session::exist('logado') == false) {
    echo Session::escape();
    die;
}
Esempio n. 2
0
<?php

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'autoload.php';
if (file_exists('model.php')) {
    require_once 'model.php';
}
use Agil\Session\Session;
use Agil\Model\Import;
Import::get('project', __FILE__);
Session::start();
if (!Session::exist('logado') || (bool) Session::exist('logado') == false) {
    echo Session::escape();
    die;
}
Esempio n. 3
0
<?php

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'autoload.php';
if (file_exists('model.php')) {
    require_once 'model.php';
}
use Agil\Session\Session;
use Agil\Model\Import;
Import::get('account', __FILE__);
Import::get('task', __FILE__);
Session::start();
if (!Session::exist('logado') || (bool) Session::exist('logado') == false) {
    echo Session::escape();
    die;
}
Esempio n. 4
0
<?php

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'autoload.php';
if (file_exists('model.php')) {
    require_once 'model.php';
}
use Agil\Session\Session;
use Agil\Model\Import;
Import::get('project', __FILE__);
Import::get('account', __FILE__);
Session::start();
if (!Session::exist('logado') || (bool) Session::exist('logado') == false) {
    echo Session::escape();
    die;
}