You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
833 B

<?php
class NodeController extends BaseController {
function load() {
$this->session_only = true;
}
function dispatch() {
if(isset($_GET['s']) && $_GET['s'] != "" ) {
$this->page->setTitle(__('title.node', APP_TITLE));
$this->page->menuAddLink(__('page.home'), 'root');
$this->page->menuAddLink(__('page.news'), 'news');
$this->page->menuAddLink(__('page.explore'), 'explore');
$this->page->menuAddLink(__('page.profile'), 'profile');
$this->page->menuAddLink(__('page.media'), 'media');
$this->page->menuAddLink(__('page.configuration'), 'conf', false, true);
$this->page->menuAddLink(__('page.help'), 'help', false, true);
} else {
$this->name = 'main';
}
}
}