public function giveAdmin($spotTplId, $value = '') { global $dRep; $value = unserialize($value); $url = is_array($value) && isset($value['url']) ? $value['url'] : ''; $menu = new FolderList(array()); $folderlist = $menu->getList($value); $imagelist = $this->filelist($value); $spotId = $spotTplId; include 'spots/adminviews/imagelink.admin.php'; }
public function giveAdmin($spotTplId, $value = '') { global $dRep; if ($value != '') { $image = $dRep->getFile($value); } $menu = new FolderList(array()); $folderlist = $menu->getList($value); $imagelist = $this->filelist($value); $spotId = $spotTplId; include 'spots/adminviews/image.admin.php'; }
public function getFilebrowser() { global $varChecker; $folderId = 0; $rootname = ""; if ($varChecker->getValue('id') != 0) { if ($varChecker->getValue('direction') == 'up') { $folder = $this->dRep->getFolder($varChecker->getValue('id')); $folderId = $folder->getParent()->getId(); if ($folderId == 'new') { $folderId = 0; $rootname = ""; } else { $rootname = $folder->getParent()->getName(); } } else { $folderId = $varChecker->getValue('id'); $folder = $this->dRep->getFolder($folderId); $rootname = $folder->getName(); } } if ($varChecker->getValue('siteId') !== false) { $folders = $this->dRep->getFolderCollection(array('site' => $varChecker->getValue('siteId'))); if (count($folders) == 0) { $folderId = 0; $rootname = ''; } } $includefiles = $varChecker->getValue('type') != 'folder'; $menu = new FolderList(array(), array('class' => 'type'), $folderId, false, false, $includefiles); $folderlist = $menu->getList(); $root = 'current_' . $folderId; include_once 'view/filesystem/filebrowser.filesystem.php'; }