Changeset 660375
- Timestamp:
- 01/28/2013 10:54:45 PM (13 years ago)
- Location:
- wp-filebase
- Files:
-
- 274 added
- 11 edited
-
tags/0.2.9.34 (added)
-
tags/0.2.9.34/classes (added)
-
tags/0.2.9.34/classes/Admin.php (added)
-
tags/0.2.9.34/classes/AdminGuiCats.php (added)
-
tags/0.2.9.34/classes/AdminGuiCss.php (added)
-
tags/0.2.9.34/classes/AdminGuiFiles.php (added)
-
tags/0.2.9.34/classes/AdminGuiManage.php (added)
-
tags/0.2.9.34/classes/AdminGuiSettings.php (added)
-
tags/0.2.9.34/classes/AdminGuiSupport.php (added)
-
tags/0.2.9.34/classes/AdminGuiTpls.php (added)
-
tags/0.2.9.34/classes/AdminHowToStart.php (added)
-
tags/0.2.9.34/classes/AdminLite.php (added)
-
tags/0.2.9.34/classes/AdvUploader.php (added)
-
tags/0.2.9.34/classes/Category.php (added)
-
tags/0.2.9.34/classes/Config.php (added)
-
tags/0.2.9.34/classes/Core.php (added)
-
tags/0.2.9.34/classes/Download.php (added)
-
tags/0.2.9.34/classes/File.php (added)
-
tags/0.2.9.34/classes/FileListTable.php (added)
-
tags/0.2.9.34/classes/FileUtils.php (added)
-
tags/0.2.9.34/classes/GetID3.php (added)
-
tags/0.2.9.34/classes/Item.php (added)
-
tags/0.2.9.34/classes/ListTpl.php (added)
-
tags/0.2.9.34/classes/Output.php (added)
-
tags/0.2.9.34/classes/PLUpload.php (added)
-
tags/0.2.9.34/classes/ProgressReporter.php (added)
-
tags/0.2.9.34/classes/SWFUpload.php (added)
-
tags/0.2.9.34/classes/Search.php (added)
-
tags/0.2.9.34/classes/Setup.php (added)
-
tags/0.2.9.34/classes/Sync.php (added)
-
tags/0.2.9.34/classes/TplLib.php (added)
-
tags/0.2.9.34/classes/Widget.php (added)
-
tags/0.2.9.34/editor_plugin.php (added)
-
tags/0.2.9.34/embedded_forms.css (added)
-
tags/0.2.9.34/extras (added)
-
tags/0.2.9.34/extras/ckeditor (added)
-
tags/0.2.9.34/extras/ckeditor/images (added)
-
tags/0.2.9.34/extras/ckeditor/images/btn.gif (added)
-
tags/0.2.9.34/extras/ckeditor/plugin.js (added)
-
tags/0.2.9.34/extras/flvplayer (added)
-
tags/0.2.9.34/extras/flvplayer/OSplayer.swf (added)
-
tags/0.2.9.34/extras/getid3 (added)
-
tags/0.2.9.34/extras/getid3/extension.cache.dbm.php (added)
-
tags/0.2.9.34/extras/getid3/extension.cache.mysql.php (added)
-
tags/0.2.9.34/extras/getid3/getid3.lib.php (added)
-
tags/0.2.9.34/extras/getid3/getid3.php (added)
-
tags/0.2.9.34/extras/getid3/helperapps (added)
-
tags/0.2.9.34/extras/getid3/helperapps/readme.helperapps.txt (added)
-
tags/0.2.9.34/extras/getid3/module.archive.gzip.php (added)
-
tags/0.2.9.34/extras/getid3/module.archive.rar.php (added)
-
tags/0.2.9.34/extras/getid3/module.archive.szip.php (added)
-
tags/0.2.9.34/extras/getid3/module.archive.tar.php (added)
-
tags/0.2.9.34/extras/getid3/module.archive.zip.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.asf.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.bink.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.flv.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.matroska.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.mpeg.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.nsv.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.quicktime.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.real.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.riff.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio-video.swf.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.aa.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.aac.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.ac3.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.au.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.avr.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.bonk.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.dss.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.dts.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.flac.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.la.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.lpac.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.midi.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.mod.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.monkey.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.mp3.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.mpc.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.ogg.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.optimfrog.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.rkau.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.shorten.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.tta.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.voc.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.vqf.php (added)
-
tags/0.2.9.34/extras/getid3/module.audio.wavpack.php (added)
-
tags/0.2.9.34/extras/getid3/module.graphic.bmp.php (added)
-
tags/0.2.9.34/extras/getid3/module.graphic.efax.php (added)
-
tags/0.2.9.34/extras/getid3/module.graphic.gif.php (added)
-
tags/0.2.9.34/extras/getid3/module.graphic.jpg.php (added)
-
tags/0.2.9.34/extras/getid3/module.graphic.pcd.php (added)
-
tags/0.2.9.34/extras/getid3/module.graphic.png.php (added)
-
tags/0.2.9.34/extras/getid3/module.graphic.svg.php (added)
-
tags/0.2.9.34/extras/getid3/module.graphic.tiff.php (added)
-
tags/0.2.9.34/extras/getid3/module.misc.cue.php (added)
-
tags/0.2.9.34/extras/getid3/module.misc.exe.php (added)
-
tags/0.2.9.34/extras/getid3/module.misc.iso.php (added)
-
tags/0.2.9.34/extras/getid3/module.misc.msoffice.php (added)
-
tags/0.2.9.34/extras/getid3/module.misc.par2.php (added)
-
tags/0.2.9.34/extras/getid3/module.misc.pdf.php (added)
-
tags/0.2.9.34/extras/getid3/module.tag.apetag.php (added)
-
tags/0.2.9.34/extras/getid3/module.tag.id3v1.php (added)
-
tags/0.2.9.34/extras/getid3/module.tag.id3v2.php (added)
-
tags/0.2.9.34/extras/getid3/module.tag.lyrics3.php (added)
-
tags/0.2.9.34/extras/getid3/module.tag.xmp.php (added)
-
tags/0.2.9.34/extras/getid3/write.apetag.php (added)
-
tags/0.2.9.34/extras/getid3/write.id3v1.php (added)
-
tags/0.2.9.34/extras/getid3/write.id3v2.php (added)
-
tags/0.2.9.34/extras/getid3/write.lyrics3.php (added)
-
tags/0.2.9.34/extras/getid3/write.metaflac.php (added)
-
tags/0.2.9.34/extras/getid3/write.php (added)
-
tags/0.2.9.34/extras/getid3/write.real.php (added)
-
tags/0.2.9.34/extras/getid3/write.vorbiscomment.php (added)
-
tags/0.2.9.34/extras/jquery (added)
-
tags/0.2.9.34/extras/jquery/contextmenu (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/cmenu-gloss-cyan-menu-item-hover.gif (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/cmenu-gloss-menu-item-hover.gif (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/cmenu-gloss-semitransparent-menu-item-hover.png (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/cmenu-human-menu-item-hover.gif (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/cmenu-osx-menu-item-hover.gif (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/cmenu-vista-bg.gif (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/cmenu-vista-menu-item-hover.gif (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/cmenu-xp-bg.gif (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/delete_icon.gif (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/jquery.contextmenu.css (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/jquery.contextmenu.js (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/page_white_delete.png (added)
-
tags/0.2.9.34/extras/jquery/contextmenu/page_white_edit.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables (added)
-
tags/0.2.9.34/extras/jquery/dataTables/css (added)
-
tags/0.2.9.34/extras/jquery/dataTables/css/demo_page.css (added)
-
tags/0.2.9.34/extras/jquery/dataTables/css/demo_table.css (added)
-
tags/0.2.9.34/extras/jquery/dataTables/css/demo_table_jui.css (added)
-
tags/0.2.9.34/extras/jquery/dataTables/css/jquery.dataTables.css (added)
-
tags/0.2.9.34/extras/jquery/dataTables/css/jquery.dataTables_themeroller.css (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/Sorting icons.psd (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/back_disabled.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/back_enabled.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/back_enabled_hover.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/favicon.ico (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/forward_disabled.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/forward_enabled.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/forward_enabled_hover.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/sort_asc.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/sort_asc_disabled.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/sort_both.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/sort_desc.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/images/sort_desc_disabled.png (added)
-
tags/0.2.9.34/extras/jquery/dataTables/js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/js/jquery.dataTables.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/js/jquery.dataTables.min.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/js/jquery.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/DataTables.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/api (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/api/api.internal.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/api/api.methods.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/api/api.static.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.ajax.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.columns.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.constructor.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.data.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.draw.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.filter.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.info.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.init.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.length.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.page.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.processing.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.scrolling.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.sizing.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.sort.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.state.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/core/core.support.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/ext (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/ext/ext.classes.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/ext/ext.paging.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/ext/ext.sorting.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/ext/ext.types.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/model (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/model/model.column.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/model/model.defaults.columns.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/model/model.defaults.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/model/model.ext.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/model/model.row.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/model/model.search.js (added)
-
tags/0.2.9.34/extras/jquery/dataTables/src/model/model.settings.js (added)
-
tags/0.2.9.34/extras/jquery/jquery.cookie.js (added)
-
tags/0.2.9.34/extras/jquery/treeview (added)
-
tags/0.2.9.34/extras/jquery/treeview/images (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/ajax-loader.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/file.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/folder-closed.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/folder.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/minus.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/plus.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-black-line.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-black.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-default-line.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-default.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-famfamfam-line.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-famfamfam.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-gray-line.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-gray.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-red-line.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/images/treeview-red.gif (added)
-
tags/0.2.9.34/extras/jquery/treeview/jquery.treeview.async.js (added)
-
tags/0.2.9.34/extras/jquery/treeview/jquery.treeview.css (added)
-
tags/0.2.9.34/extras/jquery/treeview/jquery.treeview.edit.js (added)
-
tags/0.2.9.34/extras/jquery/treeview/jquery.treeview.js (added)
-
tags/0.2.9.34/extras/jquery/treeview/jquery.treeview.sortable.js (added)
-
tags/0.2.9.34/extras/phpthumb.bmp.php (added)
-
tags/0.2.9.34/extras/phpthumb.functions.php (added)
-
tags/0.2.9.34/extras/progressbar.class.php (added)
-
tags/0.2.9.34/images (added)
-
tags/0.2.9.34/images/admin_menu_icon.png (added)
-
tags/0.2.9.34/images/ajax-list-loader.gif (added)
-
tags/0.2.9.34/images/crystal_cat.png (added)
-
tags/0.2.9.34/images/dl_btn.png (added)
-
tags/0.2.9.34/images/dl_btn_hover.png (added)
-
tags/0.2.9.34/images/down-gray.png (added)
-
tags/0.2.9.34/images/down.png (added)
-
tags/0.2.9.34/images/folder48.png (added)
-
tags/0.2.9.34/images/wpfb-icon.png (added)
-
tags/0.2.9.34/js (added)
-
tags/0.2.9.34/js/admin.js (added)
-
tags/0.2.9.34/js/common.js (added)
-
tags/0.2.9.34/js/editor-plugin.js (added)
-
tags/0.2.9.34/js/live-admin.js (added)
-
tags/0.2.9.34/languages (added)
-
tags/0.2.9.34/languages/template.po (added)
-
tags/0.2.9.34/languages/wpfb-be_BY.mo (added)
-
tags/0.2.9.34/languages/wpfb-be_BY.po (added)
-
tags/0.2.9.34/languages/wpfb-de_DE.mo (added)
-
tags/0.2.9.34/languages/wpfb-de_DE.po (added)
-
tags/0.2.9.34/languages/wpfb-fa_IR.mo (added)
-
tags/0.2.9.34/languages/wpfb-fa_IR.po (added)
-
tags/0.2.9.34/languages/wpfb-fr_FR.mo (added)
-
tags/0.2.9.34/languages/wpfb-fr_FR.po (added)
-
tags/0.2.9.34/languages/wpfb-it_IT.mo (added)
-
tags/0.2.9.34/languages/wpfb-it_IT.po (added)
-
tags/0.2.9.34/languages/wpfb-lt_LT.mo (added)
-
tags/0.2.9.34/languages/wpfb-lt_LT.po (added)
-
tags/0.2.9.34/languages/wpfb-nl_NL.mo (added)
-
tags/0.2.9.34/languages/wpfb-nl_NL.po (added)
-
tags/0.2.9.34/languages/wpfb-pt_BR.mo (added)
-
tags/0.2.9.34/languages/wpfb-pt_BR.po (added)
-
tags/0.2.9.34/languages/wpfb-ru_RU.mo (added)
-
tags/0.2.9.34/languages/wpfb-ru_RU.po (added)
-
tags/0.2.9.34/languages/wpfb-sk_SK.mo (added)
-
tags/0.2.9.34/languages/wpfb-sk_SK.po (added)
-
tags/0.2.9.34/languages/wpfb-sv_SE.mo (added)
-
tags/0.2.9.34/languages/wpfb-sv_SE.po (added)
-
tags/0.2.9.34/languages/wpfb-tr_TR.mo (added)
-
tags/0.2.9.34/languages/wpfb-tr_TR.po (added)
-
tags/0.2.9.34/lib (added)
-
tags/0.2.9.34/lib/wpfb_form_cat.php (added)
-
tags/0.2.9.34/lib/wpfb_form_file.php (added)
-
tags/0.2.9.34/readme.txt (added)
-
tags/0.2.9.34/tinymce (added)
-
tags/0.2.9.34/tinymce/editor_plugin.js (added)
-
tags/0.2.9.34/tinymce/images (added)
-
tags/0.2.9.34/tinymce/images/btn.gif (added)
-
tags/0.2.9.34/wp-filebase-admin.css (added)
-
tags/0.2.9.34/wp-filebase.css (added)
-
tags/0.2.9.34/wp-filebase.php (added)
-
tags/0.2.9.34/wp-filebase_css.php (added)
-
tags/0.2.9.34/wp-filebase_thumb.php (added)
-
tags/0.2.9.34/wpfb-ajax.php (added)
-
tags/0.2.9.34/wpfb-async-upload.php (added)
-
tags/0.2.9.34/wpfb-postbrowser.php (added)
-
trunk/classes/Admin.php (modified) (2 diffs)
-
trunk/classes/AdvUploader.php (modified) (3 diffs)
-
trunk/classes/Core.php (modified) (1 diff)
-
trunk/classes/Output.php (modified) (1 diff)
-
trunk/classes/PLUpload.php (modified) (4 diffs)
-
trunk/classes/SWFUpload.php (modified) (3 diffs)
-
trunk/classes/Setup.php (modified) (2 diffs)
-
trunk/classes/TplLib.php (modified) (1 diff)
-
trunk/lib/wpfb_form_file.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-filebase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-filebase/trunk/classes/Admin.php
r655439 r660375 476 476 477 477 $childs = $cat->GetChildCats(true); 478 foreach($childs as $child) $child->SetReadPermissions($cur); 478 foreach($childs as $child) { 479 $child->Lock(true); 480 $child->SetReadPermissions($cur); 481 $child->Lock(false); 482 $child->DBSave(); 483 } 479 484 } 480 485 … … 568 573 $file_name = $upload ? str_replace('\\','',$data->file_upload['name']) : ((empty($file_src_path) && $update) ? $file->file_name : basename($file_src_path)); 569 574 } 575 576 if($upload) $data->file_rename = null; 570 577 571 578 -
wp-filebase/trunk/classes/AdvUploader.php
r655420 r660375 1 <?php class WPFB_AdvUploader {1 <?php abstract class WPFB_AdvUploader { 2 2 3 3 var $uploader; 4 4 var $form_url; 5 var $id; 6 var $is_edit; 5 7 6 static function GetAjaxAuthData($json=false) 8 public static function Create($form_url, $is_edit=false) 9 { 10 $uploader_class = (version_compare(get_bloginfo('version'), '3.2.1') <= 0) ? 'SWFUpload' : 'PLUpload'; 11 wpfb_loadclass($uploader_class); 12 $uploader_class = "WPFB_".$uploader_class; 13 14 return new $uploader_class($form_url, $is_edit); 15 } 16 17 function GetAjaxAuthData($json=false) 7 18 { 8 19 $frontend = !is_admin() && !defined('WPFB_EDITOR_PLUGIN'); … … 12 23 "_wpnonce" => wp_create_nonce(WPFB.'-async-upload'), 13 24 "frontend_upload" => $frontend, 14 "file_add_now" => !$frontend25 "file_add_now" => (!$frontend && !$this->is_edit) 15 26 ); 16 27 return $json ? trim(json_encode($dat),'{}') : $dat; 17 28 } 18 29 19 public function __construct($form_url)30 function WPFB_AdvUploader($form_url, $is_edit=false) 20 31 { 21 $uploader_class = (version_compare(get_bloginfo('version'), '3.2.1') <= 0) ? 'SWFUpload' : 'PLUpload';22 wpfb_loadclass($uploader_class);23 $uploader_class = "WPFB_".$uploader_class;24 $this->uploader = new $uploader_class;25 32 $this->form_url = $form_url; 33 $this->id = uniqid(); 34 $this->is_edit = $is_edit; 26 35 } 27 36 28 37 function PrintScripts($prefix='', $auto_submit=false) 29 38 { 30 $this-> uploader->Scripts($prefix);39 $this->Scripts($prefix); 31 40 ?> 32 41 … … 49 58 if(jQuery('#file_flash_upload').val() != '0') { 50 59 jQuery.ajax({type: 'POST', async: true, url:"<?php echo esc_attr( WPFB_PLUGIN_URI.'wpfb-async-upload.php' ); ?>", 51 data: {<?php echo WPFB_AdvUploader::GetAjaxAuthData(true) ?> , "delupload": jQuery('#file_flash_upload').val()},60 data: {<?php echo $this->GetAjaxAuthData(true) ?> , "delupload": jQuery('#file_flash_upload').val()}, 52 61 success: (function(data){}) 53 62 }); -
wp-filebase/trunk/classes/Core.php
r655420 r660375 26 26 27 27 // load lang 28 $lang_dir = basename(WPFB_PLUGIN_ROOT).'/languages';28 $lang_dir = defined('WPFB_LANG_DIR') ? ('../../'.WPFB_LANG_DIR) : basename(WPFB_PLUGIN_ROOT).'/languages'; 29 29 load_plugin_textdomain(WPFB, 'wp-content/plugins/'.$lang_dir, $lang_dir); 30 30 -
wp-filebase/trunk/classes/Output.php
r655420 r660375 440 440 $adv_uploader->Display($prefix); 441 441 } ?> 442 <small><?php printf(str_replace('%d%s','%s',__('Maximum upload file size: %d%s '/*def*/)), WPFB_Output::FormatFilesize(WPFB_Core::GetMaxUlSize())) ?></small>442 <small><?php printf(str_replace('%d%s','%s',__('Maximum upload file size: %d%s.'/*def*/)), WPFB_Output::FormatFilesize(WPFB_Core::GetMaxUlSize())) ?></small> 443 443 444 444 <?php if(empty($auto_submit)) { ?><div style="float: right; text-align:right;"><input type="submit" class="button-primary" name="submit-btn" value="<?php _ex('Add New', 'file'); ?>" /></div> -
wp-filebase/trunk/classes/PLUpload.php
r639699 r660375 1 1 <?php 2 2 3 class WPFB_PLUpload 4 { 5 var $id; 6 7 function __construct() 8 { 9 $this->id = uniqid(); 10 } 11 3 class WPFB_PLUpload extends WPFB_AdvUploader 4 { 12 5 function Scripts($prefix) 13 6 { … … 35 28 } 36 29 37 function Display( $form_url) {30 function Display() { 38 31 39 32 global $is_IE, $is_opera; … … 71 64 'multipart' => true, 72 65 'urlstream_upload' => true, 73 'multipart_params' => WPFB_AdvUploader::GetAjaxAuthData()66 'multipart_params' => $this->GetAjaxAuthData() 74 67 ); 75 68 … … 89 82 <div id="drag-drop-area"> 90 83 <div class="drag-drop-inside"> 91 <p class="drag-drop-info"><?php _e('Drop files here '); ?> - <?php _ex('or', 'Uploader: Drop files here - or - Select Files'); ?> -<span class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e('Select Files'); ?>" class="button" /></span></p>84 <p class="drag-drop-info"><?php _e('Drop files here - or -',WPFB); ?> <span class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e('Select Files'); ?>" class="button" /></span></p> 92 85 </div> 93 86 </div> -
wp-filebase/trunk/classes/SWFUpload.php
r630203 r660375 1 1 <?php 2 2 3 class WPFB_SWFUpload 3 class WPFB_SWFUpload extends WPFB_AdvUploader 4 4 { 5 var $id;6 7 function __construct()8 {9 $this->id = uniqid();10 }11 12 5 function Scripts($prefix) 13 6 { … … 37 30 } 38 31 39 function Display( $form_url) {32 function Display() { 40 33 41 34 // #8545. wmode=transparent cannot be used with SWFUpload … … 63 56 file_post_name: "async-upload", 64 57 file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>", 65 post_params : { <?php echo WPFB_AdvUploader::GetAjaxAuthData(); ?> },58 post_params : { <?php echo $this->GetAjaxAuthData(); ?> }, 66 59 file_size_limit : "<?php 67 60 require_once(ABSPATH . 'wp-admin/includes/template.php'); -
wp-filebase/trunk/classes/Setup.php
r655439 r660375 546 546 WPFB_Admin::SettingsUpdated($old_options, get_option(WPFB_OPT_NAME)); 547 547 self::ProtectUploadPath(); 548 WPFB_Admin::FlushRewriteRules();549 548 550 549 WPFB_Admin::WPCacheRejectUri(WPFB_Core::GetOpt('download_base') . '/', $old_options['download_base'] . '/'); … … 563 562 if(!get_option('wpfb_install_time')) add_option('wpfb_install_time', (($ft=(int)mysql2date('U',$wpdb->get_var("SELECT file_mtime FROM $wpdb->wpfilebase_files ORDER BY file_mtime ASC LIMIT 1")))>0)?$ft:time(), null, 'no'); 564 563 564 565 WPFB_Admin::FlushRewriteRules(); 565 566 } 566 567 -
wp-filebase/trunk/classes/TplLib.php
r639699 r660375 64 64 $exp = preg_replace('/([^\w])OR([^\w])/', '$1||$2', $exp); 65 65 $exp = preg_replace('/([^\w])NOT([^\w])/', '$1!$2', $exp); 66 67 // unescape " 68 $exp = stripslashes($exp); 69 66 70 return $exp; 67 71 } -
wp-filebase/trunk/lib/wpfb_form_file.php
r655420 r660375 46 46 47 47 wpfb_loadclass('AdvUploader'); 48 $adv_uploader = new WPFB_AdvUploader($form_url);48 $adv_uploader = WPFB_AdvUploader::Create($form_url, $update); 49 49 50 50 -
wp-filebase/trunk/readme.txt
r655439 r660375 4 4 Tags: filebase, filemanager, file, files, manager, upload, download, downloads, downloadmanager, images, pdf, widget, filelist, list, thumbnails, thumbnail, attachment, attachments, category, categories, media, template, ftp, http, mp3, id3 5 5 Requires at least: 3.1 6 Tested up to: 3.5 7 Stable tag: 0.2.9.3 36 Tested up to: 3.5.1 7 Stable tag: 0.2.9.34 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.34 = 117 * Custom language files dir can be set with PHP constant WPFB_LANG_DIR in wp-config.php 118 * Fixed quote escaping in template IF expressions 119 * Fixed flash uploader behavior when uploading file updates 115 120 116 121 = 0.2.9.33 = -
wp-filebase/trunk/wp-filebase.php
r655439 r660375 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 37 Version: 0.2.9.34 8 8 Author URI: http://wpfilebase.com/ 9 9 */ … … 12 12 { 13 13 define('WPFB', 'wpfb'); 14 define('WPFB_VERSION', '0.2.9.3 3');14 define('WPFB_VERSION', '0.2.9.34'); 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.