From: <tr...@us...> - 2012-12-12 23:47:20
|
Revision: 10375 http://sourceforge.net/p/xoops/svn/10375 Author: trabis Date: 2012-12-12 23:47:08 +0000 (Wed, 12 Dec 2012) Log Message: ----------- Committing first version of publisher Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/clone.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/news.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/smartsection.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/wfsection.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/xfsection.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/mimetypes.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/pagewrap.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/permissions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/preferences.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/pw_delete_file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/pw_upload_file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/ajaxrating.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/archive.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/author_items.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/backend.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/category_items_sel.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/date_to_date.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_columns.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_new.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_random_item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_recent.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_spot.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/latest_files.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/latest_news.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/category.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/blockform.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/category.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/category.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/formdatetime.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/groupperm.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/metagen.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/mimetype.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/permission.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/publisher.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/rating.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/request.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/session.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/themetabform.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/uploader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/utils.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_delete.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_edit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_new.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_post.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_reply.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_flat_0_aaaaaa_40x100.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_flat_75_ffffff_40x100.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_55_fbf9ee_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_65_ffffff_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_75_dadada_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_75_e6e6e6_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_95_fef1ec_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_222222_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_2e83ff_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_454545_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_888888_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_cd0a0a_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/jquery-ui-1.7.1.custom.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/jquery.popeye.style.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/publisher.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/credits.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/install.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/lang_diff.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/licence.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/readme.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/seo/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/seo/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/seo/sample.htaccess XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/seo/seo.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/footer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/VeraBd.ttf XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/arrow-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/bg.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/blank.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/bullet.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/button_delete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/button_edit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/dot-grey.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/count-2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/enlarge-1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/enlarge-2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/loading.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/next-1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/next-2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/next.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/prev-1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/prev-2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/prev.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/grad-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/approve.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/cat.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/clone.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/close12.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/delete.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/delete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/doc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/edit.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/edit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/editcopy.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/file.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/friend.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/newanswer.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/open12.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/pdf.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/print.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/subcat.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon32/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon32/editcopy.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon32/folder_txt.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon32/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/important-32.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/item_icon.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/left_both.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/approve.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/cat.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/clone.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/close12.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/delete.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/delete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/doc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/edit.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/edit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/editcopy.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/file.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/friend.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/newanswer.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/next.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/open12.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/pdf.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/previous.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/print.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/subcat.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/loadingbar.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/module_logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/no.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/on.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/bg1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/compact3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/enlarge3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/loading3.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/next3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/prev3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/right_both.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/rss.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/span-bg.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/starrating.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/transparent_bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/working.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/ajax_rating.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/ajax_upload.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/comment_functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/common.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/notification.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/plugin.tag.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/search.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/seo.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/ajaxupload.3.9.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/behavior.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/cookies.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/funcs.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/jquery.easing.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/jquery.popeye-2.0.4.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/publisher.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/rating.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/script.easing.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/ui.core.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/ui.tabs.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/common.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/category_item_published.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/category_item_submitted.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/global_item_category_created.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/global_item_published.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/global_item_submitted.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/item_approved.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/item_rejected.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/common.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/category_item_published.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/category_item_submitted.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/global_item_category_created.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/global_item_published.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/global_item_submitted.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/item_approved.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/item_rejected.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/list.tag.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/makepdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/notification_update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/pop.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/print.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/rate.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/sql/mysql.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/submit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/CHANGELOG.TXT XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/LICENSE.TXT XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/README.TXT XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/cache/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/cache/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/ar.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/de.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/en.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/fa.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/fr.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/nl.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/tcpdf_config.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/almohanad.ctg.z XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/almohanad.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/almohanad.z XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/dejavusans.ctg.z XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/dejavusans.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/dejavusans.z XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/htmlcolors.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/tcpdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/unicode_data.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_category_items_sel.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_date_to_date.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_columns.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_menu.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_new.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_random_item.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_recent.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_spot.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_latest_files.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_latest_news.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_search_block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_addfile.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_archive.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_author_items.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_categories_table.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_full.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_list.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_summary.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_wfsection.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_footer.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_header.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_item.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_print.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_rss.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_search.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_singleitem.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_singleitem_block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_submit.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/thumb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/view.tag.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/visit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/xoops_version.php Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php 2012-12-12 23:47:08 UTC (rev 10375) @@ -0,0 +1,31 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +*/ + +/** + * Publisher + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) + * @package Publisher + * @since 1.0 + * @author Mage, Mamba + * @version $Id$ + */ + +include dirname(__FILE__) . '/admin_header.php'; +$xoops = Xoops::getInstance(); +$xoops->header(); + +$aboutAdmin = new XoopsModuleAdmin(); +$aboutAdmin->displayNavigation('about.php'); +$aboutAdmin->displayAbout('6KJ7RW5DR3VTJ', false); + +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php 2012-12-12 23:47:08 UTC (rev 10375) @@ -0,0 +1,29 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Publisher + * @since 1.0 + * @author trabis <lus...@gm...> + * @author The SmartFactory <www.smartfactory.ca> + * @version $Id$ + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; + +$xoops = Xoops::getInstance(); +$publisher = Publisher::getInstance(); +$publisher->loadLanguage('modinfo'); + +XoopsLoad::loadFile($xoops->path(dirname(dirname(__FILE__)) . '/include/common.php')); +XoopsLoad::loadFile($xoops->path(XOOPS_ROOT_PATH . '/include/cp_header.php')); Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php 2012-12-12 23:47:08 UTC (rev 10375) @@ -0,0 +1,404 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Publisher + * @since 1.0 + * @author trabis <lus...@gm...> + * @author The SmartFactory <www.smartfactory.ca> + * @version $Id$ + */ + +include_once dirname(__FILE__) . '/admin_header.php'; + +$xoops = Xoops::getInstance(); +$op = PublisherRequest::getString('op'); + +$op = isset($_POST['editor']) ? 'mod' : $op; +if (isset($_POST['addcategory'])) { + $op = 'addcategory'; +} + +// Where do we start ? +$startcategory = PublisherRequest::getInt('startcategory'); +$categoryid = PublisherRequest::getInt('categoryid'); + +switch ($op) { + + case "del": + /* @var $categoryObj PublisherCategory */ + $categoryObj = $publisher->getCategoryHandler()->get($categoryid); + $confirm = (isset($_POST['confirm'])) ? $_POST['confirm'] : 0; + $name = (isset($_POST['name'])) ? $_POST['name'] : ''; + if ($confirm) { + if (!$publisher->getCategoryHandler()->delete($categoryObj)) { + $xoops->redirect("category.php", 1, _AM_PUBLISHER_DELETE_CAT_ERROR); + } + $xoops->redirect("category.php", 1, sprintf(_AM_PUBLISHER_COLISDELETED, $name)); + } else { + $xoops->header(); + $xoops->confirm(array('op' => 'del', 'categoryid' => $categoryObj->getVar('categoryid'), 'confirm' => 1, 'name' => $categoryObj->getVar('name')), 'category.php', _AM_PUBLISHER_DELETECOL . " '" . $categoryObj->getVar('name') . "'. <br /> <br />" . _AM_PUBLISHER_DELETE_CAT_CONFIRM, _AM_PUBLISHER_DELETE); + $xoops->footer(); + } + break; + + case "mod": + //Added by fx2024 + $nb_subcats = isset($_POST['nb_subcats']) ? intval($_POST['nb_subcats']) : 0; + $nb_subcats = $nb_subcats + (isset($_POST['nb_sub_yet']) ? intval($_POST['nb_sub_yet']) : 4); + //end of fx2024 code + + PublisherUtils::cpHeader(); + publisher_editCat(true, $categoryid, $nb_subcats); + break; + + case "addcategory": + global $modify; + + $parentid = PublisherRequest::getInt('parentid'); + /* @var $categoryObj PublisherCategory */ + if ($categoryid != 0) { + $categoryObj = $publisher->getCategoryHandler()->get($categoryid); + } else { + $categoryObj = $publisher->getCategoryHandler()->create(); + } + + // Uploading the image, if any + // Retreive the filename to be uploaded + if (isset($_FILES['image_file']['name']) && $_FILES['image_file']['name'] != "") { + $filename = $_POST["xoops_upload_file"][0]; + if (!empty($filename) || $filename != "") { + // TODO : implement publisher mimetype management + $max_size = $publisher->getConfig('maximum_filesize'); + $max_imgwidth = $publisher->getConfig('maximum_image_width'); + $max_imgheight = $publisher->getConfig('maximum_image_height'); + $allowed_mimetypes = PublisherUtils::getAllowedImagesTypes(); + + if ($_FILES[$filename]['tmp_name'] == "" || !is_readable($_FILES[$filename]['tmp_name'])) { + $xoops->redirect('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR); + } + + $uploader = new PublisherUploader(PublisherUtils::getImageDir('category'), $allowed_mimetypes, $max_size, $max_imgwidth, $max_imgheight); + if ($uploader->fetchMedia($filename) && $uploader->upload()) { + $categoryObj->setVar('image', $uploader->getSavedFileName()); + } else { + $xoops->redirect('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR . $uploader->getErrors()); + } + } + } else { + if (isset($_POST['image'])) { + $categoryObj->setVar('image', $_POST['image']); + } + } + $categoryObj->setVar('parentid', (isset($_POST['parentid'])) ? intval($_POST['parentid']) : 0); + + $applyall = isset($_POST['applyall']) ? intval($_POST['applyall']) : 0; + $categoryObj->setVar('weight', isset($_POST['weight']) ? intval($_POST['weight']) : 1); + + // Groups and permissions + $grpread = isset($_POST['groups_read']) ? $_POST['groups_read'] : array(); + $grpsubmit = isset($_POST['groups_submit']) ? $_POST['groups_submit'] : array(); + $grpmoderation = isset($_POST['groups_moderation']) ? $_POST['groups_moderation'] : array(); + + + $categoryObj->setVar('name', $_POST['name']); + + //Added by skalpa: custom template support + if (isset($_POST['template'])) { + $categoryObj->setVar('template', $_POST['template']); + } + + if (isset($_POST['meta_description'])) { + $categoryObj->setVar('meta_description', $_POST['meta_description']); + } + if (isset($_POST['meta_keywords'])) { + $categoryObj->setVar('meta_keywords', $_POST['meta_keywords']); + } + if (isset($_POST['short_url'])) { + $categoryObj->setVar('short_url', $_POST['short_url']); + } + $categoryObj->setVar('moderator', intval($_POST['moderator'])); + $categoryObj->setVar('description', $_POST['description']); + + if (isset($_POST['header'])) { + $categoryObj->setVar('header', $_POST['header']); + } + + if ($categoryObj->isNew()) { + $redirect_msg = _AM_PUBLISHER_CATCREATED; + $redirect_to = 'category.php?op=mod'; + } else { + $redirect_msg = _AM_PUBLISHER_COLMODIFIED; + $redirect_to = 'category.php'; + } + + if (!$categoryObj->store()) { + $xoops->redirect("javascript:history.go(-1)", 3, _AM_PUBLISHER_CATEGORY_SAVE_ERROR . PublisherUtils::formatErrors($categoryObj->getErrors())); + } + // TODO : put this function in the category class + PublisherUtils::saveCategoryPermissions($grpread, $categoryObj->getVar('categoryid'), 'category_read'); + PublisherUtils::saveCategoryPermissions($grpsubmit, $categoryObj->getVar('categoryid'), 'item_submit'); + PublisherUtils::saveCategoryPermissions($grpmoderation, $categoryObj->getVar('categoryid'), 'category_moderation'); + + + //Added by fx2024 + $parentCat = $categoryObj->getVar('categoryid'); + $sizeof = sizeof($_POST['scname']); + for ($i = 0; $i < $sizeof; $i++) { + if ($_POST['scname'][$i] != '') { + $categoryObj = $publisher->getCategoryHandler()->create(); + $categoryObj->setVar('name', $_POST['scname'][$i]); + $categoryObj->setVar('parentid', $parentCat); + + if (!$categoryObj->store()) { + $xoops->redirect("javascript:history.go(-1)", 3, _AM_PUBLISHER_SUBCATEGORY_SAVE_ERROR . PublisherUtils::formatErrors($categoryObj->getErrors())); + } + // TODO : put this function in the category class + PublisherUtils::saveCategoryPermissions($grpread, $categoryObj->getVar('categoryid'), 'category_read'); + PublisherUtils::saveCategoryPermissions($grpsubmit, $categoryObj->getVar('categoryid'), 'item_submit'); + PublisherUtils::saveCategoryPermissions($grpmoderation, $categoryObj->getVar('categoryid'), 'category_moderation'); + } + } + //end of fx2024 code + $xoops->redirect($redirect_to, 2, $redirect_msg); + break; + + //Added by fx2024 + + case "addsubcats": + $categoryid = 0; + $nb_subcats = intval($_POST['nb_subcats']) + $_POST['nb_sub_yet']; + + $categoryObj = $publisher->getCategoryHandler()->create(); + $categoryObj->setVar('name', $_POST['name']); + $categoryObj->setVar('description', $_POST['description']); + $categoryObj->setVar('weight', $_POST['weight']); + if (isset($parentCat)) { + $categoryObj->setVar('parentid', $parentCat); + } + + PublisherUtils::cpHeader(); + publisher_editCat(true, $categoryid, $nb_subcats, $categoryObj); + exit(); + + break; + //end of fx2024 code + + case "cancel": + $xoops->redirect("category.php", 1, sprintf(_AM_PUBLISHER_BACK2IDX, '')); + break; + case "default": + default: + PublisherUtils::cpHeader(); + //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES); + + echo "<br />\n"; + echo "<form><div style=\"margin-bottom: 12px;\">"; + echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='" . _AM_PUBLISHER_CATEGORY_CREATE . "'> "; + //echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> "; + echo "</div></form>"; + + // Creating the objects for top categories + $categoriesObj = $publisher->getCategoryHandler()->getCategories($publisher->getConfig('idxcat_perpage'), $startcategory, 0); + + PublisherUtils::openCollapsableBar('createdcategories', 'createdcategoriesicon', _AM_PUBLISHER_CATEGORIES_TITLE, _AM_PUBLISHER_CATEGORIES_DSC); + + echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; + echo "<tr>"; + echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>"; + echo "<td width='60' class='bg3' width='65' align='center'><strong>" . _CO_PUBLISHER_WEIGHT . "</strong></td>"; + echo "<td width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; + echo "</tr>"; + $totalCategories = $publisher->getCategoryHandler()->getCategoriesCount(0); + if (count($categoriesObj) > 0) { + foreach ($categoriesObj as $key => $thiscat) { + publisher_displayCategory($thiscat); + } + } else { + echo "<tr>"; + echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOCAT . "</td>"; + echo "</tr>"; + $categoryid = '0'; + } + echo "</table>\n"; + $pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_perpage'), $startcategory, 'startcategory'); + echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; + echo "<br />"; + PublisherUtils::closeCollapsableBar('createdcategories', 'createdcategoriesicon'); + echo "<br>"; + //editcat(false); + break; +} + +$xoops->footer(); + +function publisher_displayCategory(PublisherCategory $categoryObj, $level = 0) +{ + $publisher = Publisher::getInstance(); + + $description = $categoryObj->getVar('description'); + if (!XOOPS_USE_MULTIBYTES) { + if (strlen($description) >= 100) { + $description = substr($description, 0, (100 - 1)) . "..."; + } + } + $modify = "<a href='category.php?op=mod&categoryid=" . $categoryObj->getVar('categoryid') . "&parentid=" . $categoryObj->getVar('parentid') . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITCOL . "' alt='" . _AM_PUBLISHER_EDITCOL . "' /></a>"; + $delete = "<a href='category.php?op=del&categoryid=" . $categoryObj->getVar('categoryid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETECOL . "' alt='" . _AM_PUBLISHER_DELETECOL . "' /></a>"; + + $spaces = ''; + for ($j = 0; $j < $level; $j++) { + $spaces .= ' '; + } + + echo "<tr>"; + echo "<td class='even' align='left'>" . $spaces . "<a href='" . PUBLISHER_URL . "/category.php?categoryid=" . $categoryObj->getVar('categoryid') . "'><img src='" . PUBLISHER_URL . "/images/links/subcat.gif' alt='' /> " . $categoryObj->getVar('name') . "</a></td>"; + echo "<td class='even' align='center'>" . $categoryObj->getVar('weight') . "</td>"; + echo "<td class='even' align='center'> $modify $delete </td>"; + echo "</tr>"; + $subCategoriesObj = $publisher->getCategoryHandler()->getCategories(0, 0, $categoryObj->getVar('categoryid')); + if (count($subCategoriesObj) > 0) { + $level++; + foreach ($subCategoriesObj as $thiscat) { + publisher_displayCategory($thiscat, $level); + } + } + unset($categoryObj); +} + +function publisher_editCat($showmenu = false, $categoryid = 0, $nb_subcats = 4, $categoryObj = null) +{ + $xoops = Xoops::getInstance(); + $publisher = Publisher::getInstance(); + /* @var $categoryObj PublisherCategory */ + + // if there is a parameter, and the id exists, retrieve data: we're editing a category + if ($categoryid != 0) { + // Creating the category object for the selected category + $categoryObj = $publisher->getCategoryHandler()->get($categoryid); + if ($categoryObj->notLoaded()) { + $xoops->redirect("category.php", 1, _AM_PUBLISHER_NOCOLTOEDIT); + } + } else { + if (!$categoryObj) { + $categoryObj = $publisher->getCategoryHandler()->create(); + } + } + + if ($categoryid != 0) { + if ($showmenu) { + //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES . " > " . _AM_PUBLISHER_EDITING); + } + echo "<br />\n"; + PublisherUtils::openCollapsableBar('edittable', 'edittableicon', _AM_PUBLISHER_EDITCOL, _AM_PUBLISHER_CATEGORY_EDIT_INFO); + } else { + if ($showmenu) { + //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES . " > " . _AM_PUBLISHER_CREATINGNEW); + } + PublisherUtils::openCollapsableBar('createtable', 'createtableicon', _AM_PUBLISHER_CATEGORY_CREATE, _AM_PUBLISHER_CATEGORY_CREATE_INFO); + } + + /* @var $sform PublisherCategoryForm */ + $sform = $publisher->getForm($categoryObj, 'category'); + $sform->setSubCatsCount($nb_subcats); + $sform->display(); + + if (!$categoryid) { + PublisherUtils::closeCollapsableBar('createtable', 'createtableicon'); + } else { + PublisherUtils::closeCollapsableBar('edittable', 'edittableicon'); + } + + //Added by fx2024 + if ($categoryid) { + $sel_cat = $categoryid; + + PublisherUtils::openCollapsableBar('subcatstable', 'subcatsicon', _AM_PUBLISHER_SUBCAT_CAT, _AM_PUBLISHER_SUBCAT_CAT_DSC); + // Get the total number of sub-categories + $categoriesObj = $publisher->getCategoryHandler()->get($sel_cat); + $totalsubs = $publisher->getCategoryHandler()->getCategoriesCount($sel_cat); + // creating the categories objects that are published + $subcatsObj = $publisher->getCategoryHandler()->getCategories(0, 0, $categoriesObj->getVar('categoryid')); + + echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; + echo "<tr>"; + echo "<td width='60' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATID . "</strong></td>"; + echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATCOLNAME . "</strong></td>"; + echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_SUBDESCRIPT . "</strong></td>"; + echo "<td width='60' class='bg3' align='right'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; + echo "</tr>"; + if ($totalsubs > 0) { + /* @var $subcat PublisherCategory */ + foreach ($subcatsObj as $subcat) { + $modify = "<a href='category.php?op=mod&categoryid=" . $subcat->getVar('categoryid') . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_MODIFY . "' alt='" . _AM_PUBLISHER_MODIFY . "' /></a>"; + $delete = "<a href='category.php?op=del&categoryid=" . $subcat->getVar('categoryid') . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETE . "' alt='" . _AM_PUBLISHER_DELETE . "' /></a>"; + echo "<tr>"; + echo "<td class='head' align='left'>" . $subcat->getVar('categoryid') . "</td>"; + echo "<td class='even' align='left'><a href='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/category.php?categoryid=" . $subcat->getVar('categoryid') . "&parentid=" . $subcat->getVar('parentid'). "'>" . $subcat->getVar('name') . "</a></td>"; + echo "<td class='even' align='left'>" . $subcat->getVar('description') . "</td>"; + echo "<td class='even' align='right'> {$modify} {$delete} </td>"; + echo "</tr>"; + } + } else { + echo "<tr>"; + echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOSUBCAT . "</td>"; + echo "</tr>"; + } + echo "</table>\n"; + echo "<br />\n"; + PublisherUtils::closeCollapsableBar('subcatstable', 'subcatsicon'); + + PublisherUtils::openCollapsableBar('bottomtable', 'bottomtableicon', _AM_PUBLISHER_CAT_ITEMS, _AM_PUBLISHER_CAT_ITEMS_DSC); + $startitem = PublisherRequest::getInt('startitem'); + // Get the total number of published ITEMS + $totalitems = $publisher->getItemHandler()->getItemsCount($sel_cat, array(_PUBLISHER_STATUS_PUBLISHED)); + // creating the items objects that are published + $itemsObj = $publisher->getItemHandler()->getAllPublished($publisher->getConfig('idxcat_perpage'), $startitem, $sel_cat); + $totalitemsOnPage = count($itemsObj); + $allcats = $publisher->getCategoryHandler()->getObjects(null, true); + echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; + echo "<tr>"; + echo "<td width='40' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>"; + echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCOLNAME . "</strong></td>"; + echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMDESC . "</strong></td>"; + echo "<td width='90' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>"; + echo "<td width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; + echo "</tr>"; + if ($totalitems > 0) { + for ($i = 0; $i < $totalitemsOnPage; $i++) { + $categoryObj =& $allcats[$itemsObj[$i]->getVar('categoryid')]; + $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITITEM . "' alt='" . _AM_PUBLISHER_EDITITEM . "' /></a>"; + $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "'/></a>"; + echo "<tr>"; + echo "<td class='head' align='center'>" . $itemsObj[$i]->getVar('itemid'). "</td>"; + echo "<td class='even' align='left'>" . $categoryObj->getVar('name') . "</td>"; + echo "<td class='even' align='left'>" . $itemsObj[$i]->getitemLink() . "</td>"; + echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub('s') . "</td>"; + echo "<td class='even' align='center'> $modify $delete </td>"; + echo "</tr>"; + } + } else { + echo "<tr>"; + echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMS . "</td>"; + echo "</tr>"; + } + echo "</table>\n"; + echo "<br />\n"; + $parentid = PublisherRequest::getInt('parentid'); + $pagenav_extra_args = "op=mod&categoryid=$sel_cat&parentid=$parentid"; + $pagenav = new XoopsPageNav($totalitems, $publisher->getConfig('idxcat_perpage'), $startitem, 'startitem', $pagenav_extra_args); + echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; + echo "<input type='button' name='button' onclick=\"location='item.php?op=mod&categoryid=" . $sel_cat . "'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> "; + echo "</div>"; + } + //end of fx2024 code +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/clone.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/clone.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/clone.php 2012-12-12 23:47:08 UTC (rev 10375) @@ -0,0 +1,164 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Publisher + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include_once dirname(__FILE__) . "/admin_header.php"; + +$xoops = Xoops::getInstance(); +PublisherUtils::cpHeader(); +//publisher_adminMenu(-1, _AM_PUBLISHER_CLONE); +PublisherUtils::openCollapsableBar('clone', 'cloneicon', _AM_PUBLISHER_CLONE, _AM_PUBLISHER_CLONE_DSC); + +if (@$_POST['op'] == 'submit') { + + if (!$xoops->security()->check()) { + $xoops->redirect('clone.php', 3, implode('<br />', $xoops->security()->getErrors())); + } + + $clone = $_POST['clone']; + + //check if name is valid + if (empty($clone) || preg_match('/[^a-zA-Z0-9\_\-]/', $clone)) { + $xoops->redirect('clone.php', 3, sprintf(_AM_PUBLISHER_CLONE_INVALIDNAME, $clone)); + exit(); + } + + // Check wether the cloned module exists or not + if ($clone && is_dir(XOOPS_ROOT_PATH . '/modules/' . $clone)) { + $xoops->redirect('clone.php', 3, sprintf(_AM_PUBLISHER_CLONE_EXISTS, $clone)); + } + + $patterns = array( + strtolower(PUBLISHER_DIRNAME) => strtolower($clone), + strtoupper(PUBLISHER_DIRNAME) => strtoupper($clone), + ucfirst(strtolower(PUBLISHER_DIRNAME)) => ucfirst(strtolower($clone)) + ); + + $patKeys = array_keys($patterns); + $patValues = array_values($patterns); + publisher_cloneFileFolder(PUBLISHER_ROOT_PATH); + $logocreated = publisher_createLogo(strtolower($clone)); + + $msg = ""; + if (is_dir(XOOPS_ROOT_PATH . '/modules/' . strtolower($clone))) { + $msg .= sprintf(_AM_PUBLISHER_CLONE_CONGRAT, "<a href='" . XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin'>" . ucfirst(strtolower($clone)) . "</a>") . "<br />\n"; + if (!$logocreated) { + $msg .= _AM_PUBLISHER_CLONE_IMAGEFAIL; + } + } else { + $msg .= _AM_PUBLISHER_CLONE_FAIL; + } + echo $msg; + +} else { + $form = new XoopsThemeForm(sprintf(_AM_PUBLISHER_CLONE_TITLE, $publisher->getModule()->getVar('name', 'E')), 'clone', 'clone.php', 'post', true); + $clone = new XoopsFormText(_AM_PUBLISHER_CLONE_NAME, 'clone', 20, 20, ''); + $clone->setDescription(_AM_PUBLISHER_CLONE_NAME_DSC); + $form->addElement($clone, true); + $form->addElement(new XoopsFormHidden('op', 'submit')); + $form->addElement(new XoopsFormButton('', '', _SUBMIT, 'submit')); + $form->display(); +} + +// End of collapsable bar +PublisherUtils::closeCollapsableBar('clone', 'cloneicon'); +$xoops->footer(); + +// work around for PHP < 5.0.x +if (!function_exists('file_put_contents')) { + function file_put_contents($filename, $data, $file_append = false) + { + if ($fp = fopen($filename, (!$file_append ? 'w+' : 'a+'))) { + fputs($fp, $data); + fclose($fp); + } + } +} + +// recursive clonning script +function publisher_cloneFileFolder($path) +{ + global $patKeys; + global $patValues; + + $newPath = str_replace($patKeys[0], $patValues[0], $path); + + if (is_dir($path)) { + // create new dir + mkdir($newPath); + + // check all files in dir, and process it + if ($handle = opendir($path)) { + while ($file = readdir($handle)) { + if ($file != '.' && $file != '..' && $file != '.svn') { + publisher_cloneFileFolder("{$path}/{$file}"); + } + } + closedir($handle); + } + } else { + + if (preg_match('/(.jpg|.gif|.png|.zip)$/i', $path)) { + // image + copy($path, $newPath); + } else { + // file, read it + $content = file_get_contents($path); + $content = str_replace($patKeys, $patValues, $content); + file_put_contents($newPath, $content); + } + } +} + +function publisher_createLogo($dirname) +{ + if (!extension_loaded("gd")) { + return false; + } else { + $required_functions = array("imagecreatetruecolor", "imagecolorallocate", "imagefilledrectangle", "imagejpeg", "imagedestroy", "imageftbbox"); + foreach ($required_functions as $func) { + if (!function_exists($func)) { + return false; + } + } + } + + if (!file_exists($imageBase = XOOPS_ROOT_PATH . "/modules/" . $dirname . "/images/module_logo.png") || !file_exists($font = XOOPS_ROOT_PATH . "/modules/" . $dirname . "/images/VeraBd.ttf")) { + return false; + } + + $imageModule = imagecreatefrompng($imageBase); + + //Erase old text + $grey_color = imagecolorallocate($imageModule, 237, 237, 237); + imagefilledrectangle($imageModule, 5, 35, 85, 46, $grey_color); + + // Write text + $text_color = imagecolorallocate($imageModule, 0, 0, 0); + $space_to_border = (80 - strlen($dirname) * 6.5) / 2; + imagefttext($imageModule, 8.5, 0, $space_to_border, 45, $text_color, $font, ucfirst($dirname), array()); + + // Set transparency color + $white = imagecolorallocatealpha($imageModule, 255, 255, 255, 127); + imagefill($imageModule, 0, 0, $white);... [truncated message content] |