Changeset 722195
- Timestamp:
- 06/03/2013 05:52:33 PM (13 years ago)
- Location:
- wp-filebase
- Files:
-
- 296 added
- 28 edited
-
tags/0.2.9.37 (added)
-
tags/0.2.9.37/classes (added)
-
tags/0.2.9.37/classes/Admin.php (added)
-
tags/0.2.9.37/classes/AdminBar.php (added)
-
tags/0.2.9.37/classes/AdminGuiCats.php (added)
-
tags/0.2.9.37/classes/AdminGuiCss.php (added)
-
tags/0.2.9.37/classes/AdminGuiFiles.php (added)
-
tags/0.2.9.37/classes/AdminGuiManage.php (added)
-
tags/0.2.9.37/classes/AdminGuiSettings.php (added)
-
tags/0.2.9.37/classes/AdminGuiSupport.php (added)
-
tags/0.2.9.37/classes/AdminGuiTpls.php (added)
-
tags/0.2.9.37/classes/AdminHowToStart.php (added)
-
tags/0.2.9.37/classes/AdminLite.php (added)
-
tags/0.2.9.37/classes/AdvUploader.php (added)
-
tags/0.2.9.37/classes/BatchUploader.php (added)
-
tags/0.2.9.37/classes/Category.php (added)
-
tags/0.2.9.37/classes/Config.php (added)
-
tags/0.2.9.37/classes/Core.php (added)
-
tags/0.2.9.37/classes/Download.php (added)
-
tags/0.2.9.37/classes/File.php (added)
-
tags/0.2.9.37/classes/FileListTable.php (added)
-
tags/0.2.9.37/classes/FileUtils.php (added)
-
tags/0.2.9.37/classes/GetID3.php (added)
-
tags/0.2.9.37/classes/Item.php (added)
-
tags/0.2.9.37/classes/ListTpl.php (added)
-
tags/0.2.9.37/classes/Misc.php (added)
-
tags/0.2.9.37/classes/Models.php (added)
-
tags/0.2.9.37/classes/Output.php (added)
-
tags/0.2.9.37/classes/PLUpload.php (added)
-
tags/0.2.9.37/classes/PLUploader.php (added)
-
tags/0.2.9.37/classes/ProgressReporter.php (added)
-
tags/0.2.9.37/classes/SWFUpload.php (added)
-
tags/0.2.9.37/classes/Search.php (added)
-
tags/0.2.9.37/classes/Settings.php (added)
-
tags/0.2.9.37/classes/Setup.php (added)
-
tags/0.2.9.37/classes/Sync.php (added)
-
tags/0.2.9.37/classes/TplLib.php (added)
-
tags/0.2.9.37/classes/Widget.php (added)
-
tags/0.2.9.37/classes/WidgetForms.php (added)
-
tags/0.2.9.37/editor_plugin.php (added)
-
tags/0.2.9.37/embedded_forms.css (added)
-
tags/0.2.9.37/extras (added)
-
tags/0.2.9.37/extras/ckeditor (added)
-
tags/0.2.9.37/extras/ckeditor/images (added)
-
tags/0.2.9.37/extras/ckeditor/images/btn.gif (added)
-
tags/0.2.9.37/extras/ckeditor/plugin.js (added)
-
tags/0.2.9.37/extras/flvplayer (added)
-
tags/0.2.9.37/extras/flvplayer/OSplayer.swf (added)
-
tags/0.2.9.37/extras/getid3 (added)
-
tags/0.2.9.37/extras/getid3/extension.cache.dbm.php (added)
-
tags/0.2.9.37/extras/getid3/extension.cache.mysql.php (added)
-
tags/0.2.9.37/extras/getid3/getid3.lib.php (added)
-
tags/0.2.9.37/extras/getid3/getid3.php (added)
-
tags/0.2.9.37/extras/getid3/helperapps (added)
-
tags/0.2.9.37/extras/getid3/helperapps/readme.helperapps.txt (added)
-
tags/0.2.9.37/extras/getid3/module.archive.gzip.php (added)
-
tags/0.2.9.37/extras/getid3/module.archive.rar.php (added)
-
tags/0.2.9.37/extras/getid3/module.archive.szip.php (added)
-
tags/0.2.9.37/extras/getid3/module.archive.tar.php (added)
-
tags/0.2.9.37/extras/getid3/module.archive.zip.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.asf.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.bink.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.flv.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.matroska.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.mpeg.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.nsv.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.quicktime.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.real.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.riff.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio-video.swf.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.aa.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.aac.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.ac3.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.au.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.avr.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.bonk.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.dss.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.dts.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.flac.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.la.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.lpac.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.midi.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.mod.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.monkey.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.mp3.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.mpc.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.ogg.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.optimfrog.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.rkau.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.shorten.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.tta.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.voc.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.vqf.php (added)
-
tags/0.2.9.37/extras/getid3/module.audio.wavpack.php (added)
-
tags/0.2.9.37/extras/getid3/module.graphic.bmp.php (added)
-
tags/0.2.9.37/extras/getid3/module.graphic.efax.php (added)
-
tags/0.2.9.37/extras/getid3/module.graphic.gif.php (added)
-
tags/0.2.9.37/extras/getid3/module.graphic.jpg.php (added)
-
tags/0.2.9.37/extras/getid3/module.graphic.pcd.php (added)
-
tags/0.2.9.37/extras/getid3/module.graphic.png.php (added)
-
tags/0.2.9.37/extras/getid3/module.graphic.svg.php (added)
-
tags/0.2.9.37/extras/getid3/module.graphic.tiff.php (added)
-
tags/0.2.9.37/extras/getid3/module.misc.cue.php (added)
-
tags/0.2.9.37/extras/getid3/module.misc.exe.php (added)
-
tags/0.2.9.37/extras/getid3/module.misc.iso.php (added)
-
tags/0.2.9.37/extras/getid3/module.misc.msoffice.php (added)
-
tags/0.2.9.37/extras/getid3/module.misc.par2.php (added)
-
tags/0.2.9.37/extras/getid3/module.misc.pdf.php (added)
-
tags/0.2.9.37/extras/getid3/module.tag.apetag.php (added)
-
tags/0.2.9.37/extras/getid3/module.tag.id3v1.php (added)
-
tags/0.2.9.37/extras/getid3/module.tag.id3v2.php (added)
-
tags/0.2.9.37/extras/getid3/module.tag.lyrics3.php (added)
-
tags/0.2.9.37/extras/getid3/module.tag.xmp.php (added)
-
tags/0.2.9.37/extras/getid3/write.apetag.php (added)
-
tags/0.2.9.37/extras/getid3/write.id3v1.php (added)
-
tags/0.2.9.37/extras/getid3/write.id3v2.php (added)
-
tags/0.2.9.37/extras/getid3/write.lyrics3.php (added)
-
tags/0.2.9.37/extras/getid3/write.metaflac.php (added)
-
tags/0.2.9.37/extras/getid3/write.php (added)
-
tags/0.2.9.37/extras/getid3/write.real.php (added)
-
tags/0.2.9.37/extras/getid3/write.vorbiscomment.php (added)
-
tags/0.2.9.37/extras/jquery (added)
-
tags/0.2.9.37/extras/jquery/contextmenu (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/cmenu-gloss-cyan-menu-item-hover.gif (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/cmenu-gloss-menu-item-hover.gif (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/cmenu-gloss-semitransparent-menu-item-hover.png (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/cmenu-human-menu-item-hover.gif (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/cmenu-osx-menu-item-hover.gif (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/cmenu-vista-bg.gif (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/cmenu-vista-menu-item-hover.gif (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/cmenu-xp-bg.gif (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/delete_icon.gif (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/jquery.contextmenu.css (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/jquery.contextmenu.js (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/page_white_delete.png (added)
-
tags/0.2.9.37/extras/jquery/contextmenu/page_white_edit.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables (added)
-
tags/0.2.9.37/extras/jquery/dataTables/css (added)
-
tags/0.2.9.37/extras/jquery/dataTables/css/demo_page.css (added)
-
tags/0.2.9.37/extras/jquery/dataTables/css/demo_table.css (added)
-
tags/0.2.9.37/extras/jquery/dataTables/css/demo_table_jui.css (added)
-
tags/0.2.9.37/extras/jquery/dataTables/css/jquery.dataTables.css (added)
-
tags/0.2.9.37/extras/jquery/dataTables/css/jquery.dataTables_themeroller.css (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/Sorting icons.psd (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/back_disabled.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/back_enabled.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/back_enabled_hover.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/favicon.ico (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/forward_disabled.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/forward_enabled.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/forward_enabled_hover.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/sort_asc.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/sort_asc_disabled.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/sort_both.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/sort_desc.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/images/sort_desc_disabled.png (added)
-
tags/0.2.9.37/extras/jquery/dataTables/js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/js/jquery.dataTables.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/js/jquery.dataTables.min.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/js/jquery.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/DataTables.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/api (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/api/api.internal.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/api/api.methods.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/api/api.static.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.ajax.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.columns.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.constructor.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.data.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.draw.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.filter.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.info.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.init.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.length.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.page.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.processing.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.scrolling.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.sizing.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.sort.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.state.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/core/core.support.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/ext (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/ext/ext.classes.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/ext/ext.paging.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/ext/ext.sorting.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/ext/ext.types.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/model (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/model/model.column.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/model/model.defaults.columns.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/model/model.defaults.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/model/model.ext.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/model/model.row.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/model/model.search.js (added)
-
tags/0.2.9.37/extras/jquery/dataTables/src/model/model.settings.js (added)
-
tags/0.2.9.37/extras/jquery/jquery.cookie.js (added)
-
tags/0.2.9.37/extras/jquery/jquery.deserialize.js (added)
-
tags/0.2.9.37/extras/jquery/treeview (added)
-
tags/0.2.9.37/extras/jquery/treeview/images (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/ajax-loader.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/file.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/folder-closed.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/folder.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/minus.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/plus.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-black-line.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-black.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-default-line.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-default.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-famfamfam-line.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-famfamfam.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-gray-line.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-gray.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-red-line.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/images/treeview-red.gif (added)
-
tags/0.2.9.37/extras/jquery/treeview/jquery.treeview.async.js (added)
-
tags/0.2.9.37/extras/jquery/treeview/jquery.treeview.css (added)
-
tags/0.2.9.37/extras/jquery/treeview/jquery.treeview.edit.js (added)
-
tags/0.2.9.37/extras/jquery/treeview/jquery.treeview.js (added)
-
tags/0.2.9.37/extras/jquery/treeview/jquery.treeview.sortable.js (added)
-
tags/0.2.9.37/extras/phpthumb.bmp.php (added)
-
tags/0.2.9.37/extras/phpthumb.functions.php (added)
-
tags/0.2.9.37/extras/progressbar.class.php (added)
-
tags/0.2.9.37/images (added)
-
tags/0.2.9.37/images/admin_menu_icon.png (added)
-
tags/0.2.9.37/images/ajax-list-loader.gif (added)
-
tags/0.2.9.37/images/crystal_cat.png (added)
-
tags/0.2.9.37/images/dl_btn.png (added)
-
tags/0.2.9.37/images/dl_btn_hover.png (added)
-
tags/0.2.9.37/images/down-gray.png (added)
-
tags/0.2.9.37/images/down-green.png (added)
-
tags/0.2.9.37/images/down.png (added)
-
tags/0.2.9.37/images/folder48.png (added)
-
tags/0.2.9.37/images/wpfb-icon.png (added)
-
tags/0.2.9.37/js (added)
-
tags/0.2.9.37/js/admin.js (added)
-
tags/0.2.9.37/js/common.js (added)
-
tags/0.2.9.37/js/editor-plugin.js (added)
-
tags/0.2.9.37/js/live-admin.js (added)
-
tags/0.2.9.37/languages (added)
-
tags/0.2.9.37/languages/template.po (added)
-
tags/0.2.9.37/languages/wpfb-be_BY.mo (added)
-
tags/0.2.9.37/languages/wpfb-be_BY.po (added)
-
tags/0.2.9.37/languages/wpfb-de_DE.mo (added)
-
tags/0.2.9.37/languages/wpfb-de_DE.po (added)
-
tags/0.2.9.37/languages/wpfb-fa_IR.mo (added)
-
tags/0.2.9.37/languages/wpfb-fa_IR.po (added)
-
tags/0.2.9.37/languages/wpfb-fr_FR.mo (added)
-
tags/0.2.9.37/languages/wpfb-fr_FR.po (added)
-
tags/0.2.9.37/languages/wpfb-it_IT.mo (added)
-
tags/0.2.9.37/languages/wpfb-it_IT.po (added)
-
tags/0.2.9.37/languages/wpfb-lt_LT.mo (added)
-
tags/0.2.9.37/languages/wpfb-lt_LT.po (added)
-
tags/0.2.9.37/languages/wpfb-nl_NL.mo (added)
-
tags/0.2.9.37/languages/wpfb-nl_NL.po (added)
-
tags/0.2.9.37/languages/wpfb-pt_BR.mo (added)
-
tags/0.2.9.37/languages/wpfb-pt_BR.po (added)
-
tags/0.2.9.37/languages/wpfb-ru_RU.mo (added)
-
tags/0.2.9.37/languages/wpfb-ru_RU.po (added)
-
tags/0.2.9.37/languages/wpfb-sk_SK.mo (added)
-
tags/0.2.9.37/languages/wpfb-sk_SK.po (added)
-
tags/0.2.9.37/languages/wpfb-sr_RS.mo (added)
-
tags/0.2.9.37/languages/wpfb-sr_RS.po (added)
-
tags/0.2.9.37/languages/wpfb-sv_SE.mo (added)
-
tags/0.2.9.37/languages/wpfb-sv_SE.po (added)
-
tags/0.2.9.37/languages/wpfb-tr_TR.mo (added)
-
tags/0.2.9.37/languages/wpfb-tr_TR.po (added)
-
tags/0.2.9.37/lib (added)
-
tags/0.2.9.37/lib/wpfb_form_cat.php (added)
-
tags/0.2.9.37/lib/wpfb_form_file.php (added)
-
tags/0.2.9.37/nbproject (added)
-
tags/0.2.9.37/nbproject/private (added)
-
tags/0.2.9.37/nbproject/private/config.properties (added)
-
tags/0.2.9.37/nbproject/private/private.properties (added)
-
tags/0.2.9.37/nbproject/private/private.xml (added)
-
tags/0.2.9.37/nbproject/project.properties (added)
-
tags/0.2.9.37/nbproject/project.xml (added)
-
tags/0.2.9.37/readme.txt (added)
-
tags/0.2.9.37/tinymce (added)
-
tags/0.2.9.37/tinymce/editor_plugin.js (added)
-
tags/0.2.9.37/tinymce/images (added)
-
tags/0.2.9.37/tinymce/images/btn.gif (added)
-
tags/0.2.9.37/wp-filebase-admin.css (added)
-
tags/0.2.9.37/wp-filebase.css (added)
-
tags/0.2.9.37/wp-filebase.php (added)
-
tags/0.2.9.37/wp-filebase_css.php (added)
-
tags/0.2.9.37/wp-filebase_thumb.php (added)
-
tags/0.2.9.37/wpfb-ajax.php (added)
-
tags/0.2.9.37/wpfb-async-upload.php (added)
-
tags/0.2.9.37/wpfb-postbrowser.php (added)
-
trunk (modified) (1 prop)
-
trunk/classes/Admin.php (modified) (6 diffs)
-
trunk/classes/AdminGuiSettings.php (modified) (1 diff)
-
trunk/classes/AdminGuiTpls.php (modified) (2 diffs)
-
trunk/classes/AdvUploader.php (modified) (4 diffs)
-
trunk/classes/BatchUploader.php (modified) (1 diff)
-
trunk/classes/Core.php (modified) (3 diffs)
-
trunk/classes/Download.php (modified) (4 diffs)
-
trunk/classes/File.php (modified) (4 diffs)
-
trunk/classes/FileUtils.php (modified) (1 diff)
-
trunk/classes/Item.php (modified) (1 diff)
-
trunk/classes/ListTpl.php (modified) (3 diffs)
-
trunk/classes/Models.php (added)
-
trunk/classes/Output.php (modified) (8 diffs)
-
trunk/classes/PLUploader.php (modified) (1 diff)
-
trunk/classes/Search.php (modified) (2 diffs)
-
trunk/classes/Settings.php (added)
-
trunk/classes/Sync.php (modified) (3 diffs)
-
trunk/classes/Widget.php (modified) (5 diffs)
-
trunk/classes/WidgetForms.php (modified) (5 diffs)
-
trunk/editor_plugin.php (modified) (3 diffs)
-
trunk/extras/jquery/dataTables/src/DataTables.js (modified) (5 diffs)
-
trunk/extras/jquery/dataTables/src/api/api.methods.js (modified) (7 diffs)
-
trunk/extras/jquery/dataTables/src/ext/ext.paging.js (modified) (4 diffs)
-
trunk/extras/jquery/dataTables/src/model/model.column.js (modified) (4 diffs)
-
trunk/extras/jquery/dataTables/src/model/model.defaults.columns.js (modified) (4 diffs)
-
trunk/extras/jquery/dataTables/src/model/model.defaults.js (modified) (2 diffs)
-
trunk/languages/wpfb-sr_RS.mo (added)
-
trunk/languages/wpfb-sr_RS.po (added)
-
trunk/lib/wpfb_form_file.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-filebase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-filebase/trunk
-
Property
svn:ignore
set to
.git
-
Property
svn:ignore
set to
-
wp-filebase/trunk/classes/Admin.php
r702142 r722195 18 18 } 19 19 20 static function SettingsSchema() 21 { 22 $multiple_entries_desc = __("One entry per line. Seperate the title and a short tag (not longer than 8 characters) with '|'.<br />All lines beginning with '*' are selected by default.", WPFB); 23 $multiple_line_desc = __('One entry per line.', WPFB); 24 $bitrate_desc = __('Limits the maximum tranfer rate for downloads. 0 = unlimited', WPFB); 25 $traffic_desc = __('Limits the maximum data traffic. 0 = unlimited', WPFB); 26 $dls_per_day = __('downloads per day', WPFB); 27 $daily_limit_for = __('Daily limit for %s', WPFB); 28 29 $upload_path_base = str_replace(ABSPATH, '', get_option('upload_path')); 30 if($upload_path_base == '' || $upload_path_base == '/') 31 $upload_path_base = 'wp-content/uploads'; 32 33 $last_sync_time = intval(get_option(WPFB_OPT_NAME.'_cron_sync_time')); 34 $last_sync_time = ($last_sync_time > 0) ? (" (".sprintf( __('Last cron sync on %1$s at %2$s.',WPFB), date_i18n( get_option( 'date_format'), $last_sync_time ), date_i18n( get_option( 'time_format'), $last_sync_time ) ).")") : ''; 35 36 37 $list_tpls = array_keys(wpfb_call('ListTpl','GetAll')); 38 $list_tpls = empty($list_tpls) ? array() : array_combine($list_tpls, $list_tpls); 39 40 41 return 42 ( 43 44 array ( 45 46 // common 47 'upload_path' => array('default' => $upload_path_base . '/filebase', 'title' => __('Upload Path', WPFB), 'desc' => __('Path where all files are stored. Relative to WordPress\' root directory.', WPFB), 'type' => 'text', 'class' => 'code', 'size' => 65), 48 'thumbnail_size' => array('default' => 120, 'title' => __('Thumbnail size'), 'desc' => __('The maximum side of the image is scaled to this value.', WPFB), 'type' => 'number', 'class' => 'num', 'size' => 8), 49 'thumbnail_path' => array('default' => '', 'title' => __('Thumbnail Path',WPFB), 'desc' => __('Thumbnails can be stored at a different path than the actual files. Leave empty to use the default upload path.', WPFB), 'type' => 'text', 'class' => 'code', 'size' => 65), 50 51 'base_auto_thumb' => array('default' => true, 'title' => __('Auto-detect thumbnails',WPFB), 'type' => 'checkbox', 'desc' => __('Images are considered as thumbnails for files with the same name when syncing. (e.g `file.jpg` <=> `file.zip`)', WPFB)), 52 53 'fext_blacklist' => array('default' => 'db,tmp', 'title' => __('Extension Blacklist', WPFB), 'desc' => __('Files with an extension in this list are skipped while synchronisation. (seperate with comma)', WPFB), 'type' => 'text', 'class' => 'code', 'size' => 100), 54 55 'attach_pos' => array('default' => 1, 'title' => __('Attachment Position', WPFB), 'desc' => __('', WPFB), 'type' => 'select', 'options' => array(__('Before the Content',WPFB),__('After the Content',WPFB))), 56 57 'attach_loop' => array('default' => false,'title' => __('Attachments in post lists', WPFB), 'type' => 'checkbox', 'desc' => __('Attach files to posts in archives, index and search result.', WPFB)), 58 59 // display 60 'auto_attach_files' => array('default' => true,'title' => __('Show attached files', WPFB), 'type' => 'checkbox', 'desc' => __('If enabled, all associated files are listed below an article', WPFB)), 61 'filelist_sorting' => array('default' => 'file_display_name', 'title' => __('Default sorting', WPFB), 'type' => 'select', 'desc' => __('The file property lists are sorted by', WPFB), 'options' => self::FileSortFields()), 62 'filelist_sorting_dir' => array('default' => 0, 'title' => __('Sort Order:'/*def*/), 'type' => 'select', 'desc' => __('The sorting direction of file lists', WPFB), 'options' => array(0 => __('Ascending'), 1 => __('Descending'))), 63 'filelist_num' => array('default' => 0, 'title' => __('Number of files per page', WPFB), 'type' => 'number', 'desc' => __('Length of the file list per page. Set to 0 to disable the limit.', WPFB)), 64 65 'file_date_format' => array('default' => get_option('date_format'), 'title' => __('File Date Format', WPFB), 'desc' => __('Date/Time formatting for files.',WPFB).' '.__('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.'), 'type' => 'text', 'class' => 'small-text'), 66 67 68 69 // limits 70 'bitrate_unregistered' => array('default' => 0, 'title' => __('Bit rate limit for guests', WPFB), 'type' => 'number', 'unit' => 'KiB/Sec', 'desc' => &$bitrate_desc), 71 'bitrate_registered' => array('default' => 0, 'title' => __('Bit rate limit for registered users', WPFB), 'type' => 'number', 'unit' => 'KiB/Sec', 'desc' => &$bitrate_desc), 72 'traffic_day' => array('default' => 0, 'title' => __('Daily traffic limit', WPFB), 'type' => 'number', 'unit' => 'MiB', 'desc' => &$traffic_desc), 73 'traffic_month' => array('default' => 0, 'title' => __('Monthly traffic limit', WPFB), 'type' => 'number', 'unit' => 'GiB', 'desc' => &$traffic_desc), 74 'traffic_exceeded_msg' => array('default' => __('Traffic limit exceeded! Please try again later.', WPFB), 'title' => __('Traffic exceeded message', WPFB), 'type' => 'text', 'size' => 65), 75 'file_offline_msg' => array('default' => __('This file is currently offline.', WPFB), 'title' => __('File offline message', WPFB), 'type' => 'text', 'size' => 65), 76 77 'daily_user_limits' => array('default' => false, 'title' => __('Daily user download limits', WPFB), 'type' => 'checkbox', 'desc' => __('If enabled, unregistered users cannot download any files. You can set different limits for each user role below.', WPFB)), 78 79 'daily_limit_subscriber' => array('default' => 5, 'title' => sprintf($daily_limit_for, _x('Subscriber', 'User role')), 'type' => 'number', 'unit' => &$dls_per_day), 80 'daily_limit_contributor' => array('default' => 10, 'title' => sprintf($daily_limit_for, _x('Contributor', 'User role')), 'type' => 'number', 'unit' => &$dls_per_day), 81 'daily_limit_author' => array('default' => 15, 'title' => sprintf($daily_limit_for, _x('Author', 'User role')), 'type' => 'number', 'unit' => &$dls_per_day), 82 'daily_limit_editor' => array('default' => 20, 'title' => sprintf($daily_limit_for, _x('Editor', 'User role')), 'type' => 'number', 'unit' => &$dls_per_day), 83 84 'daily_limit_exceeded_msg' => array('default' => __('You can only download %d files per day.', WPFB), 'title' => __('Daily limit exceeded message', WPFB), 'type' => 'text', 'size' => 65), 85 86 // download 87 'disable_permalinks' => array('default' => false, 'title' => __('Disable download permalinks', WPFB), 'type' => 'checkbox', 'desc' => __('Enable this if you have problems with permalinks.', WPFB)), 88 'download_base' => array('default' => 'download', 'title' => __('Download URL base', WPFB), 'type' => 'text', 'desc' => sprintf(__('The url prefix for file download links. Example: <code>%s</code> (Only used when Permalinks are enabled.)', WPFB), get_option('home').'/%value%/category/file.zip')), 89 90 'file_browser_post_id' => array('default' => '', 'title' => __('Post ID of the file browser', WPFB), 'type' => 'number', 'unit' => '<span id="file_browser_post_title">'.(($fbid=WPFB_Core::GetOpt('file_browser_post_id'))?('<a href="'.get_permalink($fbid).'">'.get_the_title($fbid).'</a>'):'').'</span> <a href="javascript:;" class="button" onclick="WPFB_PostBrowser(\'file_browser_post_id\',\'file_browser_post_title\')">' . __('Select') . '</a>', 'desc' => __('Specify the ID of the post or page where the file browser should be placed. If you want to disable this feature leave the field blank.', WPFB).' '.__('Note that the selected page should <b>not have any sub-pages</b>!')), 91 92 'file_browser_cat_sort_by' => array('default' => 'cat_name', 'title' => __('File browser category sorting', WPFB), 'type' => 'select', 'desc' => __('The category property categories in the file browser are sorted by', WPFB), 'options' => self::CatSortFields()), 93 'file_browser_cat_sort_dir' => array('default' => 0, 'title' => __('Sort Order:'/*def*/), 'type' => 'select', 'desc' => '', 'options' => array(0 => __('Ascending'), 1 => __('Descending'))), 94 95 'file_browser_file_sort_by' => array('default' => 'file_display_name', 'title' => __('File browser file sorting', WPFB), 'type' => 'select', 'desc' => __('The file property files in the file browser are sorted by', WPFB), 'options' => self::FileSortFields()), 96 'file_browser_file_sort_dir' => array('default' => 0, 'title' => __('Sort Order:'/*def*/), 'type' => 'select', 'desc' => '', 'options' => array(0 => __('Ascending'), 1 => __('Descending'))), 97 98 'file_browser_fbc' => array('default' => false, 'title' => __('Files before Categories', WPFB), 'type' => 'checkbox', 'desc' => __('Files will appear above categories in the file browser.', WPFB)), 99 100 'small_icon_size' => array('default' => 32, 'title' => __('Small Icon Size'), 'desc' => __('Icon size (height) for categories and files. Set to 0 to show icons in full size.', WPFB), 'type' => 'number', 'class' => 'num', 'size' => 8), 101 102 103 'cat_drop_down' => array('default' => false, 'title' => __('Category drop down list', WPFB), 'type' => 'checkbox', 'desc' => __('Use category drop down list in the file browser instead of listing like files.', WPFB)), 104 105 'force_download' => array('default' => false, 'title' => __('Always force download', WPFB), 'type' => 'checkbox', 'desc' => __('If enabled files that can be viewed in the browser (like images, PDF documents or videos) can only be downloaded (no streaming).', WPFB)), 106 'range_download' => array('default' => true, 'title' => __('Send HTTP-Range header', WPFB), 'type' => 'checkbox', 'desc' => __('Allows users to pause downloads and continue later. In addition download managers can use multiple connections at the same time.', WPFB)), 107 'hide_links' => array('default' => false, 'title' => __('Hide download links', WPFB), 'type' => 'checkbox', 'desc' => sprintf(__('File download links wont be displayed in the browser\'s status bar. You should enable \'%s\' to make it even harder to find out the URL.', WPFB), __('Always force download', WPFB))), 108 'ignore_admin_dls' => array('default' => true, 'title' => __('Ignore downloads by admins', WPFB), 'type' => 'checkbox'), 109 'hide_inaccessible' => array('default' => true, 'title' => __('Hide inaccessible files and categories', WPFB), 'type' => 'checkbox', 'desc' => __('If enabled files tagged <i>For members only</i> will not be listed for guests or users whith insufficient rights.', WPFB)), 110 'inaccessible_msg' => array('default' => __('You are not allowed to access this file!', WPFB), 'title' => __('Inaccessible file message', WPFB), 'type' => 'text', 'size' => 65, 'desc' => (__('This message will be displayed if users try to download a file they cannot access', WPFB).'. '.__('You can enter a URL to redirect users.', WPFB))), 111 'inaccessible_redirect' => array('default' => false, 'title' => __('Redirect to login', WPFB), 'type' => 'checkbox', 'desc' => __('Guests trying to download inaccessible files are redirected to the login page if this option is enabled.', WPFB)), 112 'cat_inaccessible_msg' => array('default' => __('Access to category denied!', WPFB), 'title' => __('Inaccessible category message', WPFB), 'type' => 'text', 'size' => 65, 'desc' => (__('This message will be displayed if users try to access a category without permission.', WPFB))), 113 'login_redirect_src' => array('default' => false, 'title' => __('Redirect to referring page after login', WPFB), 'type' => 'checkbox', 'desc' => __('Users are redirected to the page where they clicked on the download link after logging in.', WPFB)), 114 115 'http_nocache' => array('default' => false, 'title' => __('Disable HTTP Caching', WPFB), 'type' => 'checkbox', 'desc' => __('Enable this if you have problems with downloads while using Wordpress with a cache plugin.', WPFB)), 116 117 'parse_tags_rss' => array('default' => true, 'title' => __('Parse template tags in RSS feeds', WPFB), 'type' => 'checkbox', 'desc' => __('If enabled WP-Filebase content tags are parsed in RSS feeds.', WPFB)), 118 119 'allow_srv_script_upload' => array('default' => false, 'title' => __('Allow script upload', WPFB), 'type' => 'checkbox', 'desc' => __('If you enable this, scripts like PHP or CGI can be uploaded. <b>WARNING:</b> Enabling script uploads is a <b>security risk</b>!', WPFB)), 120 'protect_upload_path' => array('default' => true, 'title' => __('Protect upload path', WPFB), 'type' => 'checkbox', 'desc' => __('This prevents direct access to files in the upload directory.', WPFB)), 121 122 123 'private_files' => array('default' => false, 'title' => __('Private Files', WPFB), 'type' => 'checkbox', 'desc' => __('Access to files is only permitted to owner and administrators.', WPFB)), 124 125 'frontend_upload' => array('default' => false, 'title' => __('Enable front end uploads', WPFB), 'type' => 'checkbox', 'desc' => __('Global option to allow file uploads from widgets and embedded file forms', WPFB)), // (Pro only) 126 127 128 'accept_empty_referers' => array('default' => true, 'title' => __('Accept empty referers', WPFB), 'type' => 'checkbox', 'desc' => __('If enabled, direct-link-protected files can be downloaded when the referer is empty (i.e. user entered file url in address bar or browser does not send referers)', WPFB)), 129 'allowed_referers' => array('default' => '', 'title' => __('Allowed referers', WPFB), 'type' => 'textarea', 'desc' => __('Sites with matching URLs can link to files directly.', WPFB).'<br />'.$multiple_line_desc), 130 131 //'dl_destroy_session' => array('default' => false, 'title' => __('Destroy session when downloading', WPFB), 'type' => 'checkbox', 'desc' => __('Should be enabled to allow users to download multiple files at the same time. This does not interfere WordPress user sessions, but can cause trouble with other plugins using the global $_SESSION.', WPFB)), 132 'use_fpassthru' => array('default' => false, 'title' => __('Use fpassthru', WPFB), 'type' => 'checkbox', 'desc' => __('Downloads will be serverd using the native PHP function fpassthru. Enable this when you are experiencing trouble with large files. Note that bandwidth throttle is not available for this method.', WPFB)), 133 134 'decimal_size_format' => array('default' => false, 'title' => __('Decimal file size prefixes', WPFB), 'type' => 'checkbox', 'desc' => __('Enable this if you want decimal prefixes (1 MB = 1000 KB = 1 000 000 B) instead of binary (1 MiB = 1024 KiB = 1 048 576 B)', WPFB)), 135 136 'admin_bar' => array('default' => true, 'title' => __('Add WP-Filebase to admin menu bar', WPFB), 'type' => 'checkbox', 'desc' => __('Display some quick actions for file management in the admin menu bar.', WPFB)), 137 //'file_context_menu' => array('default' => true, 'title' => '', 'type' => 'checkbox', 'desc' => ''), 138 139 'cron_sync' => array('default' => false, 'title' => __('Automatic Sync', WPFB), 'type' => 'checkbox', 'desc' => __('Schedules a cronjob to hourly synchronize the filesystem and the database.', WPFB).$last_sync_time), 140 141 'remove_missing_files' => array('default' => false, 'title' => __('Remove Missing Files', WPFB), 'type' => 'checkbox', 'desc' => __('Missing files are removed from the database during sync', WPFB)), 142 143 144 145 'search_integration' => array('default' => true, 'title' => __('Search Integration', WPFB), 'type' => 'checkbox', 'desc' => __('Searches in attached files and lists the associated posts and pages when searching the site.', WPFB)), 146 147 'search_result_tpl' => array('default' => 'default', 'title' => __('Search Result Template', WPFB), 'type' => 'select', 'options' => $list_tpls, 'desc' => __('Set the List Template used for Search Results when using the Search Widget', WPFB)), 148 149 150 'disable_id3' => array('default' => false, 'title' => __('Disable ID3 tag detection', WPFB), 'type' => 'checkbox', 'desc' => __('This disables all meta file info reading. Use this option if you have issues adding large files.', WPFB)), 151 'search_id3' => array('default' => true, 'title' => __('Search ID3 Tags', WPFB), 'type' => 'checkbox', 'desc' => __('Search in file meta data, like ID3 for MP3 files, EXIF for JPEG... (this option does not increase significantly server load since all data is cached in a MySQL table)', WPFB)), 152 'use_path_tags' => array('default' => false, 'title' => __('Use path instead of ID in Shortcode', WPFB), 'type' => 'checkbox', 'desc' => __('Files and Categories are identified by paths and not by their IDs in the generated Shortcodes', WPFB)), 153 'no_name_formatting' => array('default' => false, 'title' => __('Disable Name Formatting', WPFB), 'type' => 'checkbox', 'desc' => __('This will disable automatic formatting/uppercasing file names when they are used as title (e.g. when syncing)', WPFB)), 154 155 // file browser 156 'disable_footer_credits' => array('default' => true, 'title' => __('Remove WP-Filebase Footer credits', WPFB), 'type' => 'checkbox', 'desc' => sprintf(__('This disables the footer credits only displayed on <a href="%s">File Browser Page</a>. Why should you keep the credits? Every backlink helps WP-Filebase to get more popular, popularity motivates the developer to continue work on the plugin.', WPFB), get_permalink(WPFB_Core::GetOpt('file_browser_post_id')).'#wpfb-credits')), 157 'footer_credits_style' => array('default' => 'margin:0 auto 2px auto; text-align:center; font-size:11px;', 'title' => __('Footer credits Style', WPFB), 'type' => 'text', 'class' => 'code', 'desc' => __('Set custom CSS style for WP-Filebase footer credits',WPFB),'size'=>80), 158 'late_script_loading' => array('default' => false, 'title' => __('Late script loading', WPFB), 'type' => 'checkbox', 'desc' => __('Scripts will be included in content, not in header. Enable if your AJAX tree view does not work properly.', WPFB)), 159 160 'default_author' => array('default' => '', 'title' => __('Default Author', WPFB), 'desc' => __('This author will be used as form default and when adding files with FTP', WPFB), 'type' => 'text', 'size' => 65), 161 'default_roles' => array('default' => array(), 'title' => __('Default User Roles', WPFB), 'desc' => __('These roles are selected by default and will be used for files added with FTP', WPFB), 'type' => 'roles'), 162 163 'default_cat' => array('default' => 0, 'title' => __('Default Category', WPFB), 'desc' => __('Preset Category in the file form', WPFB), 'type' => 'cat'), 164 165 'languages' => array('default' => "English|en\nDeutsch|de", 'title' => __('Languages'), 'type' => 'textarea', 'desc' => &$multiple_entries_desc), 166 'platforms' => array('default' => "Windows 95|win95\n*Windows 98|win98\n*Windows 2000|win2k\n*Windows XP|winxp\n*Windows Vista|vista\n*Windows 7|win7\nLinux|linux\nMac OS X|mac", 'title' => __('Platforms', WPFB), 'type' => 'textarea', 'desc' => &$multiple_entries_desc, 'nowrap' => true), 167 'licenses' => array('default' => 168 "*Freeware|free\nShareware|share\nGNU General Public License|gpl|http://www.gnu.org/copyleft/gpl.html\nGNU Lesser General Public License|lgpl\nGNU Affero General Public License|agpl\nCC Attribution-NonCommercial-ShareAlike|ccbyncsa|http://creativecommons.org/licenses/by-nc-sa/3.0/", 'title' => __('Licenses', WPFB), 'type' => 'textarea', 'desc' => &$multiple_entries_desc, 'nowrap' => true), 169 'requirements' => array('default' => 170 "PDF Reader|pdfread|http://www.foxitsoftware.com/pdf/reader/addons.php 171 Java|java|http://www.java.com/download/ 172 Flash|flash|http://get.adobe.com/flashplayer/ 173 Open Office|ooffice|http://www.openoffice.org/download/index.html 174 .NET Framework 3.5|.net35|http://www.microsoft.com/downloads/details.aspx?FamilyID=333325fd-ae52-4e35-b531-508d977d32a6", 175 'title' => __('Requirements', WPFB), 'type' => 'textarea', 'desc' => $multiple_entries_desc . ' ' . __('You can optionally add |<i>URL</i> to each line to link to the required software/file.', WPFB), 'nowrap' => true), 176 177 'default_direct_linking' => array('default' => 1, 'title' => __('Default File Direct Linking'), 'type' => 'select', 'desc' => __('', WPFB), 'options' => array(1 => __('Allow direct linking', WPFB), 0 => __('Redirect to post', WPFB) )), 178 179 'custom_fields' => array('default' => "Custom Field 1|cf1\nCustom Field 2|cf2", 'title' => __('Custom Fields'), 'type' => 'textarea', 'desc' => 180 __('With custom fields you can add even more file properties.',WPFB).' '.$multiple_entries_desc), 181 182 183 184 185 186 'template_file' => array('default' => 187 <<<TPLFILE 188 <div class="wpfilebase-file-default" onclick="if('undefined' == typeof event.target.href) document.getElementById('wpfb-file-link-%uid%').click();"> 189 <div class="icon"><a href="%file_url%" target="_blank" title="Download %file_display_name%"><img align="middle" src="%file_icon_url%" alt="%file_display_name%" /></a></div> 190 <div class="filetitle"> 191 <a href="%file_url%" title="Download %file_display_name%" target="_blank" id="wpfb-file-link-%uid%">%file_display_name%</a> 192 <!-- IF %file_post_id% AND %post_id% != %file_post_id% --><a href="%file_post_url%" class="postlink">» %'Post'%</a><!-- ENDIF --> 193 <br /> 194 %file_name%<br /> 195 <!-- IF %file_version% -->%'Version:'% %file_version%<br /><!-- ENDIF --> 196 </div> 197 <div class="info"> 198 %file_size%<br /> 199 %file_hits% %'Downloads'%<br /> 200 <a href="#" onclick="return wpfilebase_filedetails(%uid%);">%'Details'%</a> 201 </div> 202 <div class="details" id="wpfilebase-filedetails%uid%" style="display: none;"> 203 <!-- IF %file_description% --><p>%file_description%</p><!-- ENDIF --> 204 <table border="0"> 205 <!-- IF %file_languages% --><tr><td><strong>%'Languages'%:</strong></td><td>%file_languages%</td></tr><!-- ENDIF --> 206 <!-- IF %file_author% --><tr><td><strong>%'Author'%:</strong></td><td>%file_author%</td></tr><!-- ENDIF --> 207 <!-- IF %file_platforms% --><tr><td><strong>%'Platforms'%:</strong></td><td>%file_platforms%</td></tr><!-- ENDIF --> 208 <!-- IF %file_requirements% --><tr><td><strong>%'Requirements'%:</strong></td><td>%file_requirements%</td></tr><!-- ENDIF --> 209 <!-- IF %file_category% --><tr><td><strong>%'Category:'%</strong></td><td>%file_category%</td></tr><!-- ENDIF --> 210 <!-- IF %file_license% --><tr><td><strong>%'License'%:</strong></td><td>%file_license%</td></tr><!-- ENDIF --> 211 <tr><td><strong>%'Date'%:</strong></td><td>%file_date%</td></tr> 212 </table> 213 </div> 214 <div style="clear: both;"></div> 215 </div> 216 TPLFILE 217 , 'title' => __('Default File Template', WPFB), 'type' => 'textarea', 'desc' => (self::TplFieldsSelect('template_file') . '<br />' . __('The template for attachments', WPFB)), 'class' => 'code'), 218 219 'template_cat' => array('default' => 220 <<<TPLCAT 221 <div class="wpfilebase-cat-default"> 222 <h3> 223 <!-- IF %cat_has_icon% || true -->%cat_small_icon%<!-- ENDIF --> 224 <a href="%cat_url%" title="Go to category %cat_name%">%cat_name%</a> 225 <span>%cat_num_files% <!-- IF %cat_num_files% == 1 -->file<!-- ELSE -->files<!-- ENDIF --></span> 226 </h3> 227 </div> 228 TPLCAT 229 , 'title' => __('Category Template', WPFB), 'type' => 'textarea', 'desc' => (self::TplFieldsSelect('template_cat', false, true) . '<br />' . __('The template for category lists (used in the file browser)', WPFB)), 'class' => 'code'), 230 231 'dlclick_js' => array('default' => 232 <<<JS 233 if(typeof pageTracker == 'object') { 234 pageTracker._trackPageview(file_url); // new google analytics tracker 235 } else if(typeof urchinTracker == 'function') { 236 urchinTracker(file_url); // old google analytics tracker 237 } 238 JS 239 , 'title' => __('Download JavaScript', WPFB), 'type' => 'textarea', 'desc' => __('Here you can enter JavaScript Code which is executed when a user clicks on file download link. The following variables can be used: <i>file_id</i>: the ID of the file, <i>file_url</i>: the clicked download url', WPFB), 'class' => 'code'), 240 241 //'max_dls_per_ip' => array('default' => 10, 'title' => __('Maximum downloads', WPFB), 'type' => 'number', 'unit' => 'per file, per IP Address', 'desc' => 'Maximum number of downloads of a file allowed for an IP Address. 0 = unlimited'), 242 //'archive_lister' => array('default' => false, 'title' => __('Archive lister', WPFB), 'type' => 'checkbox', 'desc' => __('Uploaded files are scanned for archives', WPFB)), 243 //'enable_ratings' => array('default' => false, 'title' => __('Ratings'), 'type' => 'checkbox', 'desc' => ''), 244 ) 245 246 ); 247 } 248 249 static function TplVarsDesc($for_cat=false) 250 { 251 if($for_cat) return array( 252 'cat_name' => __('The category name', WPFB), 253 'cat_description' => __('Short description', WPFB), 254 255 'cat_url' => __('The category URL', WPFB), 256 'cat_path' => __('Category path (e.g cat1/cat2/)', WPFB), 257 'cat_folder' => __('Just the category folder name, not the path', WPFB), 258 259 'cat_icon_url' => __('URL of the thumbnail or icon', WPFB), 260 'cat_small_icon' => sprintf(__('HTML image tag for a small icon (height %d)'), 32), 261 'cat_has_icon' => __('Wether the category has a custom icon (boolean 0/1)'), 262 263 264 'cat_parent_name' => __('Name of the parent categories (empty if none)', WPFB), 265 'cat_num_files' => __('Number of files in the category', WPFB), 266 'cat_num_files_total' => __('Number of files in the category and all child categories', WPFB), 267 268 //'cat_required_level' => __('The minimum user level to view this category (-1 = guest, 0 = Subscriber ...)', WPFB), 269 'cat_user_can_access' => sprintf(__('Variable to check if the %s is accessible (boolean 0/1)', WPFB),__('Category')), 270 271 'cat_id' => __('The category ID', WPFB), 272 'uid' => __('A unique ID number to identify elements within a template', WPFB), 273 ); 274 else return array_merge(array( 275 'file_display_name' => __('Title', WPFB), 276 'file_name' => __('Name of the file', WPFB), 277 278 'file_url' => __('Download URL', WPFB), 279 'file_url_encoded' => __('Download URL encoded for use in query strings', WPFB), 280 281 'file_icon_url' => __('URL of the thumbnail or icon', WPFB), 282 283 284 'file_size' => __('Formatted file size', WPFB), 285 'file_date' => __('Formatted file date', WPFB), 286 'file_version' => __('File version', WPFB), 287 'file_author' => __('Author'), 288 'file_tags' => __('Tags'), 289 'file_description' => __('Short description', WPFB), 290 'file_languages' => __('Supported languages', WPFB), 291 'file_platforms' => __('Supported platforms (operating systems)', WPFB), 292 'file_requirements' => __('Requirements to use this file', WPFB), 293 'file_license' => __('License', WPFB), 294 295 'file_category' => __('The category name', WPFB), 296 297 298 'file_thumbnail' => __('Name of the thumbnail file', WPFB), 299 'cat_icon_url' => __('URL of the category icon (if any)', WPFB), 300 'cat_small_icon' => __('Category').': '.sprintf(__('HTML image tag for a small icon (height %d)'), 32), 301 302 303 304 //'file_required_level' => __('The minimum user level to download this file (-1 = guest, 0 = Subscriber ...)', WPFB), 305 'file_user_can_access' => sprintf(__('Variable to check if the %s is accessible (boolean 0/1)', WPFB),__('File',WPFB)), 306 307 'file_offline' => __('1 if file is offline, otherwise 0', WPFB), 308 'file_direct_linking' => __('1 if direct linking is allowed, otherwise 0', WPFB), 309 310 //'file_update_of' => 311 'file_post_id' => __('ID of the post/page this file belongs to', WPFB), 312 'file_added_by' => __('User Name of the owner', WPFB), 313 'file_hits' => __('How many times this file has been downloaded.', WPFB), 314 //'file_ratings' => 315 //'file_rating_sum' => 316 'file_last_dl_ip' => __('IP Address of the last downloader', WPFB), 317 'file_last_dl_time' => __('Time of the last download', WPFB), 318 319 'file_extension' => sprintf(__('Lowercase file extension (e.g. \'%s\')', WPFB), 'pdf'), 320 'file_type' => sprintf(__('File content type (e.g. \'%s\')', WPFB), 'image/png'), 321 322 323 'file_post_url' => __('URL of the post/page this file belongs to', WPFB), 324 325 'file_path' => __('Category path and file name (e.g cat1/cat2/file.ext)', WPFB), 326 327 'file_id' => __('The file ID', WPFB), 328 329 'uid' => __('A unique ID number to identify elements within a template', WPFB), 330 'post_id' => __('ID of the current post or page', WPFB), 331 'wpfb_url' => sprintf(__('Plugin root URL (%s)',WPFB), WPFB_PLUGIN_URI) 332 ), WPFB_Core::GetCustomFields(true)); 333 } 334 335 static function FileSortFields() 336 { 337 return array_merge(array( 338 'file_display_name' => __('Title', WPFB), 339 'file_name' => __('Name of the file', WPFB), 340 'file_version' => __('File version', WPFB), 341 342 'file_hits' => __('How many times this file has been downloaded.', WPFB), 343 'file_size' => __('Formatted file size', WPFB), 344 'file_date' => __('Formatted file date', WPFB), 345 'file_last_dl_time' => __('Time of the last download', WPFB), 346 347 'file_path' => __('Relative path of the file'), 348 'file_id' => __('File ID'), 349 350 'file_category_name' => __('Category Name', WPFB), 351 'file_category' => __('Category ID', WPFB), 352 353 'file_description' => __('Short description', WPFB), 354 'file_author' => __('Author', WPFB), 355 'file_license' => __('License', WPFB), 356 357 'file_post_id' => __('ID of the post/page this file belongs to', WPFB), 358 'file_added_by' => __('User Name of the owner', WPFB), 359 360 //'file_offline' => __('Offline > Online', WPFB), 361 //'file_direct_linking' => __('Direct linking > redirect to post', WPFB), 362 363 ), WPFB_Core::GetCustomFields(true)); 364 } 365 366 static function CatSortFields() 367 { 368 return array( 369 'cat_name' => __('Category Name', WPFB), 370 'cat_folder' => __('Name of the Category folder', WPFB), 371 'cat_description' => __('Short description', WPFB), 372 373 'cat_path' => __('Relative path of the category folder', WPFB), 374 'cat_id' => __('Category ID', WPFB), 375 'cat_parent' => __('Parent Category ID', WPFB), 376 377 'cat_num_files' => __('Number of files directly in the category', WPFB), 378 'cat_num_files_total' => __('Number of all files in the category and all sub-categories', WPFB), 379 380 'cat_order' => __('Custom Category Order', WPFB) 381 382 //'cat_required_level' => __('The minimum user level to access (-1 = guest, 0 = Subscriber ...)', WPFB) 383 ); 384 } 385 386 static function TplFieldsSelect($input, $short=false, $for_cat=false) 387 { 388 $out = __('Add template variable:', WPFB) . ' <select name="_wpfb_tpl_fields" onchange="WPFB_AddTplVar(this, \'' . $input . '\')"><option value="">'.__('Select').'</option>'; 389 foreach(self::TplVarsDesc($for_cat) as $tag => $desc) 390 $out .= '<option value="'.$tag.'" title="'.$desc.'">'.$tag.($short ? '' : ' ('.$desc.')').'</option>'; 391 $out .= '</select>'; 392 $out .= '<small>('.__('For some files there are more tags available. You find a list of all tags below the form when editing a file.',WPFB).'</small>'; 393 return $out; 394 } 395 396 // copy of wp's copy_dir, but moves everything 397 static function MoveDir($from, $to) 398 { 399 require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php'); 400 require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php'); 401 402 $wp_filesystem = new WP_Filesystem_Direct(null); 403 404 $dirlist = $wp_filesystem->dirlist($from); 405 406 $from = trailingslashit($from); 407 $to = trailingslashit($to); 408 409 foreach ( (array) $dirlist as $filename => $fileinfo ) { 410 if ( 'f' == $fileinfo['type'] ) { 411 if ( ! $wp_filesystem->move($from . $filename, $to . $filename, true) ) 412 return false; 413 $wp_filesystem->chmod($to . $filename, octdec(WPFB_PERM_FILE)); 414 } elseif ( 'd' == $fileinfo['type'] ) { 415 if ( !$wp_filesystem->mkdir($to . $filename, octdec(WPFB_PERM_DIR)) ) 416 return false; 417 if(!self::MoveDir($from . $filename, $to . $filename)) 418 return false; 419 } 420 } 421 422 // finally delete the from dir 423 @rmdir($from); 424 425 return true; 426 } 20 static function SettingsSchema() { return wpfb_call('Settings','Schema'); } 427 21 428 22 static function InsertCategory($catarr) … … 657 251 if(!($update && $remote_redirect) && is_file($file->GetLocalPath()) && empty($data->no_scan)) 658 252 { 659 $file->file_size = WPFB_FileUtils::GetFileSize($file->GetLocalPath());253 $file->file_size = isset($data->file_size) ? $data->file_size : WPFB_FileUtils::GetFileSize($file->GetLocalPath()); 660 254 $file->file_mtime = filemtime($file->GetLocalPath()); 661 255 $old_hash = $file->file_hash; … … 774 368 775 369 776 777 778 370 static function ParseFileNameVersion($file_name, $file_version) { 779 371 $fnwv = substr($file_name, 0, strrpos($file_name, '.'));// remove extension … … 1125 717 <?php 1126 718 } 1127 1128 1129 719 // this is used for post filter 1130 720 public function ProcessWidgetUpload(){ … … 1139 729 // nonce/referer check (security) 1140 730 if(!wp_verify_nonce($_POST['wpfb-file-nonce'],$nonce_action) || !check_admin_referer($nonce_action,'wpfb-file-nonce')) 1141 wp_die(__('Cheatin’ uh?') . ' ( nonce)');731 wp_die(__('Cheatin’ uh?') . ' (security)'); 1142 732 } 1143 733 … … 1191 781 1192 782 $cols = $wpdb->get_col("SHOW COLUMNS FROM $wpdb->wpfilebase_files LIKE 'file_custom_%'"); 783 1193 784 1194 785 $custom_fields = WPFB_Core::GetCustomFields(); -
wp-filebase/trunk/classes/AdminGuiSettings.php
r702142 r722195 227 227 __('File Browser',WPFB) => array('file_browser_post_id','file_browser_cat_sort_by','file_browser_cat_sort_dir','file_browser_file_sort_by','file_browser_file_sort_dir','file_browser_fbc', 'late_script_loading','small_icon_size', 228 228 'disable_footer_credits','footer_credits_style', 229 ),229 ), 230 230 __('Download', WPFB) => array('hide_links', 'disable_permalinks', 'download_base', 'force_download', 'range_download', 'http_nocache', 'ignore_admin_dls', 'accept_empty_referers','allowed_referers' /*,'dl_destroy_session'*/,'use_fpassthru'), 231 231 __('Form Presets', WPFB) => array('default_author','default_roles', 'default_cat', 'default_direct_linking','languages', 'platforms', 'licenses', 'requirements', 'custom_fields'), -
wp-filebase/trunk/classes/AdminGuiTpls.php
r702142 r722195 260 260 <th scope="row" class="check-column"><input type="checkbox" name="tpl[]" value="<?php echo esc_attr($tpl_tag) ?>" /></th> 261 261 <td class="column-title"> 262 <strong><a class="row-title" href="<?php echo $edit_link ?>" title="<?php printf(__('Edit “%s”'), $tpl_tag) ?>"><?php echo self::TplTitle($tpl_tag); ?></a></strong> 262 <strong><a class="row-title" href="<?php echo $edit_link ?>" title="<?php printf(__('Edit “%s”'), $tpl_tag) ?>"><?php echo self::TplTitle($tpl_tag); ?></a></strong><br /> 263 <code>tag=<?php echo $tpl_tag; ?></code> 263 264 <div class="row-actions"><span class='edit'><a href="<?php echo $edit_link ?>" title="<?php _e('Edit this item') ?>"><?php _e('Edit') ?></a></span> 264 265 <?php if(!in_array($tpl_tag, self::$protected_tags)){ ?><span class='trash'>| <a class='submitdelete' title='<?php _e('Delete this item permanently') ?>' href='<?php echo add_query_arg(array('action'=>'del','type'=>$type,'tpl'=>$tpl_tag)).'#'.$type ?>'><?php _e('Delete') ?></a></span><?php } ?> … … 345 346 <?php _e('Template Code:', WPFB) ?><br /> 346 347 <textarea id="<?php echo $code_id ?>" cols="70" rows="<?php echo (max(2, count(explode("\n",$tpl_code)))+3); ?>" wrap="off" name="tplcode" class="codepress html wpfilebase-tpledit" onkeyup="WPFB_PreviewTpl(this, '<?php echo $type ?>')" onchange="WPFB_PreviewTpl(this, '<?php echo $type ?>')"><?php echo htmlspecialchars($tpl_code) ?></textarea><br /> 347 <?php echo WPFB_Admin::TplFieldsSelect($code_id, false, $cat) ?>348 <?php wpfb_loadclass('Models'); echo WPFB_Models::TplFieldsSelect($code_id, false, $cat) ?> 348 349 </p> 349 350 <?php } ?> -
wp-filebase/trunk/classes/AdvUploader.php
r660375 r722195 38 38 { 39 39 $this->Scripts($prefix); 40 ?>41 40 42 <script type="text/javascript"> 43 //<![CDATA[ 44 //jQuery(document).ready(function($){ 41 $minify = true; 42 43 if($minify) ob_start(); 44 ?><script type="text/javascript"> 45 /* <![CDATA[ */ 46 47 45 48 function fileQueued(fileObj) { 46 49 jQuery('#file-upload-progress').show().html('<div class="progress"><div class="percent">0%</div><div class="bar" style="width: 30px"></div></div><div class="filename original"> ' + fileObj.name + '</div>'); … … 55 58 jQuery('#cancel-upload').show().prop('disabled', false); 56 59 57 / / delete already uploaded temp file60 /* delete already uploaded temp file */ 58 61 if(jQuery('#file_flash_upload').val() != '0') { 59 62 jQuery.ajax({type: 'POST', async: true, url:"<?php echo esc_attr( WPFB_PLUGIN_URI.'wpfb-async-upload.php' ); ?>", … … 78 81 79 82 function uploadSuccess(fileObj, serverData) { 80 / / if async-upload returned an error message, place it in the media item div and return83 /* if async-upload returned an error message, place it in the media item div and return */ 81 84 if ( serverData.match('media-upload-error') || serverData.match('error-div') ) { 82 85 wpFileError(fileObj, serverData); … … 117 120 } 118 121 119 //]]> 122 123 /* ]]> */ 120 124 </script> 121 <?php 125 <?php 126 127 if($minify) { // todo: remove // comments!! 128 echo str_replace(array(" /* <![CDATA[ */ "," /* ]]> */ "), array("\r\n/* <![CDATA[ */\r\n","\r\n/* ]]> */\r\n"), 129 str_replace(array("\r\n", "\n"), " ", ob_get_clean()) 130 ); 131 } 122 132 } 123 133 -
wp-filebase/trunk/classes/BatchUploader.php
r702142 r722195 143 143 batchUploaderSetPresetsMore(pm); 144 144 }); 145 batchUploaderSetPresetsMore( parseInt(getUserSetting('wpfb_batch_presets_more')));145 batchUploaderSetPresetsMore(getUserSetting('wpfb_batch_presets_more') ? parseInt(getUserSetting('wpfb_batch_presets_more')) : 0); 146 146 }); 147 147 148 148 function batchUploaderSetPresetsMore(m) 149 149 { 150 if(isNaN(m)) m = 0; 150 151 var form = jQuery('#wpfb-batch-uploader-presets').find('form'); 151 152 var s = (m+morePresets); -
wp-filebase/trunk/classes/Core.php
r702142 r722195 256 256 'pagenav' => 1, 257 257 'linktext' => null, 258 258 259 259 ), $atts), $content, $tag); 260 260 } … … 330 330 331 331 $conf = array( 332 'ql'=> 1, // querylinks with jQuery332 'ql'=>!is_admin(), // querylinks with jQuery 333 333 'hl'=> (int)self::GetOpt('hide_links'), // hide links 334 334 'pl'=>(self::GetOpt('disable_permalinks') ? 0 : (int)!!get_option('permalink_structure')), // permlinks … … 406 406 static function GetMaxUlSize() { return wpfb_call('Misc','ParseIniFileSize', ini_get('upload_max_filesize')); } 407 407 408 public static function GetCustomFields($full_field_names=false ) {408 public static function GetCustomFields($full_field_names=false, &$default_values=null) { 409 409 $custom_fields = isset(WPFB_Core::$settings->custom_fields)?explode("\n",WPFB_Core::$settings->custom_fields):array(); 410 410 $arr = array(); 411 $default_values = array(); 411 412 if(empty($custom_fields[0])) return array(); 412 413 foreach($custom_fields as $cf) { 413 414 $cfa = explode("|", $cf); 414 $arr[$full_field_names?('file_custom_'.trim($cfa[1])):trim($cfa[1])] = $cfa[0]; 415 $arr[$k = $full_field_names?('file_custom_'.trim($cfa[1])):trim($cfa[1])] = $cfa[0]; 416 $default_values[$k] = empty($cfa[2]) ? '' : $cfa[2]; 415 417 } 416 418 return $arr; -
wp-filebase/trunk/classes/Download.php
r702142 r722195 43 43 $traffic = wpfb_call('Misc','GetTraffic'); 44 44 45 $limit_month = (WPFB_Core::GetOpt('traffic_month') * 10 48576);46 $limit_day = (WPFB_Core::GetOpt('traffic_day') * 10 73741824);45 $limit_month = (WPFB_Core::GetOpt('traffic_month') * 1073741824); //GiB 46 $limit_day = (WPFB_Core::GetOpt('traffic_day') * 1048576); // MiB 47 47 48 48 return ( ($limit_month == 0 || ($traffic['month'] + $file_size) < $limit_month) && ($limit_day == 0 || ($traffic['today'] + $file_size) < $limit_day) ); … … 417 417 418 418 $begin = 0; 419 $end = $size ;419 $end = $size-1; 420 420 421 421 $http_range = isset($_SERVER['HTTP_RANGE']) ? $_SERVER['HTTP_RANGE'] : ''; 422 422 if(!empty($http_range) && strpos($http_range, 'bytes=') !== false && strpos($http_range, ',') === false) // multi-range not supported (yet)! 423 423 { 424 $range = explode('-', trim(substr($http_range, 6))); 425 $begin = 0 + trim($range[0]); 426 if(!empty($range[1])) 427 $end = 0 + trim($range[1]); 424 $range = array_map('trim',explode('-', trim(substr($http_range, 6)))); 425 if(is_numeric($range[0])) { 426 $begin = 0 + $range[0]; 427 if(is_numeric($range[1])) $end = 0 + $range[1]; 428 } else { 429 $begin = $size - $range[1]; // format "-x": last x bytes 430 } 428 431 } else 429 432 $http_range = ''; 430 433 431 if($begin > 0 || $end < $size)434 if($begin > 0 || $end < ($size-1)) 432 435 header('HTTP/1.0 206 Partial Content'); 433 436 else 434 437 header('HTTP/1.0 200 OK'); 435 438 436 $length = ($end-$begin );439 $length = ($end-$begin+1); 437 440 WPFB_Download::AddTraffic($length); 438 441 … … 448 451 header("Content-Length: " . $length); 449 452 if(!empty($http_range)) 450 header("Content-Range: bytes " . $begin . "-" . ($end-1) . "/" . $size);453 header("Content-Range: bytes $begin-$end/$size"); 451 454 452 455 // clean up things that are not needed for download … … 484 487 $cur = $begin; 485 488 486 while(!@feof($fh) && $cur < $end && @connection_status() == 0)489 while(!@feof($fh) && $cur <= $end && @connection_status() == 0) 487 490 { 488 $nbytes = min($buffer_size, $end-$cur );491 $nbytes = min($buffer_size, $end-$cur+1); 489 492 $ts = microtime(true); 490 493 -
wp-filebase/trunk/classes/File.php
r702142 r722195 400 400 401 401 case 'file_description': return nl2br($this->file_description); 402 case 'file_tags': return str_replace(',',', ',trim($this->file_tags,','));402 case 'file_tags': return esc_html(str_replace(',',', ',trim($this->file_tags,','))); 403 403 404 404 case 'file_date': … … 419 419 { 420 420 $path = explode('/',substr($name, 10)); 421 return htmlspecialchars($this->getInfoValue($path));421 return esc_html($this->getInfoValue($path)); 422 422 } elseif(strpos($name, 'file_custom') === 0) // dont esc custom 423 423 return isset($this->$name) ? $this->$name : ''; … … 432 432 } 433 433 434 return isset($this->$name) ? htmlspecialchars($this->$name) : '';434 return isset($this->$name) ? esc_html($this->$name) : ''; 435 435 } 436 436 … … 519 519 $wpdb->query("UPDATE " . $wpdb->wpfilebase_files . " SET file_hits = file_hits + 1, file_last_dl_ip = '" . $downloader_ip . "', file_last_dl_time = '" . current_time('mysql') . "' WHERE file_id = " . (int)$this->file_id); 520 520 } 521 522 // external hooks 523 do_action( 'wpfilebase_file_downloaded', $this->file_id ); 521 524 522 525 // download or redirect -
wp-filebase/trunk/classes/FileUtils.php
r702142 r722195 91 91 $name = strtolower(substr($name, strrpos($name, '.') + 1)); 92 92 return ($name == 'png' || $name == 'gif' || $name == 'jpg' || $name == 'jpeg' || $name == 'bmp' || $name == 'tif' || $name == 'tiff'); 93 }94 93 } 94 95 96 // copy of wp's copy_dir, but moves everything 97 static function MoveDir($from, $to) 98 { 99 require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php'); 100 require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php'); 101 102 $wp_filesystem = new WP_Filesystem_Direct(null); 103 104 $dirlist = $wp_filesystem->dirlist($from); 105 106 $from = trailingslashit($from); 107 $to = trailingslashit($to); 108 109 foreach ( (array) $dirlist as $filename => $fileinfo ) { 110 if ( 'f' == $fileinfo['type'] ) { 111 if ( ! $wp_filesystem->move($from . $filename, $to . $filename, true) ) 112 return false; 113 $wp_filesystem->chmod($to . $filename, octdec(WPFB_PERM_FILE)); 114 } elseif ( 'd' == $fileinfo['type'] ) { 115 if ( !$wp_filesystem->mkdir($to . $filename, octdec(WPFB_PERM_DIR)) ) 116 return false; 117 if(!self::MoveDir($from . $filename, $to . $filename)) 118 return false; 119 } 120 } 121 122 // finally delete the from dir 123 @rmdir($from); 124 125 return true; 126 } 127 128 } -
wp-filebase/trunk/classes/Item.php
r702142 r722195 489 489 } else { 490 490 if(!@is_dir($new_path)) wp_mkdir_p($new_path); 491 if(!@WPFB_Admin::MoveDir($old_path, $new_path)) 491 wpfb_loadclass('FileUtils'); 492 if(!@WPFB_FileUtils::MoveDir($old_path, $new_path)) 492 493 return array( 'error' => sprintf('Could not move folder %s to %s', $old_path, $new_path)); 493 494 } -
wp-filebase/trunk/classes/ListTpl.php
r702142 r722195 61 61 62 62 $count = 0; 63 $str = preg_replace("/jQuery\((.+?)\)\.dataTable\s*\((.*?)\)\s*;/", 'jQuery($1).dataTable( wpfb_DataTableOptionsFilter'.$uid.'($2));'." /*%WPFB_DATA_TABLE_OPTIONS_FILTER%*/", $str, -1, $count);63 $str = preg_replace("/jQuery\((.+?)\)\.dataTable\s*\((.*?)\)\s*;/", 'jQuery($1).dataTable((function(options){/*%WPFB_DATA_TABLE_OPTIONS_FILTER%*/})($2));', $str, -1, $count); 64 64 if($count > 0) 65 65 { … … 79 79 80 80 $str = str_replace('/*%WPFB_DATA_TABLE_OPTIONS_FILTER%*/', 81 " function wpfb_DataTableOptionsFilter{$uid}(options){ ".82 81 " var wpfbOptions = ".json_encode($dataTableOptions)."; ". 83 82 " if('object' == typeof(options)) { for (var v in options) { wpfbOptions[v] = options[v]; } }". 84 " return wpfbOptions; ". 85 "}" 83 " return wpfbOptions; " 86 84 , $str); 87 85 } … … 140 138 141 139 $cat = reset($categories); // get first category 142 if(count($categories) == 1 && $cat->cat_num_files > 0) { // single cat 140 // here we check if single category and cat has at least one file (also secondary cat files!) 141 if(count($categories) == 1 && ($cat->cat_num_files > 0 )) { // single cat 143 142 if(!$cat->CurUserCanAccess()) return ''; 144 143 -
wp-filebase/trunk/classes/Output.php
r702142 r722195 32 32 case 'browser': 33 33 $content = ''; 34 self::FileBrowser($content, $id, 0 ); // by ref34 self::FileBrowser($content, $id, 0 ); // by ref 35 35 return $content; 36 36 } … … 119 119 } 120 120 121 static function FileBrowser(&$content, $root_cat_id=0, $cur_cat_id=0 )121 static function FileBrowser(&$content, $root_cat_id=0, $cur_cat_id=0 ) 122 122 { 123 123 static $fb_id = 0; … … 154 154 } 155 155 156 self::FileBrowserList($content, $parents, $root_cat); 156 self::FileBrowserList($content, $root_cat, array( 157 'open_cats' => $parents 158 )); 157 159 158 160 $content .= '</ul><div style="clear:both;"></div>'; … … 160 162 } 161 163 162 static function FileBrowserList(&$content, &$parents, $root_cat=null) 164 // args[open_cats] private 165 private static function FileBrowserList(&$content, $root_cat=null, $args=array()) 163 166 { 164 167 if(!is_null($root_cat) && !$root_cat->CurUserCanAccess()) { … … 166 169 return; 167 170 } 168 169 $cats = WPFB_Category::GetFileBrowserCats(is_null($root_cat) ? 0 : $root_cat->cat_id); 170 $open_cat = array_pop($parents); 171 172 $root_id = empty($root_cat) ? 0 : $root_cat->cat_id; 173 174 $cats = WPFB_Category::GetFileBrowserCats($root_id); 175 $open_cat = empty($args['open_cats']) ? null : array_pop($args['open_cats']); 171 176 $files_before_cats = WPFB_Core::GetOpt('file_browser_fbc'); 172 177 173 $files = WPFB_File::GetFiles2(array('file_category' => $root_ cat ? $root_cat->GetId() : 0), WPFB_Core::GetOpt('hide_inaccessible'), WPFB_Core::GetFileListSortSql((WPFB_Core::GetOpt('file_browser_file_sort_dir')?'>':'<').WPFB_Core::GetOpt('file_browser_file_sort_by')));178 $files = WPFB_File::GetFiles2(array('file_category' => $root_id), WPFB_Core::GetOpt('hide_inaccessible'), WPFB_Core::GetFileListSortSql((WPFB_Core::GetOpt('file_browser_file_sort_dir')?'>':'<').WPFB_Core::GetOpt('file_browser_file_sort_by'))); 174 179 175 180 if($files_before_cats) { … … 182 187 183 188 $liclass = ''; 184 if( $has_children = $cat->HasChildren()) $liclass .= 'hasChildren';185 if( $open = $cat->Equals($open_cat)) $liclass .= ' open';189 if( ($has_children = $cat->HasChildren()) ) $liclass .= 'hasChildren'; 190 if( ($open = $cat->Equals($open_cat) ) ) $liclass .= ' open'; 186 191 187 192 $content .= '<li id="wpfb-cat-'.$cat->cat_id.'" class="'.$liclass.'">'; … … 190 195 if($has_children) { 191 196 $content .= "<ul>\n"; 192 if($open) self::FileBrowserList($content, $ parents, $cat);197 if($open) self::FileBrowserList($content, $cat, $args); 193 198 else $content .= '<li><span class="placeholder"> </span></li>'."\n"; 194 199 $content .= "</ul>\n"; … … 303 308 $out .= self::CatSelTree(null, $c->cat_id, 0); 304 309 } 310 // TODO 311 //$out .= '<option value="0" style="font-style:italic;" onchoose="alert(\'asdf\');">'.__('+ Add New Category').'</option>'; 305 312 } else { 306 313 $cat = &WPFB_Category::GetCat($root_cat_id); -
wp-filebase/trunk/classes/PLUploader.php
r702142 r722195 60 60 $max_upload_size = WPFB_Core::GetMaxUlSize(); 61 61 62 wp_print_scripts('plupload-all'); 62 wp_print_scripts('plupload-all'); 63 wp_print_scripts('wp-plupload'); 64 63 65 64 66 $plupload_init = array( -
wp-filebase/trunk/classes/Search.php
r702142 r722195 88 88 wpfb_loadclass('File'); 89 89 90 $is_wp_search = !empty($_GET['s']) && empty($_GET['wpfb_s']); 91 90 92 $search_id3 = WPFB_Core::GetOpt('search_id3'); 91 93 $no_matches = false; … … 95 97 96 98 // check if there are matching files, if there are, include the filebrowser page/post in the resulst! 99 // if we have file pages, only include the file browser if file search widget was used! 97 100 $file_browser_id = intval(WPFB_Core::GetOpt('file_browser_post_id')); 98 if($file_browser_id > 0 && WPFB_File::GetNumFiles2($where, true) > 0 ) {101 if($file_browser_id > 0 && WPFB_File::GetNumFiles2($where, true) > 0 ) { 99 102 $where = "($where OR ({$wpdb->posts}.ID = $file_browser_id))"; // TODO! 100 103 wpfb_loadclass('Output'); -
wp-filebase/trunk/classes/Sync.php
r702142 r722195 459 459 460 460 if(is_dir($cat->GetLocalPath())) 461 chmod ($cat->GetLocalPath(), octdec(WPFB_PERM_DIR));461 @chmod ($cat->GetLocalPath(), octdec(WPFB_PERM_DIR)); 462 462 } 463 463 … … 473 473 474 474 // chmod 475 chmod ($upload_dir, octdec(WPFB_PERM_DIR));475 @chmod ($upload_dir, octdec(WPFB_PERM_DIR)); 476 476 for($i = 0; $i < count($files); $i++) 477 477 { … … 543 543 if(!empty($_GET['debug'])) 544 544 { 545 wpfb_loadclass('Output'); 545 546 $ms = self::GetMemStats(); 546 547 echo "<!-- [$tag] (MEM: ". WPFB_Output::FormatFilesize($ms['used'])." / $ms[limit]) BACKTRACE:\n"; -
wp-filebase/trunk/classes/Widget.php
r702142 r722195 182 182 WPFB_Category::GetCats(); 183 183 184 $cats = WPFB_Category::GetCats(($tree ? 'WHERE cat_parent = 0 ': '') . 'ORDER BY '.$instance['sort-by'].' '.($instance['sort-asc']?'ASC':'DESC') /* . $options['catlist_order_by'] . ($options['catlist_asc'] ? ' ASC' : ' DESC') /*. ' LIMIT ' . (int)$options['catlist_limit']*/);184 $cats = WPFB_Category::GetCats(($tree ? 'WHERE cat_parent = '.(empty($instance['root-cat'])?0:(int)$instance['root-cat']) : '') . 'ORDER BY '.$instance['sort-by'].' '.($instance['sort-asc']?'ASC':'DESC') /* . $options['catlist_order_by'] . ($options['catlist_asc'] ? ' ASC' : ' DESC') /*. ' LIMIT ' . (int)$options['catlist_limit']*/); 185 185 186 186 echo '<ul>'; … … 196 196 197 197 function update( $new_instance, $old_instance ) { 198 wpfb_loadclass(' Admin');198 wpfb_loadclass('Models'); 199 199 200 200 $instance = $old_instance; … … 202 202 $instance['hierarchical'] = !empty($new_instance['hierarchical']); 203 203 $instance['sort-by'] = strip_tags($new_instance['sort-by']); 204 if(!in_array($instance['sort-by'], array_keys(WPFB_Admin::CatSortFields()))) 204 // TODO root-cat 205 if(!in_array($instance['sort-by'], array_keys(WPFB_Models::CatSortFields()))) 205 206 $instance['sort-by'] = 'cat_name'; 206 207 $instance['sort-asc'] = !empty($new_instance['sort-asc']); … … 255 256 256 257 function update( $new_instance, $old_instance ) { 257 wpfb_loadclass(' Admin','TplLib', 'Output');258 wpfb_loadclass('Models','TplLib', 'Output'); 258 259 259 260 $instance = $old_instance; … … 262 263 $instance['limit'] = max(1, intval($new_instance['limit'])); 263 264 $instance['sort-by'] = strip_tags($new_instance['sort-by']); 264 if(!in_array($instance['sort-by'], array_keys(WPFB_ Admin::FileSortFields())))265 if(!in_array($instance['sort-by'], array_keys(WPFB_Models::FileSortFields()))) 265 266 $instance['sort-by'] = 'cat_name'; 266 267 $instance['sort-asc'] = !empty($new_instance['sort-asc']); -
wp-filebase/trunk/classes/WidgetForms.php
r702142 r722195 35 35 $instance['sort-asc'] = !empty($instance['sort-asc']); 36 36 37 wpfb_loadclass(' Admin');37 wpfb_loadclass('Models'); 38 38 ?> 39 39 <div> … … 50 50 <select id="<?php echo $obj->get_field_id('sort-by'); ?>" name="<?php echo $obj->get_field_name('sort-by'); ?>"> 51 51 <?php 52 $sort_vars = WPFB_ Admin::CatSortFields();52 $sort_vars = WPFB_Models::CatSortFields(); 53 53 foreach($sort_vars as $tag => $name) 54 54 { … … 81 81 if(!isset($instance[$prop])) $instance[$prop] = $val; 82 82 83 wpfb_loadclass('Admin',' Output');83 wpfb_loadclass('Admin','Models','Output'); 84 84 ?> 85 85 <div> … … 103 103 <select id="<?php echo $obj->get_field_id('sort-by'); ?>" name="<?php echo $obj->get_field_name('sort-by'); ?>"> 104 104 <?php 105 $sort_vars = WPFB_ Admin::FileSortFields();105 $sort_vars = WPFB_Models::FileSortFields(); 106 106 foreach($sort_vars as $tag => $name) 107 107 { … … 120 120 <p><label for="<?php echo $obj->get_field_id('tpl'); ?>"><?php _e('Template:', WPFB); ?> 121 121 <input class="widefat" type="text" id="<?php echo $obj->get_field_id('id'); ?>" name="<?php echo $obj->get_field_name('tpl'); ?>" value="<?php echo esc_attr($instance['tpl']); ?>" /></label> 122 <br /><?php echo WPFB_ Admin::TplFieldsSelect($obj->get_field_id('id'), true); ?>122 <br /><?php echo WPFB_Models::TplFieldsSelect($obj->get_field_id('id'), true); ?> 123 123 </p> 124 124 </div> -
wp-filebase/trunk/editor_plugin.php
r702142 r722195 29 29 auth_redirect(); 30 30 31 wpfb_loadclass('Core', 'File', 'Category', 'AdminLite', 'Admin', 'ListTpl', 'Output' );31 wpfb_loadclass('Core', 'File', 'Category', 'AdminLite', 'Admin', 'ListTpl', 'Output', 'Models'); 32 32 33 33 wp_enqueue_script( 'common' ); … … 338 338 <select name="list-sort-by" id="list-sort-by" style="width:100%"> 339 339 <option value=""><?php _e('Default'); echo ' ('.WPFB_Core::GetOpt('filelist_sorting').')'; ?></option> 340 <?php $opts = WPFB_ Admin::FileSortFields();340 <?php $opts = WPFB_Models::FileSortFields(); 341 341 foreach($opts as $tag => $name) echo '<option value="'.$tag.'">'.$tag.' - '.$name.'</option>'; ?> 342 342 </select> … … 360 360 <select name="list-cat-sort-by" id="list-cat-sort-by" style="width:100%"> 361 361 <option value=""><?php _e('None (order of IDs in shortcode)', WPFB); ?></option> 362 <?php $opts = WPFB_ Admin::CatSortFields();362 <?php $opts = WPFB_Models::CatSortFields(); 363 363 foreach($opts as $tag => $name) echo '<option value="'.$tag.'">'.$tag.' - '.$name.'</option>'; ?> 364 364 </select> -
wp-filebase/trunk/extras/jquery/dataTables/src/DataTables.js
r598768 r722195 2 2 * @summary DataTables 3 3 * @description Paginate, search and sort HTML tables 4 * @version 1.9. 34 * @version 1.9.4 5 5 * @file jquery.dataTables.js 6 6 * @author Allan Jardine (www.sprymedia.co.uk) … … 22 22 23 23 /*jslint evil: true, undef: true, browser: true */ 24 /*globals $, jQuery,_fnExternApiFunc,_fnInitialise,_fnInitComplete,_fnLanguageCompat,_fnAddColumn,_fnColumnOptions,_fnAddData,_fnCreateTr,_fnGatherData,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnServerParams,_fnAddOptionsHtml,_fnFeatureHtmlTable,_fnScrollDraw,_fnAdjustColumnSizing,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnBuildSearchArray,_fnBuildSearchRow,_fnFilterCreateSearch,_fnDataToSearch,_fnSort,_fnSortAttachListener,_fnSortingClasses,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnFeatureHtmlLength,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnNodeToDataIndex,_fnVisbleColumns,_fnCalculateEnd,_fnConvertToWidth,_fnCalculateColumnWidths,_fnScrollingWidthAdjust,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnDetectType,_fnSettingsFromNode,_fnGetDataMaster,_fnGetTrNodes,_fnGetTdNodes,_fnEscapeRegex,_fnDeleteIndex,_fnReOrderIndex,_fnColumnOrdering,_fnLog,_fnClearTable,_fnSaveState,_fnLoadState,_fnCreateCookie,_fnReadCookie,_fnDetectHeader,_fnGetUniqueThs,_fnScrollBarWidth,_fnApplyToChildren,_fnMap,_fnGetRowData,_fnGetCellData,_fnSetCellData,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnApplyColumnDefs,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnJsonString,_fnRender,_fnNodeToColumnIndex,_fnInfoMacros,_fnBrowserDetect,_fnGetColumns*/ 25 26 (/** @lends <global> */function($, window, document, undefined) { 24 /*globals $, jQuery,define,_fnExternApiFunc,_fnInitialise,_fnInitComplete,_fnLanguageCompat,_fnAddColumn,_fnColumnOptions,_fnAddData,_fnCreateTr,_fnGatherData,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnServerParams,_fnAddOptionsHtml,_fnFeatureHtmlTable,_fnScrollDraw,_fnAdjustColumnSizing,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnBuildSearchArray,_fnBuildSearchRow,_fnFilterCreateSearch,_fnDataToSearch,_fnSort,_fnSortAttachListener,_fnSortingClasses,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnFeatureHtmlLength,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnNodeToDataIndex,_fnVisbleColumns,_fnCalculateEnd,_fnConvertToWidth,_fnCalculateColumnWidths,_fnScrollingWidthAdjust,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnDetectType,_fnSettingsFromNode,_fnGetDataMaster,_fnGetTrNodes,_fnGetTdNodes,_fnEscapeRegex,_fnDeleteIndex,_fnReOrderIndex,_fnColumnOrdering,_fnLog,_fnClearTable,_fnSaveState,_fnLoadState,_fnCreateCookie,_fnReadCookie,_fnDetectHeader,_fnGetUniqueThs,_fnScrollBarWidth,_fnApplyToChildren,_fnMap,_fnGetRowData,_fnGetCellData,_fnSetCellData,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnApplyColumnDefs,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnJsonString,_fnRender,_fnNodeToColumnIndex,_fnInfoMacros,_fnBrowserDetect,_fnGetColumns*/ 25 26 (/** @lends <global> */function( window, document, undefined ) { 27 28 (function( factory ) { 29 "use strict"; 30 31 // Define as an AMD module if possible 32 if ( typeof define === 'function' && define.amd ) 33 { 34 define( ['jquery'], factory ); 35 } 36 /* Define using browser globals otherwise 37 * Prevent multiple instantiations if the script is loaded twice 38 */ 39 else if ( jQuery && !jQuery.fn.dataTable ) 40 { 41 factory( jQuery ); 42 } 43 } 44 (/** @lends <global> */function( $ ) { 45 "use strict"; 27 46 /** 28 47 * DataTables is a plug-in for the jQuery Javascript library. It is a … … 79 98 80 99 var _that = this; 81 returnthis.each(function() {100 this.each(function() { 82 101 require('core.constructor.js'); 83 102 } ); 103 _that = null; 104 return this; 84 105 }; 85 106 … … 94 115 * @default Version number 95 116 */ 96 DataTable.version = "1.9. 3";117 DataTable.version = "1.9.4"; 97 118 98 119 /** … … 258 279 * @param {object} o DataTables settings object {@link DataTable.models.oSettings} 259 280 */ 260 }(jQuery, window, document, undefined)); 281 })); 282 283 }(window, document)); 284 -
wp-filebase/trunk/extras/jquery/dataTables/src/api/api.methods.js
r702142 r722195 1 2 1 /** 3 2 * Perform a jQuery selector action on the table's TR elements (from the tbody) and … … 474 473 var i, iLen; 475 474 476 bRemove = (bRemove===undefined) ? false : true;475 bRemove = (bRemove===undefined) ? false : bRemove; 477 476 478 477 /* Flag to note that the table is currently being destroyed - no action should be taken */ … … 481 480 /* Fire off the destroy callbacks for plug-ins etc */ 482 481 _fnCallbackFire( oSettings, "aoDestroyCallback", "destroy", [oSettings] ); 483 484 /* Restore hidden columns */ 485 for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ ) 486 { 487 if ( oSettings.aoColumns[i].bVisible === false ) 488 { 489 this.fnSetColumnVis( i, true ); 482 483 /* If the table is not being removed, restore the hidden columns */ 484 if ( !bRemove ) 485 { 486 for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ ) 487 { 488 if ( oSettings.aoColumns[i].bVisible === false ) 489 { 490 this.fnSetColumnVis( i, true ); 491 } 490 492 } 491 493 } … … 563 565 } 564 566 565 /* If the were originally odd/even type classes - then we add them back here. Note566 * this is not fool proof (for example if not all rows as odd/even classes - but567 /* If the were originally stripe classes - then we add them back here. Note 568 * this is not fool proof (for example if not all rows had stripe classes - but 567 569 * it's a good effort without getting carried away 568 570 */ 569 $(nBody).children('tr:even').addClass( oSettings.asDestroyStripes[0] ); 570 $(nBody).children('tr:odd').addClass( oSettings.asDestroyStripes[1] ); 571 iLen = oSettings.asDestroyStripes.length; 572 if (iLen) 573 { 574 var anRows = $(nBody).children('tr'); 575 for ( i=0 ; i<iLen ; i++ ) 576 { 577 anRows.filter(':nth-child(' + iLen + 'n + ' + i + ')').addClass( oSettings.asDestroyStripes[i] ); 578 } 579 } 571 580 572 581 /* Remove the settings object from the settings array */ … … 581 590 /* End it all */ 582 591 oSettings = null; 592 oInit = null; 583 593 }; 584 594 … … 674 684 for ( var i=0, iLen=n.length ; i<iLen ; i++ ) 675 685 { 676 $(n[i]._DT_Input).val( sInput ); 686 // IE9 throws an 'unknown error' if document.activeElement is used 687 // inside an iframe or frame... 688 try { 689 if ( n[i]._DT_Input != document.activeElement ) 690 { 691 $(n[i]._DT_Input).val( sInput ); 692 } 693 } 694 catch ( e ) { 695 $(n[i]._DT_Input).val( sInput ); 696 } 677 697 } 678 698 } … … 794 814 * @param {node} nNode this can either be a TR, TD or TH in the table's body 795 815 * @returns {int} If nNode is given as a TR, then a single index is returned, or 796 * if given as a cell, an array of [row index, column index (visible)] is given. 816 * if given as a cell, an array of [row index, column index (visible), 817 * column index (all)] is given. 797 818 * @dtopt API 798 819 * -
wp-filebase/trunk/extras/jquery/dataTables/src/ext/ext.paging.js
r702142 r722195 73 73 var oClasses = oSettings.oClasses; 74 74 var an = oSettings.aanFeatures.p; 75 var nNode; 75 76 76 77 /* Loop over each instance of the pager */ 77 78 for ( var i=0, iLen=an.length ; i<iLen ; i++ ) 78 79 { 79 if ( an[i].childNodes.length !== 0 ) 80 { 81 an[i].childNodes[0].className = ( oSettings._iDisplayStart === 0 ) ? 82 oClasses.sPagePrevDisabled : oClasses.sPagePrevEnabled; 83 84 an[i].childNodes[1].className = ( oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() ) ? 85 oClasses.sPageNextDisabled : oClasses.sPageNextEnabled; 80 nNode = an[i].firstChild; 81 if ( nNode ) 82 { 83 /* Previous page */ 84 nNode.className = ( oSettings._iDisplayStart === 0 ) ? 85 oClasses.sPagePrevDisabled : oClasses.sPagePrevEnabled; 86 87 /* Next page */ 88 nNode = nNode.nextSibling; 89 nNode.className = ( oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() ) ? 90 oClasses.sPageNextDisabled : oClasses.sPageNextEnabled; 86 91 } 87 92 } … … 172 177 var iStartButton, iEndButton, i, iLen; 173 178 var oClasses = oSettings.oClasses; 174 var anButtons, anStatic, nPaginateList ;179 var anButtons, anStatic, nPaginateList, nNode; 175 180 var an = oSettings.aanFeatures.p; 176 181 var fnBind = function (j) { … … 223 228 for ( i=0, iLen=an.length ; i<iLen ; i++ ) 224 229 { 225 if ( an[i].childNodes.length === 0 ) 230 nNode = an[i]; 231 if ( !nNode.hasChildNodes() ) 226 232 { 227 233 continue; … … 229 235 230 236 /* Build up the dynamic list first - html and listeners */ 231 $('span:eq(0)', an[i])237 $('span:eq(0)', nNode) 232 238 .html( sList ) 233 239 .children('a').each( fnBind ); 234 240 235 241 /* Update the permanent button's classes */ 236 anButtons = an[i].getElementsByTagName('a');242 anButtons = nNode.getElementsByTagName('a'); 237 243 anStatic = [ 238 244 anButtons[0], anButtons[1], -
wp-filebase/trunk/extras/jquery/dataTables/src/model/model.column.js
r702142 r722195 48 48 49 49 /** 50 * When using fnRender, you have two options for what to do with the data,51 * and this property serves as the switch. Firstly, you can have the sorting52 * and filtering use the rendered value (true - default), or you can have53 * the sorting and filtering us the original value (false).54 * 55 * *NOTE* It is it is advisable now to use mData as a function and make56 * use of the 'type' that it gives, allowing (potentially) different data to57 * be used for sorting, filtering, display and type detection.50 * <code>Deprecated</code> When using fnRender, you have two options for what 51 * to do with the data, and this property serves as the switch. Firstly, you 52 * can have the sorting and filtering use the rendered value (true - default), 53 * or you can have the sorting and filtering us the original value (false). 54 * 55 * Please note that this option has now been deprecated and will be removed 56 * in the next version of DataTables. Please use mRender / mData rather than 57 * fnRender. 58 58 * @type boolean 59 59 * @deprecated … … 78 78 /** 79 79 * Developer definable function that is called whenever a cell is created (Ajax source, 80 * etc) or processed for input (DOM source). This can be used as a compliment to fnRender80 * etc) or processed for input (DOM source). This can be used as a compliment to mRender 81 81 * allowing you to modify the DOM element (add background colour for example) when the 82 * element is available (since it is not when fnRender is called).82 * element is available. 83 83 * @type function 84 84 * @param {element} nTd The TD node that has been created … … 107 107 108 108 /** 109 * Custom display function that will be called for the display of each cell 110 * in this column. 109 * <code>Deprecated</code> Custom display function that will be called for the 110 * display of each cell in this column. 111 * 112 * Please note that this option has now been deprecated and will be removed 113 * in the next version of DataTables. Please use mRender / mData rather than 114 * fnRender. 111 115 * @type function 112 116 * @param {object} o Object with the following parameters: … … 117 121 * @returns {string} The string you which to use in the display 118 122 * @default null 123 * @deprecated 119 124 */ 120 125 "fnRender": null, -
wp-filebase/trunk/extras/jquery/dataTables/src/model/model.defaults.columns.js
r702142 r722195 142 142 143 143 /** 144 * When using fnRender() for a column, you may wish to use the original data 145 * (before rendering) for sorting and filtering (the default is to used the 146 * rendered data that the user can see). This may be useful for dates etc. 147 * 148 * *NOTE* This property is now deprecated, and it is suggested that you use 149 * mData and / or mRender to render data for the DataTable. 144 * <code>Deprecated</code> When using fnRender() for a column, you may wish 145 * to use the original data (before rendering) for sorting and filtering 146 * (the default is to used the rendered data that the user can see). This 147 * may be useful for dates etc. 148 * 149 * Please note that this option has now been deprecated and will be removed 150 * in the next version of DataTables. Please use mRender / mData rather than 151 * fnRender. 150 152 * @type boolean 151 153 * @default true 152 154 * @dtopt Columns 153 155 * @deprecated 154 *155 * @example156 * // Using aoColumnDefs157 * $(document).ready( function() {158 * $('#example').dataTable( {159 * "aoColumnDefs": [160 * {161 * "fnRender": function ( oObj ) {162 * return oObj.aData[0] +' '+ oObj.aData[3];163 * },164 * "bUseRendered": false,165 * "aTargets": [ 0 ]166 * }167 * ]168 * } );169 * } );170 *171 * @example172 * // Using aoColumns173 * $(document).ready( function() {174 * $('#example').dataTable( {175 * "aoColumns": [176 * {177 * "fnRender": function ( oObj ) {178 * return oObj.aData[0] +' '+ oObj.aData[3];179 * },180 * "bUseRendered": false181 * },182 * null,183 * null,184 * null,185 * null186 * ]187 * } );188 * } );189 156 */ 190 157 "bUseRendered": true, … … 224 191 /** 225 192 * Developer definable function that is called whenever a cell is created (Ajax source, 226 * etc) or processed for input (DOM source). This can be used as a compliment to fnRender193 * etc) or processed for input (DOM source). This can be used as a compliment to mRender 227 194 * allowing you to modify the DOM element (add background colour for example) when the 228 * element is available (since it is not when fnRender is called).195 * element is available. 229 196 * @type function 230 197 * @param {element} nTd The TD node that has been created … … 253 220 254 221 /** 255 * Custom display function that will be called for the display of each cell in 256 * this column. 222 * <code>Deprecated</code> Custom display function that will be called for the 223 * display of each cell in this column. 224 * 225 * Please note that this option has now been deprecated and will be removed 226 * in the next version of DataTables. Please use mRender / mData rather than 227 * fnRender. 257 228 * @type function 258 229 * @param {object} o Object with the following parameters: … … 265 236 * @returns {string} The string you which to use in the display 266 237 * @dtopt Columns 267 * 268 * @example 269 * // Using aoColumnDefs 270 * $(document).ready( function() { 271 * $('#example').dataTable( { 272 * "aoColumnDefs": [ 273 * { 274 * "fnRender": function ( o, val ) { 275 * return o.aData[0] +' '+ o.aData[3]; 276 * }, 277 * "aTargets": [ 0 ] 278 * } 279 * ] 280 * } ); 281 * } ); 282 * 283 * @example 284 * // Using aoColumns 285 * $(document).ready( function() { 286 * $('#example').dataTable( { 287 * "aoColumns": [ 288 * { "fnRender": function ( o, val ) { 289 * return o.aData[0] +' '+ o.aData[3]; 290 * } }, 291 * null, 292 * null, 293 * null, 294 * null 295 * ] 296 * } ); 297 * } ); 238 * @deprecated 298 239 */ 299 240 "fnRender": null, -
wp-filebase/trunk/extras/jquery/dataTables/src/model/model.defaults.js
r702142 r722195 1384 1384 1385 1385 /** 1386 * Text to use when using the 'full_numbers' type of pagination for the1387 * button to take the user to the next page.1386 * Text to use for the 'next' pagination button (to take the user to the 1387 * next page). 1388 1388 * @type string 1389 1389 * @default Next … … 1405 1405 1406 1406 /** 1407 * Text to use when using the 'full_numbers' type of pagination for the1408 * button to take the user to the previous page.1407 * Text to use for the 'previous' pagination button (to take the user to 1408 * the previous page). 1409 1409 * @type string 1410 1410 * @default Previous -
wp-filebase/trunk/lib/wpfb_form_file.php
r702142 r722195 357 357 </tr> 358 358 <?php } 359 $custom_fields = WPFB_Core::GetCustomFields( );359 $custom_fields = WPFB_Core::GetCustomFields(false, $custom_defaults); 360 360 foreach($custom_fields as $ct => $cn) { 361 361 $hid = 'file_custom_'.esc_attr($ct); … … 363 363 <tr class="form-field"> 364 364 <th scope="row" valign="top"><label for="<?php echo $hid; ?>"><?php echo esc_html($cn) ?></label></th> 365 <td colspan="3"><textarea name="<?php echo $hid; ?>" id="<?php echo $hid; ?>" rows="2" cols="50" style="width: 97%;"><?php echo empty($file->$hid) ? '': esc_html($file->$hid); ?></textarea></td>365 <td colspan="3"><textarea name="<?php echo $hid; ?>" id="<?php echo $hid; ?>" rows="2" cols="50" style="width: 97%;"><?php echo empty($file->$hid) ? $custom_defaults[$ct] : esc_html($file->$hid); ?></textarea></td> 366 366 </tr> <?php 367 367 } -
wp-filebase/trunk/readme.txt
r702142 r722195 5 5 Requires at least: 3.1 6 6 Tested up to: 3.5.1 7 Stable tag: 0.2.9.3 67 Stable tag: 0.2.9.37 8 8 9 9 Adds a powerful download manager including file categories, downloads counter, widgets, sorted file lists and more to your WordPress blog. … … 113 113 114 114 == Changelog == 115 116 = 0.2.9.37 = 117 * Fixed Batch Uploader 118 * Further memory optimizations 119 * Updated DataTables to 1.9.4 120 * Fixed monthly/daily traffic limit 121 * Fixed download range header handling (thanks to mrogaski) 122 * Minified DataTables init JS to prevent auto <p> 123 * Added `wpfilebase_file_downloaded` hook for download logging 124 * Fixed HTML escaping for some file template vars 125 115 126 116 127 = 0.2.9.36 = … … 655 666 WP-Filebase currently offers the action `wpfilebase_sync`. This will run a fast filebase sync that adds new files. 656 667 668 The hook `wpfilebase_file_downloaded` with file_id as parameter can be used for download logging. 669 670 657 671 == WP-Filebase Pro == 658 672 [WP-Filebase Pro](http://wpfilebase.com/) is the commercial version of WP-Filebase with an extended range of functions. It supports secondary categories, extended permissions, embedded upload forms. Furthermore it can generate PDF thumbnails, sync with Dropbox or FTP and includes an improved file sync algorithm. -
wp-filebase/trunk/wp-filebase.php
r702142 r722195 5 5 Description: Adds a powerful downloads manager supporting file categories, download counter, widgets, sorted file lists and more to your WordPress blog. 6 6 Author: Fabian Schlieper 7 Version: 0.2.9.3 67 Version: 0.2.9.37 8 8 Author URI: http://wpfilebase.com/ 9 9 */ … … 12 12 { 13 13 define('WPFB', 'wpfb'); 14 define('WPFB_VERSION', '0.2.9.3 6');14 define('WPFB_VERSION', '0.2.9.37'); 15 15 define('WPFB_PLUGIN_ROOT', str_replace('\\','/',dirname(__FILE__)).'/'); 16 16 if(!defined('ABSPATH')) {
Note: See TracChangeset
for help on using the changeset viewer.