openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b4cff536baaa634e8efa86c2110231242a20bcef
parent 5d9c7d44841609ab202df1afedbd1f38212bb4ac
Author: dankert <devnull@localhost>
Date:   Thu, 18 Mar 2010 21:07:44 +0100

Alten FCK-Editor-Filebrowser entfernt und durch internen Filebrowser ersetzt.

Diffstat:
actionClasses/FilebrowserAction.class.php | 253+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
actionClasses/FilebrowserAction.ini.php | 19+++++++++++++++++++
actionClasses/FilemanagerAction.class.php | 513-------------------------------------------------------------------------------
actionClasses/FilemanagerAction.ini.php | 22----------------------
editor/editor/filemanager/browser/default/browser.css | 87-------------------------------------------------------------------------------
editor/editor/filemanager/browser/default/browser.html | 200-------------------------------------------------------------------------------
editor/editor/filemanager/browser/default/frmactualfolder.html | 95-------------------------------------------------------------------------------
editor/editor/filemanager/browser/default/frmcreatefolder.html | 114-------------------------------------------------------------------------------
editor/editor/filemanager/browser/default/frmfolders.html | 198-------------------------------------------------------------------------------
editor/editor/filemanager/browser/default/frmresourceslist.html | 187-------------------------------------------------------------------------------
editor/editor/filemanager/browser/default/frmresourcetype.html | 69---------------------------------------------------------------------
editor/editor/filemanager/browser/default/frmupload.html | 115-------------------------------------------------------------------------------
editor/editor/filemanager/browser/default/images/ButtonArrow.gif | 0
editor/editor/filemanager/browser/default/images/Folder.gif | 0
editor/editor/filemanager/browser/default/images/Folder32.gif | 0
editor/editor/filemanager/browser/default/images/FolderOpened.gif | 0
editor/editor/filemanager/browser/default/images/FolderOpened32.gif | 0
editor/editor/filemanager/browser/default/images/FolderUp.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/ai.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/avi.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/bmp.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/cs.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/default.icon.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/dll.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/doc.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/exe.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/fla.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/gif.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/htm.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/html.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/jpg.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/js.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/mdb.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/mp3.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/pdf.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/png.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/ppt.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/rdp.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/swf.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/swt.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/txt.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/vsd.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/xls.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/xml.gif | 0
editor/editor/filemanager/browser/default/images/icons/32/zip.gif | 0
editor/editor/filemanager/browser/default/images/icons/ai.gif | 0
editor/editor/filemanager/browser/default/images/icons/avi.gif | 0
editor/editor/filemanager/browser/default/images/icons/bmp.gif | 0
editor/editor/filemanager/browser/default/images/icons/cs.gif | 0
editor/editor/filemanager/browser/default/images/icons/default.icon.gif | 0
editor/editor/filemanager/browser/default/images/icons/dll.gif | 0
editor/editor/filemanager/browser/default/images/icons/doc.gif | 0
editor/editor/filemanager/browser/default/images/icons/exe.gif | 0
editor/editor/filemanager/browser/default/images/icons/fla.gif | 0
editor/editor/filemanager/browser/default/images/icons/gif.gif | 0
editor/editor/filemanager/browser/default/images/icons/htm.gif | 0
editor/editor/filemanager/browser/default/images/icons/html.gif | 0
editor/editor/filemanager/browser/default/images/icons/jpg.gif | 0
editor/editor/filemanager/browser/default/images/icons/js.gif | 0
editor/editor/filemanager/browser/default/images/icons/mdb.gif | 0
editor/editor/filemanager/browser/default/images/icons/mp3.gif | 0
editor/editor/filemanager/browser/default/images/icons/pdf.gif | 0
editor/editor/filemanager/browser/default/images/icons/png.gif | 0
editor/editor/filemanager/browser/default/images/icons/ppt.gif | 0
editor/editor/filemanager/browser/default/images/icons/rdp.gif | 0
editor/editor/filemanager/browser/default/images/icons/swf.gif | 0
editor/editor/filemanager/browser/default/images/icons/swt.gif | 0
editor/editor/filemanager/browser/default/images/icons/txt.gif | 0
editor/editor/filemanager/browser/default/images/icons/vsd.gif | 0
editor/editor/filemanager/browser/default/images/icons/xls.gif | 0
editor/editor/filemanager/browser/default/images/icons/xml.gif | 0
editor/editor/filemanager/browser/default/images/icons/zip.gif | 0
editor/editor/filemanager/browser/default/images/spacer.gif | 0
editor/editor/filemanager/browser/default/js/common.js | 88-------------------------------------------------------------------------------
editor/editor/filemanager/browser/default/js/fckxml.js | 147-------------------------------------------------------------------------------
language/de.ini.php | 6+++++-
serviceClasses/include.inc.php | 2+-
themes/default/include/html/editor.inc.php | 5++---
themes/default/include/html/window.inc.php | 12+++++++++---
themes/default/pages/html/filebrowser/browse.tpl.php | 629+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/filebrowser/browse.tpl.src.php | 62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/filemanager/browse.tpl.src.php | 67-------------------------------------------------------------------
82 files changed, 980 insertions(+), 1910 deletions(-)

