59 lines
2.3 KiB
PHP
59 lines
2.3 KiB
PHP
<?php
|
|
|
|
class page_uvote extends \SYSTEM\API\api_default {
|
|
public static function get_apigroup(){
|
|
return 1;}
|
|
public static function get_class($params = null){
|
|
return self::class;}
|
|
public static function get_default_state() {
|
|
return 'start';}
|
|
|
|
public static function default_page($_escaped_fragment_ = NULL){
|
|
return (new default_page())->html($_escaped_fragment_);}
|
|
|
|
public static function page_user_main_start(){
|
|
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
|
|
return (new default_register ())->html();}
|
|
return (new user_main_start())->html();}
|
|
|
|
public static function page_user_main_analysis(){
|
|
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
|
|
return (new default_register ())->html();}
|
|
return (new user_main_analysis())->html();}
|
|
|
|
// public static function page_user_main_options(){
|
|
// if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
|
|
// return (new default_register ())->html();}
|
|
// return (new user_main_options())->html();}
|
|
|
|
public static function page_user_main_poll($poll_ID) {
|
|
//return (new user_main_poll($poll_ID))->html();}
|
|
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
|
|
return (new default_register ())->html();}
|
|
return (new user_main_poll($poll_ID))->html();}
|
|
|
|
public static function page_user_main_poll_sub($poll_ID) {
|
|
//return (new user_main_poll($poll_ID))->html();}
|
|
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
|
|
return (new default_register ())->html();}
|
|
return (new user_main_poll_sub($poll_ID))->html();}
|
|
|
|
public static function page_user_main_votelist(){
|
|
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
|
|
return (new default_register ())->html();}
|
|
return (new user_main_votelist())->html();}
|
|
|
|
public static function page_user_main_impressum(){
|
|
return (new user_main_impressum())->html();}
|
|
|
|
|
|
public static function page_user_main_loggedout_start(){
|
|
return \SYSTEM\PAGE\text::get('welcome_text');
|
|
}
|
|
public static function page_user_main_loggedout_news(){
|
|
return user_main_start::newsfeed();
|
|
}
|
|
private function default_register(){
|
|
return (new default_register ())->html();}
|
|
|
|
} |