Esempio n. 1
0
});
$routes->post('/hakemukset/hakemus/:id/poista', function ($id) {
    Hakemuscontroller::poista($id);
});
$routes->get('/hakemukset/muokkaa', function ($id) {
    Hakemuscontroller::muokkaa($id);
});
$routes->post('/hakemukset', function () {
    Hakemuscontroller::luo_hakemus();
});
$routes->get('/hakemukset/hakemus/:id', function ($id) {
    Hakemuscontroller::nayta_hakemus($id);
});
$routes->get('/hakemukset/uusi', function () {
    Hakemuscontroller::hakemus();
});
$routes->get('/hakemukset/hakemuslista', function () {
    Hakemuscontroller::hakemuslista();
});
$routes->get('/leirilista', function () {
    leiricontroller::leirilista();
});
$routes->get('/profiilisivu', function () {
    usercontroller::profiilisivu();
});
$routes->get('/kirjaudu', function () {
    usercontroller::kirjaudu();
});
$routes->get('/rekisteroidy', function () {
    usercontroller::rekisteroidy();
});
Esempio n. 2
0
<?php

include_once "bootstrap.php";
include_once "hero/heroController.php";
include_once "user/userController.php";
//html header
$smarty->display("css/css.tpl");
$heroController = new heroController();
$userController = new usercontroller();
//menu
$smarty->assign("currentpage", "leaderboard");
include_once "menu.php";
/*********  Get top 10 lists  ***********/
$smarty->assign("XPHeroes", $heroController->getTop10ByXP());
$smarty->assign("KillHeroes", $heroController->getTop10ByKills());
$smarty->assign("OldHeroes", $heroController->getTop10ByAge());
$smarty->assign("DeathUsers", $userController->getBottom10ByDeath());
$smarty->assign("WealthUsers", $userController->getTop10ByGold());
$smarty->assign("KillUsers", $userController->getTop10ByKills());
$smarty->assign("KilltoDeathRatioUsers", $userController->getTop10ByKillToDeathRatio());
/*********  Get top 10 lists  ***********/
$smarty->display("leaderboard.tpl");
Esempio n. 3
0
<?php

/*
 * 
 * 
 */
require_once 'controller/usercontroller.php';
$cont = new usercontroller();
$cont->handlerequest();