diff --git a/actionClasses/FilebrowserAction.class.php b/actionClasses/FilebrowserAction.class.php @@ -0,0 +1,252 @@ +<?php +// --------------------------------------------------------------------------- +// $Id$ +// --------------------------------------------------------------------------- +// OpenRat Content Management System +// Copyright (C) 2002-2004 Jan Dankert, cms@jandankert.de +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +/** + * Action-Klasse zum Bearbeiten einer Datei + * @author $Author$ + * @version $Revision$ + * @package openrat.actions + */ +class FilebrowserAction extends ObjectAction +{ + var $command; + var $resourceType; + + /** + * Ordner + * + * @var String + */ + var $currentFolder; + + /** + * Aktueller Ordner + * + * @var Object + */ + var $folder; + + /** + * Konstruktor + */ + function FilebrowserAction() + { + if ( $this->getRequestId() != 0 ) + { + $fid = $this->getRequestId(); + } + else + { + $project = Session::getProject(); + $fid = $project->getRootObjectId(); + } + + $this->folder = new Folder( $fid ); + $this->folder->load(); + + + } + + + + /** + * + */ + function show() + { + Http::notAuthorized('no subaction found'); + } + + + /** + * Datei-Upload. + * + */ + function directupload() + { + $upload = new Upload( $this->getRequestVar('name','abc') ); + + if ( !$upload->isValid() ) + { + echo 'Upload failed, reason: '.$upload->error; + } + else + { + $file = new File(); + $file->parentid = $this->folder->objectid; + $file->name = $upload->filename; + $file->filename = $upload->filename; + $file->extension = $upload->extension; + $file->value = $upload->value; + $file->add(); + + $newId = $file->objectid; + $newUrl = str_replace('&amp;','&',Html::url('file','show',$newId,array('oid'=>'__OID__'.$newId.'__'))); + + echo '<script type="text/javascript">' ; + echo 'window.parent.CKEDITOR.tools.callFunction('.$this->getRequestVar('CKEditorFuncNum','123').",'".$newUrl."','');</script>"; + echo '</script>' ; + echo 'OK' ; + } + + } + + + function browse() + { + global $conf_php; + $funcNum = $this->getRequestVar('CKEditorFuncNum','123'); + + if ( ! $this->folder->isRoot ) + $this->setTemplateVar('up_url',Html::url('filebrowser','browse',$this->folder->parentid,array('CKEditorFuncNum'=>$funcNum))); + + $this->setTemplateVar('writable',$this->folder->hasRight(ACL_WRITE) ); + + $list = array(); + + // Schleife ueber alle Objekte in diesem Ordner + foreach( $this->folder->getObjects() as $o ) + { + $id = $o->objectid; + + if ( $o->hasRight(ACL_READ) ) + { + $list[$id]['name'] = Text::maxLaenge( 30,$o->name ); + $list[$id]['filename'] = Text::maxLaenge( 20,$o->filename ); + $list[$id]['desc'] = Text::maxLaenge( 30,$o->desc ); + if ( $list[$id]['desc'] == '' ) + $list[$id]['desc'] = lang('NO_DESCRIPTION_AVAILABLE'); + $list[$id]['desc'] = $list[$id]['desc'].' - '.lang('IMAGE').' '.$id; + + $list[$id]['type'] = $o->getType(); + + $list[$id]['icon' ] = $o->getType(); + $list[$id]['class'] = $o->getType(); + if ( $o->isFolder ) + $list[$id]['url' ] = Html::url('filebrowser','browse',$id,array('CKEditorFuncNum'=>$funcNum) ); + else + $list[$id]['url' ] = "javascript:window.top.opener.CKEDITOR.tools.callFunction($funcNum,'".Html::url('file','show',$id,array('oid'=>'__OID__'.$id.'__'))."','');window.top.close();window.top.opener.focus();"; + + + + if ( $o->getType() == 'file' ) + { + $file = new File( $id ); + $file->load(); + $list[$id]['desc'] .= ' - '.intval($file->size/1000).'kB'; + + if ( $file->isImage() ) + { + $list[$id]['icon' ] = 'image'; + $list[$id]['class'] = 'image'; + //$list[$id]['url' ] = Html::url('file','show',$id) nur sinnvoll bei Lightbox-Anzeige + } +// if ( substr($file->mimeType(),0,5) == 'text/' ) +// $list[$id]['icon'] = 'text'; + } + + $list[$id]['date'] = $o->lastchangeDate; + $list[$id]['user'] = $o->lastchangeUser; + } + } + + $this->setTemplateVar('object' ,$list ); + $this->setTemplateVar('CKEditorFuncNum',$funcNum ); + $this->setTemplateVar('token',token() ); + $this->setTemplateVar('id',$this->folder->objectid ); + } + + + function addfolder() + { + + $filename = $this->getRequestVar('name'); + + if ( empty($filename) ) + { + $this->addNotice('folder',$this->name,'ADDED',OR_NOTICE_ERROR); + } + elseif( !$this->folder->hasRight(ACL_CREATE_FOLDER) ) + { + $this->addNotice('folder',$this->name,'ERROR',OR_NOTICE_ERROR); + } + elseif( $this->folder->hasFilename( $filename ) ) + { + $this->addNotice('folder',$this->name,'ERROR',OR_NOTICE_ERROR); + + } + else + { + $newFolder = new Folder(); + $newFolder->parentid = $this->folder->objectid; + $newFolder->filename = $filename; + $newFolder->name = $filename; + $newFolder->add(); + + $this->addNotice('folder',$this->folder->name,'ADDED',OR_NOTICE_OK); + } + } + + + + function upload() + { + if ( $this->hasRequestVar('name') ) + $name = $this->getRequestVar('name','abc'); + else + $name = 'file'; + + $upload = new Upload($name); + + if ( !$upload->isValid() ) + { + Html::debug($upload); + $this->addValidationError('file','COMMON_VALIDATION_ERROR',array(),$upload->error); + return; + } + // Pr�fen der maximal erlaubten Dateigr��e. + elseif ( $upload->size < 0 ) + { + // Maximale Dateigr��e ist �berschritten + $this->addValidationError('file','MAX_FILE_SIZE_EXCEEDED'); + return; + } + elseif( $upload->size > 0 ) + { + $file = new File(); + $file->desc = ''; + $file->filename = $upload->filename; + $file->name = $upload->filename; + $file->extension = $upload->extension; + $file->size = $upload->size; + $file->parentid = $this->folder->objectid; + + $file->value = $upload->value; + + $file->add(); // Datei hinzufuegen + $this->folder->setTimestamp(); + $this->addNotice('file',$file->name,'ADDED','ok'); + } + } +} + +?>+ \ No newline at end of file diff --git a/actionClasses/FilebrowserAction.ini.php b/actionClasses/FilebrowserAction.ini.php @@ -0,0 +1,18 @@ + +[default] +goto=show + +[directupload] +direct=true + +[browse] +menu=browse + +[upload] +goto=browse + +[addfolder] +goto=browse + +[menu] +browse=browse+ \ No newline at end of file diff --git a/actionClasses/FilemanagerAction.class.php b/actionClasses/FilemanagerAction.class.php @@ -1,512 +0,0 @@ -<?php -// --------------------------------------------------------------------------- -// $Id$ -// --------------------------------------------------------------------------- -// OpenRat Content Management System -// Copyright (C) 2002-2004 Jan Dankert, cms@jandankert.de -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -/** - * Action-Klasse zum Bearbeiten einer Datei - * @author $Author$ - * @version $Revision$ - * @package openrat.actions - */ -class FilemanagerAction extends ObjectAction -{ - var $command; - var $resourceType; - - /** - * Ordner - * - * @var String - */ - var $currentFolder; - - /** - * Aktueller Ordner - * - * @var Object - */ - var $folder; - - /** - * Konstruktor - */ - function FilemanagerAction() - { - if ( $this->getRequestId() != 0 ) - { - $fid = $this->getRequestId(); - } - else - { - $project = Session::getProject(); - $fid = $project->getRootObjectId(); - } - - $this->folder = new Folder( $fid ); - $this->folder->load(); - - - } - - - /** - * Ermittelt das aktuelle Ordnerobjekt. - * - */ - function investigateCurrentFolder() - { - $parts = explode('/',$this->currentFolder); - - foreach( $parts as $part ) - { - if ( empty($part) ) - continue; - - $oid = $this->folder->getObjectIdByFileName($part); - - if ( !$this->folder->available($oid) ) - $this->sendErrorDocument(102,"currentFolder is invalid (no folder inside): "+$this->currentFolder); - - $this->folder = new Folder($oid); - - if ( ! $this->folder->isFolder ) - $this->sendErrorDocument(102,"currentFolder is invalid (not a folder): "+$this->currentFolder); - } - } - - - - /** - * Anzeigen des Inhaltes, der Inhalt wird samt Header direkt - * auf die Standardausgabe geschrieben - */ - function connector() - { - // PHP-Fehler ins Log schreiben, damit die Ausgabe nicht zerst�rt wird. - if (version_compare(PHP_VERSION, '5.0.0', '>')) - set_error_handler('filemanagerErrorHandler',E_ALL & ~E_NOTICE); - else - set_error_handler('filemanagerErrorHandler'); - - Logger::debug('Filemanager: '.getenv('REQUEST_URI')); - Logger::debug($this->command); - Logger::debug($this->resourceType); - Logger::debug($this->currentFolder); - //Logger::debug($this->folder->objectid); - - - // Get the main request information. - $this->command = $this->getRequestVar('Command' ); - $this->resourceType = $this->getRequestVar('Type' ); - $this->currentFolder = $this->getRequestVar('CurrentFolder'); - - // Check if it is an allowed type. - if ( !in_array( $this->resourceType, array('File','Image','Flash','Media') ) ) - { - $this->sendErrorDocument(1,'unknown resource type'); - exit; - } - - // Check the current folder syntax (must begin and end with a slash). - if ( ! ereg( '/$', $this->currentFolder ) ) $this->currentFolder .= '/' ; - if ( strpos( $this->currentFolder, '/' ) !== 0 ) $this->currentFolder = '/' . $this->currentFolder; - - $this->investigateCurrentFolder(); - - - // File Upload doesn't have to Return XML, so it must be intercepted before anything. - if ( $this->command == 'FileUpload' ) - { - $this->fileUpload('NewFile') ; - return ; - } - if ( $this->command == 'DirectUpload' ) - { - $this->fileUpload('upload') ; - return ; - } - - $this->setXmlHeaders(); - $this->createXmlHeader(); - - // Execute the required command. - switch ( $this->command ) - { - case 'GetFolders': - $this->getFolders() ; - break ; - - case 'GetFoldersAndFiles': - $this->getFoldersAndFiles() ; - break ; - - case 'CreateFolder': - $this->createFolder() ; - break ; - - default: - Logger::warn('Unknown Filemanager-Command: '.$this->command); - trigger_error('Unknown Command: '.$this->command); - $this->sendError( 1,"unknown command: ".$this->command ) ; - } - Logger::debug("ok"); - - $this->createXmlFooter(); - exit; - } - - - function setXmlHeaders() - { - // Prevent the browser from caching the result. - // Date in the past - header("Expires: ".gmdate("D, d M Y H:i:s")." GMT"); - // always modified - header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - - // HTTP/1.1 - header('Cache-Control: no-store, no-cache, must-revalidate') ; - header('Cache-Control: post-check=0, pre-check=0', false) ; - - // HTTP/1.0 - header('Pragma: no-cache') ; - } - - - /** - * - */ - function createXmlHeader() - { - // Set the response format. - header( 'Content-Type:text/xml' ) ; - - echo '<?xml version="1.0" encoding="utf-8" ?>' ; - - // Create the main "Connector" node. - echo '<Connector command="' . $this->command . '" resourceType="' . $this->resourceType . '">' ; - - // Add the current folder node. - echo '<CurrentFolder path="' . convertToXmlAttribute($this->currentFolder).'" url="'.convertToXmlAttribute($this->currentFolder) . '" />' ; - } - - - - function createXmlFooter() - { - echo '</Connector>' ; - } - - - - /** - * Sendet eine Fehlermeldung zum Client. - * - * @param Integer $number FehlerNr. - * @param String $text Fehlermeldung - */ - function sendError( $number, $text ) - { - echo '<Error number="' . $number . '" text="' . htmlspecialchars( $text ) . '" />' ; - } - - - /** - * Sendet eine Fehlermeldung zum Client und beendet den Request. - * - * @param Integer $number FehlerNr. - * @param String $text Fehlermeldung - */ - function sendErrorDocument( $number, $text ) - { - $this->createXmlHeader(); - $this->sendError( $number, $text ); - $this->createXmlFooter(); - exit ; - } - - - /** - * Ermittelt alle Unterordner. - * - */ - function getFolders() - { - echo "<Folders>" ; - - foreach( $this->folder->getSubfolderFilenames() as $id=>$name ) - echo '<Folder name="'. convertToXmlAttribute($name).'" />'; - - echo "</Folders>" ; - } - - - /** - * Ermittelt alle Unterordner und Dateien. - * - */ - function getFoldersAndFiles() - { - echo '<Folders>' ; - - foreach( $this->folder->getSubfolderFilenames() as $id=>$name ) - echo '<Folder name="'. convertToXmlAttribute($name).'" />'; - - echo '</Folders>' ; - echo '<Files>' ; - - foreach( $this->folder->getFileFilenames() as $id=>$name ) - echo '<File name="' . convertToXmlAttribute( $name ).'" url="'.convertToXmlAttribute( Html::url('file','show',$id,array('oid'=>'__OID__'.$id.'__') ) ).'" size="' . '1' . '" />' ; - - echo '</Files>' ; - } - - - /** - * Legt einen neuen Unterordner an. - * - */ - function createFolder() - { - // Possible Error Numbers are: - // 0 : No Errors Found. The folder has been created. - // 101 : Folder already exists. - // 102 : Invalid folder name. - // 103 : You have no permissions to create the folder. - // 110 : Unknown error creating folder. - - $filename = $this->getRequestVar('NewFolderName'); - - if ( empty($filename) ) - { - $this->sendError(102,'missing name for new folder.'); - } - elseif( !$this->folder->hasRight(ACL_CREATE_FOLDER) ) - { - $this->sendError(103,'You have no permissions to create the folder.'); - } - elseif( $this->folder->hasFilename( $filename ) ) - { - $this->sendError(101,'Folder already exists.'); - } - else - { - $newFolder = new Folder(); - $newFolder->parentid = $this->folder->objectid; - $newFolder->filename = $filename; - $newFolder->name = $filename; - - $newFolder->add(); - - $this->sendError(0,"OK"); - } - } - - - - /** - * Datei-Upload. - * - */ - function fileUpload( $var ) - { - $upload = new Upload( $var ); - - // From FCK-Editor-Doc: - // The "OnUploadCompleted" is a JavaScript function that is called to expose the upload result. The possible values are: - // OnUploadCompleted( 0 ) : no errors found on the upload process. - // OnUploadCompleted( 1, , , 'Reason' ) : the upload filed because of "Reason". - // OnUploadCompleted( 201, ,'FileName(1).ext' ) : the file has been uploaded successfully, but its name has been changed to "FileName(1).ext". - // OnUploadCompleted( 202 ) : invalid file. - if ( !$upload->isValid() ) - { - echo 'Upload failed, reason: '.$upload->error; - } - else - { - $file = new File(); - $file->parentid = $this->folder->objectid; - $file->name = $upload->filename; - $file->filename = $upload->filename; - $file->extension = $upload->extension; - $file->value = $upload->value; - $file->add(); - - $newId = $file->objectid; - $newUrl = str_replace('&amp;','&',Html::url('file','show',$newId,array('oid'=>'__OID__'.$newId.'__'))); - - echo '<script type="text/javascript">' ; - echo 'window.parent.CKEDITOR.tools.callFunction('.$this->getRequestVar('CKEditorFuncNum','123').",'".$newUrl."','');</script>"; - echo '</script>' ; - echo 'OK' ; - } - - } - - - function browse() - { - global $conf_php; - $funcNum = $this->getRequestVar('CKEditorFuncNum','123'); - - if ( ! $this->folder->isRoot ) - $this->setTemplateVar('up_url',Html::url('filemanager','browse',$this->folder->parentid,array('CKEditorFuncNum'=>$funcNum))); - - $this->setTemplateVar('writable',$this->folder->hasRight(ACL_WRITE) ); - - $list = array(); - - // Schleife ueber alle Objekte in diesem Ordner - foreach( $this->folder->getObjects() as $o ) - { - $id = $o->objectid; - - if ( $o->hasRight(ACL_READ) ) - { - $list[$id]['name'] = Text::maxLaenge( 30,$o->name ); - $list[$id]['filename'] = Text::maxLaenge( 20,$o->filename ); - $list[$id]['desc'] = Text::maxLaenge( 30,$o->desc ); - if ( $list[$id]['desc'] == '' ) - $list[$id]['desc'] = lang('NO_DESCRIPTION_AVAILABLE'); - $list[$id]['desc'] = $list[$id]['desc'].' - '.lang('IMAGE').' '.$id; - - $list[$id]['type'] = $o->getType(); - - $list[$id]['icon' ] = $o->getType(); - $list[$id]['class'] = $o->getType(); - if ( $o->isFolder ) - $list[$id]['url' ] = Html::url('filemanager','browse',$id,array('CKEditorFuncNum'=>$funcNum) ); - else - $list[$id]['url' ] = "javascript:window.top.opener.CKEDITOR.tools.callFunction($funcNum,'".Html::url('file','show',$id,array('oid'=>'__OID__'.$id.'__'))."','');window.top.close();window.top.opener.focus();"; - - - - if ( $o->getType() == 'file' ) - { - $file = new File( $id ); - $file->load(); - $list[$id]['desc'] .= ' - '.intval($file->size/1000).'kB'; - - if ( $file->isImage() ) - { - $list[$id]['icon' ] = 'image'; - $list[$id]['class'] = 'image'; - //$list[$id]['url' ] = Html::url('file','show',$id) nur sinnvoll bei Lightbox-Anzeige - } -// if ( substr($file->mimeType(),0,5) == 'text/' ) -// $list[$id]['icon'] = 'text'; - } - - $list[$id]['date'] = $o->lastchangeDate; - $list[$id]['user'] = $o->lastchangeUser; - } - } - - $this->setTemplateVar('object' ,$list ); - $this->setTemplateVar('CKEditorFuncNum',$funcNum ); - $this->setTemplateVar('token',token() ); - $this->setTemplateVar('id',$this->folder->objectid ); - } - - - function addfolder() - { - - $filename = $this->getRequestVar('name'); - - if ( empty($filename) ) - { - $this->addNotice('folder',$this->name,'ADDED',OR_NOTICE_ERROR); - } - elseif( !$this->folder->hasRight(ACL_CREATE_FOLDER) ) - { - $this->addNotice('folder',$this->name,'ERROR',OR_NOTICE_ERROR); - } - elseif( $this->folder->hasFilename( $filename ) ) - { - $this->addNotice('folder',$this->name,'ERROR',OR_NOTICE_ERROR); - - } - else - { - $newFolder = new Folder(); - $newFolder->parentid = $this->folder->objectid; - $newFolder->filename = $filename; - $newFolder->name = $filename; - $newFolder->add(); - - $this->addNotice('folder',$this->folder->name,'ADDED',OR_NOTICE_OK); - } - } - - - - function upload() - { - $upload = new Upload('file'); - - if ( !$upload->isValid() ) - { - Html::debug($upload); - $this->addValidationError('file','COMMON_VALIDATION_ERROR',array(),$upload->error); - return; - } - // Pr�fen der maximal erlaubten Dateigr��e. - elseif ( $upload->size < 0 ) - { - // Maximale Dateigr��e ist �berschritten - $this->addValidationError('file','MAX_FILE_SIZE_EXCEEDED'); - return; - } - elseif( $upload->size > 0 ) - { - $file = new File(); - $file->desc = ''; - $file->filename = $upload->filename; - $file->name = $upload->filename; - $file->extension = $upload->extension; - $file->size = $upload->size; - $file->parentid = $this->folder->objectid; - - $file->value = $upload->value; - - $file->add(); // Datei hinzufuegen - $this->folder->setTimestamp(); - $this->addNotice('file',$file->name,'ADDED','ok'); - } - } -} - - -/** - * Fehler-Handler f�r WEBDAV.<br> - * Bei einem Laufzeitfehler ist eine Ausgabe des Fehlers auf der Standardausgabe sinnlos. - * Daher wird der Fehler nur geloggt. - */ -function filemanagerErrorHandler($errno, $errstr, $errfile, $errline) -{ - Logger::warn('FCKEDITOR FILEMANAGER ERROR: '.$errno.'/'.$errstr.'/file:'.$errfile.'/line:'.$errline); - - // Wir teilen dem Client mit, dass auf dem Server was schief gelaufen ist. - Http::serverError('Filemanager failed with: '.$errno.'/'.$errstr.'/file:'.$errfile.'/line:'.$errline); -} - -?>- \ No newline at end of file diff --git a/actionClasses/FilemanagerAction.ini.php b/actionClasses/FilemanagerAction.ini.php @@ -1,21 +0,0 @@ - -[default] -goto=show - -[connector] -direct=true - -[config] -direct=true - -[browse] -menu=browse - -[upload] -goto=browse - -[addfolder] -goto=browse - -[menu] -browse=browse- \ No newline at end of file diff --git a/editor/editor/filemanager/browser/default/browser.css b/editor/editor/filemanager/browser/default/browser.css @@ -1,87 +0,0 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * CSS styles used by all pages that compose the File Browser. - */ - -body -{ - background-color: #f1f1e3; - margin-top:0; - margin-bottom:0; -} - -form -{ - margin: 0; - padding: 0; -} - -.Frame -{ - background-color: #f1f1e3; - border: thin inset #f1f1e3; -} - -body.FileArea -{ - background-color: #ffffff; - margin: 10px; -} - -body, td, input, select -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; -} - -.ActualFolder -{ - font-weight: bold; - font-size: 14px; -} - -.PopupButtons -{ - border-top: #d5d59d 1px solid; - background-color: #e3e3c7; - padding: 7px 10px 7px 10px; -} - -.Button, button -{ - color: #3b3b1f; - border: #737357 1px solid; - background-color: #c7c78f; -} - -.FolderListCurrentFolder img -{ - background-image: url(images/FolderOpened.gif); -} - -.FolderListFolder img -{ - background-image: url(images/Folder.gif); -} - -.fullHeight { - height: 100%; -} diff --git a/editor/editor/filemanager/browser/default/browser.html b/editor/editor/filemanager/browser/default/browser.html @@ -1,200 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" - "http://www.w3.org/TR/html4/frameset.dtd"> -<!-- - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This page compose the File Browser dialog frameset. ---> -<html> - <head> - <title>FCKeditor - Resources Browser</title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <link href="browser.css" type="text/css" rel="stylesheet"> - <script type="text/javascript" src="js/fckxml.js"></script> - <script type="text/javascript"> -// Automatically detect the correct document.domain (#1919). -(function() -{ - var d = document.domain ; - - while ( true ) - { - // Test if we can access a parent property. - try - { - var test = window.opener.document.domain ; - break ; - } - catch( e ) - {} - - // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... - d = d.replace( /.*?(?:\.|$)/, '' ) ; - - if ( d.length == 0 ) - break ; // It was not able to detect the domain. - - try - { - document.domain = d ; - } - catch (e) - { - break ; - } - } -})() ; - -function GetUrlParam( paramName ) -{ - var oRegex = new RegExp( '[\?&]' + paramName + '=([^&]+)', 'i' ) ; - var oMatch = oRegex.exec( window.top.location.search ) ; - - if ( oMatch && oMatch.length > 1 ) - return decodeURIComponent( oMatch[1] ) ; - else - return '' ; -} - -var oConnector = new Object() ; -oConnector.CurrentFolder = '/' ; - -var sConnUrl = GetUrlParam( 'Connector' ) ; - -// Gecko has some problems when using relative URLs (not starting with slash). -if ( sConnUrl.substr(0,1) != '/' && sConnUrl.indexOf( '://' ) < 0 ) - sConnUrl = window.location.href.replace( /browser.html.*$/, '' ) + sConnUrl ; - -oConnector.ConnectorUrl = sConnUrl + ( sConnUrl.indexOf('?') != -1 ? '&' : '?' ) ; - -var sServerPath = GetUrlParam( 'ServerPath' ) ; -if ( sServerPath.length > 0 ) - oConnector.ConnectorUrl += 'ServerPath=' + encodeURIComponent( sServerPath ) + '&' ; - -oConnector.ResourceType = GetUrlParam( 'Type' ) ; -oConnector.ShowAllTypes = ( oConnector.ResourceType.length == 0 ) ; - -if ( oConnector.ShowAllTypes ) - oConnector.ResourceType = 'File' ; - -oConnector.SendCommand = function( command, params, callBackFunction ) -{ - var sUrl = this.ConnectorUrl + 'Command=' + command ; - sUrl += '&Type=' + this.ResourceType ; - sUrl += '&CurrentFolder=' + encodeURIComponent( this.CurrentFolder ) ; - - if ( params ) sUrl += '&' + params ; - - // Add a random salt to avoid getting a cached version of the command execution - sUrl += '&uuid=' + new Date().getTime() ; - - var oXML = new FCKXml() ; - - if ( callBackFunction ) - oXML.LoadUrl( sUrl, callBackFunction ) ; // Asynchronous load. - else - return oXML.LoadUrl( sUrl ) ; - - return null ; -} - -oConnector.CheckError = function( responseXml ) -{ - var iErrorNumber = 0 ; - var oErrorNode = responseXml.SelectSingleNode( 'Connector/Error' ) ; - - if ( oErrorNode ) - { - iErrorNumber = parseInt( oErrorNode.attributes.getNamedItem('number').value, 10 ) ; - - switch ( iErrorNumber ) - { - case 0 : - break ; - case 1 : // Custom error. Message placed in the "text" attribute. - alert( oErrorNode.attributes.getNamedItem('text').value ) ; - break ; - case 101 : - alert( 'Folder already exists' ) ; - break ; - case 102 : - alert( 'Invalid folder name' ) ; - break ; - case 103 : - alert( 'You have no permissions to create the folder' ) ; - break ; - case 110 : - alert( 'Unknown error creating folder' ) ; - break ; - default : - alert( 'Error on your request. Error number: ' + iErrorNumber ) ; - break ; - } - } - return iErrorNumber ; -} - -var oIcons = new Object() ; - -oIcons.AvailableIconsArray = [ - 'ai','avi','bmp','cs','dll','doc','exe','fla','gif','htm','html','jpg','js', - 'mdb','mp3','pdf','png','ppt','rdp','swf','swt','txt','vsd','xls','xml','zip' ] ; - -oIcons.AvailableIcons = new Object() ; - -for ( var i = 0 ; i < oIcons.AvailableIconsArray.length ; i++ ) - oIcons.AvailableIcons[ oIcons.AvailableIconsArray[i] ] = true ; - -oIcons.GetIcon = function( fileName ) -{ - var sExtension = fileName.substr( fileName.lastIndexOf('.') + 1 ).toLowerCase() ; - - if ( this.AvailableIcons[ sExtension ] == true ) - return sExtension ; - else - return 'default.icon' ; -} - -function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg ) -{ - if (errorNumber == "1") - window.frames['frmUpload'].OnUploadCompleted( errorNumber, customMsg ) ; - else - window.frames['frmUpload'].OnUploadCompleted( errorNumber, fileName ) ; -} - - </script> - </head> - <frameset cols="150,*" class="Frame" framespacing="3" bordercolor="#f1f1e3" frameborder="1"> - <frameset rows="50,*" framespacing="0"> - <frame src="frmresourcetype.html" scrolling="no" frameborder="0"> - <frame name="frmFolders" src="frmfolders.html" scrolling="auto" frameborder="1"> - </frameset> - <frameset rows="50,*,50" framespacing="0"> - <frame name="frmActualFolder" src="frmactualfolder.html" scrolling="no" frameborder="0"> - <frame name="frmResourcesList" src="frmresourceslist.html" scrolling="auto" frameborder="1"> - <frameset cols="150,*,0" framespacing="0" frameborder="0"> - <frame name="frmCreateFolder" src="frmcreatefolder.html" scrolling="no" frameborder="0"> - <frame name="frmUpload" src="frmupload.html" scrolling="no" frameborder="0"> - <frame name="frmUploadWorker" src="javascript:void(0)" scrolling="no" frameborder="0"> - </frameset> - </frameset> - </frameset> -</html> diff --git a/editor/editor/filemanager/browser/default/frmactualfolder.html b/editor/editor/filemanager/browser/default/frmactualfolder.html @@ -1,95 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<!-- - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This page shows the actual folder path. ---> -<html> - <head> - <title>Folder path</title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <link href="browser.css" type="text/css" rel="stylesheet"> - <script type="text/javascript"> -// Automatically detect the correct document.domain (#1919). -(function() -{ - var d = document.domain ; - - while ( true ) - { - // Test if we can access a parent property. - try - { - var test = window.top.opener.document.domain ; - break ; - } - catch( e ) - {} - - // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... - d = d.replace( /.*?(?:\.|$)/, '' ) ; - - if ( d.length == 0 ) - break ; // It was not able to detect the domain. - - try - { - document.domain = d ; - } - catch (e) - { - break ; - } - } -})() ; - -function SetCurrentFolder( resourceType, folderPath ) -{ - document.getElementById('tdName').innerHTML = folderPath ; -} - -window.onload = function() -{ - window.top.IsLoadedActualFolder = true ; -} - - </script> - </head> - <body> - <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> - <tr> - <td> - <button style="WIDTH: 100%" type="button"> - <table cellSpacing="0" cellPadding="0" width="100%" border="0"> - <tr> - <td><img height="32" alt="" src="images/FolderOpened32.gif" width="32"></td> - <td>&nbsp;</td> - <td id="tdName" width="100%" nowrap class="ActualFolder">/</td> - <td>&nbsp;</td> - <td><img height="8" src="images/ButtonArrow.gif" width="12" alt=""></td> - <td>&nbsp;</td> - </tr> - </table> - </button> - </td> - </tr> - </table> - </body> -</html> diff --git a/editor/editor/filemanager/browser/default/frmcreatefolder.html b/editor/editor/filemanager/browser/default/frmcreatefolder.html @@ -1,114 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<!-- - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Page used to create new folders in the current folder. ---> -<html> - <head> - <title>Create Folder</title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <link href="browser.css" type="text/css" rel="stylesheet"> - <script type="text/javascript" src="js/common.js"></script> - <script type="text/javascript"> - -function SetCurrentFolder( resourceType, folderPath ) -{ - oConnector.ResourceType = resourceType ; - oConnector.CurrentFolder = folderPath ; -} - -function CreateFolder() -{ - var sFolderName ; - - while ( true ) - { - sFolderName = prompt( 'Type the name of the new folder:', '' ) ; - - if ( sFolderName == null ) - return ; - else if ( sFolderName.length == 0 ) - alert( 'Please type the folder name' ) ; - else - break ; - } - - oConnector.SendCommand( 'CreateFolder', 'NewFolderName=' + encodeURIComponent( sFolderName) , CreateFolderCallBack ) ; -} - -function CreateFolderCallBack( fckXml ) -{ - if ( oConnector.CheckError( fckXml ) == 0 ) - window.parent.frames['frmResourcesList'].Refresh() ; - - /* - // Get the current folder path. - var oNode = fckXml.SelectSingleNode( 'Connector/Error' ) ; - var iErrorNumber = parseInt( oNode.attributes.getNamedItem('number').value ) ; - - switch ( iErrorNumber ) - { - case 0 : - window.parent.frames['frmResourcesList'].Refresh() ; - break ; - case 101 : - alert( 'Folder already exists' ) ; - break ; - case 102 : - alert( 'Invalid folder name' ) ; - break ; - case 103 : - alert( 'You have no permissions to create the folder' ) ; - break ; - case 110 : - alert( 'Unknown error creating folder' ) ; - break ; - default : - alert( 'Error creating folder. Error number: ' + iErrorNumber ) ; - break ; - } - */ -} - -window.onload = function() -{ - window.top.IsLoadedCreateFolder = true ; -} - </script> - </head> - <body> - <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> - <tr> - <td> - <button type="button" style="WIDTH: 100%" onclick="CreateFolder();"> - <table cellSpacing="0" cellPadding="0" border="0"> - <tr> - <td><img height="16" alt="" src="images/Folder.gif" width="16"></td> - <td>&nbsp;</td> - <td nowrap>Create New Folder</td> - </tr> - </table> - </button> - </td> - </tr> - </table> - </body> -</html> diff --git a/editor/editor/filemanager/browser/default/frmfolders.html b/editor/editor/filemanager/browser/default/frmfolders.html @@ -1,198 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<!-- - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This page shows the list of folders available in the parent folder - * of the current folder. ---> -<html> - <head> - <title>Folders</title> - <link href="browser.css" type="text/css" rel="stylesheet"> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <script type="text/javascript" src="js/common.js"></script> - <script type="text/javascript"> - -var sActiveFolder ; - -var bIsLoaded = false ; -var iIntervalId ; - -var oListManager = new Object() ; - -oListManager.Init = function() -{ - this.Table = document.getElementById('tableFiles') ; - this.UpRow = document.getElementById('trUp') ; - - this.TableRows = new Object() ; -} - -oListManager.Clear = function() -{ - // Remove all other rows available. - while ( this.Table.rows.length > 1 ) - this.Table.deleteRow(1) ; - - // Reset the TableRows collection. - this.TableRows = new Object() ; -} - -oListManager.AddItem = function( folderName, folderPath ) -{ - // Create the new row. - var oRow = this.Table.insertRow(-1) ; - oRow.className = 'FolderListFolder' ; - - // Build the link to view the folder. - var sLink = '<a href="#" onclick="OpenFolder(\'' + folderPath + '\');return false;">' ; - - // Add the folder icon cell. - var oCell = oRow.insertCell(-1) ; - oCell.width = 16 ; - oCell.innerHTML = sLink + '<img alt="" src="images/spacer.gif" width="16" height="16" border="0"><\/a>' ; - - // Add the folder name cell. - oCell = oRow.insertCell(-1) ; - oCell.noWrap = true ; - oCell.innerHTML = '&nbsp;' + sLink + folderName + '<\/a>' ; - - this.TableRows[ folderPath ] = oRow ; -} - -oListManager.ShowUpFolder = function( upFolderPath ) -{ - this.UpRow.style.display = ( upFolderPath != null ? '' : 'none' ) ; - - if ( upFolderPath != null ) - { - document.getElementById('linkUpIcon').onclick = document.getElementById('linkUp').onclick = function() - { - LoadFolders( upFolderPath ) ; - return false ; - } - } -} - -function CheckLoaded() -{ - if ( window.top.IsLoadedActualFolder - && window.top.IsLoadedCreateFolder - && window.top.IsLoadedUpload - && window.top.IsLoadedResourcesList ) - { - window.clearInterval( iIntervalId ) ; - bIsLoaded = true ; - OpenFolder( sActiveFolder ) ; - } -} - -function OpenFolder( folderPath ) -{ - sActiveFolder = folderPath ; - - if ( ! bIsLoaded ) - { - if ( ! iIntervalId ) - iIntervalId = window.setInterval( CheckLoaded, 100 ) ; - return ; - } - - // Change the style for the select row (to show the opened folder). - for ( var sFolderPath in oListManager.TableRows ) - { - oListManager.TableRows[ sFolderPath ].className = - ( sFolderPath == folderPath ? 'FolderListCurrentFolder' : 'FolderListFolder' ) ; - } - - // Set the current folder in all frames. - window.parent.frames['frmActualFolder'].SetCurrentFolder( oConnector.ResourceType, folderPath ) ; - window.parent.frames['frmCreateFolder'].SetCurrentFolder( oConnector.ResourceType, folderPath ) ; - window.parent.frames['frmUpload'].SetCurrentFolder( oConnector.ResourceType, folderPath ) ; - - // Load the resources list for this folder. - window.parent.frames['frmResourcesList'].LoadResources( oConnector.ResourceType, folderPath ) ; -} - -function LoadFolders( folderPath ) -{ - // Clear the folders list. - oListManager.Clear() ; - - // Get the parent folder path. - var sParentFolderPath ; - if ( folderPath != '/' ) - sParentFolderPath = folderPath.substring( 0, folderPath.lastIndexOf( '/', folderPath.length - 2 ) + 1 ) ; - - // Show/Hide the Up Folder. - oListManager.ShowUpFolder( sParentFolderPath ) ; - - if ( folderPath != '/' ) - { - sActiveFolder = folderPath ; - oConnector.CurrentFolder = sParentFolderPath ; - oConnector.SendCommand( 'GetFolders', null, GetFoldersCallBack ) ; - } - else - OpenFolder( '/' ) ; -} - -function GetFoldersCallBack( fckXml ) -{ - if ( oConnector.CheckError( fckXml ) != 0 ) - return ; - - // Get the current folder path. - var oNode = fckXml.SelectSingleNode( 'Connector/CurrentFolder' ) ; - var sCurrentFolderPath = oNode.attributes.getNamedItem('path').value ; - - var oNodes = fckXml.SelectNodes( 'Connector/Folders/Folder' ) ; - - for ( var i = 0 ; i < oNodes.length ; i++ ) - { - var sFolderName = oNodes[i].attributes.getNamedItem('name').value ; - oListManager.AddItem( sFolderName, sCurrentFolderPath + sFolderName + '/' ) ; - } - - OpenFolder( sActiveFolder ) ; -} - -function SetResourceType( type ) -{ - oConnector.ResourceType = type ; - LoadFolders( '/' ) ; -} - -window.onload = function() -{ - oListManager.Init() ; - LoadFolders( '/' ) ; -} - </script> - </head> - <body class="FileArea"> - <table id="tableFiles" cellSpacing="0" cellPadding="0" width="100%" border="0"> - <tr id="trUp" style="DISPLAY: none"> - <td width="16"><a id="linkUpIcon" href="#"><img alt="" src="images/FolderUp.gif" width="16" height="16" border="0"></a></td> - <td nowrap width="100%">&nbsp;<a id="linkUp" href="#">..</a></td> - </tr> - </table> - </body> -</html> diff --git a/editor/editor/filemanager/browser/default/frmresourceslist.html b/editor/editor/filemanager/browser/default/frmresourceslist.html @@ -1,187 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<!-- - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This page shows all resources available in a folder in the File Browser. ---> -<html> -<head> - <title>Resources</title> - <link href="browser.css" type="text/css" rel="stylesheet"> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <script type="text/javascript" src="js/common.js"></script> - <script type="text/javascript"> - -var oListManager = new Object() ; - -oListManager.Clear = function() -{ - document.body.innerHTML = '' ; -} - -function ProtectPath(path) -{ - path = path.replace( /\\/g, '\\\\') ; - path = path.replace( /'/g, '\\\'') ; - return path ; -} - -oListManager.GetFolderRowHtml = function( folderName, folderPath ) -{ - // Build the link to view the folder. - var sLink = '<a href="#" onclick="OpenFolder(\'' + ProtectPath( folderPath ) + '\');return false;">' ; - - return '<tr>' + - '<td width="16">' + - sLink + - '<img alt="" src="images/Folder.gif" width="16" height="16" border="0"><\/a>' + - '<\/td><td nowrap colspan="2">&nbsp;' + - sLink + - folderName + - '<\/a>' + - '<\/td><\/tr>' ; -} - -oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize ) -{ - // Build the link to view the folder. - var sLink = '<a href="#" onclick="OpenFile(\'' + ProtectPath( fileUrl ) + '\');return false;">' ; - - // Get the file icon. - var sIcon = oIcons.GetIcon( fileName ) ; - - return '<tr>' + - '<td width="16">' + - sLink + - '<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"><\/a>' + - '<\/td><td>&nbsp;' + - sLink + - fileName + - '<\/a>' + - '<\/td><td align="right" nowrap>&nbsp;' + - fileSize + - ' KB' + - '<\/td><\/tr>' ; -} - -function OpenFolder( folderPath ) -{ - // Load the resources list for this folder. - window.parent.frames['frmFolders'].LoadFolders( folderPath ) ; -} - -function OpenFile( fileUrl ) -{ - - //PATCH: Using CKEditors API we set the file in preview window. - - funcNum = GetUrlParam('CKEditorFuncNum') ; - window.top.opener.CKEDITOR.tools.callFunction( funcNum, encodeURI( fileUrl ).replace( '#', '%23' )); - - /////////////////////////////////// - window.top.close() ; - window.top.opener.focus() ; -} - - -function GetUrlParam( paramName ) -{ - var oRegex = new RegExp( '[\?&]' + paramName + '=([^&]+)', 'i' ) ; - var oMatch = oRegex.exec( window.top.location.search ) ; - - if ( oMatch && oMatch.length > 1 ) - return decodeURIComponent( oMatch[1] ) ; - else - return '' ; -} - -function LoadResources( resourceType, folderPath ) -{ - oListManager.Clear() ; - oConnector.ResourceType = resourceType ; - oConnector.CurrentFolder = folderPath ; - oConnector.SendCommand( 'GetFoldersAndFiles', null, GetFoldersAndFilesCallBack ) ; -} - -function Refresh() -{ - LoadResources( oConnector.ResourceType, oConnector.CurrentFolder ) ; -} - -function GetFoldersAndFilesCallBack( fckXml ) -{ - if ( oConnector.CheckError( fckXml ) != 0 ) - return ; - - // Get the current folder path. - var oFolderNode = fckXml.SelectSingleNode( 'Connector/CurrentFolder' ) ; - if ( oFolderNode == null ) - { - alert( 'The server didn\'t reply with a proper XML data. Please check your configuration.' ) ; - return ; - } - var sCurrentFolderPath = oFolderNode.attributes.getNamedItem('path').value ; - var sCurrentFolderUrl = oFolderNode.attributes.getNamedItem('url').value ; - -// var dTimer = new Date() ; - - var oHtml = new StringBuilder( '<table id="tableFiles" cellspacing="1" cellpadding="0" width="100%" border="0">' ) ; - - // Add the Folders. - var oNodes ; - oNodes = fckXml.SelectNodes( 'Connector/Folders/Folder' ) ; - for ( var i = 0 ; i < oNodes.length ; i++ ) - { - var sFolderName = oNodes[i].attributes.getNamedItem('name').value ; - oHtml.Append( oListManager.GetFolderRowHtml( sFolderName, sCurrentFolderPath + sFolderName + "/" ) ) ; - } - - // Add the Files. - oNodes = fckXml.SelectNodes( 'Connector/Files/File' ) ; - for ( var j = 0 ; j < oNodes.length ; j++ ) - { - var oNode = oNodes[j] ; - var sFileName = oNode.attributes.getNamedItem('name').value ; - var sFileSize = oNode.attributes.getNamedItem('size').value ; - - // Get the optional "url" attribute. If not available, build the url. - var oFileUrlAtt = oNodes[j].attributes.getNamedItem('url') ; - var sFileUrl = oFileUrlAtt != null ? oFileUrlAtt.value : encodeURI( sCurrentFolderUrl + sFileName ).replace( /#/g, '%23' ) ; - - oHtml.Append( oListManager.GetFileRowHtml( sFileName, sFileUrl, sFileSize ) ) ; - } - - oHtml.Append( '<\/table>' ) ; - - document.body.innerHTML = oHtml.ToString() ; - -// window.top.document.title = 'Finished processing in ' + ( ( ( new Date() ) - dTimer ) / 1000 ) + ' seconds' ; - -} - -window.onload = function() -{ - window.top.IsLoadedResourcesList = true ; -} - </script> -</head> -<body class="FileArea"> -</body> -</html> diff --git a/editor/editor/filemanager/browser/default/frmresourcetype.html b/editor/editor/filemanager/browser/default/frmresourcetype.html @@ -1,69 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<!-- - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This page shows the list of available resource types. ---> -<html> - <head> - <title>Available types</title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <link href="browser.css" type="text/css" rel="stylesheet"> - <script type="text/javascript" src="js/common.js"></script> - <script type="text/javascript"> - -function SetResourceType( type ) -{ - window.parent.frames["frmFolders"].SetResourceType( type ) ; -} - -var aTypes = [ - ['File','File'], - ['Image','Image'], - ['Flash','Flash'], - ['Media','Media'] -] ; - -window.onload = function() -{ - var oCombo = document.getElementById('cmbType') ; - oCombo.innerHTML = '' ; - for ( var i = 0 ; i < aTypes.length ; i++ ) - { - if ( oConnector.ShowAllTypes || aTypes[i][0] == oConnector.ResourceType ) - AddSelectOption( oCombo, aTypes[i][1], aTypes[i][0] ) ; - } -} - - </script> - </head> - <body> - <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> - <tr> - <td nowrap> - Resource Type<BR> - <select id="cmbType" style="WIDTH: 100%" onchange="SetResourceType(this.value);"> - <option>&nbsp; - </select> - </td> - </tr> - </table> - </body> -</html> diff --git a/editor/editor/filemanager/browser/default/frmupload.html b/editor/editor/filemanager/browser/default/frmupload.html @@ -1,115 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<!-- - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Page used to upload new files in the current folder. ---> -<html> - <head> - <title>File Upload</title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <link href="browser.css" type="text/css" rel="stylesheet" > - <script type="text/javascript" src="js/common.js"></script> - <script type="text/javascript"> - -function SetCurrentFolder( resourceType, folderPath ) -{ - var sUrl = oConnector.ConnectorUrl + 'Command=FileUpload' ; - sUrl += '&Type=' + resourceType ; - sUrl += '&CurrentFolder=' + encodeURIComponent( folderPath ) ; - - document.getElementById('frmUpload').action = sUrl ; -} - -function OnSubmit() -{ - if ( document.getElementById('NewFile').value.length == 0 ) - { - alert( 'Please select a file from your computer' ) ; - return false ; - } - - // Set the interface elements. - document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder (Upload in progress, please wait...)' ; - document.getElementById('btnUpload').disabled = true ; - - return true ; -} - -function OnUploadCompleted( errorNumber, data ) -{ - // Reset the Upload Worker Frame. - window.parent.frames['frmUploadWorker'].location = 'javascript:void(0)' ; - - // Reset the upload form (On IE we must do a little trick to avoid problems). - if ( document.all ) - document.getElementById('NewFile').outerHTML = '<input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file">' ; - else - document.getElementById('frmUpload').reset() ; - - // Reset the interface elements. - document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder' ; - document.getElementById('btnUpload').disabled = false ; - - switch ( errorNumber ) - { - case 0 : - window.parent.frames['frmResourcesList'].Refresh() ; - break ; - case 1 : // Custom error. - alert( data ) ; - break ; - case 201 : - window.parent.frames['frmResourcesList'].Refresh() ; - alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + data + '"' ) ; - break ; - case 202 : - alert( 'Invalid file' ) ; - break ; - default : - alert( 'Error on file upload. Error number: ' + errorNumber ) ; - break ; - } -} - -window.onload = function() -{ - window.top.IsLoadedUpload = true ; -} - </script> - </head> - <body> - <form id="frmUpload" action="" target="frmUploadWorker" method="post" enctype="multipart/form-data" onsubmit="return OnSubmit();"> - <table class="fullHeight" cellspacing="0" cellpadding="0" width="100%" border="0"> - <tr> - <td nowrap="nowrap"> - <span id="eUploadMessage">Upload a new file in this folder</span><br> - <table cellspacing="0" cellpadding="0" width="100%" border="0"> - <tr> - <td width="100%"><input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file"></td> - <td nowrap="nowrap">&nbsp;<input id="btnUpload" type="submit" value="Upload"></td> - </tr> - </table> - </td> - </tr> - </table> - </form> - </body> -</html> diff --git a/editor/editor/filemanager/browser/default/images/ButtonArrow.gif b/editor/editor/filemanager/browser/default/images/ButtonArrow.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/Folder.gif b/editor/editor/filemanager/browser/default/images/Folder.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/Folder32.gif b/editor/editor/filemanager/browser/default/images/Folder32.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/FolderOpened.gif b/editor/editor/filemanager/browser/default/images/FolderOpened.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/FolderOpened32.gif b/editor/editor/filemanager/browser/default/images/FolderOpened32.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/FolderUp.gif b/editor/editor/filemanager/browser/default/images/FolderUp.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/ai.gif b/editor/editor/filemanager/browser/default/images/icons/32/ai.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/avi.gif b/editor/editor/filemanager/browser/default/images/icons/32/avi.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/bmp.gif b/editor/editor/filemanager/browser/default/images/icons/32/bmp.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/cs.gif b/editor/editor/filemanager/browser/default/images/icons/32/cs.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/default.icon.gif b/editor/editor/filemanager/browser/default/images/icons/32/default.icon.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/dll.gif b/editor/editor/filemanager/browser/default/images/icons/32/dll.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/doc.gif b/editor/editor/filemanager/browser/default/images/icons/32/doc.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/exe.gif b/editor/editor/filemanager/browser/default/images/icons/32/exe.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/fla.gif b/editor/editor/filemanager/browser/default/images/icons/32/fla.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/gif.gif b/editor/editor/filemanager/browser/default/images/icons/32/gif.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/htm.gif b/editor/editor/filemanager/browser/default/images/icons/32/htm.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/html.gif b/editor/editor/filemanager/browser/default/images/icons/32/html.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/jpg.gif b/editor/editor/filemanager/browser/default/images/icons/32/jpg.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/js.gif b/editor/editor/filemanager/browser/default/images/icons/32/js.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/mdb.gif b/editor/editor/filemanager/browser/default/images/icons/32/mdb.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/mp3.gif b/editor/editor/filemanager/browser/default/images/icons/32/mp3.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/pdf.gif b/editor/editor/filemanager/browser/default/images/icons/32/pdf.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/png.gif b/editor/editor/filemanager/browser/default/images/icons/32/png.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/ppt.gif b/editor/editor/filemanager/browser/default/images/icons/32/ppt.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/rdp.gif b/editor/editor/filemanager/browser/default/images/icons/32/rdp.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/swf.gif b/editor/editor/filemanager/browser/default/images/icons/32/swf.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/swt.gif b/editor/editor/filemanager/browser/default/images/icons/32/swt.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/txt.gif b/editor/editor/filemanager/browser/default/images/icons/32/txt.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/vsd.gif b/editor/editor/filemanager/browser/default/images/icons/32/vsd.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/xls.gif b/editor/editor/filemanager/browser/default/images/icons/32/xls.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/xml.gif b/editor/editor/filemanager/browser/default/images/icons/32/xml.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/32/zip.gif b/editor/editor/filemanager/browser/default/images/icons/32/zip.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/ai.gif b/editor/editor/filemanager/browser/default/images/icons/ai.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/avi.gif b/editor/editor/filemanager/browser/default/images/icons/avi.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/bmp.gif b/editor/editor/filemanager/browser/default/images/icons/bmp.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/cs.gif b/editor/editor/filemanager/browser/default/images/icons/cs.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/default.icon.gif b/editor/editor/filemanager/browser/default/images/icons/default.icon.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/dll.gif b/editor/editor/filemanager/browser/default/images/icons/dll.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/doc.gif b/editor/editor/filemanager/browser/default/images/icons/doc.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/exe.gif b/editor/editor/filemanager/browser/default/images/icons/exe.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/fla.gif b/editor/editor/filemanager/browser/default/images/icons/fla.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/gif.gif b/editor/editor/filemanager/browser/default/images/icons/gif.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/htm.gif b/editor/editor/filemanager/browser/default/images/icons/htm.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/html.gif b/editor/editor/filemanager/browser/default/images/icons/html.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/jpg.gif b/editor/editor/filemanager/browser/default/images/icons/jpg.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/js.gif b/editor/editor/filemanager/browser/default/images/icons/js.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/mdb.gif b/editor/editor/filemanager/browser/default/images/icons/mdb.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/mp3.gif b/editor/editor/filemanager/browser/default/images/icons/mp3.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/pdf.gif b/editor/editor/filemanager/browser/default/images/icons/pdf.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/png.gif b/editor/editor/filemanager/browser/default/images/icons/png.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/ppt.gif b/editor/editor/filemanager/browser/default/images/icons/ppt.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/rdp.gif b/editor/editor/filemanager/browser/default/images/icons/rdp.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/swf.gif b/editor/editor/filemanager/browser/default/images/icons/swf.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/swt.gif b/editor/editor/filemanager/browser/default/images/icons/swt.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/txt.gif b/editor/editor/filemanager/browser/default/images/icons/txt.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/vsd.gif b/editor/editor/filemanager/browser/default/images/icons/vsd.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/xls.gif b/editor/editor/filemanager/browser/default/images/icons/xls.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/xml.gif b/editor/editor/filemanager/browser/default/images/icons/xml.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/icons/zip.gif b/editor/editor/filemanager/browser/default/images/icons/zip.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/images/spacer.gif b/editor/editor/filemanager/browser/default/images/spacer.gif Binary files differ. diff --git a/editor/editor/filemanager/browser/default/js/common.js b/editor/editor/filemanager/browser/default/js/common.js @@ -1,88 +0,0 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Common objects and functions shared by all pages that compose the - * File Browser dialog window. - */ - -// Automatically detect the correct document.domain (#1919). -(function() -{ - var d = document.domain ; - - while ( true ) - { - // Test if we can access a parent property. - try - { - var test = window.top.opener.document.domain ; - break ; - } - catch( e ) - {} - - // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... - d = d.replace( /.*?(?:\.|$)/, '' ) ; - - if ( d.length == 0 ) - break ; // It was not able to detect the domain. - - try - { - document.domain = d ; - } - catch (e) - { - break ; - } - } -})() ; - -function AddSelectOption( selectElement, optionText, optionValue ) -{ - var oOption = document.createElement("OPTION") ; - - oOption.text = optionText ; - oOption.value = optionValue ; - - selectElement.options.add(oOption) ; - - return oOption ; -} - -var oConnector = window.parent.oConnector ; -var oIcons = window.parent.oIcons ; - - -function StringBuilder( value ) -{ - this._Strings = new Array( value || '' ) ; -} - -StringBuilder.prototype.Append = function( value ) -{ - if ( value ) - this._Strings.push( value ) ; -} - -StringBuilder.prototype.ToString = function() -{ - return this._Strings.join( '' ) ; -} diff --git a/editor/editor/filemanager/browser/default/js/fckxml.js b/editor/editor/filemanager/browser/default/js/fckxml.js @@ -1,147 +0,0 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2010 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Defines the FCKXml object that is used for XML data calls - * and XML processing. - * - * This script is shared by almost all pages that compose the - * File Browser frameset. - */ - -var FCKXml = function() -{} - -FCKXml.prototype.GetHttpRequest = function() -{ - // Gecko / IE7 - try { return new XMLHttpRequest(); } - catch(e) {} - - // IE6 - try { return new ActiveXObject( 'Msxml2.XMLHTTP' ) ; } - catch(e) {} - - // IE5 - try { return new ActiveXObject( 'Microsoft.XMLHTTP' ) ; } - catch(e) {} - - return null ; -} - -FCKXml.prototype.LoadUrl = function( urlToCall, asyncFunctionPointer ) -{ - var oFCKXml = this ; - - var bAsync = ( typeof(asyncFunctionPointer) == 'function' ) ; - - var oXmlHttp = this.GetHttpRequest() ; - - oXmlHttp.open( "GET", urlToCall, bAsync ) ; - - if ( bAsync ) - { - oXmlHttp.onreadystatechange = function() - { - if ( oXmlHttp.readyState == 4 ) - { - var oXml ; - try - { - // this is the same test for an FF2 bug as in fckxml_gecko.js - // but we've moved the responseXML assignment into the try{} - // so we don't even have to check the return status codes. - var test = oXmlHttp.responseXML.firstChild ; - oXml = oXmlHttp.responseXML ; - } - catch ( e ) - { - try - { - oXml = (new DOMParser()).parseFromString( oXmlHttp.responseText, 'text/xml' ) ; - } - catch ( e ) {} - } - - if ( !oXml || !oXml.firstChild || oXml.firstChild.nodeName == 'parsererror' ) - { - alert( 'The server didn\'t send back a proper XML response. Please contact your system administrator.\n\n' + - 'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')\n\n' + - 'Requested URL:\n' + urlToCall + '\n\n' + - 'Response text:\n' + oXmlHttp.responseText ) ; - return ; - } - - oFCKXml.DOMDocument = oXml ; - asyncFunctionPointer( oFCKXml ) ; - } - } - } - - oXmlHttp.send( null ) ; - - if ( ! bAsync ) - { - if ( oXmlHttp.status == 200 || oXmlHttp.status == 304 ) - this.DOMDocument = oXmlHttp.responseXML ; - else - { - alert( 'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')' ) ; - } - } -} - -FCKXml.prototype.SelectNodes = function( xpath ) -{ - if ( navigator.userAgent.indexOf('MSIE') >= 0 ) // IE - return this.DOMDocument.selectNodes( xpath ) ; - else // Gecko - { - var aNodeArray = new Array(); - - var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument, - this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), XPathResult.ORDERED_NODE_ITERATOR_TYPE, null) ; - if ( xPathResult ) - { - var oNode = xPathResult.iterateNext() ; - while( oNode ) - { - aNodeArray[aNodeArray.length] = oNode ; - oNode = xPathResult.iterateNext(); - } - } - return aNodeArray ; - } -} - -FCKXml.prototype.SelectSingleNode = function( xpath ) -{ - if ( navigator.userAgent.indexOf('MSIE') >= 0 ) // IE - return this.DOMDocument.selectSingleNode( xpath ) ; - else // Gecko - { - var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument, - this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), 9, null); - - if ( xPathResult && xPathResult.singleNodeValue ) - return xPathResult.singleNodeValue ; - else - return null ; - } -} diff --git a/language/de.ini.php b/language/de.ini.php @@ -644,7 +644,11 @@ MENU_FOLDER_SHOWPROP_DESC =Informationen und Eigenschaften zu diesem Verzeichnis MENU_FOLDER_SHOWPROP = Information MENU_FORM_DESC = "Eingabemaske für alle Platzhalter" MENU_FORM = Formular -MENU_FORM_KEY = F +MENU_FORM_KEY = F +GLOBAL_MENU_TITLE_FILEBROWSER_BROWSE="Auswahl" +FILEBROWSER="Datei auswählen" +MENU_FILEBROWSER_BROWSE="Anzeigen" +MENU_FILEBROWSER_BROWSE_DESC="Diesen Ordner anzeigen" MENU_GROUP_ADD_DESC ="Gruppe hinzufügen" MENU_GROUP_ADD ="Neue Gruppe hinzufügen" MENU_GROUP_ADDUSER_DESC ="Weiteren Benutzer in diese Gruppe aufnehmen" diff --git a/serviceClasses/include.inc.php b/serviceClasses/include.inc.php @@ -47,7 +47,7 @@ if ( !empty($REQ[REQ_PARAM_ACTION]) && in_array($REQ[REQ_PARAM_ACTION],array('pa } -if ( !empty($REQ[REQ_PARAM_ACTION]) && in_array($REQ[REQ_PARAM_ACTION],array('file','folder','filemanager')) ) +if ( !empty($REQ[REQ_PARAM_ACTION]) && in_array($REQ[REQ_PARAM_ACTION],array('file','folder','filebrowser')) ) { require_once( OR_SERVICECLASSES_DIR."Upload.class.".PHP_EXT ); } diff --git a/themes/default/include/html/editor.inc.php b/themes/default/include/html/editor.inc.php @@ -93,9 +93,8 @@ switch( $attr_type ) array('TextColor','BGColor'), array('Source','-', 'ShowBlocks','Maximize') ); - $editor->config['filebrowserUploadUrl' ] = './'.OR_EXT_CONTROLLER_FILE.'.php?action=filemanager&subaction=connector&Command=DirectUpload&CurrentFolder=/&Type=File&'.REQ_PARAM_TOKEN.'='.token(); - $editor->config['filebrowserBrowseUrl' ] = str_replace('&amp;','&',Html::url('filemanager','browse','-',array('oid'=>'',REQ_PARAM_TOKEN=>token()) )); - //$editor->config['filebrowserBrowseUrl' ] = $base.'filemanager/browser/default/browser.html?Connector='.urlencode('http://'.$_SERVER['SERVER_NAME'].$url.'?action=filemanager&subaction=connector&'.REQ_PARAM_TOKEN.'='.token()); + $editor->config['filebrowserUploadUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','upload','-',array(REQ_PARAM_TOKEN=>token(),'name'=>'upload'))); + $editor->config['filebrowserBrowseUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','browse','-')); $editor->editor($attr_name,$$attr_name); } diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php @@ -1,7 +1,13 @@ <?php $coloumn_widths=array(); +#IF-ATTR icon# + $icon=$attr_icon; +#ELSE# + $icon=$actionName; +#END-IF# + #IF-ATTR widths# - $column_widths = explode(',',$attr_widths); + $coldumn_widths = explode(',',$attr_widths); #END-IF# #IF-ATTR rowclasses# $row_classes = explode(',',$attr_rowclasses); @@ -28,7 +34,7 @@ if (!@$conf['interface']['application_mode'] ) { echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; + echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { @@ -40,7 +46,7 @@ - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; // if ( !empty($attr_icon) ) // echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !isset($path) || is_array($path) ) diff --git a/themes/default/pages/html/filebrowser/browse.tpl.php b/themes/default/pages/html/filebrowser/browse.tpl.php @@ -0,0 +1,628 @@ +<?php $a1_class='main'; ?><?php + if (!defined('OR_VERSION')) die('Forbidden'); + if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) +?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> + <title><?php echo isset($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> + <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > +<?php if ( isset($refresh_url) ) { ?> + <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> +<?php } ?> + <meta name="MSSmartTagsPreventParsing" content="true" > + <meta name="robots" content="noindex,nofollow" > +<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" > +<?php + } +?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) + { + ?> + <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo $meta['title'] ?>" ><?php + } +?><?php if(!empty($root_stylesheet)) { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $root_stylesheet ?>" > +<?php } ?> +<?php if($root_stylesheet!=$user_stylesheet) { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $user_stylesheet ?>" > +<?php } ?> +</head> +<body class="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > +<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_icon='folder';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php + $coloumn_widths=array(); + $icon=$a2_icon; + $row_classes = explode(',',$a2_rowclasses); + $row_class_idx = 999; + $column_classes = explode(',',$a2_columnclasses); + $row_idx = 0; + $column_idx = 0; + global $image_dir; + if (@$conf['interface']['application_mode'] ) + { + echo '<table class="main" cellspacing="0" cellpadding="4" width="100%" style="margin:0px;border:0px; padding:0px;" height_oo="100%">'; + } + else + { + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$a2_width.'">'; + } + if (!@$conf['interface']['application_mode'] ) + { + echo '<tr class="title"><td>'; + echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ($this->isEditable()) { ?> + <?php if ($this->isEditMode()) { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } + elseif (readonly()) { + ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><?php } + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; + if ( !isset($path) || is_array($path) ) + $path = array(); + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.langHtml($windowTitle).'</span>'; + if ( isset($notice_status)) + { + ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php + } + ?> + </td> + <?php + } + ?> +<?php ?> <!--<td class="menu" style="align:right;"> + <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) + { + ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php + } + ?> + </td>--> + </tr> + <tr class="menu"><td> + <table class="menu"><tr> + <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) + $windowMenu = array(); + foreach( $windowMenu as $menu ) + { + $tmp_text = langHtml($menu['text']); + $tmp_key = strtoupper(langHtml($menu['key' ])); + $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); + if ( $tmp_pos !== false ) + $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); + if ( isset($menu['url']) ) + { + ?><td class="action"><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a></td><?php + } + else + { + ?><td class="noaction"><?php echo $tmp_text ?></td><?php + } + } + if (@$conf['help']['enabled'] ) + { + ?><td><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a></td><?php + } + ?> + </tr></table></td> + </tr> +<?php if (isset($notices) && count($notices)>0 ) + { ?> + <tr> + <td align="center" class="notice"> + <?php foreach( $notices as $notice_idx=>$notice ) { ?> + <br><table class="notice"> + <?php if ($notice['name']!='') { ?> + <tr> + <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> + </th> + </tr> +<?php } ?> + <tr class="<?php echo $notice['status'] ?>"> + <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> + <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> + </td> + </tr> + </table> + <?php } ?> + </td> + </tr> + <tr> + <td colspan="2"><fieldset></fieldset></td> + </tr> +<?php } ?> + <tr> + <td class="window"> + <table cellspacing="0" width="100%" cellpadding="4"> +<?php unset($a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='notices';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php + $a3_list_tmp_key = $a3_key; + $a3_list_tmp_value = $a3_value; + $a3_list_extract = $a3_extract; + unset($a3_key); + unset($a3_value); + if ( !isset($$a3_list) || !is_array($$a3_list) ) + $$a3_list = array(); + foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) + { + if ( $a3_list_extract ) + { + if ( !is_array($$a3_list_tmp_value) ) + { + print_r($$a3_list_tmp_value); + die( 'not an array at key: '.$$a3_list_tmp_key ); + } + extract($$a3_list_tmp_value); + } +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php + $row_idx++; + $column_idx = 0; +?> +<tr +> +<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> + colspan="2" +><?php unset($a5_colspan) ?><?php $a6_class='text';$a6_key=$key;$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?><br/></td></tr><?php } ?><?php $a3_present='up_url'; ?><?php + $a3_tmp_exec = isset($$a3_present); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_present) ?><?php + $row_idx++; + $column_idx = 0; +?> +<tr +> +<?php $a5_width='50%';$a5_colspan='8'; ?><?php $column_idx++; ?><td + width="50%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> + colspan="8" +><?php unset($a5_width,$a5_colspan) ?><?php $a6_title='';$a6_target='_self';$a6_url=$up_url;$a6_class=''; ?><?php + $params = array(); + $tmp_url = ''; + $tmp_url = $a6_url; +?><a<?php if (isset($a6_name)) echo ' name="'.$a6_name.'"'; else echo ' href="'.$tmp_url.(isset($a6_anchor)?'#'.$a6_anchor:'').'"' ?> class="<?php echo $a6_class ?>" target="<?php echo $a6_target ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_target,$a6_url,$a6_class) ?><?php $a7_align='left';$a7_type='folder'; ?><?php + $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.IMG_ICON_EXT; + $a7_size = '16x16'; + $a7_tmp_title = basename($a7_tmp_image_file); +?><img alt="<?php echo $a7_tmp_title; if (isset($a7_size)) { echo ' ('; list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo $a7_tmp_width.'x'.$a7_tmp_height; echo')';} ?>" src="<?php echo $a7_tmp_image_file ?>" border="0"<?php if(isset($a7_align)) echo ' align="'.$a7_align.'"' ?><?php if (isset($a7_size)) { list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo ' width="'.$a7_tmp_width.'" height="'.$a7_tmp_height.'"';} ?>><?php unset($a7_align,$a7_type) ?><?php $a7_class='text';$a7_raw='__.._____________________';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></a></td></tr><?php } ?><?php $a3_class='headline'; ?><?php + $row_idx++; + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a3_class) ?><?php $a4_class='help'; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> + class="help" +><?php unset($a4_class) ?><?php $a5_class='text';$a5_key='GLOBAL_TYPE';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?><?php $a5_class='text';$a5_raw='_/_';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a5_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?><?php $a5_class='text';$a5_key='GLOBAL_NAME';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_class='help'; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> + class="help" +><?php unset($a4_class) ?><?php $a5_class='text';$a5_key='GLOBAL_LASTCHANGE';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_list='object';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php + $a3_list_tmp_key = $a3_key; + $a3_list_tmp_value = $a3_value; + $a3_list_extract = $a3_extract; + unset($a3_key); + unset($a3_value); + if ( !isset($$a3_list) || !is_array($$a3_list) ) + $$a3_list = array(); + foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) + { + if ( $a3_list_extract ) + { + if ( !is_array($$a3_list_tmp_value) ) + { + print_r($$a3_list_tmp_value); + die( 'not an array at key: '.$$a3_list_tmp_key ); + } + extract($$a3_list_tmp_value); + } +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php + $row_idx++; + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php $a6_title=$desc;$a6_target='_self';$a6_url=$url;$a6_class=$class; ?><?php + $params = array(); + $tmp_url = ''; + $tmp_url = $a6_url; +?><a<?php if (isset($a6_name)) echo ' name="'.$a6_name.'"'; else echo ' href="'.$tmp_url.(isset($a6_anchor)?'#'.$a6_anchor:'').'"' ?> class="<?php echo $a6_class ?>" target="<?php echo $a6_target ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_target,$a6_url,$a6_class) ?><?php $a7_align='left';$a7_type=$icon; ?><?php + $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.IMG_ICON_EXT; + $a7_size = '16x16'; + $a7_tmp_title = basename($a7_tmp_image_file); +?><img alt="<?php echo $a7_tmp_title; if (isset($a7_size)) { echo ' ('; list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo $a7_tmp_width.'x'.$a7_tmp_height; echo')';} ?>" src="<?php echo $a7_tmp_image_file ?>" border="0"<?php if(isset($a7_align)) echo ' align="'.$a7_align.'"' ?><?php if (isset($a7_size)) { list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo ' width="'.$a7_tmp_width.'" height="'.$a7_tmp_height.'"';} ?>><?php unset($a7_align,$a7_type) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_raw='_';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></a></td><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php $a6_date=$date; ?><?php + global $conf; + $time = $a6_date; + if ( isset($_COOKIE['or_timezone_offset']) ) + { + $time -= (int)date('Z'); + $time += ((int)$_COOKIE['or_timezone_offset']*60); + } + if ( $time==0) + echo lang('GLOBAL_UNKNOWN'); + elseif ( !$conf['interface']['human_date_format'] ) + { + echo '<span title="'; + $dl = date(lang('DATE_FORMAT_LONG'),$time); + $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); + $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); + echo $dl; + unset($dl); + echo '">'; + echo date(lang('DATE_FORMAT'),$time); + echo '</span>'; + } + else + { + $sekunden = time()-$time; + $minuten = intval($sekunden/60); + $stunden = intval($minuten /60); + $tage = intval($stunden /24); + $monate = intval($tage /30); + $jahre = intval($monate /12); + echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; + if ( $time==0) + echo lang('GLOBAL_UNKNOWN'); + elseif ( !$conf['interface']['human_date_format'] ) + echo date(lang('DATE_FORMAT'),$time); + elseif ( $sekunden == 1 ) + echo $sekunden.' '.lang('GLOBAL_SECOND'); + elseif ( $sekunden < 60 ) + echo $sekunden.' '.lang('GLOBAL_SECONDS'); + elseif ( $minuten == 1 ) + echo $minuten.' '.lang('GLOBAL_MINUTE'); + elseif ( $minuten < 60 ) + echo $minuten.' '.lang('GLOBAL_MINUTES'); + elseif ( $stunden == 1 ) + echo $stunden.' '.lang('GLOBAL_HOUR'); + elseif ( $stunden < 60 ) + echo $stunden.' '.lang('GLOBAL_HOURS'); + elseif ( $tage == 1 ) + echo $tage.' '.lang('GLOBAL_DAY'); + elseif ( $tage < 60 ) + echo $tage.' '.lang('GLOBAL_DAYS'); + elseif ( $monate == 1 ) + echo $monate.' '.lang('GLOBAL_MONTH'); + elseif ( $monate < 12 ) + echo $monate.' '.lang('GLOBAL_MONTHS'); + elseif ( $jahre == 1 ) + echo $jahre.' '.lang('GLOBAL_YEAR'); + else + echo $jahre.' '.lang('GLOBAL_YEARS'); + echo '</span>'; + } +?><?php unset($a6_date) ?></td></tr><?php } ?><?php $a3_empty='object'; ?><?php + if ( !isset($$a3_empty) ) + $a3_tmp_exec = empty($a3_empty); + elseif ( is_array($$a3_empty) ) + $a3_tmp_exec = (count($$a3_empty)==0); + elseif ( is_bool($$a3_empty) ) + $a3_tmp_exec = true; + else + $a3_tmp_exec = empty( $$a3_empty ); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_empty) ?><?php + $row_idx++; + $column_idx = 0; +?> +<tr +> +<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> + colspan="2" +><?php unset($a5_colspan) ?><?php $a6_class='text';$a6_text='GLOBAL_NOT_FOUND';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td></tr><?php } ?><?php $a3_true=$writable; ?><?php + if (gettype($a3_true) === '' && gettype($a3_true) === '1') + $a3_tmp_exec = $$a3_true == true; + else + $a3_tmp_exec = $a3_true == true; + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_true) ?><?php + $row_idx++; + $column_idx = 0; +?> +<tr +> +<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> + class="act" + colspan="2" +><?php unset($a5_class,$a5_colspan) ?><br/><?php $a6_action='filebrowser';$a6_subaction='upload';$a6_id=$id;$a6_name='';$a6_target='_self';$a6_method='post';$a6_enctype='multipart/form-data'; ?><?php + if ($this->isEditable()) + { + if ($this->isEditMode()) + { + $a6_method = 'POST'; + } + else + { + $a6_method = 'GET'; + $a6_subaction = $subActionName; + } + } +?><form name="<?php echo $a6_name ?>" + target="<?php echo $a6_target ?>" + action="<?php echo Html::url( $a6_action,$a6_subaction,$a6_id ) ?>" + method="<?php echo $a6_method ?>" + enctype="<?php echo $a6_enctype ?>" style="margin:0px;padding:0px;"> +<?php if ($this->isEditable() && !$this->isEditMode()) { ?> +<input type="hidden" name="mode" value="edit" /> +<?php } ?> +<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a6_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a6_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a6_id ?>" /><?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?><?php unset($a6_action,$a6_subaction,$a6_id,$a6_name,$a6_target,$a6_method,$a6_enctype) ?><?php $a7_name='CKEditorFuncNum'; ?><?php +if (isset($$a7_name)) + $a7_tmp_value = $$a7_name; +elseif ( isset($a7_default) ) + $a7_tmp_value = $a7_default; +else + $a7_tmp_value = ""; +?><input type="hidden" name="<?php echo $a7_name ?>" value="<?php echo $a7_tmp_value ?>" /><?php unset($a7_name) ?><?php $a7_class='text';$a7_key='file';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_raw='__';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_name='file';$a7_class='upload';$a7_size='40'; ?><input size="<?php echo $a7_size ?>" id="id_<?php echo $a7_name ?>" type="file" <?php if (isset($a7_maxlength))echo ' maxlength="'.$a7_maxlength.'"' ?> name="<?php echo $a7_name ?>" class="<?php echo $a7_class ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php unset($a7_name,$a7_class,$a7_size) ?><?php $a7_class='text';$a7_raw='__';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='add'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) + $a7_text = 'MODE_EDIT'; + $a7_type = 'submit'; + if ( $this->isEditable() && readonly() ) + $a7_type = ''; // Knopf nicht anzeigen + $a7_src = ''; + if ( !empty($a7_type) ) { +?><input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php echo $image_dir.'icon_'.$a7_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a7_value ?>" class="ok" title="<?php echo lang($a7_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a7_src) +?><?php } +?><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></form> +<br/><br/><?php $a6_var='name';$a6_value=''; ?><?php + if (isset($a6_key)) + $$a6_var = $a6_value[$a6_key]; + else + $$a6_var = $a6_value; +?><?php unset($a6_var,$a6_value) ?><?php $a6_action='filebrowser';$a6_subaction='addfolder';$a6_id=$id;$a6_name='';$a6_target='_self';$a6_method='post';$a6_enctype='application/x-www-form-urlencoded'; ?><?php + if ($this->isEditable()) + { + if ($this->isEditMode()) + { + $a6_method = 'POST'; + } + else + { + $a6_method = 'GET'; + $a6_subaction = $subActionName; + } + } +?><form name="<?php echo $a6_name ?>" + target="<?php echo $a6_target ?>" + action="<?php echo Html::url( $a6_action,$a6_subaction,$a6_id ) ?>" + method="<?php echo $a6_method ?>" + enctype="<?php echo $a6_enctype ?>" style="margin:0px;padding:0px;"> +<?php if ($this->isEditable() && !$this->isEditMode()) { ?> +<input type="hidden" name="mode" value="edit" /> +<?php } ?> +<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a6_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a6_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a6_id ?>" /><?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?><?php unset($a6_action,$a6_subaction,$a6_id,$a6_name,$a6_target,$a6_method,$a6_enctype) ?><?php $a7_name='CKEditorFuncNum'; ?><?php +if (isset($$a7_name)) + $a7_tmp_value = $$a7_name; +elseif ( isset($a7_default) ) + $a7_tmp_value = $a7_default; +else + $a7_tmp_value = ""; +?><input type="hidden" name="<?php echo $a7_name ?>" value="<?php echo $a7_tmp_value ?>" /><?php unset($a7_name) ?><?php $a7_class='text';$a7_key='folder';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_raw='__';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='name';$a7_size='40';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php echo isset($$a7_name)?$$a7_name:$a7_default ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php +if ($a7_readonly) { +?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo isset($$a7_name)?$$a7_name:$a7_default ?>" /><?php + } } else { ?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?><?php $a7_class='text';$a7_raw='__';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='add'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) + $a7_text = 'MODE_EDIT'; + $a7_type = 'submit'; + if ( $this->isEditable() && readonly() ) + $a7_type = ''; // Knopf nicht anzeigen + $a7_src = ''; + if ( !empty($a7_type) ) { +?><input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php echo $image_dir.'icon_'.$a7_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a7_value ?>" class="ok" title="<?php echo lang($a7_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a7_src) +?><?php } +?><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></form> +</td></tr><?php } ?> </table> + </td> + </tr> +</table> +</center> +<?php if ($showDuration) + { ?> +<br/> +<center><small>&nbsp; +<?php $dur = time()-START_TIME; + echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> +<?php } ?> +</body> +</html>+ \ No newline at end of file diff --git a/themes/default/templates/filebrowser/browse.tpl.src.php b/themes/default/templates/filebrowser/browse.tpl.src.php @@ -0,0 +1,61 @@ +page class:main + + window icon:folder + list list:notices extract:true + row + cell colspan:2 + text key:var:key + newline + + if present:up_url + row + cell width:50% colspan:8 + link url:var:up_url + image type:folder + text raw:__.._____________________ + row class:headline + cell class:help + text key:GLOBAL_TYPE + text raw:_/_ + text key:GLOBAL_NAME + cell class:help + text key:GLOBAL_LASTCHANGE + + list list:object extract:true + row class:data + cell + link url:var:url title:var:desc class:var:class + image type:var:icon + text var:name + text raw:_ + cell + date date:var:date + + if empty:object + + row + cell colspan:2 + text text:GLOBAL_NOT_FOUND + + if true:var:writable + row + cell class:act colspan:2 + newline + form action:filebrowser subaction:upload id:var:id enctype:multipart/form-data + hidden name:CKEditorFuncNum + text key:file + text raw:__ + upload name:file + text raw:__ + button type:ok text:add + newline + newline + set var:name value: + form action:filebrowser subaction:addfolder id:var:id + hidden name:CKEditorFuncNum + text key:folder + text raw:__ + input name:name + text raw:__ + button type:ok text:add + + \ No newline at end of file diff --git a/themes/default/templates/filemanager/browse.tpl.src.php b/themes/default/templates/filemanager/browse.tpl.src.php @@ -1,66 +0,0 @@ -page class:main - - table class:main - list list:notices extract:true - row - cell colspan:2 - text key:var:key - newline - - if present:up_url - row - cell width:50% colspan:8 - link url:var:up_url - image type:folder - text raw:__.._____________________ - row class:headline - cell class:help - text key:GLOBAL_TYPE - text raw:_/_ - text key:GLOBAL_NAME - cell class:help - text key:GLOBAL_LASTCHANGE - - list list:object extract:true - row class:data - cell - link url:var:url title:var:desc class:var:class - image type:var:icon - text var:name - text raw:_ - cell - date date:var:date - - if empty:object - - row - cell colspan:2 - text text:GLOBAL_NOT_FOUND - - if true:var:writable - row - cell colspan:2 - newline - newline - fieldset title:message:file - row - cell colspan:2 - form action:filemanager subaction:upload id:var:id enctype:multipart/form-data - hidden name:CKEditorFuncNum - upload name:file - button type:ok text:add - - row - cell colspan:2 - newline - newline - fieldset title:message:folder - row - cell colspan:2 - set var:name value: - form action:filemanager subaction:addfolder id:var:id - hidden name:CKEditorFuncNum - text key:name - input name:name - button type:ok text:add - - \ No newline at end of file