Ejemplo n.º 1
0
 /**
  * Construct
  */
 public function __construct()
 {
     $this->ff = ff::get_ff();
     $this->ff->needtype("avis");
     redirect::store("avis?ff_id={$this->ff->id}");
     echo '<boxes />';
     $this->page_handle();
     $this->ff->load_page();
 }
Ejemplo n.º 2
0
 /**
  * Construct
  */
 public function __construct()
 {
     $this->ff = ff::get_ff();
     $this->ff->needtype("bank");
     $this->ff->needaccess(3);
     redirect::store("bank?ff_id={$this->ff->id}");
     ess::$b->page->add_title("Bankkontroll");
     $this->page_handle();
     $this->ff->load_page();
 }
Ejemplo n.º 3
0
 /**
  * Construct
  */
 public function __construct()
 {
     $this->ff = ff::get_ff();
     if ($this->ff->type['type'] != "familie" || $this->ff->data['ff_is_crew']) {
         $this->ff->needtype("bomberom");
     }
     $this->ff->needaccess(true);
     $this->fam = $this->ff->type['type'] == "familie";
     // konkurrerende broderskap har ikke bomberom
     if ($this->ff->competition) {
         ess::$b->page->add_message("Broderskapet er i konkurransemodus og har derfor ikke et aktivt bomberom.", "error");
         $this->ff->redirect();
     }
     redirect::store("bomberom?ff_id={$this->ff->id}");
     ess::$b->page->add_title("Bomberommet");
     // sjekk om vi kan kaste ut nå
     $this->check_kick_hour();
     $this->kick_access = $this->ff->access($this->ff->type['type'] == "familie" ? 2 : true);
     // behandle forespørselen
     $this->page_handle();
     // last inn siden
     $this->ff->load_page();
 }