diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ddcf91 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/ +/vendor/ diff --git a/README.md b/README.md index 794d024..09389a1 100755 --- a/README.md +++ b/README.md @@ -1,25 +1,25 @@ -## TinyMCE Editor for OXID eShop CE +TinyMCE Editor for OXID eShop CE v6.x +====================================== + by Marat Bedoev, bestlife AG https://github.com/vanilla-thunder/bla-tinymce -### module version 2.1.1 ( 2017-10-02 ) + +### module version 2.2.0 ( 2018-07-09 ) TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL. More information here: http://www.tinymce.com/ and here: https://github.com/tinymce -# bitte entfernen Sie vollständig das alte bla-TinyMCE Modul, bevor Sie das neue hochladen! - * Modul im Backend deaktivieren - * modules/bla/bla-tinymce löschen - * tmp/ leeren - -# please completely remove the older module version before update! - * deactivate module in backend - * remove modules/bla/bla-tinymce - * clear tmp/ -## more info here: [https://marat.ws/bla-tinymce/](http:/marat.ws/bla-tinymce/) +## Installation + +Only for OXID eShop v6.x + + composer require vanilla-thunder/bla-tinymce ### changelog +- **2018-07-09 :: version 2.2.0** + - Portiert to OXID eSale v6.x - **2017-10-02 :: version 2.1.1** - rollback to TinyMCE 4.6.6, because of issues with filemanager - **2017-09-25 :: version 2.1.0** diff --git a/copy_this/modules/bla/bla-tinymce/application/controllers/admin/tinymcehelper.php b/application/controllers/admin/tinymcehelper.php similarity index 61% rename from copy_this/modules/bla/bla-tinymce/application/controllers/admin/tinymcehelper.php rename to application/controllers/admin/tinymcehelper.php index 48e66ab..889abd2 100755 --- a/copy_this/modules/bla/bla-tinymce/application/controllers/admin/tinymcehelper.php +++ b/application/controllers/admin/tinymcehelper.php @@ -14,17 +14,30 @@ * * Marat Bedoev */ - -class tinymcehelper extends oxAdminView +namespace bla\tinymce\application\controllers\admin; + +use OxidEsales\Eshop\Application\Controller\Admin\AdminController; +use OxidEsales\Eshop\Application\Model\Content; +use OxidEsales\Eshop\Core\DatabaseProvider; +use OxidEsales\Eshop\Core\Model\ListModel; +use OxidEsales\Eshop\Core\Output; +use OxidEsales\Eshop\Core\Registry; + +/** + * Class tinymcehelper + * + * @package bla\tinymce\application\controllers\admin + */ +class tinymcehelper extends AdminController { protected $_errors; protected $_content; public function render() { - $oOutput = oxRegistry::get("oxOutput"); + $oOutput = Registry::get(Output::class); $oOutput->setCharset($this->getCharSet()); - $oOutput->setOutputFormat(oxOutput::OUTPUT_FORMAT_JSON); + $oOutput->setOutputFormat(Output::OUTPUT_FORMAT_JSON); $oOutput->sendHeaders(); $oOutput->output('errors', $this->_errors); $oOutput->output('content', $this->_content); @@ -33,33 +46,31 @@ public function render() public function search() { - $cfg = oxRegistry::getConfig(); + $cfg = Registry::getRequest(); $what = $cfg->getRequestParameter("what"); $where = $cfg->getRequestParameter("where"); $this->_content = $what . ' + '. $where; } - + + /** + * @throws \OxidEsales\Eshop\Core\Exception\DatabaseConnectionException + * @throws \OxidEsales\Eshop\Core\Exception\DatabaseErrorException + */ public function getCMS() { - $oList = oxNew("oxlist"); - $oList->init("oxcontent"); + /** @var ListModel $oList */ + $oList = oxNew(ListModel::class); + $oList->init(Content::class); + + /** @var Content $oListObject */ $oListObject = $oList->getBaseObject(); $sViewName = $oListObject->getViewName(); $sActiveSnippet = $oListObject->getSqlActiveSnippet(); $sSQL = "SELECT OXID, OXLOADID, OXTITLE FROM {$sViewName} WHERE {$sActiveSnippet} AND {$sViewName}.oxfolder != 'CMSFOLDER_EMAILS'"; - $aPages = oxDB::getDb()->getAssoc($sSQL); + $aPages = DatabaseProvider::getDb(DatabaseProvider::FETCH_MODE_ASSOC)->getAll($sSQL); $this->_content = $aPages; } - - public function oxgetseourl() - { - $cfg = oxRegistry::getConfig(); - - $type = ($cfg->getRequestParameter("type") ? $cfg->getRequestParameter("type") : "oxcontent"); - $oxid = ($cfg->getRequestParameter("oxid") ? $cfg->getRequestParameter("oxid") : "oximpressum"); - } - } diff --git a/application/core/blaTinyMceOxViewConfig.php b/application/core/blaTinyMceOxViewConfig.php new file mode 100755 index 0000000..81088c0 --- /dev/null +++ b/application/core/blaTinyMceOxViewConfig.php @@ -0,0 +1,254 @@ + + * + * Marat Bedoev + */ + +namespace bla\tinymce\application\core; + +use OxidEsales\Eshop\Core\Registry; + +/** + * Class blaTinyMceOxViewConfig + * @package bla\tinymce + * @mixin \OxidEsales\Eshop\Core\ViewConfig + */ +class blaTinyMceOxViewConfig extends blaTinyMceOxViewConfig_parent +{ + public function loadTinyMce() + { + $cfg = Registry::getConfig(); + $blEnabled = in_array($this->getActiveClassName(), $cfg->getConfigParam("aTinyMCE_classes")); + $blPlainCms = in_array($cfg->getActiveView()->getViewDataElement("edit")->oxcontents__oxloadid->value, $cfg->getConfigParam("aTinyMCE_plaincms")); + $blFilemanager = $cfg->getConfigParam("blTinyMCE_filemanager"); + + if (!$blEnabled) return false; + if ($blPlainCms) return Registry::getLang()->translateString("BLA_TINYMCE_PLAINCMS"); + + // processing editor config & other stuff + $sLang = Registry::getLang()->getLanguageAbbr(Registry::getLang()->getTplLanguage()); + // array to assign shops lang abbreviations to lang file names of tinymce: shopLangAbbreviation => fileName (without .js ) + $aLang = array( + "cs" => "cs", + "da" => "da", + "de" => "de", + "fr" => "fr_FR", + "it" => "it", + "nl" => "nl", + "ru" => "ru" + ); + + // default config + $aDefaultConfig = array( + 'force_br_newlines' => 'false', + 'force_p_newlines' => 'false', + 'forced_root_block' => '""', + 'selector' => '"textarea:not(.mceNoEditor)"', + 'language' => '"' . (in_array($sLang, $aLang) ? $aLang[$sLang] : 'en') . '"', + //'spellchecker_language' => '"' . (in_array($sLang, $aLang) ? $aLang[$sLang] : 'en') . '"', + 'nowrap' => 'false', + 'entity_encoding' => '"raw"', // http://www.tinymce.com/wiki.php/Configuration:entity_encoding + 'height' => 300, + 'menubar' => 'false', + 'document_base_url' => '"' . $this->getBaseDir() . '"', // http://www.tinymce.com/wiki.php/Configuration:document_base_url + 'relative_urls' => 'false', // http://www.tinymce.com/wiki.php/Configuration:relative_urls + 'plugin_preview_width' => 'window.innerWidth', + 'plugin_preview_height' => 'window.innerHeight-90', + 'code_dialog_width' => 'window.innerWidth-50', + 'code_dialog_height' => 'window.innerHeight-130', + 'image_advtab' => 'true', + 'imagetools_toolbar' => '"rotateleft rotateright | flipv fliph | editimage imageoptions"', + 'moxiemanager_fullscreen' => 'true', + 'insertdatetime_formats' => '[ "%d.%m.%Y", "%H:%M" ]', + 'nonbreaking_force_tab' => 'true', // http://www.tinymce.com/wiki.php/Plugin:nonbreaking + 'autoresize_max_height' => '400', + 'urlconverter_callback' => '"urlconverter"', + 'filemanager_access_key' => '"' . md5($_SERVER['DOCUMENT_ROOT']) . '"', + 'tinymcehelper' => '"' . $this->getSelfActionLink() . 'renderPartial=1"' + ); + if ($blFilemanager) { + $aDefaultConfig['external_filemanager_path'] = '"../modules/bla/bla-tinymce/fileman/"'; + $aDefaultConfig['filemanager_access_key'] = '"' . md5($_SERVER['HTTP_HOST']) . '"'; + $oUS = Registry::getUtilsServer(); + $oUS->setOxCookie("filemanagerkey", md5($_SERVER['DOCUMENT_ROOT'] . $oUS->getOxCookie("admin_sid"))); + } + //merging with onfig override + $aConfig = ($aOverrideConfig = $this->_getTinyCustConfig()) ? array_merge($aDefaultConfig, $aOverrideConfig) : $aDefaultConfig; + + + // default plugins and their buttons + $aDefaultPlugins = array( + 'advlist' => '', // '' = plugin has no buttons + 'anchor' => 'anchor', + 'autolink' => '', + 'autoresize' => '', + 'charmap' => 'charmap', + 'code' => 'code', + 'colorpicker' => '', + 'hr' => 'hr', + 'image' => 'image', + 'imagetools' => '', + 'insertdatetime' => 'insertdatetime', + 'link' => 'link unlink', + 'lists' => '', + 'media' => 'media', + 'nonbreaking' => 'nonbreaking', + 'pagebreak' => 'pagebreak', + 'paste' => 'pastetext', + 'preview' => 'preview', + 'searchreplace' => 'searchreplace', + 'table' => 'table', + 'textcolor' => 'forecolor backcolor', + 'visualblocks' => '', + //'visualchars' => 'visualchars', + 'wordcount' => '', + 'oxfullscreen' => 'fullscreen', //custom fullscreen plugin + //'oxwidget' => 'widget' + //'oxgetseourl' => 'yolo' //custom seo url plugin // wip + ); + + // plugins for newsletter emails + if ($this->getActiveClassName() == "newsletter_main") { + $aDefaultPlugins["legacyoutput"] = "false"; + $aDefaultPlugins["fullpage"] = "fullpage"; + } + + // override for active plugins + $aOverridePlugins = $cfg->getConfigParam("aTinyMCE_plugins"); + $aPlugins = (empty($aOverridePlugins) || !is_array($aOverridePlugins)) ? $aDefaultPlugins : array_merge($aDefaultPlugins, $aOverridePlugins); + $aPlugins = array_filter($aPlugins, function ($value) { + return $value !== "false"; + }); + + // array keys von $aPlugins enthalten aktive plugins + $aConfig['plugins'] = '"' . implode(' ', array_keys($aPlugins)) . '"'; + + // external plugins + $aConfig['external_plugins'] = '{ "oxfullscreen":"' . $this->getModuleUrl('bla-tinymce', 'plugins/oxfullscreen/plugin.js') . '" '; + //$aConfig['external_plugins'] .= ', "oxwidget":"' . $this->getModuleUrl('bla-tinymce', 'plugins/oxwidget/plugin.js') . '" '; + if ($blFilemanager) $aConfig['external_plugins'] .= ',"roxy":"' . $this->getModuleUrl('bla-tinymce', 'plugins/roxy/plugin.js') . '" '; + //$aConfig['external_plugins'] .= ',"oxgetseourl":"' . $this->getModuleUrl('bla-tinymce', 'plugins/oxgetseourl/plugin.js') . '" '; + + if ($aExtPlugins = $this->_getTinyExtPlugins()) { + foreach ($aExtPlugins AS $plugin => $file) { + $aConfig['external_plugins'] .= ', "' . $plugin . '": "' . $file . '" '; + } + } + $aConfig['external_plugins'] .= ' }'; + + // default toolbar buttons + $aDefaultButtons = array( + "undo redo", + "cut copy paste", + "bold italic underline strikethrough", + "alignleft aligncenter alignright alignjustify", + "bullist numlist", + "outdent indent", + "blockquote", + "subscript", + "superscript", + "formatselect", + "removeformat", + "fontselect", + "fontsizeselect" + ); + $aOverrideButtons = Registry::getConfig()->getConfigParam("aTinyMCE_buttons"); + $aButtons = (empty($aOverrideButtons) || !is_array($aOverrideButtons)) ? $aDefaultButtons : $aOverrideButtons; + + // plugin buttons + $aPluginButtons = array_filter($aPlugins); + + // zusätzliche buttons + $aCustomButtons = $this->_getTinyToolbarControls(); + + $aButtons = array_merge(array_filter($aButtons), array_filter($aPluginButtons), array_filter($aCustomButtons)); + $aConfig['toolbar'] = '"' . implode(" | ", $aButtons) . '"'; + + + // compile the whole config stuff + $sConfig = ''; + foreach ($aConfig as $param => $value) { + $sConfig .= "$param: $value, "; + } + + // add init script + $sInit = 'tinymce.init({ ' . $sConfig . ' });'; + + $sCopyLongDescFromTinyMCE = 'function copyLongDescFromTinyMCE(sIdent) { + var editor = tinymce.get("editor_"+sIdent); + var content = (editor && !editor.isHidden()) ? editor.getContent() : document.getElementById("editor_"+sIdent).value; + document.getElementsByName("editval[" + sIdent + "]").item(0).value = content.replace(/\[{([^\]]*?)}\]/g, function(m) { return m.replace(/>/g, ">").replace(/</g, "<").replace(/&/g, "&") }); + return true; +} + +var origCopyLongDesc = copyLongDesc; +copyLongDesc = function(sIdent) { + if ( copyLongDescFromTinyMCE( sIdent ) ) return; + console.log("tinymce disabled, copy content from regular textarea"); + origCopyLongDesc( sIdent ); +}'; + $sUrlConverter = 'function urlconverter(url, node, on_save) { + console.log(tinyMCE.activeEditor); + if(url.indexOf("[{") == 0) return url; + return (tinyMCE.activeEditor.settings.relative_urls) ? tinyMCE.activeEditor.documentBaseURI.toRelative(url) : tinyMCE.activeEditor.documentBaseURI.toAbsolute(url); +}'; + + // adding scripts to template + $smarty = Registry::get("oxUtilsView")->getSmarty(); + $sSufix = ($smarty->_tpl_vars["__oxid_include_dynamic"]) ? '_dynamic' : ''; + + $aScript = (array)$cfg->getGlobalParameter('scripts' . $sSufix); + $aScript[] = $sCopyLongDescFromTinyMCE; + $aScript[] = $sUrlConverter; + $aScript[] = $sInit; + $cfg->setGlobalParameter('scripts' . $sSufix, $aScript); + + $aInclude = (array)$cfg->getGlobalParameter('includes' . $sSufix); + + $aExtjs = $cfg->getConfigParam('aTinyMCE_extjs'); + if (!empty($aExtjs) && is_array($aExtjs)) foreach ($aExtjs as $key => $js) $aInclude[3][] = $js; + + $aInclude[3][] = $this->getModuleUrl('bla-tinymce', 'tinymce/tinymce.min.js'); + $cfg->setGlobalParameter('includes' . $sSufix, $aInclude); + + return '
  • '; + // javascript:tinymce.execCommand(\'mceToggleEditor\',false,\'editor1\'); + } + + protected function _getTinyCustConfig() + { + $aConfig = Registry::getConfig()->getConfigParam("aTinyMCE_config"); + if (method_exists(get_parent_class(__CLASS__), __FUNCTION__)) { + $aConfig = array_merge(parent::_getTinyCustConfig(), $aConfig); + } + return $aConfig; + } + + protected function _getTinyExtPlugins() + { + $aPlugins = Registry::getConfig()->getConfigParam("aTinyMCE_external_plugins"); + if (method_exists(get_parent_class(__CLASS__), __FUNCTION__)) { + $aPlugins = array_merge(parent::_getTinyExtPlugins(), $aPlugins); + } + return $aPlugins; + } + + protected function _getTinyToolbarControls() + { + $aControls = (method_exists(get_parent_class(__CLASS__), __FUNCTION__)) ? parent::_getTinyToolbarControls() : array(); + return $aControls; + } +} diff --git a/copy_this/modules/bla/bla-tinymce/application/core/security.inc.php b/application/core/security.inc.php similarity index 100% rename from copy_this/modules/bla/bla-tinymce/application/core/security.inc.php rename to application/core/security.inc.php diff --git a/application/views/admin/cs/module_options.php b/application/views/admin/cs/module_options.php new file mode 100755 index 0000000..1ad8c4c --- /dev/null +++ b/application/views/admin/cs/module_options.php @@ -0,0 +1,2 @@ + - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - {one line to give the program's name and a brief idea of what it does.} - Copyright (C) {year} {name of author} - - 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 3 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, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - {project} Copyright (C) {year} {fullname} - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. - diff --git a/copy_this/modules/bla/bla-tinymce/README.md b/copy_this/modules/bla/bla-tinymce/README.md deleted file mode 100755 index 794d024..0000000 --- a/copy_this/modules/bla/bla-tinymce/README.md +++ /dev/null @@ -1,65 +0,0 @@ -## TinyMCE Editor for OXID eShop CE -by Marat Bedoev, bestlife AG -https://github.com/vanilla-thunder/bla-tinymce -### module version 2.1.1 ( 2017-10-02 ) - -TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL. -More information here: http://www.tinymce.com/ -and here: https://github.com/tinymce - -# bitte entfernen Sie vollständig das alte bla-TinyMCE Modul, bevor Sie das neue hochladen! - * Modul im Backend deaktivieren - * modules/bla/bla-tinymce löschen - * tmp/ leeren - -# please completely remove the older module version before update! - * deactivate module in backend - * remove modules/bla/bla-tinymce - * clear tmp/ - -## more info here: [https://marat.ws/bla-tinymce/](http:/marat.ws/bla-tinymce/) - -### changelog -- **2017-10-02 :: version 2.1.1** - - rollback to TinyMCE 4.6.6, because of issues with filemanager -- **2017-09-25 :: version 2.1.0** - - TinyMCE 4.6.7 - - increased maximum image size for upload via filemanager -- **2017-06-20 :: version 2.0.3** - - TinyMCE 4.6.4 -- **2017-01-11 :: version 2.0.2** - - TinyMCE 4.5.2 - - fullscreen editing plugin -- **2016-09-07 :: version 2.0.1** - - TinyMCE 4.4.3 - - link url conversion fixed. TinyMCE accepts smarty tags/variables as URL wirhout convertig them to absolute URL. -- **2016-09-07 :: version 2.0.0** - - TinyMCE 4.4.1 - - eingebauter Filemanager "Roxy Fileman" -- **2015-07-29 :: version 1.5.0** - - TinyMCE 4.2.2 -- **2015-05-06 :: version 1.4.0** - - TinyMCE 4.1.10 - - fix: data-mce attributes removed from html output -- **2014-09-04 :: version 1.3.1** - - TinyMCE v4.1.4 - - fix: fullpage Plugin für Newsletter hinzugefügt -- **2014-08-20 :: version 1.3.0** - - TinyMCE v4.1.3 - - feature: Support für eigene Text-Felder hinzugefügt -- **2014-04-23 :: version 1.2.2** - - TinyMCE 4.0.10 - - fix: iframes werden nicht mehr ersetzt - -### LICENSE AGREEMENT - bla-tinymce - Copyright (C) 2017 bestlife AG - info: oxid@bestlife.ag - - 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 3 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, see diff --git a/copy_this/modules/bla/bla-tinymce/application/core/blatinymceoxviewconfig.php b/copy_this/modules/bla/bla-tinymce/application/core/blatinymceoxviewconfig.php deleted file mode 100755 index 8106210..0000000 --- a/copy_this/modules/bla/bla-tinymce/application/core/blatinymceoxviewconfig.php +++ /dev/null @@ -1,246 +0,0 @@ - - * - * Marat Bedoev - */ - -class blaTinyMceOxViewConfig extends blaTinyMceOxViewConfig_parent -{ - public function loadTinyMce() - { - $cfg = oxRegistry::getConfig(); - $blEnabled = in_array($this->getActiveClassName(), $cfg->getConfigParam("aTinyMCE_classes")); - $blPlainCms = in_array($cfg->getActiveView()->getViewDataElement("edit")->oxcontents__oxloadid->value, $cfg->getConfigParam("aTinyMCE_plaincms")); - $blFilemanager = $cfg->getConfigParam("blTinyMCE_filemanager"); - - if (!$blEnabled) return false; - if ($blPlainCms) return oxRegistry::getLang()->translateString("BLA_TINYMCE_PLAINCMS"); - - // processing editor config & other stuff - $sLang = oxRegistry::getLang()->getLanguageAbbr(oxRegistry::getLang()->getTplLanguage()); - // array to assign shops lang abbreviations to lang file names of tinymce: shopLangAbbreviation => fileName (without .js ) - $aLang = array( - "cs" => "cs", - "da" => "da", - "de" => "de", - "fr" => "fr_FR", - "it" => "it", - "nl" => "nl", - "ru" => "ru" - ); - - // default config - $aDefaultConfig = array( - 'force_br_newlines' => 'false', - 'force_p_newlines' => 'false', - 'forced_root_block' => '""', - 'selector' => '"textarea:not(.mceNoEditor)"', - 'language' => '"' . ( in_array($sLang, $aLang) ? $aLang[$sLang] : 'en' ) . '"', - //'spellchecker_language' => '"' . (in_array($sLang, $aLang) ? $aLang[$sLang] : 'en') . '"', - 'nowrap' => 'false', - 'entity_encoding' => '"raw"', // http://www.tinymce.com/wiki.php/Configuration:entity_encoding - 'height' => 300, - 'menubar' => 'false', - 'document_base_url' => '"' . $this->getBaseDir() . '"', // http://www.tinymce.com/wiki.php/Configuration:document_base_url - 'relative_urls' => 'false', // http://www.tinymce.com/wiki.php/Configuration:relative_urls - 'plugin_preview_width' => 'window.innerWidth', - 'plugin_preview_height' => 'window.innerHeight-90', - 'code_dialog_width' => 'window.innerWidth-50', - 'code_dialog_height' => 'window.innerHeight-130', - 'image_advtab' => 'true', - 'imagetools_toolbar' => '"rotateleft rotateright | flipv fliph | editimage imageoptions"', - 'moxiemanager_fullscreen' => 'true', - 'insertdatetime_formats' => '[ "%d.%m.%Y", "%H:%M" ]', - 'nonbreaking_force_tab' => 'true', // http://www.tinymce.com/wiki.php/Plugin:nonbreaking - 'autoresize_max_height' => '400', - 'urlconverter_callback' => '"urlconverter"', - 'filemanager_access_key' => '"' . md5($_SERVER['DOCUMENT_ROOT']) . '"', - 'tinymcehelper' => '"' . $this->getSelfActionLink() . 'renderPartial=1"' - ); - if ($blFilemanager) { - $aDefaultConfig['external_filemanager_path'] = '"../modules/bla/bla-tinymce/fileman/"'; - $aDefaultConfig['filemanager_access_key'] = '"' . md5($_SERVER['HTTP_HOST']) . '"'; - $oUS = oxRegistry::get("oxUtilsServer"); - $oUS->setOxCookie("filemanagerkey", md5($_SERVER['DOCUMENT_ROOT'] . $oUS->getOxCookie("admin_sid"))); - } - //merging with onfig override - $aConfig = ( $aOverrideConfig = $this->_getTinyCustConfig() ) ? array_merge($aDefaultConfig, $aOverrideConfig) : $aDefaultConfig; - - - // default plugins and their buttons - $aDefaultPlugins = array( - 'advlist' => '', // '' = plugin has no buttons - 'anchor' => 'anchor', - 'autolink' => '', - 'autoresize' => '', - 'charmap' => 'charmap', - 'code' => 'code', - 'colorpicker' => '', - 'hr' => 'hr', - 'image' => 'image', - 'imagetools' => '', - 'insertdatetime' => 'insertdatetime', - 'link' => 'link unlink', - 'lists' => '', - 'media' => 'media', - 'nonbreaking' => 'nonbreaking', - 'pagebreak' => 'pagebreak', - 'paste' => 'pastetext', - 'preview' => 'preview', - 'searchreplace' => 'searchreplace', - 'table' => 'table', - 'textcolor' => 'forecolor backcolor', - 'visualblocks' => '', - //'visualchars' => 'visualchars', - 'wordcount' => '', - 'oxfullscreen' => 'fullscreen', //custom fullscreen plugin - //'oxwidget' => 'widget' - //'oxgetseourl' => 'yolo' //custom seo url plugin // wip - ); - - // plugins for newsletter emails - if ($this->getActiveClassName() == "newsletter_main") { - $aDefaultPlugins["legacyoutput"] = "false"; - $aDefaultPlugins["fullpage"] = "fullpage"; - } - - // override for active plugins - $aOverridePlugins = $cfg->getConfigParam("aTinyMCE_plugins"); - $aPlugins = ( empty( $aOverridePlugins ) || !is_array($aOverridePlugins) ) ? $aDefaultPlugins : array_merge($aDefaultPlugins, $aOverridePlugins); - $aPlugins = array_filter($aPlugins, function ( $value ) { - return $value !== "false"; - }); - - // array keys von $aPlugins enthalten aktive plugins - $aConfig['plugins'] = '"' . implode(' ', array_keys($aPlugins)) . '"'; - - // external plugins - $aConfig['external_plugins'] = '{ "oxfullscreen":"' . $this->getModuleUrl('bla-tinymce', 'plugins/oxfullscreen/plugin.js') . '" '; - //$aConfig['external_plugins'] .= ', "oxwidget":"' . $this->getModuleUrl('bla-tinymce', 'plugins/oxwidget/plugin.js') . '" '; - if ($blFilemanager) $aConfig['external_plugins'] .= ',"roxy":"' . $this->getModuleUrl('bla-tinymce', 'plugins/roxy/plugin.js') . '" '; - //$aConfig['external_plugins'] .= ',"oxgetseourl":"' . $this->getModuleUrl('bla-tinymce', 'plugins/oxgetseourl/plugin.js') . '" '; - - if ($aExtPlugins = $this->_getTinyExtPlugins()) { - foreach ($aExtPlugins AS $plugin => $file) { - $aConfig['external_plugins'] .= ', "' . $plugin . '": "' . $file . '" '; - } - } - $aConfig['external_plugins'] .= ' }'; - - // default toolbar buttons - $aDefaultButtons = array( - "undo redo", - "cut copy paste", - "bold italic underline strikethrough", - "alignleft aligncenter alignright alignjustify", - "bullist numlist", - "outdent indent", - "blockquote", - "subscript", - "superscript", - "formatselect", - "removeformat", - "fontselect", - "fontsizeselect" - ); - $aOverrideButtons = oxRegistry::getConfig()->getConfigParam("aTinyMCE_buttons"); - $aButtons = ( empty( $aOverrideButtons ) || !is_array($aOverrideButtons) ) ? $aDefaultButtons : $aOverrideButtons; - - // plugin buttons - $aPluginButtons = array_filter($aPlugins); - - // zusätzliche buttons - $aCustomButtons = $this->_getTinyToolbarControls(); - - $aButtons = array_merge(array_filter($aButtons), array_filter($aPluginButtons), array_filter($aCustomButtons)); - $aConfig['toolbar'] = '"' . implode(" | ", $aButtons) . '"'; - - - // compile the whole config stuff - $sConfig = ''; - foreach ($aConfig AS $param => $value) { - $sConfig .= "$param: $value, "; - } - - // add init script - $sInit = 'tinymce.init({ ' . $sConfig . ' });'; - - $sCopyLongDescFromTinyMCE = 'function copyLongDescFromTinyMCE(sIdent) { - var editor = tinymce.get("editor_"+sIdent); - var content = (editor && !editor.isHidden()) ? editor.getContent() : document.getElementById("editor_"+sIdent).value; - document.getElementsByName("editval[" + sIdent + "]").item(0).value = content.replace(/\[{([^\]]*?)}\]/g, function(m) { return m.replace(/>/g, ">").replace(/</g, "<").replace(/&/g, "&") }); - return true; -} - -var origCopyLongDesc = copyLongDesc; -copyLongDesc = function(sIdent) { - if ( copyLongDescFromTinyMCE( sIdent ) ) return; - console.log("tinymce disabled, copy content from regular textarea"); - origCopyLongDesc( sIdent ); -}'; - $sUrlConverter = 'function urlconverter(url, node, on_save) { - console.log(tinyMCE.activeEditor); - if(url.indexOf("[{") == 0) return url; - return (tinyMCE.activeEditor.settings.relative_urls) ? tinyMCE.activeEditor.documentBaseURI.toRelative(url) : tinyMCE.activeEditor.documentBaseURI.toAbsolute(url); -}'; - - // adding scripts to template - $smarty = oxRegistry::get("oxUtilsView")->getSmarty(); - $sSufix = ( $smarty->_tpl_vars["__oxid_include_dynamic"] ) ? '_dynamic' : ''; - - $aScript = (array)$cfg->getGlobalParameter('scripts' . $sSufix); - $aScript[] = $sCopyLongDescFromTinyMCE; - $aScript[] = $sUrlConverter; - $aScript[] = $sInit; - $cfg->setGlobalParameter('scripts' . $sSufix, $aScript); - - $aInclude = (array)$cfg->getGlobalParameter('includes' . $sSufix); - - $aExtjs = $cfg->getConfigParam('aTinyMCE_extjs'); - if (!empty( $aExtjs ) && is_array($aExtjs)) foreach ($aExtjs as $key => $js) $aInclude[3][] = $js; - - $aInclude[3][] = $this->getModuleUrl('bla-tinymce', 'tinymce/tinymce.min.js'); - $cfg->setGlobalParameter('includes' . $sSufix, $aInclude); - - return '
  • '; - // javascript:tinymce.execCommand(\'mceToggleEditor\',false,\'editor1\'); - } - - protected function _getTinyToolbarControls() - { - $aControls = ( method_exists(get_parent_class(__CLASS__), __FUNCTION__) ) ? parent::_getTinyToolbarControls() : array(); - return $aControls; - } - - protected function _getTinyExtPlugins() - { - $aPlugins = oxRegistry::getConfig()->getConfigParam("aTinyMCE_external_plugins"); - if (method_exists(get_parent_class(__CLASS__), __FUNCTION__)) { - $aPlugins = array_merge(parent::_getTinyExtPlugins(), $aPlugins); - } - return $aPlugins; - } - - protected function _getTinyCustConfig() - { - $aConfig = oxRegistry::getConfig()->getConfigParam("aTinyMCE_config"); - if (method_exists(get_parent_class(__CLASS__), __FUNCTION__)) { - $aConfig = array_merge(parent::_getTinyCustConfig(), $aConfig); - } - return $aConfig; - } -} diff --git a/copy_this/modules/bla/bla-tinymce/application/views/admin/cs/module_options.php b/copy_this/modules/bla/bla-tinymce/application/views/admin/cs/module_options.php deleted file mode 100755 index df5140d..0000000 --- a/copy_this/modules/bla/bla-tinymce/application/views/admin/cs/module_options.php +++ /dev/null @@ -1,2 +0,0 @@ -. - - Contact: Lyubomir Arsov, liubo (at) web-lobby.com -*/ -body{ - font-family: Verdana; - font-size: 11px; - padding:0; - margin:0; - background:#FFF; - height:100%; - width:100%; -} -a{text-decoration:none;color:#DD7700;} -ul{ - list-style:none; - margin:0; - padding:0; -} -#wraper{ - width:100%; - height:100%; -} -#wraper,#dlgNewDir,#dlgFileProp,#dlgAddFile,#menuDir, -#menuFile,#pnlRenameFile,#pnlLoadingDirs, -#pnlDirName,#pnlLoading,#pnlEmptyDir, -#pnlSearchNoFiles,#pnlFileProp, #pnlDirList ul{ - display:none; -} -.contextMenu a:hover, -#pnlFileList .selected,#pnlFileList .selected:hover, -#menuFile a:hover{ - background-color: #000099 !important; - color:#FFF; -} -#pnlDirList .selected,#pnlDirList div.selected:hover{background-color: #DFD !important;} -.dialog input{width:97%;} -.filesize{font-weight:bold;margin-top:4px;display:inline-block;} -.pnlDragFile,.pnlDragDir{ - background:#FFF; - opacity:0.8; - float:left; - width:auto !important; -} -#pnlStatus{ - padding:5px; -} -.scrollPane{ - height:400px; - overflow: auto; -} -.bottomLine{background:#DDD;border-top:1px solid #CCC;} -.pale{opacity:0.5;} -/* Search and order fields */ -#txtSearch,#ddlOrder{ - border:1px solid #CCC; - border-radius:3px; -} -#txtSearch{ - padding:0 22px 0 3px; - background:url(../images/sprite.png) no-repeat 87px -314px; - width:80px; - height:20px; -} -input[type=text]::-ms-clear { display: none; } -/* END OF Search and order fields */ - -/* Directory tree */ -.pnlDirs{ - width:260px; - overflow:auto; - border-right:1px solid #DDD; -} -#pnlDirList{margin-left:4px;} -#pnlDirList ul{padding:0 0 0 20px;} -#pnlDirList .dir{ - line-height:30px; - float:left; - margin-right:5px; -} -#pnlDirList .dirPlus{ - float:left; - margin: 3px 3px 0 0; -} -#pnlDirList li,#pnlDirList div{ - float:left; - clear:both; - width:98%; -} -#pnlDirList div{padding:3px;cursor:pointer;} -#pnlLoadingDirs{margin-left:5px;} -/* END OF Directory tree */ - -/* File list */ -.pnlFiles{padding-left:4px;} -#pnlFileList .icon{float:left;margin-right:3px;} -#pnlFileList li{float:left;padding:3px;clear:both;width:98%;cursor:pointer;} -#pnlFileList li:hover,#pnlDirList li div:hover{background:#FFFFCC !important;} -#pnlFileList .size{float:right;margin-left:20px;} -#pnlFileList .time{float:right;margin-left:15px;width:130px;} -.imgPreview{max-width:300px;} -/* END OF File list */ - -/* Context menus */ -.contextMenu{ - position:absolute; - background-color:#DDD; - border:1px solid #BBB; - min-width:100px; - font-weight: bold; - z-index:1000 !important; -} -.contextMenu a{ - background-repeat:no-repeat; - background-position: 4px 6px; - padding: 5px 25px 5px 20px; - display:block; - color:#000; - text-decoration:none; -} -hr{margin:0;color:#AAA;} -/* END OF Context menus */ - -/* Buttons */ -.actions{padding:3px 0 10px 5px;} -.actions input{ - background-repeat:no-repeat; - background-position: 3px center; - padding:0 3px 0 18px; - height:22px; - font-size: 11px; - border:1px solid #CCC; - background-color: #EEE; - border-radius:3px; - margin-bottom: 3px; -} -.actions input[type=button]:hover,.actions input.selected{background-color: #DFD;cursor:pointer;} -#btnAddDir{background-image:url(../images/sprite.png);background-position: 4px -213px;} -#mnuCreateDir{background-image:url(../images/sprite.png);background-position: 4px -210px;} -#mnuDownloadDir{background-image:url(../images/sprite.png);background-position: 4px 7px;} -#btnDeleteDir{background-image:url(../images/sprite.png);background-position: 4px -237px;} -#mnuDeleteDir{background-image:url(../images/sprite.png);background-position: 4px -235px;} -#btnAddFile{background-image:url(../images/sprite.png);background-position: 4px -81px;} -#btnDeleteFile{background-image:url(../images/sprite.png);background-position: 4px -104px;} -#mnuDeleteFile{background-image:url(../images/sprite.png);background-position: 4px -102px;} -#btnDeleteFile{margin-right:15px;} -#btnDownloadFile{background-image:url(../images/sprite.png);background-position: 4px -128px;} -#mnuDownload{background-image:url(../images/sprite.png);background-position: 4px -126px;} -#btnPreviewFile{background-image:url(../images/sprite.png);background-position: 4px -285px;} -#mnuPreview{background-image:url(../images/sprite.png);background-position: 4px -283px;} -#btnSelectFile{background-image:url(../images/sprite.png);background-position: 4px -399px;} -#mnuSelectFile{background-image:url(../images/sprite.png);background-position: 4px -397px;} -#btnThumbView{background-image:url(../images/sprite.png);background-position: center -447px;} -#btnListView{background-image:url(../images/sprite.png);background-position: center -483px;} -#btnRenameFile,#btnRenameDir{background-image:url(../images/sprite.png);background-position: 4px 4px;} -#mnuRenameDir,#mnuRenameFile{background-image:url(../images/sprite.png);background-position: 4px 7px;} -#mnuDirCut,#mnuFileCut{background-image:url(../images/sprite.png);background-position: 4px -47px;} -#mnuDirCopy,#mnuFileCopy{background-image:url(../images/sprite.png);background-position: 4px -20px;} -#mnuDirPaste,#mnuFilePaste{background-image:url(../images/sprite.png);background-position: 4px -370px;} - -/* END OF Buttons */ -/* File list views */ -ul#pnlFileList.thumbView li{ - /* - width:140px; - height: 140px; - */ - float:left !important; - clear:none; - margin:0 6px 6px 0; - overflow:hidden; - padding:10px; - text-align:center; - vertical-align:middle; - border: 1px solid #EEE; - border-radius: 5px; - position:relative; - background:#EEE; -} -ul#pnlFileList.thumbView .name,ul#pnlFileList.thumbView .time{display:none;} -ul#pnlFileList.thumbView .icon{ - clear:both; - float:none; - margin:0 !important; - text-align:center; - vertical-align:middle; - background-position:center center; - background-repeat:no-repeat; - /* - width:140px; - height:120px; - */ -} -ul#pnlFileList.thumbView .size{ - display:block !important; - width:95% !important; - position:absolute; - bottom:5px; - margin:0; -} -/* END OF File list views */ -#fileUploads{width:100%;} -.uploadFilesList{ - width:100%; - height:300px; - overflow:auto; -} -#uploadResult{ - -} -div.ui-tooltip { - max-width: 90%; -} -/* Upload dialog */ -.uploadFilesList{ - font-size: 11px; -} -.fileUpload{ - margin: 8px 0 0 0; - position: relative; - border:1px solid #EEE; -} -.fileUpload .error{font-weight:bold;} -.fileName{ - z-index:2; - line-height: 20px; - height:20px; - overflow: hidden; - padding:0 13px 0 5px; -} -.progressPercent{z-index:2;} -.stripes{ - background: url('../images/stripes.gif') repeat-x; - -moz-opacity: 0.40; - -khtml-opacity: 0.40; - opacity: 0.40; - -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40); - filter: progid:DXImageTransform.Microsoft.Alpha(opacity=40); - filter: alpha(opacity=40); - width:100%; - height:100%; - z-index:-1; - position: relative; -} -.uploadProgress{ - position: absolute; - width:0; - height:100%; - top:0; - left:0; - z-index:-1; - background: #d3edff; - background: -moz-linear-gradient(top, #d3edff 0%, #cbebff 47%, #a1dbff 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d3edff), color-stop(47%,#cbebff), color-stop(100%,#a1dbff)); - background: -webkit-linear-gradient(top, #d3edff 0%,#cbebff 47%,#a1dbff 100%); - background: -o-linear-gradient(top, #d3edff 0%,#cbebff 47%,#a1dbff 100%); - background: -ms-linear-gradient(top, #d3edff 0%,#cbebff 47%,#a1dbff 100%); - background: linear-gradient(to bottom, #d3edff 0%,#cbebff 47%,#a1dbff 100%); - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d3edff', endColorstr='#a1dbff',GradientType=0 ); -} -.uploadError{ - background: #ff8787; - background: -moz-linear-gradient(top, #ff8787 0%, #ffa3a3 45%, #ff5e5e 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8787), color-stop(45%,#ffa3a3), color-stop(100%,#ff5e5e)); - background: -webkit-linear-gradient(top, #ff8787 0%,#ffa3a3 45%,#ff5e5e 100%); - background: -o-linear-gradient(top, #ff8787 0%,#ffa3a3 45%,#ff5e5e 100%); - background: -ms-linear-gradient(top, #ff8787 0%,#ffa3a3 45%,#ff5e5e 100%); - background: linear-gradient(to bottom, #ff8787 0%,#ffa3a3 45%,#ff5e5e 100%); - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8787', endColorstr='#ff5e5e',GradientType=0 ); -} -.uploadComplete{ - background: #dbff87; - background: -moz-linear-gradient(top, #dbff87 0%, #e0f49c 45%, #bddd49 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dbff87), color-stop(45%,#e0f49c), color-stop(100%,#bddd49)); - background: -webkit-linear-gradient(top, #dbff87 0%,#e0f49c 45%,#bddd49 100%); - background: -o-linear-gradient(top, #dbff87 0%,#e0f49c 45%,#bddd49 100%); - background: -ms-linear-gradient(top, #dbff87 0%,#e0f49c 45%,#bddd49 100%); - background: linear-gradient(to bottom, #dbff87 0%,#e0f49c 45%,#bddd49 100%); - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dbff87', endColorstr='#bddd49',GradientType=0 ); -} -.uploadError .stripes,.uploadComplete .stripes{display:none;} -.removeUpload{ - background:url(../images/sprite.png) no-repeat 6px -421px; - position:absolute; - right:0; - top:0; - height: 100%; - width:20px; - cursor:pointer; -} +/* + RoxyFileman - web based file manager. Ready to use with CKEditor, TinyMCE. + Can be easily integrated with any other WYSIWYG editor or CMS. + + Copyright (C) 2013, RoxyFileman.com - Lyubomir Arsov. All rights reserved. + For licensing, see LICENSE.txt or http://RoxyFileman.com/license + + 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 3 of the License. + + 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, see . + + Contact: Lyubomir Arsov, liubo (at) web-lobby.com +*/ +body{ + font-family: Verdana; + font-size: 11px; + padding:0; + margin:0; + background:#FFF; + height:100%; + width:100%; +} +a{text-decoration:none;color:#DD7700;} +ul{ + list-style:none; + margin:0; + padding:0; +} +#wraper{ + width:100%; + height:100%; +} +#wraper,#dlgNewDir,#dlgFileProp,#dlgAddFile,#menuDir, +#menuFile,#pnlRenameFile,#pnlLoadingDirs, +#pnlDirName,#pnlLoading,#pnlEmptyDir, +#pnlSearchNoFiles,#pnlFileProp, #pnlDirList ul{ + display:none; +} +.contextMenu a:hover, +#pnlFileList .selected,#pnlFileList .selected:hover, +#menuFile a:hover{ + background-color: #000099 !important; + color:#FFF; +} +#pnlDirList .selected,#pnlDirList div.selected:hover{background-color: #DFD !important;} +.dialog input{width:97%;} +.filesize{font-weight:bold;margin-top:4px;display:inline-block;} +.pnlDragFile,.pnlDragDir{ + background:#FFF; + opacity:0.8; + float:left; + width:auto !important; +} +#pnlStatus{ + padding:5px; +} +.scrollPane{ + height:400px; + overflow: auto; +} +.bottomLine{background:#DDD;border-top:1px solid #CCC;} +.pale{opacity:0.5;} +/* Search and order fields */ +#txtSearch,#ddlOrder{ + border:1px solid #CCC; + border-radius:3px; +} +#txtSearch{ + padding:0 22px 0 3px; + background:url(../images/sprite.png) no-repeat 87px -314px; + width:80px; + height:20px; +} +input[type=text]::-ms-clear { display: none; } +/* END OF Search and order fields */ + +/* Directory tree */ +.pnlDirs{ + width:260px; + overflow:auto; + border-right:1px solid #DDD; +} +#pnlDirList{margin-left:4px;} +#pnlDirList ul{padding:0 0 0 20px;} +#pnlDirList .dir{ + line-height:30px; + float:left; + margin-right:5px; +} +#pnlDirList .dirPlus{ + float:left; + margin: 3px 3px 0 0; +} +#pnlDirList li,#pnlDirList div{ + float:left; + clear:both; + width:98%; +} +#pnlDirList div{padding:3px;cursor:pointer;} +#pnlLoadingDirs{margin-left:5px;} +/* END OF Directory tree */ + +/* File list */ +.pnlFiles{padding-left:4px;} +#pnlFileList .icon{float:left;margin-right:3px;} +#pnlFileList li{float:left;padding:3px;clear:both;width:98%;cursor:pointer;} +#pnlFileList li:hover,#pnlDirList li div:hover{background:#FFFFCC !important;} +#pnlFileList .size{float:right;margin-left:20px;} +#pnlFileList .time{float:right;margin-left:15px;width:130px;} +.imgPreview{max-width:300px;} +/* END OF File list */ + +/* Context menus */ +.contextMenu{ + position:absolute; + background-color:#DDD; + border:1px solid #BBB; + min-width:100px; + font-weight: bold; + z-index:1000 !important; +} +.contextMenu a{ + background-repeat:no-repeat; + background-position: 4px 6px; + padding: 5px 25px 5px 20px; + display:block; + color:#000; + text-decoration:none; +} +hr{margin:0;color:#AAA;} +/* END OF Context menus */ + +/* Buttons */ +.actions{padding:3px 0 10px 5px;} +.actions input{ + background-repeat:no-repeat; + background-position: 3px center; + padding:0 3px 0 18px; + height:22px; + font-size: 11px; + border:1px solid #CCC; + background-color: #EEE; + border-radius:3px; + margin-bottom: 3px; +} +.actions input[type=button]:hover,.actions input.selected{background-color: #DFD;cursor:pointer;} +#btnAddDir{background-image:url(../images/sprite.png);background-position: 4px -213px;} +#mnuCreateDir{background-image:url(../images/sprite.png);background-position: 4px -210px;} +#mnuDownloadDir{background-image:url(../images/sprite.png);background-position: 4px 7px;} +#btnDeleteDir{background-image:url(../images/sprite.png);background-position: 4px -237px;} +#mnuDeleteDir{background-image:url(../images/sprite.png);background-position: 4px -235px;} +#btnAddFile{background-image:url(../images/sprite.png);background-position: 4px -81px;} +#btnDeleteFile{background-image:url(../images/sprite.png);background-position: 4px -104px;} +#mnuDeleteFile{background-image:url(../images/sprite.png);background-position: 4px -102px;} +#btnDeleteFile{margin-right:15px;} +#btnDownloadFile{background-image:url(../images/sprite.png);background-position: 4px -128px;} +#mnuDownload{background-image:url(../images/sprite.png);background-position: 4px -126px;} +#btnPreviewFile{background-image:url(../images/sprite.png);background-position: 4px -285px;} +#mnuPreview{background-image:url(../images/sprite.png);background-position: 4px -283px;} +#btnSelectFile{background-image:url(../images/sprite.png);background-position: 4px -399px;} +#mnuSelectFile{background-image:url(../images/sprite.png);background-position: 4px -397px;} +#btnThumbView{background-image:url(../images/sprite.png);background-position: center -447px;} +#btnListView{background-image:url(../images/sprite.png);background-position: center -483px;} +#btnRenameFile,#btnRenameDir{background-image:url(../images/sprite.png);background-position: 4px 4px;} +#mnuRenameDir,#mnuRenameFile{background-image:url(../images/sprite.png);background-position: 4px 7px;} +#mnuDirCut,#mnuFileCut{background-image:url(../images/sprite.png);background-position: 4px -47px;} +#mnuDirCopy,#mnuFileCopy{background-image:url(../images/sprite.png);background-position: 4px -20px;} +#mnuDirPaste,#mnuFilePaste{background-image:url(../images/sprite.png);background-position: 4px -370px;} + +/* END OF Buttons */ +/* File list views */ +ul#pnlFileList.thumbView li{ + /* + width:140px; + height: 140px; + */ + float:left !important; + clear:none; + margin:0 6px 6px 0; + overflow:hidden; + padding:10px; + text-align:center; + vertical-align:middle; + border: 1px solid #EEE; + border-radius: 5px; + position:relative; + background:#EEE; +} +ul#pnlFileList.thumbView .name,ul#pnlFileList.thumbView .time{display:none;} +ul#pnlFileList.thumbView .icon{ + clear:both; + float:none; + margin:0 !important; + text-align:center; + vertical-align:middle; + background-position:center center; + background-repeat:no-repeat; + /* + width:140px; + height:120px; + */ +} +ul#pnlFileList.thumbView .size{ + display:block !important; + width:95% !important; + position:absolute; + bottom:5px; + margin:0; +} +/* END OF File list views */ +#fileUploads{width:100%;} +.uploadFilesList{ + width:100%; + height:300px; + overflow:auto; +} +#uploadResult{ + +} +div.ui-tooltip { + max-width: 90%; +} +/* Upload dialog */ +.uploadFilesList{ + font-size: 11px; +} +.fileUpload{ + margin: 8px 0 0 0; + position: relative; + border:1px solid #EEE; +} +.fileUpload .error{font-weight:bold;} +.fileName{ + z-index:2; + line-height: 20px; + height:20px; + overflow: hidden; + padding:0 13px 0 5px; +} +.progressPercent{z-index:2;} +.stripes{ + background: url('../images/stripes.gif') repeat-x; + -moz-opacity: 0.40; + -khtml-opacity: 0.40; + opacity: 0.40; + -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40); + filter: progid:DXImageTransform.Microsoft.Alpha(opacity=40); + filter: alpha(opacity=40); + width:100%; + height:100%; + z-index:-1; + position: relative; +} +.uploadProgress{ + position: absolute; + width:0; + height:100%; + top:0; + left:0; + z-index:-1; + background: #d3edff; + background: -moz-linear-gradient(top, #d3edff 0%, #cbebff 47%, #a1dbff 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d3edff), color-stop(47%,#cbebff), color-stop(100%,#a1dbff)); + background: -webkit-linear-gradient(top, #d3edff 0%,#cbebff 47%,#a1dbff 100%); + background: -o-linear-gradient(top, #d3edff 0%,#cbebff 47%,#a1dbff 100%); + background: -ms-linear-gradient(top, #d3edff 0%,#cbebff 47%,#a1dbff 100%); + background: linear-gradient(to bottom, #d3edff 0%,#cbebff 47%,#a1dbff 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d3edff', endColorstr='#a1dbff',GradientType=0 ); +} +.uploadError{ + background: #ff8787; + background: -moz-linear-gradient(top, #ff8787 0%, #ffa3a3 45%, #ff5e5e 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8787), color-stop(45%,#ffa3a3), color-stop(100%,#ff5e5e)); + background: -webkit-linear-gradient(top, #ff8787 0%,#ffa3a3 45%,#ff5e5e 100%); + background: -o-linear-gradient(top, #ff8787 0%,#ffa3a3 45%,#ff5e5e 100%); + background: -ms-linear-gradient(top, #ff8787 0%,#ffa3a3 45%,#ff5e5e 100%); + background: linear-gradient(to bottom, #ff8787 0%,#ffa3a3 45%,#ff5e5e 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8787', endColorstr='#ff5e5e',GradientType=0 ); +} +.uploadComplete{ + background: #dbff87; + background: -moz-linear-gradient(top, #dbff87 0%, #e0f49c 45%, #bddd49 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dbff87), color-stop(45%,#e0f49c), color-stop(100%,#bddd49)); + background: -webkit-linear-gradient(top, #dbff87 0%,#e0f49c 45%,#bddd49 100%); + background: -o-linear-gradient(top, #dbff87 0%,#e0f49c 45%,#bddd49 100%); + background: -ms-linear-gradient(top, #dbff87 0%,#e0f49c 45%,#bddd49 100%); + background: linear-gradient(to bottom, #dbff87 0%,#e0f49c 45%,#bddd49 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dbff87', endColorstr='#bddd49',GradientType=0 ); +} +.uploadError .stripes,.uploadComplete .stripes{display:none;} +.removeUpload{ + background:url(../images/sprite.png) no-repeat 6px -421px; + position:absolute; + right:0; + top:0; + height: 100%; + width:20px; + cursor:pointer; +} /* END OF Upload dialog */ \ No newline at end of file diff --git a/copy_this/modules/bla/bla-tinymce/fileman/css/main.min.css b/fileman/css/main.min.css similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/css/main.min.css rename to fileman/css/main.min.css diff --git a/copy_this/modules/bla/bla-tinymce/fileman/dev.html b/fileman/dev.html similarity index 98% rename from copy_this/modules/bla/bla-tinymce/fileman/dev.html rename to fileman/dev.html index 7239b61..6dc6cdd 100644 --- a/copy_this/modules/bla/bla-tinymce/fileman/dev.html +++ b/fileman/dev.html @@ -1,153 +1,153 @@ - - - - - -Roxy file manager - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    -
    - Loading directories...
    - -
    -
    -
      -
      -
      - - -
      - - - - - - -
      - Order by: -    - -    - -
      -
      -
      -
      - Loading files...
      - -
      -
      - This folder is empty -
      -
      - No files found -
      -
        -
        -
        -
        -    © 2013 - RoxyFileman - -
        Status bar
        -
        - - - -
        -
        - -

        - -
        -
        -
        -
        -
        -
        -
        - - -
        -
        - -
        -
        -
        - -
        - - - + + + + + +Roxy file manager + + + + + + + + + + + + + + + + + + + + + + + +
        +
        + + + +
        +
        + Loading directories...
        + +
        +
        +
          +
          +
          + + +
          + + + + + + +
          + Order by: +    + +    + +
          +
          +
          +
          + Loading files...
          + +
          +
          + This folder is empty +
          +
          + No files found +
          +
            +
            +
            +
            +    © 2013 - RoxyFileman + +
            Status bar
            +
            + + + +
            +
            + +

            + +
            +
            +
            +
            +
            +
            +
            + + +
            +
            + +
            +
            +
            + +
            + + + diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/action-folder-paste.png b/fileman/images/action-folder-paste.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/action-folder-paste.png rename to fileman/images/action-folder-paste.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/action-folder-rename.png b/fileman/images/action-folder-rename.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/action-folder-rename.png rename to fileman/images/action-folder-rename.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/arrow_down.png b/fileman/images/arrow_down.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/arrow_down.png rename to fileman/images/arrow_down.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/arrow_up.png b/fileman/images/arrow_up.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/arrow_up.png rename to fileman/images/arrow_up.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/blank.gif b/fileman/images/blank.gif similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/blank.gif rename to fileman/images/blank.gif diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/copy.png b/fileman/images/copy.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/copy.png rename to fileman/images/copy.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/cut.png b/fileman/images/cut.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/cut.png rename to fileman/images/cut.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/dir-minus.png b/fileman/images/dir-minus.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/dir-minus.png rename to fileman/images/dir-minus.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/dir-plus.png b/fileman/images/dir-plus.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/dir-plus.png rename to fileman/images/dir-plus.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/file-add.png b/fileman/images/file-add.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/file-add.png rename to fileman/images/file-add.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/file-delete.png b/fileman/images/file-delete.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/file-delete.png rename to fileman/images/file-delete.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/file-download.png b/fileman/images/file-download.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/file-download.png rename to fileman/images/file-download.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/file-duplicate.png b/fileman/images/file-duplicate.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/file-duplicate.png rename to fileman/images/file-duplicate.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/file-upload.png b/fileman/images/file-upload.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/file-upload.png rename to fileman/images/file-upload.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_3gp.png b/fileman/images/filetypes/big/file_extension_3gp.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_3gp.png rename to fileman/images/filetypes/big/file_extension_3gp.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_7z.png b/fileman/images/filetypes/big/file_extension_7z.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_7z.png rename to fileman/images/filetypes/big/file_extension_7z.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ace.png b/fileman/images/filetypes/big/file_extension_ace.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ace.png rename to fileman/images/filetypes/big/file_extension_ace.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ai.png b/fileman/images/filetypes/big/file_extension_ai.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ai.png rename to fileman/images/filetypes/big/file_extension_ai.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_aif.png b/fileman/images/filetypes/big/file_extension_aif.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_aif.png rename to fileman/images/filetypes/big/file_extension_aif.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_aiff.png b/fileman/images/filetypes/big/file_extension_aiff.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_aiff.png rename to fileman/images/filetypes/big/file_extension_aiff.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_amr.png b/fileman/images/filetypes/big/file_extension_amr.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_amr.png rename to fileman/images/filetypes/big/file_extension_amr.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_asf.png b/fileman/images/filetypes/big/file_extension_asf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_asf.png rename to fileman/images/filetypes/big/file_extension_asf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_asx.png b/fileman/images/filetypes/big/file_extension_asx.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_asx.png rename to fileman/images/filetypes/big/file_extension_asx.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_bat.png b/fileman/images/filetypes/big/file_extension_bat.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_bat.png rename to fileman/images/filetypes/big/file_extension_bat.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_bin.png b/fileman/images/filetypes/big/file_extension_bin.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_bin.png rename to fileman/images/filetypes/big/file_extension_bin.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_bmp.png b/fileman/images/filetypes/big/file_extension_bmp.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_bmp.png rename to fileman/images/filetypes/big/file_extension_bmp.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_bup.png b/fileman/images/filetypes/big/file_extension_bup.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_bup.png rename to fileman/images/filetypes/big/file_extension_bup.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cab.png b/fileman/images/filetypes/big/file_extension_cab.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cab.png rename to fileman/images/filetypes/big/file_extension_cab.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cbr.png b/fileman/images/filetypes/big/file_extension_cbr.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cbr.png rename to fileman/images/filetypes/big/file_extension_cbr.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cda.png b/fileman/images/filetypes/big/file_extension_cda.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cda.png rename to fileman/images/filetypes/big/file_extension_cda.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cdl.png b/fileman/images/filetypes/big/file_extension_cdl.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cdl.png rename to fileman/images/filetypes/big/file_extension_cdl.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cdr.png b/fileman/images/filetypes/big/file_extension_cdr.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_cdr.png rename to fileman/images/filetypes/big/file_extension_cdr.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_chm.png b/fileman/images/filetypes/big/file_extension_chm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_chm.png rename to fileman/images/filetypes/big/file_extension_chm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dat.png b/fileman/images/filetypes/big/file_extension_dat.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dat.png rename to fileman/images/filetypes/big/file_extension_dat.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_divx.png b/fileman/images/filetypes/big/file_extension_divx.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_divx.png rename to fileman/images/filetypes/big/file_extension_divx.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dll.png b/fileman/images/filetypes/big/file_extension_dll.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dll.png rename to fileman/images/filetypes/big/file_extension_dll.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dmg.png b/fileman/images/filetypes/big/file_extension_dmg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dmg.png rename to fileman/images/filetypes/big/file_extension_dmg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_doc.png b/fileman/images/filetypes/big/file_extension_doc.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_doc.png rename to fileman/images/filetypes/big/file_extension_doc.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dss.png b/fileman/images/filetypes/big/file_extension_dss.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dss.png rename to fileman/images/filetypes/big/file_extension_dss.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dvf.png b/fileman/images/filetypes/big/file_extension_dvf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dvf.png rename to fileman/images/filetypes/big/file_extension_dvf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dwg.png b/fileman/images/filetypes/big/file_extension_dwg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_dwg.png rename to fileman/images/filetypes/big/file_extension_dwg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_eml.png b/fileman/images/filetypes/big/file_extension_eml.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_eml.png rename to fileman/images/filetypes/big/file_extension_eml.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_eps.png b/fileman/images/filetypes/big/file_extension_eps.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_eps.png rename to fileman/images/filetypes/big/file_extension_eps.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_exe.png b/fileman/images/filetypes/big/file_extension_exe.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_exe.png rename to fileman/images/filetypes/big/file_extension_exe.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_fla.png b/fileman/images/filetypes/big/file_extension_fla.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_fla.png rename to fileman/images/filetypes/big/file_extension_fla.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_flv.png b/fileman/images/filetypes/big/file_extension_flv.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_flv.png rename to fileman/images/filetypes/big/file_extension_flv.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_gif.png b/fileman/images/filetypes/big/file_extension_gif.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_gif.png rename to fileman/images/filetypes/big/file_extension_gif.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_gz.png b/fileman/images/filetypes/big/file_extension_gz.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_gz.png rename to fileman/images/filetypes/big/file_extension_gz.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_hqx.png b/fileman/images/filetypes/big/file_extension_hqx.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_hqx.png rename to fileman/images/filetypes/big/file_extension_hqx.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_htm.png b/fileman/images/filetypes/big/file_extension_htm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_htm.png rename to fileman/images/filetypes/big/file_extension_htm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_html.png b/fileman/images/filetypes/big/file_extension_html.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_html.png rename to fileman/images/filetypes/big/file_extension_html.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ifo.png b/fileman/images/filetypes/big/file_extension_ifo.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ifo.png rename to fileman/images/filetypes/big/file_extension_ifo.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_indd.png b/fileman/images/filetypes/big/file_extension_indd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_indd.png rename to fileman/images/filetypes/big/file_extension_indd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_iso.png b/fileman/images/filetypes/big/file_extension_iso.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_iso.png rename to fileman/images/filetypes/big/file_extension_iso.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_jar.png b/fileman/images/filetypes/big/file_extension_jar.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_jar.png rename to fileman/images/filetypes/big/file_extension_jar.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_jpeg.png b/fileman/images/filetypes/big/file_extension_jpeg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_jpeg.png rename to fileman/images/filetypes/big/file_extension_jpeg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_jpg.png b/fileman/images/filetypes/big/file_extension_jpg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_jpg.png rename to fileman/images/filetypes/big/file_extension_jpg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_lnk.png b/fileman/images/filetypes/big/file_extension_lnk.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_lnk.png rename to fileman/images/filetypes/big/file_extension_lnk.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_log.png b/fileman/images/filetypes/big/file_extension_log.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_log.png rename to fileman/images/filetypes/big/file_extension_log.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_m4a.png b/fileman/images/filetypes/big/file_extension_m4a.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_m4a.png rename to fileman/images/filetypes/big/file_extension_m4a.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_m4b.png b/fileman/images/filetypes/big/file_extension_m4b.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_m4b.png rename to fileman/images/filetypes/big/file_extension_m4b.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_m4p.png b/fileman/images/filetypes/big/file_extension_m4p.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_m4p.png rename to fileman/images/filetypes/big/file_extension_m4p.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_m4v.png b/fileman/images/filetypes/big/file_extension_m4v.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_m4v.png rename to fileman/images/filetypes/big/file_extension_m4v.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mcd.png b/fileman/images/filetypes/big/file_extension_mcd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mcd.png rename to fileman/images/filetypes/big/file_extension_mcd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mdb.png b/fileman/images/filetypes/big/file_extension_mdb.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mdb.png rename to fileman/images/filetypes/big/file_extension_mdb.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mid.png b/fileman/images/filetypes/big/file_extension_mid.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mid.png rename to fileman/images/filetypes/big/file_extension_mid.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mov.png b/fileman/images/filetypes/big/file_extension_mov.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mov.png rename to fileman/images/filetypes/big/file_extension_mov.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mp2.png b/fileman/images/filetypes/big/file_extension_mp2.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mp2.png rename to fileman/images/filetypes/big/file_extension_mp2.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mp3.png b/fileman/images/filetypes/big/file_extension_mp3.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mp3.png rename to fileman/images/filetypes/big/file_extension_mp3.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mp4.png b/fileman/images/filetypes/big/file_extension_mp4.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mp4.png rename to fileman/images/filetypes/big/file_extension_mp4.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mpeg.png b/fileman/images/filetypes/big/file_extension_mpeg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mpeg.png rename to fileman/images/filetypes/big/file_extension_mpeg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mpg.png b/fileman/images/filetypes/big/file_extension_mpg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mpg.png rename to fileman/images/filetypes/big/file_extension_mpg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_msi.png b/fileman/images/filetypes/big/file_extension_msi.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_msi.png rename to fileman/images/filetypes/big/file_extension_msi.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mswmm.png b/fileman/images/filetypes/big/file_extension_mswmm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_mswmm.png rename to fileman/images/filetypes/big/file_extension_mswmm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ogg.png b/fileman/images/filetypes/big/file_extension_ogg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ogg.png rename to fileman/images/filetypes/big/file_extension_ogg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_pdf.png b/fileman/images/filetypes/big/file_extension_pdf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_pdf.png rename to fileman/images/filetypes/big/file_extension_pdf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_png.png b/fileman/images/filetypes/big/file_extension_png.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_png.png rename to fileman/images/filetypes/big/file_extension_png.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_pps.png b/fileman/images/filetypes/big/file_extension_pps.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_pps.png rename to fileman/images/filetypes/big/file_extension_pps.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ps.png b/fileman/images/filetypes/big/file_extension_ps.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ps.png rename to fileman/images/filetypes/big/file_extension_ps.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_psd.png b/fileman/images/filetypes/big/file_extension_psd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_psd.png rename to fileman/images/filetypes/big/file_extension_psd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_pst.png b/fileman/images/filetypes/big/file_extension_pst.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_pst.png rename to fileman/images/filetypes/big/file_extension_pst.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ptb.png b/fileman/images/filetypes/big/file_extension_ptb.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ptb.png rename to fileman/images/filetypes/big/file_extension_ptb.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_pub.png b/fileman/images/filetypes/big/file_extension_pub.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_pub.png rename to fileman/images/filetypes/big/file_extension_pub.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_qbb.png b/fileman/images/filetypes/big/file_extension_qbb.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_qbb.png rename to fileman/images/filetypes/big/file_extension_qbb.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_qbw.png b/fileman/images/filetypes/big/file_extension_qbw.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_qbw.png rename to fileman/images/filetypes/big/file_extension_qbw.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_qxd.png b/fileman/images/filetypes/big/file_extension_qxd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_qxd.png rename to fileman/images/filetypes/big/file_extension_qxd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ram.png b/fileman/images/filetypes/big/file_extension_ram.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ram.png rename to fileman/images/filetypes/big/file_extension_ram.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_rar.png b/fileman/images/filetypes/big/file_extension_rar.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_rar.png rename to fileman/images/filetypes/big/file_extension_rar.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_rm.png b/fileman/images/filetypes/big/file_extension_rm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_rm.png rename to fileman/images/filetypes/big/file_extension_rm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_rmvb.png b/fileman/images/filetypes/big/file_extension_rmvb.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_rmvb.png rename to fileman/images/filetypes/big/file_extension_rmvb.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_rtf.png b/fileman/images/filetypes/big/file_extension_rtf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_rtf.png rename to fileman/images/filetypes/big/file_extension_rtf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_sea.png b/fileman/images/filetypes/big/file_extension_sea.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_sea.png rename to fileman/images/filetypes/big/file_extension_sea.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ses.png b/fileman/images/filetypes/big/file_extension_ses.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ses.png rename to fileman/images/filetypes/big/file_extension_ses.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_sit.png b/fileman/images/filetypes/big/file_extension_sit.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_sit.png rename to fileman/images/filetypes/big/file_extension_sit.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_sitx.png b/fileman/images/filetypes/big/file_extension_sitx.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_sitx.png rename to fileman/images/filetypes/big/file_extension_sitx.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ss.png b/fileman/images/filetypes/big/file_extension_ss.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ss.png rename to fileman/images/filetypes/big/file_extension_ss.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_swf.png b/fileman/images/filetypes/big/file_extension_swf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_swf.png rename to fileman/images/filetypes/big/file_extension_swf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_tgz.png b/fileman/images/filetypes/big/file_extension_tgz.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_tgz.png rename to fileman/images/filetypes/big/file_extension_tgz.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_thm.png b/fileman/images/filetypes/big/file_extension_thm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_thm.png rename to fileman/images/filetypes/big/file_extension_thm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_tif.png b/fileman/images/filetypes/big/file_extension_tif.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_tif.png rename to fileman/images/filetypes/big/file_extension_tif.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_tmp.png b/fileman/images/filetypes/big/file_extension_tmp.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_tmp.png rename to fileman/images/filetypes/big/file_extension_tmp.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_torrent.png b/fileman/images/filetypes/big/file_extension_torrent.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_torrent.png rename to fileman/images/filetypes/big/file_extension_torrent.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ttf.png b/fileman/images/filetypes/big/file_extension_ttf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_ttf.png rename to fileman/images/filetypes/big/file_extension_ttf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_txt.png b/fileman/images/filetypes/big/file_extension_txt.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_txt.png rename to fileman/images/filetypes/big/file_extension_txt.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_vcd.png b/fileman/images/filetypes/big/file_extension_vcd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_vcd.png rename to fileman/images/filetypes/big/file_extension_vcd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_vob.png b/fileman/images/filetypes/big/file_extension_vob.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_vob.png rename to fileman/images/filetypes/big/file_extension_vob.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_wav.png b/fileman/images/filetypes/big/file_extension_wav.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_wav.png rename to fileman/images/filetypes/big/file_extension_wav.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_wma.png b/fileman/images/filetypes/big/file_extension_wma.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_wma.png rename to fileman/images/filetypes/big/file_extension_wma.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_wmv.png b/fileman/images/filetypes/big/file_extension_wmv.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_wmv.png rename to fileman/images/filetypes/big/file_extension_wmv.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_wps.png b/fileman/images/filetypes/big/file_extension_wps.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_wps.png rename to fileman/images/filetypes/big/file_extension_wps.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_xls.png b/fileman/images/filetypes/big/file_extension_xls.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_xls.png rename to fileman/images/filetypes/big/file_extension_xls.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_xpi.png b/fileman/images/filetypes/big/file_extension_xpi.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_xpi.png rename to fileman/images/filetypes/big/file_extension_xpi.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_zip.png b/fileman/images/filetypes/big/file_extension_zip.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/file_extension_zip.png rename to fileman/images/filetypes/big/file_extension_zip.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/unknown.png b/fileman/images/filetypes/big/unknown.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/big/unknown.png rename to fileman/images/filetypes/big/unknown.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_3gp.png b/fileman/images/filetypes/file_extension_3gp.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_3gp.png rename to fileman/images/filetypes/file_extension_3gp.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_7z.png b/fileman/images/filetypes/file_extension_7z.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_7z.png rename to fileman/images/filetypes/file_extension_7z.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ace.png b/fileman/images/filetypes/file_extension_ace.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ace.png rename to fileman/images/filetypes/file_extension_ace.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ai.png b/fileman/images/filetypes/file_extension_ai.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ai.png rename to fileman/images/filetypes/file_extension_ai.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_aif.png b/fileman/images/filetypes/file_extension_aif.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_aif.png rename to fileman/images/filetypes/file_extension_aif.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_aiff.png b/fileman/images/filetypes/file_extension_aiff.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_aiff.png rename to fileman/images/filetypes/file_extension_aiff.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_amr.png b/fileman/images/filetypes/file_extension_amr.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_amr.png rename to fileman/images/filetypes/file_extension_amr.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_asf.png b/fileman/images/filetypes/file_extension_asf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_asf.png rename to fileman/images/filetypes/file_extension_asf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_asx.png b/fileman/images/filetypes/file_extension_asx.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_asx.png rename to fileman/images/filetypes/file_extension_asx.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_avi.png b/fileman/images/filetypes/file_extension_avi.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_avi.png rename to fileman/images/filetypes/file_extension_avi.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_bat.png b/fileman/images/filetypes/file_extension_bat.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_bat.png rename to fileman/images/filetypes/file_extension_bat.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_bin.png b/fileman/images/filetypes/file_extension_bin.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_bin.png rename to fileman/images/filetypes/file_extension_bin.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_bmp.png b/fileman/images/filetypes/file_extension_bmp.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_bmp.png rename to fileman/images/filetypes/file_extension_bmp.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_bup.png b/fileman/images/filetypes/file_extension_bup.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_bup.png rename to fileman/images/filetypes/file_extension_bup.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cab.png b/fileman/images/filetypes/file_extension_cab.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cab.png rename to fileman/images/filetypes/file_extension_cab.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cbr.png b/fileman/images/filetypes/file_extension_cbr.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cbr.png rename to fileman/images/filetypes/file_extension_cbr.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cda.png b/fileman/images/filetypes/file_extension_cda.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cda.png rename to fileman/images/filetypes/file_extension_cda.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cdl.png b/fileman/images/filetypes/file_extension_cdl.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cdl.png rename to fileman/images/filetypes/file_extension_cdl.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cdr.png b/fileman/images/filetypes/file_extension_cdr.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_cdr.png rename to fileman/images/filetypes/file_extension_cdr.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_chm.png b/fileman/images/filetypes/file_extension_chm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_chm.png rename to fileman/images/filetypes/file_extension_chm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dat.png b/fileman/images/filetypes/file_extension_dat.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dat.png rename to fileman/images/filetypes/file_extension_dat.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_divx.png b/fileman/images/filetypes/file_extension_divx.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_divx.png rename to fileman/images/filetypes/file_extension_divx.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dll.png b/fileman/images/filetypes/file_extension_dll.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dll.png rename to fileman/images/filetypes/file_extension_dll.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dmg.png b/fileman/images/filetypes/file_extension_dmg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dmg.png rename to fileman/images/filetypes/file_extension_dmg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_doc.png b/fileman/images/filetypes/file_extension_doc.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_doc.png rename to fileman/images/filetypes/file_extension_doc.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dss.png b/fileman/images/filetypes/file_extension_dss.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dss.png rename to fileman/images/filetypes/file_extension_dss.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dvf.png b/fileman/images/filetypes/file_extension_dvf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dvf.png rename to fileman/images/filetypes/file_extension_dvf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dwg.png b/fileman/images/filetypes/file_extension_dwg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_dwg.png rename to fileman/images/filetypes/file_extension_dwg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_eml.png b/fileman/images/filetypes/file_extension_eml.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_eml.png rename to fileman/images/filetypes/file_extension_eml.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_eps.png b/fileman/images/filetypes/file_extension_eps.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_eps.png rename to fileman/images/filetypes/file_extension_eps.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_exe.png b/fileman/images/filetypes/file_extension_exe.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_exe.png rename to fileman/images/filetypes/file_extension_exe.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_fla.png b/fileman/images/filetypes/file_extension_fla.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_fla.png rename to fileman/images/filetypes/file_extension_fla.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_flv.png b/fileman/images/filetypes/file_extension_flv.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_flv.png rename to fileman/images/filetypes/file_extension_flv.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_gif.png b/fileman/images/filetypes/file_extension_gif.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_gif.png rename to fileman/images/filetypes/file_extension_gif.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_gz.png b/fileman/images/filetypes/file_extension_gz.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_gz.png rename to fileman/images/filetypes/file_extension_gz.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_hqx.png b/fileman/images/filetypes/file_extension_hqx.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_hqx.png rename to fileman/images/filetypes/file_extension_hqx.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_htm.png b/fileman/images/filetypes/file_extension_htm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_htm.png rename to fileman/images/filetypes/file_extension_htm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_html.png b/fileman/images/filetypes/file_extension_html.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_html.png rename to fileman/images/filetypes/file_extension_html.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ifo.png b/fileman/images/filetypes/file_extension_ifo.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ifo.png rename to fileman/images/filetypes/file_extension_ifo.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_indd.png b/fileman/images/filetypes/file_extension_indd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_indd.png rename to fileman/images/filetypes/file_extension_indd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_iso.png b/fileman/images/filetypes/file_extension_iso.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_iso.png rename to fileman/images/filetypes/file_extension_iso.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_jar.png b/fileman/images/filetypes/file_extension_jar.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_jar.png rename to fileman/images/filetypes/file_extension_jar.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_jpeg.png b/fileman/images/filetypes/file_extension_jpeg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_jpeg.png rename to fileman/images/filetypes/file_extension_jpeg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_jpg.png b/fileman/images/filetypes/file_extension_jpg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_jpg.png rename to fileman/images/filetypes/file_extension_jpg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_lnk.png b/fileman/images/filetypes/file_extension_lnk.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_lnk.png rename to fileman/images/filetypes/file_extension_lnk.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_log.png b/fileman/images/filetypes/file_extension_log.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_log.png rename to fileman/images/filetypes/file_extension_log.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_m4a.png b/fileman/images/filetypes/file_extension_m4a.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_m4a.png rename to fileman/images/filetypes/file_extension_m4a.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_m4b.png b/fileman/images/filetypes/file_extension_m4b.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_m4b.png rename to fileman/images/filetypes/file_extension_m4b.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_m4p.png b/fileman/images/filetypes/file_extension_m4p.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_m4p.png rename to fileman/images/filetypes/file_extension_m4p.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_m4v.png b/fileman/images/filetypes/file_extension_m4v.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_m4v.png rename to fileman/images/filetypes/file_extension_m4v.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mcd.png b/fileman/images/filetypes/file_extension_mcd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mcd.png rename to fileman/images/filetypes/file_extension_mcd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mdb.png b/fileman/images/filetypes/file_extension_mdb.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mdb.png rename to fileman/images/filetypes/file_extension_mdb.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mid.png b/fileman/images/filetypes/file_extension_mid.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mid.png rename to fileman/images/filetypes/file_extension_mid.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mkv.png b/fileman/images/filetypes/file_extension_mkv.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mkv.png rename to fileman/images/filetypes/file_extension_mkv.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mov.png b/fileman/images/filetypes/file_extension_mov.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mov.png rename to fileman/images/filetypes/file_extension_mov.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mp2.png b/fileman/images/filetypes/file_extension_mp2.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mp2.png rename to fileman/images/filetypes/file_extension_mp2.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mp3.png b/fileman/images/filetypes/file_extension_mp3.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mp3.png rename to fileman/images/filetypes/file_extension_mp3.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mp4.png b/fileman/images/filetypes/file_extension_mp4.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mp4.png rename to fileman/images/filetypes/file_extension_mp4.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mpeg.png b/fileman/images/filetypes/file_extension_mpeg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mpeg.png rename to fileman/images/filetypes/file_extension_mpeg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mpg.png b/fileman/images/filetypes/file_extension_mpg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mpg.png rename to fileman/images/filetypes/file_extension_mpg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_msi.png b/fileman/images/filetypes/file_extension_msi.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_msi.png rename to fileman/images/filetypes/file_extension_msi.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mswmm.png b/fileman/images/filetypes/file_extension_mswmm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_mswmm.png rename to fileman/images/filetypes/file_extension_mswmm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ogg.png b/fileman/images/filetypes/file_extension_ogg.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ogg.png rename to fileman/images/filetypes/file_extension_ogg.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_pdf.png b/fileman/images/filetypes/file_extension_pdf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_pdf.png rename to fileman/images/filetypes/file_extension_pdf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_png.png b/fileman/images/filetypes/file_extension_png.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_png.png rename to fileman/images/filetypes/file_extension_png.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_pps.png b/fileman/images/filetypes/file_extension_pps.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_pps.png rename to fileman/images/filetypes/file_extension_pps.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ps.png b/fileman/images/filetypes/file_extension_ps.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ps.png rename to fileman/images/filetypes/file_extension_ps.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_psd.png b/fileman/images/filetypes/file_extension_psd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_psd.png rename to fileman/images/filetypes/file_extension_psd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_pst.png b/fileman/images/filetypes/file_extension_pst.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_pst.png rename to fileman/images/filetypes/file_extension_pst.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ptb.png b/fileman/images/filetypes/file_extension_ptb.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ptb.png rename to fileman/images/filetypes/file_extension_ptb.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_pub.png b/fileman/images/filetypes/file_extension_pub.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_pub.png rename to fileman/images/filetypes/file_extension_pub.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_qbb.png b/fileman/images/filetypes/file_extension_qbb.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_qbb.png rename to fileman/images/filetypes/file_extension_qbb.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_qbw.png b/fileman/images/filetypes/file_extension_qbw.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_qbw.png rename to fileman/images/filetypes/file_extension_qbw.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_qxd.png b/fileman/images/filetypes/file_extension_qxd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_qxd.png rename to fileman/images/filetypes/file_extension_qxd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ram.png b/fileman/images/filetypes/file_extension_ram.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ram.png rename to fileman/images/filetypes/file_extension_ram.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_rar.png b/fileman/images/filetypes/file_extension_rar.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_rar.png rename to fileman/images/filetypes/file_extension_rar.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_rm.png b/fileman/images/filetypes/file_extension_rm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_rm.png rename to fileman/images/filetypes/file_extension_rm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_rmvb.png b/fileman/images/filetypes/file_extension_rmvb.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_rmvb.png rename to fileman/images/filetypes/file_extension_rmvb.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_rtf.png b/fileman/images/filetypes/file_extension_rtf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_rtf.png rename to fileman/images/filetypes/file_extension_rtf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_sea.png b/fileman/images/filetypes/file_extension_sea.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_sea.png rename to fileman/images/filetypes/file_extension_sea.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ses.png b/fileman/images/filetypes/file_extension_ses.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ses.png rename to fileman/images/filetypes/file_extension_ses.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_sit.png b/fileman/images/filetypes/file_extension_sit.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_sit.png rename to fileman/images/filetypes/file_extension_sit.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_sitx.png b/fileman/images/filetypes/file_extension_sitx.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_sitx.png rename to fileman/images/filetypes/file_extension_sitx.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ss.png b/fileman/images/filetypes/file_extension_ss.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ss.png rename to fileman/images/filetypes/file_extension_ss.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_swf.png b/fileman/images/filetypes/file_extension_swf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_swf.png rename to fileman/images/filetypes/file_extension_swf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_tgz.png b/fileman/images/filetypes/file_extension_tgz.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_tgz.png rename to fileman/images/filetypes/file_extension_tgz.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_thm.png b/fileman/images/filetypes/file_extension_thm.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_thm.png rename to fileman/images/filetypes/file_extension_thm.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_tif.png b/fileman/images/filetypes/file_extension_tif.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_tif.png rename to fileman/images/filetypes/file_extension_tif.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_tmp.png b/fileman/images/filetypes/file_extension_tmp.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_tmp.png rename to fileman/images/filetypes/file_extension_tmp.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_torrent.png b/fileman/images/filetypes/file_extension_torrent.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_torrent.png rename to fileman/images/filetypes/file_extension_torrent.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ttf.png b/fileman/images/filetypes/file_extension_ttf.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_ttf.png rename to fileman/images/filetypes/file_extension_ttf.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_txt.png b/fileman/images/filetypes/file_extension_txt.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_txt.png rename to fileman/images/filetypes/file_extension_txt.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_vcd.png b/fileman/images/filetypes/file_extension_vcd.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_vcd.png rename to fileman/images/filetypes/file_extension_vcd.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_vob.png b/fileman/images/filetypes/file_extension_vob.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_vob.png rename to fileman/images/filetypes/file_extension_vob.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_wav.png b/fileman/images/filetypes/file_extension_wav.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_wav.png rename to fileman/images/filetypes/file_extension_wav.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_wma.png b/fileman/images/filetypes/file_extension_wma.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_wma.png rename to fileman/images/filetypes/file_extension_wma.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_wmv.png b/fileman/images/filetypes/file_extension_wmv.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_wmv.png rename to fileman/images/filetypes/file_extension_wmv.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_wps.png b/fileman/images/filetypes/file_extension_wps.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_wps.png rename to fileman/images/filetypes/file_extension_wps.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_xls.png b/fileman/images/filetypes/file_extension_xls.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_xls.png rename to fileman/images/filetypes/file_extension_xls.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_xpi.png b/fileman/images/filetypes/file_extension_xpi.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_xpi.png rename to fileman/images/filetypes/file_extension_xpi.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_zip.png b/fileman/images/filetypes/file_extension_zip.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/file_extension_zip.png rename to fileman/images/filetypes/file_extension_zip.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/unknown.png b/fileman/images/filetypes/unknown.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/filetypes/unknown.png rename to fileman/images/filetypes/unknown.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/find.png b/fileman/images/find.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/find.png rename to fileman/images/find.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/folder-add.png b/fileman/images/folder-add.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/folder-add.png rename to fileman/images/folder-add.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/folder-delete.png b/fileman/images/folder-delete.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/folder-delete.png rename to fileman/images/folder-delete.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/folder-download.png b/fileman/images/folder-download.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/folder-download.png rename to fileman/images/folder-download.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/folder-green.png b/fileman/images/folder-green.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/folder-green.png rename to fileman/images/folder-green.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/folder-opened.png b/fileman/images/folder-opened.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/folder-opened.png rename to fileman/images/folder-opened.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/folder.png b/fileman/images/folder.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/folder.png rename to fileman/images/folder.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/loading-dir.gif b/fileman/images/loading-dir.gif similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/loading-dir.gif rename to fileman/images/loading-dir.gif diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/loading.gif b/fileman/images/loading.gif similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/loading.gif rename to fileman/images/loading.gif diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/paste.png b/fileman/images/paste.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/paste.png rename to fileman/images/paste.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/preview.png b/fileman/images/preview.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/preview.png rename to fileman/images/preview.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/remove-upload - Copy.png b/fileman/images/remove-upload - Copy.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/remove-upload - Copy.png rename to fileman/images/remove-upload - Copy.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/remove-upload.png b/fileman/images/remove-upload.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/remove-upload.png rename to fileman/images/remove-upload.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/rename.png b/fileman/images/rename.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/rename.png rename to fileman/images/rename.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/search.png b/fileman/images/search.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/search.png rename to fileman/images/search.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/select.png b/fileman/images/select.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/select.png rename to fileman/images/select.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/sprite.png b/fileman/images/sprite.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/sprite.png rename to fileman/images/sprite.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/stripes-reverse.gif b/fileman/images/stripes-reverse.gif similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/stripes-reverse.gif rename to fileman/images/stripes-reverse.gif diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/stripes.gif b/fileman/images/stripes.gif similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/stripes.gif rename to fileman/images/stripes.gif diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/upload-big.png b/fileman/images/upload-big.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/upload-big.png rename to fileman/images/upload-big.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/view-list.png b/fileman/images/view-list.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/view-list.png rename to fileman/images/view-list.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/images/view-tile.png b/fileman/images/view-tile.png similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/images/view-tile.png rename to fileman/images/view-tile.png diff --git a/copy_this/modules/bla/bla-tinymce/fileman/index.html b/fileman/index.html similarity index 98% rename from copy_this/modules/bla/bla-tinymce/fileman/index.html rename to fileman/index.html index 9d1fe43..d61eb31 100644 --- a/copy_this/modules/bla/bla-tinymce/fileman/index.html +++ b/fileman/index.html @@ -1,147 +1,147 @@ - - - - - -Roxy file manager - - - - - - - - - - - - - - - - - - -
            -
            - - - -
            -
            - Loading directories...
            - -
            -
            -
              -
              -
              - - -
              - - - - - - -
              - Order by: -    - -    - -
              -
              -
              -
              - Loading files...
              - -
              -
              - This folder is empty -
              -
              - No files found -
              -
                -
                -
                -
                -    © 2013 - RoxyFileman - -
                Status bar
                -
                - - - -
                -
                - -

                - -
                -
                -
                -
                -
                -
                -
                - - -
                -
                - -
                -
                -
                - -
                - - + + + + + +Roxy file manager + + + + + + + + + + + + + + + + + + +
                +
                + + + +
                +
                + Loading directories...
                + +
                +
                +
                  +
                  +
                  + + +
                  + + + + + + +
                  + Order by: +    + +    + +
                  +
                  +
                  +
                  + Loading files...
                  + +
                  +
                  + This folder is empty +
                  +
                  + No files found +
                  +
                    +
                    +
                    +
                    +    © 2013 - RoxyFileman + +
                    Status bar
                    +
                    + + + +
                    +
                    + +

                    + +
                    +
                    +
                    +
                    +
                    +
                    +
                    + + +
                    +
                    + +
                    +
                    +
                    + +
                    + + \ No newline at end of file diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/custom.js b/fileman/js/custom.js similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/js/custom.js rename to fileman/js/custom.js diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/directory.js b/fileman/js/directory.js similarity index 96% rename from copy_this/modules/bla/bla-tinymce/fileman/js/directory.js rename to fileman/js/directory.js index bb9bf4b..46c29fa 100644 --- a/copy_this/modules/bla/bla-tinymce/fileman/js/directory.js +++ b/fileman/js/directory.js @@ -1,538 +1,538 @@ -/* - RoxyFileman - web based file manager. Ready to use with CKEditor, TinyMCE. - Can be easily integrated with any other WYSIWYG editor or CMS. - - Copyright (C) 2013, RoxyFileman.com - Lyubomir Arsov. All rights reserved. - For licensing, see LICENSE.txt or http://RoxyFileman.com/license - - 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 3 of the License. - - 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, see . - - Contact: Lyubomir Arsov, liubo (at) web-lobby.com -*/ -function Directory(fullPath, numDirs, numFiles){ - if(!fullPath) fullPath = ''; - this.fullPath = fullPath; - this.name = RoxyUtils.GetFilename(fullPath); - if(!this.name) - this.name = 'My files'; - this.path = RoxyUtils.GetPath(fullPath); - this.dirs = (numDirs?numDirs:0); - this.files = (numFiles?numFiles:0); - this.filesList = new Array(); - - this.Show = function(){ - var html = this.GetHtml(); - var el = null; - el = $('li[data-path="'+this.path+'"]'); - if(el.length == 0) - el = $('#pnlDirList'); - else{ - if(el.children('ul').length == 0) - el.append('
                      '); - el = el.children('ul'); - } - if(el){ - el.append(html); - this.SetEvents(); - } - }; - this.SetEvents = function(){ - var el = this.GetElement(); - if(RoxyFilemanConf.MOVEDIR){ - el.draggable({helper:makeDragDir,start:startDragDir,cursorAt: { left: 10 ,top:10},delay:200}); - } - el = el.children('div'); - el.click(function(e){ - selectDir(this); - }); - - el.bind('contextmenu', function(e) { - e.stopPropagation(); - e.preventDefault(); - closeMenus('file'); - selectDir(this); - var t = e.pageY - $('#menuDir').height(); - if(t < 0) - t = 0; - $('#menuDir').css({ - top: t+'px', - left: e.pageX+'px' - }).show(); - - return false; - }); - - el.droppable({drop:moveObject,over:dragFileOver,out:dragFileOut}); - el = el.children('.dirPlus'); - el.click(function(e){ - e.stopPropagation(); - var d = Directory.Parse($(this).closest('li').attr('data-path')); - d.Expand(); - }); - }; - this.GetHtml = function(){ - var html = '
                    • '; - html += '
                      '; - html += ''+this.name+' ('+this.files+')
                      '; - html += '
                    • '; - - return html; - }; - this.SetStatusBar = function(){ - $('#pnlStatus').html(this.files+' '+(this.files == 1?t('file'):t('files'))); - }; - this.SetSelectedFile = function(path){ - if(path){ - var f = File.Parse(path); - if(f){ - selectFile(f.GetElement()); - } - } - }; - this.Select = function(selectedFile){ - var el = this.GetElement(); - el.children('div').addClass('selected'); - $('#pnlDirList li[data-path!="'+this.fullPath+'"] > div').removeClass('selected'); - el.children('img.dir').prop('src', 'images/folder.png'); - this.SetStatusBar(); - var p = this.GetParent(); - while(p){ - p.Expand(true); - p = p.GetParent(); - } - this.Expand(true); - this.ListFiles(true, selectedFile); - setLastDir(this.fullPath); - }; - this.GetElement = function(){ - return $('li[data-path="'+this.fullPath+'"]'); - }; - this.IsExpanded = function(){ - var el = this.GetElement().children('ul'); - return (el && el.is(":visible")); - }; - this.IsListed = function(){ - if($('#hdDir').val() == this.fullPath) - return true; - return false; - }; - this.GetExpanded = function(el){ - var ret = new Array(); - if(!el) - el = $('#pnlDirList'); - el.children('li').each(function(){ - var path = $(this).attr('data-path'); - var d = new Directory(path); - if(d){ - if(d.IsExpanded() && path) - ret.push(path); - ret = ret.concat(d.GetExpanded(d.GetElement().children('ul'))); - } - }); - - return ret; - }; - this.RestoreExpanded = function(expandedDirs){ - for(i = 0; i < expandedDirs.length; i++){ - var d = Directory.Parse(expandedDirs[i]); - if(d) - d.Expand(true); - } - }; - this.GetParent = function(){ - return Directory.Parse(this.path); - }; - this.SetOpened = function(){ - var li = this.GetElement(); - if(li.find('li').length < 1) - li.children('div').children('.dirPlus').prop('src', 'images/blank.gif'); - else if(this.IsExpanded()) - li.children('div').children('.dirPlus').prop('src', 'images/dir-minus.png'); - else - li.children('div').children('.dirPlus').prop('src', 'images/dir-plus.png'); - }; - this.Update = function(newPath){ - var el = this.GetElement(); - if(newPath){ - this.fullPath = newPath; - this.name = RoxyUtils.GetFilename(newPath); - if(!this.name) - this.name = 'My files'; - this.path = RoxyUtils.GetPath(newPath); - } - el.attr('data-path', this.fullPath); - el.attr('data-dirs', this.dirs); - el.attr('data-files', this.files); - el.children('div').children('.name').html(this.name+' ('+this.files+')'); - this.SetOpened(); - }; - this.LoadAll = function(selectedDir){ - var expanded = this.GetExpanded(); - var dirListURL = RoxyFilemanConf.DIRLIST; - if(!dirListURL){ - alert(t('E_ActionDisabled')); - return; - } - $('#pnlLoadingDirs').show(); - $('#pnlDirList').hide(); - dirListURL = RoxyUtils.AddParam(dirListURL, 'type', RoxyUtils.GetUrlParam('type')); - - var dir = this; - $.ajax({ - url: dirListURL, - type:'POST', - dataType: 'json', - async: false, - cache: false, - success: function(dirs){ - $('#pnlDirList').children('li').remove(); - for(i = 0; i < dirs.length; i++){ - var d = new Directory(dirs[i].p, dirs[i].d, dirs[i].f); - d.Show(); - } - $('#pnlLoadingDirs').hide(); - $('#pnlDirList').show(); - dir.RestoreExpanded(expanded); - var d = Directory.Parse(selectedDir); - if(d) - d.Select(); - }, - error: function(data){ - $('#pnlLoadingDirs').hide(); - $('#pnlDirList').show(); - alert(t('E_LoadingAjax')+' '+RoxyFilemanConf.DIRLIST); - } - }); - }; - this.Expand = function(show){ - var li = this.GetElement(); - var el = li.children('ul'); - if(this.IsExpanded() && !show) - el.hide(); - else - el.show(); - - this.SetOpened(); - }; - this.Create = function(newName){ - if(!newName) - return false; - else if(!RoxyFilemanConf.CREATEDIR){ - alert(t('E_ActionDisabled')); - return; - } - var url = RoxyUtils.AddParam(RoxyFilemanConf.CREATEDIR, 'd', this.fullPath); - url = RoxyUtils.AddParam(url, 'n', newName); - var item = this; - var ret = false; - $.ajax({ - url: url, - type: 'POST', - data: {d: this.fullPath, n: newName}, - dataType: 'json', - async:false, - cache: false, - success: function(data){ - if(data.res.toLowerCase() == 'ok'){ - item.LoadAll(RoxyUtils.MakePath(item.fullPath, newName)); - ret = true; - } - else{ - alert(data.msg); - } - }, - error: function(data){ - alert(t('E_LoadingAjax')+' '+item.name); - } - }); - return ret; - }; - this.Delete = function(){ - if(!RoxyFilemanConf.DELETEDIR){ - alert(t('E_ActionDisabled')); - return; - } - var url = RoxyUtils.AddParam(RoxyFilemanConf.DELETEDIR, 'd', this.fullPath); - var item = this; - var ret = false; - $.ajax({ - url: url, - type: 'POST', - data: {d: this.fullPath}, - dataType: 'json', - async:false, - cache: false, - success: function(data){ - if(data.res.toLowerCase() == 'ok'){ - var parent = item.GetParent(); - parent.dirs--; - parent.Update(); - parent.Select(); - item.GetElement().remove(); - ret = true; - } - if(data.msg) - alert(data.msg); - }, - error: function(data){ - alert(t('E_LoadingAjax')+' '+item.name); - } - }); - return ret; - }; - this.Rename = function(newName){ - if(!newName) - return false; - else if(!RoxyFilemanConf.RENAMEDIR){ - alert(t('E_ActionDisabled')); - return; - } - var url = RoxyUtils.AddParam(RoxyFilemanConf.RENAMEDIR, 'd', this.fullPath); - url = RoxyUtils.AddParam(url, 'n', newName); - var item = this; - var ret = false; - $.ajax({ - url: url, - type: 'POST', - data: {d: this.fullPath, n: newName}, - dataType: 'json', - async:false, - cache: false, - success: function(data){ - if(data.res.toLowerCase() == 'ok'){ - var newPath = RoxyUtils.MakePath(item.path, newName); - item.Update(newPath); - item.Select(); - ret = true; - } - if(data.msg) - alert(data.msg); - }, - error: function(data){ - alert(t('E_LoadingAjax')+' '+item.name); - } - }); - return ret; - }; - this.Copy = function(newPath){ - if(!RoxyFilemanConf.COPYDIR){ - alert(t('E_ActionDisabled')); - return; - } - var url = RoxyUtils.AddParam(RoxyFilemanConf.COPYDIR, 'd', this.fullPath); - url = RoxyUtils.AddParam(url, 'n', newPath); - var item = this; - var ret = false; - $.ajax({ - url: url, - type: 'POST', - data: {d: this.fullPath, n: newPath}, - dataType: 'json', - async:false, - cache: false, - success: function(data){ - if(data.res.toLowerCase() == 'ok'){ - var d = Directory.Parse(newPath); - if(d){ - d.LoadAll(d.fullPath); - } - ret = true; - } - if(data.msg) - alert(data.msg); - }, - error: function(data){ - alert(t('E_LoadingAjax')+' '+url); - } - }); - return ret; - }; - this.Move = function(newPath){ - if(!newPath) - return false; - else if(!RoxyFilemanConf.MOVEDIR){ - alert(t('E_ActionDisabled')); - return; - } - var url = RoxyUtils.AddParam(RoxyFilemanConf.MOVEDIR, 'd', this.fullPath); - url = RoxyUtils.AddParam(url, 'n', newPath); - var item = this; - var ret = false; - $.ajax({ - url: url, - type: 'POST', - data: {d: this.fullPath, n: newPath}, - dataType: 'json', - async:false, - cache: false, - success: function(data){ - if(data.res.toLowerCase() == 'ok'){ - item.LoadAll(RoxyUtils.MakePath(newPath, item.name)); - ret = true; - } - if(data.msg) - alert(data.msg); - }, - error: function(data){ - alert(t('E_LoadingAjax')+' '+item.name); - } - }); - return ret; - }; - this.ListFiles = function(refresh, selectedFile){ - $('#pnlLoading').show(); - $('#pnlEmptyDir').hide(); - $('#pnlFileList').hide(); - $('#pnlSearchNoFiles').hide(); - this.LoadFiles(refresh, selectedFile); - }; - this.FilesLoaded = function(filesList, selectedFile){ - filesList = this.SortFiles(filesList); - $('#pnlFileList').html(''); - for(i = 0; i < filesList.length; i++){ - var f = filesList[i]; - f.Show(); - } - $('#hdDir').val(this.fullPath); - $('#pnlLoading').hide(); - if($('#pnlFileList').children('li').length == 0) - $('#pnlEmptyDir').show(); - this.files = $('#pnlFileList').children('li').length; - this.Update(); - this.SetStatusBar(); - filterFiles(); - switchView(); - $('#pnlFileList').show(); - this.SetSelectedFile(selectedFile); - }; - this.LoadFiles = function(refresh, selectedFile){ - if(!RoxyFilemanConf.FILESLIST){ - alert(t('E_ActionDisabled')); - return; - } - var ret = new Array(); - var fileURL = RoxyFilemanConf.FILESLIST; - fileURL = RoxyUtils.AddParam(fileURL, 'd', this.fullPath); - fileURL = RoxyUtils.AddParam(fileURL, 'type', RoxyUtils.GetUrlParam('type')); - var item = this; - if(!this.IsListed() || refresh){ - - $.ajax({ - url: fileURL, - type: 'POST', - data: {d: this.fullPath, type: RoxyUtils.GetUrlParam('type')}, - dataType: 'json', - async:true, - cache: false, - success: function(files){ - for(i = 0; i < files.length; i++){ - ret.push(new File(files[i].p, files[i].s, files[i].t, files[i].w, files[i].h)); - } - item.FilesLoaded(ret, selectedFile); - }, - error: function(data){ - alert(t('E_LoadingAjax')+' '+fileURL); - } - }); - } - else{ - $('#pnlFileList li').each(function(){ - ret.push(new File($(this).attr('data-path'), $(this).attr('data-size'), $(this).attr('data-time'), $(this).attr('data-w'), $(this).attr('data-h'))); - }); - item.FilesLoaded(ret, selectedFile); - } - - return ret; - }; - - this.SortByName = function(files, order){ - files.sort(function(a, b){ - var x = (order == 'desc'?0:2) - a = a.name.toLowerCase(); - b = b.name.toLowerCase(); - if(a > b) - return -1 + x; - else if(a < b) - return 1 - x; - else - return 0; - }); - - return files; - }; - this.SortBySize = function(files, order){ - files.sort(function(a, b){ - var x = (order == 'desc'?0:2) - a = parseInt(a.size); - b = parseInt(b.size); - if(a > b) - return -1 + x; - else if(a < b) - return 1 - x; - else - return 0; - }); - - return files; - }; - this.SortByTime = function(files, order){ - files.sort(function(a, b){ - var x = (order == 'desc'?0:2) - a = parseInt(a.time); - b = parseInt(b.time); - if(a > b) - return -1 + x; - else if(a < b) - return 1 - x; - else - return 0; - }); - - return files; - }; - this.SortFiles = function(files){ - var order = $('#ddlOrder').val(); - if(!order) - order = 'name'; - - switch(order){ - case 'size': - files = this.SortBySize(files, 'asc'); - break; - case 'size_desc': - files = this.SortBySize(files, 'desc'); - break; - case 'time': - files = this.SortByTime(files, 'asc'); - break; - case 'time_desc': - files = this.SortByTime(files, 'desc'); - break; - case 'name_desc': - files = this.SortByName(files, 'desc'); - break; - default: - files = this.SortByName(files, 'asc'); - } - - return files; - }; -} -Directory.Parse = function(path){ - var ret = false; - var li = $('#pnlDirList').find('li[data-path="'+path+'"]'); - if(li.length > 0) - ret = new Directory(li.attr('data-path'), li.attr('data-dirs'), li.attr('data-files')); - - return ret; -}; +/* + RoxyFileman - web based file manager. Ready to use with CKEditor, TinyMCE. + Can be easily integrated with any other WYSIWYG editor or CMS. + + Copyright (C) 2013, RoxyFileman.com - Lyubomir Arsov. All rights reserved. + For licensing, see LICENSE.txt or http://RoxyFileman.com/license + + 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 3 of the License. + + 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, see . + + Contact: Lyubomir Arsov, liubo (at) web-lobby.com +*/ +function Directory(fullPath, numDirs, numFiles){ + if(!fullPath) fullPath = ''; + this.fullPath = fullPath; + this.name = RoxyUtils.GetFilename(fullPath); + if(!this.name) + this.name = 'My files'; + this.path = RoxyUtils.GetPath(fullPath); + this.dirs = (numDirs?numDirs:0); + this.files = (numFiles?numFiles:0); + this.filesList = new Array(); + + this.Show = function(){ + var html = this.GetHtml(); + var el = null; + el = $('li[data-path="'+this.path+'"]'); + if(el.length == 0) + el = $('#pnlDirList'); + else{ + if(el.children('ul').length == 0) + el.append('
                        '); + el = el.children('ul'); + } + if(el){ + el.append(html); + this.SetEvents(); + } + }; + this.SetEvents = function(){ + var el = this.GetElement(); + if(RoxyFilemanConf.MOVEDIR){ + el.draggable({helper:makeDragDir,start:startDragDir,cursorAt: { left: 10 ,top:10},delay:200}); + } + el = el.children('div'); + el.click(function(e){ + selectDir(this); + }); + + el.bind('contextmenu', function(e) { + e.stopPropagation(); + e.preventDefault(); + closeMenus('file'); + selectDir(this); + var t = e.pageY - $('#menuDir').height(); + if(t < 0) + t = 0; + $('#menuDir').css({ + top: t+'px', + left: e.pageX+'px' + }).show(); + + return false; + }); + + el.droppable({drop:moveObject,over:dragFileOver,out:dragFileOut}); + el = el.children('.dirPlus'); + el.click(function(e){ + e.stopPropagation(); + var d = Directory.Parse($(this).closest('li').attr('data-path')); + d.Expand(); + }); + }; + this.GetHtml = function(){ + var html = '
                      • '; + html += '
                        '; + html += ''+this.name+' ('+this.files+')
                        '; + html += '
                      • '; + + return html; + }; + this.SetStatusBar = function(){ + $('#pnlStatus').html(this.files+' '+(this.files == 1?t('file'):t('files'))); + }; + this.SetSelectedFile = function(path){ + if(path){ + var f = File.Parse(path); + if(f){ + selectFile(f.GetElement()); + } + } + }; + this.Select = function(selectedFile){ + var el = this.GetElement(); + el.children('div').addClass('selected'); + $('#pnlDirList li[data-path!="'+this.fullPath+'"] > div').removeClass('selected'); + el.children('img.dir').prop('src', 'images/folder.png'); + this.SetStatusBar(); + var p = this.GetParent(); + while(p){ + p.Expand(true); + p = p.GetParent(); + } + this.Expand(true); + this.ListFiles(true, selectedFile); + setLastDir(this.fullPath); + }; + this.GetElement = function(){ + return $('li[data-path="'+this.fullPath+'"]'); + }; + this.IsExpanded = function(){ + var el = this.GetElement().children('ul'); + return (el && el.is(":visible")); + }; + this.IsListed = function(){ + if($('#hdDir').val() == this.fullPath) + return true; + return false; + }; + this.GetExpanded = function(el){ + var ret = new Array(); + if(!el) + el = $('#pnlDirList'); + el.children('li').each(function(){ + var path = $(this).attr('data-path'); + var d = new Directory(path); + if(d){ + if(d.IsExpanded() && path) + ret.push(path); + ret = ret.concat(d.GetExpanded(d.GetElement().children('ul'))); + } + }); + + return ret; + }; + this.RestoreExpanded = function(expandedDirs){ + for(i = 0; i < expandedDirs.length; i++){ + var d = Directory.Parse(expandedDirs[i]); + if(d) + d.Expand(true); + } + }; + this.GetParent = function(){ + return Directory.Parse(this.path); + }; + this.SetOpened = function(){ + var li = this.GetElement(); + if(li.find('li').length < 1) + li.children('div').children('.dirPlus').prop('src', 'images/blank.gif'); + else if(this.IsExpanded()) + li.children('div').children('.dirPlus').prop('src', 'images/dir-minus.png'); + else + li.children('div').children('.dirPlus').prop('src', 'images/dir-plus.png'); + }; + this.Update = function(newPath){ + var el = this.GetElement(); + if(newPath){ + this.fullPath = newPath; + this.name = RoxyUtils.GetFilename(newPath); + if(!this.name) + this.name = 'My files'; + this.path = RoxyUtils.GetPath(newPath); + } + el.attr('data-path', this.fullPath); + el.attr('data-dirs', this.dirs); + el.attr('data-files', this.files); + el.children('div').children('.name').html(this.name+' ('+this.files+')'); + this.SetOpened(); + }; + this.LoadAll = function(selectedDir){ + var expanded = this.GetExpanded(); + var dirListURL = RoxyFilemanConf.DIRLIST; + if(!dirListURL){ + alert(t('E_ActionDisabled')); + return; + } + $('#pnlLoadingDirs').show(); + $('#pnlDirList').hide(); + dirListURL = RoxyUtils.AddParam(dirListURL, 'type', RoxyUtils.GetUrlParam('type')); + + var dir = this; + $.ajax({ + url: dirListURL, + type:'POST', + dataType: 'json', + async: false, + cache: false, + success: function(dirs){ + $('#pnlDirList').children('li').remove(); + for(i = 0; i < dirs.length; i++){ + var d = new Directory(dirs[i].p, dirs[i].d, dirs[i].f); + d.Show(); + } + $('#pnlLoadingDirs').hide(); + $('#pnlDirList').show(); + dir.RestoreExpanded(expanded); + var d = Directory.Parse(selectedDir); + if(d) + d.Select(); + }, + error: function(data){ + $('#pnlLoadingDirs').hide(); + $('#pnlDirList').show(); + alert(t('E_LoadingAjax')+' '+RoxyFilemanConf.DIRLIST); + } + }); + }; + this.Expand = function(show){ + var li = this.GetElement(); + var el = li.children('ul'); + if(this.IsExpanded() && !show) + el.hide(); + else + el.show(); + + this.SetOpened(); + }; + this.Create = function(newName){ + if(!newName) + return false; + else if(!RoxyFilemanConf.CREATEDIR){ + alert(t('E_ActionDisabled')); + return; + } + var url = RoxyUtils.AddParam(RoxyFilemanConf.CREATEDIR, 'd', this.fullPath); + url = RoxyUtils.AddParam(url, 'n', newName); + var item = this; + var ret = false; + $.ajax({ + url: url, + type: 'POST', + data: {d: this.fullPath, n: newName}, + dataType: 'json', + async:false, + cache: false, + success: function(data){ + if(data.res.toLowerCase() == 'ok'){ + item.LoadAll(RoxyUtils.MakePath(item.fullPath, newName)); + ret = true; + } + else{ + alert(data.msg); + } + }, + error: function(data){ + alert(t('E_LoadingAjax')+' '+item.name); + } + }); + return ret; + }; + this.Delete = function(){ + if(!RoxyFilemanConf.DELETEDIR){ + alert(t('E_ActionDisabled')); + return; + } + var url = RoxyUtils.AddParam(RoxyFilemanConf.DELETEDIR, 'd', this.fullPath); + var item = this; + var ret = false; + $.ajax({ + url: url, + type: 'POST', + data: {d: this.fullPath}, + dataType: 'json', + async:false, + cache: false, + success: function(data){ + if(data.res.toLowerCase() == 'ok'){ + var parent = item.GetParent(); + parent.dirs--; + parent.Update(); + parent.Select(); + item.GetElement().remove(); + ret = true; + } + if(data.msg) + alert(data.msg); + }, + error: function(data){ + alert(t('E_LoadingAjax')+' '+item.name); + } + }); + return ret; + }; + this.Rename = function(newName){ + if(!newName) + return false; + else if(!RoxyFilemanConf.RENAMEDIR){ + alert(t('E_ActionDisabled')); + return; + } + var url = RoxyUtils.AddParam(RoxyFilemanConf.RENAMEDIR, 'd', this.fullPath); + url = RoxyUtils.AddParam(url, 'n', newName); + var item = this; + var ret = false; + $.ajax({ + url: url, + type: 'POST', + data: {d: this.fullPath, n: newName}, + dataType: 'json', + async:false, + cache: false, + success: function(data){ + if(data.res.toLowerCase() == 'ok'){ + var newPath = RoxyUtils.MakePath(item.path, newName); + item.Update(newPath); + item.Select(); + ret = true; + } + if(data.msg) + alert(data.msg); + }, + error: function(data){ + alert(t('E_LoadingAjax')+' '+item.name); + } + }); + return ret; + }; + this.Copy = function(newPath){ + if(!RoxyFilemanConf.COPYDIR){ + alert(t('E_ActionDisabled')); + return; + } + var url = RoxyUtils.AddParam(RoxyFilemanConf.COPYDIR, 'd', this.fullPath); + url = RoxyUtils.AddParam(url, 'n', newPath); + var item = this; + var ret = false; + $.ajax({ + url: url, + type: 'POST', + data: {d: this.fullPath, n: newPath}, + dataType: 'json', + async:false, + cache: false, + success: function(data){ + if(data.res.toLowerCase() == 'ok'){ + var d = Directory.Parse(newPath); + if(d){ + d.LoadAll(d.fullPath); + } + ret = true; + } + if(data.msg) + alert(data.msg); + }, + error: function(data){ + alert(t('E_LoadingAjax')+' '+url); + } + }); + return ret; + }; + this.Move = function(newPath){ + if(!newPath) + return false; + else if(!RoxyFilemanConf.MOVEDIR){ + alert(t('E_ActionDisabled')); + return; + } + var url = RoxyUtils.AddParam(RoxyFilemanConf.MOVEDIR, 'd', this.fullPath); + url = RoxyUtils.AddParam(url, 'n', newPath); + var item = this; + var ret = false; + $.ajax({ + url: url, + type: 'POST', + data: {d: this.fullPath, n: newPath}, + dataType: 'json', + async:false, + cache: false, + success: function(data){ + if(data.res.toLowerCase() == 'ok'){ + item.LoadAll(RoxyUtils.MakePath(newPath, item.name)); + ret = true; + } + if(data.msg) + alert(data.msg); + }, + error: function(data){ + alert(t('E_LoadingAjax')+' '+item.name); + } + }); + return ret; + }; + this.ListFiles = function(refresh, selectedFile){ + $('#pnlLoading').show(); + $('#pnlEmptyDir').hide(); + $('#pnlFileList').hide(); + $('#pnlSearchNoFiles').hide(); + this.LoadFiles(refresh, selectedFile); + }; + this.FilesLoaded = function(filesList, selectedFile){ + filesList = this.SortFiles(filesList); + $('#pnlFileList').html(''); + for(i = 0; i < filesList.length; i++){ + var f = filesList[i]; + f.Show(); + } + $('#hdDir').val(this.fullPath); + $('#pnlLoading').hide(); + if($('#pnlFileList').children('li').length == 0) + $('#pnlEmptyDir').show(); + this.files = $('#pnlFileList').children('li').length; + this.Update(); + this.SetStatusBar(); + filterFiles(); + switchView(); + $('#pnlFileList').show(); + this.SetSelectedFile(selectedFile); + }; + this.LoadFiles = function(refresh, selectedFile){ + if(!RoxyFilemanConf.FILESLIST){ + alert(t('E_ActionDisabled')); + return; + } + var ret = new Array(); + var fileURL = RoxyFilemanConf.FILESLIST; + fileURL = RoxyUtils.AddParam(fileURL, 'd', this.fullPath); + fileURL = RoxyUtils.AddParam(fileURL, 'type', RoxyUtils.GetUrlParam('type')); + var item = this; + if(!this.IsListed() || refresh){ + + $.ajax({ + url: fileURL, + type: 'POST', + data: {d: this.fullPath, type: RoxyUtils.GetUrlParam('type')}, + dataType: 'json', + async:true, + cache: false, + success: function(files){ + for(i = 0; i < files.length; i++){ + ret.push(new File(files[i].p, files[i].s, files[i].t, files[i].w, files[i].h)); + } + item.FilesLoaded(ret, selectedFile); + }, + error: function(data){ + alert(t('E_LoadingAjax')+' '+fileURL); + } + }); + } + else{ + $('#pnlFileList li').each(function(){ + ret.push(new File($(this).attr('data-path'), $(this).attr('data-size'), $(this).attr('data-time'), $(this).attr('data-w'), $(this).attr('data-h'))); + }); + item.FilesLoaded(ret, selectedFile); + } + + return ret; + }; + + this.SortByName = function(files, order){ + files.sort(function(a, b){ + var x = (order == 'desc'?0:2) + a = a.name.toLowerCase(); + b = b.name.toLowerCase(); + if(a > b) + return -1 + x; + else if(a < b) + return 1 - x; + else + return 0; + }); + + return files; + }; + this.SortBySize = function(files, order){ + files.sort(function(a, b){ + var x = (order == 'desc'?0:2) + a = parseInt(a.size); + b = parseInt(b.size); + if(a > b) + return -1 + x; + else if(a < b) + return 1 - x; + else + return 0; + }); + + return files; + }; + this.SortByTime = function(files, order){ + files.sort(function(a, b){ + var x = (order == 'desc'?0:2) + a = parseInt(a.time); + b = parseInt(b.time); + if(a > b) + return -1 + x; + else if(a < b) + return 1 - x; + else + return 0; + }); + + return files; + }; + this.SortFiles = function(files){ + var order = $('#ddlOrder').val(); + if(!order) + order = 'name'; + + switch(order){ + case 'size': + files = this.SortBySize(files, 'asc'); + break; + case 'size_desc': + files = this.SortBySize(files, 'desc'); + break; + case 'time': + files = this.SortByTime(files, 'asc'); + break; + case 'time_desc': + files = this.SortByTime(files, 'desc'); + break; + case 'name_desc': + files = this.SortByName(files, 'desc'); + break; + default: + files = this.SortByName(files, 'asc'); + } + + return files; + }; +} +Directory.Parse = function(path){ + var ret = false; + var li = $('#pnlDirList').find('li[data-path="'+path+'"]'); + if(li.length > 0) + ret = new Directory(li.attr('data-path'), li.attr('data-dirs'), li.attr('data-files')); + + return ret; +}; diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/file.js b/fileman/js/file.js similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/js/file.js rename to fileman/js/file.js diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/filetypes.js b/fileman/js/filetypes.js similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/js/filetypes.js rename to fileman/js/filetypes.js diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/jquery-1.10.2.min.js b/fileman/js/jquery-1.10.2.min.js similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/js/jquery-1.10.2.min.js rename to fileman/js/jquery-1.10.2.min.js diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/jquery-1.11.1.min.js b/fileman/js/jquery-1.11.1.min.js similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/js/jquery-1.11.1.min.js rename to fileman/js/jquery-1.11.1.min.js diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/jquery-2.1.1.min.js b/fileman/js/jquery-2.1.1.min.js similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/js/jquery-2.1.1.min.js rename to fileman/js/jquery-2.1.1.min.js diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/jquery-dateFormat.min.js b/fileman/js/jquery-dateFormat.min.js similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/js/jquery-dateFormat.min.js rename to fileman/js/jquery-dateFormat.min.js diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/jquery-ui-1.10.4.custom.min.js b/fileman/js/jquery-ui-1.10.4.custom.min.js similarity index 100% rename from copy_this/modules/bla/bla-tinymce/fileman/js/jquery-ui-1.10.4.custom.min.js rename to fileman/js/jquery-ui-1.10.4.custom.min.js diff --git a/copy_this/modules/bla/bla-tinymce/fileman/js/main.js b/fileman/js/main.js similarity index 96% rename from copy_this/modules/bla/bla-tinymce/fileman/js/main.js rename to fileman/js/main.js index 7161718..70f8b3d 100644 --- a/copy_this/modules/bla/bla-tinymce/fileman/js/main.js +++ b/fileman/js/main.js @@ -1,847 +1,847 @@ -/* - RoxyFileman - web based file manager. Ready to use with CKEditor, TinyMCE. - Can be easily integrated with any other WYSIWYG editor or CMS. - - Copyright (C) 2013, RoxyFileman.com - Lyubomir Arsov. All rights reserved. - For licensing, see LICENSE.txt or http://RoxyFileman.com/license - - 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 3 of the License. - - 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, see . - - Contact: Lyubomir Arsov, liubo (at) web-lobby.com -*/ - -$.ajaxSetup ({cache: false}); -function selectFile(item){ - $('#pnlFileList li').removeClass('selected'); - $(item).prop('class', 'selected'); - var html = RoxyUtils.GetFilename($(item).attr('data-path')); - html += ' ('+t('Size')+': '+RoxyUtils.FormatFileSize($(item).attr('data-size')); - if($(item).attr('data-w') > 0) - html += ', '+t('Dimensions')+':'+$(item).attr('data-w')+'x'+$(item).attr('data-h'); - html += ')'; - $('#pnlStatus').html(html); -} -function getLastDir(){ - return RoxyUtils.GetCookie('roxyld'); -} -function setLastDir(path){ - RoxyUtils.SetCookie('roxyld', path, 10); -} -function selectDir(item){ - var d = Directory.Parse($(item).parent('li').attr('data-path')); - if(d){ - d.Select(); - } -} -function startDragDir(){ - -} -function startDragFile(){ - selectFile(this); -} -function dragFileOver(){ - $(this).children('img.dir').attr('src', 'images/folder-green.png'); -} -function dragFileOut(){ - $('#pnlDirList').find('img.dir').attr('src', 'images/folder.png'); -} -function makeDragFile(e){ - var f = new File($(e.target).closest('li').attr('data-path')); - return '
                         '+f.name+'
                        '; -} -function makeDragDir(e){ - var f = new Directory($(e.target).attr('data-path')?$(e.target).attr('data-path'):$(e.target).closest('li').attr('data-path')); - return '
                         '+f.name+'
                        '; -} -function moveDir(e, ui, obj){ - var dir = Directory.Parse(ui.draggable.attr('data-path')); - var target = Directory.Parse($(obj).parent('li').attr('data-path')); - if(target.fullPath != dir.path) - dir.Move(target.fullPath); -} -function moveFile(e, ui, obj){ - var f = new File(ui.draggable.attr('data-path')); - var d = Directory.Parse($(obj).parent('li').attr('data-path')); - var src = Directory.Parse(f.path); - if(f.path != d.fullPath) - f.Move(d.fullPath); -} -function moveObject(e, ui){ - e.stopPropagation(); - if(ui.draggable.hasClass('directory')) - moveDir(e, ui, this); - else - moveFile(e, ui, this); - dragFileOut(); -} -function clickFirstOnEnter(elId){ - $('#'+elId).unbind('keypress'); - $('.actions input').each(function(){this.blur();}); - $('#'+elId).keypress(function(e) { - if (e.keyCode == $.ui.keyCode.ENTER) { - e.stopPropagation(); - $(this).parent().find('.ui-dialog-buttonset button').eq(0).trigger('click'); - } - }); -} -function addDir(){ - var f = getSelectedDir(); - if(!f) - return; - clickFirstOnEnter('pnlDirName'); - $('#txtDirName').val(''); - - var dialogButtons = {}; - dialogButtons[t('CreateDir')] = function(){ - var newName = $.trim($('#txtDirName').val()); - if(!newName) - alert(t('E_MissingDirName')); - if(f.Create(newName)){ - $('#pnlDirName').dialog('close'); - } - }; - dialogButtons[t('Cancel')] = function(){$('#pnlDirName').dialog('close');}; - $('#pnlDirName').dialog({title: t('T_CreateDir'),modal:true,buttons:dialogButtons}); -} -var uploadFileList = new Array(); -function showUploadList(files){ - var filesPane = $('#uploadFilesList'); - filesPane.html(''); - clearFileField(); - for(i = 0; i < files.length; i++){ - filesPane.append('
                        '+files[i].name+' ('+RoxyUtils.FormatFileSize(files[i].size)+')
                        '); - } - if(files.length > 0) - $('#btnUpload').button('enable'); - else - $('#btnUpload').button('disable'); -} -function listUploadFiles(files){ - if(!window.FileList) { - $('#btnUpload').button('enable'); - } - else if(files.length > 0) { - uploadFileList = new Array(); - addUploadFiles(files); - } -} -function addUploadFiles(files){ - for(i = 0; i < files.length; i++) - uploadFileList.push(files[i]); - showUploadList(uploadFileList); -} -function removeUpload(i){ - var el = findUploadElement(i); - el.remove(); - try{ - uploadFileList.splice(i, 1); - showUploadList(uploadFileList); - } - catch(ex){ - //alert(ex); - } -} -function findUploadElement(i){ - return $('#uploadFilesList .fileUpload:eq(' + (i)+ ')'); -} -function updateUploadProgress(e, i){ - var el = findUploadElement(i); - var percent = 99; - if (e.lengthComputable) { - percent = Math.floor((e.loaded / e.total) * 100); - } - if(percent > 99) - percent = 99; - el.find('.uploadProgress').css('width', percent + '%'); - el.find('.progressPercent').html(' - ' + percent + '%'); -} -function uploadComplete(e, i){ - uploadFinished(e, i, 'ok'); -} -function uploadError(e, i){ - setUploadError(i); - uploadFinished(e, i, 'error'); -} -function setUploadError(i){ - var el = findUploadElement(i); - el.find('.uploadProgress').css('width', '100%').addClass('uploadError').removeClass('uploadComplete'); - el.find('.progressPercent').html(' - ' + t('E_UploadingFile')+''); -} -function setUploadSuccess(i){ - var el = findUploadElement(i); - el.find('.uploadProgress').css('width', '100%').removeClass('uploadError').addClass('uploadComplete'); - el.find('.progressPercent').html(' - 100%'); -} -function uploadCanceled(e, i){ - uploadFinished(e, i, 'error'); -} -function uploadFinished(e, i, res){ - var el = findUploadElement(i); - var httpRes = null; - try{ - httpRes = JSON.parse(e.target.responseText); - } - catch(ex){} - - if((httpRes && httpRes.res == 'error') || res != 'ok'){ - res = 'error'; - setUploadError(i); - } - else{ - res = 'ok'; - setUploadSuccess(i) - } - - el.attr('data-ulpoad', res); - checkUploadResult(); -} -function checkUploadResult(){ - var all = $('#uploadFilesList .fileUpload').length; - var completed = $('#uploadFilesList .fileUpload[data-ulpoad]').length; - var success = $('#uploadFilesList .fileUpload[data-ulpoad="ok"]').length; - if(completed == all){ - //$('#uploadResult').html(success + ' files uploaded; '+(all - success)+' failed'); - uploadFileList = new Array(); - var d = Directory.Parse($('#hdDir').val()); - d.ListFiles(true); - $('#btnUpload').button('disable'); - } -} -function fileUpload(f, i){ - var http = new XMLHttpRequest(); - var fData = new FormData(); - var el = findUploadElement(i); - el.find('.removeUpload').remove(); - fData.append("action", 'upload'); - fData.append("method", 'ajax'); - fData.append("d", $('#hdDir').attr('value')); - fData.append("files[]", f); - http.upload.addEventListener("progress", function(e){updateUploadProgress(e, i);}, false); - http.addEventListener("load", function(e){uploadComplete(e, i);}, false); - http.addEventListener("error", function(e){uploadError(e, i);}, false); - http.addEventListener("abort", function(e){uploadCanceled(e, i);}, false); - http.open("POST", RoxyFilemanConf.UPLOAD, true); - http.setRequestHeader("Accept", "*/*"); - http.send(fData); -} -function dropFiles(e, append){ - if(e && e.dataTransfer && e.dataTransfer.files){ - addFile(); - if(append) - addUploadFiles(e.dataTransfer.files); - else - listUploadFiles(e.dataTransfer.files); - } - else - addFile(); -} -function clearFileField(selector){ - if(!selector) - selector = '#fileUploads'; - try{ - $(selector).val(''); - $(selector).val(null); - } - catch(ex){} -} -function addFileClick(){ - $('#uploadResult').html(''); - showUploadList(new Array()); - addFile(); -} -function addFile(){ - clickFirstOnEnter('dlgAddFile'); - $('#uploadResult').html(''); - clearFileField(); - var dialogButtons = {}; - dialogButtons[t('Upload')] = {id:'btnUpload', text: t('Upload'), disabled:true, click:function(){ - if(!$('#fileUploads').val() && (!uploadFileList || uploadFileList.length == 0)) - alert(t('E_SelectFiles')); - else{ - if(!RoxyFilemanConf.UPLOAD){ - alert(t('E_ActionDisabled')); - //$('#dlgAddFile').dialog('close'); - } - else{ - if(window.FormData && window.XMLHttpRequest && window.FileList && uploadFileList && uploadFileList.length > 0){ - for(i = 0; i < uploadFileList.length; i++){ - fileUpload(uploadFileList[i], i); - } - } - else{ - document.forms['addfile'].action = RoxyFilemanConf.UPLOAD; - document.forms['addfile'].submit(); - } - } - } - }}; - - dialogButtons[t('Cancel')] = function(){$('#dlgAddFile').dialog('close');}; - $('#dlgAddFile').dialog({title:t('T_AddFile'),modal:true,buttons:dialogButtons,width:400}); -} -function fileUploaded(res){ - if(res.res == 'ok' && res.msg){ - $('#dlgAddFile').dialog('close'); - var d = Directory.Parse($('#hdDir').val()); - d.ListFiles(true); - alert(res.msg); - } - else if(res.res == 'ok'){ - $('#dlgAddFile').dialog('close'); - var d = Directory.Parse($('#hdDir').val()); - d.ListFiles(true); - } - else - alert(res.msg); -} -function renameDir(){ - var f = getSelectedDir(); - if(!f) - return; - if($('[data-path="'+f.fullPath+'"]').parents('li').length < 1){ - alert(t('E_CannotRenameRoot')); - return; - } - clickFirstOnEnter('pnlDirName'); - $('#txtDirName').val(f.name); - - var dialogButtons = {}; - dialogButtons[t('RenameDir')] = function(){ - var newName = $.trim($('#txtDirName').val()); - if(!newName) - alert(t('E_MissingDirName')); - if(f.Rename(newName)) - $('#pnlDirName').dialog('close'); - }; - dialogButtons[t('Cancel')] = function(){$('#pnlDirName').dialog('close');}; - - $('#pnlDirName').dialog({title:t('T_RenameDir'),modal:true,buttons:dialogButtons}); - RoxyUtils.SelectText('txtDirName', 0, new String(f.name).length); -} -function renameFile(){ - var f = getSelectedFile(); - if(!f) - return; - clickFirstOnEnter('pnlRenameFile'); - $('#txtFileName').val(f.name); - - var dialogButtons = {}; - dialogButtons[t('RenameFile')] = function(){ - var newName = $.trim($('#txtFileName').val()); - if(!newName) - alert('Missing file name'); - else if(f.Rename(newName)){ - $('li[data-path="'+f.fullPath+'"] .name').text(newName); - $('li[data-path="'+f.fullPath+'"]').attr('data-path', RoxyUtils.MakePath(f.path, newName)); - $('#pnlRenameFile').dialog('close'); - } - }; - dialogButtons[t('Cancel')] = function(){$('#pnlRenameFile').dialog('close');}; - - $('#pnlRenameFile').dialog({title:t('T_RenameFile'),modal:true,buttons:dialogButtons}); - if(f.name.lastIndexOf('.') > 0) - RoxyUtils.SelectText('txtFileName', 0, f.name.lastIndexOf('.')); -} -function getSelectedFile(){ - var ret = null; - if($('#pnlFileList .selected').length > 0) - ret = new File($('#pnlFileList .selected').attr('data-path')); - return ret; -} -function getSelectedDir(){ - var ret = null; - if($('#pnlDirList .selected')) - ret = Directory.Parse($('#pnlDirList .selected').closest('li').attr('data-path')); - - return ret; -} -function deleteDir(path){ - var d = null; - if(path) - d = Directory.Parse(path); - else - d = getSelectedDir(); - - if(d && confirm(t('Q_DeleteFolder'))){ - d.Delete(); - } -} -function deleteFile(){ - var f = getSelectedFile(); - if(f && confirm(t('Q_DeleteFile'))){ - f.Delete(); - } -} -function previewFile(){ - var f = getSelectedFile(); - if(f){ - window.open(f.fullPath); - } -} -function downloadFile(){ - var f = getSelectedFile(); - if(f && RoxyFilemanConf.DOWNLOAD){ - var url = RoxyUtils.AddParam(RoxyFilemanConf.DOWNLOAD, 'f', f.fullPath); - window.frames['frmUploadFile'].location.href = url; - } - else if(!RoxyFilemanConf.DOWNLOAD) - alert(t('E_ActionDisabled')); -} -function downloadDir(){ - var d = getSelectedDir(); - if(d && RoxyFilemanConf.DOWNLOADDIR){ - var url = RoxyUtils.AddParam(RoxyFilemanConf.DOWNLOADDIR, 'd', d.fullPath); - window.frames['frmUploadFile'].location.href = url; - } - else if(!RoxyFilemanConf.DOWNLOAD) - alert(t('E_ActionDisabled')); -} -function closeMenus(el){ - if(!el || el == 'dir') - $('#menuDir').fadeOut(); - if(!el || el == 'file') - $('#menuFile').fadeOut(); -} -function selectFirst(){ - var item = $('#pnlDirList li:first').children('div').first(); - if(item.length > 0) - selectDir(item); - else - window.setTimeout('selectFirst()', 300); -} -function tooltipContent(){ - if($('#menuFile').is(':visible')) - return ''; - var html = ''; - var f = File.Parse($(this).attr('data-path')); - if($('#hdViewType').val() == 'thumb' && f.IsImage()){ - html = f.fullPath+'
                        '+t('Size')+': '+RoxyUtils.FormatFileSize(f.size) + ' '+t('Dimensions')+': '+f.width+'x'+f.height+''; - } - else if(f.IsImage()){ - if(RoxyFilemanConf.GENERATETHUMB){ - imgUrl = RoxyUtils.AddParam(RoxyFilemanConf.GENERATETHUMB, 'f', f.fullPath); - imgUrl = RoxyUtils.AddParam(imgUrl, 'width', RoxyFilemanConf.PREVIEW_THUMB_WIDTH); - imgUrl = RoxyUtils.AddParam(imgUrl, 'height', RoxyFilemanConf.PREVIEW_THUMB_HEIGHT); - } - else - imgUrl = f.fullPath; - html = '
                        '+f.name+'
                        '+t('Size')+': '+RoxyUtils.FormatFileSize(f.size) + ' '+t('Dimensions')+': '+f.width+'x'+f.height+''; - } - else - html = f.fullPath+' '+t('Size')+': '+RoxyUtils.FormatFileSize(f.size) + ''; - return html; -} -function filterFiles(){ - var str = $('#txtSearch').val(); - $('#pnlSearchNoFiles').hide(); - if($('#pnlFileList li').length == 0) - return; - if(!str){ - $('#pnlFileList li').show(); - return; - } - var i = 0; - $('#pnlFileList li').each(function(){ - var name = $(this).children('.name').text(); - if(name.toLowerCase().indexOf(str.toLowerCase()) > -1){ - i++; - $(this).show(); - } - else{ - $(this).removeClass('selected'); - $(this).hide(); - } - }); - if(i == 0) - $('#pnlSearchNoFiles').show(); -} -function sortFiles(){ - var d = getSelectedDir(); - if(!d) - return; - d.ListFiles(); - filterFiles(); - switchView($('#hdViewType').val()); -} -function switchView(t){ - if(t == $('#hdViewType').val()) - return; - if(!t) - t = $('#hdViewType').val(); - $('.btnView').removeClass('selected'); - if(t == 'thumb'){ - $('#pnlFileList .icon').attr('src', 'images/blank.gif'); - $('#pnlFileList').addClass('thumbView'); - if($('#dynStyle').length == 0){ - $('head').append('