Example #1
0
 public function __construct()
 {
     $action = \Request::SimpletextRequired('op');
     switch ($action) {
         case 'list':
             $this->tid = \Request::IntegerRequired('tid');
             $church = new \Church($this->tid);
             $this->listOfChurch($church);
             break;
         case 'addform':
             $this->tid = \Request::IntegerRequired('tid');
             $church = new \Church($this->tid);
             $this->newForm($church);
             break;
         case 'add':
             $this->tid = \Request::IntegerRequired('tid');
             $church = new \Church($this->tid);
             $this->add($church);
             break;
         case 'modify':
             $this->template = 'remark_list.twig';
             $rid = \Request::IntegerRequired('rid');
             $remark = new \Remark($rid);
             $state = \Request::Simpletext('state');
             $remark->changeState($state);
             $comment = \Request::Text('adminmegj');
             if ($comment != '') {
                 $remark->addComment($comment);
             }
             $this->tid = $remark->tid;
             $church = new \Church($this->tid);
             $this->listOfChurch($church);
             break;
         case 'add':
             break;
     }
 }
Example #2
0
<?php

include "load.php";
allowOldUrls();
$action = \Request::Text('q');
switch ($action) {
    case 'remarks':
        $html = new \Html\Remark();
        break;
    case 'help':
        $html = new \Html\Help();
        break;
    case 'staticpage':
        $html = new \Html\StaticPage();
        break;
    case 'user/maintainedchurches':
        $html = new \Html\User\MaintainedChurches();
    case 'home':
        $html = new \Html\Home();
        break;
    case 'api':
        $html = new \Html\Api();
        break;
    case 'church':
        $html = new \Html\Church();
        break;
    case 'searchresultschurches':
        $html = new \Html\SearchResultsChurches();
        break;
    case 'searchresultsmasses':
        $html = new \Html\SearchResultsmasses();