예제 #1
0
<?php

namespace Iekadou\Webapp;

require_once "../../inc/include.php";
if (Account::is_logged_in() != true) {
    raise404();
    die;
}
new View('Activate', Translation::translate('Activate'), 'account/activate.html');
Globals::set_var('dashboard_active', true);
View::render();
예제 #2
0
<?php

namespace Iekadou\Webapp;

require_once "../inc/include.php";
$Image = new Image();
$id = isset($_GET['id']) ? htmlspecialchars($_GET['id']) : false;
$Image = $Image->get_by(array(array("id", "=", $id), array("userid", "=", Account::get_user_id())));
if ($Image == false) {
    raise404();
    die;
}
new View('Image', Translation::translate('Image'), "image.html");
Globals::set_var('Image', $Image);
View::render();
예제 #3
0
    define('REQUEST_METHOD', "GET");
}
session_start();
define('PATH', $_SERVER['DOCUMENT_ROOT'] . '/');
define('Lare', true);
// configs
include PATH . "config/webapp.php";
// includes
require_once PATH . "vendor/autoload.php";
require_once PATH . "classes/Globals.php";
include PATH . "inc/utils.php";
require_once PATH . "classes/Translation.php";
require_once PATH . "classes/View.php";
require_once PATH . "classes/UrlsPy.php";
require_once PATH . "classes/Pagination.php";
require_once PATH . "classes/TwigUrl.php";
require_once PATH . "classes/TwigTrans.php";
require_once PATH . "classes/TwigTime.php";
require_once PATH . "classes/View.php";
require_once PATH . "classes/DBConnector.php";
require_once PATH . "classes/BaseModel.php";
require_once PATH . "classes/User.php";
require_once PATH . "classes/Image.php";
require_once PATH . "classes/Files.php";
require_once PATH . "classes/ValidationError.php";
require_once PATH . "classes/Migration.php";
require_once PATH . "classes/Account.php";
Globals::set_var('Account', new Account());
Globals::set_var('SITE_NAME', SITE_NAME);
Globals::set_var('DOMAIN', DOMAIN);
$INIT_LOADED = true;
예제 #4
0
<?php

namespace Iekadou\Webapp;

require_once "../inc/include.php";
new View('Login', Translation::translate('Login'), "login.html");
$referrer = isset($_GET['referrer']) ? htmlspecialchars($_GET['referrer']) : false;
Globals::set_var('referrer', $referrer);
View::render();
예제 #5
0
<?php

namespace Iekadou\Webapp;

require_once "../../inc/include.php";
if (Account::is_logged_in() != true) {
    raise404();
    die;
}
new View('Profile', Translation::translate('Profile'), 'account/profile.html');
Globals::set_var('profile_active', true);
View::render();