Exemplo n.º 1
0
 public function execute()
 {
     if (is_a($this->language, "language")) {
         parent::execute();
     } else {
         $this->output->open_tag("tablemanager");
         $this->output->add_tag("name", "Language");
         $this->output->add_tag("result", "Multiple languages are not supported by this website.", array("url" => "admin", "seconds" => "5"));
         $this->output->close_tag();
     }
 }
Exemplo n.º 2
0
 public function show_item_form($item)
 {
     if (valid_input($item["id"], VALIDATE_NUMBERS, VALIDATE_NONEMPTY)) {
         if (($users = $this->model->get_users($item["id"])) !== false) {
             $this->output->open_tag("users");
             foreach ($users as $user) {
                 $this->output->record($user, "user");
             }
             $this->output->close_tag();
         }
     }
     parent::show_item_form($item);
 }
Exemplo n.º 3
0
 public function execute()
 {
     if ($this->page->ajax_request) {
         $this->send_flags();
     } else {
         if (count($this->model->module_flags) == 0) {
             $this->output->open_tag("tablemanager");
             $this->output->add_tag("result", "No flags are available.", array("url" => "cms"));
             $this->output->close_tag();
         } else {
             parent::execute();
         }
     }
 }
Exemplo n.º 4
0
 protected function handle_submit()
 {
     parent::handle_submit();
     $cache = new cache($this->db, "settings");
     $cache->store("last_updated", time(), 365 * DAY);
 }