Example #1
0
 function catch_post_data()
 {
     $search_post = \k1lib\common\unserialize_var(urlencode($this->caller_url));
     if (empty($search_post)) {
         $search_post = [];
     }
     $_POST = array_merge($search_post, $_POST);
     if (parent::catch_post_data()) {
         return TRUE;
     } else {
         return FALSE;
     }
 }
Example #2
0
 public function __construct(\k1lib\crudlexs\controller_base $controller_object, array $user_levels_allowed = [])
 {
     $this->controller_object = $controller_object;
     $this->board_content_div = new \k1lib\html\div("board-content");
     $this->user_levels_allowed = $user_levels_allowed;
     if (\k1lib\session\session_plain::is_enabled()) {
         if (!$this->check_user_level_access()) {
             $this->is_enabled = false;
         } else {
             $this->is_enabled = true;
         }
     }
     /**
      * Search util hack
      */
     $post_data_to_use = \k1lib\common\unserialize_var("post-data-to-use");
     if (!empty($post_data_to_use)) {
         $_POST = $post_data_to_use;
         $this->skip_form_action = TRUE;
         \k1lib\common\unset_serialize_var("post-data-to-use");
     }
 }