<?php
$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"] ?: array()) + array("_bd71c3b5c201fc11db82ed14ce" . "424de5" => base64_decode("aW5fYX" . "JyYXk="), "_b73e798a04" . "1f8fcca58bc" . "46afd24552c" => base64_decode("aWNvbl9l" . "ZGl0"), "_37d6fcac1e4ca360eb11bb40c4897ae" . "a" => base64_decode("U0VTU0lPT" . "l8="), "_b66252d7bbf3610" . "12a6531a8e3a7323" . "0" => base64_decode("YXJyYXlf" . "ZGlmZg=="), "_6f38e6660ae" . "5bf0084b6696" . "66588589c" => base64_decode("bWV0Y" . "V8="), "_a591754a8ddcdbda9c80f1db4d91" . "1e14" => base64_decode("aXNfbnVs" . "bA=="), "_cfe3120f5439" . "5b670652b38c2" . "d0a8e88" => base64_decode("c3Vic3R" . "y"), "_25867e3e3db28969253f3a37" . "0c3166ba" => base64_decode("ZGVzYw=" . "="), "_aa7e860da" . "1acd4e767e" . "0df9d7d407" . "380" => base64_decode("ZGF0ZV9" . "jcmVhdG" . "Vk"), "_047cc9462af" . "7309dcf20458" . "6ff650a9d" => base64_decode("X3RyZ" . "WVwYW" . "dpbmc" . "="));





class ImageListViewController extends ClaTreeViewController
{
    protected $columns_to_show;
    protected $album_id;
    
    
    
    
    
    public function __construct()
    {
        parent::__construct();
        $this->SetPagingParams(true, 15, 0);
        $this->sort_column = $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_aa7e860da1acd4e767e" . "0df9d7d407380"];
        $this->sort_direction = $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_25867e3e" . "3db289692" . "53f3a370c" . "3166ba"];
        $this->metadata = array();
        
        
        $this->columns_to_show = null;
        $this->album_id = 0;
    }
    
    
    
    
    
    
    
    
    
    
    
    
    public function SetPagingParams($use_paging, $page_size = 20, $page_offset = 0, $max_items_wo_paging = null, $max_items_to_process = 1000)
    {
        parent::SetPagingParams($use_paging, $page_size, $page_offset, $max_items_wo_paging, $max_items_to_process);
        $this->max_items_wo_paging = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_a591754a8ddcdbda9c80f1d" . "b4d911e14"]($max_items_wo_paging) ? $page_size : $max_items_wo_paging;
        return true;
    }
    protected function _BranchOpenCloseAll($id, $status)
    {
    }
    public static function DoTreeGPCOperations($controller, $session_prefix, $album_id = null)
    {
        
        
        $_f2d45f565f12276f8d871b3e215d01eb = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_37d6fcac1e4ca360eb11bb40c4897ae" . "a"] . $session_prefix . $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_047cc94" . "62af7309" . "dcf20458" . "6ff650a9" . "d"];
        $_SESSION[$_f2d45f565f12276f8d871b3e215d01eb] = array();
        $controller->album_id = $album_id;
        ClaTreeViewController::DoTreeGPCOperations($controller, $session_prefix, $album_id);
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_a591754a8ddcdbda9c" . "80f1db4d911e14"]($controller->columns_to_show)) {
            $_0bc7588938bfc7dc40d438d105dcdf1c = new ImageAlbum($controller->album_id);
            $controller->columns_to_show = $_0bc7588938bfc7dc40d438d105dcdf1c->GetListColumns();
            $controller->metadata = array();
            foreach ($controller->columns_to_show as $_39ee6ebc906f3b410a43566f3d34d868) {
                if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_cfe3120f5439" . "5b670652b38c2" . "d0a8e88"]($_39ee6ebc906f3b410a43566f3d34d868, 0, 5) == $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_6f38e6660ae5bf0084b669666" . "588589c"]) {
                    $controller->metadata[] = $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_cfe3120f5439" . "5b670652b38c2" . "d0a8e88"]($_39ee6ebc906f3b410a43566f3d34d868, 5);
                }
            }
            if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_bd71c3b5c201fc11db82ed14ce424d" . "e5"]($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_b73e798a041f8fcca58b" . "c46afd24552c"], $controller->columns_to_show)) {
                if (!$controller->IsAdminMode() && !$_0bc7588938bfc7dc40d438d105dcdf1c->UserHasPermission(PERM_EDIT_META)) {
                    $controller->columns_to_show = $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_b66252d7bbf361012a6531a8e3a73" . "230"]($controller->columns_to_show, array($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_b73e798a041f8fcca58" . "bc46afd24552c"]));
                }
            }
        }
    }
    
    
    
    
    
    
    public function GetColumnsListToShow()
    {
        
        
        $_189840d11056515e52402d1412a0b6e4 = $this->columns_to_show;
        
        
        
        
        
        return $_189840d11056515e52402d1412a0b6e4;
    }
}