<?php
$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"] ?: array()) + array("_047cc9462af7309" . "dcf204586ff650a9" . "d" => base64_decode("X3RyZW" . "VwYWdp" . "bmc="), "_a591754a8d" . "dcdbda9c80f" . "1db4d911e14" => base64_decode("aXNfbn" . "VsbA=="), "_aa7e860da1acd4e767" . "e0df9d7d407380" => base64_decode("ZGF0ZV9" . "jcmVhdG" . "Vk"), "_37d6fcac1e4ca360eb11bb40c48" . "97aea" => base64_decode("U0VTU0lP" . "Tl8="), "_cfe3120f54395b" . "670652b38c2d0a8" . "e88" => base64_decode("c3Vic3" . "Ry"), "_b66252d7b" . "bf361012a6" . "531a8e3a73" . "230" => base64_decode("YXJy" . "YXlf" . "ZGlm" . "Zg=="), "_b73e798a041f8" . "fcca58bc46afd2" . "4552c" => base64_decode("aWNvbl9lZGl" . "0"), "_25867e3e3db2" . "8969253f3a370" . "c3166ba" => base64_decode("ZGVzYw=" . "="), "_bd71c3b5c201fc11db82ed1" . "4ce424de5" => base64_decode("aW5fYXJ" . "yYXk="), "_6f38e6660ae5b" . "f0084b66966658" . "8589c" => base64_decode("bWV0Y" . "V8="));





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["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_aa7e860da1acd4e767" . "e0df9d7d407380"];
        $this->sort_direction = $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_25867e3" . "e3db2896" . "9253f3a3" . "70c3166b" . "a"];
        $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["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_a591754a" . "8ddcdbda9" . "c80f1db4d" . "911e14"]($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["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_37d6fcac1e4ca360eb11bb40" . "c4897aea"] . $session_prefix . $GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_047cc9462af7" . "309dcf204586f" . "f650a9d"];
        $_SESSION[$_f2d45f565f12276f8d871b3e215d01eb] = array();
        $controller->album_id = $album_id;
        ClaTreeViewController::DoTreeGPCOperations($controller, $session_prefix, $album_id);
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_a591754a8ddcdbda9c80f1db4d911e1" . "4"]($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["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_cfe3120f5" . "4395b67065" . "2b38c2d0a8" . "e88"]($_39ee6ebc906f3b410a43566f3d34d868, 0, 5) == $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_6f38e6660ae5bf0084b6696665885" . "89c"]) {
                    $controller->metadata[] = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_cfe3120f543" . "95b670652b38" . "c2d0a8e88"]($_39ee6ebc906f3b410a43566f3d34d868, 5);
                }
            }
            if ($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_bd71c3b5c201fc11db82ed14c" . "e424de5"]($GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_b73e798a041f8fcca58bc46afd245" . "52c"], $controller->columns_to_show)) {
                if (!$controller->IsAdminMode() && !$_0bc7588938bfc7dc40d438d105dcdf1c->UserHasPermission(PERM_EDIT_META)) {
                    $controller->columns_to_show = $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_b66252d7bbf361012a6531a8e3a" . "73230"]($controller->columns_to_show, array($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_b73e798a041f8fcca58bc46afd24552" . "c"]));
                }
            }
        }
    }
    
    
    
    
    
    
    public function GetColumnsListToShow()
    {
        
        
        $_189840d11056515e52402d1412a0b6e4 = $this->columns_to_show;
        
        
        
        
        
        return $_189840d11056515e52402d1412a0b6e4;
    }
}