From: <wis...@us...> - 2008-09-17 22:55:00
|
Revision: 2103 http://xoops.svn.sourceforge.net/xoops/?rev=2103&view=rev Author: wishcraft Date: 2008-09-17 22:54:54 +0000 (Wed, 17 Sep 2008) Log Message: ----------- Dr Usage 2.09 (Final) - Cleaned up a bit and more graphs added X-SOAP 4.0 (Final) - <? changed to <?php X-Torrent 3.13 (Final) - Paypal Added (IPN inc.) / Closed Tracker Enforced, New Passkey (QCP).. Added Paths: ----------- XoopsModules/dr-usage/releases/2.09/ XoopsModules/dr-usage/releases/2.09/usage/ XoopsModules/dr-usage/releases/2.09/usage/admin/ XoopsModules/dr-usage/releases/2.09/usage/admin/index.php XoopsModules/dr-usage/releases/2.09/usage/admin/menu.php XoopsModules/dr-usage/releases/2.09/usage/blocks/ XoopsModules/dr-usage/releases/2.09/usage/blocks/usage_block.php XoopsModules/dr-usage/releases/2.09/usage/class/ XoopsModules/dr-usage/releases/2.09/usage/class/usage.php XoopsModules/dr-usage/releases/2.09/usage/graph/ XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-bar.php XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-country.php XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-fillarea.php XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-line.php XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-suffix.php XoopsModules/dr-usage/releases/2.09/usage/images/ XoopsModules/dr-usage/releases/2.09/usage/images/logo.gif XoopsModules/dr-usage/releases/2.09/usage/index.php XoopsModules/dr-usage/releases/2.09/usage/language/ XoopsModules/dr-usage/releases/2.09/usage/language/english/ XoopsModules/dr-usage/releases/2.09/usage/language/english/main.php XoopsModules/dr-usage/releases/2.09/usage/language/english/modinfo.php XoopsModules/dr-usage/releases/2.09/usage/sql/ XoopsModules/dr-usage/releases/2.09/usage/sql/index.html XoopsModules/dr-usage/releases/2.09/usage/sql/usage.sql XoopsModules/dr-usage/releases/2.09/usage/templates/ XoopsModules/dr-usage/releases/2.09/usage/templates/blocks/ XoopsModules/dr-usage/releases/2.09/usage/templates/blocks/usage_block.html XoopsModules/dr-usage/releases/2.09/usage/templates/usage_index.html XoopsModules/dr-usage/releases/2.09/usage/xoops_version.php XoopsModules/xsoap/releases/4.0/ XoopsModules/xsoap/releases/4.0/xsoap/ XoopsModules/xsoap/releases/4.0/xsoap/.htaccess XoopsModules/xsoap/releases/4.0/xsoap/.htaccess.bak XoopsModules/xsoap/releases/4.0/xsoap/admin/ XoopsModules/xsoap/releases/4.0/xsoap/admin/admin_header.php XoopsModules/xsoap/releases/4.0/xsoap/admin/error_log XoopsModules/xsoap/releases/4.0/xsoap/admin/index.php XoopsModules/xsoap/releases/4.0/xsoap/admin/menu.php XoopsModules/xsoap/releases/4.0/xsoap/admin/permissions.php XoopsModules/xsoap/releases/4.0/xsoap/blocks/ XoopsModules/xsoap/releases/4.0/xsoap/blocks/index.html XoopsModules/xsoap/releases/4.0/xsoap/class/ XoopsModules/xsoap/releases/4.0/xsoap/class/class.functions.php XoopsModules/xsoap/releases/4.0/xsoap/class/index.html XoopsModules/xsoap/releases/4.0/xsoap/cron/ XoopsModules/xsoap/releases/4.0/xsoap/cron/index.html XoopsModules/xsoap/releases/4.0/xsoap/images/ XoopsModules/xsoap/releases/4.0/xsoap/images/close12.gif XoopsModules/xsoap/releases/4.0/xsoap/images/index.html XoopsModules/xsoap/releases/4.0/xsoap/images/open12.gif XoopsModules/xsoap/releases/4.0/xsoap/images/xsoap_slogo.png XoopsModules/xsoap/releases/4.0/xsoap/include/ XoopsModules/xsoap/releases/4.0/xsoap/include/common.php XoopsModules/xsoap/releases/4.0/xsoap/include/index.html XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/ XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/changelog XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.nusoap_base.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.soap_fault.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.soap_parser.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.soap_server.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.soap_transport_http.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.soap_val.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.soapclient.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.wsdl.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.wsdlcache.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/class.xmlschema.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/index.html XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/nusoap.php XoopsModules/xsoap/releases/4.0/xsoap/include/nusoap/nusoapmime.php XoopsModules/xsoap/releases/4.0/xsoap/include/server.php XoopsModules/xsoap/releases/4.0/xsoap/index.php XoopsModules/xsoap/releases/4.0/xsoap/language/ XoopsModules/xsoap/releases/4.0/xsoap/language/english/ XoopsModules/xsoap/releases/4.0/xsoap/language/english/index.html XoopsModules/xsoap/releases/4.0/xsoap/language/english/main.php XoopsModules/xsoap/releases/4.0/xsoap/language/english/modinfo.php XoopsModules/xsoap/releases/4.0/xsoap/language/index.html XoopsModules/xsoap/releases/4.0/xsoap/plugins/ XoopsModules/xsoap/releases/4.0/xsoap/plugins/error_log XoopsModules/xsoap/releases/4.0/xsoap/plugins/inc/ XoopsModules/xsoap/releases/4.0/xsoap/plugins/inc/authcheck.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/inc/index.html XoopsModules/xsoap/releases/4.0/xsoap/plugins/inc/siteinfocheck.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/inc/usercheck.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/index.html XoopsModules/xsoap/releases/4.0/xsoap/plugins/post.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/retrieve.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/retrievecrc.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/retrievekeys.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/tableschemer.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/tablesforpost.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/tablesforretrieve.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/tablesforupdate.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/update.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/viewretrieve.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/viewsforretrieve.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xoops_authentication.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xoops_check_activation.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xoops_create_user.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xoops_lostpassword.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xoops_network_disclaimer.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xoops_user_validate.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xtorrent_categories.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xtorrent_crc.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xtorrent_key.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xtorrent_listing.php XoopsModules/xsoap/releases/4.0/xsoap/plugins/xtorrent_send.php XoopsModules/xsoap/releases/4.0/xsoap/sql/ XoopsModules/xsoap/releases/4.0/xsoap/sql/index.html XoopsModules/xsoap/releases/4.0/xsoap/sql/mysql.sql XoopsModules/xsoap/releases/4.0/xsoap/templates/ XoopsModules/xsoap/releases/4.0/xsoap/templates/index.html XoopsModules/xsoap/releases/4.0/xsoap/testing/ XoopsModules/xsoap/releases/4.0/xsoap/xoops_version.php XoopsModules/xsoap/releases/4.0/xsoap/xsoap.wsdl.php XoopsModules/xsoap/releases/4.0/xsoap/xsoap.wsdl.service.php XoopsModules/xsoap/releases/4.0/xsoap/xsoap.wsdl.services.php XoopsModules/xsoap/releases/4.0/xsoap/xsoap.xsd.php XoopsModules/xtorrent/releases/3.13/ XoopsModules/xtorrent/releases/3.13/xtorrent/ XoopsModules/xtorrent/releases/3.13/xtorrent/.htaccess.dist XoopsModules/xtorrent/releases/3.13/xtorrent/admin/ XoopsModules/xtorrent/releases/3.13/xtorrent/admin/about.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/adduser.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/admin_header.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/brokendown.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/category.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/index.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/indexpage.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/menu.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/mimetypes.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/modifications.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/myblocksadmin.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/myblocksadmin.txt XoopsModules/xtorrent/releases/3.13/xtorrent/admin/mygroupperm.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/mygrouppermform.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/newdownloads.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/newstory.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/permissions.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/upload.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/userbans.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/votedata.php XoopsModules/xtorrent/releases/3.13/xtorrent/admin/xsoap.php XoopsModules/xtorrent/releases/3.13/xtorrent/announce.php XoopsModules/xtorrent/releases/3.13/xtorrent/blocks/ XoopsModules/xtorrent/releases/3.13/xtorrent/blocks/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/blocks/xtorrent_top.php XoopsModules/xtorrent/releases/3.13/xtorrent/brokenfile.php XoopsModules/xtorrent/releases/3.13/xtorrent/bugfixlist.txt XoopsModules/xtorrent/releases/3.13/xtorrent/cancel.php XoopsModules/xtorrent/releases/3.13/xtorrent/class/ XoopsModules/xtorrent/releases/3.13/xtorrent/class/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/class/qcp71.base.php XoopsModules/xtorrent/releases/3.13/xtorrent/class/qcp71.class.php XoopsModules/xtorrent/releases/3.13/xtorrent/class/qcp71.enumerator.php XoopsModules/xtorrent/releases/3.13/xtorrent/class/qcp71.leaver.php XoopsModules/xtorrent/releases/3.13/xtorrent/class/uploader.php XoopsModules/xtorrent/releases/3.13/xtorrent/class/xtorrent_lists.php XoopsModules/xtorrent/releases/3.13/xtorrent/comment_delete.php XoopsModules/xtorrent/releases/3.13/xtorrent/comment_edit.php XoopsModules/xtorrent/releases/3.13/xtorrent/comment_new.php XoopsModules/xtorrent/releases/3.13/xtorrent/comment_post.php XoopsModules/xtorrent/releases/3.13/xtorrent/comment_reply.php XoopsModules/xtorrent/releases/3.13/xtorrent/footer.php XoopsModules/xtorrent/releases/3.13/xtorrent/header.php XoopsModules/xtorrent/releases/3.13/xtorrent/images/ XoopsModules/xtorrent/releases/3.13/xtorrent/images/brokenimg.png XoopsModules/xtorrent/releases/3.13/xtorrent/images/category/ XoopsModules/xtorrent/releases/3.13/xtorrent/images/category/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/images/category/thumbs/ XoopsModules/xtorrent/releases/3.13/xtorrent/images/category/thumbs/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/images/down.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/ XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/approve.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/arrow.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/delete.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/down.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/download.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/download1.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/download2.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/download3.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/download4.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/downloads.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/downloads02.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/downloads03.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/edit.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/forum.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/ignore.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/newred.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/off.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/on.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/pop.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/rate0.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/rate1.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/rate2.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/rate3.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/rate4.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/rate5.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/reviews.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/icon/update.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/images/logo-en.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/logo.png XoopsModules/xtorrent/releases/3.13/xtorrent/images/rss.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/screenshots/ XoopsModules/xtorrent/releases/3.13/xtorrent/images/screenshots/imonfire.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/screenshots/imonfire.png XoopsModules/xtorrent/releases/3.13/xtorrent/images/screenshots/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/images/screenshots/thumbs/ XoopsModules/xtorrent/releases/3.13/xtorrent/images/screenshots/thumbs/140x79_imonfire.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/screenshots/thumbs/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/images/size2.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/up.gif XoopsModules/xtorrent/releases/3.13/xtorrent/images/xtorrent_slogo.png XoopsModules/xtorrent/releases/3.13/xtorrent/include/ XoopsModules/xtorrent/releases/3.13/xtorrent/include/benc.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/bencode.reader.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/bittorrent.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/cleanup.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/comment_functions.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/downloadinfo.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/functions.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/global.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/include/js/ XoopsModules/xtorrent/releases/3.13/xtorrent/include/js/xtorrent_toggle.js XoopsModules/xtorrent/releases/3.13/xtorrent/include/notification.inc.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/pollall.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/search.inc.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/secrets.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/torrent.php XoopsModules/xtorrent/releases/3.13/xtorrent/include/tracker.php XoopsModules/xtorrent/releases/3.13/xtorrent/index.php XoopsModules/xtorrent/releases/3.13/xtorrent/ipnppd.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/ XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/ XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/admin.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/blocks.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/ XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/category_filesubmit_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/category_newfile_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/file_approve_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/filebroken_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/global_filebroken_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/global_filemodify_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/global_filesubmit_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/global_newcategory_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/global_newfile_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/mail_template/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/main.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/english/modinfo.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/ XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/admin.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/blocks.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/ XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/category_filesubmit_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/category_newfile_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/file_approve_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/filebroken_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/global_filebroken_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/global_filemodify_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/global_filesubmit_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/global_newcategory_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/global_newfile_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/mail_template/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/main.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/french/modinfo.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/ XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/admin.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/blocks.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/ XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/category_filesubmit_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/category_newfile_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/file_approve_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/filebroken_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/global_filebroken_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/global_filemodify_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/global_filesubmit_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/global_newcategory_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/global_newfile_notify.tpl XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/mail_template/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/main.php XoopsModules/xtorrent/releases/3.13/xtorrent/language/nederlands/modinfo.php XoopsModules/xtorrent/releases/3.13/xtorrent/newlist.php XoopsModules/xtorrent/releases/3.13/xtorrent/notification_update.php XoopsModules/xtorrent/releases/3.13/xtorrent/ratefile.php XoopsModules/xtorrent/releases/3.13/xtorrent/review.php XoopsModules/xtorrent/releases/3.13/xtorrent/rss/ XoopsModules/xtorrent/releases/3.13/xtorrent/rss/.htaccess XoopsModules/xtorrent/releases/3.13/xtorrent/rss/feed.php XoopsModules/xtorrent/releases/3.13/xtorrent/rss/index.php XoopsModules/xtorrent/releases/3.13/xtorrent/singlefile.php XoopsModules/xtorrent/releases/3.13/xtorrent/sql/ XoopsModules/xtorrent/releases/3.13/xtorrent/sql/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/sql/xtorrent.sql XoopsModules/xtorrent/releases/3.13/xtorrent/submit.php XoopsModules/xtorrent/releases/3.13/xtorrent/templates/ XoopsModules/xtorrent/releases/3.13/xtorrent/templates/blocks/ XoopsModules/xtorrent/releases/3.13/xtorrent/templates/blocks/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/blocks/xtorrent_block_new.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/blocks/xtorrent_block_top.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/xtorrent_brokenfile.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/xtorrent_download.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/xtorrent_index.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/xtorrent_newlistindex.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/xtorrent_ratefile.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/xtorrent_reviews.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/xtorrent_singlefile.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/xtorrent_topten.html XoopsModules/xtorrent/releases/3.13/xtorrent/templates/xtorrent_viewcat.html XoopsModules/xtorrent/releases/3.13/xtorrent/topten.php XoopsModules/xtorrent/releases/3.13/xtorrent/uploads/ XoopsModules/xtorrent/releases/3.13/xtorrent/uploads/index.html XoopsModules/xtorrent/releases/3.13/xtorrent/viewcat.php XoopsModules/xtorrent/releases/3.13/xtorrent/visit.php XoopsModules/xtorrent/releases/3.13/xtorrent/xoops_version.php Added: XoopsModules/dr-usage/releases/2.09/usage/admin/index.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/admin/index.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/admin/index.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,5 @@ +<? +include ("../../../mainfile.php"); +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& $module_handler->getByDirname('usage'); +header('Location: '.$_REQUEST['REQUEST_URI'].'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$xoopsModule->getVar('mid')); ?> \ No newline at end of file Added: XoopsModules/dr-usage/releases/2.09/usage/admin/menu.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/admin/menu.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/admin/menu.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1 @@ +<? ?> \ No newline at end of file Added: XoopsModules/dr-usage/releases/2.09/usage/blocks/usage_block.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/blocks/usage_block.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/blocks/usage_block.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,31 @@ +<? + + + function usage_block_display($options) + { + $config_handler =& xoops_gethandler('config'); + $module_handler =& xoops_gethandler('module'); + $xoopsModule =& $module_handler->getByDirname('usage'); + $xoopsModuleConfig =& $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')); + require(XOOPS_ROOT_PATH.'/modules/usage/class/usage.php'); + $usage = new Usage($options[2]); + $block['graph'][] = array("graph" => XOOPS_URL."/modules/usage/graph/".$xoopsModuleConfig['graph']."?xsize=".$options[0]."&ysize=".$options[1]."", "integrity" => $usage->Complete_Integrity()); + return $block; + } + + function usage_block_edit($options) + { + $form = "Width: "; + $form .= "<input type='text' name='options[]' value='" . $options[0] . "' /> Width of Graph<br/>"; + $form .= "Height: "; + $form .= "<input type='text' name='options[]' value='" . $options[1] . "' /> Height of Graph<br/>"; + if ($options[2]==1){ + $form .= "Log: "; + $form .= "<input checked='checked' type='checkbox' name='options[]' value='1' /> Log with the block"; + } else { + $form .= "Log: "; + $form .= "<input type='checkbox' name='options[]' value='1' /> Log with the block"; + } + return $form; + } +?> Added: XoopsModules/dr-usage/releases/2.09/usage/class/usage.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/class/usage.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/class/usage.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,233 @@ +<? +error_reporting(E_ALL); +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +if (!class_exists("Usage")){ + + class Usage extends XoopsObject + { + + var $codes; + + function Usage($log = true) + { + + if ($log == true) + { + global $xoopsDB, $xoopsUser; + + $config_handler =& xoops_gethandler('config'); + $module_handler =& xoops_gethandler('module'); + $xoopsModule =& $module_handler->getByDirname('usage'); + $xoopsModuleConfig =& $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')); + + if (!isset($xoopsModuleConfig['weeks_kept'])) + $xoopsModuleConfig['weeks_kept'] = 6; + + if (!isset($xoopsModuleConfig['percentile_threshhold'])) + $xoopsModuleConfig['percentile_threshhold'] = 94; + + if (!isset($xoopsModuleConfig['quarantine_kept'])) + $xoopsModuleConfig['quarantine_kept'] = 12; + + + $sql = "INSERT INTO ".$xoopsDB->prefix('usage')." (`hostname`, `ip`, `suffix`, `country`, `date`, `hour`, `minute`, `second`, `month`, `day`, `seed`, `requesturl`, `uid`, `sessionid`) VALUES ("; + $gbh = explode(".",gethostbyaddr($_SERVER['REMOTE_ADDR'])); + if (strlen($gbh[sizeof($gbh)-2])<5) + $suffix = $gbh[sizeof($gbh)-2]; + if (strlen($gbh[sizeof($gbh)-1])<3&&!is_numeric($gbh[sizeof($gbh)-1])) + { + $country = $gbh[sizeof($gbh)-1]; + } elseif (strlen($gbh[sizeof($gbh)-1])==3&&!is_numeric($gbh[sizeof($gbh)-1])) { + $country = 'us'; + $suffix = $gbh[sizeof($gbh)-1]; + } else { + $country = "ip"; + $suffix = "unkn"; + } + if (is_object($xoopsUser)) + { + $uid = $xoopsUser->getVar('uid'); + } + srand(time); + $frand = mt_rand(); + $sql .= "'". gethostbyaddr($_SERVER['REMOTE_ADDR'])."','".$_SERVER['REMOTE_ADDR']."',"; + $sql .= "'$suffix','$country','".time()."','".date("G")."','".date("i")."','".date("s")."','".date("m")."','".date("d")."','".$frand."','".$_SERVER['HTTP_HOST'].':'.$_SERVER['REMOTE_PORT'].$_SERVER['REQUEST_URI'].":".$_SERVER['REQUEST_URI']."','$uid','".session_id()."')"; + @$xoopsDB->queryF($sql); + + $frad = $xoopsDB->getInsertId(); + + $sql = "UPDATE ".$xoopsDB->prefix('usage')." set `checksum` = sha1(concat(`hostname`, `ip`, `suffix`, `country`, `date`, `hour`, `minute`, `second`, `month`, `day`, `seed`, `requesturl`, `uid`, `sessionid`)) Where `ip` = '".$_SERVER['REMOTE_ADDR']."' and `seed` = '$frand'"; + @$xoopsDB->queryF($sql); + + $sql = "DELETE FROM ".$xoopsDB->prefix('usage')." where `date` < ".(time() - (3600*7*$xoopsModuleConfig['weeks_kept'])); + @$xoopsDB->queryF($sql); + + $sys_integrity = $this->System_Integrity(false); + if ($sys_integrity*100<100) + { + $sql = "SELECT count(*) as rc ".$xoopsDB->prefix('usage_quarantine')." where integrity > '$sys_integrity'"; + list($rc) = $xoopsDB->fetchRow($xoopsDB->queryF($sql)); + + $sql = "SELECT count(*) as ttl_rc ".$xoopsDB->prefix('usage_quarantine').""; + list($ttl_rc) = $xoopsDB->fetchRow($xoopsDB->queryF($sql)); + if (($rc>0&&$ttl_rc>0)||$ttl_rc==0) + { + + $frad = $this->Record_Quarantine('quarantine', $sys_integrity, $frad, $suffix, $country, $uid, 'Q'.mt_rand(10,99), $xoopsModuleConfig); + + } + } + } + if (is_array($quarantine)) + { + @$this->codes=$quarantine; + } + } + + function Clean_Quarantine($xoopsModuleConfig, $stages) + { + $sql = "DELETE FROM ".$xoopsDB->prefix('usage_quarantine')." where `integrity` > '".$xoopsModuleConfig['percentile_threshhold']."' and `date` < ".(time() - (3600*7*($xoopsModuleConfig['quarantine_kept']))); + @$xoopsDB->queryF($sql); + + global $xoopsDB, $xoopsUser; + foreach ($stages as $stage) + { + $sql = "DELETE FROM ".$xoopsDB->prefix('usage_quarantine_stage_'.$stage)." where `integrity` > '".$xoopsModuleConfig['percentile_threshhold']."' and `date` < ".(time() - (3600*7*($xoopsModuleConfig['quarantine_kept']))); + @$xoopsDB->queryF($sql); + } + } + + function Record_Quarantine($table='quarantine', $sys_integrity, $frad, $suffix, $country, $uid, $stage, $xoopsModuleConfig) + { + + + global $xoopsDB, $xoopsUser; + + @$this->Clean_Quarantine($xoopsModuleConfig, array('a','b','c','d','e')); + + $sql = "SELECT count(*) as rc ".$xoopsDB->prefix('usage_'.$table)." where integrity > '$sys_integrity'"; + list($rc) = $xoopsDB->fetchRow($xoopsDB->queryF($sql)); + + $sql = "SELECT count(*) as ttl_rc ".$xoopsDB->prefix('usage_'.$table).""; + list($ttl_rc) = $xoopsDB->fetchRow($xoopsDB->queryF($sql)); + if (($rc>0&&$ttl_rc>0)||$ttl_rc==0) + { + + $sql = "INSERT INTO ".$xoopsDB->prefix('usage_'.$table)." (`hostname`, `ip`, `frad`, `suffix`, `country`, `date`, `hour`, `minute`, `second`, `month`, `day`, `seed`, `requesturl`, `uid`, `sessionid`, `integrity`, `stage`) VALUES ("; + srand(time); + $frand = mt_rand(); + $sql .= "'". gethostbyaddr($_SERVER['REMOTE_ADDR'])."','".$_SERVER['REMOTE_ADDR']."','$frad',"; + $sql .= "'$suffix','$country','".time()."','".date("G")."','".date("i")."','".date("s")."','".date("m")."','".date("d")."','".$frand."','".$_SERVER['HTTP_HOST'].':'.$_SERVER['REMOTE_PORT'].$_SERVER['REQUEST_URI']."','$uid','".session_id()."','$sys_integrity', '$stage')"; + @$xoopsDB->queryF($sql); + $frad = $xoopsDB->getInsertId(); + + $sql = "UPDATE ".$xoopsDB->prefix('usage_'.$table)." set `checksum` = sha1(concat(`hostname`, `ip`, `frad`, `suffix`, `country`, `date`, `hour`, `minute`, `second`, `month`, `day`, `seed`, `requesturl`, `uid`, `sessionid`,`integrity`,`stage`)) Where `ip` = '".$_SERVER['REMOTE_ADDR']."' and `seed` = '$frand'"; + @$xoopsDB->queryF($sql); + @$this->Check_Quarantine_Stages($xoopsModuleConfig, array('', '_stage_a','_stage_b','_stage_c','_stage_d','_stage_e')); + return $frad; + } + + @$this->Check_Quarantine_Stages($xoopsModuleConfig, array('', '_stage_a','_stage_b','_stage_c','_stage_d','_stage_e')); + } + + function Check_Quarantine_Stages($xoopsModuleConfig, $stages) + { + global $xoopsDB, $xoopsUser; + foreach ($stages as $key => $stage) + { + + $sys_integrity = $this->Quarantine_System_Integrity($xoopsModuleConfig, false, 'usage_quarantine'.$stage); + if ($sys_integrity*100<100) + { + $sql = "SELECT count(*) as rc ".$xoopsDB->prefix('usage_quarantine'.$stage)." where integrity > '$sys_integrity'"; + list($rc) = $xoopsDB->fetchRow($xoopsDB->queryF($sql)); + + $sql = "SELECT count(*) as ttl_rc ".$xoopsDB->prefix('usage_quarantine'.$stage).""; + list($ttl_rc) = $xoopsDB->fetchRow($xoopsDB->queryF($sql)); + + if (($rc>0&&$ttl_rc>0)||$ttl_rc==0) + { + $ttl_cyc=$ttl_cyc+($sys_integrity*100); + $ttl++; + if (sizeof($stages)<$key+1) + { + $fradb = $this->Record_Quarantine('quarantine'.$stages[$key+1], $sys_integrity, $fradb, $suffix, $country, $uid, $key.':'.substr($stage,strlen($stage)-1,1), $xoopsModuleConfig); + + } else { + + } + } + } + } + + return array('integrity' => ($ttl_cyc / $ttl)); + } + + function System_Integrity($type = true, $table = 'usage') + { + global $xoopsDB, $xoopsUser; + $sql[0] = "select count(*) as `match` from ".$xoopsDB->prefix($table)." where sha1(concat(`hostname`, `ip`, `suffix`, `country`, `date`, `hour`, `minute`, `second`, `month`, `day`, `seed`, `requesturl`, `uid`, `sessionid`)) = `checksum`"; + $sql[1] = "select count(*) as `total` from ".$xoopsDB->prefix($table)." where 2=2"; + list($match) = $xoopsDB->fetchRow($xoopsDB->queryF($sql[0])); + list($total) = $xoopsDB->fetchRow($xoopsDB->queryF($sql[1])); + if ($type==true) + { + return floor((($match+1)/($total+1))*100)."%"; + } else { + return ((($match+1)/($total+1))); + } + } + + function Quarantine_System_Integrity($type = true, $table = 'usage_quarantine') + { + global $xoopsDB, $xoopsUser; + $sql[0] = "select count(*) as `match` from ".$xoopsDB->prefix($table)." where sha1(concat(`hostname`, `ip`, `frad`, `suffix`, `country`, `date`, `hour`, `minute`, `second`, `month`, `day`, `seed`, `requesturl`, `uid`, `sessionid`,`integrity`,`stage`)) = `checksum`"; + $sql[1] = "select count(*) as `total` from ".$xoopsDB->prefix($table)." where 2=2"; + list($match) = $xoopsDB->fetchRow($xoopsDB->queryF($sql[0])); + list($total) = $xoopsDB->fetchRow($xoopsDB->queryF($sql[1])); + if ($type==true) + { + return floor((($match+1)/($total+1))*100)."%"; + } else { + return ((($match+1)/($total+1))); + } + } + + function Complete_Integrity($type = true) + { + $stages = array("","_stage_a","_stage_b","_stage_c","_stage_d","_stage_e"); + foreach ($stages as $stage) + { + $usage_integrity = $usage_integrity + $this->Quarantine_System_Integrity(false, 'usage_quarantine'.$stage); + } + $usage_integrity = $usage_integrity + $this->System_Integrity(false); + + if ($type==true) + { + return floor((($usage_integrity)/(sizeof($stages)+1))*100)."%"; + } else { + return ((($match+1)/($total+1))); + } + } + + function Complete_Quarantine_Integrity($type = true) + { + $stages = array("","_stage_a","_stage_b","_stage_c","_stage_d","_stage_e"); + foreach ($stages as $stage) + { + $usage_integrity = $usage_integrity + $this->Quarantine_System_Integrity(false, 'usage_quarantine'.$stage); + } + + if ($type==true) + { + return floor((($usage_integrity)/(sizeof($stages)))*100)."%"; + } else { + return ((($match+1)/($total+1))); + } + } + + } +} +?> \ No newline at end of file Added: XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-bar.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-bar.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-bar.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,68 @@ +<?php +include ("../../../mainfile.php"); +include (XOOPS_ROOT_PATH."/Frameworks/graphs/graphfactory.php"); + +global $xoopsDB; +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& $module_handler->getByDirname('usage'); +$xoopsModuleConfig =& $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')); + + +$sql = "select distinct `ip`, `hour` from ".$xoopsDB->prefix("usage")." where date > ".(time()-($xoopsModuleConfig['ticks_shown']*3600))." order by `hour`"; +$ret = $xoopsDB->queryF($sql); +//echo $sql; +$data_b = array(); +$i=-1; +if ($xoopsDB->getRowsNum($ret)){ + while (list($ip, $hour) = $xoopsDB->fetchRow($ret)) + { + if ($thishour != $hour) + $i++; + $thishour = $hour; + $data_b[$i]++; + } +} else { + $data_b[$i+1]=0; +} +//print_r($data_b); +//exit; +$data['Y0']['data'] = $data_b; +$data['Y0']['type'] = _X_GRAPH_TYPE_I; +$data['Y0']['options'] = array("SetLegend" =>"Hourly Usage", "SetColor" => "blue"); + +$sql = "select `hour`, count(*) as NUM from ".$xoopsDB->prefix("usage")." where date > ".(time()-($xoopsModuleConfig['ticks_shown']*3600))." group by `hour`"; +$ret = $xoopsDB->queryF($sql); +$data_b=array(); +if ($xoopsDB->getRowsNum($ret)){ + while (list($num) = $xoopsDB->fetchRow($ret)) + { + $data_b[] = $num; + } +} else { + $data_b[]=0; +} +//print_r($data_b); + +$data['Y1']['data'] = $data_b; +$data['Y1']['type'] = _X_GRAPH_TYPE_I; +$data['Y1']['options'] = array("SetLegend" =>"Hourly Clicks", "SetFillColor" => "orange"); +$data['Y1']['addtype'] = "Add"; + +$legend =array("Pos" => array(0.12,0.78,"right","center")); +$xaxis = array('title' => array("Set" =>"Visits")); +$yaxis = array('SetWeight'=>2,'SetFillColor' => "blue", 'title' => array("Set" =>"Recent Hours")); +$y2axis = array('SetColor' => "orange"); +$ygrid = array("Show" => array(true,true)); +$xgrid = array("Show" => array(true,false)); +// Create the graph. These two calls are always required +$options= array("SetScale" => "textlin"); +$margin = array(25,25,25,25); + +$data['GroupBarPlot'] = array('Y0','Y1'); + +$xsize = isset($_GET['xsize']) ? $_GET['xsize'] : $xoopsModuleConfig['xsize']; +$ysize = isset($_GET['ysize']) ? $_GET['ysize'] : $xoopsModuleConfig['ysize']; + +// Display the graph +GraphFactory::GetGraph($data, $xsize, $ysize, $title, $margin, $options, array('x' => $xaxis, 'y' => $yaxis, 'y2' => $y2axis), $scale, array('x' => $xgrid, 'y' => $ygrid), $legend, $wildcardsettings); +?> \ No newline at end of file Added: XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-country.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-country.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-country.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,35 @@ +<?php +include ("../../../mainfile.php"); +include (XOOPS_ROOT_PATH."/Frameworks/graphs/graphfactory.php"); + +global $xoopsModuleConfig, $xoopsDB; +if (!isset($_GET['quarantine'])) +{ + $sql = "select `country`, count(*) as NUM from ".$xoopsDB->prefix("usage")." where 3=3 group by `country` order by NUM limit 13"; +} else { + $sql = "select `country`, count(*) as NUM from ".$xoopsDB->prefix("usage_quarantine")." where 3=3 group by `country` order by NUM limit 13"; +} +$ret = $xoopsDB->queryF($sql); +//echo $sql; +$data_b = array(); +$legend_b = array(); +while (list($country, $num) = $xoopsDB->fetchRow($ret)) +{ + $data_b[] = $num; + $legend_b[] = $country; +} +$data['Y0']['data'] = $data_b; +$data['Y0']['type'] = _X_GRAPH_TYPE_F; +$data['Y0']['options'] = array("SetLegends" => $legend_b); + +$options= array("SetShadow" => 0, "SetScale" => "lin"); +$margin = array(35,35,35,35); +$title = array("Set" =>"Top 13 Country Usage", "SetColor" =>"green"); +$legend =array("Pos" => array(0.07,0.47,"left","center")); + +$xsize = isset($_GET['xsize']) ? $_GET['xsize'] : $xoopsModuleConfig['xsize']; +$ysize = isset($_GET['ysize']) ? $_GET['ysize'] : $xoopsModuleConfig['ysize']; + +// Display the graph +GraphFactory::GetGraph($data, $xsize, $ysize, $title, $margin, $options, $somewhere, $scale, $else, $legend, $wildcardsettings); +?> \ No newline at end of file Added: XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-fillarea.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-fillarea.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-fillarea.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,66 @@ +<?php +include ("../../../mainfile.php"); +include (XOOPS_ROOT_PATH."/Frameworks/graphs/graphfactory.php"); + +global $xoopsDB, $xoopsModule; +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& $module_handler->getByDirname('usage'); +$xoopsModuleConfig =& $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')); + +$sql = "select distinct `ip`, `hour` from ".$xoopsDB->prefix("usage")." where date > ".(time()-($xoopsModuleConfig['ticks_shown']*3600))." order by `hour`"; +$ret = $xoopsDB->queryF($sql); +//echo $sql; +$data_b = array(); +$i=-1; +$stl_data = array(); +while (list($ip, $hour) = $xoopsDB->fetchRow($ret)) +{ + if ($thishour != $hour) + { + $i++; + $stl_data[] = $hour; + } + $thishour = $hour; + $data_b[$i]++; +} +if (sizeof($data_b)==1){ + $data_b[$i+1]=0; +} +//print_r($data); +//exit; +$data['Y0']['data'] = $data_b; +$data['Y0']['type'] = _X_GRAPH_TYPE_G; +$data['Y0']['options'] = array("SetLegend" =>"Hourly Usage", "SetFillColor" => "green"); + +$sql = "select count(*) as NUM from ".$xoopsDB->prefix("usage")." where date > ".(time()-($xoopsModuleConfig['ticks_shown']*3600))." group by `hour`"; +$ret = $xoopsDB->queryF($sql); +$data_b=array(); +while (list($num) = $xoopsDB->fetchRow($ret)) +{ + $data_b[] = $num; +} +if (sizeof($data_b)==1){ + $data_b[]=0; +} +$data['Y1']['data'] = $data_b; +$data['Y1']['type'] = _X_GRAPH_TYPE_G; +$data['Y1']['options'] = array("SetLegend" =>"Hourly Clicks", "SetFillColor" => "red"); +$data['Y1']['addtype'] = "Add"; + +$legend =array("Pos" => array(0.12,0.78,"right","center")); +$xaxis = array('title' => array("Set" =>"Visits")); +$yaxis = array('SetWeight'=>2,'SetColor' => "blue", 'title' => array("Set" =>"Recent Hours")); +$y2axis = array('SetColor' => "orange"); +$ygrid = array("Show" => array(true,true)); +$xgrid = array("Show" => array(true,false)); +// Create the graph. These two calls are always required +$options= array("SetScale" => "textlin"); +$margin = array(25,25,25,25); +$data['AccLinePlot'] = array("Y0","Y1"); + +$xsize = isset($_GET['xsize']) ? $_GET['xsize'] : $xoopsModuleConfig['xsize']; +$ysize = isset($_GET['ysize']) ? $_GET['ysize'] : $xoopsModuleConfig['ysize']; + +// Display the graph +GraphFactory::GetGraph($data, $xsize, $ysize, $title, $margin, $options, array('x' => $xaxis, 'y' => $yaxis, 'y2' => $y2axis), $scale, array('x' => $xgrid, 'y' => $ygrid), $legend, $wildcardsettings); +?> \ No newline at end of file Added: XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-line.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-line.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-line.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,62 @@ +<?php +include ("../../../mainfile.php"); +include (XOOPS_ROOT_PATH."/Frameworks/graphs/graphfactory.php"); + +global $xoopsDB; +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& $module_handler->getByDirname('usage'); +$xoopsModuleConfig =& $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')); + +$sql = "select distinct `ip`, `hour` from ".$xoopsDB->prefix("usage")." where date > ".(time()-($xoopsModuleConfig['ticks_shown']*3600))." order by `hour`"; +$ret = $xoopsDB->queryF($sql); +//echo $sql; +$data_b = array(); +$i=-1; +while (list($ip, $hour) = $xoopsDB->fetchRow($ret)) +{ + if ($thishour != $hour) + $i++; + $thishour = $hour; + $data_b[$i]++; +} +if (sizeof($data_b)==1){ + $data_b[$i+1]=0; +} +//print_r($data); +//exit; +$data['Y0']['data'] = $data_b; +$data['Y0']['type'] = _X_GRAPH_TYPE_G; +$data['Y0']['options'] = array("SetLegend" =>"Hourly Usage", "SetColor" => "blue"); + +$sql = "select count(*) as NUM from ".$xoopsDB->prefix("usage")." where date > ".(time()-($xoopsModuleConfig['ticks_shown']*3600))." group by `hour`"; +$ret = $xoopsDB->queryF($sql); +$data_b=array(); +while (list($num) = $xoopsDB->fetchRow($ret)) +{ + $data_b[] = $num; +} +if (sizeof($data_b)==1){ + $data_b[]=0; +} +$data['Y1']['data'] = $data_b; +$data['Y1']['type'] = _X_GRAPH_TYPE_G; +$data['Y1']['options'] = array("SetLegend" =>"Hourly Clicks", "SetColor" => "orange"); +$data['Y1']['addtype'] = "AddY2"; + +$legend =array("Pos" => array(0.12,0.78,"right","center")); +$xaxis = array('title' => array("Set" =>"Visits")); +$yaxis = array('SetWeight'=>2,'SetColor' => "blue", 'title' => array("Set" =>"Recent Hours")); +$y2axis = array('SetColor' => "orange"); +$ygrid = array("Show" => array(true,true)); +$xgrid = array("Show" => array(true,false)); +// Create the graph. These two calls are always required +$options= array("SetScale" => "textlin", "SetY2Scale" => "lin"); +$margin = array(33,34,25,25); + + +$xsize = isset($_GET['xsize']) ? $_GET['xsize'] : $xoopsModuleConfig['xsize']; +$ysize = isset($_GET['ysize']) ? $_GET['ysize'] : $xoopsModuleConfig['ysize']; + +// Display the graph +GraphFactory::GetGraph($data, $xsize, $ysize, $title, $margin, $options, array('x' => $xaxis, 'y' => $yaxis, 'y2' => $y2axis), $scale, array('x' => $xgrid, 'y' => $ygrid), $legend, $wildcardsettings); +?> \ No newline at end of file Added: XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-suffix.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-suffix.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/graph/usagegraph-suffix.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,35 @@ +<?php +include ("../../../mainfile.php"); +include (XOOPS_ROOT_PATH."/Frameworks/graphs/graphfactory.php"); + +global $xoopsModuleConfig, $xoopsDB; +if (!isset($_GET['quarantine'])) +{ + $sql = "select `suffix`, count(*) as NUM from ".$xoopsDB->prefix("usage")." where length(`suffix`)>0 group by `suffix` order by NUM limit 13"; +} else { + $sql = "select `suffix`, count(*) as NUM from ".$xoopsDB->prefix("usage_quarantine")." where length(`suffix`)>0 group by `suffix` order by NUM limit 13"; +} +$ret = $xoopsDB->queryF($sql); +//echo $sql; +$data_b = array(); +$legend_b = array(); +while (list($country, $num) = $xoopsDB->fetchRow($ret)) +{ + $data_b[] = $num; + $legend_b[] = $country; +} +$data['Y0']['data'] = $data_b; +$data['Y0']['type'] = _X_GRAPH_TYPE_F; +$data['Y0']['options'] = array("SetLegends" => $legend_b); + +$options= array("SetShadow" => 0, "SetScale" => "lin"); +$margin = array(35,35,35,35); +$title = array("Set" =>"Top 13 Suffix Usage", "SetColor" =>"green"); +$legend =array("Pos" => array(0.07,0.48,"left","center")); + +$xsize = isset($_GET['xsize']) ? $_GET['xsize'] : $xoopsModuleConfig['xsize']; +$ysize = isset($_GET['ysize']) ? $_GET['ysize'] : $xoopsModuleConfig['ysize']; + +// Display the graph +GraphFactory::GetGraph($data, $xsize, $ysize, $title, $margin, $options, $somewhere, $scale, $else, $legend, $wildcardsettings); +?> \ No newline at end of file Property changes on: XoopsModules/dr-usage/releases/2.09/usage/images/logo.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/dr-usage/releases/2.09/usage/index.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/index.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/index.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,52 @@ +<? + + require('../../mainfile.php'); + + global $xoopsModuleConfig, $xoopsModule; + + if ($xoopsModuleConfig['htaccess']!=0) + { + if (strpos(' '.$_SERVER['REQUEST_URI'],"modules/")){ + header( "HTTP/1.1 301 Moved Permanently" ); + header( "Location: ".XOOPS_URL."/usage/"); + } + } + error_reporting(0); + + if ( file_exists("language/".$xoopsConfig['language']."/modinfo.php") ) { + include("language/".$xoopsConfig['language']."/modinfo.php"); + } else { + include("language/english/modinfo.php"); + } + require('class/usage.php'); + $usage = new Usage(); + include(XOOPS_ROOT_PATH.'/header.php'); + + switch($_REQUEST['pid']){ + + + default: + $xoopsOption['template_main'] = 'usage_index.html'; + + $xoopsTpl->assign( 'integrity',$usage->System_Integrity()); + $xoopsTpl->assign( 'complete_integrity',$usage->Complete_Integrity()); + $xoopsTpl->assign( 'quarantine_integrity',$usage->Quarantine_System_Integrity(true, 'usage_quarantine')); + $xoopsTpl->assign( 'quarantine_integrity_a',$usage->Quarantine_System_Integrity(true, 'usage_quarantine_stage_a')); + $xoopsTpl->assign( 'quarantine_integrity_b',$usage->Quarantine_System_Integrity(true, 'usage_quarantine_stage_b')); + $xoopsTpl->assign( 'quarantine_integrity_c',$usage->Quarantine_System_Integrity(true, 'usage_quarantine_stage_c')); + $xoopsTpl->assign( 'quarantine_integrity_d',$usage->Quarantine_System_Integrity(true, 'usage_quarantine_stage_d')); + $xoopsTpl->assign( 'quarantine_integrity_e',$usage->Quarantine_System_Integrity(true, 'usage_quarantine_stage_e')); + $xoopsTpl->assign( 'complete_quarantine_integrity',$usage->Complete_Quarantine_Integrity()); + + $xoopsTpl->assign( 'graph',$xoopsModuleConfig['graph']); + $xoopsTpl->assign( 'xsize',$xoopsModuleConfig['xsize']); + $xoopsTpl->assign( 'ysize',$xoopsModuleConfig['ysize']); + $xoopsTpl->assign( 'xsize_b',$xoopsModuleConfig['xsize_b']); + $xoopsTpl->assign( 'ysize_b',$xoopsModuleConfig['ysize_b']); + $xoopsTpl->assign( 'moddir',XOOPS_URL.'/modules/'.$xoopsModule->dirname()); + + } + +include(XOOPS_ROOT_PATH.'/footer.php'); + +?> \ No newline at end of file Added: XoopsModules/dr-usage/releases/2.09/usage/language/english/main.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/language/english/main.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/language/english/main.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,5 @@ +<?php +//define('_C_FILENOTFOUND','File not found! Please check the URL!'); + + +?> Added: XoopsModules/dr-usage/releases/2.09/usage/language/english/modinfo.php =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/language/english/modinfo.php (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/language/english/modinfo.php 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,42 @@ +<?php + + define ('USAGE_GRAPH','Usage Graph'); + define ('USAGE_GRAPHDESC','Type of graph to use for usage:'); + + define ('USAGE_GRAPH_XSIZE','Index Graph Width'); + define ('USAGE_GRAPH_XSIZEDESC','Number of pixels for width on index'); + + define ('USAGE_GRAPH_YSIZE','Index Graph Height'); + define ('USAGE_GRAPH_YSIZEDESC','Number of pixels for height on index'); + + define ('USAGE_GRAPH_XSIZEB','Index Graph Width'); + define ('USAGE_GRAPH_XSIZEBDESC','Number of pixels for width on index page with a graph beside another graph'); + define ('USAGE_GRAPH_YSIZEB','Index Graph Height'); + define ('USAGE_GRAPH_YSIZEBDESC','Number of pixels for height on index with a graph beside another graph'); + + define ('USAGE_GRAPH_XSIZEBLOCK','Block Graph Width'); + define ('USAGE_GRAPH_XSIZEBLOCKDESC','Number of pixels for width on block'); + + define ('USAGE_GRAPH_YSIZEBLOCK','Block Graph Height'); + define ('USAGE_GRAPH_YSIZEBLOCKDESC','Number of pixels for height on block'); + + define ('USAGE_GRAPH_BLOCK','Usage Graph'); + define ('USAGE_GRAPH_BLOCKDESC','This is the usage block graph'); + + define ('USAGE_GRAPH_WEEKS','Weeks to Store'); + define ('USAGE_GRAPH_WEEKSDESC','This the number of weeks you would like to store the data for.'); + + define ('USAGE_PERCENT_THRESH','Percentile Base'); + define ('USAGE_PERCENT_THRESHDESC','Any percentile higher than this will be purged from the quarantine after weeks to store is met.'); + + define ('USAGE_QUARANTINE_WEEKS','Weeks to Store Quarantine'); + define ('USAGE_QUARANTINE_WEEKSDESC','This the number of weeks you would like to store the quarantine data for.'); + + define ('USAGE_GRAPH_TICKS','Number of Ticks'); + define ('USAGE_GRAPH_TICKSDESC','This is the number of usage ticks to display.'); + + define ('USAGE_HTACCESS','.htaccess SEO'); + define ('USAGE_HTACCESSDESC','Enable .htaccess SEO'); + + +?> Added: XoopsModules/dr-usage/releases/2.09/usage/sql/index.html =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/sql/index.html (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/sql/index.html 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/dr-usage/releases/2.09/usage/sql/usage.sql =================================================================== --- XoopsModules/dr-usage/releases/2.09/usage/sql/usage.sql (rev 0) +++ XoopsModules/dr-usage/releases/2.09/usage/sql/usage.sql 2008-09-17 22:54:54 UTC (rev 2103) @@ -0,0 +1,170 @@ +# +# Table structure for table `usage` +# + +CREATE TABLE `usage` ( + `id` int(100) unsigned NOT NULL auto_increment, + `hostname` varchar(500) default NULL, + `ip` varchar(15) default NULL, + `suffix` varchar(4) default NULL, + `country` varchar(3) default NULL, + `date` int(12) default NULL, + `hour` int(4) default '0', + `minute` int(4) default '0', + `second` int(4) default '0', + `month` int(4) default '0', + `day` int(4) default '0', + `seed` int(13) default '0', ... [truncated message content] |
From: <wis...@us...> - 2008-09-18 00:09:31
|
Revision: 2105 http://xoops.svn.sourceforge.net/xoops/?rev=2105&view=rev Author: wishcraft Date: 2008-09-18 00:08:43 +0000 (Thu, 18 Sep 2008) Log Message: ----------- X-Forum (Pragmatical SVN Commital) -> pre-versions for 4.1x (Thanx DJ for Catch).. Added Paths: ----------- XoopsModules/xforum/ XoopsModules/xforum/releases/ XoopsModules/xforum/releases/4.04/ XoopsModules/xforum/releases/4.04/xforum/ XoopsModules/xforum/releases/4.04/xforum/_notes/ XoopsModules/xforum/releases/4.04/xforum/_notes/dwsync.xml XoopsModules/xforum/releases/4.04/xforum/action.post.php XoopsModules/xforum/releases/4.04/xforum/action.topic.php XoopsModules/xforum/releases/4.04/xforum/action.transfer.php XoopsModules/xforum/releases/4.04/xforum/admin/ XoopsModules/xforum/releases/4.04/xforum/admin/about.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_blocks.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_cat_manager.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_digest.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_forum_manager.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_forum_prune.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_forum_reorder.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_header.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_permissions.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_post.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_report.php XoopsModules/xforum/releases/4.04/xforum/admin/admin_votedata.php XoopsModules/xforum/releases/4.04/xforum/admin/error_log XoopsModules/xforum/releases/4.04/xforum/admin/index.html XoopsModules/xforum/releases/4.04/xforum/admin/index.php XoopsModules/xforum/releases/4.04/xforum/admin/menu.php XoopsModules/xforum/releases/4.04/xforum/archive.php XoopsModules/xforum/releases/4.04/xforum/blocks/ XoopsModules/xforum/releases/4.04/xforum/blocks/index.html XoopsModules/xforum/releases/4.04/xforum/blocks/xforum_block.php XoopsModules/xforum/releases/4.04/xforum/changelog.txt XoopsModules/xforum/releases/4.04/xforum/class/ XoopsModules/xforum/releases/4.04/xforum/class/category.php XoopsModules/xforum/releases/4.04/xforum/class/digest.php XoopsModules/xforum/releases/4.04/xforum/class/forum.php XoopsModules/xforum/releases/4.04/xforum/class/index.html XoopsModules/xforum/releases/4.04/xforum/class/karma.php XoopsModules/xforum/releases/4.04/xforum/class/moderate.php XoopsModules/xforum/releases/4.04/xforum/class/online.php XoopsModules/xforum/releases/4.04/xforum/class/permission.php XoopsModules/xforum/releases/4.04/xforum/class/post.php XoopsModules/xforum/releases/4.04/xforum/class/rate.php XoopsModules/xforum/releases/4.04/xforum/class/read.php XoopsModules/xforum/releases/4.04/xforum/class/readforum.php XoopsModules/xforum/releases/4.04/xforum/class/readtopic.php XoopsModules/xforum/releases/4.04/xforum/class/report.php XoopsModules/xforum/releases/4.04/xforum/class/text.php XoopsModules/xforum/releases/4.04/xforum/class/topic.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/blog/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/blog/config.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/blog/index.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/blog/language/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/blog/language/english.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/blog/language/schinese.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/bookmark/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/bookmark/config.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/bookmark/index.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/bookmark/language/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/bookmark/language/english.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/bookmark/language/schinese.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/dokuwiki/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/dokuwiki/config.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/dokuwiki/index.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/dokuwiki/language/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/dokuwiki/language/english.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/dokuwiki/language/schinese.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/email/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/email/action.email.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/email/config.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/email/index.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/email/language/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/email/language/english.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/email/language/schinese.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/index.html XoopsModules/xforum/releases/4.04/xforum/class/transfer/pdf/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/pdf/config.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/pdf/index.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/pdf/language/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/pdf/language/english.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/pdf/language/schinese.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/pm/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/pm/config.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/pm/index.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/pm/language/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/pm/language/english.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/pm/language/schinese.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/print/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/print/config.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/print/index.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/print/language/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/print/language/english.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/print/language/schinese.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/wordpress/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/wordpress/config.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/wordpress/index.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/wordpress/language/ XoopsModules/xforum/releases/4.04/xforum/class/transfer/wordpress/language/english.php XoopsModules/xforum/releases/4.04/xforum/class/transfer/wordpress/language/schinese.php XoopsModules/xforum/releases/4.04/xforum/class/transfer.php XoopsModules/xforum/releases/4.04/xforum/class/uploader.php XoopsModules/xforum/releases/4.04/xforum/class/user.php XoopsModules/xforum/releases/4.04/xforum/class/xforumtree.php XoopsModules/xforum/releases/4.04/xforum/class/xmlrss.php XoopsModules/xforum/releases/4.04/xforum/class/xoopsformloader.php XoopsModules/xforum/releases/4.04/xforum/delete.php XoopsModules/xforum/releases/4.04/xforum/digest.php XoopsModules/xforum/releases/4.04/xforum/dl_attachment.php XoopsModules/xforum/releases/4.04/xforum/edit.php XoopsModules/xforum/releases/4.04/xforum/fckeditor.config.js XoopsModules/xforum/releases/4.04/xforum/fckeditor.connector.php XoopsModules/xforum/releases/4.04/xforum/fckeditor.upload.php XoopsModules/xforum/releases/4.04/xforum/gpl.txt XoopsModules/xforum/releases/4.04/xforum/graphs/ XoopsModules/xforum/releases/4.04/xforum/header.php XoopsModules/xforum/releases/4.04/xforum/htaccess.txt XoopsModules/xforum/releases/4.04/xforum/images/ XoopsModules/xforum/releases/4.04/xforum/images/Thumbs.db XoopsModules/xforum/releases/4.04/xforum/images/_notes/ XoopsModules/xforum/releases/4.04/xforum/images/_notes/dwsync.xml XoopsModules/xforum/releases/4.04/xforum/images/add-a.gif XoopsModules/xforum/releases/4.04/xforum/images/aim-a.gif XoopsModules/xforum/releases/4.04/xforum/images/aim-a.png XoopsModules/xforum/releases/4.04/xforum/images/approve-a.gif XoopsModules/xforum/releases/4.04/xforum/images/approve-a.png XoopsModules/xforum/releases/4.04/xforum/images/arrow-a.gif XoopsModules/xforum/releases/4.04/xforum/images/arrow-a.png XoopsModules/xforum/releases/4.04/xforum/images/bg.gif XoopsModules/xforum/releases/4.04/xforum/images/bg.png XoopsModules/xforum/releases/4.04/xforum/images/blank.gif XoopsModules/xforum/releases/4.04/xforum/images/category/ XoopsModules/xforum/releases/4.04/xforum/images/category/Thumbs.db XoopsModules/xforum/releases/4.04/xforum/images/category/blank.gif XoopsModules/xforum/releases/4.04/xforum/images/category/topxoops.png XoopsModules/xforum/releases/4.04/xforum/images/category/xforum.png XoopsModules/xforum/releases/4.04/xforum/images/category/xoops-au.png XoopsModules/xforum/releases/4.04/xforum/images/del_topic-a.gif XoopsModules/xforum/releases/4.04/xforum/images/del_topic-a.png XoopsModules/xforum/releases/4.04/xforum/images/delete-a.gif XoopsModules/xforum/releases/4.04/xforum/images/delete-a.png XoopsModules/xforum/releases/4.04/xforum/images/delete.gif XoopsModules/xforum/releases/4.04/xforum/images/delete.png XoopsModules/xforum/releases/4.04/xforum/images/digest-a.gif XoopsModules/xforum/releases/4.04/xforum/images/digest-a.png XoopsModules/xforum/releases/4.04/xforum/images/disable.gif XoopsModules/xforum/releases/4.04/xforum/images/document-a.gif XoopsModules/xforum/releases/4.04/xforum/images/document-a.png XoopsModules/xforum/releases/4.04/xforum/images/edit-a.gif XoopsModules/xforum/releases/4.04/xforum/images/edit-a.png XoopsModules/xforum/releases/4.04/xforum/images/edit.gif XoopsModules/xforum/releases/4.04/xforum/images/edit.png XoopsModules/xforum/releases/4.04/xforum/images/email-a.gif XoopsModules/xforum/releases/4.04/xforum/images/email-a.png XoopsModules/xforum/releases/4.04/xforum/images/enable.gif XoopsModules/xforum/releases/4.04/xforum/images/external.png XoopsModules/xforum/releases/4.04/xforum/images/filetypes/ XoopsModules/xforum/releases/4.04/xforum/images/filetypes/Thumbs.db XoopsModules/xforum/releases/4.04/xforum/images/filetypes/ace.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/avi.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/bmp.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/doc.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/exe.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/flash.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/gif.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/html.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/jpeg.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/jpg.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/mid.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/mov.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/mp3.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/mpg.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/netscape.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/pdf.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/png.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/ppt.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/rar.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/txt.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/unknown.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/wav.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/xls.gif XoopsModules/xforum/releases/4.04/xforum/images/filetypes/zip.gif XoopsModules/xforum/releases/4.04/xforum/images/home-a.gif XoopsModules/xforum/releases/4.04/xforum/images/home-a.png XoopsModules/xforum/releases/4.04/xforum/images/icq-a.gif XoopsModules/xforum/releases/4.04/xforum/images/icq-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/ XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/ XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/Thumbs.db XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/attachment-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/attachment-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/clip-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/clip-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/doubledown-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/doubledown-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/down-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/down-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/ XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/Thumbs.db XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/new_forum-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/new_forum-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/new_subforum-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/new_subforum-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/offline-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/offline-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/online-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/online-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_delete-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_delete-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_edit-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_edit-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_quote-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_quote-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_reply-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_reply-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_report-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_report-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_up-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/p_up-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/t_new-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/t_new-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/t_poll-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/t_poll-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/t_qr-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/t_qr-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/t_reply-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/english/t_reply-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/flat-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/flat-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_big-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_big-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_digest-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_digest-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_locked_big-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_locked_big-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_locked_big_newposts-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_locked_big_newposts-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_new_big-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_new_big-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_sticky-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_sticky-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_user-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/folder_user-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/forum_moderators-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/forum_moderators-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/ XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/Thumbs.db XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/new_forum-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/new_forum-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/new_subforum-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/new_subforum-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/offline-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/offline-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/online-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/online-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_delete-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_delete-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_edit-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_edit-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_quote-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_quote-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_reply-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_reply-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_report-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_report-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_up-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/p_up-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/t_new-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/t_new-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/t_poll-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/t_poll-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/t_qr-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/t_qr-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/t_reply-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/german/t_reply-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/hot_folder-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/hot_folder-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/hot_folder_user-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/hot_folder_user-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/hot_red_folder-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/hot_red_folder-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/index.html XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/left-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/left-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/lock-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/lock-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/pixel-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/poll-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/poll-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/post_content-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/post_content-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/printer-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/printer-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate1-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate1-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate2-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate2-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate3-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate3-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate4-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate4-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate5-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rate5-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/red_folder-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/red_folder-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/red_folder_user-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/red_folder_user-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/right-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/right-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rpg/ XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rpg/Thumbs.db XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rpg/blue.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rpg/green.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rpg/img_backing.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rpg/img_left.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rpg/img_right.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/rpg/orange.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/threaded-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/threaded-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/up-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/up-a.png XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/whosonline-a.gif XoopsModules/xforum/releases/4.04/xforum/images/imagesets/default/whosonline-a.png XoopsModules/xforum/releases/4.04/xforum/images/index.html XoopsModules/xforum/releases/4.04/xforum/images/left_both.gif XoopsModules/xforum/releases/4.04/xforum/images/left_both.png XoopsModules/xforum/releases/4.04/xforum/images/lock_topic-a.gif XoopsModules/xforum/releases/4.04/xforum/images/lock_topic-a.png XoopsModules/xforum/releases/4.04/xforum/images/minus-a.gif XoopsModules/xforum/releases/4.04/xforum/images/minus-a.png XoopsModules/xforum/releases/4.04/xforum/images/minus.gif XoopsModules/xforum/releases/4.04/xforum/images/minus.png XoopsModules/xforum/releases/4.04/xforum/images/move_topic-a.gif XoopsModules/xforum/releases/4.04/xforum/images/move_topic-a.png XoopsModules/xforum/releases/4.04/xforum/images/msnm-a.gif XoopsModules/xforum/releases/4.04/xforum/images/msnm-a.png XoopsModules/xforum/releases/4.04/xforum/images/news-a.gif XoopsModules/xforum/releases/4.04/xforum/images/news-a.png XoopsModules/xforum/releases/4.04/xforum/images/pdf-a.gif XoopsModules/xforum/releases/4.04/xforum/images/pdf-a.png XoopsModules/xforum/releases/4.04/xforum/images/personal-a.gif XoopsModules/xforum/releases/4.04/xforum/images/personal-a.png XoopsModules/xforum/releases/4.04/xforum/images/plus-a.gif XoopsModules/xforum/releases/4.04/xforum/images/plus-a.png XoopsModules/xforum/releases/4.04/xforum/images/plus.gif XoopsModules/xforum/releases/4.04/xforum/images/plus.png XoopsModules/xforum/releases/4.04/xforum/images/pm-a.gif XoopsModules/xforum/releases/4.04/xforum/images/pm-a.png XoopsModules/xforum/releases/4.04/xforum/images/right_both.gif XoopsModules/xforum/releases/4.04/xforum/images/right_both.png XoopsModules/xforum/releases/4.04/xforum/images/rss-a.gif XoopsModules/xforum/releases/4.04/xforum/images/rss-a.png XoopsModules/xforum/releases/4.04/xforum/images/rss-small.gif XoopsModules/xforum/releases/4.04/xforum/images/spacer-a.png XoopsModules/xforum/releases/4.04/xforum/images/sticky-a.gif XoopsModules/xforum/releases/4.04/xforum/images/sticky-a.png XoopsModules/xforum/releases/4.04/xforum/images/undigest-a.gif XoopsModules/xforum/releases/4.04/xforum/images/undigest-a.png XoopsModules/xforum/releases/4.04/xforum/images/unlock_topic-a.gif XoopsModules/xforum/releases/4.04/xforum/images/unlock_topic-a.png XoopsModules/xforum/releases/4.04/xforum/images/unsticky-a.gif XoopsModules/xforum/releases/4.04/xforum/images/unsticky-a.png XoopsModules/xforum/releases/4.04/xforum/images/xforum.png XoopsModules/xforum/releases/4.04/xforum/images/xoopsxf_slogo.gif XoopsModules/xforum/releases/4.04/xforum/images/xoopsxf_slogo.png XoopsModules/xforum/releases/4.04/xforum/images/yahoo-a.gif XoopsModules/xforum/releases/4.04/xforum/images/yahoo-xforum.png XoopsModules/xforum/releases/4.04/xforum/include/ XoopsModules/xforum/releases/4.04/xforum/include/_notes/ XoopsModules/xforum/releases/4.04/xforum/include/_notes/dwsync.xml XoopsModules/xforum/releases/4.04/xforum/include/forumform.inc.php XoopsModules/xforum/releases/4.04/xforum/include/functions.image.php XoopsModules/xforum/releases/4.04/xforum/include/functions.ini.php XoopsModules/xforum/releases/4.04/xforum/include/functions.php XoopsModules/xforum/releases/4.04/xforum/include/functions.welcome.php XoopsModules/xforum/releases/4.04/xforum/include/index.html XoopsModules/xforum/releases/4.04/xforum/include/js/ XoopsModules/xforum/releases/4.04/xforum/include/js/xforum_browserdetect.js XoopsModules/xforum/releases/4.04/xforum/include/js/xforum_dynMenu.js XoopsModules/xforum/releases/4.04/xforum/include/js/xforum_menu_click.js XoopsModules/xforum/releases/4.04/xforum/include/js/xforum_tip.js XoopsModules/xforum/releases/4.04/xforum/include/js/xforum_tipstyle.js XoopsModules/xforum/releases/4.04/xforum/include/js/xforum_toggle.js XoopsModules/xforum/releases/4.04/xforum/include/module.php XoopsModules/xforum/releases/4.04/xforum/include/module.v100.php XoopsModules/xforum/releases/4.04/xforum/include/module.v220.php XoopsModules/xforum/releases/4.04/xforum/include/notification.inc.php XoopsModules/xforum/releases/4.04/xforum/include/plugin.dist.php XoopsModules/xforum/releases/4.04/xforum/include/plugin.php XoopsModules/xforum/releases/4.04/xforum/include/pngbehavior.htc XoopsModules/xforum/releases/4.04/xforum/include/search.inc.php XoopsModules/xforum/releases/4.04/xforum/include/vars.php XoopsModules/xforum/releases/4.04/xforum/include/xforum.htc XoopsModules/xforum/releases/4.04/xforum/index.php XoopsModules/xforum/releases/4.04/xforum/language/ XoopsModules/xforum/releases/4.04/xforum/language/aussie/ XoopsModules/xforum/releases/4.04/xforum/language/aussie/admin.php XoopsModules/xforum/releases/4.04/xforum/language/aussie/blocks.php XoopsModules/xforum/releases/4.04/xforum/language/aussie/index.html XoopsModules/xforum/releases/4.04/xforum/language/aussie/mail_template/ XoopsModules/xforum/releases/4.04/xforum/language/aussie/mail_template/forum_newpost_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/aussie/mail_template/forum_newthread_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/aussie/mail_template/global_digest_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/aussie/mail_template/global_newforum_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/aussie/mail_template/global_newfullpost_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/aussie/mail_template/global_newpost_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/aussie/mail_template/thread_newpost_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/aussie/main.php XoopsModules/xforum/releases/4.04/xforum/language/aussie/modinfo.php XoopsModules/xforum/releases/4.04/xforum/language/english/ XoopsModules/xforum/releases/4.04/xforum/language/english/admin.php XoopsModules/xforum/releases/4.04/xforum/language/english/blocks.php XoopsModules/xforum/releases/4.04/xforum/language/english/index.html XoopsModules/xforum/releases/4.04/xforum/language/english/mail_template/ XoopsModules/xforum/releases/4.04/xforum/language/english/mail_template/forum_newpost_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/english/mail_template/forum_newthread_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/english/mail_template/global_digest_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/english/mail_template/global_newforum_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/english/mail_template/global_newfullpost_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/english/mail_template/global_newpost_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/english/mail_template/thread_newpost_notify.tpl XoopsModules/xforum/releases/4.04/xforum/language/english/main.php XoopsModules/xforum/releases/4.04/xforum/language/english/modinfo.php XoopsModules/xforum/releases/4.04/xforum/language/index.html XoopsModules/xforum/releases/4.04/xforum/makepdf.php XoopsModules/xforum/releases/4.04/xforum/moderate.php XoopsModules/xforum/releases/4.04/xforum/newtopic.php XoopsModules/xforum/releases/4.04/xforum/notification_update.php XoopsModules/xforum/releases/4.04/xforum/polls.php XoopsModules/xforum/releases/4.04/xforum/post.php XoopsModules/xforum/releases/4.04/xforum/posttonews.php XoopsModules/xforum/releases/4.04/xforum/posttopm.php XoopsModules/xforum/releases/4.04/xforum/print.php XoopsModules/xforum/releases/4.04/xforum/ratethread.php XoopsModules/xforum/releases/4.04/xforum/readme.txt XoopsModules/xforum/releases/4.04/xforum/reply.php XoopsModules/xforum/releases/4.04/xforum/report.php XoopsModules/xforum/releases/4.04/xforum/rss.php XoopsModules/xforum/releases/4.04/xforum/search.php XoopsModules/xforum/releases/4.04/xforum/sql/ XoopsModules/xforum/releases/4.04/xforum/sql/index.html XoopsModules/xforum/releases/4.04/xforum/sql/mysql.sql XoopsModules/xforum/releases/4.04/xforum/sql/mysql.sql.bak XoopsModules/xforum/releases/4.04/xforum/templates/ XoopsModules/xforum/releases/4.04/xforum/templates/_notes/ XoopsModules/xforum/releases/4.04/xforum/templates/_notes/dwsync.xml XoopsModules/xforum/releases/4.04/xforum/templates/blocks/ XoopsModules/xforum/releases/4.04/xforum/templates/blocks/index.html XoopsModules/xforum/releases/4.04/xforum/templates/blocks/xforum_block.html XoopsModules/xforum/releases/4.04/xforum/templates/blocks/xforum_block_author.html XoopsModules/xforum/releases/4.04/xforum/templates/blocks/xforum_block_post.html XoopsModules/xforum/releases/4.04/xforum/templates/blocks/xforum_block_text.html XoopsModules/xforum/releases/4.04/xforum/templates/blocks/xforum_block_topic.html XoopsModules/xforum/releases/4.04/xforum/templates/index.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum.css XoopsModules/xforum/releases/4.04/xforum/templates/xforum_index.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_index.html.bak XoopsModules/xforum/releases/4.04/xforum/templates/xforum_item.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_menu_click.css XoopsModules/xforum/releases/4.04/xforum/templates/xforum_menu_hover.css XoopsModules/xforum/releases/4.04/xforum/templates/xforum_online.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_poll_results.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_poll_view.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_rss.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_search.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_searchresults.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_thread.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_viewall.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_viewforum.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_viewpost.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_viewpost_list.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_viewtopic_flat.html XoopsModules/xforum/releases/4.04/xforum/templates/xforum_viewtopic_thread.html XoopsModules/xforum/releases/4.04/xforum/topicmanager.php XoopsModules/xforum/releases/4.04/xforum/viewall.php XoopsModules/xforum/releases/4.04/xforum/viewforum.php XoopsModules/xforum/releases/4.04/xforum/viewpost.php XoopsModules/xforum/releases/4.04/xforum/viewtopic.php XoopsModules/xforum/releases/4.04/xforum/votepolls.php XoopsModules/xforum/releases/4.04/xforum/xoops_version.php XoopsModules/xforum/releases/4.04/xforum/xoops_version.php.bak XoopsModules/xforum/releases/4.05/ XoopsModules/xforum/releases/4.05/xforum/ XoopsModules/xforum/releases/4.05/xforum/_notes/ XoopsModules/xforum/releases/4.05/xforum/_notes/dwsync.xml XoopsModules/xforum/releases/4.05/xforum/action.post.php XoopsModules/xforum/releases/4.05/xforum/action.topic.php XoopsModules/xforum/releases/4.05/xforum/action.transfer.php XoopsModules/xforum/releases/4.05/xforum/admin/ XoopsModules/xforum/releases/4.05/xforum/admin/about.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_blocks.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_cat_manager.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_digest.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_forum_manager.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_forum_prune.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_forum_reorder.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_header.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_permissions.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_post.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_report.php XoopsModules/xforum/releases/4.05/xforum/admin/admin_votedata.php XoopsModules/xforum/releases/4.05/xforum/admin/error_log XoopsModules/xforum/releases/4.05/xforum/admin/index.html XoopsModules/xforum/releases/4.05/xforum/admin/index.php XoopsModules/xforum/releases/4.05/xforum/admin/menu.php XoopsModules/xforum/releases/4.05/xforum/archive.php XoopsModules/xforum/releases/4.05/xforum/blocks/ XoopsModules/xforum/releases/4.05/xforum/blocks/index.html XoopsModules/xforum/releases/4.05/xforum/blocks/xforum_block.php XoopsModules/xforum/releases/4.05/xforum/changelog.txt XoopsModules/xforum/releases/4.05/xforum/class/ XoopsModules/xforum/releases/4.05/xforum/class/category.php XoopsModules/xforum/releases/4.05/xforum/class/digest.php XoopsModules/xforum/releases/4.05/xforum/class/forum.php XoopsModules/xforum/releases/4.05/xforum/class/index.html XoopsModules/xforum/releases/4.05/xforum/class/karma.php XoopsModules/xforum/releases/4.05/xforum/class/moderate.php XoopsModules/xforum/releases/4.05/xforum/class/online.php XoopsModules/xforum/releases/4.05/xforum/class/permission.php XoopsModules/xforum/releases/4.05/xforum/class/post.php XoopsModules/xforum/releases/4.05/xforum/class/rate.php XoopsModules/xforum/releases/4.05/xforum/class/read.php XoopsModules/xforum/releases/4.05/xforum/class/readforum.php XoopsModules/xforum/releases/4.05/xforum/class/readtopic.php XoopsModules/xforum/releases/4.05/xforum/class/report.php XoopsModules/xforum/releases/4.05/xforum/class/text.php XoopsModules/xforum/releases/4.05/xforum/class/topic.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/blog/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/blog/config.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/blog/index.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/blog/language/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/blog/language/english.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/blog/language/schinese.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/bookmark/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/bookmark/config.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/bookmark/index.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/bookmark/language/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/bookmark/language/english.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/bookmark/language/schinese.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/dokuwiki/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/dokuwiki/config.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/dokuwiki/index.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/dokuwiki/language/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/dokuwiki/language/english.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/dokuwiki/language/schinese.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/email/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/email/action.email.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/email/config.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/email/index.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/email/language/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/email/language/english.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/email/language/schinese.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/index.html XoopsModules/xforum/releases/4.05/xforum/class/transfer/pdf/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/pdf/config.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/pdf/index.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/pdf/language/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/pdf/language/english.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/pdf/language/schinese.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/pm/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/pm/config.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/pm/index.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/pm/language/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/pm/language/english.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/pm/language/schinese.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/print/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/print/config.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/print/index.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/print/language/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/print/language/english.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/print/language/schinese.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/wordpress/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/wordpress/config.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/wordpress/index.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/wordpress/language/ XoopsModules/xforum/releases/4.05/xforum/class/transfer/wordpress/language/english.php XoopsModules/xforum/releases/4.05/xforum/class/transfer/wordpress/language/schinese.php XoopsModules/xforum/releases/4.05/xforum/class/transfer.php XoopsModules/xforum/releases/4.05/xforum/class/uploader.php XoopsModules/xforum/releases/4.05/xforum/class/user.php XoopsModules/xforum/releases/4.05/xforum/class/xforumtree.php XoopsModules/xforum/releases/4.05/xforum/class/xmlrss.php XoopsModules/xforum/releases/4.05/xforum/class/xoopsformloader.php XoopsModules/xforum/releases/4.05/xforum/delete.php XoopsModules/xforum/releases/4.05/xforum/digest.php XoopsModules/xforum/releases/4.05/xforum/dl_attachment.php XoopsModules/xforum/releases/4.05/xforum/edit.php XoopsModules/xforum/releases/4.05/xforum/fckeditor.config.js XoopsModules/xforum/releases/4.05/xforum/fckeditor.connector.php XoopsModules/xforum/releases/4.05/xforum/fckeditor.upload.php XoopsModules/xforum/releases/4.05/xforum/gpl.txt XoopsModules/xforum/releases/4.05/xforum/graphs/ XoopsModules/xforum/releases/4.05/xforum/header.php XoopsModules/xforum/releases/4.05/xforum/htaccess.txt XoopsModules/xforum/releases/4.05/xforum/images/ XoopsModules/xforum/releases/4.05/xforum/images/Thumbs.db XoopsModules/xforum/releases/4.05/xforum/images/add-a.gif XoopsModules/xforum/releases/4.05/xforum/images/aim-a.gif XoopsModules/xforum/releases/4.05/xforum/images/aim-a.png XoopsModules/xforum/releases/4.05/xforum/images/approve-a.gif XoopsModules/xforum/releases/4.05/xforum/images/approve-a.png XoopsModules/xforum/releases/4.05/xforum/images/arrow-a.gif XoopsModules/xforum/releases/4.05/xforum/images/arrow-a.png XoopsModules/xforum/releases/4.05/xforum/images/bg.gif XoopsModules/xforum/releases/4.05/xforum/images/bg.png XoopsModules/xforum/releases/4.05/xforum/images/blank.gif XoopsModules/xforum/releases/4.05/xforum/images/category/ XoopsModules/xforum/releases/4.05/xforum/images/category/Thumbs.db XoopsModules/xforum/releases/4.05/xforum/images/category/blank.gif XoopsModules/xforum/releases/4.05/xforum/images/category/topxoops.png XoopsModules/xforum/releases/4.05/xforum/images/category/xforum.png XoopsModules/xforum/releases/4.05/xforum/images/category/xoops-au.png XoopsModules/xforum/releases/4.05/xforum/images/del_topic-a.gif XoopsModules/xforum/releases/4.05/xforum/images/del_topic-a.png XoopsModules/xforum/releases/4.05/xforum/images/delete-a.gif XoopsModules/xforum/releases/4.05/xforum/images/delete-a.png XoopsModules/xforum/releases/4.05/xforum/images/delete.gif XoopsModules/xforum/releases/4.05/xforum/images/delete.png XoopsModules/xforum/releases/4.05/xforum/images/digest-a.gif XoopsModules/xforum/releases/4.05/xforum/images/digest-a.png XoopsModules/xforum/releases/4.05/xforum/images/disable.gif XoopsModules/xforum/releases/4.05/xforum/images/document-a.gif XoopsModules/xforum/releases/4.05/xforum/images/document-a.png XoopsModules/xforum/releases/4.05/xforum/images/edit-a.gif XoopsModules/xforum/releases/4.05/xforum/images/edit-a.png XoopsModules/xforum/releases/4.05/xforum/images/edit.gif XoopsModules/xforum/releases/4.05/xforum/images/edit.png XoopsModules/xforum/releases/4.05/xforum/images/email-a.gif XoopsModules/xforum/releases/4.05/xforum/images/email-a.png XoopsModules/xforum/releases/4.05/xforum/images/enable.gif XoopsModules/xforum/releases/4.05/xforum/images/external.png XoopsModules/xforum/releases/4.05/xforum/images/filetypes/ XoopsModules/xforum/releases/4.05/xforum/images/filetypes/Thumbs.db XoopsModules/xforum/releases/4.05/xforum/images/filetypes/ace.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/avi.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/bmp.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/doc.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/exe.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/flash.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/gif.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/html.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/jpeg.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/jpg.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/mid.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/mov.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/mp3.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/mpg.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/netscape.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/pdf.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/png.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/ppt.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/rar.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/txt.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/unknown.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/wav.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/xls.gif XoopsModules/xforum/releases/4.05/xforum/images/filetypes/zip.gif XoopsModules/xforum/releases/4.05/xforum/images/home-a.gif XoopsModules/xforum/releases/4.05/xforum/images/home-a.png XoopsModules/xforum/releases/4.05/xforum/images/icq-a.gif XoopsModules/xforum/releases/4.05/xforum/images/icq-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/ XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/ XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/Thumbs.db XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/attachment-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/attachment-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/clip-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/clip-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/doubledown-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/doubledown-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/down-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/down-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/ XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/Thumbs.db XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/new_forum-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/new_forum-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/new_subforum-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/new_subforum-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/offline-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/offline-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/online-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/online-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_delete-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_delete-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_edit-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_edit-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_quote-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_quote-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_reply-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_reply-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_report-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_report-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_up-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/p_up-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/t_new-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/t_new-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/t_poll-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/t_poll-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/t_qr-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/t_qr-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/t_reply-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/english/t_reply-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/flat-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/flat-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_big-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_big-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_digest-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_digest-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_locked_big-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_locked_big-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_locked_big_newposts-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_locked_big_newposts-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_new_big-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_new_big-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_sticky-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_sticky-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_user-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/folder_user-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/forum_moderators-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/forum_moderators-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/ XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/Thumbs.db XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/new_forum-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/new_forum-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/new_subforum-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/new_subforum-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/offline-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/offline-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/online-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/online-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_delete-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_delete-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_edit-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_edit-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_quote-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_quote-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_reply-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_reply-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_report-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_report-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_up-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/p_up-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/t_new-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/t_new-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/t_poll-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/t_poll-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/t_qr-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/t_qr-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/t_reply-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/german/t_reply-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/hot_folder-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/hot_folder-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/hot_folder_user-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/hot_folder_user-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/hot_red_folder-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/hot_red_folder-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/index.html XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/left-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/left-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/lock-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/lock-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/pixel-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/poll-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/poll-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/post_content-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/post_content-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/printer-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/printer-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate1-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate1-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate2-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate2-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate3-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate3-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate4-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate4-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate5-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rate5-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/red_folder-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/red_folder-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/red_folder_user-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/red_folder_user-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/right-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/right-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rpg/ XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rpg/Thumbs.db XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rpg/blue.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rpg/green.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rpg/img_backing.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rpg/img_left.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rpg/img_right.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/rpg/orange.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/threaded-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/threaded-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/up-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/up-a.png XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/whosonline-a.gif XoopsModules/xforum/releases/4.05/xforum/images/imagesets/default/whosonline-a.png ... [truncated message content] |
From: <be...@us...> - 2008-09-22 02:48:27
|
Revision: 2156 http://xoops.svn.sourceforge.net/xoops/?rev=2156&view=rev Author: beckmi Date: 2008-09-22 02:47:54 +0000 (Mon, 22 Sep 2008) Log Message: ----------- placeholder for Protector as part of XOOPS release package Added Paths: ----------- XoopsModules/protector/ XoopsModules/protector/ReadMe.txt XoopsModules/protector/html/ XoopsModules/protector/html/modules/ XoopsModules/protector/html/modules/protector/ XoopsModules/protector/html/modules/protector/admin/ XoopsModules/protector/html/modules/protector/admin/admin_menu.php XoopsModules/protector/html/modules/protector/admin/index.php XoopsModules/protector/html/modules/protector/blocks/ XoopsModules/protector/html/modules/protector/blocks/blocks.php XoopsModules/protector/html/modules/protector/images/ XoopsModules/protector/html/modules/protector/images/dotdotdot.gif XoopsModules/protector/html/modules/protector/index.css XoopsModules/protector/html/modules/protector/index.php XoopsModules/protector/html/modules/protector/module_icon.php XoopsModules/protector/html/modules/protector/mytrustdirname.php XoopsModules/protector/html/modules/protector/notification.php XoopsModules/protector/html/modules/protector/notification_update.php XoopsModules/protector/html/modules/protector/oninstall.php XoopsModules/protector/html/modules/protector/onuninstall.php XoopsModules/protector/html/modules/protector/onupdate.php XoopsModules/protector/html/modules/protector/preload/ XoopsModules/protector/html/modules/protector/search.php XoopsModules/protector/html/modules/protector/xoops_version.php XoopsModules/protector/xoops_trust_path/ XoopsModules/protector/xoops_trust_path/modules/ XoopsModules/protector/xoops_trust_path/modules/protector/ XoopsModules/protector/xoops_trust_path/modules/protector/CHANGES XoopsModules/protector/xoops_trust_path/modules/protector/COPYING XoopsModules/protector/xoops_trust_path/modules/protector/MEMO_ja XoopsModules/protector/xoops_trust_path/modules/protector/README XoopsModules/protector/xoops_trust_path/modules/protector/README_PL.txt XoopsModules/protector/xoops_trust_path/modules/protector/TODO XoopsModules/protector/xoops_trust_path/modules/protector/admin/ XoopsModules/protector/xoops_trust_path/modules/protector/admin/advisory.php XoopsModules/protector/xoops_trust_path/modules/protector/admin/index.php XoopsModules/protector/xoops_trust_path/modules/protector/admin/mymenu.php XoopsModules/protector/xoops_trust_path/modules/protector/admin/prefix_manager.php XoopsModules/protector/xoops_trust_path/modules/protector/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/admin_menu.php XoopsModules/protector/xoops_trust_path/modules/protector/blocks/ XoopsModules/protector/xoops_trust_path/modules/protector/blocks.php XoopsModules/protector/xoops_trust_path/modules/protector/class/ XoopsModules/protector/xoops_trust_path/modules/protector/class/ProtectorFilter.php XoopsModules/protector/xoops_trust_path/modules/protector/class/gtickets.php XoopsModules/protector/xoops_trust_path/modules/protector/class/protector.php XoopsModules/protector/xoops_trust_path/modules/protector/configs/ XoopsModules/protector/xoops_trust_path/modules/protector/configs/index.html XoopsModules/protector/xoops_trust_path/modules/protector/doc/ XoopsModules/protector/xoops_trust_path/modules/protector/doc/documentation_protector-3-10_french.pdf XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/ XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/bruteforce_overrun_message.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/crawler_overrun_message.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/f5attack_overrun_message.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/postcommon_post_deny_by_httpbl.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/postcommon_post_deny_by_rbl.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/postcommon_post_htmlpurify4guest.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/postcommon_post_need_multibyte.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/postcommon_register_insert_js_check.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/precommon_badip_message.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/precommon_badip_redirection.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/prepurge_exit_message.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_disabled/spamcheck_overrun_message.php XoopsModules/protector/xoops_trust_path/modules/protector/filters_enabled/ XoopsModules/protector/xoops_trust_path/modules/protector/include/ XoopsModules/protector/xoops_trust_path/modules/protector/include/install_extramodcheck.inc.php XoopsModules/protector/xoops_trust_path/modules/protector/include/postcheck.inc.php XoopsModules/protector/xoops_trust_path/modules/protector/include/postcheck_functions.php XoopsModules/protector/xoops_trust_path/modules/protector/include/precheck.inc.php XoopsModules/protector/xoops_trust_path/modules/protector/include/precheck_functions.php XoopsModules/protector/xoops_trust_path/modules/protector/language/ XoopsModules/protector/xoops_trust_path/modules/protector/language/arabic/ XoopsModules/protector/xoops_trust_path/modules/protector/language/arabic/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/arabic/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/arabic/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/arabic/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/de_utf8/ XoopsModules/protector/xoops_trust_path/modules/protector/language/de_utf8/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/de_utf8/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/de_utf8/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/de_utf8/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/english/ XoopsModules/protector/xoops_trust_path/modules/protector/language/english/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/english/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/english/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/english/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/fr_utf8/ XoopsModules/protector/xoops_trust_path/modules/protector/language/fr_utf8/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/fr_utf8/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/fr_utf8/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/fr_utf8/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/french/ XoopsModules/protector/xoops_trust_path/modules/protector/language/french/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/french/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/french/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/french/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/german/ XoopsModules/protector/xoops_trust_path/modules/protector/language/german/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/german/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/german/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/german/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/ja_utf8/ XoopsModules/protector/xoops_trust_path/modules/protector/language/ja_utf8/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/ja_utf8/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/ja_utf8/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/japanese/ XoopsModules/protector/xoops_trust_path/modules/protector/language/japanese/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/japanese/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/japanese/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/japanese/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/persian/ XoopsModules/protector/xoops_trust_path/modules/protector/language/persian/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/persian/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/persian/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/persian/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/polish/ XoopsModules/protector/xoops_trust_path/modules/protector/language/polish/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/polish/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/polish/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/polish/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/portuguesebr/ XoopsModules/protector/xoops_trust_path/modules/protector/language/portuguesebr/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/portuguesebr/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/portuguesebr/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/portuguesebr/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/russian/ XoopsModules/protector/xoops_trust_path/modules/protector/language/russian/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/russian/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/russian/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/russian/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/language/spanish/ XoopsModules/protector/xoops_trust_path/modules/protector/language/spanish/admin.php XoopsModules/protector/xoops_trust_path/modules/protector/language/spanish/index.html XoopsModules/protector/xoops_trust_path/modules/protector/language/spanish/main.php XoopsModules/protector/xoops_trust_path/modules/protector/language/spanish/modinfo.php XoopsModules/protector/xoops_trust_path/modules/protector/library/ XoopsModules/protector/xoops_trust_path/modules/protector/library/CREDITS XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrCollections.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/Background.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/Border.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/Color.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/Composite.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/Font.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/FontFamily.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/Length.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/ListStyle.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/Multiple.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/Number.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/Percentage.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/TextDecoration.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS/URI.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/CSS.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/Enum.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/Bool.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/Color.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/FrameTarget.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/ID.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/Length.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/LinkTypes.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/MultiLength.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/Nmtokens.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/HTML/Pixels.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/Integer.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/Lang.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/Text.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/URI/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/URI/Email/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/URI/Email.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/URI/Host.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/URI/IPv4.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/URI/IPv6.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef/URI.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrDef.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/BdoDir.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/BgColor.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/BoolToCSS.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/Border.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/EnumToCSS.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/ImgRequired.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/ImgSpace.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/Lang.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/Length.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform/Name.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTransform.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrTypes.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/AttrValidator.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/CSSDefinition.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ChildDef/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ChildDef/Chameleon.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ChildDef/Custom.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ChildDef/Empty.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ChildDef/Optional.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ChildDef/Required.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ChildDef/StrictBlockquote.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ChildDef/Table.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ChildDef.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Config.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ConfigDef/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ConfigDef/Directive.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ConfigDef/DirectiveAlias.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ConfigDef/Namespace.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ConfigDef.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ConfigSchema.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ContentSets.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Context.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Definition.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Decorator/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Decorator/Memory.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Decorator/Template.php.in XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Decorator.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Null.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer/CSS/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer/HTML/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer/Test/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer/URI/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCache.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DefinitionCacheFactory.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Doctype.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/DoctypeRegistry.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ElementDef.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Encoder.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/EntityLookup/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/EntityLookup/entities.ser XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/EntityLookup.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/EntityParser.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Error.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/ErrorCollector.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Filter/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Filter/YouTube.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Filter.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Generator.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLDefinition.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Bdo.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/CommonAttributes.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Edit.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Hypertext.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Image.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Legacy.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/List.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Object.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Presentation.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Ruby.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Scripting.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/StyleAttribute.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Tables.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Target.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Text.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Tidy/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Tidy/Proprietary.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Tidy/XHTML.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Tidy/XHTMLStrict.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/Tidy.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule/XMLCommonAttributes.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModule.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/HTMLModuleManager.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/IDAccumulator.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Injector/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Injector/AutoParagraph.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Injector/Linkify.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Injector/PurifierLinkify.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Injector.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Language/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Language/classes/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Language/classes/en-x-test.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Language/messages/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Language/messages/en-x-test.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Language/messages/en.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Language.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/LanguageFactory.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Lexer/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Lexer/DOMLex.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Lexer/DirectLex.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Lexer/PEARSax3.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Lexer/PH5P.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Lexer.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/PercentEncoder.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Printer/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Printer/CSSDefinition.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Printer/ConfigForm.css XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Printer/ConfigForm.js XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Printer/ConfigForm.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Printer/HTMLDefinition.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Printer.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Strategy/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Strategy/Composite.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Strategy/Core.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Strategy/FixNesting.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Strategy/MakeWellFormed.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Strategy/RemoveForeignElements.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Strategy/ValidateAttributes.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Strategy.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/TagTransform/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/TagTransform/Font.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/TagTransform/Simple.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/TagTransform.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/Token.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/TokenFactory.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URI.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIDefinition.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIFilter/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIFilter/DisableExternal.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIFilter/DisableExternalResources.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIFilter/HostBlacklist.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIFilter/MakeAbsolute.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIFilter.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIParser.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIScheme/ XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIScheme/ftp.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIScheme/http.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIScheme/https.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIScheme/mailto.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIScheme/news.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIScheme/nntp.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URIScheme.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier/URISchemeRegistry.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier.auto.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier.func.php XoopsModules/protector/xoops_trust_path/modules/protector/library/HTMLPurifier.php XoopsModules/protector/xoops_trust_path/modules/protector/main/ XoopsModules/protector/xoops_trust_path/modules/protector/main/index.php XoopsModules/protector/xoops_trust_path/modules/protector/main.php XoopsModules/protector/xoops_trust_path/modules/protector/module_icon.php XoopsModules/protector/xoops_trust_path/modules/protector/module_icon.png XoopsModules/protector/xoops_trust_path/modules/protector/notification.php XoopsModules/protector/xoops_trust_path/modules/protector/oninstall.php XoopsModules/protector/xoops_trust_path/modules/protector/onuninstall.php XoopsModules/protector/xoops_trust_path/modules/protector/onupdate.php XoopsModules/protector/xoops_trust_path/modules/protector/preload.php XoopsModules/protector/xoops_trust_path/modules/protector/sql/ XoopsModules/protector/xoops_trust_path/modules/protector/sql/mysql.sql XoopsModules/protector/xoops_trust_path/modules/protector/xoops_version.php XoopsModules/xoopspoll/language/spanish/ XoopsModules/xoopspoll/language/spanish/admin.php XoopsModules/xoopspoll/language/spanish/blocks.php XoopsModules/xoopspoll/language/spanish/index.html XoopsModules/xoopspoll/language/spanish/mail_template/ XoopsModules/xoopspoll/language/spanish/mail_template/index.html XoopsModules/xoopspoll/language/spanish/mail_template/mail_results.tpl XoopsModules/xoopspoll/language/spanish/main.php XoopsModules/xoopspoll/language/spanish/modinfo.php Added: XoopsModules/protector/ReadMe.txt =================================================================== --- XoopsModules/protector/ReadMe.txt (rev 0) +++ XoopsModules/protector/ReadMe.txt 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,3 @@ +This is SOLELY as a placeholder for our XOOPS release package. + +Please check for updates at: http://xoops.peak.ne.jp/ Added: XoopsModules/protector/html/modules/protector/admin/admin_menu.php =================================================================== --- XoopsModules/protector/html/modules/protector/admin/admin_menu.php (rev 0) +++ XoopsModules/protector/html/modules/protector/admin/admin_menu.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$mydirpath = dirname( dirname( __FILE__ ) ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin_menu.php' ; + +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/admin/index.php =================================================================== --- XoopsModules/protector/html/modules/protector/admin/index.php (rev 0) +++ XoopsModules/protector/html/modules/protector/admin/index.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,12 @@ +<?php + +require '../../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$mydirpath = dirname( dirname( __FILE__ ) ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin.php' ; + +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/blocks/blocks.php =================================================================== --- XoopsModules/protector/html/modules/protector/blocks/blocks.php (rev 0) +++ XoopsModules/protector/html/modules/protector/blocks/blocks.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$mydirpath = dirname( dirname( __FILE__ ) ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/blocks.php' ; + +?> \ No newline at end of file Property changes on: XoopsModules/protector/html/modules/protector/images/dotdotdot.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/protector/html/modules/protector/index.css =================================================================== --- XoopsModules/protector/html/modules/protector/index.css (rev 0) +++ XoopsModules/protector/html/modules/protector/index.css 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,366 @@ +/* general - xoops */ +/* xoopsCode */ + +#post_reference dd div.xoopsCode, +#post_preview dd div.xoopsCode, +div.pico_body div.xoopsCode{ + width :95%; + overflow :auto; + margin :10px 0;} + +/* xoopsQuote */ + +div.pico_body blockquote{ + margin :0; + padding :5px;} +div.pico_body div.xoopsQuote{ + margin :0; + padding :0;} +#post_reference dd blockquote, +#post_preview dd blockquote{ + margin :0; + padding :5px;} + +/* pico_breadcrumbs */ + +div.pico_breadcrumbs{ + font-size :95%; + padding :0 0 3px; + border-bottom :1px #aaa solid;} + +/* head */ + +.pico_head{ + clear :both; + padding :3px 8px;} +.pico_head *{ + vertical-align :middle;} +.pico_head p{ + font-weight :normal; + font-size :95%; + margin :0; + padding :0 0 2px;} + +/* h1 */ + +.pico_title{ + font-size :130%; + margin :3px 0 15px;} +.pico_title *{ + vertical-align :middle;} + +/* h2 */ + +.pico_head h2{ + font-size :120%; + margin :0; + padding :0;} +.pico_head h2.invisible { + background-color :#f00;} +.pico_head h2.yetapproval { + background-color :#0ff;} +.pico_head h2 img{ + vertical-align :middle;} +h2.pico_head{ + font-size :120%; + padding :3px 8px;} +h2.pico_tree{ + margin-bottom :4px;} + +/* h3 */ + +h3.pico_head_h3{ + margin :5px 0 0; + padding :2px 8px; + border-bottom :1px #999 solid;} + +/* inc_eachpost.html */ +/* msgnum */ + +.pico_msgnum{ + font-size :95%; + font-weight :normal;} + +/* pico_info, pico_info_sub, pico_info_ctrl */ + +.pico_info{ + margin :2px 0 0; + padding :3px 8px; + background-color :#eee;} +.pico_info_sub{ + padding :2px 8px 3px; + background-color :#fff;} +.pico_info_ctrl{ + text-align :right; + clear :both; + margin :2px -2px 2px; + padding :3px 10px; + background-color :#fff; + border-top :1px #aaa dotted; + border-bottom :1px #aaa solid;} +.pico_info *,.pico_info_sub *,.pico_info_ctrl *{ + vertical-align :middle;} + +/* pico_body */ + +.pico_body{ + margin :0 -2px; + padding :15px 8px; + border-top :1px #aaa solid;} + +/* pico_avatar */ + +.pico_avatar{ + float :right; + margin :0 0 5px;} + + +/* main_listposts.html */ +/* pico_wrap */ + +.pico_wrap{ + clear :both; + border-top :1px #aaa solid; + border-right :1px #aaa solid; + border-left :1px #aaa solid; + padding :2px 2px 0;} + +/* pico_orderctrl */ + +p.pico_viewctrl{ + margin :0; + padding :3px; + text-align :right;} + +/* pico_topicinfo */ + +.pico_topicinfo{ + text-align :left; + margin :0; + padding :2px;} + +/* pico_ctrl */ + +.pico_ctrl{ + text-align :center; + clear :both; + margin :-8px 0 10px; + padding :8px; + background-color :#eee;} +.pico_ctrl *{ + vertical-align :middle;} +.pico_ctrl p,.pico_ctrl form{ + padding :3px; + margin :0;} + +ul.pico_othertopics,ul.pico_othertopics li{ + list-style :none outside; + text-align :center; + margin :0; + padding :0;} +ul.pico_othertopics li{ + padding-bottom :10px;} +ul.pico_othertopics li{ + width :33%; + float :left;} + +div.pico_topctrl{ + float :left; + width :auto;} + +div.pico_topctrl_icons{ + float :right; + width :100px;} + +a.topic_icon_ctrl{ + text-indent :-9000px; + display :block; + width :20px; + height :16px; + background-repeat :no-repeat; + float :left;} + +/* main_viewpost.html */ +/* eachbranch */ + +ul.pico_eachbranch{ + margin :0; + padding :0;} +ul.pico_eachbranch li{ + list-style :none outside; + margin :0; + padding :0;} +ul.pico_eachbranch li img{ + vertical-align :middle;} + +/* pico_currenttopic */ + +.pico_eachbranch li.pico_eachbranchitem{ + background-color :#eee;} +.pico_eachbranch li.pico_currenttopic{ + background-color :#fff;} + +/* main_listforums.html */ +/* pico_subcategories */ + +ul.pico_subcategories li{ + list-style :none outside;} + +/* pico_main_listcategories.html */ +/* infomations*/ + +dl.pico_bbsinfo{ + font-size :95%; + margin :0; + float :left;} +dl.pico_bbsinfo dt,dl.pico_bbsinfo dd{ + display :inline; + margin :0;} +dl.pico_bbsinfo dd{ + margin :0 5px 0 0;} +dl.pico_timeinfo{ + clear :both; + font-size :95%; + margin :0; + padding :0 0 10px; + float :left;} +dl.pico_timeinfo dt,dl.pico_timeinfo dd{ + display :inline; + margin :0;} +dl.pico_timeinfo dd{ + margin :0 5px 0 0;} + +ul.pico_listforums li{ + list-style :none outside;} + +/* main_listtopics.html */ +/* pico_bbsviewctrl */ + +div.pico_bbsviewctrl{ + line-height :100%; + float :left; + padding-bottom :3px;} +div.pico_bbsviewctrl form{ + margin :0; + padding :0;} +div.pico_bbsviewctrl form *,p.pico_bbsviewctrl *{ + vertical-align :middle; + margin :0; + padding :0;} + +/* pico_pagenav */ + +.pico_pagenav{ + text-align :right; + padding :3px;} + +table.pico_table{ + clear :both;} +table.pico_table thead th, +table.pico_table td{ + text-align :center !important; + padding :3px; + vertical-align :middle;} +table.pico_table td.pico_topictitle, +table.pico_table td.pico_posters{ + text-align :left !important;} +table.pico_table td.pico_mainicon{ + padding :0;} + +table.pico_table td img{ + vertical-align :middle; + margin-right :3px;} + +table.pico_table td dl{ + text-align :left; + margin :0 -3px; + padding :0;} +table.pico_table td dt{ + margin :0; + padding :3px 3px 5px;} +table.pico_table td dd{ + margin :0; + padding :0 3px 5px;} +table.pico_table td dd.pico_td_topicinfo{ + margin :0; + padding :3px 3px 1px; + border-top :1px #777 dashed; + font-size :95%;} + +/* pico_iconexp */ + +div.pico_iconexps ul.pico_iconexp{ + width :45%; + float :left;} + +ul.pico_iconexp{ + padding-bottom :15px;} + +ul.pico_iconexp li{ + list-style :none outside; + padding :3px 0;} + +ul.pico_iconexp li img{ + vertical-align :middle; + margin-right :3px;} + + +/* pico forms */ + +#post_reference dd, +#post_preview dd{ + margin :0;} + +/* table.pico_form_table */ + +table.pico_form_table td, +table.pico_form_table th{ + vertical-align :top !important; + text-align :left;} + +/* pico_submit */ + +p.pico_submit{ + text-align :center; + margin :0; + padding :10px;} + +/* edit colors */ +/* titles */ + +div.pico_msgtitle h2{ + background-color :#555;} +div.pico_msgtitle h2.invisible { + background-color :#f00;} +div.pico_msgtitle h2.yetapproval { + background-color :#0ff;} +div.pico_msgtitle h2 a{ + color :#fff;} +div.pico_msgtitle h2 a:hover{ + color :#f4b343;} + +.pico_head ,h2.pico_head{ + color :#fff; + background-color :#555;} +.pico_head a,h2.pico_head a{ + color :#fff;} +.pico_head a:hover,h2.pico_head a:hover{ + color :#f4b343;} + +/*.pico_table th, +.pico_form_table th, +.pico_table thead th, +.pico_form_table thead th{ + text-align :left !important; + background-color :#555 !important;} +.pico_table tr.even td, +.pico_form_table tr.even td{ + background-color :#dfdfdd !important;} +.pico_table tr.odd td, +.pico_form_table tr.odd td{ + background-color :#f3f3f3 !important;} */ + +h2.attn { + background-color :#f00;} +.pico_form_table th { color: black;} + Added: XoopsModules/protector/html/modules/protector/index.php =================================================================== --- XoopsModules/protector/html/modules/protector/index.php (rev 0) +++ XoopsModules/protector/html/modules/protector/index.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,16 @@ +<?php + +require '../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +if( @$_GET['mode'] == 'admin' ) { + require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin.php' ; +} else { + require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/main.php' ; +} + +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/module_icon.php =================================================================== --- XoopsModules/protector/html/modules/protector/module_icon.php (rev 0) +++ XoopsModules/protector/html/modules/protector/module_icon.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,14 @@ +<?php + +$xoopsOption['nocommon'] = true ; +require '../../mainfile.php' ; + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/module_icon.php' ; + +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/mytrustdirname.php =================================================================== --- XoopsModules/protector/html/modules/protector/mytrustdirname.php (rev 0) +++ XoopsModules/protector/html/modules/protector/mytrustdirname.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,3 @@ +<?php + $mytrustdirname = 'protector' ; +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/notification.php =================================================================== --- XoopsModules/protector/html/modules/protector/notification.php (rev 0) +++ XoopsModules/protector/html/modules/protector/notification.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/notification.php' ; + +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/notification_update.php =================================================================== --- XoopsModules/protector/html/modules/protector/notification_update.php (rev 0) +++ XoopsModules/protector/html/modules/protector/notification_update.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,14 @@ +<?php +require '../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +$mydirurl = XOOPS_URL.'/modules/'.$mydirname; + +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +$_GET['page'] = basename( __FILE__ , '.php'); + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/main.php' ; +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/oninstall.php =================================================================== --- XoopsModules/protector/html/modules/protector/oninstall.php (rev 0) +++ XoopsModules/protector/html/modules/protector/oninstall.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/oninstall.php' ; + +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/onuninstall.php =================================================================== --- XoopsModules/protector/html/modules/protector/onuninstall.php (rev 0) +++ XoopsModules/protector/html/modules/protector/onuninstall.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/onuninstall.php' ; + +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/onupdate.php =================================================================== --- XoopsModules/protector/html/modules/protector/onupdate.php (rev 0) +++ XoopsModules/protector/html/modules/protector/onupdate.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/onupdate.php' ; + +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/search.php =================================================================== --- XoopsModules/protector/html/modules/protector/search.php (rev 0) +++ XoopsModules/protector/html/modules/protector/search.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/search.php' ; + +?> \ No newline at end of file Added: XoopsModules/protector/html/modules/protector/xoops_version.php =================================================================== --- XoopsModules/protector/html/modules/protector/xoops_version.php (rev 0) +++ XoopsModules/protector/html/modules/protector/xoops_version.php 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/xoops_version.php' ; + +?> \ No newline at end of file Added: XoopsModules/protector/xoops_trust_path/modules/protector/CHANGES =================================================================== --- XoopsModules/protector/xoops_trust_path/modules/protector/CHANGES (rev 0) +++ XoopsModules/protector/xoops_trust_path/modules/protector/CHANGES 2008-09-22 02:47:54 UTC (rev 2156) @@ -0,0 +1,417 @@ +[xlang:en] += CHANGES = + +CHANGES are moved into README after 2.57 + +2.57 (2006/07/17) +- fixed treating blob on backing up in prefix_manager (thx fbs777) +- fixed some notices +- updated gticket into version2 +- disabled onInstall (2.57a) + +2.56 (2006/03/30) +- modified error handling when config can't be received +- modified DOS/CRAWLER skipping for nocommon=1 module (thx sleo577) +- updated german (thx rene) 2.56a + +2.55 (2006/02/11) +- fixed anti-multiple-content-type allows .tar.gz (thx gusagi) +- updated mymenu for compatibility with XC2.1 +- updated Spanish language files (thx bezoops) + +2.54 (2005/12/08) +- added backup feature into prefix_manager (experimental) +- added a check multiple dot file uploading (=multiple content-type for apache) +- updated portuguesebr language files (thx Izzy) +- modified anti camouflaged image file uploading system with some open_basedir restrictions (thx stefan88) - 2.54a +- modified some initial settings and documents - 2.54a + +2.53 (2005/11/30) + - added anti camouflaged image file upload (==IE Content-Type XSS) + - modified the action when DB is busy + - fixed some bugs cause Notices + - modified imcompatibities with XOOPS 2.2.3 + - moved document files under docs/ (for hiding protector's version) + - updated mymenu into 0.15a + - modified the action against PHP_SELF/PATH_INFO XSS + - modified the module icon (thx Argon) + - updated and renamed Polish language files from polski (thx Tomasz) + - updated French language files (thx marco) + - updated Italian language files (thx Defkon1) + - fixed packaging errors in zip files (thx Dave_L) 2.53a + +2.52 (2005/8/27) + - changed the feature of disabling xmlrpc.php in any path (wordpress etc.) + - modified the logging rule about xmlrpc.php + - added Russian language files (thx Sergey) + +2.51 (2005/8/24) + - added an option of IP mask bits against session hi-jacking + - added an advisory about session.use_trans_sid + - modified codes against PHP_SELF XSS + - updated French language files (thx HEMON) + +2.50 release (2005/8/22) + - added a protection against PHP_SELF XSS + - updated Brazilian Portuguese & Spanish language files (thx Yuji) + +2.50 beta2 (2005/7/31) + - changed "2.0.9.2 holes" into "disable features" + - added "num" select box + - updated Traditional Chinese language files (thx Kikuchi) + - updated Brazilian Portuguese & Spanish language files (thx Yuji) + +2.50 beta1 (2005/7/22) + - added an option "DOS/CRAWLER skip modules" + - modified adding some indexes of tables which protector accesses + - added an option "reliable IPs" + - added a feature of anti-BruteForceAttacks + +2.40 release (2005/7/21) + - added a protection from 'criteria attack' for xoops <= 2.0.10* + - modified Italian language files (thx Defkon1) + - added Finnish language files (thx kokko) + - added Polish language files (thx Tomasz) + +2.40RC2 (2005/4/4) + - modified the updating routine to delete old protector block (thx Dava_L) + - updated Brazilian Portuguese & Spanish language files (thx Yuji) + +2.40RC (2005/3/31) + - modified URI of attacking simulation in advisory (thx satanas) + - modified checking *check.inc.php included in advisory (thx peter & Dave_L) + - modified password for disabling bad_ips to be encrypted + - eliminate protector block + - modified only GET vars will be checked with "doubtful file spec" + +2.38 (2005/3/18) + - modified system of rollbacking .htaccess in DoS or CRAWLER + - updated Italian language files (thx Defkon1) + +2.37 (2005/3/9) + - fixed missing dbname quoting in prefix manager (thx king76) + - modified log level of Null-byte to 64 + +2.36 (2005/3/9) + - modified the pattern of bad_ext + +2.35 (2005/3/5) + - updated myblocksadmin 0.27 & mymenu 0.12 + - added a logging level + - added an option for disabling whole of Protector for debugging (thx Dave_L) + - updated Traditional Chinese language files (thx Kikuchi) + - updated French language files (thx HEMON) 2.35a + - updated Brazilian Portuguese & Spanish language files (thx Yuji) 2.35a + +2.34 (2005/2/18) + - fixed a typo in protecting session hijacking (thx blues) + - modified messages on forced exiting against specifical features (thx suin) + - added an option of 'Deny by .htaccess' against DoS experimentaly + +2.33 (2005/2/11) + - modified the action when '../../' found (thx mayor) + - modified IP check disabled with XoopsGTicket + +2.32 (2005/2/1) + - modified enabling "MySQL/Blocks debug" with strict checking (thx jseymour) + +2.31 (2005/1/30) + - fixed recognization of root controllers (thx nobunobu) + - modified compatibility with IIS (thx okuhiki) + - updated French language files (thx HMN) (2.31a) + - added German language files (thx Rene) (2.31b) + +2.30 release (2005/1/30) + - modified some default values of configs. + - updated Italian language files (thx Defkon1) + - updated Brazilian Portuguese & Spanish language files (thx Yuji) + - added Dutch language files (thx Dirk Louwers) + +2.30RC5 (2005/1/22) + - fixed some non-harmful typos + - updated Italian language files (thx Defkon1) + +2.30RC4 (2005/1/21) + - fixed postcheck.inc.php with $xoopsConfig['nocommon'] (thx dendeke) + +2.30RC3 (2005/1/21) + - modified anti null-byte from die to sanitize + - modified prefix manager a little + - added French language files (thx HMN) + - added Italian language files (thx Defkon1) + +2.30RC2 (2005/1/20) + - fixed prefix manager + +2.30RC (2005/1/19) + - added prefix manager + - added 2.0.9.2 specific patches (Special thx to zx team!) + - added checker against null-byte attack + - modified doubtful file specifications (thx minahito) + - added anti session hi-jacking + - added include/postcheck.inc.php (Notice: mainfile.php should be rewritten) + - modified options about contami & SQL Injections + +2.22 (2005/1/4) (not so important fixes) + - fixed a typo in check_dos_attack_* (thx Mithrandir) + - modified with REQUEST_URI for IIS + - updated myblocksadmin 0.22 & mymenu 0.07 + +2.21 (2004/12/31) + - fixed a missing pattern with contami checking (thx onokazu) + +2.20 (2004/12/27) + - fixed a missing pattern with contami checking (thx JM2) + - fixed typo missing global for HTTP_*_VARS + - added logging doubtful file spec + - updated Brazilian Portuguese & Spanish language files (thx Marcelo Yuji Himoro) + - updated traditional Chinese language files (thx Kikuchi) + +2.20RC3 (2004/12/18) + - added "Patch doubtful file specifications" (thx JM2) + - added Spanish language files (thx Marcelo Yuji Himoro) + +2.20RC2 (2004/12/16) + - updated myblocksadmin (0.12) & mymenu (0.06) + - modified Brazilian Portuguese language files (thx Marcelo Yuji Himoro) + +2.20RC (2004/12/15) + - modified to use $_GET or $_POST instead of $HTTP_*_VARS (for PHP5) + - added a feature to rescue + - added to store user_agent + - modified Anti-DoS routine radically + - added each settings of "F5 attacks" and "high load crawlers" + - fixed not to "Force intval" against array + - modified a pattern finding UNION + +2.11 (2004/9/30) + - fixed some typos + +2.10a (2004/9/27) + - modified Brazilian Portuguese language files (thx Marcelo Yuji Himoro) + +2.10 (2004/9/22) + - added checker to uploaded files + - added security advisory + - modified as selectable whether sanitizing or not against SQL Injections + - fixed short tags (thx t_miyabi) + - added traditional Chinese language files (thx Kikuchi) + +2.01 (2004/9/11) + - added some checks of contamination to some super globals + - modified Brazilian Portuguese language files (thx Marcelo Yuji Himoro) + +2.0 (2004/9/10) + - The 1st release as Xoops Protector. + + + +[/xlang:en][xlang:ja] + +\xA1\xFC\xCAѹ\xB9\xCD\xFA\xCE\xF2 + +3.0\xB0ʹߤˤĤ\xA4\xA4Ƥ\xCFREADME\xC6\xE2\xA4˰\xDCư + +2.57 (2006/07/17) +- \xA5ץ\xEC\xA5ե\xA3\xA5å\xAF\xA5\xB9\xA5ޥ͡\xBC\xA5\xB8\xA5\xE3\xA4ΥХå\xAF\xA5\xA2\xA5åפ\xC7BLOB\xA4ν\xE8\xCD\x{64B24AA4}\xAB\xA4\xB7\xA4\xAB\xA4ä\xBF\xA4Τ\xF2\xBD\xA4\xC0\xB5 (thx fbs777) +- \xA4\xA4\xA4\xAF\xA4Ĥ\xAB\xBDФƤ\xA4\xA4\xEBNotice\xA4\xF2\xBD\xA4\xC0\xB5 +- gticket2 \xA4˹\xB9\xBF\xB7 +- onInstall\xBD\xE8\xCD\xFD\xA4\xF2\xA4\xE4\xA4 (2.57a) + +2.56 (2006/03/30) +- \xA5\xB3\xA5\xF3\xA5ե\xA3\xA5\xB0\xA4\xAC\xBC\xE8\xA4\xEC\xA4ʤ\xA4\xA4Ȥ\xAD\xA4Υ\xA8\xA5顼\xBD\xE8\xCD\xFD\xA4\xF2\xB6\xAF\xC0\xA9\xBD\xAAλ\xA4\xCB\xCAѹ\xB9\xA4\xB7\xA4\xBF +- common.php\xA4\xF2\xC6ɤ߹\xFE\xA4ޤʤ\xA4\xA5⥸\xA5塼\xA5\xEB\xA4ˤĤ\xA4\xA4Ƥ⡢DOS/CRAWLER\xBD\xE8\xCD\xFD\xA4ˤ\xAB\xA4\xAB\xA4\xE9\xA4ʤ\xA4\xC0\xDF\xC4\xEA\xA4\xF2ͭ\xB8\xFA\xA4ˤ\xB7\xA4\xBF + +2.55 (2006/02/11) +- ʣ\xBF\xF4\xA4\xCE.\xA4\xAC¸\xBAߤ\xB9\xA4\xEB\xA5ե\xA1\xA5\xA4\xA5\xEB\xA4Ǥ⡢.tar.gz\xA4\xC0\xA4\xB1\xA4\xCF\xC4̤\xB9\xA4褦\xA4˽\xA4\xC0\xB5 (thx gusagi) +- mymenu\xA4ˤ\xAA\xA4\xB1\xA4\xEBXoopsCube 2.1\xA4Ȥθߴ\xB9\xC0\xAD\xCC\xE4\xC2\xEA\xB2\xF2\xBE\xC3 +- \xA5\xB9\xA5ڥ\xA4\xA5\xF3\xB8\xEC\xA5ե\xA1\xA5\xA4\xA5빹\xBF\xB7 (thx bezoops) + +2.54 (2005/12/08) +- PREFIX\xA5ޥ͡\xBC\xA5\xB8\xA5\xE3\xA4\xCBPREFIX\xCB\xE8\xA4ΥХå\xAF\xA5\xA2\xA5å\xA1ǽ\xA4\xF2\xA4Ĥ\xB1\xA4\xBF (\xA4ޤ\xC0\xBC¸\xB3\xC3ʳ\xAC\xA4Ǥ\xB9!) +- ʣ\xBF\xF4\xA4\xCE.\xA4\xAC¸\xBAߤ\xB9\xA4\xEB\xA5ե\xA1\xA5\xA4\xA5\xEB\xA4åץ\x{D87C}\xA5ɽ\xD0\xCD\xE8\xA4ʤ\xA4\xA4褦\xA4\xCB\xCAѹ\xB9 (Apache\xA4λ\xC5\xCD\xCD\xC2к\xF6) +- \xA5֥饸\xA5\xEB\xA5ݥ\xEB\xA5ȥ\xAC\xA5\xEB\xB8\xEC\xA5ե\xA1\xA5\xA4\xA5\xEB\xA4ι\xB9\xBF\xB7 (thx Izzy) +- \xB5\xB6\xC1\xF5\xB2\xE8\xC1\xFC\xA5ե\xA1\xA5\xA4\xA5\xEB\xA5\xC1\xA5\xA7\xA5å\xAB\xA1\xBC\xA4\xACopen_basedir\xC0\xA9\xB8¤ˤҤä\xAB\xA4\xAB\xA4äƤ\xA4\xA4\xBF\xA4Τ\xF2\xBD\xA4\xC0\xB5 (thx stefan88) - 2.54a +- \xB3Ƽ\xEF\xC0\xDF\xC4\xEA\xA4ν\xE9\xB4\xFC\xC3ͤ\xAF\xA4Ĥ\xAB... [truncated message content] |
From: <wis...@us...> - 2008-09-30 02:02:03
|
Revision: 2200 http://xoops.svn.sourceforge.net/xoops/?rev=2200&view=rev Author: wishcraft Date: 2008-09-30 02:01:48 +0000 (Tue, 30 Sep 2008) Log Message: ----------- X-Center 1.09 - Article Management Content Module with XML Powered Block Added Paths: ----------- XoopsModules/xcenter/ XoopsModules/xcenter/releases/ XoopsModules/xcenter/releases/1.09/ XoopsModules/xcenter/releases/1.09/X-Center Wiki.url XoopsModules/xcenter/releases/1.09/license.txt XoopsModules/xcenter/releases/1.09/modules/ XoopsModules/xcenter/releases/1.09/modules/xcenter/ XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/ XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/admin_header.php XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/index.php XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/menu.php XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/xcenter_xml_spec_1.10.xml XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/xcenter_xml_spec_1.11.xml XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/ XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/index.html XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/xcenter_dhtml_sitenavigation.php XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/xcenter_navigation.php XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/xcenter_sitenavigation.php XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/xcenter_xml_block.php XoopsModules/xcenter/releases/1.09/modules/xcenter/class/ XoopsModules/xcenter/releases/1.09/modules/xcenter/class/mblock.php XoopsModules/xcenter/releases/1.09/modules/xcenter/class/xcenter.php XoopsModules/xcenter/releases/1.09/modules/xcenter/class/xcenter_ct_xml_pharse.php XoopsModules/xcenter/releases/1.09/modules/xcenter/class/xml2array.php XoopsModules/xcenter/releases/1.09/modules/xcenter/comment_delete.php XoopsModules/xcenter/releases/1.09/modules/xcenter/comment_edit.php XoopsModules/xcenter/releases/1.09/modules/xcenter/comment_new.php XoopsModules/xcenter/releases/1.09/modules/xcenter/comment_post.php XoopsModules/xcenter/releases/1.09/modules/xcenter/comment_reply.php XoopsModules/xcenter/releases/1.09/modules/xcenter/csshover.htc XoopsModules/xcenter/releases/1.09/modules/xcenter/htaccess.txt XoopsModules/xcenter/releases/1.09/modules/xcenter/images/ XoopsModules/xcenter/releases/1.09/modules/xcenter/images/add.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/bgmenu.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/edit.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/email.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/friend.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/logo.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/ XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/d_tree_close.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/d_tree_content.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/d_tree_home.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/index.html XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/minus.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/plus.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/pointer.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/tree_close.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/tree_content.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/tree_home.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/menu/tree_open.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/print.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/seta_direita.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/tridown.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/trileft.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/images/xcenter.gif XoopsModules/xcenter/releases/1.09/modules/xcenter/include/ XoopsModules/xcenter/releases/1.09/modules/xcenter/include/form.inc.php XoopsModules/xcenter/releases/1.09/modules/xcenter/include/form.order.inc.php XoopsModules/xcenter/releases/1.09/modules/xcenter/include/form.show.inc.php XoopsModules/xcenter/releases/1.09/modules/xcenter/include/form.tracker.inc.php XoopsModules/xcenter/releases/1.09/modules/xcenter/include/rss.php XoopsModules/xcenter/releases/1.09/modules/xcenter/include/search.inc.php XoopsModules/xcenter/releases/1.09/modules/xcenter/include/sitemap.php XoopsModules/xcenter/releases/1.09/modules/xcenter/index.php XoopsModules/xcenter/releases/1.09/modules/xcenter/language/ XoopsModules/xcenter/releases/1.09/modules/xcenter/language/english/ XoopsModules/xcenter/releases/1.09/modules/xcenter/language/english/admin.php XoopsModules/xcenter/releases/1.09/modules/xcenter/language/english/blocks.php XoopsModules/xcenter/releases/1.09/modules/xcenter/language/english/main.php XoopsModules/xcenter/releases/1.09/modules/xcenter/language/english/modinfo.php XoopsModules/xcenter/releases/1.09/modules/xcenter/print.php XoopsModules/xcenter/releases/1.09/modules/xcenter/readme.txt XoopsModules/xcenter/releases/1.09/modules/xcenter/sql/ XoopsModules/xcenter/releases/1.09/modules/xcenter/sql/index.html XoopsModules/xcenter/releases/1.09/modules/xcenter/sql/mysql.sql XoopsModules/xcenter/releases/1.09/modules/xcenter/templates/ XoopsModules/xcenter/releases/1.09/modules/xcenter/templates/blocks/ XoopsModules/xcenter/releases/1.09/modules/xcenter/templates/blocks/index.html XoopsModules/xcenter/releases/1.09/modules/xcenter/templates/blocks/xcenter_dhtml_site_nav_block.html XoopsModules/xcenter/releases/1.09/modules/xcenter/templates/blocks/xcenter_nav_block.html XoopsModules/xcenter/releases/1.09/modules/xcenter/templates/blocks/xcenter_site_nav_block.html XoopsModules/xcenter/releases/1.09/modules/xcenter/templates/blocks/xcenter_xml_block.html XoopsModules/xcenter/releases/1.09/modules/xcenter/templates/index.html XoopsModules/xcenter/releases/1.09/modules/xcenter/templates/xcenter_index.html XoopsModules/xcenter/releases/1.09/modules/xcenter/test.php XoopsModules/xcenter/releases/1.09/modules/xcenter/xoops_version.php Added: XoopsModules/xcenter/releases/1.09/X-Center Wiki.url =================================================================== --- XoopsModules/xcenter/releases/1.09/X-Center Wiki.url (rev 0) +++ XoopsModules/xcenter/releases/1.09/X-Center Wiki.url 2008-09-30 02:01:48 UTC (rev 2200) @@ -0,0 +1,7 @@ +[InternetShortcut] +URL=http://www.xoops.org/modules/mediawiki/index.php/X_Center +IDList= +IconFile=http://www.xoops.org/themes/zetagenesis/icons/favicon.ico +IconIndex=1 +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 Added: XoopsModules/xcenter/releases/1.09/license.txt =================================================================== --- XoopsModules/xcenter/releases/1.09/license.txt (rev 0) +++ XoopsModules/xcenter/releases/1.09/license.txt 2008-09-30 02:01:48 UTC (rev 2200) @@ -0,0 +1,88 @@ +GNU GENERAL PUBLIC LICENSE Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification follow. + +GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: + +a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. + +b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. + +c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. + +3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: + +a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + +b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + +c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. + +If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + Added: XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/admin_header.php =================================================================== --- XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/admin_header.php (rev 0) +++ XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/admin_header.php 2008-09-30 02:01:48 UTC (rev 2200) @@ -0,0 +1,70 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (aka wishcraft) // +// Site: http://www.chronolabs.org.au // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +include_once "../../../mainfile.php"; + +include_once XOOPS_ROOT_PATH."/class/xoopsmodule.php"; +include_once XOOPS_ROOT_PATH."/include/cp_functions.php"; +include_once XOOPS_ROOT_PATH."/include/xoopscodes.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; + +include '../../../include/cp_header.php'; + +if ( file_exists("../language/".$xoopsConfig['language']."/modinfo.php") ) { + include("../language/".$xoopsConfig['language']."/modinfo.php"); +} else { + include("../language/english/modinfo.php"); +} + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname(_CXM_DIR_NAME); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/", 3, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/", 3, _NOPERM); + exit(); +} + +global $xoops_modules; +$xoops_modules = array(); + +$modules['xforum'] = XoopsModule::getByDirname('xforum'); +$modules['xtorrent'] = XoopsModule::getByDirname('xtorrent'); +$modules['xreaggregator'] = XoopsModule::getByDirname('xreaggregator'); +$modules['newbb'] = XoopsModule::getByDirname('newbb'); +$modules['smartsection'] = XoopsModule::getByDirname('smartsection'); +$modules['smartpartner'] = XoopsModule::getByDirname('smartpartner'); +$modules['news'] = XoopsModule::getByDirname('news'); +$modules['myalbum'] = XoopsModule::getByDirname('myalbum'); + + +?> \ No newline at end of file Added: XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/index.php =================================================================== --- XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/index.php (rev 0) +++ XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/index.php 2008-09-30 02:01:48 UTC (rev 2200) @@ -0,0 +1,449 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (aka wishcraft) // +// Site: http://www.chronolabs.org.au // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // +include_once "admin_header.php"; +error_reporting(0); + +if (isset($HTTP_GET_VARS)) { + foreach ($HTTP_GET_VARS as $k => $v) { + $$k = $v; + } + } + + if (isset($HTTP_POST_VARS)) { + foreach ($HTTP_POST_VARS as $k => $v) { + $$k = $v; + } + } + +$xcenter_handler =& xoops_getmodulehandler(_CXM_XCENTER_PREFIX, _CXM_XCENTER_PREFIX); + +if ($center_id!=0) +{ + $xcenter = &$xcenter_handler->get($center_id); +} else { + $xcenter = &$xcenter_handler->create(); +} + + function subcategories($category_id) { + global $xoopsDB; + $child_category_query = $xoopsDB->query("select count(*) as count from " . $xoopsDB->prefix(_CXM_XCENTER_PREFIX) . " where parent_id = '" . (int)$category_id . "'"); + $child_category = $xoopsDB->fetchArray($child_category_query); + + if ($child_category['count'] > 0) { + return true; + } else { + return false; + } + } + + function cat_principal($category_id) { + global $xoopsDB; + $child_category_query = $xoopsDB->query("select count(*) as count from " . $xoopsDB->prefix(_CXM_XCENTER_PREFIX) . " where center_id = '" . (int)$category_id . "' and parent_id='0'"); + $child_category = $xoopsDB->fetchArray($child_category_query); + + if ($child_category['count'] > 0) { + return true; + } else { + return false; + } + } + + function parents_menus($current_parent,$menustr,$catstr,$level) { + global $xoopsDB; + $mnuas[0] = _C_MAINMENU; + $haschildren = 0; + $cat_principal = 0; + $category_query_catmenu = $xoopsDB->query("select center_id, parent_id, title from ".$xoopsDB->prefix(_CXM_XCENTER_PREFIX)." where parent_id = " . $current_parent . " order by weight, center_id"); + while ($category = $xoopsDB->fetchArray($category_query_catmenu)) { + + $haschildren=subcategories($category['center_id']); + $category['title'] = str_repeat("->", $level).$category['title']; + + if ($haschildren) { + $menu_tmp = $category['title']; + $cat_tmp = $category['center_id']; + $mnuas[$category['center_id']] = $menu_tmp; + $mnuas2 = parents_menus($category['center_id'],'','', $level + 1); + foreach ($mnuas2 as $k => $v) { + $mnuas[$k] = " ".$v; + } + } else { + $mnuas[$category['center_id']] = $category['title']; + } + } + return $mnuas; + } + + function checkBrowser() { + global $HTTP_SERVER_VARS; + $browser = $HTTP_SERVER_VARS['HTTP_USER_AGENT']; + if (eregi("MSIE[^;]*",$browser,$msie)) { + if (eregi("[0-9]+\.[0-9]+",$msie[0],$version)) { + if ((float)$version[0]>=5.5) { + if (!eregi("opera",$browser)) { + return true; + } + } + } + } + return false; + } + +// ------------------------------------------------------------------------- // +// Switch Statement for the different operations // +// ------------------------------------------------------------------------- // +$xoopsDB =& Database::getInstance(); + +$form = new XoopsThemeForm($heading, "op", xoops_getenv('PHP_SELF')."?op=$op"); +$form->setExtra('enctype="multipart/form-data"'); + +switch ($formaction) +{ + case "submit_order": + for ( $j = 1; $j <= $HTTP_POST_VARS['total']; $j++) { + if ($HTTP_POST_VARS['type'.$j] == "module"){ + if ( !$result = $xoopsDB->query("UPDATE ".$xoopsDB->prefix('modules')." SET weight = '".$HTTP_POST_VARS['priority'.$j]."' WHERE mid = '".$HTTP_POST_VARS['id'.$j]."'") ) { + echo _C_ERRORINSERT; + } + //echo "UPDATE ".$xoopsDB->prefix('modules')." SET weight = '".$HTTP_POST_VARS['priority'.$j]."' WHERE mid = '".$HTTP_POST_VARS['id'.$j]."'<br>\n"; + } elseif ($HTTP_POST_VARS['type'.$j] == _CXM_XCENTER_PREFIX) { + if ( !$result = $xoopsDB->query("UPDATE ".$xoopsDB->prefix(_CXM_XCENTER_PREFIX)." SET weight = '".$HTTP_POST_VARS['priority'.$j]."' WHERE center_id = '".$HTTP_POST_VARS['id'.$j]."'") ) { + echo _C_ERRORINSERT; + } + //echo "UPDATE ".$xoopsDB->prefix(_CXM_XCENTER_PREFIX)." SET weight = '".$HTTP_POST_VARS['priority'.$j]."' WHERE center_id = '".$HTTP_POST_VARS['id'.$j]."'<br>\n"; + } + } + redirect_header("index.php?op=order",2,_C_DBUPDATED); + exit; + + case "submit_edit": + case "submit_submit": + error_reporting(0); + $xcenter->setVar('center_id',$center_id); + $xcenter->setVar('parent_id',$parent_id); + $xcenter->setVar('weight',$weight); + $xcenter->setVar('title',$title); + $xcenter->setVar('summary',$summary); + $breaks = array("<br />", "<br/>", "<br>"); + $xcenter->setVar('text',str_replace($breaks,"\n",$text)); + $xcenter->setVar('visible',$visible); + if ($xcenter_handler->getCount()<2) + { + $xcenter->setVar('homepage',1); + } else { + $xcenter->setVar('homepage',$homepage); + } + + $xcenter->setVar('keywords',$keywords); + + $nohtml = !$nohtml?0:1; + $nosmiley = !$nosmiley?0:1; + $nobreaks = !$nobreaks?0:1; + $nocomments = !$nocomments?0:1; + $anonymous = !$anonymous?0:1; + + $xcenter->setVar('anonymous',$anonymous); + $xcenter->setVar('nohtml',$nohtml); + $xcenter->setVar('nosmiley',$nosmiley); + $xcenter->setVar('nobreaks',$nobreaks); + $xcenter->setVar('nocomments',$nocomments); + $xcenter->setVar('address',$address); + $xcenter->setVar('submenu',$submenu); + + $file_content = file_get_contents($xcenter->getVar('address')); + if (strlen($file_content)>0&&$xcenter->getVar('address')!="http://") + { + $xcenter->setVar('link','1'); + } else { + $xcenter->setVar('link','0'); + } + $xcenter_handler->insert($xcenter, true); + + $xcenter_handler->deleteCenterPermissions($xcenter->getVar('center_id'), 'view'); + $xcenter_handler->deleteCenterPermissions($xcenter->getVar('center_id'), 'edit'); + $xcenter_handler->deleteCenterPermissions($xcenter->getVar('center_id'), 'delete'); + + $perm .= $xcenter_handler->insertCenterPermissions($xcenter->getVar('center_id'), $group_view, 'view'); + $perm .= "<br />".$xcenter_handler->insertCenterPermissions($xcenter->getVar('center_id'), $group_edit, 'edit'); + $perm .= "<br />".$xcenter_handler->insertCenterPermissions($xcenter->getVar('center_id'), $group_delete, 'delete'); + + if ($return == 1) { + redirect_header(XOOPS_URL."/modules/"._CXM_DIR_NAME."/index.php?center_id=".$xcenter->getVar('center_id'),2,_C_DBUPDATED."<br />".$perm); + exit; + }else{ + redirect_header("index.php?op=show",2,_C_DBUPDATED."<br />".$perm); + exit; + } + + redirect_header("index.php",2,_C_DBUPDATED); + exit; + break; + + case "submit_show": + error_reporting(0); + + for ($y=1; $y==$total; $y++) + { + $xcenter = &$xcenter_handler->get($xcenter_id[$y]); + if ($center_id[$y]!=$parent_id[$y]) + $xcenter->setVar('parent_id',$parent_id[$y]); + + $xcenter->setVar('weight',!$weight[$y]?0:1); + $xcenter->setVar('visible',!$visible[$y]?0:1); + $xcenter->setVar('homepage',!$homepage[$y]?0:1); + $xcenter->setVar('nocomments',!$nocomments[$y]?0:1); + $xcenter->setVar('submenu',!$submenu[$y]?0:1); + $xcenter_handler->insert($xcenter, true); + } + redirect_header("index.php?op=show",2,_C_DBUPDATED); + exit; + break; + + case "submit_tracking": + + $mblock_handler =& xoops_getmodulehandler('mblock', _CXM_XCENTER_PREFIX); + if ($id!=0&&!empty($id)) + { + $mblock = &$mblock_handler->get($id); + } else { + $mblock = &$mblock_handler->create(); + } + + $mblock->setVar('id',$id); + $mblock->setVar('center_id',$center_id); + $mblock->setVar('mod_id',$mod_id); + $mblock->setVar('summary',$summary); + $mblock->setVar('xml',$xml); + $mblock->setVar('bid',$bid); + + $mblock_handler->insert($mblock, true); + + redirect_header("index.php?op=show",2,_C_DBUPDATED); + exit; + break; + +} + + + +switch ($op) { +case "show": + global $xoopsDB; + xoops_cp_header(); + + $criteria = new Criteria("1", 1); + $criteria->setSort("parent_id, weight"); + + $obj_xcenter = $xcenter_handler->getObjects($criteria); + + echo "<h3>"._C_ADMINTITLE."</h3>"; + + if (isset($obj_xcenter)) + { + + require('../include/form.show.inc.php'); + $form->display(); + + } else { + redirect_header(XOOPS_URL."/modules/"._CXM_DIR_NAME."/index.php?op=submit",2,_C_NEEDSUBMIT); + } + + xoops_cp_footer(); + break; + +case "tracking": + global $xoopsDB; + error_reporting(E_ALL); + + $mblock_handler =& xoops_getmodulehandler('mblock', _CXM_XCENTER_PREFIX); + + if ($id!=0) + { + $mblock = &$mblock_handler->get($id); + } else { + + $criteria = new CriteriaCompo(new Criteria('center_id', $center_id)); + $criteria->add(new Criteria('mod_id', $mod_id)); + + $mblocks =& $mblock_handler->getObjects($criteria); + + if (isset($mblocks[0])) + { + $id = $mblocks[0]->getVar('id'); + $center_id = $mblocks[0]->getVar('center_id'); + $mod_id = $mblocks[0]->getVar('mod_id'); + $summary= $mblocks[0]->getVar('summary'); + $xml = str_replace(array("<br>","<br/>","<br />"),"\n",$mblocks[0]->getVar('xml')); + $bid = $mblocks[0]->getVar('bid'); + + } + else + { + $mblock = &$xcenter_handler->create(); + if ($_GET['mod_id']) + $mod_id = $_GET['mod_id']; + } + } + + xoops_cp_header(); + + echo "<h3>"._C_ADMINTITLE."</h3>"; + + + require('../include/form.tracker.inc.php'); + $form->display(); + + xoops_cp_footer(); + break; + +case "order": + global $xoopsDB; + + + xoops_cp_header(); + + echo "<h3>"._C_ADMINTITLE."</h3>"; + + require('../include/form.order.inc.php'); + $form->display(); + + xoops_cp_footer(); + break; + +case "submit": + global $xoopsDB; + + + xoops_cp_header(); + + + echo "<h3>"._C_ADMINTITLE."</h3>"; + if (isset($xcenter)) + { + + require('../include/form.inc.php'); + $form->display(); + + } else { + redirect_header(XOOPS_URL."/modules/"._CXM_DIR_NAME."/index.php?op=submit",2,_C_NEEDSUBMIT); + } + + xoops_cp_footer(); + break; + +case "edit": + global $xoopsDB; + xoops_cp_header(); + + echo "<h3>"._C_ADMINTITLE." - Edit - ".$xcenter->getVar('title')."</h3>"; + echo "<span>".$xcenter->getVar('summary')."</span>"; + + if (isset($xcenter)) + { + $perm = $xcenter_handler->getSingleCenterPermission($xcenter->getVar('center_id'), 'edit'); + if (!$perm) { + redirect_header("index.php?op=show",1,_NOPERM); + } + + require('../include/form.inc.php'); + $form->display(); + + } else { + redirect_header(XOOPS_URL."/modules/"._CXM_DIR_NAME."/index.php?op=submit",2,_C_NEEDSUBMIT); + } + + xoops_cp_footer(); + break; + +case "upload": + + $uploadpath=XOOPS_ROOT_PATH."/uploads/".$xoopsModulesConfig['uploadpath']."/"; + $source=$_FILES[fileupload][tmp_name]; + $fileupload_name=$_FILES[fileupload][name]; + if ( ($source != 'none') && ($source != '' )) { + $dest=$uploadpath.$fileupload_name; + if(file_exists($uploadpath.$fileupload_name)) { + redirect_header("index.php",2,_C_ERRORUPL); + } else { + if (copy($source, $dest)) { + redirect_header("index.php",2,_C_UPLOADED); + } else { + redirect_header("index.php",2,_C_ERRORUPL); + } + unlink ($source); + } + } + + break; + +case "delete": + + $perm = $xcenter_handler->getSingleCenterPermission($xcenter->getVar('center_id'), 'delete'); + if (!$perm) { + redirect_header("index.php?op=show",1,_NOPERM); + } + + xoops_cp_header(); + xoops_confirm(array('id' => intval($xcenter->getVar('center_id')), 'op' => 'deleteit'), 'index.php', _C_RUSUREDEL, _YES); + xoops_cp_footer(); + break; + +case "deleteit": + global $xoopsDB; + + $perm = $xcenter_handler->getSingleCenterPermission($xcenter->getVar('center_id'), 'delete'); + if (!$perm) { + redirect_header("index.php?op=show",1,_NOPERM); + } + + $result=$xoopsDB->query("DELETE FROM ".$xoopsDB->prefix(_CXM_XCENTER_PREFIX)." WHERE center_id=".intval($xcenter->getVar('center_id'))); + xoops_comment_delete($xoopsModule->getVar('mid'), $xcenter->getVar('center_id')); + redirect_header("index.php?op=show",1,_C_DBUPDATED); + break; + +default: + xoops_cp_header(); + echo "<h4>"._C_ADMINTITLE."</h4><table width='100%' border='0' cellspacing='1' class='outer'>"; + echo "<tr><td class='odd'> - <b><a href='index.php?op=submit'>"._C_MD_ADMENU1."</a></b>"; + echo "<br /><br />"; + echo " - <b><a href='index.php?op=nlink'>"._C_MD_ADMENU2."</a></b>"; + echo "<br /><br />"; + echo " - <b><a href='index.php?op=show'>"._C_MD_ADMENU3."</a></b>"; + echo "<br /><br />"; + echo " - <b><a href='order_menu.php'>"._C_MD_ADMENU4."</a></b>"; + echo "<br /><br />"; + echo " - <b><a href='migrate.php'>"._C_MD_ADMENU4."</a></b>"; + echo "<br /><br />"; + echo "- <b><a href='".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar('mid') ."'>"._PREFERENCES."</a></b></td></tr></table>"; + + xoops_cp_footer(); + break; +} +?> Added: XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/menu.php =================================================================== --- XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/menu.php (rev 0) +++ XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/menu.php 2008-09-30 02:01:48 UTC (rev 2200) @@ -0,0 +1,39 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (aka wishcraft) // +// Site: http://www.chronolabs.org.au // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +$adminmenu[1]['title'] = _C_MD_ADMENU1; +$adminmenu[1]['link'] = "admin/index.php?op=submit"; +$adminmenu[2]['title'] = _C_MD_ADMENU2; +$adminmenu[2]['link'] = "admin/index.php?op=show"; +$adminmenu[3]['title'] = _C_MD_ADMENU3; +$adminmenu[3]['link'] = "admin/index.php?op=order"; +$adminmenu[4]['title'] = _C_MD_ADMENU4; +$adminmenu[4]['link'] = "admin/index.php?op=tracking"; +?> \ No newline at end of file Added: XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/xcenter_xml_spec_1.10.xml =================================================================== --- XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/xcenter_xml_spec_1.10.xml (rev 0) +++ XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/xcenter_xml_spec_1.10.xml 2008-09-30 02:01:48 UTC (rev 2200) @@ -0,0 +1,200 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (aka wishcraft) // +// Site: http://www.chronolabs.org.au // +// Project: The XOOPS Project // +// Document: XML CT 1.10 (X-Center Blocking Module) // +// ------------------------------------------------------------------------- // +--> + +<!-- Version 1.10 XML Block Document --> +<xcenter_ct version="1.10"> + <version>1.10</version> + <module>dirname</module> + <module_ver>x.xx</module_ver> + <keywords>TRUE</keywords> + <database> + <tables> + <details> + <name>tablename</name> + <alias>a</alias> + </details> + <details> + <name>tablename</name> + <alias>b</alias> + </details> + </tables> + <joins> + <join> + <ons> + <on> + <field> + <field>field_a</field> + <alias>a</alias> + </field> + <field> + <field>field_b</field> + <alias>a</alias> + </field> + <condition>=</condition> + <next_on>AND</next_on> + </on> + </ons> + <prev_join> + <alias></alias> + </prev_join> + <tables> + <table> + <name>tablename</name> + <alias>a</alias> + </table> + <table> + <name>tablename</name> + <alias>b</alias> + </table> + </tables> + <type>INNER JOIN</type> + <alias>a</alias> + </join> + <join> + <ons> + <on> + <field> + <field>field_e</field> + <alias>b</alias> + </field> + <field> + <field>field_r</field> + <alias>a</alias> + </field> + <condition>=</condition> + <next_on>AND</next_on> + </on> + </ons> + <prev_join> + <alias>a</alias> + </prev_join> + <tables> + <table> + <name>tablename_c</name> + <alias>c</alias> + </table> + </tables> + <type>INNER JOIN</type> + <alias>a</alias> + </join> + </joins> + <fields> + <field>*</field> + </fields> + <where> + <field> + <name>field_a</name> + <alias>a</alias> + <condition>IN ({keyword_array})</condition> + <prev_clause>AND</prev_clause> + </field> + <field> + <name>field_b</name> + <alias>b</alias> + <condition>LIKE {keyword_segment}</condition> + <totality>OR</totality> + <prev_clause>OR</prev_clause> + </field> + </where> + <orders> + <field> + <name>a.field</name> + <order>ASC</order> + </field> + </orders> + <having> + <field> + <name>field_a</name> + <alias>a</alias> + <condition>IN ({keyword_array})</condition> + <prev_clause>AND</prev_clause> + </field> + <field> + <name>field_b</name> + <alias>b</alias> + <condition>LIKE {keyword_segment}</condition> + <totality>OR</totality> + <prev_clause>OR</prev_clause> + </field> + </having> + <limit>0,10</limit> + </database> + + <!-- Version 1.11 Textual Block Document --> + <block> + <type>TEXTUAL</type> + <link>{XOOPS_URL}/module/thatmodule/file.php?foo={field_e}&bar={field_f}</link> + <component> + <field>field_a</field> + <type>title</type> + </component> + <component> + <field>field_b</field> + <type>summary</type> + </component> + <component> + <field>field_c</field> + <type>content</type> + </component> + <component> + <fields> + <field>field_d</field> + </fields> + <src>{XOOPS_URL}/uploads/sourcepath/{field_d}</src> + <type>image</type> + </component> + </block> + + <!-- Version 1.11 Image Block Document --> + <block> + <type>IMAGE</type> + <link>{XOOPS_URL}/module/thatmodule/file.php?foo={field_d}&bar={field_b}</link> + <src>{XOOPS_URL}/uploads/sourcepath/{field_b}</src> + <optional> + <width>10px</width> + <height>10px</height> + <alt>Blah Blah</alt> + </optional> + <component> + <field>field_a</field> + <type>alt_text</type> + </component> + <component> + <field>field_b</field> + <type>image_url</type> + </component> + </block> + +</xcenter_ct> + Added: XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/xcenter_xml_spec_1.11.xml =================================================================== --- XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/xcenter_xml_spec_1.11.xml (rev 0) +++ XoopsModules/xcenter/releases/1.09/modules/xcenter/admin/xcenter_xml_spec_1.11.xml 2008-09-30 02:01:48 UTC (rev 2200) @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (aka wishcraft) // +// Site: http://www.chronolabs.org.au // +// Project: The XOOPS Project // +// Document: XML CT 1.11 (X-Center Blocking Module) // +// ------------------------------------------------------------------------- // +--> +<!-- Version 1.11 XML Block Document --> +<xcenter_ct version="1.11"> + <version>1.11</version> + <module>dirname</module> + <module_ver>x.xx</module_ver> + + <sql>{SELECT * FROM ...}</sql> + + <!-- Version 1.11 Textual Block Document --> + <block> + <type>TEXTUAL</type> + <link>{XOOPS_URL}/module/thatmodule/file.php?foo={field_e}&bar={field_f}</link> + <component> + <field>field_a</field> + <type>title</type> + </component> + <component> + <field>field_b</field> + <type>summary</type> + </component> + <component> + <field>field_c</field> + <type>content</type> + </component> + <component> + <fields> + <field>field_d</field> + </fields> + <src>{XOOPS_URL}/uploads/sourcepath/{field_d}</src> + <type>image</type> + </component> + </block> + + <!-- Version 1.11 Image Block Document --> + <block> + <type>IMAGE</type> + <link>{XOOPS_URL}/module/thatmodule/file.php?foo={field_d}&bar={field_b}</link> + <src>{XOOPS_URL}/uploads/sourcepath/{field_b}</src> + <optional> + <width>10px</width> + <height>10px</height> + <alt>Blah Blah</alt> + </optional> + <component> + <field>field_a</field> + <type>alt_text</type> + </component> + <component> + <field>field_b</field> + <type>image_url</type> + </component> + </block> + +</xcenter_ct> Added: XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/index.html =================================================================== --- XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/index.html (rev 0) +++ XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/index.html 2008-09-30 02:01:48 UTC (rev 2200) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/xcenter_dhtml_sitenavigation.php =================================================================== --- XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/xcenter_dhtml_sitenavigation.php (rev 0) +++ XoopsModules/xcenter/releases/1.09/modules/xcenter/blocks/xcenter_dhtml_sitenavigation.php 2008-09-30 02:01:48 UTC (rev 2200) @@ -0,0 +1,143 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------- // +// Author: Simon Roberts (aka wishcraft) // +// Site: http://www.chronolabs.org.au // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +function site_block_dhtml_nav() { + global $xoopsDB, $xoopsModule, $xoopsTpl, $HTTP_GET_VARS, $xoopsUser, $xoopsConfig; + //Modules + $menuModule = array(); + $module_handler =& xoops_gethandler('module'); + $criteria = new CriteriaCompo(new Criteria('hasmain', 1)); + $criteria->add(new Criteria('weight', 0, '>')); + $criteria->add(new Criteria('isactive', 1)); + $modules =& $module_handler->getObjects($criteria, true); + $moduleperm_handler =& xoops_gethandler('groupperm'); + $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; + $read_allowed =& $moduleperm_handler->getItemIds('module_read', $groups); + foreach (array_keys($modules) as $i) { + if (in_array($i, $read_allowed)) { + $menuModule[$i]['title'] = $modules[$i]->getVar('name'); + $menuModule[$i]['url'] = XOOPS_URL."/modules/".$modules[$i]->getVar('dirname')."/"; + $menuModule[$i]['priority'] = $modules[$i]->getVar('weight'); + $menuModule[$i]['id'] = $modules[$i]->getVar('id'); + $menuModule[$i]['type'] = "module"; + $sublinks =& $modules[$i]->subLink(); + if (count($sublinks) > 0) { + foreach($sublinks as $sublink){ + $menuModule[$i]['sublinks'][] = array('title' => $sublink['name'], 'url' => XOOPS_URL.'/modules/'.$modules[$i]->getVar('dirname').'/'.$sublink['url']); + } + } else { + $menuModule[$i]['sublinks'] = array(); + } + } + } + + //xcenter + $result = $xoopsDB->query("SELECT *, weight AS priority, _CXM_XCENTER_PREFIX AS type FROM ".$xoopsDB->prefix(_CXM_XCENTER_PREFIX)." ORDER BY weight"); + $contentItems = array(); + while($tcontent = $xoopsDB->fetchArray($result)) { + $contentItems[] = $tcontent; + } + + $menu = array_merge($menuModule, return_children($contentItems, 0)); + + foreach ($menu as $key => $row) { + $priority[$key] = $row['priority']; + } + + array_multisort($priority, SORT_ASC, $menu); + $block = array(); + $block['ct_depth'] = 0; + $block['ct_menu'] = print_menu($menu, $contentItems, 0, $block['ct_depth']); + $block['cssul1'] = "div#menu ul ul"; + ... [truncated message content] |
From: <wis...@us...> - 2009-03-19 10:48:38
|
Revision: 3044 http://xoops.svn.sourceforge.net/xoops/?rev=3044&view=rev Author: wishcraft Date: 2009-03-19 10:48:26 +0000 (Thu, 19 Mar 2009) Log Message: ----------- * Multisite Module (for 2.3.x) - Control Panel finished * Payload (Preloader & Postloader to be implemented). * Installation tested on 2.3.3 Added Paths: ----------- XoopsModules/multisite/ XoopsModules/multisite/branches/ XoopsModules/multisite/releases/ XoopsModules/multisite/trunk/ XoopsModules/multisite/trunk/modules/ XoopsModules/multisite/trunk/modules/multisite/ XoopsModules/multisite/trunk/modules/multisite/admin/ XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/ XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/blockform.php XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/blocksadmin.php XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/index.html XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/main.php XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/xoops_version.php XoopsModules/multisite/trunk/modules/multisite/admin/domainsadmin/ XoopsModules/multisite/trunk/modules/multisite/admin/domainsadmin/domainsadmin.php XoopsModules/multisite/trunk/modules/multisite/admin/domainsadmin/index.html XoopsModules/multisite/trunk/modules/multisite/admin/domainsadmin/main.php XoopsModules/multisite/trunk/modules/multisite/admin/domainsadmin/xoops_version.php XoopsModules/multisite/trunk/modules/multisite/admin/groupperm.php XoopsModules/multisite/trunk/modules/multisite/admin/index.html XoopsModules/multisite/trunk/modules/multisite/admin/menu.php XoopsModules/multisite/trunk/modules/multisite/admin/modulesadmin/ XoopsModules/multisite/trunk/modules/multisite/admin/modulesadmin/index.html XoopsModules/multisite/trunk/modules/multisite/admin/modulesadmin/main.php XoopsModules/multisite/trunk/modules/multisite/admin/modulesadmin/modulesadmin.php XoopsModules/multisite/trunk/modules/multisite/admin/modulesadmin/xoops_version.php XoopsModules/multisite/trunk/modules/multisite/admin/policiesadmin/ XoopsModules/multisite/trunk/modules/multisite/admin/policiesadmin/index.html XoopsModules/multisite/trunk/modules/multisite/admin/policiesadmin/main.php XoopsModules/multisite/trunk/modules/multisite/admin/policiesadmin/policiesadmin.php XoopsModules/multisite/trunk/modules/multisite/admin/policiesadmin/xoops_version.php XoopsModules/multisite/trunk/modules/multisite/admin/preferences/ XoopsModules/multisite/trunk/modules/multisite/admin/preferences/index.html XoopsModules/multisite/trunk/modules/multisite/admin/preferences/main.php XoopsModules/multisite/trunk/modules/multisite/admin/preferences/xoops_version.php XoopsModules/multisite/trunk/modules/multisite/admin/version/ XoopsModules/multisite/trunk/modules/multisite/admin/version/index.html XoopsModules/multisite/trunk/modules/multisite/admin/version/main.php XoopsModules/multisite/trunk/modules/multisite/admin/version/s_poweredby.gif XoopsModules/multisite/trunk/modules/multisite/admin/version/xoops_version.php XoopsModules/multisite/trunk/modules/multisite/admin.php XoopsModules/multisite/trunk/modules/multisite/blocks/ XoopsModules/multisite/trunk/modules/multisite/blocks/index.html XoopsModules/multisite/trunk/modules/multisite/class/ XoopsModules/multisite/trunk/modules/multisite/class/block.php XoopsModules/multisite/trunk/modules/multisite/class/domain.php XoopsModules/multisite/trunk/modules/multisite/class/domaincategory.php XoopsModules/multisite/trunk/modules/multisite/class/domainitem.php XoopsModules/multisite/trunk/modules/multisite/class/domainoption.php XoopsModules/multisite/trunk/modules/multisite/class/feeds.php XoopsModules/multisite/trunk/modules/multisite/class/formselectdomains.php XoopsModules/multisite/trunk/modules/multisite/class/module.php XoopsModules/multisite/trunk/modules/multisite/class/policy.php XoopsModules/multisite/trunk/modules/multisite/constants.php XoopsModules/multisite/trunk/modules/multisite/images/ XoopsModules/multisite/trunk/modules/multisite/images/Thumbs.db XoopsModules/multisite/trunk/modules/multisite/images/bg_content.gif XoopsModules/multisite/trunk/modules/multisite/images/bg_menu.gif XoopsModules/multisite/trunk/modules/multisite/images/check.gif XoopsModules/multisite/trunk/modules/multisite/images/delete.png XoopsModules/multisite/trunk/modules/multisite/images/edit.png XoopsModules/multisite/trunk/modules/multisite/images/hbar_left.gif XoopsModules/multisite/trunk/modules/multisite/images/hbar_middle.gif XoopsModules/multisite/trunk/modules/multisite/images/hbar_right.gif XoopsModules/multisite/trunk/modules/multisite/images/index.html XoopsModules/multisite/trunk/modules/multisite/images/info.gif XoopsModules/multisite/trunk/modules/multisite/images/install.gif XoopsModules/multisite/trunk/modules/multisite/images/left_both.gif XoopsModules/multisite/trunk/modules/multisite/images/logo.gif XoopsModules/multisite/trunk/modules/multisite/images/menu.gif XoopsModules/multisite/trunk/modules/multisite/images/multisite_slogo.gif XoopsModules/multisite/trunk/modules/multisite/images/powered_by_xoops.gif XoopsModules/multisite/trunk/modules/multisite/images/right_both.gif XoopsModules/multisite/trunk/modules/multisite/images/uninstall.gif XoopsModules/multisite/trunk/modules/multisite/images/update.gif XoopsModules/multisite/trunk/modules/multisite/images/xoops2.gif XoopsModules/multisite/trunk/modules/multisite/include/ XoopsModules/multisite/trunk/modules/multisite/include/install.php XoopsModules/multisite/trunk/modules/multisite/include/uninstall.php XoopsModules/multisite/trunk/modules/multisite/include/update.php XoopsModules/multisite/trunk/modules/multisite/index.html XoopsModules/multisite/trunk/modules/multisite/language/ XoopsModules/multisite/trunk/modules/multisite/language/english/ XoopsModules/multisite/trunk/modules/multisite/language/english/admin.php XoopsModules/multisite/trunk/modules/multisite/language/english/blocks.php XoopsModules/multisite/trunk/modules/multisite/language/english/cpanel.php XoopsModules/multisite/trunk/modules/multisite/language/english/index.html XoopsModules/multisite/trunk/modules/multisite/language/english/modinfo.php XoopsModules/multisite/trunk/modules/multisite/menu.php XoopsModules/multisite/trunk/modules/multisite/sql/ XoopsModules/multisite/trunk/modules/multisite/sql/multisite.sql XoopsModules/multisite/trunk/modules/multisite/style.css XoopsModules/multisite/trunk/modules/multisite/templates/ XoopsModules/multisite/trunk/modules/multisite/templates/blocks/ XoopsModules/multisite/trunk/modules/multisite/templates/blocks/index.html XoopsModules/multisite/trunk/modules/multisite/templates/index.html XoopsModules/multisite/trunk/modules/multisite/templates/multisite_atom.html XoopsModules/multisite/trunk/modules/multisite/templates/multisite_rss.html XoopsModules/multisite/trunk/modules/multisite/templates/multisite_sitemap.html XoopsModules/multisite/trunk/modules/multisite/xoops_version.php XoopsModules/multisite/trunk/xoops_lib/ XoopsModules/multisite/trunk/xoops_lib/modules/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/blocksadmin/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/blocksadmin/blockform.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/blocksadmin/blocksadmin.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/blocksadmin/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/blocksadmin/main.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/blocksadmin/xoops_version.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/domainsadmin/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/domainsadmin/domainsadmin.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/domainsadmin/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/domainsadmin/main.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/domainsadmin/xoops_version.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/groupperm.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/menu.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/modulesadmin/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/modulesadmin/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/modulesadmin/main.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/modulesadmin/modulesadmin.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/modulesadmin/xoops_version.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/policiesadmin/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/policiesadmin/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/policiesadmin/main.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/policiesadmin/policiesadmin.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/policiesadmin/xoops_version.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/preferences/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/preferences/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/preferences/main.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/preferences/xoops_version.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/version/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/version/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/version/main.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/version/s_poweredby.gif XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin/version/xoops_version.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/admin.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/constants.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/include/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/include/functions.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/include/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/admin/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/admin/blocksadmin.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/admin/comments.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/admin/domainsadmin.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/admin/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/admin/modulesadmin.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/admin/policiesadmin.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/admin/preferences.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/english/admin/version.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/language/index.html XoopsModules/multisite/trunk/xoops_lib/modules/multisite/menu.php XoopsModules/multisite/trunk/xoops_lib/modules/multisite/preload/ XoopsModules/multisite/trunk/xoops_lib/modules/multisite/style.css XoopsModules/multisite/trunk/xoops_lib/modules/multisite/xoops_version.php Added: XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/blockform.php =================================================================== --- XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/blockform.php (rev 0) +++ XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/blockform.php 2009-03-19 10:48:26 UTC (rev 3044) @@ -0,0 +1,109 @@ +<?php +// $Id: blockform.php 1993 2008-08-30 10:49:06Z phppp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +$form = new XoopsThemeForm($block['form_title'], 'blockform', 'admin.php', "post", true); +if (isset($block['name'])) { + $form->addElement(new XoopsFormLabel(_AM_NAME, $block['name'])); +} +$side_select = new XoopsFormSelect(_AM_BLKTYPE, "bside", $block['side']); +$side_select->addOptionArray(array(0 => _AM_SBLEFT, 1 => _AM_SBRIGHT, 3 => _AM_CBLEFT, 4 => _AM_CBRIGHT, 5 => _AM_CBCENTER, 7 => _AM_CBBOTTOMLEFT, 8 => _AM_CBBOTTOMRIGHT, 9 => _AM_CBBOTTOM, )); +$form->addElement($side_select); +$form->addElement(new XoopsFormText(_AM_WEIGHT, "bweight", 2, 5, $block['weight'])); +$form->addElement(new XoopsFormRadioYN(_AM_VISIBLE, 'bvisible', $block['visible'])); +$mod_select = new XoopsFormSelect(_AM_VISIBLEIN, "bmodule", $block['modules'], 5, true); +$module_handler =& xoops_getmodulehandler('module','multisite'); +$criteria = new CriteriaCompo(new Criteria('hasmain', 1)); +$criteria->add(new Criteria('isactive', 1)); +$module_list = $module_handler->getList($criteria); +$module_list[-1] = _AM_TOPPAGE; +$module_list[0] = _AM_ALLPAGES; +ksort($module_list); +$mod_select->addOptionArray($module_list); +$form->addElement($mod_select); + +$form->addElement(new XoopsFormText(_AM_TITLE, 'btitle', 50, 255, $block['title']), false); +if ( $block['is_custom'] ) { + $textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT, 'bcontent', $block['content'], 15, 70); + $textarea->setDescription('<span style="font-size:x-small;font-weight:bold;">'._AM_USEFULTAGS.'</span><br /><span style="font-size:x-small;font-weight:normal;">'.sprintf(_AM_BLOCKTAG1, '{X_SITEURL}', XOOPS_URL.'/').'</span>'); + $textarea->doHtml = true; + $form->addElement($textarea, true); + $ctype_select = new XoopsFormSelect(_AM_CTYPE, 'bctype', $block['ctype']); + $ctype_select->addOptionArray(array('H' => _AM_HTML, 'P' => _AM_PHP, 'S' => _AM_AFWSMILE, 'T' => _AM_AFNOSMILE)); + $form->addElement($ctype_select); +} else { + if ($block['template'] != '') { + $tplfile_handler =& xoops_gethandler('tplfile'); + $btemplate = $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $block['bid']); + if (count($btemplate) > 0) { + $form->addElement(new XoopsFormLabel(_AM_CONTENT, '<a href="'.XOOPS_URL.'/modules/multisite/admin.php?fct=tplsets&op=edittpl&id='.$btemplate[0]->getVar('tpl_id').'">'._AM_EDITTPL.'</a>')); + } else { + $btemplate2 = $tplfile_handler->find('default', 'block', $block['bid']); + if (count($btemplate2) > 0) { + $form->addElement(new XoopsFormLabel(_AM_CONTENT, '<a href="'.XOOPS_URL.'/modules/multisite/admin.php?fct=tplsets&op=edittpl&id='.$btemplate2[0]->getVar('tpl_id').'" rel="external">'._AM_EDITTPL.'</a>')); + } + } + } + if ($block['edit_form'] != false) { + $form->addElement(new XoopsFormLabel(_AM_OPTIONS, $block['edit_form'])); + } +} + + +$domain_select = new XoopsFormSelect(_AM_DOMAINSIN, "domains", explode('|',$block['domains']), 5, true); +$module_handler =& xoops_getmodulehandler('module','multisite'); +$module =& $module_handler->getByDirname('multisite'); +$domain_handler =& xoops_getmodulehandler('domain', 'multisite'); + +$critera_z = new CriteriaCompo(new Criteria('dom_modid', $module->getVar('mid'))); +$critera_z->add(new Criteria('dom_catid', XOOPS_DOMAIN)) ; +$critera_z->add(new Criteria('dom_name', 'domain')) ; +$domains = $domain_handler->getDomains($critera_z); + +$domain_list['all'] = _AM_ALLDOMAINS; +foreach($domains as $domain) + $domain_list[$domain->getVar('dom_value')] = $domain->getVar('dom_value'); + +$domain_select->addOptionArray($domain_list); +$form->addElement($domain_select); + + +$cache_select = new XoopsFormSelect(_AM_BCACHETIME, 'bcachetime', $block['cachetime']); +$cache_select->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK, '2592000' => _MONTH)); +$form->addElement($cache_select); +if (isset($block['bid'])) { + $form->addElement(new XoopsFormHidden('bid', $block['bid'])); +} +$form->addElement(new XoopsFormHidden('op', $block['op'])); +$form->addElement(new XoopsFormHidden('fct', 'blocksadmin')); +$button_tray = new XoopsFormElementTray('', ' '); +if ($block['is_custom']) { + $button_tray->addElement(new XoopsFormButton('', 'previewblock', _PREVIEW, "submit")); +} +$button_tray->addElement(new XoopsFormButton('', 'submitblock', _SUBMIT, "submit")); +$form->addElement($button_tray); +?> Added: XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/blocksadmin.php =================================================================== --- XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/blocksadmin.php (rev 0) +++ XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/blocksadmin.php 2009-03-19 10:48:26 UTC (rev 3044) @@ -0,0 +1,654 @@ +<?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. +*/ + +/** + * XOOPS Block management + * + * @copyright The XOOPS project http://www.xoops.org/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package kernel + * @since 2.0 + * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @author Steven Li <ph...@us...> + * @version $Id: blocksadmin.php 2879 2009-02-27 00:53:34Z wishcraft $ + * @package class + * @todo zone evolution + */ + +if ( !is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + exit("Access Denied"); +} + +include_once XOOPS_ROOT_PATH.'/modules/multisite/class/block.php'; + +function list_blocks() +{ + global $xoopsUser, $xoopsConfig, $xoopsDB; + include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; + + $module_handler =& xoops_getmodulehandler('module','multisite'); + $criteria = new CriteriaCompo(new Criteria('hasmain', 1)); + $criteria->add(new Criteria('isactive', 1)); + // Modules for blocks to be visible in + $display_list = $module_handler->getList($criteria); + unset($criteria); + // Modules generating the blocks + $generator_list = $module_handler->getList(); + // for custom blocks + $generator_list[0] = _AM_CUSTOM; + + $module_handler =& xoops_getmodulehandler('module','multisite'); + $module =& $module_handler->getByDirname('multisite'); + $domains_handler =& xoops_getmodulehandler('domain', 'multisite'); + + $critera_z = new CriteriaCompo(new Criteria('dom_catid', XOOPS_DOMAIN)); + $critera_z->add(new Criteria('dom_name', 'domain')) ; + $domains = $domains_handler->getDomains($critera_z); + + $domain_list['all'] = _AM_ALLDOMAINS; + foreach($domains as $domain) + $domain_list[$domain->getVar('dom_value')] = $domain->getVar('dom_value'); + + $selmod = isset($_GET['selmod']) ? intval($_GET['selmod']) : -1; + $selgen = isset($_GET['selgen']) ? intval($_GET['selgen']) : 1; + $selvis = isset($_GET['selvis']) ? intval($_GET['selvis']) : -1; + $selgrp = isset($_GET['selgrp']) ? intval($_GET['selgrp']) : XOOPS_GROUP_USERS; + + echo "<h4>"._AM_BADMIN."</h4>"; + + // For selection of generated by + echo '<form action="admin.php" method="get">'; + $form = "<select size=\"1\" name=\"selgen\" onchange=\"location='".XOOPS_URL."/modules/multisite/admin.php?fct=blocksadmin&selmod=$selmod&selvis=$selvis&selgrp=$selgrp&selgen='+this.options[this.selectedIndex].value\">"; + $generator_list[-1] = _AM_TYPES; + ksort($generator_list); + foreach ($generator_list as $k => $v) { + $form .= '<option value="'.$k.'"' . ($k == $selgen ? ' selected="selected"' : '') . '>'.$v.'</option>'; + } + $form .= '</select> '; + printf(_AM_GENERATOR, $form); + + // For selection of visible in + $form = "<select size=\"1\" name=\"seldom\" onchange=\"location='".XOOPS_URL."/modules/multisite/admin.php?fct=blocksadmin&selgen=$selgen&selvis=$selvis&selgrp=$selgrp&selmod=$selmod&seldom='+this.options[this.selectedIndex].value\">"; + //$toponlyblock = false; + foreach ($domain_list as $k => $v) { + $form .= '<option value="'.$k.'"' . ($k == $seldom ? ' selected="selected"' : '') . '>'.$v.'</option>'; + } + $form .= '</select> '; // <input type="hidden" name="fct" value="blocksadmin" />'; + printf(_AM_DOMAINSINSEL, $form); + + // For selection of visible in + $form = "<select size=\"1\" name=\"selmod\" onchange=\"location='".XOOPS_URL."/modules/multisite/admin.php?fct=blocksadmin&selgen=$selgen&seldom=$seldom&selvis=$selvis&selgrp=$selgrp&selmod='+this.options[this.selectedIndex].value\">"; + //$toponlyblock = false; + ksort($display_list); + $display_list_spec[-2] = _AM_TYPES; + $display_list_spec[0] = _AM_ALLPAGES; + $display_list_spec[-1] = _AM_TOPPAGE; + $display_list = $display_list_spec + $display_list; + foreach ($display_list as $k => $v) { + $form .= '<option value="'.$k.'"' . ($k == $selmod ? ' selected="selected"' : '') . '>'.$v.'</option>'; + } + $form .= '</select> '; // <input type="hidden" name="fct" value="blocksadmin" />'; + printf(_AM_SVISIBLEIN, $form); + unset($display_list[-2]); + + // For selection of group access + $member_handler =& xoops_gethandler('member'); + $group_list = $member_handler->getGroupList(); + $group_sel = _AM_GROUP." <select size=\"1\" name=\"selgrp\" onchange=\"location='".XOOPS_URL."/modules/multisite/admin.php?fct=blocksadmin&selgen=$selgen&selvis=$selvis&seldom=$seldom&selmod=$selmod&selgrp='+this.options[this.selectedIndex].value\">"; + $group_list[0] = _AM_UNASSIGNED; + $group_list[-1] = _AM_TYPES; + foreach ($group_list as $k => $v) { + $group_sel .= '<option value="'.$k.'"' . ($k == $selgrp ? ' selected="selected"' : '') . '>'.$v.'</option>'; + } + $group_sel .= '</select> '; + echo $group_sel; + + // For selection of visiblility + echo _AM_VISIBLE." <select size=\"1\" name=\"selvis\" onchange=\"location='".XOOPS_URL."/modules/multisite/admin.php?fct=blocksadmin&selgen=$selgen&selmod=$selmod&seldom=$seldom&selgrp=$selgrp&selvis='+this.options[this.selectedIndex].value\">"; + echo '<option value="0"' . ($selvis == 0 ? ' selected="selected"' : '') . '>'._NO.'</option>'; + echo '<option value="1"' . ($selvis == 1 ? ' selected="selected"' : '') . '>'._YES.'</option>'; + echo '<option value="-1"' . ($selvis == -1 ? ' selected="selected"' : '') . '>'._AM_TYPES.'</option>'; + echo '</select> <input type="hidden" name="fct" value="blocksadmin" /><input type="submit" value="'._GO.'" name="selsubmit" />'; + echo '</form><br />'; + + echo "<form action='admin.php' name='blockadmin' method='post'> + <table width='100%' class='outer' cellpadding='4' cellspacing='1'> + <tr valign='middle' align='center'> + <th width='15%'>"._AM_TITLE."</th> + <th width='20%'>"._AM_BLKDESC."</th> + <th width='10%'>"._AM_MODULE."</th> + <th width='10%' nowrap='nowrap'>"._AM_SIDE."<br />"._LEFT."-"._CENTER."-"._RIGHT."</th> + <th width='10%'>"._AM_VISIBLEIN."</th> + <th width='10%'>"._AM_DOMAINSIN."</th> + <th width='10%'>"._AM_BCACHETIME."</th> + <th width='10%'>"._AM_VISIBLE."</th> + <th width='10%'>"._AM_WEIGHT."</th> + <th>"._AM_ACTION."</th> + </tr> + "; + if ($selvis == -1) { + //$selvis = null; + } + + $order_block = ( isset($selvis) ? "" : "b.visible DESC, " ) . "b.side,b.weight,b.bid"; + $vis_block = ( $selvis == -1 ) ? null : $selvis; + $mod_block = ( $selmod == -2 ) ? null : $selmod; + if ($selgrp == 0) { + // get blocks that are not assigned to any groups + $block_arr = MultisiteBlock::getNonGroupedBlocks($mod_block, $toponlyblock = false, $vis_block, $order_block. true, false); + } else { + $grp_block = ( $selgrp == -1 ) ? null : $selgrp; + $block_arr = MultisiteBlock::getAllByGroupModule($grp_block, $mod_block, $toponlyblock = false, $vis_block, $order_block, true, false); + } + if ($selgen >= 0) { + foreach (array_keys($block_arr) as $bid) { + if ($block_arr[$bid]->getVar("mid") != $selgen) { + unset($block_arr[$bid]); + } + } + } + //xoops_result(array_keys($block_arr)); + $block_count = count($block_arr); + $class = 'even'; + + $block_mod = array(); + if ($block_count) { + $sql = 'SELECT block_id, module_id FROM '.$xoopsDB->prefix('block_module_link').' WHERE block_id IN (' . implode(', ', array_keys($block_arr)) . ')'; + $result = $xoopsDB->query($sql); + while ($row = $xoopsDB->fetchArray($result)) { + $block_mod[$row['block_id']][] = $row['module_id']; + } + } + + $bcachetime = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK, '2592000' => _MONTH) ; + + foreach (array_keys($block_arr) as $i) { + $module_options = ''; + foreach ( $display_list as $key => $mod ) { + if ( !empty($block_mod[$i]) && in_array($key, $block_mod[$i]) ) { + $module_options .= "<option value='$key' selected='selected'>$mod</a>" ; + } else { + $module_options .= "<option value='$key'>$mod</a>" ; + } + } + + $domain_options = ''; + foreach ( $domain_list as $key => $mod ) { + if ( strpos(' '.$block_arr[$i]->getVar('domains'),$key) ) { + $domain_options .= "<option value='$key' selected='selected'>$mod</a>" ; + } else { + $domain_options .= "<option value='$key'>$mod</a>" ; + } + } + $cachetime_options = ''; + foreach ( $bcachetime as $key => $cachetime ) { + if ( $key == $block_arr[$i]->getVar('bcachetime') ) { + $cachetime_options .= "<option value='$key' selected='selected'>$cachetime</option>"; + } else { + $cachetime_options .= "<option value='$key'>$cachetime</option>"; + } + + } + + $sel0 = $sel1 = $ssel0 = $ssel1 = $ssel2 = $ssel3 = $ssel4 = $ssel5 = $ssel6 = $ssel7 = ""; + if ( $block_arr[$i]->getVar("visible") == 1 ) { + $sel1 = " checked='checked'"; + } else { + $sel0 = " checked='checked'"; + } + if ( $block_arr[$i]->getVar("side") == XOOPS_SIDEBLOCK_LEFT) { + $ssel0 = " checked='checked'"; + } elseif ( $block_arr[$i]->getVar("side") == XOOPS_SIDEBLOCK_RIGHT ) { + $ssel1 = " checked='checked'"; + } elseif ( $block_arr[$i]->getVar("side") == XOOPS_CENTERBLOCK_LEFT ) { + $ssel2 = " checked='checked'"; + } elseif ( $block_arr[$i]->getVar("side") == XOOPS_CENTERBLOCK_RIGHT ) { + $ssel4 = " checked='checked'"; + } elseif ( $block_arr[$i]->getVar("side") == XOOPS_CENTERBLOCK_CENTER ) { + $ssel3 = " checked='checked'"; + } elseif ( $block_arr[$i]->getVar("side") == XOOPS_CENTERBLOCK_BOTTOMLEFT ) { + $ssel5 = " checked='checked'"; + } elseif ( $block_arr[$i]->getVar("side") == XOOPS_CENTERBLOCK_BOTTOMRIGHT ) { + $ssel6 = " checked='checked'"; + } elseif ( $block_arr[$i]->getVar("side") == XOOPS_CENTERBLOCK_BOTTOM ) { + $ssel7 = " checked='checked'"; + } + $title = $block_arr[$i]->getVar("title"); + $name = $block_arr[$i]->getVar("name"); + echo "<tr valign='top'> + <td class='$class'><input type='text' name=title[$i] value='".$title."' size='30' /></td> + <td class='$class'>".$name."</td> + <td class='$class'>".$generator_list[$block_arr[$i]->getVar('mid')]."</td> + <td class='$class' align='center' nowrap='nowrap'> + <div align='center' > + <input type='radio' name='side[$i]' value='".XOOPS_CENTERBLOCK_LEFT."'$ssel2 /> + <input type='radio' name='side[$i]' value='".XOOPS_CENTERBLOCK_CENTER."'$ssel3 /> + <input type='radio' name='side[$i]' value='".XOOPS_CENTERBLOCK_RIGHT."'$ssel4 /> + </div> + <div> + <span style='float:right'><input type='radio' name='side[$i]' value='".XOOPS_SIDEBLOCK_RIGHT."'$ssel1 /></span> + <div align='left'><input type='radio' name='side[$i]' value='".XOOPS_SIDEBLOCK_LEFT."'$ssel0 /></div> + </div> + <div align='center'> + <input type='radio' name='side[$i]' value='".XOOPS_CENTERBLOCK_BOTTOMLEFT."'$ssel5 /> + <input type='radio' name='side[$i]' value='".XOOPS_CENTERBLOCK_BOTTOM."'$ssel7 /> + <input type='radio' name='side[$i]' value='".XOOPS_CENTERBLOCK_BOTTOMRIGHT."'$ssel6 /> + </div> + </td> + <td class='$class' align='center'> + <select name='bmodule[$i][]' size='5' multiple='multiple'> + $module_options + </select> + </td> + <td class='$class' align='center'> + <select name='domains[$i][]' size='5' multiple='multiple'> + $domain_options + </select> + </td> + <td class='$class' align='center'> + <select name='bcachetime[$i]' size='1'> + $cachetime_options + </select> + </td> + <td class='$class' align='center' nowrap><input type='radio' name='visible[$i]' value='1'$sel1>"._YES." <input type='radio' name='visible[$i]' value='0'$sel0>"._NO."</td> + <td class='$class' align='center'><input type='text' name='weight[$i]' value='".$block_arr[$i]->getVar("weight")."' size='5' maxlength='5' /></td> + <td class='$class' align='right'><a href='admin.php?fct=blocksadmin&op=edit&bid=".$block_arr[$i]->getVar("bid")."'>"._EDIT."</a>"; + echo "<br /><a href='admin.php?fct=blocksadmin&op=clone&bid=".$block_arr[$i]->getVar("bid")."'>"._AM_CLONE."</a>"; + if ($block_arr[$i]->getVar('block_type') != 'S') { + echo "<br /><a href='admin.php?fct=blocksadmin&op=delete&bid=".$block_arr[$i]->getVar("bid")."'>"._DELETE."</a>"; + } + echo " + <input type='hidden' name='oldside[$i]' value='".$block_arr[$i]->getVar('side')."' /> + <input type='hidden' name='oldweight[$i]' value='".$block_arr[$i]->getVar('weight')."' /> + <input type='hidden' name='oldvisible[$i]' value='".$block_arr[$i]->getVar('visible')."' /> + <input type='hidden' name='oldbmodule[$i]' value='".@implode(',', $block_mod[$i])."'/> + <input type='hidden' name='oldtitle[$i]' value='".$block_arr[$i]->getVar('title')."'/> + <input type='hidden' name='oldbcachetime[$i]' value='".$block_arr[$i]->getVar('bcachetime')."'/> + <input type='hidden' name='bid[$i]' value='".$i."' /> + </td></tr> + "; + $class = ($class == 'even') ? 'odd' : 'even'; + } + echo "<tr><td class='foot' align='center' colspan='9'> + <input type='hidden' name='fct' value='blocksadmin' /> + <input type='hidden' name='op' value='order' /> + ".$GLOBALS['xoopsSecurity']->getTokenHTML()." + <input type='submit' name='submit' value='"._SUBMIT."' /> + </td></tr></table> + </form> + <br /><br />"; + + $block = array('form_title' => _AM_ADDBLOCK, 'side' => 0, 'weight' => 0, 'visible' => 1, 'title' => '', 'content' => '', 'modules' => array(-1), 'is_custom' => true, 'ctype' => 'H', 'cachetime' => 0, 'op' => 'save', 'edit_form' => false); + include XOOPS_ROOT_PATH.'/modules/multisite/admin/blocksadmin/blockform.php'; + $form->display(); +} + +function save_block($bside, $bweight, $bvisible, $btitle, $bcontent, $bctype, $bmodule, $bcachetime, $domains) +{ + global $xoopsUser; + if (empty($bmodule)) { + xoops_cp_header(); + adminMenu(0); + xoops_error(sprintf(_AM_NOTSELNG, _AM_VISIBLEIN)); + footer_adminMenu(); + xoops_cp_footer(); + exit(); + } + $myblock = new MultisiteBlock(); + $myblock->setVar('side', $bside); + $myblock->setVar('weight', $bweight); + $myblock->setVar('visible', $bvisible); + $myblock->setVar('weight', $bweight); + $myblock->setVar('title', $btitle); + $myblock->setVar('content', $bcontent); + $myblock->setVar('c_type', $bctype); + $myblock->setVar('block_type', 'C'); + $myblock->setVar('bcachetime', $bcachetime); + + if (isset($domains)) { + $domains_count = count($domains); + if ($domains_count > 0) { + //Convert array values to comma-separated + for ( $i = 0; $i < $domains_count; $i++ ) { + if (is_array($domains[$i])) { + $domains[$i] = implode(',', $domains[$i]); + } + } + $domains = implode('|', $domains); + $myblock->setVar('domains', '|'.$domains); + } + } + + switch ($bctype) { + case 'H': + $name = _AM_CUSTOMHTML; + break; + case 'P': + $name = _AM_CUSTOMPHP; + break; + case 'S': + $name = _AM_CUSTOMSMILE; + break; + default: + $name = _AM_CUSTOMNOSMILE; + break; + } + $myblock->setVar('name', $name); + $newid = $myblock->store(); + if (!$newid) { + xoops_cp_header(); + adminMenu(0); + $myblock->getHtmlErrors(); + footer_adminMenu(); + xoops_cp_footer(); + exit(); + } + $db =& Database::getInstance(); + foreach ($bmodule as $bmid) { + $sql = 'INSERT INTO '.$db->prefix('block_module_link').' (block_id, module_id) VALUES ('.$newid.', '.intval($bmid).')'; + $db->query($sql); + } + $groups = array(XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS, XOOPS_GROUP_ANONYMOUS); + $count = count($groups); + for ($i = 0; $i < $count; $i++) { + $sql = "INSERT INTO ".$db->prefix('group_permission')." (gperm_groupid, gperm_itemid, gperm_name, gperm_modid) VALUES (".$groups[$i].", ".$newid.", 'block_read', 1)"; + $db->query($sql); + } + redirect_header('admin.php?fct=blocksadmin&t='.time(),1,_AM_DBUPDATED); + exit(); +} + +function edit_block($bid) +{ + $myblock = new MultisiteBlock($bid); + $db =& Database::getInstance(); + $sql = 'SELECT module_id FROM '.$db->prefix('block_module_link').' WHERE block_id='.intval($bid); + $result = $db->query($sql); + $modules = array(); + while ($row = $db->fetchArray($result)) { + $modules[] = intval($row['module_id']); + } + $is_custom = $myblock->isCustom(); + $block = array('form_title' => _AM_EDITBLOCK, 'name' => $myblock->getVar('name'), 'side' => $myblock->getVar('side'), 'weight' => $myblock->getVar('weight'), 'visible' => $myblock->getVar('visible'), 'title' => $myblock->getVar('title', 'E'), 'content' => $myblock->getVar('content', 'E'), 'modules' => $modules, 'is_custom' => $is_custom, 'ctype' => $myblock->getVar('c_type'), 'cachetime' => $myblock->getVar('bcachetime'), 'op' => 'update', 'bid' => $myblock->getVar('bid'), 'edit_form' => $myblock->getOptions(), 'template' => $myblock->getVar('template'), 'options' => $myblock->getVar('options'), 'domains' => $myblock->getVar('domains')); + echo '<a href="admin.php?fct=blocksadmin">'. _AM_BADMIN .'</a> <span style="font-weight:bold;">»»</span> '._AM_EDITBLOCK.'<br /><br />'; + include XOOPS_ROOT_PATH.'/modules/multisite/admin/blocksadmin/blockform.php'; + $form->display(); +} + +function update_block($bid, $bside, $bweight, $bvisible, $btitle, $bcontent, $bctype, $bcachetime, $bmodule, $domains, $options=array()) +{ + global $xoopsConfig; + if (empty($bmodule)) { + xoops_cp_header(); + adminMenu(0); + xoops_error(sprintf(_AM_NOTSELNG, _AM_VISIBLEIN)); + footer_adminMenu(); + xoops_cp_footer(); + exit(); + } + $myblock = new MultisiteBlock($bid); + $myblock->setVar('side', $bside); + $myblock->setVar('weight', $bweight); + $myblock->setVar('visible', $bvisible); + $myblock->setVar('title', $btitle); + $myblock->setVar('content', $bcontent); + $myblock->setVar('bcachetime', $bcachetime); + + if (isset($domains)) { + $domains_count = count($domains); + if ($domains_count > 0) { + //Convert array values to comma-separated + for ( $i = 0; $i < $domains_count; $i++ ) { + if (is_array($domains[$i])) { + $domains[$i] = implode(',', $domains[$i]); + } + } + $domains = implode('|', $domains); + $myblock->setVar('domains', '|'.$domains); + } + } + + if (isset($options)) { + $options_count = count($options); + if ($options_count > 0) { + //Convert array values to comma-separated + for ( $i = 0; $i < $options_count; $i++ ) { + if (is_array($options[$i])) { + $options[$i] = implode(',', $options[$i]); + } + } + $options = implode('|', $options); + $myblock->setVar('options', $options); + } + } + if ($myblock->isCustom()) { + switch ($bctype) { + case 'H': + $name = _AM_CUSTOMHTML; + break; + case 'P': + $name = _AM_CUSTOMPHP; + break; + case 'S': + $name = _AM_CUSTOMSMILE; + break; + default: + $name = _AM_CUSTOMNOSMILE; + break; + } + $myblock->setVar('name', $name); + $myblock->setVar('c_type', $bctype); + } else { + $myblock->setVar('c_type', 'H'); + } + $msg = _AM_DBUPDATED; + if ($myblock->store() != false) { + $db =& Database::getInstance(); + $sql = sprintf("DELETE FROM %s WHERE block_id = %u", $db->prefix('block_module_link'), $bid); + $db->query($sql); + foreach ($bmodule as $bmid) { + $sql = sprintf("INSERT INTO %s (block_id, module_id) VALUES (%u, %d)", $db->prefix('block_module_link'), $bid, intval($bmid)); + $db->query($sql); + } + include_once XOOPS_ROOT_PATH.'/class/template.php'; + $xoopsTpl = new XoopsTpl(); + $xoopsTpl->xoops_setCaching(2); + if ($myblock->getVar('template') != '') { + if ($xoopsTpl->is_cached('db:'.$myblock->getVar('template'), 'blk_'.$myblock->getVar('bid'))) { + if (!$xoopsTpl->clear_cache('db:'.$myblock->getVar('template'), 'blk_'.$myblock->getVar('bid'))) { + $msg = 'Unable to clear cache for block ID '.$bid; + } + } + } else { + if ($xoopsTpl->is_cached('db:system_dummy.html', 'blk_'.$bid)) { + if (!$xoopsTpl->clear_cache('db:system_dummy.html', 'blk_'.$bid)) { + $msg = 'Unable to clear cache for block ID '.$bid; + } + } + } + } else { + $msg = 'Failed update of block. ID:'.$bid; + } + redirect_header('admin.php?fct=blocksadmin&t='.time(),1,$msg); + exit(); +} + +function delete_block($bid) +{ + $myblock = new MultisiteBlock($bid); + if ( $myblock->getVar('block_type') == 'S' ) { + $message = _AM_SYSTEMCANT; + redirect_header('admin.php?fct=blocksadmin',4,$message); + exit(); + } elseif ($myblock->getVar('block_type') == 'M') { + // Fix for duplicated blocks created in 2.0.9 module update + // A module block can be deleted if there is more than 1 that + // has the same func_num/show_func which is mostly likely + // be the one that was duplicated in 2.0.9 + if (1 >= $count = MultisiteBlock::countSimilarBlocks($myblock->getVar('mid'), $myblock->getVar('func_num'), $myblock->getVar('show_func'))) { + $message = _AM_MODULECANT; + redirect_header('admin.php?fct=blocksadmin',4,$message); + exit(); + } + } + xoops_confirm(array('fct' => 'blocksadmin', 'op' => 'delete_ok', 'bid' => $myblock->getVar('bid')), 'admin.php', sprintf(_AM_RUSUREDEL,$myblock->getVar('title'))); +} + +function delete_block_ok($bid) +{ + $myblock = new MultisiteBlock($bid); + $myblock->delete(); + if ($myblock->getVar('template') != '') { + $tplfile_handler =& xoops_gethandler('tplfile'); + $btemplate = $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $bid); + if (count($btemplate) > 0) { + $tplfile_handler->delete($btemplate[0]); + } + } + redirect_header('admin.php?fct=blocksadmin&t='.time(),1,_AM_DBUPDATED); + exit(); +} + +function order_block($bid, $weight, $visible, $side , $title, $bmodule, $bcachetime, $domains) +{ + $myblock = new MultisiteBlock($bid); + $myblock->setVar('title', $title); + $myblock->setVar('weight', $weight); + $myblock->setVar('visible', $visible); + $myblock->setVar('side', $side); + $myblock->setVar('bcachetime', $bcachetime); + + if (isset($domains)) { + $domains_count = count($domains); + if ($domains_count > 0) { + //Convert array values to comma-separated + for ( $i = 0; $i < $domains_count; $i++ ) { + if (is_array($domains[$i])) { + $domains[$i] = implode(',', $domains[$i]); + } + } + $domains = implode('|', $domains); + $myblock->setVar('domains', '|'.$domains); + } + } + + $myblock->store(); + + $db =& Database::getInstance(); + $sql = sprintf("DELETE FROM %s WHERE block_id = %u", $db->prefix('block_module_link'), $bid); + $db->queryF($sql); + + foreach ( $bmodule as $bmid ) { + $sql = sprintf("INSERT INTO %s (block_id, module_id) VALUES (%u, %d)", $db->prefix('block_module_link'), $bid, intval($bmid)); + $db->queryF($sql); + } +} + +function clone_block($bid) +{ + global $xoopsConfig; + xoops_cp_header(); + adminMenu(0); + $myblock = new MultisiteBlock($bid); + $db =& Database::getInstance(); + $sql = 'SELECT module_id FROM ' . $db->prefix('block_module_link') . ' WHERE block_id=' . intval($bid); + $result = $db->query($sql); + $modules = array(); + while ($row = $db->fetchArray($result)) { + $modules[] = intval($row['module_id']); + } + $is_custom = $myblock->isCustom(); + $block = array('form_title' => _AM_CLONEBLOCK, 'name' => $myblock->getVar('name'), 'title' => $myblock->getVar('title'), 'side' => $myblock->getVar('side'), 'weight' => $myblock->getVar('weight'), 'visible' => $myblock->getVar('visible'), 'content' => $myblock->getVar('content', 'N'), 'modules' => $modules, 'is_custom' => $is_custom, 'ctype' => $myblock->getVar('c_type'), 'cachetime' => $myblock->getVar('bcachetime'), 'op' => 'clone_ok', 'bid' => $myblock->getVar('bid'), 'edit_form' => $myblock->getOptions(), 'template' => $myblock->getVar('template'), 'options' => $myblock->getVar('options'), 'domains' => $myblock->getVar('domains')); + echo '<a href="admin.php?fct=blocksadmin">'. _AM_BADMIN .'</a> <span style="font-weight:bold;">»»</span> '._AM_CLONEBLOCK.'<br /><br />'; + include XOOPS_ROOT_PATH.'/modules/multisite/admin/blocksadmin/blockform.php'; + $form->display(); + footer_adminMenu(); + xoops_cp_footer(); + exit(); +} + +function clone_block_ok($bid, $bside, $bweight, $bvisible, $btitle, $bcontent, $bcachetime, $bmodule, $domains, $options = array()) +{ + global $xoopsUser; + /* + if (empty($bmodule)) { + xoops_cp_header(); + adminMenu(0); + xoops_error(sprintf(_AM_NOTSELNG, _AM_VISIBLEIN)); + footer_adminMenu(); + xoops_cp_footer(); + exit(); + } + */ + $block = new MultisiteBlock($bid); + $clone =& $block->xoopsClone(); + $clone->setVar('side', $bside); + $clone->setVar('weight', $bweight); + $clone->setVar('visible', $bvisible); + $clone->setVar('content', $bcontent); + $clone->setVar('title', $btitle); + $clone->setVar('bcachetime', $bcachetime); + + if ( isset($domains) ) { + if ( is_array($domains) ) + $domains = implode('|', $domains); + $clone->setVar('options', '|'.$domains); + } + + if ( isset($options) && (count($options) > 0) ) { + $options = implode('|', $options); + $clone->setVar('options', $options); + } + $clone->setVar('bid', 0); + // Custom block + if ($block->isCustom()) { + $clone->setVar('block_type', 'C'); + // Clone of system or module block + } else { + $clone->setVar('block_type', 'D'); + } + $newid = $clone->store(); + if (!$newid) { + xoops_cp_header(); + adminMenu(0); + $clone->getHtmlErrors(); + footer_adminMenu(); + xoops_cp_footer(); + exit(); + } + if ($clone->getVar('template') != '') { + $tplfile_handler =& xoops_gethandler('tplfile'); + $btemplate = $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $bid); + if (count($btemplate) > 0) { + $tplclone =& $btemplate[0]->xoopsClone(); + $tplclone->setVar('tpl_id', 0); + $tplclone->setVar('tpl_refid', $newid); + $tplfile_handler->insert($tplclone); + } + } + $db =& Database::getInstance(); + foreach ( @$bmodule as $bmid ) { + $sql = 'INSERT INTO '.$db->prefix('block_module_link').' (block_id, module_id) VALUES ('.$newid.', '.$bmid.')'; + $db->query($sql); + } + + $sql = "SELECT gperm_groupid FROM ".$db->prefix('group_permission')." WHERE gperm_name='block_read' AND gperm_modid='1' AND gperm_itemid='$bid'" ; + $result = $db->query($sql); + while( list( $gid ) = $db->fetchRow( $result ) ) { + $sql = "INSERT INTO ".$db->prefix('group_permission')." (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES ($gid, $newid, 1, 'block_read')"; + $db->query($sql); + } + + redirect_header('admin.php?fct=blocksadmin&t='.time(),1,_AM_DBUPDATED); +} +?> \ No newline at end of file Added: XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/index.html =================================================================== --- XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/index.html (rev 0) +++ XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/index.html 2009-03-19 10:48:26 UTC (rev 3044) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/main.php =================================================================== --- XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/main.php (rev 0) +++ XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/main.php 2009-03-19 10:48:26 UTC (rev 3044) @@ -0,0 +1,221 @@ +<?php +// $Id: main.php 1446 2008-04-17 14:43:45Z phppp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Kazumi Ono (AKA onokazu) // +// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +if ( !is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + exit("Access Denied"); +} +include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php'; +include XOOPS_ROOT_PATH."/modules/multisite/admin/blocksadmin/blocksadmin.php"; + +$op = "list"; +if ( isset($_POST) ) { + foreach ( $_POST as $k => $v ) { + $$k = $v; + } +} + +if ( isset($_GET['op']) ) { + if ($_GET['op'] == "edit" || $_GET['op'] == "delete" || $_GET['op'] == "delete_ok" || $_GET['op'] == "clone") { + $op = $_GET['op']; + $bid = isset($_GET['bid']) ? intval($_GET['bid']) : 0; + } +} + +if (isset($previewblock)) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header("admin.php?fct=blocksadmin", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + exit(); + } + xoops_cp_header(); + adminMenu(0); + include_once XOOPS_ROOT_PATH.'/class/template.php'; + $xoopsTpl = new XoopsTpl(); + $xoopsTpl->xoops_setCaching(0); + if (isset($bid)) { + $block['bid'] = $bid; + $block['form_title'] = _AM_EDITBLOCK; + $myblock = new XoopsBlock($bid); + $block['name'] = $myblock->getVar('name'); + } else { + if ($op == 'save') { + $block['form_title'] = _AM_ADDBLOCK; + } else { + $block['form_title'] = _AM_CLONEBLOCK; + } + $myblock = new XoopsBlock(); + $myblock->setVar('block_type', 'C'); + } + $myts =& MyTextSanitizer::getInstance(); + $myblock->setVar('title', $myts->stripSlashesGPC($btitle)); + $myblock->setVar('content', $myts->stripSlashesGPC($bcontent)); + $dummyhtml = '<html><head><meta http-equiv="content-type" content="text/html; charset='._CHARSET.'" /><meta http-equiv="content-language" content="'._LANGCODE.'" /><title>'.$xoopsConfig['sitename'].'</title><link rel="stylesheet" type="text/css" media="all" href="'.xoops_getcss($xoopsConfig['theme_set']).'" /></head><body><table><tr><th>'.$myblock->getVar('title').'</th></tr><tr><td>'.$myblock->getContent('S', $bctype).'</td></tr></table></body></html>'; + + $block['edit_form'] = false; + $block['template'] = ''; + $block['op'] = $op; + $block['side'] = $bside; + $block['weight'] = $bweight; + $block['visible'] = $bvisible; + $block['title'] = $myblock->getVar('title', 'E'); + $block['content'] = $myblock->getVar('content', 'E'); + $block['modules'] =& $bmodule; + $block['domains'] =& $domains; + $block['ctype'] = isset($bctype) ? $bctype : $myblock->getVar('c_type'); + $block['is_custom'] = true; + $block['cachetime'] = intval($bcachetime); + echo '<a href="admin.php?fct=blocksadmin">'. _AM_BADMIN .'</a> <span style="font-weight:bold;">»»</span> '.$block['form_title'].'<br /><br />'; + include XOOPS_ROOT_PATH.'/modules/multisite/admin/blocksadmin/blockform.php'; + $form->display(); + footer_adminMenu(); + xoops_cp_footer(); + echo '<script type="text/javascript"> + <!--// + win = openWithSelfMain("", "popup", 250, 200, true); + win.document.clear(); + '; + $lines = preg_split("/(\r\n|\r|\n)( *)/", $dummyhtml); + foreach ($lines as $line) { + echo 'win.document.writeln("'.str_replace('"', '\"', $line).'");'; + } + echo ' + win.focus(); + win.document.close(); + //--> + </script>'; + exit(); +} + +if ( $op == "list" ) { + xoops_cp_header(); + adminMenu(0); + list_blocks(); + footer_adminMenu(); + xoops_cp_footer(); + exit(); +} + +if ( $op == "order" ) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header("admin.php?fct=blocksadmin", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + exit(); + } + + $key = 0 ; + $tmpoldbmodule = array(); + foreach ( $oldbmodule as $key => $eachBmodule ) { + $tmpoldbmodule[$key] = @explode(',', $eachBmodule); + } + unset($oldbmodule); + $oldbmodule = $tmpoldbmodule; + unset($tmpoldbmodule); + + foreach (array_keys($bid) as $i) { + $isChange = 0 ; + $list = array('title', 'weight', 'visible', 'side', 'bcachetime', 'bmodule', 'domains'); + foreach ($list as $each) { + if ( is_array(${$each}[$i]) ) { + if ( count(${$each}[$i]) != count(${'old'.$each}[$i]) ) { + $isChange = 1; + } elseif ( array_diff(${$each}[$i], ${'old'.$each}[$i]) ) { + $isChange = 1; + } + } elseif ( trim(${'old'.$each}[$i]) != trim(${$each}[$i]) ) { + $isChange = 1; + } + } + if ( $isChange == 1 ) { + order_block($bid[$i], $weight[$i], $visible[$i], $side[$i], $title[$i], $bmodule[$i], $bcachetime[$i], $domains[$i]); + } + } + redirect_header("admin.php?fct=blocksadmin", 1, _AM_DBUPDATED); + exit(); +} + +if ( $op == "save" ) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header("admin.php?fct=blocksadmin", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + exit(); + } + save_block($bside, $bweight, $bvisible, $btitle, $bcontent, $bctype, $bmodule, $bcachetime, $domains); + exit(); +} + +if ( $op == "update" ) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header("admin.php?fct=blocksadmin", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + exit(); + } + $bcachetime = isset($bcachetime) ? intval($bcachetime) : 0; + $options = isset($options) ? $options : array(); + $bcontent = isset($bcontent) ? $bcontent : ''; + $bctype = isset($bctype) ? $bctype : ''; + update_block($bid, $bside, $bweight, $bvisible, $btitle, $bcontent, $bctype, $bcachetime, $bmodule, $domains, $options); +} + + +if ( $op == "delete_ok" ) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header("admin.php?fct=blocksadmin", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + exit(); + } + delete_block_ok($bid); + exit(); +} + +if ( $op == "delete" ) { + xoops_cp_header(); + adminMenu(0); + delete_block($bid); + footer_adminMenu(); + xoops_cp_footer(); + exit(); +} + +if ( $op == "edit" ) { + xoops_cp_header(); + adminMenu(0); + edit_block($bid); + footer_adminMenu(); + xoops_cp_footer(); + exit(); +} + +if ($op == 'clone') { + clone_block($bid); +} + +if ($op == 'clone_ok') { + $options = isset($options) ? $options : array(); + $bcontent = isset($bcontent) ? $bcontent : ''; + clone_block_ok($bid, $bside, $bweight, $bvisible, $btitle, $bcontent, $bcachetime, $bmodule, $domains, $options); +} + +?> \ No newline at end of file Added: XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/xoops_version.php =================================================================== --- XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/xoops_version.php (rev 0) +++ XoopsModules/multisite/trunk/modules/multisite/admin/blocksadmin/xoops_version.php 2009-03-19 10:48:26 UTC (rev 3044) @@ -0,0 +1,44 @@ +<?php +// $Id: xoops_version.php 2 2005-11-02 18:23:29Z skalpa $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ----------------... [truncated message content] |
From: <be...@us...> - 2009-04-15 07:25:46
|
Revision: 3117 http://xoops.svn.sourceforge.net/xoops/?rev=3117&view=rev Author: beckmi Date: 2009-04-15 07:25:45 +0000 (Wed, 15 Apr 2009) Log Message: ----------- Restructuring: adding /branches, /releases, and /trunk directories Added Paths: ----------- XoopsModules/content/branches/ XoopsModules/content/releases/ XoopsModules/makepayment/branches/ XoopsModules/protector/branches/ XoopsModules/protector/releases/ XoopsModules/protector/trunk/ XoopsModules/xcenter/branches/ XoopsModules/xcenter/trunk/ XoopsModules/xoopsmembers/branches/ XoopsModules/xoopsmembers/releases/ XoopsModules/xoopsmembers/trunk/ XoopsModules/xoopspartners/branches/ XoopsModules/xoopspartners/releases/ XoopsModules/xoopspartners/trunk/ XoopsModules/xoopspoll/branches/ XoopsModules/xoopspoll/releases/ XoopsModules/xoopspoll/trunk/ XoopsModules/xreaggregator/branches/ XoopsModules/xreaggregator/trunk/ XoopsModules/xsoap/branches/ XoopsModules/xsoap/trunk/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2009-04-15 08:06:59
|
Revision: 3127 http://xoops.svn.sourceforge.net/xoops/?rev=3127&view=rev Author: beckmi Date: 2009-04-15 08:06:54 +0000 (Wed, 15 Apr 2009) Log Message: ----------- Adding old XOOPS modules Added Paths: ----------- XoopsModules/mydownloads/ XoopsModules/mydownloads/branches/ XoopsModules/mydownloads/releases/ XoopsModules/mydownloads/trunk/ XoopsModules/mydownloads/trunk/admin/ XoopsModules/mydownloads/trunk/admin/index.php XoopsModules/mydownloads/trunk/admin/menu.php XoopsModules/mydownloads/trunk/blocks/ XoopsModules/mydownloads/trunk/blocks/index.html XoopsModules/mydownloads/trunk/blocks/mydownloads_top.php XoopsModules/mydownloads/trunk/brokenfile.php XoopsModules/mydownloads/trunk/comment_delete.php XoopsModules/mydownloads/trunk/comment_edit.php XoopsModules/mydownloads/trunk/comment_new.php XoopsModules/mydownloads/trunk/comment_post.php XoopsModules/mydownloads/trunk/comment_reply.php XoopsModules/mydownloads/trunk/footer.php XoopsModules/mydownloads/trunk/header.php XoopsModules/mydownloads/trunk/images/ XoopsModules/mydownloads/trunk/images/arrow.gif XoopsModules/mydownloads/trunk/images/counter.gif XoopsModules/mydownloads/trunk/images/decs.gif XoopsModules/mydownloads/trunk/images/down.gif XoopsModules/mydownloads/trunk/images/download.gif XoopsModules/mydownloads/trunk/images/editicon.gif XoopsModules/mydownloads/trunk/images/home.gif XoopsModules/mydownloads/trunk/images/index.html XoopsModules/mydownloads/trunk/images/logo-en.gif XoopsModules/mydownloads/trunk/images/mydl_slogo.png XoopsModules/mydownloads/trunk/images/newred.gif XoopsModules/mydownloads/trunk/images/platform.gif XoopsModules/mydownloads/trunk/images/pop.gif XoopsModules/mydownloads/trunk/images/shots/ XoopsModules/mydownloads/trunk/images/shots/index.html XoopsModules/mydownloads/trunk/images/size.gif XoopsModules/mydownloads/trunk/images/size2.gif XoopsModules/mydownloads/trunk/images/speck.gif XoopsModules/mydownloads/trunk/images/up.gif XoopsModules/mydownloads/trunk/images/update.gif XoopsModules/mydownloads/trunk/include/ XoopsModules/mydownloads/trunk/include/comment_functions.php XoopsModules/mydownloads/trunk/include/functions.php XoopsModules/mydownloads/trunk/include/index.html XoopsModules/mydownloads/trunk/include/notification.inc.php XoopsModules/mydownloads/trunk/include/search.inc.php XoopsModules/mydownloads/trunk/index.php XoopsModules/mydownloads/trunk/language/ XoopsModules/mydownloads/trunk/language/english/ XoopsModules/mydownloads/trunk/language/english/blocks.php XoopsModules/mydownloads/trunk/language/english/index.html XoopsModules/mydownloads/trunk/language/english/mail_template/ XoopsModules/mydownloads/trunk/language/english/mail_template/category_filesubmit_notify.tpl XoopsModules/mydownloads/trunk/language/english/mail_template/category_newfile_notify.tpl XoopsModules/mydownloads/trunk/language/english/mail_template/file_approve_notify.tpl XoopsModules/mydownloads/trunk/language/english/mail_template/global_filebroken_notify.tpl XoopsModules/mydownloads/trunk/language/english/mail_template/global_filemodify_notify.tpl XoopsModules/mydownloads/trunk/language/english/mail_template/global_filesubmit_notify.tpl XoopsModules/mydownloads/trunk/language/english/mail_template/global_newcategory_notify.tpl XoopsModules/mydownloads/trunk/language/english/mail_template/global_newfile_notify.tpl XoopsModules/mydownloads/trunk/language/english/main.php XoopsModules/mydownloads/trunk/language/english/modinfo.php XoopsModules/mydownloads/trunk/language/index.html XoopsModules/mydownloads/trunk/modfile.php XoopsModules/mydownloads/trunk/notification_update.php XoopsModules/mydownloads/trunk/ratefile.php XoopsModules/mydownloads/trunk/singlefile.php XoopsModules/mydownloads/trunk/sql/ XoopsModules/mydownloads/trunk/sql/index.html XoopsModules/mydownloads/trunk/sql/mysql.sql XoopsModules/mydownloads/trunk/submit.php XoopsModules/mydownloads/trunk/templates/ XoopsModules/mydownloads/trunk/templates/blocks/ XoopsModules/mydownloads/trunk/templates/blocks/index.html XoopsModules/mydownloads/trunk/templates/blocks/mydownloads_block_new.html XoopsModules/mydownloads/trunk/templates/blocks/mydownloads_block_top.html XoopsModules/mydownloads/trunk/templates/index.html XoopsModules/mydownloads/trunk/templates/mydownloads_brokenfile.html XoopsModules/mydownloads/trunk/templates/mydownloads_download.html XoopsModules/mydownloads/trunk/templates/mydownloads_index.html XoopsModules/mydownloads/trunk/templates/mydownloads_modfile.html XoopsModules/mydownloads/trunk/templates/mydownloads_ratefile.html XoopsModules/mydownloads/trunk/templates/mydownloads_singlefile.html XoopsModules/mydownloads/trunk/templates/mydownloads_submit.html XoopsModules/mydownloads/trunk/templates/mydownloads_topten.html XoopsModules/mydownloads/trunk/templates/mydownloads_viewcat.html XoopsModules/mydownloads/trunk/topten.php XoopsModules/mydownloads/trunk/viewcat.php XoopsModules/mydownloads/trunk/visit.php XoopsModules/mydownloads/trunk/xoops_version.php XoopsModules/mylinks/ XoopsModules/mylinks/branches/ XoopsModules/mylinks/releases/ XoopsModules/mylinks/trunk/ XoopsModules/mylinks/trunk/admin/ XoopsModules/mylinks/trunk/admin/index.php XoopsModules/mylinks/trunk/admin/menu.php XoopsModules/mylinks/trunk/blocks/ XoopsModules/mylinks/trunk/blocks/index.html XoopsModules/mylinks/trunk/blocks/mylinks_top.php XoopsModules/mylinks/trunk/brokenlink.php XoopsModules/mylinks/trunk/comment_delete.php XoopsModules/mylinks/trunk/comment_edit.php XoopsModules/mylinks/trunk/comment_new.php XoopsModules/mylinks/trunk/comment_post.php XoopsModules/mylinks/trunk/comment_reply.php XoopsModules/mylinks/trunk/header.php XoopsModules/mylinks/trunk/images/ XoopsModules/mylinks/trunk/images/arrow.gif XoopsModules/mylinks/trunk/images/down.gif XoopsModules/mylinks/trunk/images/editicon.gif XoopsModules/mylinks/trunk/images/home.gif XoopsModules/mylinks/trunk/images/index.html XoopsModules/mylinks/trunk/images/link.gif XoopsModules/mylinks/trunk/images/logo.gif XoopsModules/mylinks/trunk/images/mylinks_slogo.png XoopsModules/mylinks/trunk/images/newred.gif XoopsModules/mylinks/trunk/images/pop.gif XoopsModules/mylinks/trunk/images/shots/ XoopsModules/mylinks/trunk/images/shots/index.html XoopsModules/mylinks/trunk/images/up.gif XoopsModules/mylinks/trunk/images/update.gif XoopsModules/mylinks/trunk/include/ XoopsModules/mylinks/trunk/include/comment_functions.php XoopsModules/mylinks/trunk/include/functions.php XoopsModules/mylinks/trunk/include/index.html XoopsModules/mylinks/trunk/include/notification.inc.php XoopsModules/mylinks/trunk/include/search.inc.php XoopsModules/mylinks/trunk/index.php XoopsModules/mylinks/trunk/language/ XoopsModules/mylinks/trunk/language/english/ XoopsModules/mylinks/trunk/language/english/blocks.php XoopsModules/mylinks/trunk/language/english/index.html XoopsModules/mylinks/trunk/language/english/mail_template/ XoopsModules/mylinks/trunk/language/english/mail_template/category_linksubmit_notify.tpl XoopsModules/mylinks/trunk/language/english/mail_template/category_newlink_notify.tpl XoopsModules/mylinks/trunk/language/english/mail_template/global_linkbroken_notify.tpl XoopsModules/mylinks/trunk/language/english/mail_template/global_linkmodify_notify.tpl XoopsModules/mylinks/trunk/language/english/mail_template/global_linksubmit_notify.tpl XoopsModules/mylinks/trunk/language/english/mail_template/global_newcategory_notify.tpl XoopsModules/mylinks/trunk/language/english/mail_template/global_newlink_notify.tpl XoopsModules/mylinks/trunk/language/english/mail_template/link_approve_notify.tpl XoopsModules/mylinks/trunk/language/english/main.php XoopsModules/mylinks/trunk/language/english/modinfo.php XoopsModules/mylinks/trunk/language/index.html XoopsModules/mylinks/trunk/modlink.php XoopsModules/mylinks/trunk/myheader.php XoopsModules/mylinks/trunk/notification_update.php XoopsModules/mylinks/trunk/ratelink.php XoopsModules/mylinks/trunk/singlelink.php XoopsModules/mylinks/trunk/sql/ XoopsModules/mylinks/trunk/sql/index.html XoopsModules/mylinks/trunk/sql/mysql.sql XoopsModules/mylinks/trunk/submit.php XoopsModules/mylinks/trunk/templates/ XoopsModules/mylinks/trunk/templates/blocks/ XoopsModules/mylinks/trunk/templates/blocks/index.html XoopsModules/mylinks/trunk/templates/blocks/mylinks_block_new.html XoopsModules/mylinks/trunk/templates/blocks/mylinks_block_top.html XoopsModules/mylinks/trunk/templates/index.html XoopsModules/mylinks/trunk/templates/mylinks_brokenlink.html XoopsModules/mylinks/trunk/templates/mylinks_index.html XoopsModules/mylinks/trunk/templates/mylinks_link.html XoopsModules/mylinks/trunk/templates/mylinks_modlink.html XoopsModules/mylinks/trunk/templates/mylinks_ratelink.html XoopsModules/mylinks/trunk/templates/mylinks_singlelink.html XoopsModules/mylinks/trunk/templates/mylinks_submit.html XoopsModules/mylinks/trunk/templates/mylinks_topten.html XoopsModules/mylinks/trunk/templates/mylinks_viewcat.html XoopsModules/mylinks/trunk/topten.php XoopsModules/mylinks/trunk/viewcat.php XoopsModules/mylinks/trunk/visit.php XoopsModules/mylinks/trunk/xoops_version.php XoopsModules/news/ XoopsModules/news/archives/ XoopsModules/news/archives/1.1/ XoopsModules/news/archives/1.1/admin/ XoopsModules/news/archives/1.1/admin/index.php XoopsModules/news/archives/1.1/admin/menu.php XoopsModules/news/archives/1.1/admin/storyform.inc.php XoopsModules/news/archives/1.1/archive.php XoopsModules/news/archives/1.1/article.php XoopsModules/news/archives/1.1/blocks/ XoopsModules/news/archives/1.1/blocks/index.html XoopsModules/news/archives/1.1/blocks/news_bigstory.php XoopsModules/news/archives/1.1/blocks/news_top.php XoopsModules/news/archives/1.1/blocks/news_topics.php XoopsModules/news/archives/1.1/class/ XoopsModules/news/archives/1.1/class/class.newsstory.php XoopsModules/news/archives/1.1/class/index.html XoopsModules/news/archives/1.1/comment_delete.php XoopsModules/news/archives/1.1/comment_edit.php XoopsModules/news/archives/1.1/comment_new.php XoopsModules/news/archives/1.1/comment_post.php XoopsModules/news/archives/1.1/comment_reply.php XoopsModules/news/archives/1.1/header.php XoopsModules/news/archives/1.1/images/ XoopsModules/news/archives/1.1/images/forum.gif XoopsModules/news/archives/1.1/images/friend.gif XoopsModules/news/archives/1.1/images/index.html XoopsModules/news/archives/1.1/images/news_slogo.png XoopsModules/news/archives/1.1/images/print.gif XoopsModules/news/archives/1.1/images/size.gif XoopsModules/news/archives/1.1/images/topics/ XoopsModules/news/archives/1.1/images/topics/index.html XoopsModules/news/archives/1.1/images/topics/xoops.gif XoopsModules/news/archives/1.1/include/ XoopsModules/news/archives/1.1/include/comment_functions.php XoopsModules/news/archives/1.1/include/index.html XoopsModules/news/archives/1.1/include/notification.inc.php XoopsModules/news/archives/1.1/include/search.inc.php XoopsModules/news/archives/1.1/include/storyform.inc.php XoopsModules/news/archives/1.1/index.php XoopsModules/news/archives/1.1/language/ XoopsModules/news/archives/1.1/language/english/ XoopsModules/news/archives/1.1/language/english/admin.php XoopsModules/news/archives/1.1/language/english/blocks.php XoopsModules/news/archives/1.1/language/english/index.html XoopsModules/news/archives/1.1/language/english/mail_template/ XoopsModules/news/archives/1.1/language/english/mail_template/global_newcategory_notify.tpl XoopsModules/news/archives/1.1/language/english/mail_template/global_newstory_notify.tpl XoopsModules/news/archives/1.1/language/english/mail_template/global_storysubmit_notify.tpl XoopsModules/news/archives/1.1/language/english/mail_template/story_approve_notify.tpl XoopsModules/news/archives/1.1/language/english/main.php XoopsModules/news/archives/1.1/language/english/modinfo.php XoopsModules/news/archives/1.1/language/index.html XoopsModules/news/archives/1.1/notification_update.php XoopsModules/news/archives/1.1/print.php XoopsModules/news/archives/1.1/sql/ XoopsModules/news/archives/1.1/sql/index.html XoopsModules/news/archives/1.1/sql/mysql.sql XoopsModules/news/archives/1.1/submit.php XoopsModules/news/archives/1.1/templates/ XoopsModules/news/archives/1.1/templates/blocks/ XoopsModules/news/archives/1.1/templates/blocks/index.html XoopsModules/news/archives/1.1/templates/blocks/news_block_bigstory.html XoopsModules/news/archives/1.1/templates/blocks/news_block_new.html XoopsModules/news/archives/1.1/templates/blocks/news_block_top.html XoopsModules/news/archives/1.1/templates/blocks/news_block_topics.html XoopsModules/news/archives/1.1/templates/index.html XoopsModules/news/archives/1.1/templates/news_archive.html XoopsModules/news/archives/1.1/templates/news_article.html XoopsModules/news/archives/1.1/templates/news_index.html XoopsModules/news/archives/1.1/templates/news_item.html XoopsModules/news/archives/1.1/xoops_version.php XoopsModules/news/branches/ XoopsModules/news/releases/ XoopsModules/news/trunk/ XoopsModules/sections/ XoopsModules/sections/branches/ XoopsModules/sections/releases/ XoopsModules/sections/trunk/ XoopsModules/sections/trunk/admin/ XoopsModules/sections/trunk/admin/index.php XoopsModules/sections/trunk/admin/menu.php XoopsModules/sections/trunk/header.php XoopsModules/sections/trunk/images/ XoopsModules/sections/trunk/images/index.html XoopsModules/sections/trunk/images/print.gif XoopsModules/sections/trunk/images/sections_slogo.png XoopsModules/sections/trunk/images/template.gif XoopsModules/sections/trunk/index.php XoopsModules/sections/trunk/language/ XoopsModules/sections/trunk/language/english/ XoopsModules/sections/trunk/language/english/index.html XoopsModules/sections/trunk/language/english/main.php XoopsModules/sections/trunk/language/english/modinfo.php XoopsModules/sections/trunk/language/index.html XoopsModules/sections/trunk/sql/ XoopsModules/sections/trunk/sql/index.html XoopsModules/sections/trunk/sql/mysql.sql XoopsModules/sections/trunk/xoops_version.php XoopsModules/xoopsheadline/ XoopsModules/xoopsheadline/branches/ XoopsModules/xoopsheadline/releases/ XoopsModules/xoopsheadline/trunk/ XoopsModules/xoopsheadline/trunk/admin/ XoopsModules/xoopsheadline/trunk/admin/index.html XoopsModules/xoopsheadline/trunk/admin/index.php XoopsModules/xoopsheadline/trunk/admin/menu.php XoopsModules/xoopsheadline/trunk/blocks/ XoopsModules/xoopsheadline/trunk/blocks/headline.php XoopsModules/xoopsheadline/trunk/blocks/headline_block.html XoopsModules/xoopsheadline/trunk/blocks/index.html XoopsModules/xoopsheadline/trunk/class/ XoopsModules/xoopsheadline/trunk/class/headline.php XoopsModules/xoopsheadline/trunk/class/headlinerenderer.php XoopsModules/xoopsheadline/trunk/class/index.html XoopsModules/xoopsheadline/trunk/images/ XoopsModules/xoopsheadline/trunk/images/headline_slogo.png XoopsModules/xoopsheadline/trunk/images/index.html XoopsModules/xoopsheadline/trunk/images/rss.gif XoopsModules/xoopsheadline/trunk/include/ XoopsModules/xoopsheadline/trunk/include/functions.php XoopsModules/xoopsheadline/trunk/index.php XoopsModules/xoopsheadline/trunk/language/ XoopsModules/xoopsheadline/trunk/language/english/ XoopsModules/xoopsheadline/trunk/language/english/admin.php XoopsModules/xoopsheadline/trunk/language/english/blocks.php XoopsModules/xoopsheadline/trunk/language/english/index.html XoopsModules/xoopsheadline/trunk/language/english/main.php XoopsModules/xoopsheadline/trunk/language/english/modinfo.php XoopsModules/xoopsheadline/trunk/language/index.html XoopsModules/xoopsheadline/trunk/sql/ XoopsModules/xoopsheadline/trunk/sql/mysql.sql XoopsModules/xoopsheadline/trunk/templates/ XoopsModules/xoopsheadline/trunk/templates/blocks/ XoopsModules/xoopsheadline/trunk/templates/blocks/index.html XoopsModules/xoopsheadline/trunk/templates/blocks/xoopsheadline_block_rss.html XoopsModules/xoopsheadline/trunk/templates/index.html XoopsModules/xoopsheadline/trunk/templates/xoopsheadline_feed.html XoopsModules/xoopsheadline/trunk/templates/xoopsheadline_index.html XoopsModules/xoopsheadline/trunk/xoops_version.php Added: XoopsModules/mydownloads/trunk/admin/index.php =================================================================== --- XoopsModules/mydownloads/trunk/admin/index.php (rev 0) +++ XoopsModules/mydownloads/trunk/admin/index.php 2009-04-15 08:06:54 UTC (rev 3127) @@ -0,0 +1,1023 @@ +<?php +// $Id: index.php,v 1.18 2004/12/26 19:11:55 onokazu Exp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +include '../../../include/cp_header.php'; +if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) { + include "../language/".$xoopsConfig['language']."/main.php"; +} else { + include "../language/english/main.php"; +} +include "../include/functions.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/include/xoopscodes.php"; +include_once XOOPS_ROOT_PATH."/class/module.errorhandler.php"; +$myts =& MyTextSanitizer::getInstance(); +$eh = new ErrorHandler; +$mytree = new XoopsTree($xoopsDB->prefix("mydownloads_cat"),"cid","pid"); + +function mydownloads() +{ + global $xoopsDB, $xoopsModule; + xoops_cp_header(); + echo "<h4>"._MD_DLCONF."</h4>"; + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + // Temporarily 'homeless' downloads (to be revised in index.php breakup) + $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_broken").""); + list($totalbrokendownloads) = $xoopsDB->fetchRow($result); + if($totalbrokendownloads>0){ + $totalbrokendownloads = "<span style='color: #ff0000; font-weight: bold'>$totalbrokendownloads</span>"; + } + $result2 = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_mod").""); + list($totalmodrequests) = $xoopsDB->fetchRow($result2); + if($totalmodrequests>0){ + $totalmodrequests = "<span style='color: #ff0000; font-weight: bold'>$totalmodrequests</span>"; + } + $result3 = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status=0"); + list($totalnewdownloads) = $xoopsDB->fetchRow($result3); + if($totalnewdownloads>0){ + $totalnewdownloads = "<span style='color: #ff0000; font-weight: bold'>$totalnewdownloads</span>"; + } + echo " - <a href='".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar('mid')."'>"._MD_GENERALSET."</a>"; + echo "<br /><br />"; + echo " - <a href=index.php?op=downloadsConfigMenu>"._MD_ADDMODDELETE."</a>"; + echo "<br /><br />"; + echo " - <a href=index.php?op=listNewDownloads>"._MD_DLSWAITING." ($totalnewdownloads)</a>"; + echo "<br /><br />"; + echo " - <a href=index.php?op=listBrokenDownloads>"._MD_BROKENREPORTS." ($totalbrokendownloads)</a>"; + echo "<br /><br />"; + echo " - <a href=index.php?op=listModReq>"._MD_MODREQUESTS." ($totalmodrequests)</a>"; + $result=$xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status>0"); + list($numrows) = $xoopsDB->fetchRow($result); + echo "<br /><br /><div>"; + printf(_MD_THEREARE,$numrows); echo "</div>"; + echo"</td></tr></table>"; + xoops_cp_footer(); +} + +function listNewDownloads() +{ + global $xoopsDB, $myts, $eh, $mytree; + // List downloads waiting for validation + $downimg_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/modules/mydownloads/images/shots/"); + $result = $xoopsDB->query("SELECT lid, cid, title, url, homepage, version, size, platform, logourl, submitter FROM ".$xoopsDB->prefix("mydownloads_downloads")." where status=0 ORDER BY date DESC"); + $numrows = $xoopsDB->getRowsNum($result); + xoops_cp_header(); + echo "<h4>"._MD_DLCONF."</h4>"; + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + echo "<h4>"._MD_DLSWAITING." ($numrows)</h4><br />"; + if ($numrows>0) { + while(list($lid, $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, $uid) = $xoopsDB->fetchRow($result)) { + $result2 = $xoopsDB->query("SELECT description FROM ".$xoopsDB->prefix("mydownloads_text")." WHERE lid=$lid"); + list($description) = $xoopsDB->fetchRow($result2); + $title = $myts->makeTboxData4Edit($title); + $url = $myts->makeTboxData4Edit($url); + $homepage = $myts->makeTboxData4Edit($homepage); + $version = $myts->makeTboxData4Edit($version); + $size = $myts->makeTboxData4Edit($size); + $platform = $myts->makeTboxData4Edit($platform); + $description = $myts->makeTareaData4Edit($description); + $submitter = XoopsUser::getUnameFromId($uid); + echo "<form action=\"index.php\" method=post>\n"; + echo "<table width=\"80%\">"; + echo "<tr><td align=\"right\" nowrap>"._MD_SUBMITTER."</td><td>\n"; + echo "<a href=\"".XOOPS_URL."/userinfo.php?uid=".$uid."\">$submitter</a>"; + echo "</td></tr>\n"; + echo "<tr><td align=\"right\" nowrap>"._MD_FILETITLE."</td><td>"; + echo "<input type=\"text\" name=\"title\" size=\"50\" maxlength=\"100\" value=\"$title\">"; + echo "</td></tr><tr><td align=\"right\" nowrap>"._MD_DLURL."</td><td>"; + echo "<input type=\"text\" name=\"url\" size=\"50\" maxlength=\"250\" value=\"$url\">"; + echo " [ <a href=\"$url\">"._MD_DOWNLOAD."</a> ]"; + echo "</td></tr>"; + echo "<tr><td align=\"right\" nowrap>"._MD_CATEGORYC."</td><td>"; + $mytree->makeMySelBox("title", "title", $cid); + echo "</td></tr>\n"; + echo "<tr><td align=\"right\" nowrap>"._MD_HOMEPAGEC."</td><td>\n"; + echo "<input type=\"text\" name=\"homepage\" size=\"50\" maxlength=\"100\" value=\"$homepage\"></td></tr>\n"; + echo "<tr><td align=\"right\">"._MD_VERSIONC."</td><td>\n"; + echo "<input type=\"text\" name=\"version\" size=\"10\" maxlength=\"10\" value=\"$version\"></td></tr>\n"; + echo "<tr><td align=\"right\">"._MD_FILESIZEC."</td><td>\n"; + echo "<input type=\"text\" name=\"size\" size=\"10\" maxlength=\"8\" value=\"$size\">"._MD_BYTES."</td></tr>\n"; + echo "<tr><td align=\"right\">"._MD_PLATFORMC."</td><td>\n"; + echo "<input type=\"text\" name=\"platform\" size=\"45\" maxlength=\"50\" value=\"$platform\"></td></tr>\n"; + echo "<tr><td align=\"right\" valign=\"top\" nowrap>"._MD_DESCRIPTIONC."</td><td>\n"; + echo "<textarea name=description cols=\"60\" rows=\"5\">$description</textarea>\n"; + echo "</td></tr>\n"; + echo "<tr><td align=\"right\" nowrap>"._MD_SHOTIMAGE."</td><td>\n"; + //echo "<input type=\"text\" name=\"logourl\" size=\"50\" maxlength=\"60\">\n"; + echo "<select size='1' name='logourl'>"; + echo "<option value=' '>------</option>"; + foreach($downimg_array as $image){ + echo "<option value='".$image."'>".$image."</option>"; + } + echo "</select>"; + echo "</td></tr><tr><td></td><td>"; + $directory = XOOPS_URL."/modules/mydownloads/images/shots/"; + printf(_MD_MUSTBEVALID,$directory); + + echo "</table>\n"; + echo "<br /><input type=\"hidden\" name=\"op\" value=\"approve\"></input>"; + echo "<input type=\"hidden\" name=\"lid\" value=\"$lid\"></input>"; + echo "<input type=\"submit\" value=\""._MD_APPROVE."\"></form>\n"; + echo myTextForm("index.php?op=delNewDownload&lid=$lid",_MD_DELETE); + echo "<br /><br />"; + } + }else{ + echo _MD_NOSUBMITTED; + } + echo"</td></tr></table>"; + xoops_cp_footer(); +} + + +function downloadsConfigMenu() +{ + global $xoopsDB, $myts, $eh, $mytree; + // Add a New Main Category + xoops_cp_header(); + $downimg_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/modules/mydownloads/images/shots/"); + echo "<h4>"._MD_DLCONF."</h4>"; + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + echo "<form method=post action=index.php>\n"; + echo "<h4>"._MD_ADDMAIN."</h4><br />"._MD_TITLEC."<input type=text name=title size=30 maxlength=50><br />"; + echo _MD_IMGURL."<br /><input type=\"text\" name=\"imgurl\" size=\"100\" maxlength=\"150\" value=\"http://\"><br /><br />"; + echo "<input type=hidden name=cid value=0>\n"; + echo "<input type=hidden name=op value=addCat>"; + echo "<input type=submit value="._MD_ADD."><br /></form>"; + echo"</td></tr></table>"; + echo "<br />"; + // Add a New Sub-Category + $result=$xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_cat").""); + list($numrows)=$xoopsDB->fetchRow($result); + if($numrows>0) { + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + echo "<form method=post action=index.php>"; + echo "<h4>"._MD_ADDSUB."</h4><br />"._MD_TITLEC."<input type=text name=title size=30 maxlength=50> "._MD_IN." "; + $mytree->makeMySelBox("title", "title"); + # echo "<br />"._MD_IMGURL."<br /><input type=\"text\" name=\"imgurl\" size=\"100\" maxlength=\"150\">\n"; + echo "<input type=hidden name=op value=addCat><br /><br />"; + echo "<input type=submit value="._MD_ADD."><br /></form>"; + echo"</td></tr></table>"; + echo "<br />"; + // If there is a category, add a New Download + + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + echo "<form method=post action=index.php>\n"; + echo "<h4>"._MD_ADDNEWFILE."</h4><br />\n"; + echo "<table width=\"80%\"><tr>\n"; + echo "<td align=\"right\">"._MD_FILETITLE."</td><td>"; + echo "<input type=text name=title size=50 maxlength=100>"; + echo "</td></tr><tr><td align=\"right\" nowrap>"._MD_DLURL."</td><td>"; + echo "<input type=text name=url size=50 maxlength=250 value=\"http://\">"; + echo "</td></tr>"; + echo "<tr><td align=\"right\" nowrap>"._MD_CATEGORYC."</td><td>"; + $mytree->makeMySelBox("title", "title"); + echo "</td></tr><tr><td></td><td></td></tr>\n"; + echo "<tr><td align=\"right\" nowrap>"._MD_HOMEPAGEC."</td><td>\n"; + echo "<input type=text name=homepage size=50 maxlength=100 value=\"http://\" /></td></tr>\n"; + echo "<tr><td align=\"right\">"._MD_VERSIONC."</td><td>\n"; + echo "<input type=text name=version size=10 maxlength=10></td></tr>\n"; + echo "<tr><td align=\"right\">"._MD_FILESIZEC."</td><td>\n"; + echo "<input type=text name=size size=10 maxlength=100>"._MD_BYTES."</td></tr>\n"; + echo "<tr><td align=\"right\">"._MD_PLATFORMC."</td><td>\n"; + echo "<input type=text name=platform size=45 maxlength=60></td></tr>\n"; + echo "<tr><td align=\"right\" valign=\"top\" nowrap>"._MD_DESCRIPTIONC."</td><td>\n"; + xoopsCodeTarea("description",60,8); + xoopsSmilies("description"); + //echo "<textarea name=description cols=60 rows=5></textarea>\n"; + echo "</td></tr>\n"; + echo "<tr><td align=\"right\"nowrap>"._MD_SHOTIMAGE."</td><td>\n"; + echo "<select size='1' name='logourl'>"; + echo "<option value=' '>------</option>"; + foreach($downimg_array as $image){ + echo "<option value='".$image."'>".$image."</option>"; + } + echo "</select>"; + //echo "<input type=\"text\" name=\"logourl\" size=\"50\" maxlength=\"60\">"; + + echo "</td></tr>\n"; + echo "<tr><td align=\"right\"></td><td>"; + $directory = XOOPS_URL."/modules/mydownloads/images/shots/"; + printf(_MD_MUSTBEVALID,$directory); + echo "</td></tr>\n"; + echo "</table>\n<br />"; + echo "<input type=\"hidden\" name=\"op\" value=\"addDownload\"></input>"; + echo "<input type=\"submit\" class=\"button\" value=\""._MD_ADD."\"></input>\n"; + echo "</form>"; + echo"</td></tr></table>"; + echo "<br />"; + + // Modify Category + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + echo "<form method=post action=index.php><h4>"._MD_MODCAT."</h4><br />"; + echo _MD_CATEGORYC; + $mytree->makeMySelBox("title", "title"); + echo "<br /><br />\n"; + echo "<input type=hidden name=op value=modCat>\n"; + echo "<input type=submit value="._MD_MODIFY.">\n"; + echo "</form>"; + echo"</td></tr></table>"; + echo "<br />"; + } + // Modify Download + $result2 = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads").""); + list($numrows2) = $xoopsDB->fetchRow($result2); + if ($numrows2>0) { + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + echo "<form method=get action=\"index.php\">\n"; + echo "<h4>"._MD_MODDL."</h4><br />\n"; + echo _MD_FILEID."<input type=text name=lid size=12 maxlength=11>\n"; + echo "<input type=hidden name=fct value=mydownloads>\n"; + echo "<input type=hidden name=op value=modDownload><br /><br />\n"; + echo "<input type=submit value="._MD_MODIFY."></form>\n"; + echo"</td></tr></table>"; + } + xoops_cp_footer(); +} + +function modDownload() +{ + global $xoopsDB, $HTTP_GET_VARS, $myts, $eh, $mytree; + $downimg_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/modules/mydownloads/images/shots/"); + $lid = $HTTP_GET_VARS['lid']; + xoops_cp_header(); + echo "<h4>"._MD_DLCONF."</h4>"; + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + $result = $xoopsDB->query("SELECT cid, title, url, homepage, version, size, platform, logourl FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE lid=$lid") or $eh->show("0013"); + echo "<h4>"._MD_MODDL."</h4><br />"; + list($cid, $title, $url, $homepage, $version, $size, $platform, $logourl) = $xoopsDB->fetchRow($result); + $title = $myts->makeTboxData4Edit($title); + $url = $myts->makeTboxData4Edit($url); + $homepage = $myts->makeTboxData4Edit($homepage); + $version = $myts->makeTboxData4Edit($version); + $size = $myts->makeTboxData4Edit($size); + $platform = $myts->makeTboxData4Edit($platform); + $logourl = $myts->makeTboxData4Edit($logourl); + $result2 = $xoopsDB->query("SELECT description FROM ".$xoopsDB->prefix("mydownloads_text")." WHERE lid=$lid"); + list($description)=$xoopsDB->fetchRow($result2); + $GLOBALS['description'] = $myts->makeTareaData4Edit($description); + echo "<table>"; + echo "<form method=post action=index.php>"; + echo "<tr><td>"._MD_FILEID."</td><td><b>$lid</b></td></tr>"; + echo "<tr><td>"._MD_FILETITLE."</td><td><input type=text name=title value=\"$title\" size=50 maxlength=100></input></td></tr>\n"; + echo "<tr><td>"._MD_DLURL."</td><td><input type=text name=url value=\"$url\" size=50 maxlength=250></input></td></tr>\n"; + echo "<tr><td>"._MD_HOMEPAGEC."</td><td><input type=text name=homepage value=\"$homepage\" size=50 maxlength=100></input></td></tr>\n"; + echo "<tr><td>"._MD_VERSIONC."</td><td><input type=text name=version value=\"$version\" size=10 maxlength=10></input></td></tr>\n"; + echo "<tr><td>"._MD_FILESIZEC."</td><td><input type=text name=size value=\"$size\" size=10 maxlength=100></input>"._MD_BYTES."</td></tr>\n"; + echo "<tr><td>"._MD_PLATFORMC."</td><td><input type=text name=platform value=\"$platform\" size=45 maxlength=60></input></td></tr>\n"; + echo "<tr><td valign=\"top\">"._MD_DESCRIPTIONC."</td><td>"; + xoopsCodeTarea("description",60,8); + xoopsSmilies("description"); + //echo "<textarea name=description cols=60 rows=5>$description</textarea>"; + echo "</td></tr>"; + echo "<tr><td>"._MD_CATEGORYC."</td><td>"; + $mytree->makeMySelBox("title", "title", $cid); + echo "</td></tr>\n"; + echo "<tr><td>"._MD_SHOTIMAGE."</td><td>"; + //echo "<input type=text name=logourl value=\"$logourl\" size=\"50\" maxlength=\"60\"></input>"; + echo "<select size='1' name='logourl'>"; + echo "<option value=' '>------</option>"; + foreach($downimg_array as $image){ + if ( $image == $logourl ) { + $opt_selected = "selected='selected'"; + }else{ + $opt_selected = ""; + } + echo "<option value='".$image."' $opt_selected>".$image."</option>"; + } + echo "</select>"; + echo "</td></tr>\n"; + echo "<tr><td></td><td>"; + $directory = XOOPS_URL."/modules/mydownloads/images/shots/"; + printf(_MD_MUSTBEVALID,$directory); + echo "</td></tr>\n"; + echo "</table>"; + echo "<br /><br /><input type=hidden name=lid value=$lid></input>\n"; + echo "<input type=hidden name=op value=modDownloadS><input type=submit value="._MD_SUBMIT.">"; + echo "</form>\n"; + echo "<table><tr><td>\n"; + echo myTextForm("index.php?op=delDownload&lid=".$lid , _MD_DELETE); + echo "</td><td>\n"; + echo myTextForm("index.php?op=downloadsConfigMenu", _MD_CANCEL); + echo "</td></tr></table>\n"; + echo "<hr>"; + + $result5=$xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_votedata").""); + list($totalvotes) = $xoopsDB->getRowsNum($result5); + echo "<table width=100%>\n"; + echo "<tr><td colspan=7><b>"; + printf(_MD_DLRATINGS,$totalvotes); + echo "</b><br /><br /></td></tr>\n"; + // Show Registered Users Votes + $result5=$xoopsDB->query("SELECT ratingid, ratinguser, rating, ratinghostname, ratingtimestamp FROM ".$xoopsDB->prefix("mydownloads_votedata")." WHERE lid = $lid AND ratinguser != 0 ORDER BY ratingtimestamp DESC"); + $votes = $xoopsDB->getRowsNum($result5); + echo "<tr><td colspan=7><br /><br /><b>"; + printf(_MD_REGUSERVOTES,$votes); + echo "</b><br /><br /></td></tr>\n"; + echo "<tr><td><b>" ._MD_USER." </b></td><td><b>" ._MD_IP." </b></td><td><b>" ._MD_RATING." </b></td><td><b>" ._MD_USERAVG." </b></td><td><b>" ._MD_TOTALRATE." </b></td><td><b>" ._MD_DATE." </b></td><td align=\"center\"><b>" ._MD_DELETE."</b></td></tr>\n"; + if ($votes == 0){ + echo "<tr><td align=\"center\" colspan=\"7\">" ._MD_NOREGVOTES."<br /></td></tr>\n"; + } + $x=0; + $colorswitch="dddddd"; + while(list($ratingid, $ratinguser, $rating, $ratinghostname, $ratingtimestamp)=$xoopsDB->fetchRow($result5)) { + $formatted_date = formatTimestamp($ratingtimestamp); + //Individual user information + $result2=$xoopsDB->query("SELECT rating FROM ".$xoopsDB->prefix("mydownloads_votedata")." WHERE ratinguser = $ratinguser"); + $uservotes = $xoopsDB->getRowsNum($result2); + $useravgrating = 0; + while(list($rating2) = $xoopsDB->fetchRow($result2)){ + $useravgrating = $useravgrating + $rating2; + } + $useravgrating = $useravgrating / $uservotes; + $useravgrating = number_format($useravgrating, 1); + $ratinguname = XoopsUser::getUnameFromId($ratinguser); + // echo "<tr><td bgcolor=\"$colorswitch\">$ratinguname</td><td bgcolor=\"$colorswitch\">$ratinghostname</td><td bgcolor=\"$colorswitch\">$rating</td><td bgcolor=\"$colorswitch\">$useravgrating</td><td bgcolor=\"$colorswitch\">$uservotes</td><td bgcolor=\"$colorswitch\">$formatted_date</td><td bgcolor=\"$colorswitch\" align=\"center\"><b><a href=index.php?op=delVote&lid=$lid&rid=$ratingid>X</a></b></td></tr>\n"; + // echo "<tr><td bgcolor=\"$colorswitch\">$ratinguname</td><td bgcolor=\"$colorswitch\">$ratinghostname</td><td bgcolor=\"$colorswitch\">$rating</td><td bgcolor=\"$colorswitch\">$useravgrating</td><td bgcolor=\"$colorswitch\">$uservotes</td><td bgcolor=\"$colorswitch\">$formatted_date</td><td bgcolor=\"$colorswitch\" align=\"center\">"; + echo "<tr><td bgcolor=\"$colorswitch\">$ratinguname</td><td bgcolor=\"$colorswitch\">$ratinghostname</td><td bgcolor=\"$colorswitch\">$rating</td><td bgcolor=\"$colorswitch\">$useravgrating</td><td bgcolor=\"$colorswitch\">$uservotes</td><td bgcolor=\"$colorswitch\">$formatted_date</td><td bgcolor=\"$colorswitch\" align=\"center\">"; + //echo "<table><tr><td>\n"; + echo myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid" , "X"); + // echo "</td></tr></table>\n"; + echo "</td></tr>\n"; + + $x++; + if ($colorswitch=="dddddd"){ + $colorswitch="ffffff"; + } else { + $colorswitch="dddddd"; + } + } + + // Show Unregistered Users Votes + $result5=$xoopsDB->query("SELECT ratingid, rating, ratinghostname, ratingtimestamp FROM ".$xoopsDB->prefix("mydownloads_votedata")." WHERE lid = $lid AND ratinguser = 0 ORDER BY ratingtimestamp DESC"); + $votes = $xoopsDB->getRowsNum($result5); + echo "<tr><td colspan=7><b><br /><br />"; + printf(_MD_ANONUSERVOTES,$votes); + echo "</b><br /><br /></td></tr>\n"; + echo "<tr><td colspan=2><b>" ._MD_IP." </b></td><td colspan=3><b>" ._MD_RATING." </b></td><td><b>" ._MD_DATE." </b></b></td><td align=\"center\"><b>" ._MD_DELETE."</b></td><br /></tr>"; + if ($votes == 0) { + echo "<tr><td colspan=\"7\" align=\"center\">" ._MD_NOUNREGVOTES."<br /></td></tr>"; + } + $x=0; + $colorswitch="dddddd"; + while(list($ratingid, $rating, $ratinghostname, $ratingtimestamp)=$xoopsDB->fetchRow($result5)) { + $formatted_date = formatTimestamp($ratingtimestamp); + // echo "<td colspan=\"2\" bgcolor=\"$colorswitch\">$ratinghostname</td><td colspan=\"3\" bgcolor=\"$colorswitch\">$rating</td><td bgcolor=\"$colorswitch\">$formatted_date</td><td bgcolor=\"$colorswitch\" aling=\"center\"><b><a href=index.php?op=delVote&lid=$lid&rid=$ratingid>X</a></b></td></tr>"; + echo "<td colspan=\"2\" bgcolor=\"$colorswitch\">$ratinghostname</td><td colspan=\"3\" bgcolor=\"$colorswitch\">$rating</td><td bgcolor=\"$colorswitch\">$formatted_date</td><td bgcolor=\"$colorswitch\" align=\"center\">"; + //echo "<table><tr><td>\n"; + //align=\"center\" + echo myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid" , "X"); + //echo "</td></tr></table>\n"; + + echo "</td></tr>"; + + $x++; + if ($colorswitch=="dddddd") { + $colorswitch="ffffff"; + } else { + $colorswitch="dddddd"; + } + } + echo "<tr><td colspan=\"6\"> <br /></td></tr>\n"; + echo "</table>\n"; + echo"</td></tr></table>"; + xoops_cp_footer(); +} + +function delVote() +{ + global $xoopsDB, $HTTP_GET_VARS, $eh; + $rid = $HTTP_GET_VARS['rid']; + $lid = $HTTP_GET_VARS['lid']; + $sql = sprintf("DELETE FROM %s WHERE ratingid = %u", $xoopsDB->prefix("mydownloads_votedata"), $rid); + $xoopsDB->query($sql) or $eh->show("0013"); + updaterating($lid); + redirect_header("index.php",1,_MD_VOTEDELETED); +} + +function listBrokenDownloads() +{ + global $xoopsDB, $eh; + $result = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix("mydownloads_broken")." ORDER BY reportid"); + $totalbrokendownloads = $xoopsDB->getRowsNum($result); + xoops_cp_header(); + echo "<h4>"._MD_DLCONF."</h4>"; + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + echo "<h4>"._MD_BROKENREPORTS." ($totalbrokendownloads)</h4><br />"; + + if ($totalbrokendownloads==0) { + echo _MD_NOBROKEN; + } else { + echo "<center>"._MD_IGNOREDESC."<br />"._MD_DELETEDESC."</center><br /><br /><br />"; + $colorswitch="#dddddd"; + echo "<table align=\"center\" width=\"90%\">"; + echo " + <tr> + <td><b>"._MD_FILETITLE."</b></td> + <td><b>" ._MD_REPORTER."</b></td> + <td><b>" ._MD_FILESUBMITTER."</b></td> + <td><b>" ._MD_IGNORE."</b></td> + <td><b>" ._EDIT."</b></td> + <td><b>" ._MD_DELETE."</b></td> + </tr>"; + while(list($reportid, $lid, $sender, $ip)=$xoopsDB->fetchRow($result)){ + $result2 = $xoopsDB->query("SELECT title, url, submitter FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE lid=$lid"); + if ($sender != 0) { + $result3 = $xoopsDB->query("SELECT uname, email FROM ".$xoopsDB->prefix("users")." WHERE uid=".$sender.""); + list($sendername, $email)=$xoopsDB->fetchRow($result3); + } + list($title, $url, $owner)=$xoopsDB->fetchRow($result2); + $result4 = $xoopsDB->query("SELECT uname, email FROM ".$xoopsDB->prefix("users")." WHERE uid=".$owner.""); + list($ownername, $owneremail)=$xoopsDB->fetchRow($result4); + echo "<tr><td bgcolor=$colorswitch><a href=$url target='_blank'>$title</a></td>"; + if ($email=="") { + echo "<td bgcolor=$colorswitch>$sendername ($ip)"; + } else { + echo "<td bgcolor=$colorswitch><a href=mailto:$email>$sendername</a> ($ip)"; + } + echo "</td>"; + if ($owneremail=='') { + echo "<td bgcolor=$colorswitch>$ownername"; + } else { + echo "<td bgcolor=$colorswitch><a href=mailto:$owneremail>$ownername</a>"; + } + echo "</td><td bgcolor='$colorswitch' align='center'>\n"; + echo myTextForm("index.php?op=ignoreBrokenDownloads&lid=$lid" , "X"); + echo "</td><td bgcolor='$colorswitch' align='center'>\n"; + echo myTextForm("index.php?op=modDownload&lid=$lid" , "X"); + echo "</td><td bgcolor='$colorswitch' align='center'>\n"; + echo myTextForm("index.php?op=delBrokenDownloads&lid=$lid" , "X"); + echo "</td></tr>\n"; + if ($colorswitch=="#dddddd") { + $colorswitch="#ffffff"; + } else { + $colorswitch="#dddddd"; + } + } + echo "</table>"; + } + echo"</td></tr></table>"; + xoops_cp_footer(); +} + +function delBrokenDownloads() +{ + global $xoopsDB, $HTTP_GET_VARS, $eh; + $lid = $HTTP_GET_VARS['lid']; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_broken"), $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("index.php",1,_MD_FILEDELETED); +} + +function ignoreBrokenDownloads() +{ + global $xoopsDB, $HTTP_GET_VARS, $eh; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_broken"), $HTTP_GET_VARS['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("index.php",1,_MD_BROKENDELETED); +} + +function listModReq() +{ + global $xoopsDB, $myts, $eh, $mytree, $xoopsModuleConfig; + $result = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix("mydownloads_mod")." ORDER BY requestid"); + $totalmodrequests = $xoopsDB->getRowsNum($result); + xoops_cp_header(); + echo "<h4>"._MD_DLCONF."</h4>"; + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + echo "<h4>"._MD_USERMODREQ." ($totalmodrequests)</h4><br />"; + if($totalmodrequests>0){ + echo "<table width=95%><tr><td>"; + $lookup_lid = array(); + while(list($requestid, $lid, $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, $description, $modifysubmitter)=$xoopsDB->fetchRow($result)) { + $lookup_lid[$requestid] = $lid; + $result2 = $xoopsDB->query("SELECT cid, title, url, homepage, version, size, platform, logourl, submitter FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE lid=$lid"); + list($origcid, $origtitle, $origurl, $orighomepage, $origversion, $origsize, $origplatform, $origlogourl, $owner)=$xoopsDB->fetchRow($result2); + $result2 = $xoopsDB->query("SELECT description FROM ".$xoopsDB->prefix("mydownloads_text")." WHERE lid=$lid"); + list($origdescription) = $xoopsDB->fetchRow($result2); + $result7 = $xoopsDB->query("SELECT uname, email FROM ".$xoopsDB->prefix("users")." WHERE uid=$modifysubmitter"); + $result8 = $xoopsDB->query("SELECT uname, email FROM ".$xoopsDB->prefix("users")." WHERE uid=$owner"); + $cidtitle=$mytree->getPathFromId($cid, "title"); + $origcidtitle=$mytree->getPathFromId($origcid, "title"); + list($submittername, $submitteremail)=$xoopsDB->fetchRow($result7); + list($ownername, $owneremail)=$xoopsDB->fetchRow($result8); + $title = $myts->makeTboxData4Show($title); + $url = $myts->makeTboxData4Show($url); + $homepage = $myts->makeTboxData4Show($homepage); + $version = $myts->makeTboxData4Show($version); + $size = $myts->makeTboxData4Show($size); + $platform = $myts->makeTboxData4Show($platform); + + // use original image file to prevent users from changing screen shots file + $origlogourl = $myts->makeTboxData4Edit($origlogourl); + $logourl = $origlogourl; + $description = $myts->makeTareaData4Show($description, 0); + $origurl = $myts->makeTboxData4Show($origurl); + $orighomepage = $myts->makeTboxData4Show($orighomepage); + $origversion = $myts->makeTboxData4Show($origversion); + $origsize = $myts->makeTboxData4Show($origsize); + $origplatform = $myts->makeTboxData4Show($origplatform); + $origdescription = $myts->makeTareaData4Show($origdescription, 0); + if (empty($ownername)) { + $ownername = "administration"; + } + echo "<table border=1 bordercolor=black cellpadding=5 cellspacing=0 align=center width=450><tr><td> + <table width=100% bgcolor=dddddd> + <tr> + <td valign=top width=45%><b>"._MD_ORIGINAL."</b></td> + <td rowspan=14 valign=top align=left><br />"._MD_DESCRIPTIONC."<br />$origdescription</td> + </tr> + <tr><td valign=top width=45%><small>"._MD_FILETITLE." ".$origtitle."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_DLURL." ".$origurl."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_CATEGORYC." ".$origcidtitle."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_HOMEPAGEC." ".$orighomepage."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_VERSIONC." ".$origversion."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_FILESIZEC." ".$origsize."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_PLATFORMC." ".$origplatform."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_SHOTIMAGE."</small> "; + if ( $xoopsModuleConfig['useshots'] && !empty($origlogourl) ){ + echo "<img src=\"".XOOPS_URL."/modules/mydownloads/images/shots/".$origlogourl."\" width=\"".$xoopsModuleConfig['shotwidth']."\">"; + }else{ + echo " "; + } + echo "</td></tr> + </table></td></tr><tr><td> + <table width=100%> + <tr> + <td valign=top width=45%><b>"._MD_PROPOSED."</b></td> + <td rowspan=14 valign=top align=left><br />"._MD_DESCRIPTIONC."<br />$description</td> + </tr> + <tr><td valign=top width=45%><small>"._MD_FILETITLE." ".$title."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_DLURL." ".$url."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_CATEGORYC." ".$cidtitle."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_HOMEPAGEC." ".$homepage."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_VERSIONC." ".$version."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_FILESIZEC." ".$size."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_PLATFORMC." ".$platform."</small></td></tr> + <tr><td valign=top width=45%><small>"._MD_SHOTIMAGE."</small> "; + if ( $xoopsModuleConfig['useshots'] && !empty($logourl) ){ + echo "<img src=\"".XOOPS_URL."/modules/mydownloads/images/shots/".$logourl."\" width=\"".$xoopsModuleConfig['shotwidth']."\">"; + } else { + echo " "; + } + echo "</td></tr> + </table></td></tr></table> + <table align=center width=450> + <tr>"; + if ( $submitteremail=="" ) { + echo "<td align=left><small>"._MD_SUBMITTER." $submittername</small></td>"; + } else { + echo "<td align=left><small>"._MD_SUBMITTER." <a href=mailto:$submitteremail>$submittername</a></small></td>"; + } + if ($owneremail=="") { + echo "<td align=center><small>"._MD_OWNER." $ownername</small></td>"; + } else { + echo "<td align=center><small>"._MD_OWNER." <a href=mailto:$owneremail>$ownername</a></small></td>"; + } + echo "<td align=right><small>\n"; + echo "<table><tr><td>\n"; + echo myTextForm("index.php?op=changeModReq&requestid=$requestid" , _MD_APPROVE); + echo "</td><td>\n"; + echo myTextForm("index.php?op=modDownload&lid=$lookup_lid[$requestid]", _EDIT); + echo "</td><td>\n"; + echo myTextForm("index.php?op=ignoreModReq&requestid=$requestid", _MD_IGNORE); + echo "</td></tr></table>\n"; + echo "</small></td></tr>\n"; + echo "</table><br /><br />"; + } + echo "</td></tr></table>"; + }else { + echo _MD_NOMODREQ; + } + echo"</td></tr></table>"; + xoops_cp_footer(); +} + +function changeModReq() +{ + global $xoopsDB, $HTTP_GET_VARS, $eh, $myts; + $requestid = $HTTP_GET_VARS['requestid']; + $query = "SELECT lid, cid, title, url, homepage, version, size, platform, logourl, description FROM ".$xoopsDB->prefix("mydownloads_mod")." WHERE requestid=$requestid"; + $result = $xoopsDB->query($query); + while(list($lid, $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, $description)=$xoopsDB->fetchRow($result)) { + if (get_magic_quotes_runtime()) { + $title = stripslashes($title); + $url = stripslashes($url); + $homepage = stripslashes($homepage); + $logourl = stripslashes($logourl); + $description = stripslashes($description); + } + $title = addslashes($title); + $url = addslashes($url); + $homepage = addslashes($homepage); + $logourl = addslashes($logourl); + $description = addslashes($description); + $sql = sprintf("UPDATE %s SET cid = %u,title = '%s', url = '%s', homepage = '%s', version = '%s', size = %u, platform = '%s', logourl = '%s', status = %u, date = %u WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, 2, time(), $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("UPDATE %s SET description = '%s' WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $description, $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("DELETE FROM %s WHERE requestid = %u", $xoopsDB->prefix("mydownloads_mod"), $requestid); + $xoopsDB->query($sql) or $eh->show("0013"); + } + redirect_header("index.php",1,_MD_DBUPDATED); +} + +function ignoreModReq() +{ + global $xoopsDB, $HTTP_GET_VARS, $eh; + $sql = sprintf("DELETE FROM %s WHERE requestid = %u", $xoopsDB->prefix("mydownloads_mod"), $HTTP_GET_VARS['requestid']); + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("index.php",1,_MD_MODREQDELETED); +} + +function modDownloadS() +{ + global $xoopsDB, $HTTP_POST_VARS, $myts, $eh; + $cid = $HTTP_POST_VARS["cid"]; + if (($HTTP_POST_VARS["url"]) || ($HTTP_POST_VARS["url"]!="")) { + $url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]); + } + $logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]); + $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); + $homepage = $myts->makeTboxData4Save($HTTP_POST_VARS["homepage"]); + $version = $myts->makeTboxData4Save($HTTP_POST_VARS["version"]); + $size = $myts->makeTboxData4Save($HTTP_POST_VARS["size"]); + $platform = $myts->makeTboxData4Save($HTTP_POST_VARS["platform"]); + $description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]); + $sql = sprintf("UPDATE %s SET cid = %u, title = '%s', url = '%s', homepage = '%s', version = '%s', size = %u, platform = '%s', logourl = '%s', status = %u, date = %u WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, 2, time(), $HTTP_POST_VARS['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("UPDATE %s SET description = '%s' WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $description, $HTTP_POST_VARS['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("index.php",1,_MD_DBUPDATED); +} + +function delDownload() +{ + global $xoopsDB, $HTTP_GET_VARS, $eh, $xoopsModule; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $HTTP_GET_VARS['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $HTTP_GET_VARS['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_votedata"), $HTTP_GET_VARS['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + // delete comments + xoops_comment_delete($xoopsModule->getVar('mid'), $HTTP_GET_VARS['lid']); + redirect_header("index.php",1,_MD_FILEDELETED); +} + +function modCat() +{ + global $xoopsDB, $HTTP_POST_VARS, $myts, $eh, $mytree; + $cid = $HTTP_POST_VARS["cid"]; + xoops_cp_header(); + echo "<h4>"._MD_DLCONF."</h4>"; + echo"<table width='100%' border='0' cellspacing='1' class='outer'>" + ."<tr class=\"odd\"><td>"; + echo "<h4>"._MD_MODCAT."</h4><br />"; + $result=$xoopsDB->query("SELECT pid, title, imgurl FROM ".$xoopsDB->prefix("mydownloads_cat")." WHERE cid=$cid"); + list($pid,$title,$imgurl) = $xoopsDB->fetchRow($result); + $title = $myts->makeTboxData4Edit($title); + $imgurl = $myts->makeTboxData4Edit($imgurl); + echo "<form action=index.php method=post>"._MD_TITLEC."<input type=text name=title value=\"$title\" size=51 maxlength=50><br /><br />"._MD_IMGURLMAIN."<br /><input type=text name=imgurl value=\"$imgurl\" size=100 maxlength=150><br /> + <br />"._MD_PARENT." "; + $mytree->makeMySelBox("title", "title", $pid, 1, "pid"); + echo "<input type='hidden' name='cid' value='$cid'> + <input type=hidden name=op value=modCatS><br /> + <input type=submit value=\""._MD_SAVE."\"> + <input type=button value="._MD_DELETE." onClick=\"location='index.php?pid=$pid&cid=$cid&op=delCat'\">"; + echo " <input type=button value="._MD_CANCEL." onclick=\"javascript:history.go(-1)\" />"; + echo "</form>"; + echo"</td></tr></table>"; + xoops_cp_footer(); +} + +function modCatS() +{ + global $xoopsDB, $HTTP_POST_VARS, $myts, $eh; + $cid = $HTTP_POST_VARS['cid']; + $sid = $HTTP_POST_VARS['pid']; + $title = $myts->makeTboxData4Save($HTTP_POST_VARS['title']); + if (empty($title)) { + redirect_header("index.php", 2, _MD_ERRORTITLE); + exit(); + } + if (($HTTP_POST_VARS["imgurl"]) || ($HTTP_POST_VARS["imgurl"]!="")) { + $imgurl = $myts->makeTboxData4Save($HTTP_POST_VARS["imgurl"]); + } + $sql = sprintf("UPDATE %s SET title = '%s', imgurl = '%s', pid = %u WHERE cid = %u", $xoopsDB->prefix("mydownloads_cat"), $title, $imgurl, $sid, $cid); + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("index.php",1,_MD_DBUPDATED); +} + +function delCat() +{ + global $xoopsDB, $HTTP_GET_VARS, $HTTP_POST_VARS, $eh, $mytree, $xoopsModule; + $cid = isset($HTTP_POST_VARS['cid']) ? intval($HTTP_POST_VARS['cid']) : intval($HTTP_GET_VARS['cid']); + $ok = isset($HTTP_POST_VARS['ok']) ? intval($HTTP_POST_VARS['ok']) : 0; + if ($ok == 1) { + //get all subcategories under the specified category + $arr=$mytree->getAllChildId($cid); + $lcount = count($arr); + for ($i = 0; $i < $lcount; $i++) { + //get all downloads in each subcategory + $result=$xoopsDB->query("SELECT lid FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE cid=".$arr[$i]."") or $eh->show("0013"); + //now for each download, delete the text data and vote ata associated with the download + while ( list($lid)=$xoopsDB->fetchRow($result) ) { + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_votedata"), $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + // delete comments + xoops_comment_delete($xoopsModule->getVar('mid'), $lid); + } + + //all downloads for each subcategory is deleted, now delete the subcategory data + $sql = sprintf("DELETE FROM %s WHERE cid = %u", $xoopsDB->prefix("mydownloads_cat"), $arr[$i]); + $xoopsDB->query($sql) or $eh->show("0013"); + } + //all subcategory and associated data are deleted, now delete category data and its associated data + $result=$xoopsDB->query("SELECT lid FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE cid=".$cid."") or $eh->show("0013"); + while(list($lid)=$xoopsDB->fetchRow($result)){ + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + // delete comments + xoops_comment_delete($xoopsModule->getVar('mid'), $lid); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_votedata"), $lid); + $xoopsDB->query($sql) or $eh->show("0013"); + } + $sql = sprintf("DELETE FROM %s WHERE cid = %u", $xoopsDB->prefix("mydownloads_cat"), $cid); + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("index.php",1,_MD_CATDELETED); + exit(); + } else { + xoops_cp_header(); + echo "<h4>"._MD_DLCONF."</h4>"; + xoops_confirm(array('op' => 'delCat', 'cid' => $cid, 'ok' => 1), 'index.php', _MD_WARNING); + xoops_cp_footer(); + } +} + +function delNewDownload() +{ + global $xoopsDB, $HTTP_GET_VARS, $eh, $xoopsModule; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $HTTP_GET_VARS['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $HTTP_GET_VARS['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + // delete comments + xoops_comment_delete($xoopsModule->getVar('mid'), $HTTP_GET_VARS['lid']); + redirect_header("index.php",1,_MD_FILEDELETED); +} + +function addCat() +{ + global $xoopsDB, $HTTP_POST_VARS, $myts, $eh; + $pid = $HTTP_POST_VARS["cid"]; + $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); + if (empty($title)) { + redirect_header("index.php", 2, _MD_ERRORTITLE); + } + if (($HTTP_POST_VARS["imgurl"]) || ($HTTP_POST_VARS["imgurl"]!="")) { + $imgurl = $myts->makeTboxData4Save($HTTP_POST_VARS["imgurl"]); + } + $newid = $xoopsDB->genId($xoopsDB->prefix("mydownloads_cat")."_cid_seq"); + $sql = sprintf("INSERT INTO %s (cid, pid, title, imgurl) VALUES (%u, %u, '%s', '%s')", $xoopsDB->prefix("mydownloads_cat"), $newid, $pid, $title, $imgurl); + $xoopsDB->query($sql) ... [truncated message content] |
From: <wis...@us...> - 2009-05-16 00:38:43
|
Revision: 3244 http://xoops.svn.sourceforge.net/xoops/?rev=3244&view=rev Author: wishcraft Date: 2009-05-16 00:38:33 +0000 (Sat, 16 May 2009) Log Message: ----------- Translator Module for XOOPS 2.3 - xTRANSAM 1.01 (Internal Development) Added Paths: ----------- XoopsModules/xtransam/ XoopsModules/xtransam/branches/ XoopsModules/xtransam/releases/ XoopsModules/xtransam/releases/1.01/ XoopsModules/xtransam/releases/1.01/xtransam/ XoopsModules/xtransam/releases/1.01/xtransam/admin/ XoopsModules/xtransam/releases/1.01/xtransam/admin/admin_header.php XoopsModules/xtransam/releases/1.01/xtransam/admin/index.html XoopsModules/xtransam/releases/1.01/xtransam/admin/index.php XoopsModules/xtransam/releases/1.01/xtransam/admin/menu.php XoopsModules/xtransam/releases/1.01/xtransam/class/ XoopsModules/xtransam/releases/1.01/xtransam/class/files.php XoopsModules/xtransam/releases/1.01/xtransam/class/googleprovider.php XoopsModules/xtransam/releases/1.01/xtransam/class/index.html XoopsModules/xtransam/releases/1.01/xtransam/class/iobase.php XoopsModules/xtransam/releases/1.01/xtransam/class/languages.php XoopsModules/xtransam/releases/1.01/xtransam/class/translator.php XoopsModules/xtransam/releases/1.01/xtransam/images/ XoopsModules/xtransam/releases/1.01/xtransam/images/Thumbs.db XoopsModules/xtransam/releases/1.01/xtransam/images/index.html XoopsModules/xtransam/releases/1.01/xtransam/images/left_both.gif XoopsModules/xtransam/releases/1.01/xtransam/images/right_both.gif XoopsModules/xtransam/releases/1.01/xtransam/images/xtransam_slogo.png XoopsModules/xtransam/releases/1.01/xtransam/include/ XoopsModules/xtransam/releases/1.01/xtransam/include/forms.php XoopsModules/xtransam/releases/1.01/xtransam/include/functions.php XoopsModules/xtransam/releases/1.01/xtransam/include/index.html XoopsModules/xtransam/releases/1.01/xtransam/language/ XoopsModules/xtransam/releases/1.01/xtransam/language/english/ XoopsModules/xtransam/releases/1.01/xtransam/language/english/admin.php XoopsModules/xtransam/releases/1.01/xtransam/language/english/index.html XoopsModules/xtransam/releases/1.01/xtransam/language/english/modinfo.php XoopsModules/xtransam/releases/1.01/xtransam/language/index.html XoopsModules/xtransam/releases/1.01/xtransam/sql/ XoopsModules/xtransam/releases/1.01/xtransam/sql/index.html XoopsModules/xtransam/releases/1.01/xtransam/sql/mysql.sql XoopsModules/xtransam/releases/1.01/xtransam/sql/mysql.sql.bak XoopsModules/xtransam/releases/1.01/xtransam/xoops_version.php XoopsModules/xtransam/trunk/ XoopsModules/xtransam/trunk/htdocs/ XoopsModules/xtransam/trunk/htdocs/modules/ XoopsModules/xtransam/trunk/htdocs/modules/xtransam/ XoopsModules/xtransam/trunk/htdocs/modules/xtransam/admin/ XoopsModules/xtransam/trunk/htdocs/modules/xtransam/admin/admin_header.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/admin/index.html XoopsModules/xtransam/trunk/htdocs/modules/xtransam/admin/index.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/admin/menu.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/class/ XoopsModules/xtransam/trunk/htdocs/modules/xtransam/class/files.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/class/googleprovider.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/class/index.html XoopsModules/xtransam/trunk/htdocs/modules/xtransam/class/iobase.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/class/languages.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/class/translator.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/images/ XoopsModules/xtransam/trunk/htdocs/modules/xtransam/images/Thumbs.db XoopsModules/xtransam/trunk/htdocs/modules/xtransam/images/index.html XoopsModules/xtransam/trunk/htdocs/modules/xtransam/images/left_both.gif XoopsModules/xtransam/trunk/htdocs/modules/xtransam/images/right_both.gif XoopsModules/xtransam/trunk/htdocs/modules/xtransam/images/xtransam_slogo.png XoopsModules/xtransam/trunk/htdocs/modules/xtransam/include/ XoopsModules/xtransam/trunk/htdocs/modules/xtransam/include/forms.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/include/functions.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/include/index.html XoopsModules/xtransam/trunk/htdocs/modules/xtransam/language/ XoopsModules/xtransam/trunk/htdocs/modules/xtransam/language/english/ XoopsModules/xtransam/trunk/htdocs/modules/xtransam/language/english/admin.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/language/english/index.html XoopsModules/xtransam/trunk/htdocs/modules/xtransam/language/english/modinfo.php XoopsModules/xtransam/trunk/htdocs/modules/xtransam/language/index.html XoopsModules/xtransam/trunk/htdocs/modules/xtransam/sql/ XoopsModules/xtransam/trunk/htdocs/modules/xtransam/sql/index.html XoopsModules/xtransam/trunk/htdocs/modules/xtransam/sql/mysql.sql XoopsModules/xtransam/trunk/htdocs/modules/xtransam/sql/mysql.sql.bak XoopsModules/xtransam/trunk/htdocs/modules/xtransam/xoops_version.php Added: XoopsModules/xtransam/releases/1.01/xtransam/admin/admin_header.php =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/admin/admin_header.php (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/admin/admin_header.php 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1,50 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // + error_reporting(E_ALL); +include '../../../mainfile.php'; +include '../../../include/cp_header.php'; +include '../include/functions.php'; + +include_once XOOPS_ROOT_PATH . '/class/xoopstree.php'; +include_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; +include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; + +if (is_object($xoopsUser)) { + $xoopsModule = XoopsModule::getByDirname("xsoap"); + if (!$xoopsUser->isAdmin($xoopsModule->mid())) { + redirect_header(XOOPS_URL . "/", 3, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/", 1, _NOPERM); + exit(); +} +$myts = &MyTextSanitizer::getInstance(); +error_reporting(E_ALL); +?> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/admin/index.html =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/admin/index.html (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/admin/index.html 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/admin/index.php =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/admin/index.php (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/admin/index.php 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1,232 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // +define ("_CHARSET","UTF-8"); +define ("_CHARSET_ISO","ISO-8859-1"); + +include 'admin_header.php'; +include_once '../include/forms.php'; + +error_reporting(E_ALL); +global $xoopsDB; + + if (isset($_GET)) { + foreach ($_GET as $k => $v) { + ${$k} = $v; + } + } + + if (isset($_POST)) { + foreach ($_POST as $k => $v) { + ${$k} = $v; + } + } + + +ini_set("max_execution_time", "300"); + +switch ($op){ +case "save-languages": + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + foreach($id as $key => $value) + { + switch($value){ + case "new": + $lang = $lang_handler->create(); + break; + default: + $lang = $lang_handler->get($value); + } + + if (!empty($name[$value])&&!empty($code[$value])) { + $lang->setVar('name', $name[$value]); + $lang->setVar('code', $code[$value]); + $lang->setVar('foldername', $folder[$value]); + @$lang_handler->insert($lang); + } + } + redirect_header("index.php?op=languages",2,_XT_LANGSAVEOK); + break; +case "languages": + xoops_cp_header(); + adminMenu(3); + languagesForm_display(); + footer_adminMenu(); + xoops_cp_footer(); + + break; +case "export": + global $xoopsUser; + + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $io = $io_handler->get($id); + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + $files = $files_handler->getObjects($criteria); + + $from_folder = $lang_handler->folder($io->getvar('languagefrom')); + $to_folder = $lang_handler->folder($io->getvar('languageto')); + + foreach($files as $file) { + $path = explode('/', $file->getVar('path')); + + foreach($path as $key => $value) + if (strtolower($value) == strtolower($from_folder)) { + $path[$key] = $to_folder; + } + + $wpath = implode('/', $path).'/'; + + if($wpath!=$file->getVar('path')){ + $bfile = file($file->getVar('path').$file->getVar('filename')); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + $criteria->add(new Criteria('fileid', $file->getVar('id'))); + $trans = $trans_handler->getObjects($criteria); + foreach($trans as $tran) { + $search = $trans_handler->change_charset(hex2bin($tran->getVar('replacestr')), _CHARSET_ISO, _CHARSET); + $name = $trans_handler->change_charset(hex2bin($tran->getVar('hexval_name')), _CHARSET_ISO, _CHARSET); + $translation = $trans_handler->change_charset(hex2bin($tran->getVar('hexval_translation')), _CHARSET_ISO, _CHARSET); + $translation = str_replace('\"', '"', $translation); + $translation = str_replace('"', '\"', $translation); + $replace = 'define("'.$name.'", "'.$translation.'");'; + $bfile[$tran->getVar('line')] = str_replace($search, $replace, $bfile[$tran->getVar('line')]); + } + @makeWritable($wpath, true); + if (file_exists($wpath.$file->getVar('filename'))) + unlink($wpath.$file->getVar('filename')); + $file = @fopen($wpath.$file->getVar('filename'), 'w'); + $bfile[-1] = "<?php // Translation done by xtransam & ".$xoopsUser->uname()." - ".date('Y-m-d H:i')." ?>\n"; + $buffer = implode('', $bfile); + fwrite($file, $buffer, strlen($buffer)); + fclose($file); + + } + + } + redirect_header("index.php?op=bbs",2,_XT_EXPORTCOMPLETE); + break; +case "save": + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + foreach($trans as $key => $value) { + $tran = $trans_handler->get($key); + $tran->setVar('hexval_translation', bin2hex($trans_handler->change_charset($value, _CHARSET, _CHARSET_ISO))); + $trans_handler->insert($tran); + } + redirect_header("index.php?op=manage&id=$id&fileid=$fileid",2,_XT_SAVECOMPLETE); + break; +case "manage": + xoops_cp_header(); + adminMenu(2); + managerForm_display($id, $fileid); + footer_adminMenu(); + xoops_cp_footer(); + + break; + +case "analysis": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $io = $io_handler->get($id); + @$files_handler->analysepath($io); + redirect_header("index.php?op=bbs",2,_XT_ANLYSISCOMPLETE); + break; + +case "import": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $io = $io_handler->get($id); + @$files_handler->importfiles($io); + redirect_header("index.php?op=bbs",2,_XT_IMPORTCOMPLETE); + break; + +case "translate": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $io = $io_handler->get($id); + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + if ($trans_handler->getCount($criteria)>0) { + $trans = $trans_handler->getObjects($criteria); + $start = time(); + foreach($trans as $tran) { + if ($tran->isempty()){ + $from = $lang_handler->code($io->getVar('languagefrom')); + $to = $lang_handler->code($io->getVar('languageto')); + $provider = $lang_handler->provider($tran->getVar('toid')); + if (strlen($provider)>0) { + $provider_handler = xoops_getmodulehandler($provider.'provider', 'xtransam'); + $translation = $trans_handler->change_charset($provider_handler->translate($from,$to, $tran->getVar('hexval_orginal')), _CHARSET, _CHARSET_ISO); + $tran->setVar('hexval_translation', bin2hex($translation)); + if (strlen($translation)>0) + $tran->setVar('auto', 1); + else + $tran->setVar('auto', 0); + $trans_handler->insert($tran); + } + if ($start+28<time()) + { + $restart++; + redirect_header("index.php?op=translate&id=$id&restart=$restart",2,sprintf(_XT_30SECONDSCONTINUING, $restart)); + } + } + } + } + redirect_header("index.php?op=bbs",2,_XT_TRANSLATIONCOMPLETE); + break; + +case "languages": + + break; +case "bbs": + + xoops_cp_header(); + adminMenu(2); + translationForm_display(false); + footer_adminMenu(); + xoops_cp_footer(); + + break; + +case "wizard": +default: + + xoops_cp_header(); + adminMenu(1); + wizardForm_display($step); + translationForm_display(true); + footer_adminMenu(); + xoops_cp_footer(); + break; + +} + + + +?> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/admin/menu.php =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/admin/menu.php (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/admin/menu.php 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1,38 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // + +global $adminmenu; +$adminmenu = array(); +$adminmenu[1]['title'] = _MI_XTRANSAM_ADMENU1; +$adminmenu[1]['link'] = "admin/index.php?op=wizard"; +$adminmenu[2]['title'] = _MI_XTRANSAM_ADMENU2; +$adminmenu[2]['link'] = "admin/index.php?op=bbs"; +$adminmenu[3]['title'] = _MI_XTRANSAM_ADMENU3; +$adminmenu[3]['link'] = "admin/index.php?op=languages"; +?> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/class/files.php =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/class/files.php (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/class/files.php 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1,208 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for policies + * @author Simon Roberts <on...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class XtransamFiles extends XoopsObject +{ + + function XtransamFiles($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('ioid', XOBJ_DTYPE_INT); + $this->initVar('filename', XOBJ_DTYPE_TXTBOX, null, true, 255); + $this->initVar('path', XOBJ_DTYPE_TXTBOX, null, true, 255); + $this->initVar('imported', XOBJ_DTYPE_INT, 0); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class XtransamFilesHandler extends XoopsPersistableObjectHandler +{ + + var $db; + var $regex = '/define\((.*) \);|define \((.*) \);|define \((.*) \);|define \( ([\"\', \ta-zA-Z0-9_]+)\);|define\( (.*) \);|define\((.*)\);|define \((.*)\);|define \((.*)\);|define \( ([\"\', \ta-zA-Z0-9_]+)\);|define\( (.*)\);|define\((.*) \);|define \((.*) \);|define \((.*) \);|define \( (.*) \);|define\( (.*) \);/'; + var $seperator = array('", "', '","', '" , "', '" , "', '", "', '" , "', + '", \'', '",\'', '" , \'', '" , \'', '", \'', '" , \'' , + '\', \'', '\',\'', '\' , \'', '\' , \'', '\', \'', '\' , \'', + '\', "', '\',"', '\' , "', '\' , "', '\', "', '\' , "'); + + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "xtransam_files", 'XtransamFiles', "id", "path"); + } + + function importfiles($io) + { + if (!is_a($io, 'XtransamIobase')) + return false; + + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + + $criteria = new CriteriaCompo(new Criteria('`ioid`', $io->getVar('id')), 'AND'); + $criteria->add(new Criteria('`imported`', 0), 'AND'); + $files = $this->getObjects($criteria); + + foreach ($files as $file) { + $content = file_get_contents($file->getVar('path').'/'.$file->getVar('filename')); + $lines = explode("\n", $content); + foreach($lines as $key => $line) { + if (strpos(' '.$line,'define')>0) { + @preg_match_all($this->regex, $line, $matches); + + $def = array(); + foreach($matches as $match) + foreach($match as $result) { + if (!empty($result)&&substr($result,0,6)!='define') { + foreach($this->seperator as $sep) + if (strpos($result, $sep)>0) + if (count(explode($sep, $result))==2) + $result = explode($sep, $result); + + $def[0] = substr(trim($result[0]),1); + $def[1] = substr(trim($result[1]),0, strlen(trim($result[1]))-1); + } elseif (substr($result,0,6)=='define') { + $def[3] = $result; + } + } + + + if (!empty($def[0])&&!empty($def[1])) { + $trans = $trans_handler->create(); + $trans->setVar('ioid',$io->getVar('id')); + $trans->setVar('fromid',$io->getVar('languagefrom')); + $trans->setVar('toid',$io->getVar('languageto')); + $trans->setVar('fileid',$file->getVar('id')); + $trans->setVar('linetype','define'); + $trans->setVar('line', $key); + $trans->setVar('hexval_name',bin2hex($trans_handler->change_charset($def[0], _CHARSET, _CHARSET_ISO))); + $trans->setVar('hexval_orginal',bin2hex($trans_handler->change_charset($def[1], _CHARSET, _CHARSET_ISO))); + $trans->setVar('replacestr',bin2hex($trans_handler->change_charset($def[3], _CHARSET, _CHARSET_ISO))); + + if (!$trans_handler->exists($trans)) + $trans_handler->insert($trans); + } + } + } + + $file->setVar('imported', '1'); + $this->insert($file); + + } + } + + + function analysepath($io) + { + if (!is_a($io, 'XtransamIobase')) + return false; + + switch ($io->getVar('point')) + { + case "core": + $files = $this->dirToArray(XOOPS_ROOT_PATH.'/language/'.$io->getVar('path'), true); + $path = XOOPS_ROOT_PATH.'/language/'.$io->getVar('path'); + break; + case "module": + $files = $this->dirToArray(XOOPS_ROOT_PATH.'/modules/'.$io->getVar('path'), true); + $path = XOOPS_ROOT_PATH.'/modules/'.$io->getVar('path'); + break; + } + + foreach($files as $key => $file) + { + if (file_exists($file)) { + $tfile = $this->create(); + $tfile->setVar('filename', basename($file)); + $tfile->setVar('path', str_replace(basename($file),'',$file)); + $tfile->setVar('ioid', $io->getVar('id')); + if (!$this->exists($tfile)) + @$this->insert($tfile); + } + } + + } + + private function dirToArray($directory, $recursive, $fileext = 'php') { + $array_items = array(); + if ($handle = opendir($directory)) { + while (false !== ($file = readdir($handle))) { + $filecomp = explode('.', $file); + if ($file != "." && $file != "..") { + if (is_dir($directory. "/" . $file)) { + if($recursive) { + $array_items = array_merge($array_items, $this->dirToArray($directory. "/" . $file, $recursive)); + } + $file = $directory . "/" . $file; + if (in_array($fileext, $filecomp)) + $array_items[] = preg_replace("/\/\//si", "/", $file); + } else { + $file = $directory . "/" . $file; + if (in_array($fileext, $filecomp)) + $array_items[] = preg_replace("/\/\//si", "/", $file); + } + } + } + closedir($handle); + } + return $array_items; + } + + function exists($file) + { + if (!is_a($file, 'XtransamFiles')) + return true; + + $criteria = new CriteriaCompo(new Criteria('`ioid`', $file->getVar('ioid')), 'AND'); + $criteria->add(new Criteria('`path`', $file->getVar('path')), 'AND'); + $criteria->add(new Criteria('`filename`', $file->getVar('filename')), 'AND'); + if ($this->getCount($criteria)>0) + return true; + else + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/class/googleprovider.php =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/class/googleprovider.php (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/class/googleprovider.php 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1,120 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for policies + * @author Simon Roberts <on...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class XtransamGoogleprovider extends XoopsObject +{ + + function XtransamGoogleprovider($id = null) + { + + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class XtransamGoogleproviderHandler extends XoopsPersistableObjectHandler +{ + + var $url = "http://ajax.googleapis.com/ajax/services/language/translate"; + var $retrieve = array('start' => '<textarea name=utrans wrap=SOFT dir="ltr" rows=5 id=suggestion>', + 'end' => '</textarea>'); + + function __construct(&$db) + { } + + function translate($fromcode, $tocode, $hexvalue) + { + + $response = $this->send_post($this->url, $this->hex2bin($hexvalue), $fromcode, $tocode, XOOPS_URL); + if (preg_match("/{\"translatedText\":\"([^\"]+)\"/i", $response, $matches)) { + return self::_unescapeUTF8EscapeSeq($this->clean($matches[1])); + } + } + + private function _unescapeUTF8EscapeSeq($str) { + return preg_replace_callback("/\\\u([0-9a-f]{4})/i", create_function('$matches', 'return html_entity_decode(\'&#x\'.$matches[1].\';\', ENT_NOQUOTES, \'UTF-8\');'), $str); + } + + private function hex2bin($h) + { + if (!is_string($h)) return null; + $r=''; + for ($a=0; $a<strlen($h); $a+=2) { $r.=chr(hexdec($h{$a}.$h{($a+1)})); } + return $r; + } + + private function clean($var) + { + $var = htmlspecialchars_decode($var); + $var = str_replace('% s', ' %s ', $var); + $var = str_replace('% u', ' %u ', $var); + $var = str_replace('% d', ' %d ', $var); + if (strpos($var, 'text/css')) + $var =''; + return $var; + } + + function send_post($url, $text, $from, $to, $referer = null) + { + $langpair = $from.'|'.$to; + $text = $text; + + $params = array('http' => + array( + 'method' => 'POST', + 'header'=>"Content-Type: application/x-www-form-urlencoded\r\n". + "Referer: $referer\r\n", + "content"=> http_build_query(array('langpair'=>$langpair, 'q'=>$text, 'v'=>'1.0')) + ) + ); + $ctx = stream_context_create($params); + $fp = fopen($url, 'rb', false, $ctx); + $response = stream_get_contents($fp); + + return $response; + } +} +?> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/class/index.html =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/class/index.html (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/class/index.html 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/class/iobase.php =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/class/iobase.php (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/class/iobase.php 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1,155 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for policies + * @author Simon Roberts <on...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class XtransamIobase extends XoopsObject +{ + + function XtransamIobase($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('point', XOBJ_DTYPE_OTHER, null, false, 20); + $this->initVar('path', XOBJ_DTYPE_TXTBOX, null, true, 255); + $this->initVar('languagefrom', XOBJ_DTYPE_INT, null); + $this->initVar('languageto', XOBJ_DTYPE_INT, null); + $this->initVar('done', XOBJ_DTYPE_INT, null); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class XtransamIobaseHandler extends XoopsPersistableObjectHandler +{ + + var $db; + + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "xtransam_iobase", 'XtransamIobase', "id", "path"); + } + + function insert($io) + { + if (!is_a($io, 'XtransamIobase')) + return false; + + if (!$this->exists($io)) + $sql = "INSERT INTO ".$this->db->prefix('xtransam_iobase')." (`point`, `path`, `languagefrom`, `languageto`) VALUES ('".$io->getVar('point')."', '".$io->getVar('path')."', '".$io->getVar('languagefrom')."', '".$io->getVar('languageto')."')"; + else + $sql = "UPDATE ".$this->db->prefix('xtransam_iobase')." SET `point` = '".$io->getVar('point')."', `path` = '".$io->getVar('path')."', `languagefrom` = '".$io->getVar('languagefrom')."', `languageto` = '".$io->getVar('languageto')."', `total` = '".$io->getVar('total')."', `done` = '".$io->getVar('done')."' where `id` = ".$io->getVar('id'); + + return $this->db->queryF($sql); + + } + + function &getObjects($criteria = null, $fields = null, $asObject = true, $id_as_key = true) + { + if (is_array($fields) && count($fields) > 0) { + if (! in_array($this->handler->keyName, $fields)) { + $fields[] = $this->handler->keyName; + } + $select = "`" . implode("`, `", $fields) . "`"; + } else { + $select = "*"; + } + $limit = null; + $start = null; + $sql = "SELECT {$select} FROM `".$this->db->prefix('xtransam_iobase')."`"; + if (isset($criteria) && is_subclass_of($criteria, "criteriaelement")) { + $sql .= " " . $criteria->renderWhere(); + if ($sort = $criteria->getSort()) { + $sql .= " ORDER BY {$sort} " . $criteria->getOrder(); + $orderSet = true; + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + if (empty($orderSet)) { + // $sql .= " ORDER BY `{$this->handler->keyName}` DESC"; + } + $result = $this->db->query($sql, $limit, $start); + $ret = array(); + if ($asObject) { + while ($myrow = $this->db->fetchArray($result)) { + $object = &$this->create(false); + $object->assignVars($myrow); + if ($id_as_key) { + $ret[$myrow['id']] = $object; + } else { + $ret[] = $object; + } + unset($object); + } + } else { + $object = &$this->create(false); + while ($myrow = $this->db->fetchArray($result)) { + $object->assignVars($myrow); + if ($id_as_key) { + $ret[$myrow['id']] = $object->getValues(array_keys($myrow)); + } else { + $ret[] = $object->getValues(array_keys($myrow)); + } + } + unset($object); + } + return $ret; + } + + function exists($io) + { + if (!is_a($io, 'XtransamIobase')) + return true; + + include_once(XOOPS_ROOT_PATH.'/class/criteria.php'); + $criteria = new CriteriaCompo(new Criteria('`point`', $io->getVar('point')), 'AND'); + $criteria->add(new Criteria('`path`', $io->getVar('path')), 'AND'); + $criteria->add(new Criteria('`languagefrom`', $io->getVar('languagefrom')), 'AND'); + $criteria->add(new Criteria('`languageto`', $io->getVar('languageto')), 'AND'); + if ($this->getCount($criteria)>0) + return true; + else + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/class/languages.php =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/class/languages.php (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/class/languages.php 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1,131 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for policies + * @author Simon Roberts <on...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class XtransamLanguages extends XoopsObject +{ + + function XtransamLanguages($id = null) + { + $this->initVar('lang_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('provider', XOBJ_DTYPE_TXTBOX, null, false, 20); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, true, 255); + $this->initVar('code', XOBJ_DTYPE_TXTBOX, null, true, 6); + $this->initVar('foldername', XOBJ_DTYPE_TXTBOX, null, false, 255); + + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class XtransamLanguagesHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "xtransam_languages", 'XtransamLanguages', "lang_id", "name"); + } + + function name($id) + { + if ($this->getCount(new Criteria('lang_id', $id))>0) + { + $objs = $this->getObjects(new Criteria('lang_id', $id), false, false ); + return $objs[0]['name']; + } else { + return false; + } + } + + function provider($id) + { + if ($this->getCount(new Criteria('lang_id', $id))>0) + { + $objs = $this->getObjects(new Criteria('lang_id', $id), false, false ); + return $objs[0]['provider']; + } else { + return false; + } + } + + function folder($id) + { + if ($this->getCount(new Criteria('lang_id', $id))>0) + { + $objs = $this->getObjects(new Criteria('lang_id', $id), false, false ); + if (empty($objs[0]['foldername'])) + return strtolower($objs[0]['name']); + else + return strtolower($objs[0]['foldername']); + + } else { + return false; + } + } + + function code($id) + { + if ($this->getCount(new Criteria('lang_id', $id))>0) + { + $objs = $this->getObjects(new Criteria('lang_id', $id), false, false); + return $objs[0]['code']; + } else { + return false; + } + } + + function validlanguage($name) + { + include_once(XOOPS_ROOT_PATH.'/class/criteria.php'); + $criteria = new CriteriaCompo(new Criteria('`name`', $name, 'LIKE'), 'OR'); + $criteria->add(new Criteria('`foldername`', $name, 'LIKE'), 'OR'); + if ($this->getCount($criteria)>0) + { + $objs = $this->getObjects($criteria); + return $objs[0]->getVar('lang_id'); + } else { + return false; + } + + } +} +?> Added: XoopsModules/xtransam/releases/1.01/xtransam/class/translator.php =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/class/translator.php (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/class/translator.php 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1,127 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for policies + * @author Simon Roberts <on...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class XtransamTranslator extends XoopsObject +{ + + function XtransamTranslator($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('ioid', XOBJ_DTYPE_INT, null, false); + $this->initVar('fromid', XOBJ_DTYPE_INT, null, false); + $this->initVar('toid', XOBJ_DTYPE_INT, null, false); + $this->initVar('fileid', XOBJ_DTYPE_INT, null, false); + $this->initVar('linetype', XOBJ_DTYPE_OTHER, null, false, 20); + $this->initVar('hexval_name', XOBJ_DTYPE_OTHER); + $this->initVar('hexval_orginal', XOBJ_DTYPE_OTHER); + $this->initVar('hexval_translation', XOBJ_DTYPE_OTHER); + $this->initVar('replacestr', XOBJ_DTYPE_OTHER, null); + $this->initVar('out', XOBJ_DTYPE_INT, null, false); + $this->initVar('line', XOBJ_DTYPE_INT, null, false); + $this->initVar('auto', XOBJ_DTYPE_INT, null, false); + } + + function isempty() + { + $hexval_translation = $this->getVar('hexval_translation'); + return empty($hexval_translation); + } +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class XtransamTranslatorHandler extends XoopsPersistableObjectHandler +{ + + var $db; + + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "xtransam_translator", 'XtransamTranslator', "id", "hexval_name"); + } + + function change_charset($text, $charset_output = 'UTF-8', $charset_input = 'ISO-8859-1') + { + // Values can be : UTF-8 ; ASCII + //$detected_encoding = mb_detect_encoding($text); + // if ($charset_output == $detected_encoding) { + if ($charset_output == $charset_input) { + // Encoding is already good + return $text; + } elseif ($charset_output == 'UTF-8' && $charset_input == 'ISO-8859-1') { + // ISO-8859-1 -> UTF8 + return utf8_encode($text); + } elseif ($charset_output == 'ISO-8859-1' && $charset_input == 'UTF-8') { + // UTF8 -> ISO-8859-1 + return utf8_decode($text); + } else { + // * -> UTF8 + if (function_exists("mb_convert_encoding")) { + return mb_convert_encoding($text, $charset_output, $charset_input); + }else{ + return $text; + } + + } + } + + function exists($trans) + { + if (!is_a($trans, 'XtransamTranslator')) + return true; + + $criteria = new CriteriaCompo(new Criteria('`ioid`', $trans->getVar('ioid')), 'AND'); + $criteria->add(new Criteria('`fromid`', $trans->getVar('fromid')), 'AND'); + $criteria->add(new Criteria('`toid`', $trans->getVar('toid')), 'AND'); + $criteria->add(new Criteria('`fileid`', $trans->getVar('fileid')), 'AND'); + $criteria->add(new Criteria('`linetype`', $trans->getVar('linetype')), 'AND'); + $criteria->add(new Criteria('`hexval_name`', $trans->getVar('hexval_name')), 'AND'); + + if ($this->getCount($criteria)>0) + return true; + else + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/images/Thumbs.db =================================================================== (Binary files differ) Property changes on: XoopsModules/xtransam/releases/1.01/xtransam/images/Thumbs.db ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xtransam/releases/1.01/xtransam/images/index.html =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/images/index.html (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/images/index.html 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xtransam/releases/1.01/xtransam/images/left_both.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/xtransam/releases/1.01/xtransam/images/left_both.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xtransam/releases/1.01/xtransam/images/right_both.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/xtransam/releases/1.01/xtransam/images/right_both.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xtransam/releases/1.01/xtransam/images/xtransam_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xtransam/releases/1.01/xtransam/images/xtransam_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xtransam/releases/1.01/xtransam/include/forms.php =================================================================== --- XoopsModules/xtransam/releases/1.01/xtransam/include/forms.php (rev 0) +++ XoopsModules/xtransam/releases/1.01/xtransam/include/forms.php 2009-05-16 00:38:33 UTC (rev 3244) @@ -0,0 +1,303 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // + function languagesForm_display() { + $form_sel = new XoopsThemeForm(_XT_LANGUAGEMATRIX, "languages", $_SERVER['PHP_SELF'] .""); + $form_sel->setExtra( "enctype='multipart/form-data'" ) ; + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $langs = $lang_handler->getObjects(NULL); + + /* $ele_tray[0] = new XoopsFormElementTray(_XT_NEWLANG,' '); + $ele_tray[0]->addElement(new XoopsFormText(_XT_NAME, 'name[0]', 26, 255)); + $ele_tray[0]->addElement(new XoopsFormText(_XT_CODE, 'code[0]', 10, 6)); + $ele_tray[0]->addElement(new XoopsFormText(_XT_FOLDER, 'folder[0]', 26, 255)); + $ele_tray[0]->addElement(new XoopsFormHidden('id[0]', 'new')); + $form_sel->addElement($ele_tray[0]); */ + + foreach ($langs as $lang) { + $ele_tray[$lang->getVar('lang_id')] = new XoopsFormElementTray($lang->getVar('name'),' '); + $ele_tray[$lang->getVar('lang_id')]->addElement(new XoopsFormText(_XT_NAME, 'name['.$lang->getVar('lang_id').']', 26, 255, htmlspecialchars($lang->getVar('name')))); + $ele_tray[$lang->getVar('lang_id')]->addElement(new XoopsFormText(_XT_CODE, 'code['.$lang->getVar('lang_id').']', 10, 6, htmlspecialchars($lang->getVar('code')))); + $ele_tray[$lang->getVar('lang_id')]->addElement(new XoopsFormText(_XT_FOLDER, 'folder['.$lang->getVar('lang_id').']', 26, 255, htmlspecialchars($lang->getVar('foldername')))); + $ele_tray[$lang->getVar('lang_id')]->addElement(new XoopsFormHidden('id['.$lang->getVar('id').']', $lang->getVar('lang_id'))); + $form_sel->addElement($ele_tray[$lang->getVar('lang_id')]); + } + + $form_sel->addElement(new XoopsFormHidden("op", "save-languages")); + $form_sel->addElement(new XoopsFormButton('', 'send', _SEND, 'submit')); + $form_sel->display(); + + } + + function managerForm_display($ioid, $fileid) + { + $form_sel = new XoopsThemeForm(_XT_SELECTFILETOEDIT, "filesel", $_SERVER['PHP_SELF'] .""); + $form_sel->setExtra( "enctype='multipart/form-data'" ) ; + + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + + $io = $io_handler->get($ioid); + $files = $files_handler->getObjects(new Criteria('ioid', $ioid)); + + if ($fileid==0) + $fileid = $files[0]->getVar('id'); + + $table_sel = new XoopsFormSelect(_XT_SELECTFILETOEDIT.':', 'select'); + $table_sel->setExtra('onchange="window.location=\'\'+this.options[this.selectedIndex].value"'); + $table_sel->setValue("index.php?op=manage&id=$ioid&fileid=".$fileid); + foreach($files as $file) + $table_sel->addOption("index.php?op=manage&id=$ioid&fileid=".$file->getVar('id'), $file->getVar('filename')); + + $form_sel->addElement($table_sel); + $form_sel->display(); + + $form_sel = new XoopsThemeForm(sprintf(_XT_TRANSLATIONEDITOR, $lang_handler->name($io->getVar('languagefrom')), $lang_handler->name($io->getVar('languageto'))), "editor", $_SERVER['PHP_SELF'] .""); + $form_sel->setExtra( "enctype='multipart/form-data'" ) ; + + $trans = $trans_handler->getObjects(new Criteria('fileid', $fileid)); + foreach($trans as $tran) { + $txtbox[$tran->getVar('id')] = new XoopsFormTextArea($trans_handler->change_charset(hex2bin($tran->getVar('hexval_name')), _CHARSET_ISO, _CHARSET), 'trans['.$tran->getVar('id').']', $trans_handler->change_charset(hex2bin($tran->getVar('hexval_translation')), _CHARSET_ISO, _CHARSET), 2, 85); + $txtbox[$tran->getVar('id')]->setDescription($lang_handler->name($tran->getVar('fromid')).": ".$trans_handler->change_charset(hex2bin($tran->getVar('hexval_orginal')), _CHARSET_ISO, _CHARSET)); + $form_sel->addElement($txtbox[$tran->getVar('id')]); + } + + $form_sel->addElement(new XoopsFormHidden("op", "save")); + $form_sel->addElement(new XoopsFormHidden("id", $ioid)); + $form_sel->addElement(new XoopsFormHidden("fileid", $fileid)); + $form_sel->addElement(new XoopsFormButton('', 'send', _SEND, 'submit')); + $form_sel->display(); + + } + + + function translationForm_display($display=false) + { + $form_sel = new XoopsTh... [truncated message content] |
From: <wis...@us...> - 2009-06-04 02:22:45
|
Revision: 3259 http://xoops.svn.sourceforge.net/xoops/?rev=3259&view=rev Author: wishcraft Date: 2009-06-04 02:22:43 +0000 (Thu, 04 Jun 2009) Log Message: ----------- Scroller 0.10 - Release Added Paths: ----------- XoopsModules/scoller/ XoopsModules/scoller/branches/ XoopsModules/scoller/releases/ XoopsModules/scoller/releases/0.10/ XoopsModules/scoller/releases/0.10/scroller/ XoopsModules/scoller/releases/0.10/scroller/_notes/ XoopsModules/scoller/releases/0.10/scroller/_notes/dwsync.xml XoopsModules/scoller/releases/0.10/scroller/admin/ XoopsModules/scoller/releases/0.10/scroller/admin/_notes/ XoopsModules/scoller/releases/0.10/scroller/admin/_notes/dwsync.xml XoopsModules/scoller/releases/0.10/scroller/admin/index.php XoopsModules/scoller/releases/0.10/scroller/admin/menu.php XoopsModules/scoller/releases/0.10/scroller/class/ XoopsModules/scoller/releases/0.10/scroller/class/_notes/ XoopsModules/scoller/releases/0.10/scroller/class/_notes/dwsync.xml XoopsModules/scoller/releases/0.10/scroller/class/scroller.php XoopsModules/scoller/releases/0.10/scroller/images/ XoopsModules/scoller/releases/0.10/scroller/images/_notes/ XoopsModules/scoller/releases/0.10/scroller/images/consultants_slogo.png XoopsModules/scoller/releases/0.10/scroller/images/left_both.gif XoopsModules/scoller/releases/0.10/scroller/images/nonprofit_slogo.png XoopsModules/scoller/releases/0.10/scroller/images/right_both.gif XoopsModules/scoller/releases/0.10/scroller/images/scroller_slogo.png XoopsModules/scoller/releases/0.10/scroller/include/ XoopsModules/scoller/releases/0.10/scroller/include/_notes/ XoopsModules/scoller/releases/0.10/scroller/include/_notes/dwsync.xml XoopsModules/scoller/releases/0.10/scroller/include/forms.php XoopsModules/scoller/releases/0.10/scroller/include/functions.php XoopsModules/scoller/releases/0.10/scroller/index.php XoopsModules/scoller/releases/0.10/scroller/language/ XoopsModules/scoller/releases/0.10/scroller/language/_notes/ XoopsModules/scoller/releases/0.10/scroller/language/english/ XoopsModules/scoller/releases/0.10/scroller/language/english/_notes/ XoopsModules/scoller/releases/0.10/scroller/language/english/modinfo.php XoopsModules/scoller/releases/0.10/scroller/set_tpl.php XoopsModules/scoller/releases/0.10/scroller/sql/ XoopsModules/scoller/releases/0.10/scroller/sql/mysql.sql XoopsModules/scoller/releases/0.10/scroller/templates/ XoopsModules/scoller/releases/0.10/scroller/templates/block/ XoopsModules/scoller/releases/0.10/scroller/templates/block/scroller_block.html XoopsModules/scoller/releases/0.10/scroller/templates/scroller_index.html XoopsModules/scoller/releases/0.10/scroller/xoops_version.php XoopsModules/scoller/trunk/ Added: XoopsModules/scoller/releases/0.10/scroller/_notes/dwsync.xml =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/_notes/dwsync.xml (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/_notes/dwsync.xml 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8" ?> +<dwsync> +<file name="set_tpl.php" server="ftps38.brinkster.com//pluffmud/webroot/" local="128873312105468750" remote="128872807800000000" /> +</dwsync> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/admin/_notes/dwsync.xml =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/admin/_notes/dwsync.xml (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/admin/_notes/dwsync.xml 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8" ?> +<dwsync> +<file name="index.php" server="ftps38.brinkster.com//pluffmud/webroot/" local="128861943487187500" remote="128861439000000000" /> +</dwsync> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/admin/index.php =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/admin/index.php (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/admin/index.php 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,57 @@ +<?php + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/forms.php'); + include('../include/functions.php'); + + xoops_cp_header(); + + switch ($_REQUEST['op']) + { + case "edit": + adminMenu(0); + edit_scroller_form(); + break; + case "new": + adminMenu(0); + edit_scroller_form(); + break; + case "delete": + $id = intval($_REQUEST['id']); + $scrollerhandler = xoops_getmodulehandler('scroller','scroller'); + $scroller = $scrollerhandler->get($id); + if ($scrollerhandler->delete($scroller)) + redirect_header('index.php', 3, 'Scroller Item Delete Successfully'); + else + redirect_header('index.php', 3, 'Scroller Item Delete Unsuccessfully'); + break; + exit; + case "save": + + $id = intval($_REQUEST['id']); + $scrollerhandler = xoops_getmodulehandler('scroller','scroller'); + if ($id>0) + $scroller = $scrollerhandler->get($id); + else + $scroller = $scrollerhandler->create(); + + $scroller->setVar('content', $_REQUEST['content']); + $scroller->setVar('weight', intval($_REQUEST['weight'])); + $scroller->setVar('expires', strtotime($_REQUEST['expires']['date'])+$_REQUEST['expires']['time']); + if ($scrollerhandler->insert($scroller)) + redirect_header('index.php', 3, 'Scroller Item Updated Successfully'); + else + redirect_header('index.php', 3, 'Scroller Item Updated Unsuccessfully'); + + exit; + break; + default: + adminMenu(0); + sel_scroller_form(); + + } + + footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/admin/menu.php =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/admin/menu.php (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/admin/menu.php 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,6 @@ +<?php +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _SC_ADMENU1; +$adminmenu[1]['link'] = "admin/index.php"; +?> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/class/_notes/dwsync.xml =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/class/_notes/dwsync.xml (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/class/_notes/dwsync.xml 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8" ?> +<dwsync> +<file name="scroller.php" server="ftps38.brinkster.com//pluffmud/webroot/" local="128861941685312500" remote="128861437800000000" /> +</dwsync> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/class/scroller.php =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/class/scroller.php (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/class/scroller.php 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,61 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Scroller + * @author Simon Roberts (si...@ch...) + * @copyright copyright (c) 2000-2009 XOOPS.org + * @package kernel + */ +class ScrollerScroller extends XoopsObject +{ + + function ScrollerScroller($fid = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('content', XOBJ_DTYPE_OTHER, null, true); + $this->initVar('expires', XOBJ_DTYPE_INT, null, false); + $this->initVar('weight', XOBJ_DTYPE_INT, null, false); + } + + function id() + { + return $this->getVar("id"); + } + + function content() + { + return $this->getVar("content"); + } + + function expires() + { + return $this->getVar("expires"); + } + + function weight() + { + return $this->getVar("weight"); + } + +} + + +/** +* XOOPS Scroller handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class ScrollerScrollerHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "scroller", 'ScrollerScroller', "id", "content"); + } + +} +?> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/images/consultants_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/scoller/releases/0.10/scroller/images/consultants_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/scoller/releases/0.10/scroller/images/left_both.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/scoller/releases/0.10/scroller/images/left_both.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/scoller/releases/0.10/scroller/images/nonprofit_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/scoller/releases/0.10/scroller/images/nonprofit_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/scoller/releases/0.10/scroller/images/right_both.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/scoller/releases/0.10/scroller/images/right_both.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/scoller/releases/0.10/scroller/images/scroller_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/scoller/releases/0.10/scroller/images/scroller_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/scoller/releases/0.10/scroller/include/_notes/dwsync.xml =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/include/_notes/dwsync.xml (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/include/_notes/dwsync.xml 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8" ?> +<dwsync> +<file name="forms.php" server="ftps38.brinkster.com//pluffmud/webroot/" local="128873311675468750" remote="128872807200000000" /> +</dwsync> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/include/forms.php =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/include/forms.php (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/include/forms.php 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,78 @@ +<?php + + function edit_scroller_form() + { + + if (isset($_REQUEST['id'])) + { + $id = intval($_REQUEST['id']); + $scrollerhandler = xoops_getmodulehandler('scroller','scroller'); + $scroller = $scrollerhandler->get($id); + $content = $scroller->getVar('content'); + $expires = $scroller->getVar('expires'); + $weight = $scroller->getVar('weight'); + $title = 'Edit Scroller Item'; + } else { + $id = 0; + $weight = 0; + $expires = time()+ (3600*12); + $title = 'New Scroller Item'; + } + + include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; + $form = new XoopsThemeForm($title, "edititem", "", "post"); + + $form->addElement(new XoopsFormTextArea('Content:', "content", $content, 15, 45)); + $form->addElement(new XoopsFormText('Weight:', "weight", 5, 3, $weight)); + $form->addElement(new XoopsFormDateTime('Expires:', "expires", 15, $expires)); + + $form->addElement(new XoopsFormHidden("id", $id)); + $form->addElement(new XoopsFormHidden("op", "save")); + $form->addElement(new XoopsFormButton('', 'contents_submit', _SUBMIT, "submit")); + $form->display(); + } + + function sel_scroller_form() + { + + include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; + + $form = new XoopsThemeForm('Current Scrollers', "current", "", "post"); + + $scrollerhandler = xoops_getmodulehandler('scroller','scroller'); + $criteria = new Criteria('expires', time(), '>='); + $criteria->setSort('weight ASC, id'); + $criteria->setOrder('DESC'); + $scroller = $scrollerhandler->getObjects($criteria); + $element = array(); + foreach($scroller as $key => $item) + { + $element[$key] = new XoopsFormElementTray('Scroller Item '.$item->getVar('id').':'); + $element[$key]->addElement(new XoopsFormLabel('', '<a href="index.php?op=edit&id='.$item->getVar('id').'">Edit</a> <a href="index.php?op=delete&id='.$item->getVar('id').'">Delete</a>')); + $element[$key]->addElement(new XoopsFormLabel('Weight:', ''.$item->getVar('weight').'')); + $element[$key]->addElement(new XoopsFormLabel('Expires:', ''.date(_DATESTRING, $item->getVar('expires')).'')); + $element[$key]->addElement(new XoopsFormLabel('Content:', ''.$item->getVar('content').'')); + $form->addElement($element[$key]); + } + $form->display(); + + $formb = new XoopsThemeForm('Expired Scrollers', "expired", "", "post"); + + $criteria = new Criteria('expires', time(), '<='); + $criteria->setSort('weight ASC, expires, id'); + $criteria->setOrder('DESC'); + $scroller = $scrollerhandler->getObjects($criteria); + $element = array(); + foreach($scroller as $key => $item) + { + $element[$key] = new XoopsFormElementTray('Scroller Item '.$key.':'); + $element[$key]->addElement(new XoopsFormLabel('', '<a href="index.php?op=edit&id='.$item->getVar('id').'">Edit</a> <a href="index.php?op=delete&id='.$item->getVar('id').'">Delete</a>')); + $element[$key]->addElement(new XoopsFormLabel('Expires:', ''.date(_DATESTRING, $item->getVar('expires')).'')); + $element[$key]->addElement(new XoopsFormLabel('Content:', ''.$item->getVar('content').'')); + $formb->addElement($element[$key]); + } + $formb->display(); + + } + +?> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/include/functions.php =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/include/functions.php (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/include/functions.php 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,70 @@ +<?php + +if (!function_exists("adminMenu")) { + function adminMenu ($currentoption = 0) { + /* Nice buttons styles */ + global $xoopsConfig,$xoopsModule; + $module_handler =& xoops_gethandler('module'); + $xoopsModule = $module_handler->getByDirname('scroller'); + $dirname=$xoopsModule->getVar('dirname'); + echo " + <style type='text/css'> + #form {float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/$dirname/images/bg.gif') repeat-x left bottom; font-size:93%; line-height:normal; border-bottom: 1px solid black; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black;} + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/$dirname/images/bg.gif') repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 0px; border-bottom: 1px solid black; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url('" . XOOPS_URL . "/modules/$dirname/images/left_both.gif') no-repeat left top; margin:0; padding:0 0 0 9px; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url('" . XOOPS_URL . "/modules/$dirname/images/right_both.gif') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style>"; + + // global $xoopsDB, $xoopsModule, $xoopsConfig, $xoopsModuleConfig; + + $myts = &MyTextSanitizer::getInstance(); + + $tblColors = Array(); + // $adminmenu=array(); + if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/modinfo.php')) { + include_once XOOPS_ROOT_PATH . '/modules/scroller/language/' . $xoopsConfig['language'] . '/modinfo.php'; + } else { + include_once XOOPS_ROOT_PATH . '/modules/scroller/english/modinfo.php'; + } + + require_once XOOPS_ROOT_PATH . '/modules/scroller/admin/menu.php'; + global $adminmenu; + echo "<table width=\"100%\" border='0'><tr><td>"; + echo "<div id='buttontop'>"; + echo "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\"><tr>"; + echo "<td style=\"width: 45%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"><a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=" . $xoopsModule->getVar('mid') . "\">" . _PREFERENCES . "</a> | <a href='index.php?op=new'>New Scroller Item</a></td>"; + echo "<td style='font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;'><b>" . $myts->displayTarea($xoopsModule->name()) ."</td>"; + echo "</tr></table>"; + echo "</div>"; + echo "<div id='buttonbar'>"; + echo "<ul>"; + foreach ($adminmenu as $key => $value) { + $tblColors[$key] = ''; + $tblColors[$currentoption] = 'current'; + echo "<li id='" . $tblColors[$key] . "'><a href=\"" . XOOPS_URL . "/modules/".$xoopsModule->getVar('dirname')."/".$value['link']."\"><span>" . $value['title'] . "</span></a></li>"; + } + + echo "</ul></div>"; + echo "</td></tr>"; + echo "<tr'><td><div id='form'>"; + + } + + function footer_adminMenu() + { + echo "</div></td></tr>"; + echo "</table>"; + } +} +?> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/index.php =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/index.php (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/index.php 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,9 @@ +<?php + + include("../../mainfile.php"); + $xoopsOption['template_main'] = 'scroller_index.html'; + include(XOOPS_ROOT_PATH."/header.php"); + include('set_tpl.php'); + include(XOOPS_ROOT_PATH."/footer.php"); + +?> Added: XoopsModules/scoller/releases/0.10/scroller/language/english/modinfo.php =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/language/english/modinfo.php (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/language/english/modinfo.php 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,32 @@ +<?php + + define('_SC_SCROLLDELAY', 'Scroll Delay'); + define('_SC_SCROLLDELAYDESC', 'Set delay between message change (in miliseconds)'); + define('_SC_MAXSTEP', 'Maximum Steps'); + define('_SC_MAXSTEPDESC', 'Number of steps to take to change from start color to endcolor'); + define('_SC_STEPDELAY', 'Step Delay'); + define('_SC_STEPDELAYDESC', 'Time in miliseconds of a single step'); + define('_SC_STARTCOLOUR_RED', 'Start colour - Red'); + define('_SC_STARTCOLOUR_REDDESC', '0 - 255'); + define('_SC_STARTCOLOUR_GREEN', 'Start colour - Green'); + define('_SC_STARTCOLOUR_GREENDESC', '0 - 255'); + define('_SC_STARTCOLOUR_BLUE', 'Start colour - Blue'); + define('_SC_STARTCOLOUR_BLUEDESC', '0 - 255'); + define('_SC_ENDCOLOUR_RED', 'End colour - Red'); + define('_SC_ENDCOLOUR_REDDESC', '0 - 255'); + define('_SC_ENDCOLOUR_GREEN', 'End colour - Green'); + define('_SC_ENDCOLOUR_GREENDESC', '0 - 255'); + define('_SC_ENDCOLOUR_BLUE', 'End colour - Blue'); + define('_SC_ENDCOLOUR_BLUEDESC', '0 -255'); + define('_SC_OPENTAG', 'Opening Tag'); + define('_SC_OPENTAGDESC', 'Set opening tag, such as font declarations'); + define('_SC_CLOSETAG', 'Closing Tag'); + define('_SC_CLOSETAGESC', 'Set closing tag'); + define('_SC_WIDTH', 'Width'); + define('_SC_WIDTHDESC', 'Set scroller width'); + define('_SC_HEIGHT', 'Height'); + define('_SC_HEIGHTDESC', 'Set scroller height'); + + define('_SC_ADMENU1', 'Edit Scrollers'); + +?> Added: XoopsModules/scoller/releases/0.10/scroller/set_tpl.php =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/set_tpl.php (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/set_tpl.php 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,34 @@ +<?php + + global $xoopsTpl; + + $config_handler = xoops_gethandler('config'); + $module_handler =& xoops_gethandler('module'); + $xModule = $module_handler->getByDirname('scroller'); + + $xModuleConfig = $config_handler->getConfigsByCat(0, $xModule->getVar('mid')); + + $xoopsTpl->assign('scroll_delay', $xModuleConfig['scroll_delay']); + $xoopsTpl->assign('scroll_maxstep', $xModuleConfig['scroll_maxstep']); + $xoopsTpl->assign('scroll_stepdelay', $xModuleConfig['scroll_stepdelay']); + $xoopsTpl->assign('scroll_sc_red', $xModuleConfig['scroll_sc_red']); + $xoopsTpl->assign('scroll_sc_green', $xModuleConfig['scroll_sc_green']); + $xoopsTpl->assign('scroll_sc_blue', $xModuleConfig['scroll_sc_blue']); + $xoopsTpl->assign('scroll_ec_red', $xModuleConfig['scroll_ec_red']); + $xoopsTpl->assign('scroll_ec_green', $xModuleConfig['scroll_ec_green']); + $xoopsTpl->assign('scroll_ec_blue', $xModuleConfig['scroll_ec_blue']); + $xoopsTpl->assign('scroll_opentag', $xModuleConfig['scroll_opentag']); + $xoopsTpl->assign('scroll_closstag', $xModuleConfig['scroll_closstag']); + $xoopsTpl->assign('scroll_width', $xModuleConfig['scroll_width']); + $xoopsTpl->assign('scroll_height', $xModuleConfig['scroll_height']); + + $scrollerhandler = xoops_getmodulehandler('scroller','scroller'); + $criteria = new Criteria('expires', time(), '>='); + $criteria->setSort('weight ASC, id'); + $criteria->setOrder('DESC'); + $scroller = $scrollerhandler->getObjects($criteria); + + foreach ($scroller as $item) + $xoopsTpl->append('scroll_content', $item->getVar('content')); + +?> Added: XoopsModules/scoller/releases/0.10/scroller/sql/mysql.sql =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/sql/mysql.sql (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/sql/mysql.sql 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,6 @@ +CREATE TABLE `scroller` ( + `id` INT(12) UNSIGNED NOT NULL AUTO_INCREMENT, + `content` MEDIUMTEXT, + `expires` INT(12) DEFAULT NULL, + PRIMARY KEY (`id`) + ); \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/templates/block/scroller_block.html =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/templates/block/scroller_block.html (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/templates/block/scroller_block.html 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,107 @@ +<script type="text/javascript"> + +/*********************************************** +* Fading Scroller- \xA9 Dynamic Drive DHTML code library (www.dynamicdrive.com) +* This notice MUST stay intact for legal use +* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code +***********************************************/ + +var delay = <{$block.scroll_delay}>; //set delay between message change (in miliseconds) +var maxsteps=<{$block.scroll_maxstep}>; // number of steps to take to change from start color to endcolor +var stepdelay=<{$block.scroll_stepdelay}>; // time in miliseconds of a single step +//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect +var startcolor= new Array(<{$block.scroll_sc_red}>,<{$block.scroll_sc_green}>,<{$block.scroll_sc_blue}>); // start color (red, green, blue) +var endcolor=new Array(<{$block.scroll_ec_red}>,<{$block.scroll_ec_green}>,<{$block.scroll_ec_blue}>); // end color (red, green, blue) + +var fcontent=new Array(); +begintag='<{$block.scroll_opentag}>'; //set opening tag, such as font declarations +<{foreach from=$block.scroll_content key=k item=text}> +fcontent[<{$k}>]="<{$text}>"; +<{/foreach}> +closetag='<{$block.scroll_closstag}>'; + +var fwidth='<{$block.scroll_width}>px'; //set scroller width +var fheight='<{$block.scroll_height}>px'; //set scroller height + +var fadelinks=1; //should links inside scroller content also fade like text? 0 for no, 1 for yes. + +///No need to edit below this line///////////////// + + +var ie4=document.all&&!document.getElementById; +var DOM2=document.getElementById; +var faderdelay=0; +var index=0; + + +/*Rafael Raposo edited function*/ +//function to change content +function changecontent(){ + if (index>=fcontent.length) + index=0 + if (DOM2){ + document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")" + document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag + if (fadelinks) + linkcolorchange(1); + colorfade(1, 15); + } + else if (ie4) + document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag; + index++ +} + +// colorfade() partially by Marcio Galli for Netscape Communications. //////////// +// Modified by Dynamicdrive.com + +function linkcolorchange(step){ + var obj=document.getElementById("fscroller").getElementsByTagName("A"); + if (obj.length>0){ + for (i=0;i<obj.length;i++) + obj[i].style.color=getstepcolor(step); + } +} + +/*Rafael Raposo edited function*/ +var fadecounter; +function colorfade(step) { + if(step<=maxsteps) { + document.getElementById("fscroller").style.color=getstepcolor(step); + if (fadelinks) + linkcolorchange(step); + step++; + fadecounter=setTimeout("colorfade("+step+")",stepdelay); + }else{ + clearTimeout(fadecounter); + document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")"; + setTimeout("changecontent()", delay); + + } +} + +/*Rafael Raposo's new function*/ +function getstepcolor(step) { + var diff + var newcolor=new Array(3); + for(var i=0;i<3;i++) { + diff = (startcolor[i]-endcolor[i]); + if(diff > 0) { + newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step); + } else { + newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step); + } + } + return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")"); +} + +if (ie4||DOM2) + document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>'); + +if (window.addEventListener) +window.addEventListener("load", changecontent, false) +else if (window.attachEvent) +window.attachEvent("onload", changecontent) +else if (document.getElementById) +window.onload=changecontent + +</script> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/templates/scroller_index.html =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/templates/scroller_index.html (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/templates/scroller_index.html 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,107 @@ +<script type="text/javascript"> + +/*********************************************** +* Fading Scroller- \xA9 Dynamic Drive DHTML code library (www.dynamicdrive.com) +* This notice MUST stay intact for legal use +* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code +***********************************************/ + +var delay = <{$scroll_delay}>; //set delay between message change (in miliseconds) +var maxsteps=<{$scroll_maxstep}>; // number of steps to take to change from start color to endcolor +var stepdelay=<{$scroll_stepdelay}>; // time in miliseconds of a single step +//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect +var startcolor= new Array(<{$scroll_sc_red}>,<{$scroll_sc_green}>,<{$scroll_sc_blue}>); // start color (red, green, blue) +var endcolor=new Array(<{$scroll_ec_red}>,<{$scroll_ec_green}>,<{$scroll_ec_blue}>); // end color (red, green, blue) + +var fcontent=new Array(); +begintag='<{$scroll_opentag}>'; //set opening tag, such as font declarations +<{foreach from=$scroll_content key=k item=text}> +fcontent[<{$k}>]="<{$text}>"; +<{/foreach}> +closetag='<{$scroll_closstag}>'; + +var fwidth='<{$scroll_width}>px'; //set scroller width +var fheight='<{$scroll_height}>px'; //set scroller height + +var fadelinks=1; //should links inside scroller content also fade like text? 0 for no, 1 for yes. + +///No need to edit below this line///////////////// + + +var ie4=document.all&&!document.getElementById; +var DOM2=document.getElementById; +var faderdelay=0; +var index=0; + + +/*Rafael Raposo edited function*/ +//function to change content +function changecontent(){ + if (index>=fcontent.length) + index=0 + if (DOM2){ + document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")" + document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag + if (fadelinks) + linkcolorchange(1); + colorfade(1, 15); + } + else if (ie4) + document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag; + index++ +} + +// colorfade() partially by Marcio Galli for Netscape Communications. //////////// +// Modified by Dynamicdrive.com + +function linkcolorchange(step){ + var obj=document.getElementById("fscroller").getElementsByTagName("A"); + if (obj.length>0){ + for (i=0;i<obj.length;i++) + obj[i].style.color=getstepcolor(step); + } +} + +/*Rafael Raposo edited function*/ +var fadecounter; +function colorfade(step) { + if(step<=maxsteps) { + document.getElementById("fscroller").style.color=getstepcolor(step); + if (fadelinks) + linkcolorchange(step); + step++; + fadecounter=setTimeout("colorfade("+step+")",stepdelay); + }else{ + clearTimeout(fadecounter); + document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")"; + setTimeout("changecontent()", delay); + + } +} + +/*Rafael Raposo's new function*/ +function getstepcolor(step) { + var diff + var newcolor=new Array(3); + for(var i=0;i<3;i++) { + diff = (startcolor[i]-endcolor[i]); + if(diff > 0) { + newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step); + } else { + newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step); + } + } + return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")"); +} + +if (ie4||DOM2) + document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>'); + +if (window.addEventListener) +window.addEventListener("load", changecontent, false) +else if (window.attachEvent) +window.attachEvent("onload", changecontent) +else if (document.getElementById) +window.onload=changecontent + +</script> \ No newline at end of file Added: XoopsModules/scoller/releases/0.10/scroller/xoops_version.php =================================================================== --- XoopsModules/scoller/releases/0.10/scroller/xoops_version.php (rev 0) +++ XoopsModules/scoller/releases/0.10/scroller/xoops_version.php 2009-06-04 02:22:43 UTC (rev 3259) @@ -0,0 +1,187 @@ +<?php +// $Id: xoops_version.php,v 1.71 2005/07/07 C. Felix AKA the Cat +// ------------------------------------------------------------------------- // +// Catads for Xoops // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +//---------------------------------------------------------------------------// + +$modversion['name'] = 'Scroller'; +$modversion['version'] = '0.10'; +$modversion['description'] = 'Scroller for LGC'; +$modversion['credits'] = "wishcraft"; +$modversion['author'] = "wishcraft"; +$modversion['license'] = "LGC"; +$modversion['official'] = 0; +$modversion['image'] = "images/scroller_slogo.png"; +$modversion['dirname'] = "scroller"; + +// Admin things +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = "admin/index.php"; +$modversion['adminmenu'] = "admin/menu.php"; + +$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; +$modversion['tables'][0] = "scroller"; + +// insert values into catads_options with the right language +// $modversion['onInstall'] = 'admin/install_funcs.php'; + +// Templates +$modversion['templates'][1]['file'] = 'scroller_index.html'; +$modversion['templates'][1]['description'] = ''; + +// Blocks + +// Menu +$modversion['hasMain'] = 1; + +for($i=0;$i<256;$i++) + $option[$i] = $i; + +// Config Settings +// Moderate +$modversion['config'][] = array( + 'name' => 'scroll_delay', + 'title' => '_SC_SCROLLDELAY', + 'description' => '_SC_SCROLLDELAYDESC', + 'formtype' => 'textbox', + 'valuetype' => 'int', + 'default' => '3000' +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_maxstep', + 'title' => '_SC_MAXSTEP', + 'description' => '_SC_MAXSTEPDESC', + 'formtype' => 'textbox', + 'valuetype' => 'int', + 'default' => '30' +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_stepdelay', + 'title' => '_SC_STEPDELAY', + 'description' => '_SC_STEPDELAYDESC', + 'formtype' => 'textbox', + 'valuetype' => 'int', + 'default' => '45' +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_sc_red', + 'title' => '_SC_STARTCOLOUR_RED', + 'description' => '_SC_STARTCOLOUR_REDDESC', + 'formtype' => 'select', + 'valuetype' => 'int', + 'default' => '255', + 'options' => $option +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_sc_green', + 'title' => '_SC_STARTCOLOUR_GREEN', + 'description' => '_SC_STARTCOLOUR_GREENDESC', + 'formtype' => 'select', + 'valuetype' => 'int', + 'default' => '255', + 'options' => $option +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_sc_blue', + 'title' => '_SC_STARTCOLOUR_BLUE', + 'description' => '_SC_STARTCOLOUR_BLUEDESC', + 'formtype' => 'select', + 'valuetype' => 'int', + 'default' => '255', + 'options' => $option +) ; + + +$modversion['config'][] = array( + 'name' => 'scroll_ec_red', + 'title' => '_SC_ENDCOLOUR_RED', + 'description' => '_SC_ENDCOLOUR_REDDESC', + 'formtype' => 'select', + 'valuetype' => 'int', + 'default' => '0', + 'options' => $option +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_ec_green', + 'title' => '_SC_ENDCOLOUR_GREEN', + 'description' => '_SC_ENDCOLOUR_GREENDESC', + 'formtype' => 'select', + 'valuetype' => 'int', + 'default' => '0', + 'options' => $option +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_ec_blue', + 'title' => '_SC_ENDCOLOUR_BLUE', + 'description' => '_SC_ENDCOLOUR_BLUEDESC', + 'formtype' => 'select', + 'valuetype' => 'int', + 'default' => '0', + 'options' => $option +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_opentag', + 'title' => '_SC_OPENTAG', + 'description' => '_SC_OPENTAGDESC', + 'formtype' => 'textarea', + 'valuetype' => 'text', + 'default' => '<div style="font: normal 14px Arial; padding: 5px;">' +) ; + + +$modversion['config'][] = array( + 'name' => 'scroll_closstag', + 'title' => '_SC_CLOSETAG', + 'description' => '_SC_CLOSETAGESC', + 'formtype' => 'textarea', + 'valuetype' => 'text', + 'default' => '</div>' +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_width', + 'title' => '_SC_WIDTH', + 'description' => '_SC_WIDTHDESC', + 'formtype' => 'textbox', + 'valuetype' => 'int', + 'default' => '100' +) ; + +$modversion['config'][] = array( + 'name' => 'scroll_height', + 'title' => '_SC_HEIGHT', + 'description' => '_SC_HEIGHTDESC', + 'formtype' => 'textbox', + 'valuetype' => 'int', + 'default' => '30' +) ; + + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2009-06-04 02:24:31
|
Revision: 3260 http://xoops.svn.sourceforge.net/xoops/?rev=3260&view=rev Author: wishcraft Date: 2009-06-04 02:24:26 +0000 (Thu, 04 Jun 2009) Log Message: ----------- Spiders 1.01 - (Release of Alpha) Added Paths: ----------- XoopsModules/spiders/ XoopsModules/spiders/branches/ XoopsModules/spiders/releases/ XoopsModules/spiders/releases/1.01/ XoopsModules/spiders/releases/1.01/spiders/ XoopsModules/spiders/releases/1.01/spiders/admin/ XoopsModules/spiders/releases/1.01/spiders/admin/admin_header.php XoopsModules/spiders/releases/1.01/spiders/admin/index.php XoopsModules/spiders/releases/1.01/spiders/admin/menu.php XoopsModules/spiders/releases/1.01/spiders/admin/resources/ XoopsModules/spiders/releases/1.01/spiders/admin/resources/Spiders Agent's List.url XoopsModules/spiders/releases/1.01/spiders/admin/resources/robots-all.txt XoopsModules/spiders/releases/1.01/spiders/class/ XoopsModules/spiders/releases/1.01/spiders/class/spiders.php XoopsModules/spiders/releases/1.01/spiders/class/spiders_user.php XoopsModules/spiders/releases/1.01/spiders/images/ XoopsModules/spiders/releases/1.01/spiders/images/left_both.gif XoopsModules/spiders/releases/1.01/spiders/images/right_both.gif XoopsModules/spiders/releases/1.01/spiders/images/spiders_slogo.png XoopsModules/spiders/releases/1.01/spiders/include/ XoopsModules/spiders/releases/1.01/spiders/include/forms.php XoopsModules/spiders/releases/1.01/spiders/include/functions.php XoopsModules/spiders/releases/1.01/spiders/include/install.php XoopsModules/spiders/releases/1.01/spiders/include/uninstall.php XoopsModules/spiders/releases/1.01/spiders/index.php XoopsModules/spiders/releases/1.01/spiders/language/ XoopsModules/spiders/releases/1.01/spiders/language/english/ XoopsModules/spiders/releases/1.01/spiders/language/english/admin.php XoopsModules/spiders/releases/1.01/spiders/language/english/modinfo.php XoopsModules/spiders/releases/1.01/spiders/post.loader.spiders.php XoopsModules/spiders/releases/1.01/spiders/sql/ XoopsModules/spiders/releases/1.01/spiders/sql/spiders.sql XoopsModules/spiders/releases/1.01/spiders/templates/ XoopsModules/spiders/releases/1.01/spiders/templates/spiders_index.html XoopsModules/spiders/releases/1.01/spiders/xoops_version.php XoopsModules/spiders/trunk/ Added: XoopsModules/spiders/releases/1.01/spiders/admin/admin_header.php =================================================================== --- XoopsModules/spiders/releases/1.01/spiders/admin/admin_header.php (rev 0) +++ XoopsModules/spiders/releases/1.01/spiders/admin/admin_header.php 2009-06-04 02:24:26 UTC (rev 3260) @@ -0,0 +1,53 @@ +<?php +// $Author: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA wishcraft) // +// URL: http://www.chronolabs.org.au // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +include_once("../../../mainfile.php"); +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once(XOOPS_ROOT_PATH."/include/cp_functions.php"); +include_once('../include/functions.php'); + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname('spiders'); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} +if ( file_exists("../language/".$xoopsConfig['language']."/admin.php") ) { + include_once("../language/".$xoopsConfig['language']."/admin.php"); +} else { + include_once("../language/english/admin.php"); +} +$myts =& MyTextSanitizer::getInstance(); +?> \ No newline at end of file Added: XoopsModules/spiders/releases/1.01/spiders/admin/index.php =================================================================== --- XoopsModules/spiders/releases/1.01/spiders/admin/index.php (rev 0) +++ XoopsModules/spiders/releases/1.01/spiders/admin/index.php 2009-06-04 02:24:26 UTC (rev 3260) @@ -0,0 +1,53 @@ +<?php +// $Author: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA wishcraft) // +// URL: http://www.chronolabs.org.au // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include('admin_header.php'); + include('../include/forms.php'); + + switch ($_REQUEST['op']) + { + case "import-file": + import_robotstxt_org($_REQUEST['file']); + redirect_header('index.php', 3, _AM_SPIDERS_IMPORTCOMPLETE); + + case "import": + default: + xoops_cp_header(); + adminMenu(0); + + import_spiders_form(); + + footer_adminMenu(); + xoops_cp_footer(); + + exit; + } +?> \ No newline at end of file Added: XoopsModules/spiders/releases/1.01/spiders/admin/menu.php =================================================================== --- XoopsModules/spiders/releases/1.01/spiders/admin/menu.php (rev 0) +++ XoopsModules/spiders/releases/1.01/spiders/admin/menu.php 2009-06-04 02:24:26 UTC (rev 3260) @@ -0,0 +1,40 @@ +<?php +// $Author: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA wishcraft) // +// URL: http://www.chronolabs.org.au // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +global $adminmenu; +$adminmenu=array(); +//$adminmenu[1]['title'] = _MI_SPIDERS_ADMINMENU1; +//$adminmenu[1]['link'] = "admin/index.php?op=add"; +$adminmenu[1]['title'] = _MI_SPIDERS_ADMINMENU2; +$adminmenu[1]['link'] = "admin/index.php?op=import"; +/*$adminmenu[3]['title'] = 'Menus'; +$adminmenu[3]['link'] = "admin/menus.php";*/ +?> \ No newline at end of file Added: XoopsModules/spiders/releases/1.01/spiders/admin/resources/Spiders Agent's List.url =================================================================== --- XoopsModules/spiders/releases/1.01/spiders/admin/resources/Spiders Agent's List.url (rev 0) +++ XoopsModules/spiders/releases/1.01/spiders/admin/resources/Spiders Agent's List.url 2009-06-04 02:24:26 UTC (rev 3260) @@ -0,0 +1,5 @@ +[InternetShortcut] +URL=http://www.robotstxt.org/dbexport.html +IDList= +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 Added: XoopsModules/spiders/releases/1.01/spiders/admin/resources/robots-all.txt =================================================================== --- XoopsModules/spiders/releases/1.01/spiders/admin/resources/robots-all.txt (rev 0) +++ XoopsModules/spiders/releases/1.01/spiders/admin/resources/robots-all.txt 2009-06-04 02:24:26 UTC (rev 3260) @@ -0,0 +1,8028 @@ +robot-id: abcdatos +robot-name: ABCdatos BotLink +robot-cover-url: http://www.abcdatos.com/ +robot-details-url: http://www.abcdatos.com/botlink/ +robot-owner-name: ABCdatos +robot-owner-url: http://www.abcdatos.com/ +robot-owner-email: botlink+AEA-abcdatos.com +robot-status: active +robot-purpose: maintenance +robot-type: standalone +robot-platform: windows +robot-availability: none +robot-exclusion: no +robot-exclusion-useragent: BotLink +robot-noindex: no +robot-host: 217.126.39.167 +robot-from: no +robot-useragent: ABCdatos BotLink/1.0.2 (test links) +robot-language: basic +robot-description: This robot is used to verify availability of the ABCdatos + directory entries (http://www.abcdatos.com), checking + HTTP HEAD. Robot runs twice a week. Under HTTP 5xx + error responses or unable to connect, it repeats + verification some hours later, verifiying if that was a + temporary situation. +robot-history: This robot was developed by ABCdatos team to help + working in the directory maintenance. +robot-environment: commercial +modified-date: Thu, 29 May 2003 01:00:00 GMT +modified-by: ABCdatos + +robot-id: acme-spider +robot-name: Acme.Spider +robot-cover-url: http://www.acme.com/java/software/Acme.Spider.html +robot-details-url: http://www.acme.com/java/software/Acme.Spider.html +robot-owner-name: Jef Poskanzer - ACME Laboratories +robot-owner-url: http://www.acme.com/ +robot-owner-email: je...@ac... +robot-status: active +robot-purpose: indexing maintenance statistics +robot-type: standalone +robot-platform: java +robot-availability: source +robot-exclusion: yes +robot-exclusion-useragent: Due to a deficiency in Java it's not currently possible to set the User-Agent. +robot-noindex: no +robot-host: * +robot-from: no +robot-useragent: Due to a deficiency in Java it's not currently possible to set the User-Agent. +robot-language: java +robot-description: A Java utility class for writing your own robots. +robot-history: +robot-environment: +modified-date: Wed, 04 Dec 1996 21:30:11 GMT +modified-by: Jef Poskanzer + +robot-id: ahoythehomepagefinder +robot-name: Ahoy! The Homepage Finder +robot-cover-url: http://www.cs.washington.edu/research/ahoy/ +robot-details-url: http://www.cs.washington.edu/research/ahoy/doc/home.html +robot-owner-name: Marc Langheinrich +robot-owner-url: http://www.cs.washington.edu/homes/marclang +robot-owner-email: mar...@cs... +robot-status: active +robot-purpose: maintenance +robot-type: standalone +robot-platform: UNIX +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: ahoy +robot-noindex: no +robot-host: cs.washington.edu +robot-from: no +robot-useragent: 'Ahoy! The Homepage Finder' +robot-language: Perl 5 +robot-description: Ahoy! is an ongoing research project at the + University of Washington for finding personal Homepages. +robot-history: Research project at the University of Washington in + 1995/1996 +robot-environment: research +modified-date: Fri June 28 14:00:00 1996 +modified-by: Marc Langheinrich + +robot-id: Alkaline +robot-name: Alkaline +robot-cover-url: http://www.vestris.com/alkaline +robot-details-url: http://www.vestris.com/alkaline +robot-owner-name: Daniel Doubrovkine +robot-owner-url: http://cuiwww.unige.ch/~doubrov5 +robot-owner-email: db...@ve... +robot-status: development active +robot-purpose: indexing +robot-type: standalone +robot-platform: unix windows95 windowsNT +robot-availability: binary +robot-exclusion: yes +robot-exclusion-useragent: AlkalineBOT +robot-noindex: yes +robot-host: * +robot-from: no +robot-useragent: AlkalineBOT +robot-language: c++ +robot-description: Unix/NT internet/intranet search engine +robot-history: Vestris Inc. search engine designed at the University of + Geneva +robot-environment: commercial research +modified-date: Thu Dec 10 14:01:13 MET 1998 +modified-by: Daniel Doubrovkine <db...@ve...> + +robot-id:anthill +robot-name:Anthill +robot-cover-url:http://www.anthill.org/index.html +robot-details-url:http://www.anthill.org/index.html +robot-owner-name:Torsten Kaubisch +robot-owner-url:http://www.anthill.org/index.html +robot-owner-email:in...@an... +robot-status:development +robot-purpose:indexing +robot-type:standalone +robot-platform:independent +robot-availability:not yet +robot-exclusion:no (soon in V1.2) +robot-exclusion-useragent:anthill +robot-noindex:no +robot-host:anywhere +robot-from:no +robot-useragent:AnthillV1.1 +robot-language:java +robot-description:Anthill is used to gather priceinformation automatically from online stores.support for international versions. +robot-history:This is a reasearch project at the University of Mannheim in Germany, professorship Prof. Martin Schader, assistant Dr. Stefan Kuhlins +robot-environment:research +modified-date:Thu, 6 Dec 2001 01:55:00 GMT +modified-by:Torsten Kaubisch + +robot-id: appie +robot-name: Walhello appie +robot-cover-url: www.walhello.com +robot-details-url: www.walhello.com/aboutgl.html +robot-owner-name: Aimo Pieterse +robot-owner-url: www.walhello.com +robot-owner-email: ai...@wa... +robot-status: active +robot-purpose: indexing +robot-type: standalone +robot-platform: windows98 +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: appie +robot-noindex: yes +robot-host: 213.10.10.116, 213.10.10.117, 213.10.10.118 +robot-from: yes +robot-useragent: appie/1.1 +robot-language: Visual C++ +robot-description: The appie-spider is used to collect and index web pages for + the Walhello search engine +robot-history: The spider was built in march/april 2000 +robot-environment: commercial +modified-date: Thu, 20 Jul 2000 22:38:00 GMT +modified-by: Aimo Pieterse + +robot-id: arachnophilia +robot-name: Arachnophilia +robot-cover-url: +robot-details-url: +robot-owner-name: Vince Taluskie +robot-owner-url: http://www.ph.utexas.edu/people/vince.html +robot-owner-email: tal...@ut... +robot-status: +robot-purpose: +robot-type: +robot-platform: +robot-availability: +robot-exclusion: yes +robot-exclusion-useragent: +robot-noindex: no +robot-host: halsoft.com +robot-from: +robot-useragent: Arachnophilia +robot-language: +robot-description: The purpose (undertaken by HaL Software) of this run was to + collect approximately 10k html documents for testing + automatic abstract generation +robot-history: +robot-environment: +modified-date: +modified-by: + +robot-id: arale +robot-name: Arale +robot-cover-url: http://web.tiscali.it/_flat +robot-details-url: http://web.tiscali.it/_flat +robot-owner-name: Flavio Tordini +robot-owner-url: http://web.tiscali.it/_flat +robot-owner-email: fla...@ti... +robot-status: active +robot-purpose: maintenance +robot-type: standalone +robot-platform: unix, windows, windows95, windowsNT, os2, mac, linux +robot-availability: source, binary +robot-exclusion: no +robot-exclusion-useragent: arale +robot-noindex: no +robot-host: * +robot-from: no +robot-useragent: no +robot-language: java +robot-description: A java multithreaded web spider. Download entire web sites or specific resources from the web. Render dynamic sites to static pages. +robot-history: This is brand new. +robot-environment: hobby +modified-date: Thu, 09 Jan 2001 17:28:52 GMT +modified-by: Flavio Tordini + +robot-id: araneo +robot-name: Araneo +robot-cover-url: http://esperantisto.net +robot-details-url: http://esperantisto.net/araneo/ +robot-owner-name: Arto Sarle +robot-owner-url: http://esperantisto.net +robot-owner-email: ar...@es... +robot-status: development +robot-purpose: indexing, statistics +robot-type: standalone +robot-platform: Linux +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: araneo +robot-noindex: yes +robot-nofollow: yes +robot-host: *.esperantisto.net +robot-from: yes +robot-useragent: Araneo/0.7 (ar...@es...; http://esperantisto.net) +robot-language: Python, Java +robot-description: Araneo is a web robot developed for crawling and indexing web pages written in the international language Esperanto. The database will be used to build a web search engine and auxiliary services to be published at esperantisto.net. +robot-history: (The name Araneo means "spider" in Esperanto.) +robot-environment: hobby, research +modified-date: Fri, 16 Nov 2001 08:30:00 GMT +modified-by: Arto Sarle + +robot-id: araybot +robot-name: AraybOt +robot-cover-url: http://www.araykoo.com/ +robot-details-url: http://www.araykoo.com/araybot.html +robot-owner-name: Guti +robot-owner-url: http://www.araykoo.com/ +robot-owner-email: ro...@ar... +robot-status: active +robot-purpose: indexing maintenance +robot-type: standalone +robot-platform: Linux +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: AraybOt +robot-noindex: yes +robot-host: * +robot-from: no +robot-useragent: AraybOt/1.0 (+http://www.araykoo.com/araybot.html) +robot-language: perl5 +robot-description: AraybOt is the agent software of AraykOO! which crawls + web sites listed in http://dmoz.org/Adult/, in order to build a adult search + engine. +robot-history: +robot-environment: service +modified-date: Sat, 19 Jun 2004 20:25:00 GMT+1 +modified-by: Guti + +robot-id: architext +robot-name: ArchitextSpider +robot-cover-url: http://www.excite.com/ +robot-details-url: +robot-owner-name: Architext Software +robot-owner-url: http://www.atext.com/spider.html +robot-owner-email: sp...@at... +robot-status: +robot-purpose: indexing, statistics +robot-type: standalone +robot-platform: +robot-availability: +robot-exclusion: yes +robot-exclusion-useragent: +robot-noindex: no +robot-host: *.atext.com +robot-from: yes +robot-useragent: ArchitextSpider +robot-language: perl 5 and c +robot-description: Its purpose is to generate a Resource Discovery database, + and to generate statistics. The ArchitextSpider collects + information for the Excite and WebCrawler search engines. +robot-history: +robot-environment: +modified-date: Tue Oct 3 01:10:26 1995 +modified-by: + +robot-id: aretha +robot-name: Aretha +robot-cover-url: +robot-details-url: +robot-owner-name: Dave Weiner +robot-owner-url: http://www.hotwired.com/Staff/userland/ +robot-owner-email: da...@we... +robot-status: +robot-purpose: +robot-type: +robot-platform: Macintosh +robot-availability: +robot-exclusion: +robot-exclusion-useragent: +robot-noindex: +robot-host: +robot-from: +robot-useragent: +robot-language: +robot-description: A crude robot built on top of Netscape and Userland + Frontier, a scripting system for Macs +robot-history: +robot-environment: +modified-date: +modified-by: + +robot-id: ariadne +robot-name: ARIADNE +robot-cover-url: (forthcoming) +robot-details-url: (forthcoming) +robot-owner-name: Mr. Matthias H. Gross +robot-owner-url: http://www.lrz-muenchen.de/~gross/ +robot-owner-email: Gr...@db... +robot-status: development +robot-purpose: statistics, development of focused crawling strategies +robot-type: standalone +robot-platform: java +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: ariadne +robot-noindex: no +robot-host: dbs.informatik.uni-muenchen.de +robot-from: no +robot-useragent: Due to a deficiency in Java it's not currently possible + to set the User-Agent. +robot-language: java +robot-description: The ARIADNE robot is a prototype of a environment for + testing focused crawling strategies. +robot-history: This robot is part of a research project at the + University of Munich (LMU), started in 2000. +robot-environment: research +modified-date: Mo, 13 Mar 2000 14:00:00 GMT +modified-by: Mr. Matthias H. Gross + +robot-id:arks +robot-name:arks +robot-cover-url:http://www.dpsindia.com +robot-details-url:http://www.dpsindia.com +robot-owner-name:Aniruddha Choudhury +robot-owner-url: +robot-owner-email:ani...@us... +robot-status:development +robot-purpose:indexing +robot-type:standalone +robot-platform:PLATFORM INDEPENDENT +robot-availability:data +robot-exclusion:yes +robot-exclusion-useragent:arks +robot-noindex:no +robot-host:dpsindia.com +robot-from:no +robot-useragent:arks/1.0 +robot-language:Java 1.2 +robot-description:The Arks robot is used to build the database + for the dpsindia/lawvistas.com search service . + The robot runs weekly, and visits sites in a random order +robot-history:finds its root from s/w development project for a portal +robot-environment:commercial +modified-date:6 th November 2000 +modified-by:Aniruddha Choudhury + +robot-id: aspider +robot-name: ASpider (Associative Spider) +robot-cover-url: +robot-details-url: +robot-owner-name: Fred Johansen +robot-owner-url: http://www.pvv.ntnu.no/~fredj/ +robot-owner-email: fr...@pv... +robot-status: retired +robot-purpose: indexing +robot-type: +robot-platform: unix +robot-availability: +robot-exclusion: +robot-exclusion-useragent: +robot-noindex: no +robot-host: nova.pvv.unit.no +robot-from: yes +robot-useragent: ASpider/0.09 +robot-language: perl4 +robot-description: ASpider is a CGI script that searches the web for keywords given by the user through a form. +robot-history: +robot-environment: hobby +modified-date: +modified-by: + +robot-id: atn +robot-name: ATN Worldwide +robot-details-url: +robot-cover-url: +robot-owner-name: All That Net +robot-owner-url: http://www.allthatnet.com +robot-owner-email: in...@al... +robot-status: active +robot-purpose: indexing +robot-type: +robot-platform: +robot-availability: +robot-exclusion: yes +robot-exclusion-useragent: ATN_Worldwide +robot-noindex: +robot-nofollow: +robot-host: www.allthatnet.com +robot-from: +robot-useragent: ATN_Worldwide +robot-language: +robot-description: The ATN robot is used to build the database for the + AllThatNet search service operated by All That Net. The robot runs weekly, + and visits sites in a random order. +robot-history: +robot-environment: +modified-date: July 09, 2000 17:43 GMT + +robot-id: atomz +robot-name: Atomz.com Search Robot +robot-cover-url: http://www.atomz.com/help/ +robot-details-url: http://www.atomz.com/ +robot-owner-name: Mike Thompson +robot-owner-url: http://www.atomz.com/ +robot-owner-email: mi...@at... +robot-status: active +robot-purpose: indexing +robot-type: standalone +robot-platform: unix +robot-availability: service +robot-exclusion: yes +robot-exclusion-useragent: Atomz +robot-noindex: yes +robot-host: www.atomz.com +robot-from: no +robot-useragent: Atomz/1.0 +robot-language: c +robot-description: Robot used for web site search service. +robot-history: Developed for Atomz.com, launched in 1999. +robot-environment: service +modified-date: Tue Jul 13 03:50:06 GMT 1999 +modified-by: Mike Thompson + +robot-id: auresys +robot-name: AURESYS +robot-cover-url: http://crrm.univ-mrs.fr +robot-details-url: http://crrm.univ-mrs.fr +robot-owner-name: Mannina Bruno +robot-owner-url: ftp://crrm.univ-mrs.fr/pub/CVetud/Etudiants/Mannina/CVbruno.htm +robot-owner-email: ma...@cr... +robot-status: robot actively in use +robot-purpose: indexing,statistics +robot-type: Standalone +robot-platform: Aix, Unix +robot-availability: Protected by Password +robot-exclusion: Yes +robot-exclusion-useragent: +robot-noindex: no +robot-host: crrm.univ-mrs.fr, 192.134.99.192 +robot-from: Yes +robot-useragent: AURESYS/1.0 +robot-language: Perl 5.001m +robot-description: The AURESYS is used to build a personnal database for + somebody who search information. The database is structured to be + analysed. AURESYS can found new server by IP incremental. It generate + statistics... +robot-history: This robot finds its roots in a research project at the + University of Marseille in 1995-1996 +robot-environment: used for Research +modified-date: Mon, 1 Jul 1996 14:30:00 GMT +modified-by: Mannina Bruno + +robot-id: backrub +robot-name: BackRub +robot-cover-url: +robot-details-url: +robot-owner-name: Larry Page +robot-owner-url: http://backrub.stanford.edu/ +robot-owner-email: pa...@le... +robot-status: +robot-purpose: indexing, statistics +robot-type: standalone +robot-platform: +robot-availability: +robot-exclusion: yes +robot-exclusion-useragent: +robot-noindex: +robot-host: *.stanford.edu +robot-from: yes +robot-useragent: BackRub/*.* +robot-language: Java. +robot-description: +robot-history: +robot-environment: +modified-date: Wed Feb 21 02:57:42 1996. +modified-by: + +robot-id: robot-name: bayspider +robot-cover-url: http://www.baytsp.com/ +robot-details-url: http://www.baytsp.com/ +robot-owner-name: BayTSP.com,Inc +robot-owner-url: +robot-owner-email: ma...@ba... +robot-status: Active +robot-purpose: Copyright Infringement Tracking +robot-type: Stand Alone +robot-platform: NT +robot-availability: 24/7 +robot-exclusion: +robot-exclusion-useragent: +robot-noindex: +robot-host: +robot-from: +robot-useragent: BaySpider +robot-language: English +robot-description: +robot-history: +robot-environment: +modified-date: 1/15/2001 +modified-by: Ma...@ba... + +robot-id: bbot +robot-name: BBot +robot-cover-url: http://www.otthon.net/search +robot-details-url: http://www.otthon.net/search/bbot +robot-owner-name: Istvan Fulop +robot-owner-url: http://www.otthon.net +robot-owner-email: poluf1 at yahoo dot co dot uk +robot-status: development +robot-purpose: indexing, maintenance +robot-type: standalone +robot-platform: windows +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: bbot +robot-noindex: yes +robot-nofollow: yes +robot-host: *.netcologne.de +robot-from: yes +robot-useragent: bbot/0.100 +robot-language: perl +robot-description: Mainly intended for site level search, sometimes set loose. +robot-history: Started project in 11/2000. Called BBot since 24/04/2003. +robot-environment: hobby +modified-date: Sun, 04 May 2003 10:15:00 GMT +modified-by: Istvan Fulop + +robot-id: bigbrother +robot-name: Big Brother +robot-cover-url: http://pauillac.inria.fr/~fpottier/mac-soft.html.en +robot-details-url: +robot-owner-name: Francois Pottier +robot-owner-url: http://pauillac.inria.fr/~fpottier/ +robot-owner-email: Fra...@in... +robot-status: active +robot-purpose: maintenance +robot-type: standalone +robot-platform: mac +robot-availability: binary +robot-exclusion: no +robot-exclusion-useragent: +robot-noindex: no +robot-host: * +robot-from: not as of 1.0 +robot-useragent: Big Brother +robot-language: c++ +robot-description: Macintosh-hosted link validation tool. +robot-history: +robot-environment: shareware +modified-date: Thu Sep 19 18:01:46 MET DST 1996 +modified-by: Francois Pottier + +robot-id: bjaaland +robot-name: Bjaaland +robot-cover-url: http://www.textuality.com +robot-details-url: http://www.textuality.com +robot-owner-name: Tim Bray +robot-owner-url: http://www.textuality.com +robot-owner-email: tb...@te... +robot-status: development +robot-purpose: indexing +robot-type: standalone +robot-platform: unix +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: Bjaaland +robot-noindex: no +robot-host: barry.bitmovers.net +robot-from: no +robot-useragent: Bjaaland/0.5 +robot-language: perl5 +robot-description: Crawls sites listed in the ODP (see http://dmoz.org) +robot-history: None, yet +robot-environment: service +modified-date: Monday, 19 July 1999, 13:46:00 PDT +modified-by: tb...@te... + +robot-id: blackwidow +robot-name: BlackWidow +robot-cover-url: http://140.190.65.12/~khooghee/index.html +robot-details-url: +robot-owner-name: Kevin Hoogheem +robot-owner-url: +robot-owner-email: kho...@ma... +robot-status: +robot-purpose: indexing, statistics +robot-type: standalone +robot-platform: +robot-availability: +robot-exclusion: no +robot-exclusion-useragent: +robot-noindex: +robot-host: 140.190.65.* +robot-from: yes +robot-useragent: BlackWidow +robot-language: C, C++. +robot-description: Started as a research project and now is used to find links + for a random link generator. Also is used to research the + growth of specific sites. +robot-history: +robot-environment: +modified-date: Fri Feb 9 00:11:22 1996. +modified-by: + +robot-id: blindekuh +robot-name: Die Blinde Kuh +robot-cover-url: http://www.blinde-kuh.de/ +robot-details-url: http://www.blinde-kuh.de/robot.html (german language) +robot-owner-name: Stefan R. Mueller +robot-owner-url: http://www.rrz.uni-hamburg.de/philsem/stefan_mueller/ +robot-owner-email:mas...@bl... +robot-status: development +robot-purpose: indexing +robot-type: browser +robot-platform: unix +robot-availability: none +robot-exclusion: no +robot-exclusion-useragent: +robot-noindex: no +robot-host: minerva.sozialwiss.uni-hamburg.de +robot-from: yes +robot-useragent: Die Blinde Kuh +robot-language: perl5 +robot-description: The robot is use for indixing and proofing the + registered urls in the german language search-engine for kids. + Its a none-comercial one-woman-project of Birgit Bachmann + living in Hamburg, Germany. +robot-history: The robot was developed by Stefan R. Mueller + to help by the manual proof of registered Links. +robot-environment: hobby +modified-date: Mon Jul 22 1998 +modified-by: Stefan R. Mueller + +robot-id:Bloodhound +robot-name:Bloodhound +robot-cover-url:http://web.ukonline.co.uk/genius/bloodhound.htm +robot-details-url:http://web.ukonline.co.uk/genius/bloodhound.htm +robot-owner-name:Dean Smart +robot-owner-url:http://web.ukonline.co.uk/genius/bloodhound.htm +robot-owner-email:ge...@uk... +robot-status:active +robot-purpose:Web Site Download +robot-type:standalone +robot-platform:Windows95, WindowsNT, Windows98, Windows2000 +robot-availability:Executible +robot-exclusion:No +robot-exclusion-useragent:Ukonline +robot-noindex:No +robot-host:* +robot-from:No +robot-useragent:None +robot-language:Perl5 +robot-description:Bloodhound will download an whole web site depending on the + number of links to follow specified by the user. +robot-history:First version was released on the 1 july 2000 +robot-environment:Commercial +modified-date:1 july 2000 +modified-by:Dean Smart + +robot-id: borg-bot +robot-name: Borg-Bot +robot-cover-url: +robot-details-url: http://www.skunkfarm.com/borgbot.htm +robot-owner-name: James Bragg +robot-owner-url: http://www.skunkfarm.com +robot-owner-email: bo...@sk... +robot-status: development +robot-purpose: indexing statistics +robot-type: standalone +robot-platform: Linux Windows2000 +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: borg-bot/0.9 +robot-noindex: yes +robot-host: 24.11.13.173 +robot-from: yes +robot-useragent: borg-bot/0.9 +robot-language: python +robot-description: Developmental crawler to feed a search engine +robot-history: +robot-environment: research service +modified-date: Sat, 20 Oct 2001 04:00:00 GMT +modified-by: Sat, 20 Oct 2001 04:00:00 GMT + +robot-id: boxseabot +robot-name: BoxSeaBot +robot-cover-url: http://www.boxsea.com/crawler +robot-details-url: http://www.boxsea.com/crawler +robot-owner-name: BoxSea Search Engine +robot-owner-url: http://www.boxsea.com +robot-owner-email: box...@ya... +robot-status: active +robot-purpose: indexing +robot-type: standalone +robot-platform: linux +robot-availability: +robot-exclusion: yes +robot-exclusion-useragent: boxseabot +robot-noindex: +robot-host: +robot-from: +robot-useragent: BoxSeaBot/0.5 (http://boxsea.com/crawler) +robot-language: java +robot-description: This robot is used to find pages + for building the BoxSea search engine indices. +robot-history: The robot code uses Nutch. Earlier + experimental crawls were done under various user agent + names such as NutchCVS(boxsea) +robot-environment: +modified-date: Fri, 23 Jul 2004 11:58:00 PST +modified-by: BoxSeaBot + +robot-id: brightnet +robot-name: bright.net caching robot +robot-cover-url: +robot-details-url: +robot-owner-name: +robot-owner-url: +robot-owner-email: +robot-status: active +robot-purpose: caching +robot-type: +robot-platform: +robot-availability: none +robot-exclusion: no +robot-noindex: +robot-host: 209.143.1.46 +robot-from: no +robot-useragent: Mozilla/3.01 (compatible;) +robot-language: +robot-description: +robot-history: +robot-environment: +modified-date: Fri Nov 13 14:08:01 EST 1998 +modified-by: brian d foy <co...@co...> + +robot-id: bspider +robot-name: BSpider +robot-cover-url: not yet +robot-details-url: not yet +robot-owner-name: Yo Okumura +robot-owner-url: not yet +robot-owner-email: ok...@rs... +robot-status: active +robot-purpose: indexing +robot-type: standalone +robot-platform: Unix +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: bspider +robot-noindex: yes +robot-host: 210.159.73.34, 210.159.73.35 +robot-from: yes +robot-useragent: BSpider/1.0 libwww-perl/0.40 +robot-language: perl +robot-description: BSpider is crawling inside of Japanese domain for indexing. +robot-history: Starts Apr 1997 in a research project at Fuji Xerox Corp. + Research Lab. +robot-environment: research +modified-date: Mon, 21 Apr 1997 18:00:00 JST +modified-by: Yo Okumura + +robot-id: cactvschemistryspider +robot-name: CACTVS Chemistry Spider +robot-cover-url: http://schiele.organik.uni-erlangen.de/cactvs/spider.html +robot-details-url: +robot-owner-name: W. D. Ihlenfeldt +robot-owner-url: http://schiele.organik.uni-erlangen.de/cactvs/ +robot-owner-email: wd...@er... +robot-status: +robot-purpose: indexing. +robot-type: standalone +robot-platform: +robot-availability: +robot-exclusion: yes +robot-exclusion-useragent: +robot-noindex: +robot-host: utamaro.organik.uni-erlangen.de +robot-from: no +robot-useragent: CACTVS Chemistry Spider +robot-language: TCL, C +robot-description: Locates chemical structures in Chemical MIME formats on WWW + and FTP servers and downloads them into database searchable + with structure queries (substructure, fullstructure, + formula, properties etc.) +robot-history: +robot-environment: +modified-date: Sat Mar 30 00:55:40 1996. +modified-by: + +robot-id: calif +robot-name: Calif +robot-details-url: http://www.tnps.dp.ua/calif/details.html +robot-cover-url: http://www.tnps.dp.ua/calif/ +robot-owner-name: Alexander Kosarev +robot-owner-url: http://www.tnps.dp.ua/~dark/ +robot-owner-email: ko...@tn... +robot-status: development +robot-purpose: indexing +robot-type: standalone +robot-platform: unix +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: calif +robot-noindex: yes +robot-host: cobra.tnps.dp.ua +robot-from: yes +robot-useragent: Calif/0.6 (ko...@tn...; http://www.tnps.dp.ua) +robot-language: c++ +robot-description: Used to build searchable index +robot-history: In development stage +robot-environment: research +modified-date: Sun, 6 Jun 1999 13:25:33 GMT + +robot-id: cassandra +robot-name: Cassandra +robot-cover-url: http://post.mipt.rssi.ru/~billy/search/ +robot-details-url: http://post.mipt.rssi.ru/~billy/search/ +robot-owner-name: Mr. Oleg Bilibin +robot-owner-url: http://post.mipt.rssi.ru/~billy/ +robot-owner-email: bil...@ah... +robot-status: development +robot-purpose: indexing +robot-type: standalone +robot-platform: crossplatform +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: +robot-noindex: no +robot-host: www.aha.ru +robot-from: no +robot-useragent: +robot-language: java +robot-description: Cassandra search robot is used to create and maintain indexed database for widespread Information Retrieval System +robot-history: Master of Science degree project at Moscow Institute of Physics and Technology +robot-environment: research +modified-date: Wed, 3 Jun 1998 12:00:00 GMT + +robot-id: cgireader +robot-name: Digimarc Marcspider/CGI +robot-cover-url: http://www.digimarc.com/prod_fam.html +robot-details-url: http://www.digimarc.com/prod_fam.html +robot-owner-name: Digimarc Corporation +robot-owner-url: http://www.digimarc.com +robot-owner-email: wmr...@di... +robot-status: active +robot-purpose: maintenance +robot-type: standalone +robot-platform: windowsNT +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: +robot-noindex: +robot-host: 206.102.3.* +robot-from: +robot-useragent: Digimarc CGIReader/1.0 +robot-language: c++ +robot-description: Similar to Digimarc Marcspider, Marcspider/CGI examines + image files for watermarks but more focused on CGI Urls. + In order to not waste internet bandwidth with yet another crawler, + we have contracted with one of the major crawlers/seach engines + to provide us with a list of specific CGI URLs of interest to us. + If an URL is to a page of interest (via CGI), then we access the + page to get the image URLs from it, but we do not crawl to + any other pages. +robot-history: First operation in December 1997 +robot-environment: service +modified-date: Fri, 5 Dec 1997 12:00:00 GMT +modified-by: Dan Ramos + +robot-id: checkbot +robot-name: Checkbot +robot-cover-url: http://www.xs4all.nl/~graaff/checkbot/ +robot-details-url: +robot-owner-name: Hans de Graaff +robot-owner-url: http://www.xs4all.nl/~graaff/checkbot/ +robot-owner-email: gr...@xs... +robot-status: active +robot-purpose: maintenance +robot-type: standalone +robot-platform: unix,WindowsNT +robot-availability: source +robot-exclusion: no +robot-exclusion-useragent: +robot-noindex: no +robot-host: * +robot-from: no +robot-useragent: Checkbot/x.xx LWP/5.x +robot-language: perl 5 +robot-description: Checkbot checks links in a + given set of pages on one or more servers. It reports links + which returned an error code +robot-history: +robot-environment: hobby +modified-date: Tue Jun 25 07:44:00 1996 +modified-by: Hans de Graaff + +robot-id: christcrawler +robot-name: ChristCrawler.com +robot-cover-url: http://www.christcrawler.com/search.cfm +robot-details-url: http://www.christcrawler.com/index.cfm +robot-owner-name: Jeremy DeYoung +robot-owner-url: http://www.christcentral.com/aboutus/index.cfm +robot-owner-email: jer...@ch... +robot-status: active +robot-purpose: indexing +robot-type: standalone +robot-platform: Windows NT 4.0 SP5 +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: christcrawler +robot-noindex: yes +robot-host: 64.51.218.*, 64.51.219.*, 12.107.236.*, 12.107.237.* +robot-from: yes +robot-useragent: Mozilla/4.0 (compatible; ChristCrawler.com, Chr...@Ch...) +robot-language: Cold Fusion 4.5 +robot-description: A Christian internet spider that searches web sites to find Christian Related material +robot-history: Developed because of the growing need for a more God influence on the Internet. +robot-environment: service +modified-date: Fri, 27 Jun 2001 00:53:12 CST +modified-by: Jeremy DeYoung + +robot-id: churl +robot-name: churl +robot-cover-url: http://www-personal.engin.umich.edu/~yunke/scripts/churl/ +robot-details-url: +robot-owner-name: Justin Yunke +robot-owner-url: http://www-personal.engin.umich.edu/~yunke/ +robot-owner-email: yu...@um... +robot-status: +robot-purpose: maintenance +robot-type: +robot-platform: +robot-availability: +robot-exclusion: +robot-exclusion-useragent: +robot-noindex: no +robot-host: +robot-from: +robot-useragent: +robot-language: +robot-description: A URL checking robot, which stays within one step of the + local server +robot-history: +robot-environment: +modified-date: +modified-by: + +robot-id: cienciaficcion +robot-name: cIeNcIaFiCcIoN.nEt +robot-cover-url: http://www.cienciaficcion.net/ +robot-details-url: http://www.cienciaficcion.net/ +robot-owner-name: David Fern\xE1ndez +robot-owner-url: http://www.cyberdark.net/ +robot-owner-email: ro...@cy... +robot-status: active +robot-purpose: indexing +robot-type: standalone +robot-platform: linux +robot-availability: none +robot-exclusion: no +robot-exclusion-useragent: +robot-noindex: yes +robot-host: epervier.cqhost.net +robot-from: no +robot-useragent: cIeNcIaFiCcIoN.nEt Spider (http://www.cienciaficcion.net) +robot-language: php,perl +robot-description: Robot encargado de la indexaci\xF3n de las p\xE1ginas para www.cienciaficcion.net +robot-history: Alcork\xF3n (Madrid) - Europa 2000/2001 +robot-environment: hobby +modified-date: Sat, 18 Aug 2001 00:38:52 GMT +modified-by: David Fern\xE1ndez + +robot-id: cmc +robot-name: CMC/0.01 +robot-details-url: http://www2.next.ne.jp/cgi-bin/music/help.cgi?phase=robot +robot-cover-url: http://www2.next.ne.jp/music/ +robot-owner-name: Shinobu Kubota. +robot-owner-url: http://www2.next.ne.jp/cgi-bin/music/help.cgi?phase=profile +robot-owner-email: sh...@po... +robot-status: active +robot-purpose: maintenance +robot-type: standalone +robot-platform: unix +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: CMC/0.01 +robot-noindex: no +robot-host: haruna.next.ne.jp, 203.183.218.4 +robot-from: yes +robot-useragent: CMC/0.01 +robot-language: perl5 +robot-description: This CMC/0.01 robot collects the information + of the page that was registered to the music + specialty searching service. +robot-history: This CMC/0.01 robot was made for the computer + music center on November 4, 1997. +robot-environment: hobby +modified-date: Sat, 23 May 1998 17:22:00 GMT + +robot-id:Collective +robot-name:Collective +robot-cover-url:http://web.ukonline.co.uk/genius/collective.htm +robot-details-url:http://web.ukonline.co.uk/genius/collective.htm +robot-owner-name:Dean Smart +robot-owner-url:http://web.ukonline.co.uk/genius/collective.htm +robot-owner-email:ge...@uk... +robot-status:development +robot-purpose:Collective is a highly configurable program designed to interrogate + online search engines and online databases, it will ignore web pages + that lie about there content, and dead url's, it can be super strict, it searches each web page + it finds for your search terms to ensure those terms are present, any positive urls are added to + a html file for your to view at any time even before the program has finished. + Collective can wonder the web for days if required. +robot-type:standalone +robot-platform:Windows95, WindowsNT, Windows98, Windows2000 +robot-availability:Executible +robot-exclusion:No +robot-exclusion-useragent: +robot-noindex:No +robot-host:* +robot-from:No +robot-useragent:LWP +robot-language:Perl5 (With Visual Basic front-end) +robot-description:Collective is the most cleverest Internet search engine, + With all found url?s guaranteed to have your search terms. +robot-history:Develpment started on August, 03, 2000 +robot-environment:Commercial +modified-date:August, 03, 2000 +modified-by:Dean Smart + +robot-id: combine +robot-name: Combine System +robot-cover-url: http://www.ub2.lu.se/~tsao/combine.ps +robot-details-url: http://www.ub2.lu.se/~tsao/combine.ps +robot-owner-name: Yong Cao +robot-owner-url: http://www.ub2.lu.se/ +robot-owner-email: ts...@mu... +robot-status: development +robot-purpose: indexing +robot-type: standalone +robot-platform: unix +robot-availability: source +robot-exclusion: yes +robot-exclusion-useragent: combine +robot-noindex: no +robot-host: *.ub2.lu.se +robot-from: yes +robot-useragent: combine/0.0 +robot-language: c, perl5 +robot-description: An open, distributed, and efficient harvester. +robot-history: A complete re-design of the NWI robot (w3index) for DESIRE project. +robot-environment: research +modified-date: Tue, 04 Mar 1997 16:11:40 GMT +modified-by: Yong Cao + +robot-id: confuzzledbot +robot-name: ConfuzzledBot +robot-cover-url: http://www.blue.lu/ +robot-details-url: http://bot.confuzzled.lu/ +robot-owner-name: Britz Thibaut +robot-owner-url: http://www.confuzzled.lu/ +robot-owner-email: bo...@co... +robot-status: development +robot-purpose: indexing +robot-type: standalone +robot-platform: Linux,Freebsd +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: confuzzledbot +robot-noindex: yes +robot-nofollow: yes +robot-host: *.ion.lu +robot-from: no +robot-useragent: Confuzzledbot/X.X (+http://www.confuzzled.lu/bot/) +robot-language: perl5 +robot-description: The robot is used to build a searchable database + for luxembourgish sites. It only indexes .lu domains and luxembourgish + sites added to the directory. +robot-history: Developed 2000-2002. Only minor changes recently +robot-environment: hobby +modified-date: Tue, 11 May 2004 17:45:00 CET +modified-by: Britz Thibaut + +robot-id: coolbot +robot-name: CoolBot +robot-cover-url: www.suchmaschine21.de +robot-details-url: www.suchmaschine21.de +robot-owner-name: Stefan Fischerlaender +robot-owner-url: www.suchmaschine21.de +robot-owner-email: in...@su... +robot-status: active +robot-purpose: indexing +robot-type: standalone +robot-platform: unix +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: CoolBot +robot-noindex: yes +robot-host: www.suchmaschine21.de +robot-from: no +robot-useragent: CoolBot +robot-language: perl5 +robot-description: The CoolBot robot is used to build and maintain the + directory of the german search engine Suchmaschine21. +robot-history: none so far +robot-environment: service +modified-date: Wed, 21 Jan 2001 12:16:00 GMT +modified-by: Stefan Fischerlaender + +robot-id: core +robot-name: Web Core / Roots +robot-cover-url: http://www.di.uminho.pt/wc +robot-details-url: +robot-owner-name: Jorge Portugal Andrade +robot-owner-url: http://www.di.uminho.pt/~cbm +robot-owner-email: wc...@di... +robot-status: +robot-purpose: indexing, maintenance +robot-type: +robot-platform: +robot-availability: +robot-exclusion: yes +robot-exclusion-useragent: +robot-noindex: +robot-host: shiva.di.uminho.pt, from www.di.uminho.pt +robot-from: no +robot-useragent: root/0.1 +robot-language: perl +robot-description: Parallel robot developed in Minho Univeristy in Portugal to + catalog relations among URLs and to support a special + navigation aid. +robot-history: First versions since October 1995. +robot-environment: +modified-date: Wed Jan 10 23:19:08 1996. +modified-by: + +robot-id: cosmos +robot-name: XYLEME Robot +robot-cover-url: http://xyleme.com/ +robot-details-url: +robot-owner-name: Mihai Preda +robot-owner-url: http://www.mihaipreda.com/ +robot-owner-email: pr...@xy... +robot-status: development +robot-purpose: indexing +robot-type: standalone +robot-platform: unix +robot-availability: data +robot-exclusion: yes +robot-exclusion-useragent: cosmos +robot-noindex: no +robot-nofollow: no +robot-host: +robot-from: yes +robot-useragent: cosmos/0.3 +robot-language: c++ +robot-description: index XML, follow HTML +robot-history: +robot-environment: service +modified-date: Fri, 24 Nov 2000 00:00:00 GMT +modified-by: Mihai Preda + +robot-id: cruiser +robot-name: Internet Cruiser Robot +robot-cover-url: http://www.krstarica.com/ +robot-details-url: http://www.krstarica.com/eng/url/ +robot-owner-name: Internet Cruiser +robot-owner-url: http://www.krstarica.com/ +robot-owner-email: ro...@kr... +robot-status: active +robot-purpose: indexing +robot-type: standalone +robot-platform: unix +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: Internet Cruiser Robot +robot-noindex: yes +robot-host: *.krstarica.com +robot-from: no +robot-useragent: Internet Cruiser Robot/2.1 +robot-language: c++ +robot-description: Internet Cruiser Robot is Internet Cruiser's prime index + agent. +robot-history: +robot-environment: service +modified-date: Fri, 17 Jan 2001 12:00:00 GMT +modified-by: te...@kr... + +robot-id: cusco +robot-name: Cusco +robot-cover-url: http://www.cusco.pt/ +robot-details-url: http://www.cusco.pt/ +robot-owner-name: Filipe Costa Clerigo +robot-owner-url: http://www.viatecla.pt/ +robot-owner-email: cl...@vi... +robot-status: active +robot-purpose: indexing +robot-type: standlone +robot-platform: any +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: cusco +robot-noindex: yes +robot-host: *.cusco.pt, *.viatecla.pt +robot-from: yes +robot-useragent: Cusco/3.2 +robot-language: Java +robot-description: The Cusco robot is part of the CUCE indexing sistem. It + gathers information from several sources: HTTP, Databases or filesystem. At + this moment, it's universe is the .pt domain and the information it gathers + is available at the Portuguese search engine Cusco http://www.cusco.pt/. +robot-history: The Cusco search engine started in the company ViaTecla as a + project to demonstrate our development capabilities and to fill the need of + a portuguese-specific search engine. Now, we are developping new + functionalities that cannot be found in any other on-line search engines. +robot-environment:service, research +modified-date: Mon, 21 Jun 1999 14:00:00 GMT +modified-by: Filipe Costa Clerigo + +robot-id: cyberspyder +robot-name: CyberSpyder Link Test +robot-cover-url: http://www.cyberspyder.com/cslnkts1.html +robot-details-url: http://www.cyberspyder.com/cslnkts1.html +robot-owner-name: Tom Aman +robot-owner-url: http://www.cyberspyder.com/ +robot-owner-email: am...@cy... +robot-status: active +robot-purpose: link validation, some html validation +robot-type: standalone +robot-platform: windows 3.1x, windows95, windowsNT +robot-availability: binary +robot-exclusion: user configurable +robot-exclusion-useragent: cyberspyder +robot-noindex: no +robot-host: * +robot-from: no +robot-useragent: CyberSpyder/2.1 +robot-language: Microsoft Visual Basic 4.0 +robot-description: CyberSpyder Link Test is intended to be used as a site + management tool to validate that HTTP links on a page are functional and to + produce various analysis reports to assist in managing a site. +robot-history: The original robot was created to fill a widely seen need + for a easy to use link checking program. +robot-environment: commercial +modified-date: Tue, 31 Mar 1998 01:02:00 GMT +modified-by: Tom Aman + +robot-id: cydralspider +robot-name: CydralSpider +robot-cover-url: http://www.cydral.com/ +robot-details-url: http://en.cydral.com/help.html +robot-owner-name: Cydral +robot-owner-url: http://www.cydral.com/ +robot-owner-email: cy...@cy... +robot-status: active +robot-purpose: gather Web content for image search engine service +robot-type: standalone +robot-platform: unix; windows +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: cydralspider +robot-noindex: yes +robot-host: *.cydral.com +robot-from: yes +robot-useragent: CydralSpider/X.X (Cydral Web Image Search; + http://www.cydral.com/) +robot-language: c++ +robot-description: Advanced image spider for www.cydral.com +robot-history: Developped in 2003, the robot uses new methods to discover Web + sites and index images +robot-environment: commercial +modified-date: Tue, 17 Jun 2004, 11:50:30 GMT +modified-by: cy...@cy... + +robot-id: desertrealm +robot-name: Desert Realm Spider +robot-cover-url: http://www.desertrealm.com +robot-details-url: http://spider.desertrealm.com +robot-owner-name: Brian B. +robot-owner-url: http://www.desertrealm.com +robot-owner-email: sp...@de... +robot-status: robot actively in use +robot-purpose: indexing +robot-type: standalone +robot-platform: cross platform +robot-availability: none +robot-exclusion: yes +robot-exclusion-useragent: desertrealm, desert realm +robot-noindex: yes +robot-nofollow: yes +robot-host: * +robot-from: no +robot-useragent: DesertRealm.com; 0.2; [J]; +robot-language: java 1.3, java 1.4 +robot-description: The spider indexes fantasy and science fiction sites by + using a customizable keyword algorithm. Only home pages are indexed, but all + pages are looked at for links. Pages are visited randomly to limit impact on + any one webserver. +robot-history: The spider originally was created to learn more about how + search engines work. +robot-environment: hobby +modified-date: Fri, 19 Sep 2003 08:57:52 GMT +modified-by: Brian B. + +robot-id: deweb +robot-name: DeWeb(c) Katalog/Index +robot-cover-url: http://deweb.orbit.de/ +robot-details-url: +robot-owner-name: Marc Mielke +robot-owner-url: http://www.orbit.de/ +robot-owner-email: dew...@or... +robot-status: +robot-purpose: indexing, mirroring, statistics +robot-type: standalone +robot-platform: +robot-availability: +robot-exclusion: yes +robot-exclusion-useragent: +robot-noindex: no +robot-host: deweb.orbit.de +robot-from: yes +robot-useragent: Deweb/1.01 +robot-language: perl 4 +robot-description: Its purpose is to generate a Resource Discovery database, + perform mirroring, and generate statistics. Uses combination + of Informix(tm) Database and WN 1.11 serversoftware for + indexing/ressource discovery, fulltext search, text + excerpts. +robot-history: +robot-environment: +modified-date: Wed Jan 10 08:23:00 1996 +modified-by: + +robot-id: dienstspider +robot-name: DienstSpider +robot-cover-url: http://sappho.csi.forth.gr:22000/ +robot-details-url: +robot-owner-name: Antonis Sidiropoulos +robot-owner-url: http://www.csi.forth.gr/~asidirop +robot-owner-email: asi...@cs... +robot-status: development +robot-purpose: indexing +robot-type: standalone +robot-platform: unix +robot-availability: none +robot-exclusion: +robot-exclusion-useragent: +robot-noindex: +robot-host: sappho.csi.forth.gr +robot-from: +robot-useragent: dienstspider/1.0 +robot-language: C +robot-description: Indexing and searching the NCSTRL(Networked Computer Science Technical Report Library) and ERCIM Collection +robot-history: The version 1.0 was the developer's master thesis project +robot-environment: research +modified-date: Fri, 4 Dec 1998 0:0:0 GMT +modified-by: asi...@cs... + +robot-id: digger +robot-name: Digg... [truncated message content] |
From: <wis...@us...> - 2009-06-04 02:26:02
|
Revision: 3261 http://xoops.svn.sourceforge.net/xoops/?rev=3261&view=rev Author: wishcraft Date: 2009-06-04 02:25:57 +0000 (Thu, 04 Jun 2009) Log Message: ----------- XPNEWS 1.1 - NNTP Protocol News Groups (Usenet) Added Paths: ----------- XoopsModules/xpnews/ XoopsModules/xpnews/branches/ XoopsModules/xpnews/releases/ XoopsModules/xpnews/releases/1.1/ XoopsModules/xpnews/releases/1.1/xpnews/ XoopsModules/xpnews/releases/1.1/xpnews/admin/ XoopsModules/xpnews/releases/1.1/xpnews/admin/admin_header.php XoopsModules/xpnews/releases/1.1/xpnews/admin/groupperms.php XoopsModules/xpnews/releases/1.1/xpnews/admin/index.php XoopsModules/xpnews/releases/1.1/xpnews/admin/menu.php XoopsModules/xpnews/releases/1.1/xpnews/admin/mygroupperm.php XoopsModules/xpnews/releases/1.1/xpnews/class/ XoopsModules/xpnews/releases/1.1/xpnews/class/mimedecode.php XoopsModules/xpnews/releases/1.1/xpnews/class/newsgroups.php XoopsModules/xpnews/releases/1.1/xpnews/class/nnrpclass.php XoopsModules/xpnews/releases/1.1/xpnews/class/servers.php XoopsModules/xpnews/releases/1.1/xpnews/config.inc.php XoopsModules/xpnews/releases/1.1/xpnews/css/ XoopsModules/xpnews/releases/1.1/xpnews/css/standard.css XoopsModules/xpnews/releases/1.1/xpnews/download.php XoopsModules/xpnews/releases/1.1/xpnews/html.inc.php XoopsModules/xpnews/releases/1.1/xpnews/images/ XoopsModules/xpnews/releases/1.1/xpnews/images/left_both.gif XoopsModules/xpnews/releases/1.1/xpnews/images/right_both.gif XoopsModules/xpnews/releases/1.1/xpnews/images/xpnews_slogo.png XoopsModules/xpnews/releases/1.1/xpnews/include/ XoopsModules/xpnews/releases/1.1/xpnews/include/forms.php XoopsModules/xpnews/releases/1.1/xpnews/include/functions.php XoopsModules/xpnews/releases/1.1/xpnews/index.php XoopsModules/xpnews/releases/1.1/xpnews/indexing.php XoopsModules/xpnews/releases/1.1/xpnews/language/ XoopsModules/xpnews/releases/1.1/xpnews/language/english/ XoopsModules/xpnews/releases/1.1/xpnews/language/english/main.php XoopsModules/xpnews/releases/1.1/xpnews/language/english/modinfo.php XoopsModules/xpnews/releases/1.1/xpnews/language.inc.php XoopsModules/xpnews/releases/1.1/xpnews/post.php XoopsModules/xpnews/releases/1.1/xpnews/read-art.php XoopsModules/xpnews/releases/1.1/xpnews/read.php XoopsModules/xpnews/releases/1.1/xpnews/readcfg.inc.php XoopsModules/xpnews/releases/1.1/xpnews/reference/ XoopsModules/xpnews/releases/1.1/xpnews/reference/uuencode.inc.php XoopsModules/xpnews/releases/1.1/xpnews/reply.php XoopsModules/xpnews/releases/1.1/xpnews/sql/ XoopsModules/xpnews/releases/1.1/xpnews/sql/xpnews.sql XoopsModules/xpnews/releases/1.1/xpnews/templates/ XoopsModules/xpnews/releases/1.1/xpnews/templates/xpnews_index.html XoopsModules/xpnews/releases/1.1/xpnews/templates/xpnews_indexing.html XoopsModules/xpnews/releases/1.1/xpnews/templates/xpnews_read.html XoopsModules/xpnews/releases/1.1/xpnews/utils.inc.php XoopsModules/xpnews/releases/1.1/xpnews/utils.js XoopsModules/xpnews/releases/1.1/xpnews/version.inc.php XoopsModules/xpnews/releases/1.1/xpnews/xoops_version.php XoopsModules/xpnews/releases/1.1/xpnews/xpost.php XoopsModules/xpnews/trunk/ Added: XoopsModules/xpnews/releases/1.1/xpnews/admin/admin_header.php =================================================================== --- XoopsModules/xpnews/releases/1.1/xpnews/admin/admin_header.php (rev 0) +++ XoopsModules/xpnews/releases/1.1/xpnews/admin/admin_header.php 2009-06-04 02:25:57 UTC (rev 3261) @@ -0,0 +1,46 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP MakePayment System // +// Copyright (c) 2007 chronolabs.org.au // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA WISHCRAFT) // +// Site: http://www.chronolabs.org.au // +// Project: The Chrononaut Project // +// ------------------------------------------------------------------------- // +include_once "../../../mainfile.php"; +require_once( XOOPS_ROOT_PATH.'/include/cp_header.php' ) ; +include_once( XOOPS_ROOT_PATH."/include/functions.php" ) ; + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname('xpnews'); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/", 3, 'Not Permitted Access'); + exit(); + } + } else { + redirect_header(XOOPS_URL."/", 3, 'Not Permitted Access'); + exit(); + } + +include_once( XOOPS_ROOT_PATH."/modules/xpnews/include/functions.php" ) ; + +?> \ No newline at end of file Added: XoopsModules/xpnews/releases/1.1/xpnews/admin/groupperms.php =================================================================== --- XoopsModules/xpnews/releases/1.1/xpnews/admin/groupperms.php (rev 0) +++ XoopsModules/xpnews/releases/1.1/xpnews/admin/groupperms.php 2009-06-04 02:25:57 UTC (rev 3261) @@ -0,0 +1,110 @@ +<?php +// $Id: groupperms.php,v 1.7 2004/07/26 17:51:25 hthouzard Exp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +include_once("admin_header.php"); +include_once XOOPS_ROOT_PATH . "/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH . "/class/xoopsform/grouppermform.php"; +include_once XOOPS_ROOT_PATH . "/modules/xpnews/admin/mygrouppermform.php"; + +error_reporting(E_ALL); + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ); + +xoops_cp_header(); +adminMenu(2); + +global $xoopsDB; + +$maxr = 100; +$permtoset= isset($_POST['permtoset']) ? ($_POST['permtoset']) : 1; +$permtoseta = explode('_', $permtoset); +$selected=array('','','',''); +$selected[$permtoseta[0]-1]=' selected'; +$module_id = $xoopsModule->getVar('mid'); + +$newsgroup_handler = xoops_getmodulehandler('newsgroups', 'xpnews'); +$server_handler = xoops_getmodulehandler('servers', 'xpnews'); + +$servers = $server_handler->getObjects(null); + +$server_view = array(); +foreach( $servers as $server ) { + $server_view[] = array("server_id" => $server->getVar('server_id'), "title" => $server->getVar('name')); +} + +echo "<form method='post' name='jselperm' action='groupperms.php'><table border=0><tr><td><select name='permtoset' onChange='javascript: document.jselperm.submit()'><option value='1'".$selected[0].">Viewing Server Permissions</option>"; +foreach( $server_view as $key => $value ) { + echo "<option value='". ($yy+2) .'_'.$value['server_id'].'_reply\''.$selected[$yy+1].">".$value['title']." Reply Permissions</option>"; + echo "<option value='". ($yy+3) .'_'.$value['server_id'].'_crosspost\''.$selected[$yy+2].">".$value['title']." Crossposting Permissions</option>"; + echo "<option value='". ($yy+4) .'_'.$value['server_id'].'_newpost\''.$selected[$yy+3].">".$value['title']." New Post Permissions</option>"; + $yy=$yy+3; +} +echo "</select></td><td></tr></table></form>"; + + + +$ts = &MyTextSanitizer::getInstance(); + +switch($permtoset) +{ + case 1: + + $title_of_form = "Select the server items that can be viewed"; + $perm_name = "xpnews_server_view"; + $perm_desc = "This is the items of newsgroups that can be viewed"; + $item_list_view = array(); + + $permform = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name, $perm_desc); + foreach ($server_view as $itemlists) + $permform->addItem($itemlists['server_id'], $ts->displayTarea($itemlists['title'])); + + break; + + default: + + $criteria = new Criteria('server_id', $permtoseta[1]); + $newsgroups = $newsgroup_handler->getObjects($criteria); + + $title_of_form = "Select the server items that can be ".$permtoseta[2]; + $perm_name = $permtoseta[1].'_'.$permtoseta[2]; + $perm_desc = "This is the items of newsgroups that can be ".$permtoseta[2]; + $item_list_view = array(); + + $permform = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name, $perm_desc); + foreach ($newsgroups as $newsgroup) + $permform->addItem($newsgroup->getVar('id'), $ts->displayTarea($newsgroup->getVar('newsgroup'))); + + break; + +} + +echo $permform->render(); +echo "<br /><br /><br /><br />\n"; +unset ($permform); +footer_adminMenu(); +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xpnews/releases/1.1/xpnews/admin/index.php =================================================================== --- XoopsModules/xpnews/releases/1.1/xpnews/admin/index.php (rev 0) +++ XoopsModules/xpnews/releases/1.1/xpnews/admin/index.php 2009-06-04 02:25:57 UTC (rev 3261) @@ -0,0 +1,165 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP MakePayment System // +// Copyright (c) 2007 chronolabs.org.au // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA WISHCRAFT) // +// Site: http://www.chronolabs.org.au // +// Project: The Chrononaut Project // +// ------------------------------------------------------------------------- // + +include_once "admin_header.php"; +include XOOPS_ROOT_PATH."/modules/xpnews/include/forms.php"; +include XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; + +error_reporting(E_ALL); +global $xoopsDB; + +if (isset($_GET)) { + foreach ($_GET as $k => $v) { + ${$k} = $v; + } + } + + if (isset($_POST)) { + foreach ($_POST as $k => $v) { + ${$k} = $v; + } + } + +switch($op){ + case "pollserver": + + require_once('../utils.inc.php'); + + error_reporting(E_ALL); + + $newsgroup_handler = xoops_getmodulehandler('newsgroups', 'xpnews'); + $server_handler = xoops_getmodulehandler('servers', 'xpnews'); + + $nnrp->open( $news_server[$server], $news_nntps[$server] ); + set_time_limit(60*2); + + $active = $nnrp->list_group( $news_groups[$server], $article_convert['to'] ); + + $config_handler = xoops_gethandler('config'); + + while ( list ($group, $value) = each ($active) ) { + + if( !isset($value[2]) || $value[2] == '' ) + $value[2] = ' '; + elseif( strlen( $value[2] ) > 50 ) + $value[2] = htmlspecialchars(substr( $value[2], 0, 150 )) . ' ..'; + + $num = $value[0] - $value[1] + 1; + if( $num < 0 ) $num = 0; + + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('newsgroup', $group)); + $criteria->add(new Criteria('server_id', $news_server_id[$curr_category])); + if ($newsgroup_handler->getCount($criteria)==0) + $newsgroup[0] = $newsgroup_handler->create(); + else + $newsgroup = $newsgroup_handler->getObjects($criteria); + + $newsgroup[0]->setVar("posts", $num); + $newsgroup[0]->setVar("newsgroup", $group); + $newsgroup[0]->setVar("server_id", $news_server_id[$curr_category]); + $newsgroup[0]->setVar("description", $value[2]); + + $newsgroup_handler->insert($newsgroup[0]); + $class = ($class=="even")?"odd":"even"; + $groups[] = array("class" => $class, "num" => $i, "posts" => $num, "newsgroup" => $glink, "description" => $value[2]); + + } + + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('conf_name', 'cache_index_last')); + $conf = $config_handler->getConfigs($criteria); + $conf[0]->setVar('conf_value', time()); + $config_handler->insertConfig($conf[0]); + + redirect_header("index.php", 2 , "Poll Completed"); + + case "delete": + $newsgroup_handler = xoops_getmodulehandler('servers', 'xpnews'); + if ($newsgroup_handler->delete_id($server)) + redirect_header("index.php", 2 , "Deleting Server a Success"); + else + redirect_header("index.php", 2 , "Deleting Server Unsuccessful"); + break; + case "save": + $newsgroup_handler = xoops_getmodulehandler('servers', 'xpnews'); + if (!empty($server_id)) + $pserver = $newsgroup_handler->get($server_id); + else + $pserver = $newsgroup_handler->create(); + + $pserver->setVar("name", $name); + $pserver->setVar("server", $server); + $pserver->setVar("group", $group); + $pserver->setVar("option", $option); + $pserver->setVar("auth_username", $auth_username); + $pserver->setVar("auth_password", $auth_password); + $pserver->setVar("charset", $charset); + + $inresult = $newsgroup_handler->insert($pserver); + + if ($inresult) + redirect_header("index.php?op=pollserver&server=".$pserver->getVar('server_id'), 2 , "Editing/Creating Server a Success"); + else + redirect_header("index.php", 2 , "Editing/Creating Server Unsuccessful"); + + break; + case "newserver": + xoops_cp_header(); + adminMenu(1); + editserver_form(); + break; + case "editserver": + xoops_cp_header(); + adminMenu(1); + editserver_form($server); + break; + default: + xoops_cp_header(); + adminMenu(1); + $newsgroup_handler = xoops_getmodulehandler('servers', 'xpnews'); + $server_lst = $newsgroup_handler->getObjects(null, true); + ?><p><a href="index.php?op=newserver">Create New Server</a><br/></p><?php + + $form = new XoopsThemeForm("Server List", "servers", $_SERVER['PHP_SELF'] .""); + $form->setExtra( "enctype='multipart/form-data'" ) ; + + foreach($server_lst as $server) + { + $form->addElement(new XoopsFormLabel("<strong>".$server->getVar('name')."</strong> (".$server->getVar('server').")", "<a href='index.php?op=editserver&server=".$server->getVar('server_id')."'>Edit</a> <a href='index.php?op=pollserver&server=".$server->getVar('server_id')."'>Poll</a> <a href='index.php?op=delete&server=".$server->getVar('server_id')."'>Delete</a>")); + } + + $form->display(); +} + echo " "; +footer_adminMenu(); +xoops_cp_footer(); + + +?> Added: XoopsModules/xpnews/releases/1.1/xpnews/admin/menu.php =================================================================== --- XoopsModules/xpnews/releases/1.1/xpnews/admin/menu.php (rev 0) +++ XoopsModules/xpnews/releases/1.1/xpnews/admin/menu.php 2009-06-04 02:25:57 UTC (rev 3261) @@ -0,0 +1,35 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP MakePayment System // +// Copyright (c) 2007 chronolabs.org.au // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA WISHCRAFT) // +// Site: http://www.chronolabs.org.au // +// Project: The Chrononaut Project // +// ------------------------------------------------------------------------- // +global $adminmenu; +$adminmenu = array(); +$adminmenu[1]['title'] = XNP_ADMINMENU1; +$adminmenu[1]['link'] = "admin/index.php?op=servers"; +$adminmenu[2]['title'] = XNP_ADMINMENU3; +$adminmenu[2]['link'] = "admin/groupperms.php"; +?> \ No newline at end of file Added: XoopsModules/xpnews/releases/1.1/xpnews/admin/mygroupperm.php =================================================================== --- XoopsModules/xpnews/releases/1.1/xpnews/admin/mygroupperm.php (rev 0) +++ XoopsModules/xpnews/releases/1.1/xpnews/admin/mygroupperm.php 2009-06-04 02:25:57 UTC (rev 3261) @@ -0,0 +1,70 @@ +<?php +// $Id: groupperm.php,v 1.8 2004/12/26 19:12:04 onokazu Exp $ + +include '../../../include/cp_header.php'; +$modid = isset($_POST['modid']) ? intval($_POST['modid']) : 0; + +// we dont want system module permissions to be changed here +if ($modid <= 1 || !is_object($xoopsUser) || !$xoopsUser->isAdmin($modid)) { + redirect_header(XOOPS_URL.'/index.php', 1, _NOPERM); + exit(); +} +$module_handler =& xoops_gethandler('module'); +$module =& $module_handler->get($modid); +if (!is_object($module) || !$module->getVar('isactive')) { + redirect_header(XOOPS_URL.'/admin.php', 1, _MODULENOEXIST); + exit(); +} +$member_handler =& xoops_gethandler('member'); +$group_list =& $member_handler->getGroupList(); +if (is_array($_POST['perms']) && !empty($_POST['perms'])) { + $gperm_handler = xoops_gethandler('groupperm'); + foreach ($_POST['perms'] as $perm_name => $perm_data) { + if (false != $gperm_handler->deleteByModule($modid, $perm_name)) { + foreach ($perm_data['groups'] as $group_id => $item_ids) { + foreach ($item_ids as $item_id => $selected) { + if ($selected == 1) { + // make sure that all parent ids are selected as well + if ($perm_data['parents'][$item_id] != '') { + $parent_ids = explode(':', $perm_data['parents'][$item_id]); + foreach ($parent_ids as $pid) { + if ($pid != 0 && !in_array($pid, array_keys($item_ids))) { + // one of the parent items were not selected, so skip this item + $msg[] = sprintf(constant($admin_lang."_PERMADDNG"), "<b>".$perm_name."</b>", "<b>".$perm_data['itemname'][$item_id]."</b>", "<b>".$group_list[$group_id]."</b>")." (".constant($admin_lang."_PERMADDNGP").")"; + continue 2; + } + } + } + $gperm =& $gperm_handler->create(); + $gperm->setVar('gperm_groupid', $group_id); + $gperm->setVar('gperm_name', $perm_name); + $gperm->setVar('gperm_modid', $modid); + $gperm->setVar('gperm_itemid', $item_id); + if (!$gperm_handler->insert($gperm)) { + $msg[] = sprintf(constant($admin_lang."_PERMADDNG"), '<b>'.$perm_name.'</b>', '<b>'.$perm_data['itemname'][$item_id].'</b>', '<b>'.$group_list[$group_id].'</b>'); + } else { + $msg[] = sprintf(constant($admin_lang."_PERMADDOK"), '<b>'.$perm_name.'</b>', '<b>'.$perm_data['itemname'][$item_id].'</b>', '<b>'.$group_list[$group_id].'</b>'); + } + unset($gperm); + } + } + } + } else { ++ $msg[] = sprintf(constant($admin_lang."_PERMRESETNG"), $module->getVar('name').'('.$perm_name.')'); + } + } +} + +$backlink = XOOPS_URL.'/admin.php'; +if ($module->getVar('hasadmin')) { + $adminindex = isset($_POST['redirect_url']) ? $_POST['redirect_url'] : $module->getInfo('adminindex'); + if ($adminindex) { + $backlink = XOOPS_URL.'/modules/'.$module->getVar('dirname').'/admin/groupperms.php'; + } +} + +$msg[] = '<br /><br /><a href="'.$backlink.'">'._BACK.'</a>'; +xoops_cp_header(); +xoops_result($msg); +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xpnews/releases/1.1/xpnews/class/mimedecode.php =================================================================== --- XoopsModules/xpnews/releases/1.1/xpnews/class/mimedecode.php (rev 0) +++ XoopsModules/xpnews/releases/1.1/xpnews/class/mimedecode.php 2009-06-04 02:25:57 UTC (rev 3261) @@ -0,0 +1,236 @@ +<?php + + + class mime_decode + { + var $html; + var $text; + var $attachments = array(); + var $headers = array(); + var $body = array(); + var $inline_images = array(); + + function __construct($message) + { + @$this->pullapart(($message)); + } + + private function pullapart($message) + { + $this->headers = $message['header']; + $this->body = $message['body']; + $body = array(); + if (strpos(strtolower($this->body[0]), 'mime format')) + { + foreach($this->body as $key => $line) + { + if ($key>0) + { + if ($key==1||$key==2) + if (!empty($line)) + { + $boundary = explode("_", $line); + $lastpart = $boundary[count($boundary)-1]; + } + + if (!empty($lastpart)) { + if (strpos(' '.$line, $lastpart)>0){ + $inheader=true; + $part++; + } + } elseif (strpos(' '.$line, 'Content-Type')>0){ + $inheader=true; + $part++; + } + if ($inheader==true&&empty($line)) + $inheader=false; + + if ($inheader==true) { + if (strpos($line, ":")>0) + { + $i = strpos($line, ":"); + $item = trim(substr($line, 0, $i)); + $setting = str_replace(array('"',';'),'',trim(substr($line, $i+1, strlen($line)-$i-1))); + $body[$part]['header'][$item]['item'] = $setting; + } elseif (strpos($line, "=")>0) { + $i = strpos($line, "="); + $subitem = trim(substr($line, 0, $i)); + $setting = str_replace(array('"',';'),'',trim(substr($line, $i+1, strlen($line)-$i-1))); + $body[$part]['header'][$item][$subitem] = $setting; + } + } else { + if (!empty($lastpart)) { + if (strpos(' '.$line, $lastpart)==0){ + $body[$part]['body'] .= $line."\n"; + } + } else { + $body[$part]['body'] .= $line."\n"; + } + } + + } + } + + $this->processBodyArray($body); + } else { + $this->text = implode("\n", $this->body); + } + + } + + private function processBodyArray($body) + { + global $xoopsModuleConfig; + + foreach($body as $key => $part) + { + if ($part['header']['Content-Disposition']['item']!='attachment') { + switch($part['header']['Content-Type']['item']) { + case "multipart/related": + case "multipart/alternative": + break; + case "text/plain": + $this->text = $part['body']; + break; + case "text/html": + $this->html = $part['body']; + break; + case "image/jpeg": + case "image/png": + case "image/gif": + case "image/tiff": + if ($part['header']['Content-Transfer-Encoding']['item'] == 'base64') { + $filename = $_GET['category'].'_'.$_GET['group'].$_GET['artnum'].'_'.$part['header']['Content-Type']['name']; + if (!file_exists($xoopsModuleConfig['decode_path'].'/'.$filename)) + { + $file = fopen($xoopsModuleConfig['decode_path'].'/'.$filename, "w"); + fwrite($file, base64_decode($part['body']), strlen(base64_decode($part['body']))); + fclose($file); + } + $inline++; + $this->inline_images[$inline]['filename'] = $filename; + $this->inline_images[$inline]['name'] = $part['header']['Content-Type']['name']; + $this->inline_images[$inline]['url'] = XOOPS_URL.$xoopsModuleConfig['decode_path_access'].'/'.$filename; + } + + } + } else { + if ($part['header']['Content-Transfer-Encoding']['item'] == 'base64') { + if (strlen($part['header']['Content-Type']['name'])>0) + $filename = $_GET['category'].'_'.$_GET['group'].$_GET['artnum'].'_'.$part['header']['Content-Type']['name']; + else + $filename = $_GET['category'].'_'.$_GET['group'].$_GET['artnum'].'_'.$part['header']['Content-Disposition']['filename']; + + if (!file_exists($xoopsModuleConfig['decode_path'].'/'.$filename)){ + $file = fopen($xoopsModuleConfig['decode_path'].'/'.$filename, "w"); + fwrite($file, base64_decode($part['body']), strlen(base64_decode($part['body']))); + fclose($file); + } + + $attachment++; + $this->attachments[$attachment]['filename'] = $filename; + + if (strlen($part['header']['Content-Type']['name'])>0) + $this->attachments[$attachment]['name'] = $part['header']['Content-Type']['name']; + else + $this->attachments[$attachment]['name'] = $part['header']['Content-Disposition']['filename']; + + $this->attachments[$attachment]['url'] = XOOPS_URL."/modules/xpnews/download.php?category=".$_GET['category'].'&group='.$_GET['group']."&artnum=".$_GET['artnum'].'&filename='.$part['header']['Content-Disposition']['filename'].""; + } + } + } + + $this->processInlineImages(); + } + + private function processInlineImages() + { + $i=1; + while($i >0) + { + $i = strpos($this->html, '<img', $i); + if ($i>0) { + $ii = strpos($this->html, '>', $i); + $img = substr($this->html, $i, $ii- $i+1); + $i = $ii; + foreach ($this->inline_images as $key => $image) + { + if (strpos($img, $image['name'])>0) + { + $this->html = str_replace($img, '<img src="'.$image['url'].'" alt="'.$image['name'].'">',$this->html); + } + } + } + } + + } + + function getBody() + { + if (strlen($this->html)>0) + return str_replace("=\n","\n",$this->html); + else + return str_replace("\n","<br />",htmlspecialchars($this->text)); + } + + function getTextBody() + { + return $this->text; + } + + + function getAttachments() + { + return $this->attachments; + } + + function getHeader() + { + return $this->headers; + } + + function from() + { + foreach($this->headers as $key => $data) + { + if (strpos(' '.$data, 'From:')) + { + return substr($data,6,strlen($data)-6); + } + } + } + + function subject() + { + foreach($this->headers as $key => $data) + { + if (strpos(' '.$data, 'Subject:')) + { + return substr($data,9,strlen($data)-9); + } + } + } + + function date() + { + foreach($this->headers as $key => $data) + { + if (strpos(' '.$data, 'Date:')) + { + return substr($data,6,strlen($data)-6); + } + } + } + + function to() + { + foreach($this->headers as $key => $data) + { + if (strpos(' '.$data, 'Newsgroups:')) + { + return substr($data,12,strlen($data)-12); + } + } + } + } +?> \ No newline at end of file Added: XoopsModules/xpnews/releases/1.1/xpnews/class/newsgroups.php =================================================================== --- XoopsModules/xpnews/releases/1.1/xpnews/class/newsgroups.php (rev 0) +++ XoopsModules/xpnews/releases/1.1/xpnews/class/newsgroups.php 2009-06-04 02:25:57 UTC (rev 3261) @@ -0,0 +1,57 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Newsgroups + * @author Simon Roberts (si...@ch...) + * @copyright copyright (c) 2000-2009 XOOPS.org + * @package kernel + */ +class XpnewsNewsgroups extends XoopsObject +{ + + function XpnewsNewsgroups($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('server_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('posts', XOBJ_DTYPE_INT, null, false); + $this->initVar('newsgroup', XOBJ_DTYPE_TXTBOX, null, true, 255); + $this->initVar('description', XOBJ_DTYPE_TXTBOX, null, true); + } + + function id() + { + return $this->getVar("id"); + } + + function posts($format="S") + { + return $this->getVar("posts", $format); + } + + function newsgroup($format="S") + { + return $this->getVar("newsgroup", $format); + } + +} + + +/** +* XOOPS Newsgroups handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class XpnewsNewsgroupsHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "xpnews_newsgroups", 'XpnewsNewsgroups', "id", "newsgroup"); + } + +} +?> \ No newline at end of file Added: XoopsModules/xpnews/releases/1.1/xpnews/class/nnrpclass.php =================================================================== --- XoopsModules/xpnews/releases/1.1/xpnews/class/nnrpclass.php (rev 0) +++ XoopsModules/xpnews/releases/1.1/xpnews/class/nnrpclass.php 2009-06-04 02:25:57 UTC (rev 3261) @@ -0,0 +1,786 @@ +<?php + +# PHP News Reader +# Copyright (C) 2001-2007 Shen Cheng-Da +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +define( 'SHOW_HYPER_LINK', 1 ); +define( 'SHOW_SIGNATURE', 2 ); +define( 'SPACE_ASIS', 4 ); +define( 'SHOW_NULL_LINE', 8 ); +define( 'SHOW_HEADER', 16 ); +define( 'FILTER_ANSI', 32 ); +define( 'IMAGE_INLINE', 64 ); +define( 'HIDE_EMAIL', 128 ); + +$php_news_agent = "PHP News Reader $pnews_version (CDSHEEN)"; + +class pnews_nnrp { + + var $nhd; + var $nnrp_debug_level = 0; + var $cache_dir; + var $thread_enable; + var $db_handler; + var $nnrp_last_command; + var $nnrp_last_result; + var $curr_server; + var $curr_group; + + function pnews_nnrp( $dbl = 0, $c = false, $t = false, $d = 'db4' ) { + $nhd = null; + $this->nnrp_debug_level = $dbl; + $this->cache_dir = $c; + $this->thread_enable = $t; + $this->db_handler = $d; + } + + function connected() { + return( $this->nhd ); + } + + function open( $nnrp_server, $ssl_enable = false ) { + if( $ssl_enable ) + return( $this->open_nntps( $nnrp_server ) ); + else + return( $this->open_nntp( $nnrp_server ) ); + } + + function set_flag( $c = false, $t = false, $d = 'db4' ) { + $this->cache_dir = $c; + $this->thread_enable = $t; + $this->db_handler = $d; + } + + function set_debug_level( $level ) { + $this->nnrp_debug_level = $level; + } + + function open_nntp( $nnrp_server ) { + if( strstr( $nnrp_server, ':' ) ) + list( $nnrp_server, $port ) = split( ':', $nnrp_server ); + else + $port = 119; + $this->curr_server = $nnrp_server; + $this->nhd = null; + if( $this->nnrp_debug_level ) { + $this->nhd = fsockopen( $nnrp_server, $port, $errno, $errstr, 5 ); + if( ! $this->nhd ) + echo "ERROR: $errstr ($errno)<br />\n"; + } + else + $this->nhd = @fsockopen( $nnrp_server, $port, $errno, $errstr, 5 ); + if( ! $this->nhd ) + return(null); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' && $code[0] != '3' ) + return(null); +# $this->send_command( 'MODE READER' ); +# list( $code, $msg ) = $this->get_status(); +# if( $code[0] != '2' ) +# return(null); + return( $this->nhd ); + } + + function open_nntps ( $nnrp_server ) { + if( strstr( $nnrp_server, ':' ) ) + list( $nnrp_server, $port ) = split( ':', $nnrp_server ); + else + $port = 563; + $this->curr_server = $nnrp_server; + $this->nhd = null; + if( $this->nnrp_debug_level ) { + $this->nhd = fsockopen( "ssl://$nnrp_server", $port, $errno, $errstr, 5 ); + if( ! $this->nhd ) + echo "ERROR: $errstr ($errno)<br />\n"; + } + else + $this->nhd = @fsockopen( "ssl://$nnrp_server", $port, $errno, $errstr, 5 ); + if( ! $this->nhd ) + return(null); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' && $code[0] != '3' ) + return(null); +# $this->send_command( 'MODE READER' ); +# list( $code, $msg ) = $this->get_status(); +# if( $code[0] != '2' ) +# return(null); + return( $this->nhd ); + } + + function mode_reader() { + $this->send_command( 'MODE READER' ); + list( $code, $msg ) = $this->get_status(); + return( $code[0] == '2' ); + } + + function help() { + $this->send_command( 'HELP' ); + while( $buf = fgets( $this->nhd, 4096 ) ) { + echo "$buf<br />"; + $buf = chop($buf); + if( $buf == '.' ) + break; + } + } + + function auth( $username, $password ) { + $this->send_command( "AUTHINFO USER $username" ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '3' ) + return(false); + $this->send_command( "AUTHINFO PASS $password" ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + return(false); + return(true); + } + + function list_group( $filter = '*', $func = null ) { + if( $filter == '*' ) + $group_show = array( '' ); + else + $group_show = explode( ',', $filter ); + $active = null; + foreach( $group_show as $group ) { + $group = trim($group); + if( $group[0] == '!' ) { + $group = substr( $group, 1 ); + + foreach( $active as $key => $value) { + if( eregi( "^$group" , $key ) ) + unset( $active[$key] ); + } + continue; + } + if( strchr( $group, '*' ) && preg_match( '/\.((_-\w\*)+)$/', $group, $match ) ) { + $re_match = $match[1]; + $re_group = str_replace( $re_match, '*', $group ); + $re_filter = str_replace( '*', '[^\.]*', $re_match ); + } + else + $re_match = '*'; + if( $re_match == '*' ) + $this->send_command( "LIST ACTIVE $group"); + else + $this->send_command( "LIST ACTIVE $re_group" ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + break; + while( $buf = fgets( $this->nhd, 4096 ) ) { + $buf = chop($buf); + if( $buf == '.' ) + break; + $entry = split( ' ', $buf ); + if( $re_match != '*' && !preg_match( "/\.$re_filter\$/i", $entry[0] ) ) + continue; + $active[$entry[0]] = array( (int)$entry[1], (int)$entry[2] ); + } + $this->send_command( "LIST newsgroups $group"); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + continue; + while( $buf = fgets( $this->nhd, 4096 ) ) { + $buf = chop( $buf ); + if( $buf == '.' ) + break; + preg_match( '/^(\S+)\s+(.+)$/', $buf, $match ); + if( isset($match[1]) && isset($active[$match[1]]) ) { + if( $func ) + array_push( $active[$match[1]], $func($match[2]) ); + else + array_push( $active[$match[1]], $match[2] ); + } + } + } + return( $active ); + } + + function group( $group ) { + $this->curr_group = $group; + $this->send_command( "GROUP $group"); + list( $code, $msg ) = $this->get_status(); + list( $count, $lowmark, $highmark ) = split( ' ', $msg ); + return( array( $code, $count, $lowmark, $highmark ) ); + } + + function xover( $from, $to=null ) { + $ovfmt = array( 'Subject:' => 1, + 'From:' => 2, + 'Date:' => 3, + 'Message-ID:' => 4, + 'References:' => 5, + 'Bytes:' => 6, + 'Lines:' => 7, + 'Xref:full' => 8 ); + $this->send_command( 'LIST OVERVIEW.FMT' ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] == '2' ) { + $n = 1; + while( $buf = fgets( $this->nhd, 4096 ) ) { + $buf = trim( $buf ); + if( $buf == "." ) + break; + $ovfmt[$buf] = $n++; + } + } + if( $to == null ) + $this->send_command( "XOVER $from" ); + else + $this->send_command( "XOVER $from-$to" ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + return(null); + $ov = array(); + while( $buf = fgets( $this->nhd, 4096 ) ) { + $buf = chop( $buf ); + if( $buf == "." ) + break; + $xover = split( "\t", $buf ); + $n = $xover[0]; + $ov[$n] = array( $this->decode_subject($xover[$ovfmt['Subject:']]), + '', + strtotime( $xover[$ovfmt['Date:']] ), + '', + $xover[$ovfmt['Message-ID:']] ); + if( preg_match( '/^<([^@]+)@([\w-_.]+)>$/', $xover[$ovfmt['From:']], $from ) ) { + $ov[$n][1] = $from[1]; + $ov[$n][3] = $from[0]; + } + elseif( preg_match( '/^([^@]+)@([\w-_.]+)$/', $xover[$ovfmt['From:']], $from ) ) { + $ov[$n][1] = $from[1]; + $ov[$n][3] = $from[0]; + } + elseif( preg_match( '/^(.+)? <(.+)>$/', $xover[$ovfmt['From:']], $from ) ) { + $from[1] = $this->strip_quotes( $from[1] ); + $ov[$n][1] = $this->decode_subject($from[1]); + $ov[$n][3] = $from[2]; + } + elseif( preg_match( '/^(([^@]+)@([\w-_.]+))\s*\((.+)?\)$/', $xover[$ovfmt['From:']], $from ) ) { + $from[4] = isset($from[4]) ? $this->strip_quotes( $from[4] ) : ''; + $ov[$n][1] = $this->decode_subject($from[4]); + $ov[$n][3] = $from[1]; + } + $ref_index = isset($ovfmt['References']) ? $ovfmt['References'] : 5; + $refs = isset($xover[$ref_index]) ? trim($xover[$ref_index]) : ''; + if( $refs == '' ) + $ov[$n][5] = array(); + else + $ov[$n][5] = preg_split( '/\s+/', $refs ); + $n++; + } + return( $ov ); + } + + function article_list( $lowmark, $highmark ) { + $new_art = $lowmark; + $artlist = array(); + if( $this->cache_dir ) { + $gdir = $this->cache_dir . '/' . $this->curr_server . '/' . str_replace( '.', '/', $this->curr_group ); + if( !mkdirs($gdir) && $this->nnrp_debug_level ) + echo "ERROR: Can not create directory '$gdir'<br />\n"; + $cache_file = $gdir . '/artnum.idx'; + $fp = @fopen( $cache_file, 'rb'); + if( $fp ) { + $cache_max = -1; + $artlist = @unserialize( fread( $fp, filesize($cache_file)) ); + fclose($fp); + if( $artlist ) { +# echo "<!-- Cache size: " . count($artlist) . " -->\n"; + foreach( $artlist as $idx => $artnum ) { + if( $artnum < $lowmark || $artnum > $highmark ) + unset($artlist[$idx]); + else { + if( $artnum > $cache_max ) + $cache_max = $artnum; + } + } + } + if( $cache_max > 0 ) + $new_art = $cache_max + 1; + } + } + if( $this->thread_enable ) { + $file_thread = $gdir . '/thread.db'; + // require PHP 4.3+ (for 'd' mode flag) + if( file_exists( $file_thread ) ) + $db_thread = dba_open( $file_thread, 'wd', $this->db_handler ); + else + $db_thread = dba_open( $file_thread, 'nd', $this->db_handler ); + if( !$db_thread ) + $this->thread_enable = false; + } + $field_subject = 1; + if( $new_art <= $highmark ) { + if( $new_art == $highmark ) + $this->send_command( "XOVER $new_art" ); + else + $this->send_command( "XOVER $new_art-$highmark" ); + list( $code, $msg ) = $this->get_status(); + echo "\n<!-- XOVER $new_art-$highmark STATUS: $code -->\n"; + if( $code[0] != '2' ) + return($artlist); + while( $buf = fgets( $this->nhd, 4096 ) ) { +# echo "$buf<br />"; + $buf = chop( $buf ); + if( $buf == '.' ) + break; + $artinfo = split( "\t", $buf ); + $artnum = intval($artinfo[0]); + if( $this->thread_enable ) { + $subject = preg_replace( '/^((RE|FW):\s*)+/i', '', trim($this->decode_subject($artinfo[$field_subject]))); + if( $subject == '' ) $subject = ' '; + $thread_data = @dba_fetch( $subject, $db_thread ); + if( $thread_data === false ) { + dba_insert( $subject, $artnum, $db_thread ); + } + else { + $thread_list = explode( '+', $thread_data ); +# print "$thread_data<br />\n"; +# print_r($thread_list); + if( !in_array( $artnum, $thread_list ) ) + $thread_list[] = $artnum; + $final_list = array(); + foreach( $thread_list as $an ) { + if( $an >= $lowmark && $an <= $highmark ) + $final_list[] = $an; + } + dba_replace( $subject, implode('+',$final_list), $db_thread ); + } + } + $artlist[] = $artnum; + } + } + if( $this->cache_dir ) { + $artlist = array_values( $artlist ); +# $artlist = sort( $artlist ); + $fp = @fopen( $cache_file, 'w' ); + if( $fp ) { + if( flock( $fp, LOCK_EX|LOCK_NB ) ) { + @fputs( $fp, serialize( $artlist ) ); + @flock( $fp, LOCK_UN ); + } + @fclose($fp); + } + } + if( $this->thread_enable ) { + if( $db_thread ) + @dba_close($db_thread); + } + return( $artlist ); + } + + function stat( $artnum ) { + $this->send_command( "STAT $artnum" ); + list( $code, $msg ) = $this->get_status(); + return( $code[0] == '2' ); + } + + function next( $artnum ) { + $this->send_command( "STAT $artnum" ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + return(-1); + $this->send_command( 'NEXT' ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + return(-1); + $ret = split( ' ', $msg ); + return( $ret[0] ); + } + + function prev( $artnum ) { + $this->send_command( "STAT $artnum" ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + return(-1); + $this->send_command( 'LAST' ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + return(-1); + $ret = split( ' ', $msg ); + return( $ret[0] ); + } + + function show( $artnum, $artinfo, $mode, $prepend = '', $postpend = '', $trans_func = null, $download_url = '' ) { + + $this->send_command( "ARTICLE $artnum" ); + + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + return(null); + + while( $buf = fgets( $this->nhd, 4096 ) ) { + $buf = chop($buf); + if( $buf == '.' || $buf == '' ) + break; + $buf = htmlspecialchars( $buf, ENT_NOQUOTES ); + if( $hide_email && !strstr( $buf, $artinfo['msgid'] ) ) + $buf = preg_replace( '/(\A|\s|[:;*+&"<{\/\(\[\'])([\w-_.]+)@([\w-_.]+)/e', '"$1".hide_mail("$2@$3")' , $buf ); + # convert charset if required + if( $trans_func ) + $buf = $trans_func( $buf ); + $header[] = $prepend . $buf . $postpend; + } + $header[] = $prepend . $postpend; + + $uu = array(); + $uuencode_skip = false; + $i = 0; + while( $buf = fgets( $this->nhd, 4096 ) ) { + $buf = chop($buf); + if( $buf == '.' ) + break; + if( $uuencode_skip ) { + if( strtolower($buf) == 'end' ) + $uuencode_skip = false; + } + elseif( ereg( '^\.', $buf ) ) + $body[$i++] = substr( $buf, 1 ); + elseif( preg_match( '/^begin\s+(\d+)\s+(.+)\s*$/i', $buf, $match ) ) { + $uuencode_skip = true; + $body[$i] = $match[2]; + $uu[] = $i++; + } + else + $body[$i++] = $buf; + } + if( $artinfo['encoding'] == 'base64' ) + $body = preg_split( '/[\r\n]+/', base64_decode( implode( '', $body ) ) ); + + return (array("header" => $header, "body" => $body)); + } + + function get_attachment( $artnum, $type, $filename ) { + + if( $this->cache_dir ) { + $gdir = $this->cache_dir . '/' . $this->curr_server . '/' . str_replace( '.', '/', $this->curr_group ); + if( !mkdirs($gdir) && $this->nnrp_debug_level ) + echo "ERROR: Can not create directory '$gdir'<br />\n"; + $cache_file = $gdir . "/attach-$artnum-$filename"; + if( file_exists( $cache_file ) && ( $fsize=filesize($cache_file) ) > 0 ) { + return( array( $cache_file, $fsize ) ); + } + $fp = @fopen( $cache_file, 'wb'); + } + + $this->send_command( "BODY $artnum" ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + return(null); +# $filename = trim($filename); + $filename = preg_quote($filename); + $binary = ''; + $fsize = 0; + if( $type == 'uuencode' ) { + $pass = 0; + while( $buf = fgets( $this->nhd, 4096 ) ) { + $tbuf = trim( $buf ); + if( $tbuf == '.' ) + break; + if( $buf[0] == '.' ) + $buf = substr( $buf, 1 ); # by ogekuri + if( $pass == 2 ) { # skip the rest + continue; + } + elseif( $pass == 1 ) { + if( $tbuf == 'end' ) { + $pass = 2; + } + else { + $i = (ord($buf[0]) - 32) & 077; + if( $i <= 0 ) + continue; + for( $p = 1 ; $i > 0 ; $p += 4, $i -= 3 ) { + if( $i >= 3 ) { + $byte[0] = (ord($buf[$p]) - 32) & 077; + $byte[1] = (ord($buf[$p+1]) - 32) & 077; + $byte[2] = (ord($buf[$p+2]) - 32) & 077; + $byte[3] = (ord($buf[$p+3]) - 32) & 077; + + $tmp = chr(($byte[0] << 2 | $byte[1] >> 4) & 0xff); + $tmp.= chr(($byte[1] << 4 | $byte[2] >> 2) & 0xff); + $tmp.= chr(($byte[2] << 6 | $byte[3] ) & 0xff); + } + else { + $byte[0] = (ord($buf[$p]) - 32) & 077; + $byte[1] = (ord($buf[$p+1]) - 32) & 077; + $tmp = chr(($byte[0] << 2 | $byte[1] >> 4) & 0xff); + if( $i > 1 ) { + $byte[2] = (ord($buf[$p+2]) - 32) & 077; + $tmp .= chr(($byte[1] << 4 | $byte[2] >> 2) & 0xff); + } + } + $fsize += strlen($tmp); + if( $this->cache_dir ) + @fwrite( $fp, $tmp ); + else + $binary.= $tmp; + } + } + } + elseif( preg_match( '/^begin\s(\d+)\s+'.$filename.'$/i', $tbuf, $match ) ) { + $pass = 1; + } + } + } + if( $this->cache_dir ) { + fclose($fp); + return( array( $cache_file, $fsize ) ); + } + else + return( array( $binary, $fsize ) ); + } + + + function head( $artnum, $def_charset = 'utf-8', $time_format = '%Y/%m/%d %H:%M:%S' ) { + $this->send_command( "HEAD $artnum" ); + list( $code, $msg ) = $this->get_status(); + if( $code[0] != '2' ) + return(null); + $n = 0 ; + $nowline = fgets( $this->nhd, 4096 ); + $nowline = chop($nowline); + while( $nowline && $nowline != '.' ) { + $nextline = fgets( $this->nhd, 4096 ); + $nextline = chop($nextline); + while( preg_match( '/^\s/', $nextline ) ) { + $nowline .= ' ' . trim($nextline); + $nextline = fgets( $this->nhd, 4096 ); + $nextline = chop($nextline); + } + preg_match( '/^([^:]+): (.+)$/', $nowline, $match ); + $headers[strtolower($match[1])] = $match[2]; + $nowline = $nextline; + } + return( $this->get_mime_info( $headers, $def_charset, $time_format ) ); + } + + function post_init( $name, $email, $subject, $newsgroups, $organization, $ref = null, $real_email, $art_charset ) { + global $php_news_agent; + $client = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : '' ; + if( $client == '' ) { + $proxy = ''; + $client = $_SERVER['REMOTE_ADDR']; + } + else + $proxy = $_SERVER['REMOTE_ADDR']; + $this->send_command( 'POST' ); + list( $code, $msg ) = $this->get_status(); + fwrite( $this->nhd, "From: $name <$email>\r\n" ); + fwrite( $this->nhd, "Newsgroups: $newsgroups\r\n" ); + fwrite( $this->nhd, "Subject: $subject\r\n" ); + fwrite( $this->nhd, "Organization: $organization\r\n" ); + fwrite( $this->nhd, "X-User-Real-E-Mail: $real_email\r\n" ); + fwrite( $this->nhd, "User-Agent: $php_news_agent\r\n" ); + + fwrite( $this->nhd, "Mime-Version: 1.0\r\n" ); + fwrite( $this->nhd, sprintf("Content-Type: text/plain; charset=\"%s\"\r\n", $art_charset ) ); + fwrite( $this->nhd, "Content-Transfer-Encoding: 8bit\r\n" ); + +# fwrite( $this->nhd, "X-User-Agent-URL: http://pnews.sourceforge.net/\r\n" ); + fwrite( $this->nhd, "X-HTTP-Posting-Host: $client\r\n" ); + if( $proxy != '' ) + fwrite( $this->nhd, "X-HTTP-Proxy-Server: $proxy\r\n" ); + if( $ref ) + fwrite( $this->nhd, "References: $ref\r\n" ); + fwrite( $this->nhd, "\r\n" ); + } + + function post_writeln( $buf ) { + if( $this->nnrp_debug_level == 2 ) + echo "C: [$buf]<br />\n"; + if( $buf[0] == '.' ) + fwrite( $this->nhd, ".$buf\r\n" ); + else + fwrite( $this->nhd, $buf . "\r\n" ); + } + + function post_write( $buf ) { + $tok = strtok( $buf, "\n" ); + while ($tok) { + $tok = rtrim($tok); + $this->post_writeln( $tok ); + $tok = strtok ("\n"); + } + } + + function post_end() { + fwrite( $this->nhd, ".\r\n"); + list( $code, $msg ) = $this->get_status(); + } + + function cancel( $name, $email, $msgid, $newsgroup, $subject = null ) { + $this->send_command( 'POST' ); + list( $code, $msg ) = $this->get_status(); + fwrite( $this->nhd, "From: $name <$email>\r\n" ); + fwrite( $this->nhd, "Newsgroups: $newsgroup\r\n" ); + fwrite( $this->nhd, "Subject: cmsg cancel $msgid\r\n" ); + fwrite( $this->nhd, "Control: cancel $msgid\r\n" ); + fwrite( $this->nhd, "\r\n" ); + if( $subject ) + fwrite( $this->nhd, "'$subject' deleted from $newsgroups by $email\r\n"); + fwrite( $this->nhd, ".\r\n"); + list( $code, $msg ) = $this->get_status(); + } + + function close() { + if( $this->nhd ) + fclose($this->nhd); + } + + function get_thread( $group, $subject ) { + + list( $code, $count, $lowmark, $highmark ) = $this->group( $group ); +# echo "$count, $lowmark, $highmark"; + $thlist = array(); + $thread_db = $this->cache_dir . '/' . $this->curr_server . '/' . str_replace( '.', '/', $group ) . '/thread.db'; + if( !file_exists( $thread_db ) ) { + return($thlist); + } + $db = dba_open( $thread_db, 'r', $this->db_handler ); + if( $db ) { + $subject = preg_replace( '/^((RE|FW):\s*)+/i', '', trim($this->decode_subject($subject))); + if( ( $thread = dba_fetch( $subject, $db ) ) !== FALSE ) { +# echo "$thread ($lowmark-$highmark)"; + $thlist_x = explode( '+', $thread ); + foreach( $thlist_x as $t ) { + if( $t >= $lowmark && $t <= $highmark ) + $thlist[] = $t; + } + sort($thlist); + } + dba_close($db); + } + return($thlist); + } + + function send_command( $cmd ) { + $this->nnrp_last_command = $cmd; + @fwrite( $this->nhd, "$cmd\r\n"); + if( strstr( $cmd, 'AUTHINFO' ) ) + $cmd = "AUTHINFO <user> <passwd>"; + if( $this->nnrp_debug_level == 2 ) + echo "C: [$cmd]<br />\n"; + elseif( $this->nnrp_debug_level == 1 ) + echo "<!-- C: [$cmd] -->\n"; + } + + function get_status() { + $responds = @fgets( $this->nhd, 1024 ); + $responds = chop($responds); + if( $this->nnrp_debug_level == 2 ) + echo "S: [$responds]<br />\n"; + elseif( $this->nnrp_debug_level == 1 ) + echo "<!-- S: [$responds] -->\n"; + $this->nnrp_last_result = $responds; + if( preg_match( '/^(\d+)\s*(.+)$/', $responds, $match ) ) + return( array($match[1], $match[2]) ); + else + return( array( '400','' ) ); + } + + function decode_subject( $instr ) { + $enstr = $instr; + while( preg_match( '/^([^?]+)?=\?[^?]+\?(B|Q)\?([^?]+)=?=?\?=(.+)?$/i', $enstr, $match ) ) { + if( $match[2] == 'b' || $match[2] == 'B' ) + $enstr = $match[1] . base64_decode( $match[3] ) . (isset($match[4])?$match[4]:''); + else + $enstr = $match[1] . quoted_printable_decode( $match[3] ); + } + return( $enstr ); + } + + function strip_quotes( $str ) { + if( preg_match( '/^"(.+)"$/', $str, $quotes ) ) + return( $quotes[1] ); + else + return( $str ); + } + + function get_mime_info( $headers, $def_charset, $time_format ) { + $artinfo['charset'] = $def_charset; + $artinfo['type'] = $artinfo['subtype'] = ''; + if( isset($headers['content-type']) ) { + $ctype = preg_split( '/[;\s]+/', strtolower($headers['content-type']) ); + if( is_array( $ctype ) ) { + list( $type, $subtype ) = split( '/', $ctype[0]); + $artinfo['type'] = $type; + $artinfo['subtype'] = $subtype; + array_shift( $ctype ); + foreach( $ctype as $c_param ) { + if( preg_match( '/^(.+)\s*=\s*(.+)$/', $c_param, $match ) ) { + $match[1] = strtolower($match[1]); + $match[2] = $this->strip_quotes( $match[2] ); + if( $match[1] == 'charset' ) + $artinfo['charset'] = strtolower($match[2]); + elseif( $match[1] == 'boundary' ) + $artinfo['boundary'] = $match[2]; + } + } + } + } + + if( isset($headers['content-transfer-encoding']) ) + $artinfo['encoding'] = $headers['content-transfer-encoding']; + else + $artinfo['encoding'] = '7bit'; + + if( isset($headers['date']) ) + $artinfo['date'] = strftime( $time_format, strtotime($headers['date']) ); + else + $artinfo['date'] = ''; + + $artinfo['msgid'] = $headers['message-id']; + $artinfo['name'] = $artinfo['mail'] = ''; + if( isset($headers['from']) ) { + if( preg_match( '/^<([^@]+)@([\w-_.]+)>$/', $headers['from'], $from ) ) { + $artinfo['name'] = $from[1]; + $artinfo['mail'] = $from[0]; + } + elseif( preg_match( '/^([^@]+)@([\w-_.]+)$/', $headers['from'], $from ) ) { + $artinfo['name'] = $from[1]; + $artinfo['mail'] = $from[0]; + } + elseif( preg_match( '/^(.+)? <(.+)>$/', $headers['from'], $from ) ) { + $from[1] = $this->strip_quotes( $from[1] ); + $artinfo['name'] = $this->decode_subject($from[1]); + $artinfo['mail'] = $from[2]; + } + elseif( preg_match( '/^(([^@]+)@([\w-_.]+))\s*\((.+)?\)$/', $headers['from'], $from ) ) { + $from[4] = isset( $from[4] ) ? $this->strip_quotes( $from[4] ) : '' ; + $artinfo['name'] = $this->decode_subject($from[4]); + $artinfo['mail'] = $from[1]; + } + } + + $artinfo['org'] = isset($headers['organization']) ? $this->decode_subject($headers['organization']) : ''; + + $artinfo['subject'] = $this->decode_subject($headers['subject']); + + if( isset($headers['references']) ) + $artinfo['ref'] = preg_split( '/\s+/', trim($headers['references']) ); + else + $artinfo['ref'] = array(); + + return($artinfo); + } +} + +// Copyright (C) 2001-2007 - All rights reserved +// Shen Cheng-Da (cdsheen at users.sourceforge.net) + +?> Added: XoopsModules/xpnews/releases/1.1/xpnews/class/servers.php =================================================================== --- XoopsModules/xpnews/releases/1.1/xpnews/class/servers.php (rev 0) +++ XoopsModules/xpnews/releases/1.1/xpnews/class/servers.php 2009-06-04 02:25:57 UTC (rev 3261) @@ -0,0 +1,98 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Servers + * @author Simon Roberts (si...@ch...) + * @copyright copyright (c) 2000-2009 XOOPS.org + * @package kernel + */ +class XpnewsServers extends XoopsObject +{ + + function XpnewsServers($id = null) + { + $this->initVar('server_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('server', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('group', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('option', XOBJ_DTYPE_OTHER, null, true); + $this->initVar('auth_username', XOBJ_DTYPE_TXTBOX, null, true); + $this->initVar('auth_password', XOBJ_DTYPE_TXTBOX, null, true); + $this->initVar('charset', XOBJ_DTYPE_TXTBOX, null, true); + } + + function server_id() + { + return $this->getVar("server_id"); + } + + function name($format="S") + { + return $this->getVar("name", $format); + } + + function server($format="S") + { + return $this->getVar("server", $format); + } + + function group($format="S") + { + return $this->getVar("group", $format); + } + + function option($format="S") + { + return $this->getVar("option", $format); + } + + function username($format="S") + { + return $this->getVar("auth_username", $format); + } + + function password($format="S") + { + return $this->getVar("auth_password", $format); + } + + function charset($format="S") + { + return $this->getVar("charset", $format); + } + +} + + +/** +* XOOPS Servers handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class XpnewsServersHandler extends Xo... [truncated message content] |
From: <wis...@us...> - 2009-06-28 19:27:36
|
Revision: 3290 http://xoops.svn.sourceforge.net/xoops/?rev=3290&view=rev Author: wishcraft Date: 2009-06-28 19:27:23 +0000 (Sun, 28 Jun 2009) Log Message: ----------- Latest Open Source Modules - Requested Mamba Added Paths: ----------- XoopsModules/genobio/ XoopsModules/genobio/branches/ XoopsModules/genobio/releases/ XoopsModules/genobio/releases/0.13b/ XoopsModules/genobio/releases/0.13b/genobio/ XoopsModules/genobio/releases/0.13b/genobio/admin/ XoopsModules/genobio/releases/0.13b/genobio/admin/index.php XoopsModules/genobio/releases/0.13b/genobio/admin/menu.php XoopsModules/genobio/releases/0.13b/genobio/birth.php XoopsModules/genobio/releases/0.13b/genobio/class/ XoopsModules/genobio/releases/0.13b/genobio/class/calendars.php XoopsModules/genobio/releases/0.13b/genobio/class/categories.php XoopsModules/genobio/releases/0.13b/genobio/class/formselectcategory.php XoopsModules/genobio/releases/0.13b/genobio/class/formselectdisplaypicture.php XoopsModules/genobio/releases/0.13b/genobio/class/formselectmember.php XoopsModules/genobio/releases/0.13b/genobio/class/formselectsex.php XoopsModules/genobio/releases/0.13b/genobio/class/formselectsibbling.php XoopsModules/genobio/releases/0.13b/genobio/class/members.php XoopsModules/genobio/releases/0.13b/genobio/class/profiles.php XoopsModules/genobio/releases/0.13b/genobio/class/sibblings.php XoopsModules/genobio/releases/0.13b/genobio/class/uploader.php XoopsModules/genobio/releases/0.13b/genobio/extra/ XoopsModules/genobio/releases/0.13b/genobio/extra/.htaccess XoopsModules/genobio/releases/0.13b/genobio/images/ XoopsModules/genobio/releases/0.13b/genobio/images/Thumbs.db XoopsModules/genobio/releases/0.13b/genobio/images/genobio_slogo.png XoopsModules/genobio/releases/0.13b/genobio/images/left_both.gif XoopsModules/genobio/releases/0.13b/genobio/images/no-default-picture.png XoopsModules/genobio/releases/0.13b/genobio/images/right_both.gif XoopsModules/genobio/releases/0.13b/genobio/include/ XoopsModules/genobio/releases/0.13b/genobio/include/categories.forms.php XoopsModules/genobio/releases/0.13b/genobio/include/comment_functions.php XoopsModules/genobio/releases/0.13b/genobio/include/forms.php XoopsModules/genobio/releases/0.13b/genobio/include/functions.php XoopsModules/genobio/releases/0.13b/genobio/include/members.forms.php XoopsModules/genobio/releases/0.13b/genobio/include/profiles.forms.php XoopsModules/genobio/releases/0.13b/genobio/include/sibblings.forms.php XoopsModules/genobio/releases/0.13b/genobio/include/upgrade.php XoopsModules/genobio/releases/0.13b/genobio/index.php XoopsModules/genobio/releases/0.13b/genobio/language/ XoopsModules/genobio/releases/0.13b/genobio/language/english/ XoopsModules/genobio/releases/0.13b/genobio/language/english/admin.php XoopsModules/genobio/releases/0.13b/genobio/language/english/main.php XoopsModules/genobio/releases/0.13b/genobio/language/english/modinfo.php XoopsModules/genobio/releases/0.13b/genobio/sql/ XoopsModules/genobio/releases/0.13b/genobio/sql/mysql.sql XoopsModules/genobio/releases/0.13b/genobio/sql/mysql.sql.bak XoopsModules/genobio/releases/0.13b/genobio/templates/ XoopsModules/genobio/releases/0.13b/genobio/templates/genobio_birth.html XoopsModules/genobio/releases/0.13b/genobio/templates/genobio_index.html XoopsModules/genobio/releases/0.13b/genobio/templates/genobio_member.html XoopsModules/genobio/releases/0.13b/genobio/templates/genobio_style.css XoopsModules/genobio/releases/0.13b/genobio/xoops_version.php XoopsModules/genobio/trunk/ XoopsModules/lawsuit/ XoopsModules/lawsuit/branches/ XoopsModules/lawsuit/releases/ XoopsModules/lawsuit/releases/0.05a/ XoopsModules/lawsuit/releases/0.05a/lawsuit/ XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/about.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/admin_header.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/default_elements.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/editelement.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ele_check.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ele_html.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ele_radio.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ele_select.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ele_tarea.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ele_text.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ele_upload.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ele_uploadimg.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/ele_yn.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/elements.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/file.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/footer.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/index.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/menu.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/permissions.php XoopsModules/lawsuit/releases/0.05a/lawsuit/admin/upgrade.php XoopsModules/lawsuit/releases/0.05a/lawsuit/class/ XoopsModules/lawsuit/releases/0.05a/lawsuit/class/_notes/ XoopsModules/lawsuit/releases/0.05a/lawsuit/class/_notes/dwsync.xml XoopsModules/lawsuit/releases/0.05a/lawsuit/class/category.php XoopsModules/lawsuit/releases/0.05a/lawsuit/class/elementrenderer.php XoopsModules/lawsuit/releases/0.05a/lawsuit/class/elements.php XoopsModules/lawsuit/releases/0.05a/lawsuit/class/forms.php XoopsModules/lawsuit/releases/0.05a/lawsuit/class/formselectcategory.php XoopsModules/lawsuit/releases/0.05a/lawsuit/class/formselectforms.php XoopsModules/lawsuit/releases/0.05a/lawsuit/class/index.html XoopsModules/lawsuit/releases/0.05a/lawsuit/class/pages.php XoopsModules/lawsuit/releases/0.05a/lawsuit/class/response.php XoopsModules/lawsuit/releases/0.05a/lawsuit/class/uploader.php XoopsModules/lawsuit/releases/0.05a/lawsuit/header.php XoopsModules/lawsuit/releases/0.05a/lawsuit/images/ XoopsModules/lawsuit/releases/0.05a/lawsuit/images/index.html XoopsModules/lawsuit/releases/0.05a/lawsuit/images/lawsuit_slogo.png XoopsModules/lawsuit/releases/0.05a/lawsuit/images/left_both.gif XoopsModules/lawsuit/releases/0.05a/lawsuit/images/right_both.gif XoopsModules/lawsuit/releases/0.05a/lawsuit/include/ XoopsModules/lawsuit/releases/0.05a/lawsuit/include/categories.forms.php XoopsModules/lawsuit/releases/0.05a/lawsuit/include/common.php XoopsModules/lawsuit/releases/0.05a/lawsuit/include/form_execute.php XoopsModules/lawsuit/releases/0.05a/lawsuit/include/form_render.php XoopsModules/lawsuit/releases/0.05a/lawsuit/include/forms.php XoopsModules/lawsuit/releases/0.05a/lawsuit/include/functions.php XoopsModules/lawsuit/releases/0.05a/lawsuit/include/index.html XoopsModules/lawsuit/releases/0.05a/lawsuit/include/pages.forms.php XoopsModules/lawsuit/releases/0.05a/lawsuit/index.php XoopsModules/lawsuit/releases/0.05a/lawsuit/language/ XoopsModules/lawsuit/releases/0.05a/lawsuit/language/english/ XoopsModules/lawsuit/releases/0.05a/lawsuit/language/english/admin.php XoopsModules/lawsuit/releases/0.05a/lawsuit/language/english/index.html XoopsModules/lawsuit/releases/0.05a/lawsuit/language/english/mail_template/ XoopsModules/lawsuit/releases/0.05a/lawsuit/language/english/mail_template/index.html XoopsModules/lawsuit/releases/0.05a/lawsuit/language/english/mail_template/liaise.tpl XoopsModules/lawsuit/releases/0.05a/lawsuit/language/english/main.php XoopsModules/lawsuit/releases/0.05a/lawsuit/language/english/modinfo.php XoopsModules/lawsuit/releases/0.05a/lawsuit/language/index.html XoopsModules/lawsuit/releases/0.05a/lawsuit/sql/ XoopsModules/lawsuit/releases/0.05a/lawsuit/sql/index.html XoopsModules/lawsuit/releases/0.05a/lawsuit/sql/mysql.sql XoopsModules/lawsuit/releases/0.05a/lawsuit/templates/ XoopsModules/lawsuit/releases/0.05a/lawsuit/templates/index.html XoopsModules/lawsuit/releases/0.05a/lawsuit/templates/lawsuit_error.html XoopsModules/lawsuit/releases/0.05a/lawsuit/templates/lawsuit_form.html XoopsModules/lawsuit/releases/0.05a/lawsuit/templates/lawsuit_index.html XoopsModules/lawsuit/releases/0.05a/lawsuit/templates/lawsuit_page.html XoopsModules/lawsuit/releases/0.05a/lawsuit/templates/lawsuit_style.css XoopsModules/lawsuit/releases/0.05a/lawsuit/xoops_version.php XoopsModules/lawsuit/trunk/ XoopsModules/spiders/releases/1.06/ XoopsModules/spiders/releases/1.06/spiders/ XoopsModules/spiders/releases/1.06/spiders/admin/ XoopsModules/spiders/releases/1.06/spiders/admin/admin_header.php XoopsModules/spiders/releases/1.06/spiders/admin/index.php XoopsModules/spiders/releases/1.06/spiders/admin/menu.php XoopsModules/spiders/releases/1.06/spiders/admin/resources/ XoopsModules/spiders/releases/1.06/spiders/admin/resources/Spiders Agent's List.url XoopsModules/spiders/releases/1.06/spiders/admin/resources/robots-all.txt XoopsModules/spiders/releases/1.06/spiders/class/ XoopsModules/spiders/releases/1.06/spiders/class/spiders.php XoopsModules/spiders/releases/1.06/spiders/class/spiders_user.php XoopsModules/spiders/releases/1.06/spiders/images/ XoopsModules/spiders/releases/1.06/spiders/images/left_both.gif XoopsModules/spiders/releases/1.06/spiders/images/right_both.gif XoopsModules/spiders/releases/1.06/spiders/images/spiders_slogo.png XoopsModules/spiders/releases/1.06/spiders/include/ XoopsModules/spiders/releases/1.06/spiders/include/forms.php XoopsModules/spiders/releases/1.06/spiders/include/functions.php XoopsModules/spiders/releases/1.06/spiders/include/install.php XoopsModules/spiders/releases/1.06/spiders/include/uninstall.php XoopsModules/spiders/releases/1.06/spiders/include/update.php XoopsModules/spiders/releases/1.06/spiders/index.php XoopsModules/spiders/releases/1.06/spiders/language/ XoopsModules/spiders/releases/1.06/spiders/language/english/ XoopsModules/spiders/releases/1.06/spiders/language/english/admin.php XoopsModules/spiders/releases/1.06/spiders/language/english/modinfo.php XoopsModules/spiders/releases/1.06/spiders/post.loader.spiders.php XoopsModules/spiders/releases/1.06/spiders/sql/ XoopsModules/spiders/releases/1.06/spiders/sql/spiders.sql XoopsModules/spiders/releases/1.06/spiders/templates/ XoopsModules/spiders/releases/1.06/spiders/templates/spiders_index.html XoopsModules/spiders/releases/1.06/spiders/xoops_version.php XoopsModules/tipofday/ XoopsModules/tipofday/branches/ XoopsModules/tipofday/releases/ XoopsModules/tipofday/releases/0.11/ XoopsModules/tipofday/releases/0.11/tipofday/ XoopsModules/tipofday/releases/0.11/tipofday/admin/ XoopsModules/tipofday/releases/0.11/tipofday/admin/_notes/ XoopsModules/tipofday/releases/0.11/tipofday/admin/_notes/dwsync.xml XoopsModules/tipofday/releases/0.11/tipofday/admin/index.php XoopsModules/tipofday/releases/0.11/tipofday/admin/menu.php XoopsModules/tipofday/releases/0.11/tipofday/class/ XoopsModules/tipofday/releases/0.11/tipofday/class/_notes/ XoopsModules/tipofday/releases/0.11/tipofday/class/_notes/dwsync.xml XoopsModules/tipofday/releases/0.11/tipofday/class/tipofday.php XoopsModules/tipofday/releases/0.11/tipofday/images/ XoopsModules/tipofday/releases/0.11/tipofday/images/_notes/ XoopsModules/tipofday/releases/0.11/tipofday/images/_notes/dwsync.xml XoopsModules/tipofday/releases/0.11/tipofday/images/left_both.gif XoopsModules/tipofday/releases/0.11/tipofday/images/right_both.gif XoopsModules/tipofday/releases/0.11/tipofday/images/tipofday_slogo.png XoopsModules/tipofday/releases/0.11/tipofday/include/ XoopsModules/tipofday/releases/0.11/tipofday/include/_notes/ XoopsModules/tipofday/releases/0.11/tipofday/include/_notes/dwsync.xml XoopsModules/tipofday/releases/0.11/tipofday/include/forms.php XoopsModules/tipofday/releases/0.11/tipofday/include/functions.php XoopsModules/tipofday/releases/0.11/tipofday/index.php XoopsModules/tipofday/releases/0.11/tipofday/language/ XoopsModules/tipofday/releases/0.11/tipofday/language/_notes/ XoopsModules/tipofday/releases/0.11/tipofday/language/english/ XoopsModules/tipofday/releases/0.11/tipofday/language/english/_notes/ XoopsModules/tipofday/releases/0.11/tipofday/language/english/_notes/dwsync.xml XoopsModules/tipofday/releases/0.11/tipofday/language/english/mail_template/ XoopsModules/tipofday/releases/0.11/tipofday/language/english/mail_template/twit_notice.tpl XoopsModules/tipofday/releases/0.11/tipofday/language/english/modinfo.php XoopsModules/tipofday/releases/0.11/tipofday/set_tpl.php XoopsModules/tipofday/releases/0.11/tipofday/sql/ XoopsModules/tipofday/releases/0.11/tipofday/sql/_notes/ XoopsModules/tipofday/releases/0.11/tipofday/sql/_notes/dwsync.xml XoopsModules/tipofday/releases/0.11/tipofday/sql/mysql.sql XoopsModules/tipofday/releases/0.11/tipofday/sql/mysql.sql.bak XoopsModules/tipofday/releases/0.11/tipofday/templates/ XoopsModules/tipofday/releases/0.11/tipofday/templates/_notes/ XoopsModules/tipofday/releases/0.11/tipofday/templates/_notes/dwsync.xml XoopsModules/tipofday/releases/0.11/tipofday/templates/tipofday_index.html XoopsModules/tipofday/releases/0.11/tipofday/xoops_version.php XoopsModules/tipofday/trunk/ Added: XoopsModules/genobio/releases/0.13b/genobio/admin/index.php =================================================================== --- XoopsModules/genobio/releases/0.13b/genobio/admin/index.php (rev 0) +++ XoopsModules/genobio/releases/0.13b/genobio/admin/index.php 2009-06-28 19:27:23 UTC (rev 3290) @@ -0,0 +1,285 @@ +<?php + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.php'); + + if( is_file(XOOPS_ROOT_PATH."/modules/genobio/language/".$GLOBALS['xoopsConfig']['language']."/admin.php") ){ + include_once XOOPS_ROOT_PATH."/modules/genobio/language/".$GLOBALS['xoopsConfig']['language']."/admin.php"; + }else{ + include_once XOOPS_ROOT_PATH."/modules/genobio/language/english/admin.php"; + } + + xoops_cp_header(); + + switch($_REQUEST['op']) { + case "members": + + switch ($_REQUEST['fct']) + { + case "edit": + adminMenu(3); + edit_members_form(); + break; + case "new": + adminMenu(6); + edit_members_form(); + break; + case "delete": + $id = intval($_REQUEST['id']); + $membershandler = xoops_getmodulehandler('members','genobio'); + $member = $membershandler->get($id); + if ($membershandler->delete($member)) + redirect_header('index.php', 3, 'Member Item Delete Successfully'); + else + redirect_header('index.php', 3, 'Member Item Delete Unsuccessfully'); + break; + exit; + case "save": + + $id = intval($_REQUEST['id']); + $membershandler = xoops_getmodulehandler('members','genobio'); + if ($id>0) + $member = $membershandler->get($id); + else + $member = $membershandler->create(); + + $member->setVar('category_id', intval($_REQUEST['category_id'])); + $member->setVar('uid', intval($_REQUEST['uid'])); + $member->setVar('domain', $_REQUEST['domain']); + $member->setVar('domains', $_REQUEST['domains']); + $member->setVar('display_name', $_REQUEST['display_name']); + $member->setVar('display_picture', $_REQUEST['display_picture']); + $member->setVar('member_sex', $_REQUEST['member_sex']); + + if ($membershandler->insert($member)) { + if ($id == 0) { + $profilesshandler = xoops_getmodulehandler('profiles','genobio'); + $profile = $profilesshandler->create(); + $profile->setVar('member_id', $member->getVar('member_id')); + $profile->setVar('nickname', $_REQUEST['display_name']); + @$profilesshandler->insert($profile); + redirect_header('index.php', 3, 'New Member Item Created Successfully'); + exit(0); + } + + redirect_header('index.php', 3, 'Member Item Updated Successfully'); + } else { + redirect_header('index.php', 3, 'Member Item Updated Unsuccessfully'); + } + exit; + break; + default: + adminMenu(3); + sel_members_form(); + + } + break; + case "sibblings": + + switch ($_REQUEST['fct']) + { + case "edit": + adminMenu(2); + edit_sibblings_form(); + break; + case "new": + adminMenu(5); + edit_sibblings_form(); + break; + case "delete": + $id = intval($_REQUEST['id']); + $sibblingshandler = xoops_getmodulehandler('sibblings','genobio'); + $sibblings = $sibblingshandler->get($id); + if ($sibblingshandler->delete($sibblings)) + redirect_header('index.php', 3, 'Sibblings Item Delete Successfully'); + else + redirect_header('index.php', 3, 'Sibblings Item Delete Unsuccessfully'); + break; + exit; + case "save": + + $id = intval($_REQUEST['id']); + $sibblingshandler = xoops_getmodulehandler('sibblings','genobio'); + if ($id>0) + $sibblings = $sibblingshandler->get($id); + else + $sibblings = $sibblingshandler->create(); + + $sibblings->setVar('members_group', $_REQUEST['members_group']); + $sibblings->setVar('nickname', $_REQUEST['nickname']); + $sibblings->setVar('bio', $_REQUEST['bio']); + $sibblings->setVar('history', $_REQUEST['history']); + $sibblings->setVar('activities', $_REQUEST['activities']); + $sibblings->setVar('toys', $_REQUEST['toys']); + + if ($sibblingshandler->insert($sibblings)) { + $profileshandler = xoops_getmodulehandler('profiles','genobio'); + foreach($_REQUEST['members_group'] as $key => $id) { + $profile = $profileshandler->get($id); + $profile->setVar('member_siblings_id', $sibblings->getVar('sibblings_id')); + @$profileshandler->insert($profile); + } + redirect_header('index.php', 3, 'Sibblings Item Updated Successfully'); + } else + redirect_header('index.php', 3, 'Sibblings Item Updated Unsuccessfully'); + + exit; + break; + default: + adminMenu(2); + sel_sibblings_form(); + + } + break; + case "categories": + + switch ($_REQUEST['fct']) + { + case "edit": + adminMenu(4); + edit_categories_form(); + break; + case "new": + adminMenu(7); + edit_categories_form(); + break; + case "delete": + $id = intval($_REQUEST['id']); + $categorieshandler = xoops_getmodulehandler('categories','genobio'); + $categories = $categorieshandler->get($id); + if ($categorieshandler->delete($categories)) + redirect_header('index.php', 3, 'Category Item Delete Successfully'); + else + redirect_header('index.php', 3, 'Category Item Delete Unsuccessfully'); + break; + exit; + case "save": + + $id = intval($_REQUEST['id']); + $categorieshandler = xoops_getmodulehandler('categories','genobio'); + if ($id>0) + $categories = $categorieshandler->get($id); + else + $categories = $categorieshandler->create(); + + $categories->setVar('category_name', $_REQUEST['category_name']); + + if ($categorieshandler->insert($categories)) + redirect_header('index.php', 3, 'Category Item Updated Successfully'); + else + redirect_header('index.php', 3, 'Category Item Updated Unsuccessfully'); + + exit; + break; + default: + adminMenu(4); + sel_categories_form(); + + } + break; + case "profiles": + + switch ($_REQUEST['fct']) + { + default: + adminMenu(2); + edit_profiles_form(); + break; + + case "save": + + $id = intval($_REQUEST['id']); + $profileshandler = xoops_getmodulehandler('profiles','genobio'); + if ($id>0) + $profile = $profileshandler->get($id); + else + redirect_header('index.php', 2, _GB_NOID); + + $profile->setVar('member_father_id', $_REQUEST['member_father_id']); + $profile->setVar('member_mother_id', $_REQUEST['member_mother_id']); + $profile->setVar('member_siblings_id', $_REQUEST['member_siblings_id']); + $profile->setVar('member_partner_id', $_REQUEST['member_partner_id']); + $profile->setVar('nickname', $_REQUEST['nickname']); + $profile->setVar('dob', $_REQUEST['dob']); + $profile->setVar('dod', $_REQUEST['dod']); + $profile->setVar('anniversary', $_REQUEST['anniversary']); + $profile->setVar('dob_unix', strtotime($_REQUEST['dob'])); + $profile->setVar('dod_unix', strtotime($_REQUEST['dod'])); + $profile->setVar('anniversary_unix', strtotime($_REQUEST['anniversary'])); + $profile->setVar('height', $_REQUEST['height']); + $profile->setVar('weight', $_REQUEST['weight']); + $profile->setVar('colour_hair', $_REQUEST['colour_hair']); + $profile->setVar('colour_eyes', $_REQUEST['colour_eyes']); + $profile->setVar('bio', $_REQUEST['bio']); + $profile->setVar('history', $_REQUEST['history']); + $profile->setVar('education', $_REQUEST['education']); + $profile->setVar('fellowship', $_REQUEST['fellowship']); + $profile->setVar('earlyhistory', $_REQUEST['earlyhistory']); + $profile->setVar('medical', $_REQUEST['medical']); + $profile->setVar('achivements', $_REQUEST['achivements']); + $profile->setVar('contributations', $_REQUEST['contributations']); + $profile->setVar('awards', $_REQUEST['awards']); + $profile->setVar('media', $_REQUEST['media']); + $profile->setVar('publications', $_REQUEST['publications']); + $profile->setVar('jobs', $_REQUEST['jobs']); + $profile->setVar('spirtual', $_REQUEST['spirtual']); + $profile->setVar('hates', $_REQUEST['hates']); + $profile->setVar('likes', $_REQUEST['likes']); + $profile->setVar('music', $_REQUEST['music']); + $profile->setVar('thearts', $_REQUEST['thearts']); + $profile->setVar('other', $_REQUEST['other']); + @$profile->setDirty(); + + if ($profileshandler->insert($profile, true)) { + + if (count($profile->getErrors())>0) { + redirect_header('index.php?op=profiles&id='.$profile->getVar('member_id'), 3, 'The following form items are required.<br /><br />'.implode("<br />",$profile->getErrors())); + exit(0); + } + + @$profile->setDirty(); + $allowedMimeTypes = array('image/jpeg','image/gif','image/png','image/pjpeg','image/x-png',); + $fupload = genobio_uploading('uploads/genobio', $allowedMimeTypes, "index.php?op=profiles&id=".$_REQUEST['id'], 0); + $baby_photo = $fupload['path']; + $fupload = genobio_uploading('uploads/genobio', $allowedMimeTypes, "index.php?op=profiles&id=".$_REQUEST['id'], 1); + $midlife_photo = $fupload['path']; + $fupload = genobio_uploading('uploads/genobio', $allowedMimeTypes, "index.php?op=profiles&id=".$_REQUEST['id'], 2); + $elderly_photo = $fupload['path']; + $fupload = genobio_uploading('uploads/genobio', $allowedMimeTypes, "index.php?op=profiles&id=".$_REQUEST['id'], 3); + $current_photo = $fupload['path']; + + if (file_exists(XOOPS_ROOT_PATH.$baby_photo)) + $profile->setVar('baby_photo', $baby_photo); + if (file_exists(XOOPS_ROOT_PATH.$midlife_photo)) + $profile->setVar('midlife_photo', $midlife_photo); + if (file_exists(XOOPS_ROOT_PATH.$elderly_photo)) + $profile->setVar('elderly_photo', $elderly_photo); + if (file_exists(XOOPS_ROOT_PATH.$current_photo)) + $profile->setVar('current_photo', $current_photo); + + if ($profileshandler->insert($profile, true)) + redirect_header('index.php?op=profiles&id='.$profile->getVar('member_id'), 3, 'Profile Item Updated Successfully'); + else + redirect_header('index.php?op=profiles&id='.$profile->getVar('member_id'), 3, 'Profile Item Updated Unsuccessfully'); + } else + redirect_header('index.php', 3, 'Profile Item Updated Unsuccessfully'); + + exit; + break; + + } + break; + default: + + adminMenu(0); + sel_categories_form(); + sel_sibblings_form(); + sel_members_form(); + + } + + footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/genobio/releases/0.13b/genobio/admin/menu.php =================================================================== --- XoopsModules/genobio/releases/0.13b/genobio/admin/menu.php (rev 0) +++ XoopsModules/genobio/releases/0.13b/genobio/admin/menu.php 2009-06-28 19:27:23 UTC (rev 3290) @@ -0,0 +1,19 @@ +<?php +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _GB_ADMENU1; +$adminmenu[1]['link'] = "admin/index.php"; +$adminmenu[2]['title'] = _GB_ADMENU2; +$adminmenu[2]['link'] = "admin/index.php?op=sibblings"; +$adminmenu[3]['title'] = _GB_ADMENU3; +$adminmenu[3]['link'] = "admin/index.php?op=members"; +$adminmenu[4]['title'] = _GB_ADMENU4; +$adminmenu[4]['link'] = "admin/index.php?op=categories"; +$adminmenu[5]['title'] = _GB_ADMENU5; +$adminmenu[5]['link'] = "admin/index.php?op=sibblings&fct=new"; +$adminmenu[6]['title'] = _GB_ADMENU6; +$adminmenu[6]['link'] = "admin/index.php?op=members&fct=new"; +$adminmenu[7]['title'] = _GB_ADMENU7; +$adminmenu[7]['link'] = "admin/index.php?op=categories&fct=new"; + +?> \ No newline at end of file Added: XoopsModules/genobio/releases/0.13b/genobio/birth.php =================================================================== --- XoopsModules/genobio/releases/0.13b/genobio/birth.php (rev 0) +++ XoopsModules/genobio/releases/0.13b/genobio/birth.php 2009-06-28 19:27:23 UTC (rev 3290) @@ -0,0 +1,53 @@ +<?php + + include ('../../mainfile.php'); + error_reporting(E_ALL); + + switch ($_REQUEST['op']) { + default: + + if (strtotime($_REQUEST['date'])==0){ + redirect_header('index.php', 2, _GB_NODATE); + exit(0); + } + + $xoopsOption['template_main'] = 'genobio_birth.html'; + include XOOPS_ROOT_PATH . '/header.php'; + + $xoTheme->addStylesheet(XOOPS_URL."/modules/genobio/templates/genobio_style.css"); + $profileshandler = xoops_getmodulehandler('profiles', 'genobio'); + $membershandler = xoops_getmodulehandler('members', 'genobio'); + + $sql = "SELECT member_id FROM ".$GLOBALS['xoopsDB']->prefix('genobio_members_profiles')." WHERE `dob` = DATE('".$_REQUEST['date']."')"; + $question = $GLOBALS['xoopsDB']->query($sql); + + if (!$question) + foreach($GLOBALS['xoopsDB']->fetchArray($question) as $key => $profmum) + { + $mums = $profileshandler->get($profmum->getVar('member_id')); + if (is_object($mums)) { + $mothers[$mums->getVar('member_mother_id')]['url'] = urldecode($mums->getVar('domain')).'/modules/genobio/?op=profile&id='.$mums->getVar('member_mother_id'); + $mothers[$mums->getVar('member_mother_id')]['dob'] = date(_SHORTDATESTRING, strtotime($mums->getVar('dob'))); + $mothers[$mums->getVar('member_mother_id')]['children'][$mums->getVar('member_id')]['url'] = urldecode($mums->getVar('domain')).'/modules/genobio/?op=profile&id='.$mums->getVar('member_id'); + $mothers[$mums->getVar('member_mother_id')]['children'][$mums->getVar('member_id')]['dob'] = date(_SHORTDATESTRING, strtotime($mums->getVar('dob'))); + $mum = $membershandler->get($mums->getVar('member_mother_id')); + $mothers[$mums->getVar('member_mother_id')]['name'] = $mums->getVar('display_name'); + $child = $membershandler->get($mums->getVar('member_id')); + $mothers[$mums->getVar('member_mother_id')]['children'][$mums->getVar('member_id')]['name'] = $child->getVar('display_name'); + } + } + else { + redirect_header('index.php', 2, _GB_NOMOTHERSFOUND); + exit(0); + } + + if (count($mothers)==0){ + redirect_header('index.php', 2, _GB_NOMOTHERSFOUND); + exit(0); + } + + $GLOBALS['xoopsTpl']->assign('mothers', $mothers); + + include XOOPS_ROOT_PATH . '/header.php'; + } +?> Added: XoopsModules/genobio/releases/0.13b/genobio/class/calendars.php =================================================================== --- XoopsModules/genobio/releases/0.13b/genobio/class/calendars.php (rev 0) +++ XoopsModules/genobio/releases/0.13b/genobio/class/calendars.php 2009-06-28 19:27:23 UTC (rev 3290) @@ -0,0 +1,816 @@ +<?php + +class HijriCalendar +{ + function monthName($i) // $i = 1..12 + { + static $month = array("Muharram ul Haram", "Safar", "Rabi' al-awwal", "Rabi' al-akhir", + "Jumada al-awwal", "Jumada al-akhir", "Rajab", "Sha'aban", + "Ramadan", "Shawwal", "Dhu al-Qi'dah", "Dhu al-Hijjah"); + return $month[$i-1]; + } + + function GregorianToHijri($time = null) + { + if ($time === null) $time = time(); + $m = date('m', $time); + $d = date('d', $time); + $y = date('Y', $time); + + return HijriCalendar::JDToHijri( + cal_to_jd(CAL_GREGORIAN, $m, $d, $y)); + } + + function HijriToGregorian($m, $d, $y) + { + return jd_to_cal(CAL_GREGORIAN, + HijriCalendar::HijriToJD($m, $d, $y)); + } + + # Julian Day Count To Hijri + function JDToHijri($jd) + { + $jd = $jd - 1948440 + 10632; + $n = (int)(($jd - 1) / 10631); + $jd = $jd - 10631 * $n + 354; + $j = ((int)((10985 - $jd) / 5316)) * + ((int)(50 * $jd / 17719)) + + ((int)($jd / 5670)) * + ((int)(43 * $jd / 15238)); + $jd = $jd - ((int)((30 - $j) / 15)) * + ((int)((17719 * $j) / 50)) - + ((int)($j / 16)) * + ((int)((15238 * $j) / 43)) + 29; + $m = (int)(24 * $jd / 709); + $d = $jd - (int)(709 * $m / 24); + $y = 30*$n + $j - 30; + + return array($m, $d, $y); + } + + # Hijri To Julian Day Count + function HijriToJD($m, $d, $y) + { + return (int)((11 * $y + 3) / 30) + + 354 * $y + 30 * $m - + (int)(($m - 1) / 2) + $d + 1948440 - 385; + } +}; + + +function JapaneseCalendar($unix_time, $gmt, $monthsystem = 0) { + + $months[0]['name'] = array( 'ichigatsu','nigatsu','sangatsu', + 'shigatsu','gogatsu','rokugatsu', + 'shichigatsu','hachigatsu','kugatsu', + 'jugatsu','juichigatsu','junigatsu'); + + $months[0]['cause'] = array( 'first month', + 'second month', + 'third month', + 'forth month', + 'fifth month', + 'six month', + 'seventh month', + 'eighth month', + 'ninth month', + 'tenth month', + 'elventh month', + 'twelve month'); + + $months[1]['name'] = array( 'mutsuki','kinusaragi','yayoi', + 'uzuki','satsuki','minatsuki', + 'fumizuki','hazuki','nagatsuki', + 'kaminazuki','shimotsuki','shiwasu'); + + $months[1]['cause'] = array( 'affection month', + 'changing clothes', + 'new life', + 'u-no-hana month', + 'fast month', + 'month of water', + 'book month', + 'leaf month', + 'long month', + 'month of gods', + 'frost month', + 'priests run'); + + $days['roman'] = array( 'nichiyobi','getsuyobi','kayobi', + 'suiyobi','mokuyobi','kin\'yobi','doyobi'); + $days['element'] = array('Sun','Moon','Fire','Water','Wood','Gold','Earth'); + $days['day'] = array( 'tsuitachi','futsuka','mikka','yokka','itsuka', + 'muika','nanoka','yoka','kokonoka','toka', + 'juichinichi','juninichi','jusannichi','juyokka', + 'jugonichi','jurokunichi','jushichinichi','juhachinichi', + 'jukunichi','hatsuka','nijuichinichi', + 'nijuninichi','nijusannichi','nijuyokka','nijugonichi', + 'nijurokunichi','nijushichinichi','nijuhachinichi', + 'nijukunichi','sanjunichi','sanjuichinichi'); + + return array("date"=>$days['roman'][date('w', $unix_time)].' '.$days['day'][date('d', $unix_time)-1].' '. + $months[$monthsystem]['name'][date('n', $unix_time)-1].' '.date('Y', $unix_time), + "cause" => $days['element'][date('w', $unix_time)].' '.$months[$monthsystem]['cause'][date('n', $unix_time)-1], + "time" => date('h:i:s A', $unix_time)); +} + +function RounCalendar($unix_time, $gmt, $poffset = '2008-05-11 14:45:38', $pweight = '-1.59999999979000000007349999997428', $defiency='deficient', $timeset= array("hours" => 24, "minutes" => 60, "seconds" => 60)) + { + // Code Segment 1 \x96 Calculate Floating Point + $tme = $unix_time; + + if ($gmt>0){ + $gmt=-$gmt; + } else { + $gmt=abs($gmt); + } + + $ptime = strtotime($poffset)+(60*60*gmt); + $weight = $pweight+(1*gmt); + + $roun_xa = ($tme)/(24*60*60); + $roun_ya = $ptime/(24*60*60); + $roun = (($roun_xa -$roun_ya) - $weight)+(microtime/999999); + + // Code Segment 2 \x96 Set month day arrays + $nonedeficient = array("seq1" => array(31,30,31,30,30,30,31,30,31,30,31,30), + "seq2" => array(31,30,31,30,31,30,31,30,31,30,31,30), + "seq3" => array(31,30,31,30,30,30,31,30,31,30,31,30), + "seq4" => array(31,30,31,30,30,30,31,30,31,30,31,30)); + + $deficient = array("seq1" => array(31,30,31,30,30,30,31,30,31,30,31,30), + "seq2" => array(31,30,31,30,31,30,31,30,31,30,31,30), + "seq3" => array(31,30,31,30,31,30,31,30,30,30,31,30), + "seq4" => array(30,30,31,30,31,30,31,30,31,30,31,30)); + + $monthusage = isset($defiency) ? ${$defiency} : $deficient; + + // Code Segment 3 \x96 Calculate month number, day number, day count etc + foreach($monthusage as $key => $item){ + $i++; + foreach($item as $numdays){ + $ttl_num=$ttl_num+$numdays; + $ttl_num_months++; + } + } + + // As well as Function MayanTihkalCalendar + $revolutionsperyear = $ttl_num / $i; + $numyears = floor((ceil($roun) / $revolutionsperyear)); + $avg_num_month = $ttl_num_months/$i; + $jtl = abs(abs($roun) - ceil($revolutionsperyear*($numyears+1))); + while($month==0){ + $day=0; + $u=0; + foreach($monthusage as $key => $item){ + $t=0; + foreach($item as $numdays){ + $t++; + $tt=0; + for($sh=1;$sh<=$numdays;$sh++){ + $ii=$ii+1; + $tt++; + if ($ii==floor($jtl)){ + if ($roun<0){ + $daynum = $tt; + $month = $t; + } else { + $daynum = $numdays-($tt-1); + $month = $avg_num_month-($t-1); + } + $sequence = $key; + $nodaycount=true; + } + } + if ($nodaycount==false) + $day++; + } + $u++; + } + } + + + + $timer = substr($roun, strpos($roun,'.')+1,strlen($roun)-strpos($roun,'.')-1); + $roun_out= $numyears.'/'.$month.'/'.$daynum.' '.$day.'.'. floor(intval(substr($timer,0,2))/100*$timeset['hours']).':'. floor(intval(substr($timer,2,2))/100*$timeset['minutes']).':'. floor(intval(substr($timer,4,2))/100*$timeset['seconds']).'.'.substr($timer,6,strlen($timer)-6); + + $roun_obj = array('year'=>$numyears,'month'=>$month, 'day'=>$daynum, 'jtl'=>$jtl, 'day_count'=>$day,'hours'=>floor(intval(substr($timer,0,2))/100*$timeset['hours']),'minute'=> floor(intval(substr($timer,2,2))/100*$timeset['minutes']),'seconds'=> floor(intval(substr($timer,4,2))/100*$timeset['seconds']),'microtime'=>substr($timer,6,strlen($timer)-6),'strout'=>$roun_out); + + return $roun_obj; +} + +function EgyptianCalendar($unix_time, $gmt, $poffset = '1970-02-26 7:45 PM', $pweight = '-9777600.22222222223', $defiency='nonedeficient', $timeset= array("hours" => 24, "minutes" => 60, "seconds" => 60)) + { + // Code Segment 1 \x96 Calculate Floating Point + $tme = $unix_time; + + if ($gmt>0){ + $gmt=-$gmt; + } else { + $gmt=abs($gmt); + } + + $ptime = strtotime($poffset)+(60*60*gmt); + $weight = $pweight+(1*gmt); + + $roun_xa = ($tme)/(24*60*60); + $roun_ya = $ptime/(24*60*60); + $roun = (($roun_xa -$roun_ya) - $weight)+(microtime/999999); + + // Code Segment 2 \x96 Set month day arrays + $nonedeficient = array("seq1" => array(30,30,30,30,30,30,30,30,30,30,30,30,5)); + + $monthnames = array("seq1" => array('Thoth','Phaophi','Athyr','Choiak','Tybi', + 'Mecheir','Phamenoth','Pharmuthi','Pachon', + 'Payni','Epiphi','Mesore','epagomenai')); + + $monthusage = isset($defiency) ? ${$defiency} : $deficient; + + // Code Segment 3 \x96 Calculate month number, day number, day count etc + foreach($monthusage as $key => $item){ + $i++; + foreach($item as $numdays){ + $ttl_num=$ttl_num+$numdays; + $ttl_num_months++; + } + } + + // You need to replace this section in Function EgyptianCalendar + // As well as Function MayanTihkalCalendar + $revolutionsperyear = $ttl_num / $i; + $numyears = floor((ceil($roun) / $revolutionsperyear)); + $avg_num_month = $ttl_num_months/$i; + $jtl = abs(abs($roun) - ceil($revolutionsperyear*($numyears+1))); + while($month==0){ + $day=0; + $u=0; + foreach($monthusage as $key => $item){ + $t=0; + foreach($item as $numdays){ + $t++; + $tt=0; + for($sh=1;$sh<=$numdays;$sh++){ + $ii=$ii+1; + $tt++; + if ($ii==floor($jtl)){ + if ($roun<0){ + $daynum = $tt; + $month = $t; + } else { + $daynum = $numdays-($tt-1); + $month = $avg_num_month-($t-1); + } + $sequence = $key; + $nodaycount=true; + } + } + if ($nodaycount==false) + $day++; + } + $u++; + } + } + + //$numyears = abs($numyears); + + $timer = substr($roun, strpos($roun,'.')+1,strlen($roun)-strpos($roun,'.')-1); + $roun_out= $numyears.'/'.$month.'/'.$daynum.' '.$day.'.'. floor(intval(substr($timer,0,2))/100*$timeset['hours']).':'. floor(intval(substr($timer,2,2))/100*$timeset['minutes']).':'. floor(intval(substr($timer,4,2))/100*$timeset['seconds']).'.'.substr($timer,6,strlen($timer)-6); + + $roun_obj = array('year'=>$numyears,'month'=>$month, 'mname' => $monthnames[$sequence][$month-1],'day'=>$daynum, 'jtl'=>$jtl, 'day_count'=>$day,'hours'=>floor(intval(substr($timer,0,2))/100*$timeset['hours']),'minute'=> floor(intval(substr($timer,2,2))/100*$timeset['minutes']),'seconds'=> floor(intval(substr($timer,4,2))/100*$timeset['seconds']),'microtime'=>substr($timer,6,strlen($timer)-6),'strout'=>$roun_out); + + return $roun_obj; +} + +function MayanTihkalCalendar($unix_time, $gmt, $poffset = '2012-12-21 8:24 PM', $pweight = '-1872000.22222222223', $defiency='nonedeficient', $timeset= array("hours" => 24, "minutes" => 60, "seconds" => 60)) + { + // Code Segment 1 \x96 Calculate Floating Point + $tme = $unix_time; + + if ($gmt>0){ + $gmt=-$gmt; + } else { + $gmt=abs($gmt); + } + + $ptime = strtotime($poffset)+(60*60*gmt); + + $roun_xa = ($tme)/(24*60*60); + $roun_ya = $ptime/(24*60*60); + $roun = (($roun_xa -$roun_ya) - $pweight)+(microtime/999999); + + // Code Segment 2 \x96 Set month day arrays + $nonedeficient = array("seq1" => array(20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,5)); + + $monthnames = array("seq1" => array('Pop', 'Uo', 'Zip', 'Zot\'z', 'Tzec', 'Xul', 'Yaxkin', 'Mol', + 'Ch\'en', 'Yax', 'Zac', 'Ceh', 'Mac', 'Kankin', 'Muan', 'Pax', + 'Kayab', 'Cumku', 'Uayeb')); + $daynames = array("seq1" => array('Imix', 'Ik', 'Akbal', 'Kan', 'Chicchan', 'Cimi','Manik', 'Lamat', + 'Muluc', 'Oc', 'Chuen', 'Eb', 'Ben', 'Ix', 'Men', 'Cib', 'Caban', + 'Etz\'nab', 'Cauac', 'Ahau')); + + $monthusage = isset($defiency) ? ${$defiency} : $deficient; + + // Code Segment 3 \x96 Calculate month number, day number, day count etc + foreach($monthusage as $key => $item){ + $i++; + foreach($item as $numdays){ + $ttl_num=$ttl_num+$numdays; + $ttl_num_months++; + } + } + + // As well as Function MayanTihkalCalendar + $revolutionsperyear = $ttl_num / $i; + $numyears = floor((ceil($roun) / $revolutionsperyear)); + $avg_num_month = $ttl_num_months/$i; + $jtl = abs(abs($roun) - ceil($revolutionsperyear*($numyears+1))); + while($month==0){ + $day=0; + $u=0; + foreach($monthusage as $key => $item){ + $t=0; + foreach($item as $numdays){ + $t++; + $tt=0; + for($sh=1;$sh<=$numdays;$sh++){ + $ii=$ii+1; + $tt++; + if ($ii==floor($jtl)){ + if ($roun<0){ + $daynum = $tt; + $month = $t; + } else { + $daynum = $numdays-($tt-1); + $month = $avg_num_month-($t-1); + } + $sequence = $key; + $nodaycount=true; + } + } + if ($nodaycount==false) + $day++; + } + $u++; + } + } + + + //$numyears = abs($numyears); + + $timer = substr($roun, strpos($roun,'.')+1,strlen($roun)-strpos($roun,'.')-1); + $roun_out= $numyears.'/'.$month.'/'.$daynum.' '.$day.'.'. floor(intval(substr($timer,0,2))/100*$timeset['hours']).':'. floor(intval(substr($timer,2,2))/100*$timeset['minutes']).':'. floor(intval(substr($timer,4,2))/100*$timeset['seconds']).'.'.substr($timer,6,strlen($timer)-6); + + $roun_obj = array('longcount'=>MayanLongCount($tme),'year'=>abs($numyears),'month'=>$month, 'mname' => $monthnames[$sequence][$month-1],'day'=>$daynum, 'dayname'=>$daynames[$sequence][$daynum-1], 'day'=>$daynum, 'jtl'=>$jtl, 'day_count'=>$day,'hours'=>floor(intval(substr($timer,0,2))/100*$timeset['hours']),'minute'=> floor(intval(substr($timer,2,2))/100*$timeset['minutes']),'seconds'=> floor(intval(substr($timer,4,2))/100*$timeset['seconds']),'microtime'=>substr($timer,6,strlen($timer)-6),'strout'=>$roun_out); + + return $roun_obj; +} + +function MayanLongCount($tme){ + + $config = array('ppo' => array(13,0,0,0,0), + 'epoch' => strtotime('2012-12-21')); + + $diff=(($tme-$config['epoch'])/(60*60*24)); + $ppo = changemaya($config['ppo'],ceil($diff)); + + return $ppo[0].'.'.$ppo[1].'.'.$ppo[2].'.'.$ppo[3].'.'.$ppo[4]; +} + +function changemaya($ppo,$diff){ + if ($diff>0) { $amount=1; } else { $amount=-1; } + for ($sh=1;$sh<abs($diff);$sh++){ + if ($ppo[4]+$amount>20){ + if ($ppo[3]+$amount>20){ + if ($ppo[2]+$amount>20){ + if ($ppo[1]+$amount>20){ + if ($ppo[0]+$amount>20){ + $ppo[0]=0; + $ppo[1]=0; + $ppo[2]=0; + $ppo[3]=0; + $ppo[4]=0; + } else { + $ppo[1]=0; + $ppo[0]=$ppo[0]+$amount; + } + } else { + $ppo[2]=0; + $ppo[1]=$ppo[1]+$amount; + } + } else { + $ppo[3]=0; + $ppo[2]=$ppo[2]+$amount; + } + } else { + $ppo[4]=0; + $ppo[3]=$ppo[3]+$amount; + } + } elseif ($ppo[4]+$amount<0){ + if ($ppo[3]+$amount<0){ + if ($ppo[2]+$amount<0){ + if ($ppo[1]+$amount<0){ + if ($ppo[0]+$amount<0){ + $ppo[0]=20; + $ppo[1]=0; + $ppo[2]=0; + $ppo[3]=0; + $ppo[4]=0; + } else { + $ppo[1]=20; + $ppo[0]=$ppo[0]+$amount; + } + } else { + $ppo[2]=20; + $ppo[1]=$ppo[1]+$amount; + } + } else { + $ppo[3]=20; + $ppo[2]=$ppo[2]+$amount; + } + } else { + $ppo[4]=20; + $ppo[3]=$ppo[3]+$amount; + } + } else { + $ppo[4]=$ppo[4]+$amount; + } + } + return $ppo; + +} + +function jde_date_create($month, $day, $year){ + + if ($month ==0) { + $month = date('m'); + } + + if ($day ==0) { + $day = date('d'); + } + + if ($year ==0) { + $year = date('Y'); + } + + /* + * NOTE: $month and $day CANNOT have leading zeroes, + * $year must be'YYYY' format + */ + $jde_year_prefix = substr($year, 0, 1) - 1; + $jde_year_suffix = substr($year, -2); + + //note that valid years for mktime are 1902-2037 + $timestamp = mktime(0,0,0,$month, $day, $year); + $baseline_timestamp = mktime(0,0,0,1,0,$year); + + $day_count = round(($timestamp - $baseline_timestamp)/86400); + $day_count_padded = str_pad($day_count,3,"0",STR_PAD_LEFT); + + return ($jde_year_prefix . $jde_year_suffix . $day_count_padded); + +} + +if (!function_exists('cal_days_in_month')){ + function cal_days_in_month($a_null, $a_month, $a_year) { + return date('t', mktime(0, 0, 0, $a_month+1, 0, $a_year)); + } +} + +if (!function_exists('cal_to_jd')){ + function cal_to_jd($a_null, $a_month, $a_day, $a_year){ + + + if ( $a_month <= 2 ){ + $a_month = $a_month + 12 ; + $a_year = $a_year - 1 ; + } + $A = intval($a_year/100); + $B = intval($A/4) ; + $C = 2-$A+$B ; + $E = intval(365.25*($a_year+4716)) ; + $F = intval(30.6001*($a_month+1)); + return intval($C+$a_day+$E+$F-1524) ; + } +} + +if (!function_exists('get_jd_dmy')) { + function get_jd_dmy($a_jd){ + $W = intval(($a_jd - 1867216.25)/36524.25) ; + $X = intval($W/4) ; + $A = $a_jd+1+$W-$X ; + $B = $A+1524 ; + $C = intval(($B-122.1)/365.25) ; + $D = intval(365.25*$C) ; + $E = intval(($B-$D)/30.6001) ; + $F = intval(30.6001*$E) ; + $a_day = $B-$D-$F ; + if ( $E > 13 ) { + $a_month=$E-13 ; + $a_year = $C-4715 ; + } else { + $a_month=$E-1 ; + $a_year=$C-4716 ; + } + return array($a_month, $a_day, $a_year) ; + } +} + +if (!function_exists('jdmonthname')) { + function jdmonthname($a_jd,$a_mode){ + $tmp = get_jd_dmy($a_jd) ; + $a_time = "$tmp[0]/$tmp[1]/$tmp[2]" ; + switch($a_mode) { + case 0: + return strftime("%b",strtotime("$a_time")) ; + case 1: + return strftime("%B",strtotime("$a_time")) ; + } + } +} + +if (!function_exists('jddayofweek')) { + function jddayofweek($a_jd,$a_mode){ + $tmp = get_jd_dmy($a_jd) ; + $a_time = "$tmp[0]/$tmp[1]/$tmp[2]" ; + switch($a_mode) { + case 1: + return strftime("%A",strtotime("$a_time")) ; + case 2: + return strftime("%a",strtotime("$a_time")) ; + default: + return strftime("%w",strtotime("$a_time")) ; + } + } +} +$jd = cal_to_jd(CAL_GREGORIAN,date('m',$tme ),date('d',$tme ),date('y',$tme )); +//$jd =unixtojd(time); +$tmp=get_jd_dmy($jd); +$julian = $tmp[0].'-'.$tmp[1].'-'.$tmp[2] .' ('.jddayofweek($jd,1).'/'.jdmonthname($jd,1).')'; +//$french_date = jdtofrench($jd); + + //correct for half-day offset + $dayfrac = date('G') / 24 - .5; + if ($dayfrac < 0) $dayfrac += 1; + + //now set the fraction of a day + $frac = $dayfrac + (date('i') + date('s') / 60) / 60 / 24; + + $julianDate = $jd+$frac; + + $g_days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); + $j_days_in_month = array(31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29); + $j_month_name = array("", "Farvardin", "Ordibehesht", "Khordad", "Tir", + "Mordad", "Shahrivar", "Mehr", "Aban", "Azar", + "Dey", "Bahman", "Esfand"); + + + function div($a, $b) + { + return (int) ($a / $b); + } + + function gregorian_to_jalali($g_y, $g_m, $g_d) + { + global $g_days_in_month; + global $j_days_in_month; + + $gy = $g_y-1600; + $gm = $g_m-1; + $gd = $g_d-1; + + $g_day_no = 365*$gy+div($gy+3,4)-div($gy+99,100)+div($gy+399,400); + + for ($i=0; $i < $gm; ++$i) + $g_day_no += $g_days_in_month[$i]; + if ($gm>1 && (($gy%4==0 && $gy%100!=0) || ($gy%400==0))) + /* leap and after Feb */ + ++$g_day_no; + $g_day_no += $gd; + + $j_day_no = $g_day_no-79; + + $j_np = div($j_day_no, 12053); + $j_day_no %= 12053; + + $jy = 979+33*$j_np+4*div($j_day_no,1461); + + $j_day_no %= 1461; + + if ($j_day_no >= 366) { + $jy += div($j_day_no-1, 365); + $j_day_no = ($j_day_no-1)%365; + } + + for ($i = 0; $j_day_no >= $j_days_in_month[$i]; ++$i) { + $j_day_no -= $j_days_in_month[$i]; + } + $jm = $i+1; + $jd = $j_day_no+1; + + + return array($jy, $jm, $jd); + } + + function farsinum($str) + { + if (strlen($str) == 1) + $str = "0".$str; + $out = ""; + for ($i = 0; $i < strlen($str); ++$i) { + $c = substr($str, $i, 1); + $out .= pack("C*", 0xDB, 0xB0 + $c); + } + return $out; + } + if (!function_exists(date_format)){ + function date_format($datestamp) + { + $tzoffset = 0; + list($date,$time) = explode(" ",$datestamp); + list($year,$month,$day) = explode("-",$date); + list($hour,$minute,$second) = explode(":",$time); + $hour = $hour + $tzoffset; + + list($jyear, $jmonth, $jday) = gregorian_to_jalali($year,$month,$day); + + $sDate = ($jyear - 1300)."/".($jmonth)."/".($jday) + ." - ".($hour).":".($minute); + + return $sDate; + } + } +// Write a little function to return the proper ordinal suffix for a number +function get_ordinal_suffix ($number) { + $last_2_digits = substr (0, -2, $number); + if (($number % 10) == 1 && $last_2_digits != 11) + return 'st'; + if (($number % 10) == 2 && $last_2_digits != 12) + return 'nd'; + if (($number % 10) == 3 && $last_2_digits != 13) + return 'rd'; + return 'th'; //default suffix +} + + +/* the output will be: + 18 Brumaire VIII + +*/ + +function gregorian2FrenchDateArray($m, $d, $y) +{ + + $julian_date = gregoriantojd($m, $d, $y); + $french = jdtofrench($julian_date); + if($french == "0/0/0") + return "" ; + + $arD = split("/", $french) ; + + // get the month name + $monthname = FrenchMonthNames($arD[0]) ; + + /* convert the year number to roman digits (as most historians do and documents of the time did */ + $stryear = decrom($arD[2]) ; + return array($monthname, $arD[1], $stryear ) ; +} + +function FrenchMonthNames($mo) +{ + /* The names have been invented by Fabre d'\xC9glantine, a second or rather third rank poet +of primarily pastoral poems, with each name referring to the respective period in the agricultural year; e.g. "Vend\xE9miaire" (approx. September) is derived from "vendange" ("harvest"), "Brumaire" (Ocotober/November) from "brume" ("fog") and so on ... */ + + + $arMo = array("Vend\xE9miaire", + "Brumaire", + "Frimaire", + "Niv\xF4se", + "Pluvi\xF4se", + "Vent\xF4se", + "Germinal", + "Flor\xE9al", + "Prairial", + "Messidor", + "Thermidor", + "Fructidor", + "Sansculottide") ; + + if($mo < count($arMo)+1) + return $arMo[$mo-1] ; + +} + +function decrom($dec){ + $digits=array( + 1 => "I", + 4 => "IV", + 5 => "V", + 9 => "IX", + 10 => "X", + 40 => "XL", + 50 => "L", + 90 => "XC", + 100 => "C", + 400 => "CD", + 500 => "D", + 900 => "CM", + 1000 => "M" + ); + krsort($digits); + $retval=""; + foreach($digits as $key => $value){ + while($dec>=$key){ + $dec-=$key; + $retval.=$value; + } + } + return $retval; +} + + +function LatinMonthNames($timeseed) +{ + + //SEGMENT 1.0 + $arSeg1 = array("Ianuarius", + "Februarius", + "Martius", + "Aprilis", + "Maius", + "Iunius", + "Iulius", + "Augustus", + "October", + "Messidor", + "November", + "December") ; + //SEGMENT 2.0 + $arSeg2 = array("Ianuariis", + "Februariis", + "Martiis", + "Aprilibus", + "Maiis", + "Iuniis", + "Iuliis", + "Augustis", + "Septembribus", + "Octobribus", + "Novembribus", + "Decembribus") ; + + //SEGMENT 3.0 + $arSeg3 = array("Ianuarias", + "Februarias", + "Martias", + "Apriles", + "Maias", + "Iunias", + "Iulias", + "Augustas", + "Septembres", + "Octobres", + "Novembres", + "Decembres") ; + + +/* + if ((date('L'))==1){ + return $arSeg3[(date('n')-1]; + } else { + if (rand(1,2) == 1) { + return $arSeg2[(date('n'))-1]; + } else { + return $arSeg1[(date('n'))-1]; + } + } + */ + +} + +function GetLatinDate($timeseed) { + + return decrom((date('yyyy'))) . ' of year ' . LatinMonthNames($timeseed) . ' in day ' . decrom((date('t'))); + +} + +//$arDateFrench = gregorian2FrenchDateArray(date('d',$tme), date('m',$tme), date('Y',$tme)) ; + +$gregorianMonth = date(n,$tme); +$gregorianDay = date(j,$tme); +$gregorianYear = date(Y,$tme); + +$arDateFrench = cal_from_jd(gregoriantojd($gregorianMonth,$gregorianDay,$gregorianYear), CAL_FRENCH); + + +$jdDate = gregoriantojd($gregorianMonth,$gregorianDay,$gregorianYear); + +$hebrewMonthName = jdmonthname($jdDate,4); + +$hebrewDate = jdtojewish($jdDate); + +list($hebrewMonth, $hebrewDay, $hebrewYear) = split('/',$hebrewDate); + + + +?> \ No newline at end of file Added: XoopsModules/genobio/releases/0.13b/genobio/class/categories.php =================================================================== --- XoopsModules/genobio/releases/0.13b/genobio/class/categories.php (rev 0) +++ XoopsModules/genobio/releases/0.13b/genobio/class/categories.php 2009-06-28 19:27:23 UTC (rev 3290) @@ -0,0 +1,39 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Scroller + * @author Simon Roberts (si...@ch...) + * @copyright copyright (c) 2000-2009 XOOPS.org + * @package kernel + */ +class GenobioCategories extends XoopsObject +{ + + function GenobioCategories($fid = null) + { + $this->initVar('category_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('category_name', XOBJ_DTYPE_TXTBOX, null, true, 128); + } + +} + + +/** +* XOOPS Scroller handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class GenobioCategoriesHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "genobio_categories", 'GenobioCategories', "category_id", "category_name"); + } + +} +?> \ No newline at end of file Added: XoopsModules/genobio/releases/0.13b/genobio/class/formselectcategory.php =================================================================== --- XoopsModules/genobio/releases/0.13b/genobio/class/formselectcategory.php (rev 0) +++ XoopsModules/genobio/releases/0.13b/genobio/class/formselectcategory.php 2009-06-28 19:27:23 UTC (rev 3290) @@ -0,0 +1,254 @@ +<?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. +*/ + +/** + * Xoops Form Class Elements + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package class + * @package kernel + * @subpackage Xoop Forms class + * @author Kazumi Ono <on...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @author John Neill <cat...@xo...> + * @version $Id: formselect.php 3174 2009-04-18 15:00:48Z catzwolf $ + */ +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +if (! class_exists('XoopsFormElement')) { + xoops_load('xoopsformelement'); +} + +/** + * A select field + * + * @author Kazumi Ono <on...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @author John Neill <cat...@xo...> + * @copyright copyright (c) XOOPS.org + * @package kernel + * @subpackage form + */ +class GenobioFormSelectCategory extends XoopsFormElement +{ + /** + * Options + * + * @var array + * @access private + */ + var $_options = array(); + + /** + * Allow multiple selections? + * + * @var bool + * @access private + */ + var $_multiple = false; + + /** + * Number of rows. "1" makes a dropdown list. + * + * @var int + * @access private + */ + var $_size; + + /** + * Pre-selcted values + * + * @var array + * @access private + */ + var $_value = array(); + + /** + * Constructor + * + * @param string $caption Caption + * @param string $name "name" attribute + * @param mixed $value Pre-selected value (or array of them). + * @param int $size Number or rows. "1" makes a drop-down-list + * @param bool $multiple Allow multiple selections? + */ + function GenobioFormSelectCategory($caption, $name, $value = null, $size = 1, $multiple = false) + { + $this->setCaption($caption); + $this->setName($name); + $this->_multiple = $multiple; + $this->_size = intval($size); + + $categorieshandler =& xoops_getmodulehandler('categories','genobio'); + $categories = $categorieshandler->getObjects(NULL); + foreach($categories as $category) + $this->addOption($category->getVar('category_id'), $category->getVar('category_name')); + + if (isset($value)) { + $this->setValue($value); + } + } + + /** + * Are multiple selections allowed? + * + * @return bool + */ + function isMultiple() + { + return $this->_multiple; + } + + /** + * Get the size + * + * @return int + */ + function getSize() + { + return $this->_size; + } + + /** + * Get an array of pre-selected values + * + * @param bool $encode To sanitizer the text? + * @return array + */ + function getValue($encode = false) + { + if (! $encode) { + return $this->_value; + } + $value = array(); + foreach($this->_value as $val) { + $value[] = $val ? htmlspecialchars($val, ENT_QUOTES) : $val; + } + return $value; + } + + /** + * Set pre-selected values + * + * @param $value mixed + */ + function setValue($value) + { + if (is_array($value)) { + foreach($value as $v) { + $this->_value[] = $v; + } + } elseif (isset($value)) { + $this->_value[] = $value; + } + } + + /** + * Add an option + * + * @param string $value "value" attribute + * @param string $name "name" attribute + */ + function addOption($value, $name = '') + { + if ($name != '') { + $this->_options[$value] = $name; + } else { + $this->_options[$value] = $value; + } + } + + /** + * Add multiple options + * + * @param array $options Associative array of value->name pairs + */ + function addOptionArray($options) + { + if (is_array($options)) { + foreach($options as $k => $v) { + $this->addOption($k, $v); + } + } + } + + /** + * Get an array with all the opt... [truncated message content] |
From: <wis...@us...> - 2009-07-31 01:00:07
|
Revision: 3370 http://xoops.svn.sourceforge.net/xoops/?rev=3370&view=rev Author: wishcraft Date: 2009-07-31 00:59:56 +0000 (Fri, 31 Jul 2009) Log Message: ----------- Xoops Module (2.3.x+) - Redirector (Multisite Support) Added Paths: ----------- XoopsModules/redirector/ XoopsModules/redirector/branches/ XoopsModules/redirector/releases/ XoopsModules/redirector/releases/1.00/ XoopsModules/redirector/releases/1.00/redirector/ XoopsModules/redirector/releases/1.00/redirector/admin/ XoopsModules/redirector/releases/1.00/redirector/admin/admin.php XoopsModules/redirector/releases/1.00/redirector/admin/admin_header.php XoopsModules/redirector/releases/1.00/redirector/admin/index.php XoopsModules/redirector/releases/1.00/redirector/admin/menu.php XoopsModules/redirector/releases/1.00/redirector/class/ XoopsModules/redirector/releases/1.00/redirector/class/redirection.php XoopsModules/redirector/releases/1.00/redirector/images/ XoopsModules/redirector/releases/1.00/redirector/images/left_both.gif XoopsModules/redirector/releases/1.00/redirector/images/redirector_slogo.png XoopsModules/redirector/releases/1.00/redirector/images/right_both.gif XoopsModules/redirector/releases/1.00/redirector/include/ XoopsModules/redirector/releases/1.00/redirector/include/functions.php XoopsModules/redirector/releases/1.00/redirector/index.php XoopsModules/redirector/releases/1.00/redirector/language/ XoopsModules/redirector/releases/1.00/redirector/language/english/ XoopsModules/redirector/releases/1.00/redirector/language/english/admin.php XoopsModules/redirector/releases/1.00/redirector/language/english/modinfo.php XoopsModules/redirector/releases/1.00/redirector/post.loader.mainfile.php XoopsModules/redirector/releases/1.00/redirector/sql/ XoopsModules/redirector/releases/1.00/redirector/sql/mysql.sql XoopsModules/redirector/releases/1.00/redirector/templates/ XoopsModules/redirector/releases/1.00/redirector/templates/redirector_frameredir.html XoopsModules/redirector/releases/1.00/redirector/xoops_version.php XoopsModules/redirector/trunk/ Added: XoopsModules/redirector/releases/1.00/redirector/admin/admin.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/admin/admin.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/admin/admin.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>Untitled Document</title> +</head> + +<body> +</body> +</html> Added: XoopsModules/redirector/releases/1.00/redirector/admin/admin_header.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/admin/admin_header.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/admin/admin_header.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,31 @@ +<?php +/** + * $Id: admin_header.php v 1.13 06 july 2004 Catwolf Exp $ + * Module: WF-Downloads + * Version: v2.0.5a + * Release Date: 26 july 2004 + * Author: WF-Sections + * Licence: GNU + */ + error_reporting(E_ALL); +include '../../../mainfile.php'; +include '../../../include/cp_header.php'; +include '../include/functions.php'; + +include_once XOOPS_ROOT_PATH . '/class/xoopstree.php'; +include_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; +include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; + +if (is_object($xoopsUser)) { + $xoopsModule = XoopsModule::getByDirname("xsoap"); + if (!$xoopsUser->isAdmin($xoopsModule->mid())) { + redirect_header(XOOPS_URL . "/", 3, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/", 1, _NOPERM); + exit(); +} +$myts = &MyTextSanitizer::getInstance(); +error_reporting(E_ALL); +?> \ No newline at end of file Added: XoopsModules/redirector/releases/1.00/redirector/admin/index.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/admin/index.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/admin/index.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,171 @@ +<?php + +include 'admin_header.php'; +include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; +include_once '../include/functions.php'; + +error_reporting(E_ALL); +global $xoopsDB; + + if (isset($_GET)) { + foreach ($_GET as $k => $v) { + ${$k} = $v; + } + } + + if (isset($_POST)) { + foreach ($_POST as $k => $v) { + ${$k} = $v; + } + } + +switch ($op){ +case "delete": + if (!$id) + { + redirect_header('index.php', 2, _AM_REDIRECT_NOID); + } else { + $redirect_handler = xoops_getmodulehandler('redirection', 'redirector'); + switch ($id){ + default: + $redirect = $redirect_handler->get($id); + } + if ($redirect_handler->kill($id)) + redirect_header('index.php?op=list', 2, _AM_REDIRECT_DELETEGOOD); + else + redirect_header('index.php?op=edit&id='.$redirect->getVar('id'), 2, _AM_REDIRECT_DELETEBAD); + exit; + break; + } +case "save": + if (!$id) + { + redirect_header('index.php', 2, _AM_REDIRECT_NOID); + } else { + $redirect_handler = xoops_getmodulehandler('redirection', 'redirector'); + switch ($id){ + case "new": + $redirect = $redirect_handler->create(); + break; + default: + $redirect = $redirect_handler->get($id); + } + + $redirect->setVar('name', $name); + $redirect->setVar('type', $type); + $redirect->setVar('groups', $groups); + $redirect->setVar('redirect_url', $redirect_url); + $redirect->setVar('redirect_message', $redirect_message); + $redirect->setVar('redirect_time', $redirect_time); + $redirect->setVar('agents', $agents); + $redirect->setVar('domains', $domains); + $redirect->setVar('xml_conf', $xml_conf); + + if ($redirect_handler->insert($redirect)) + redirect_header('index.php?op=edit&id='.$redirect->id(), 2, _AM_REDIRECT_SAVEGOOD); + else + redirect_header('index.php?op=list', 2, _AM_REDIRECT_SAVEBAD); + } + + exit; + break; + +case "new": +case "edit": + + if (!$id) + { + $id='new'; + } else { + $redirect_handler = xoops_getmodulehandler('redirection', 'redirector'); + $redirect = $redirect_handler->get($id); + $name = $redirect->name(); + $type = $redirect->type(); + $groups = $redirect->groups(); + $redirect_url = $redirect->redirect_url(); + $redirect_message = $redirect->redirect_message(); + $redirect_time = $redirect->redirect_time(); + $agents = $redirect->agents(); + $domains = $redirect->domains(); + $xml_conf = $redirect->xml_conf(); + } + + $form_new = new XoopsThemeForm(_XS_NEWREDIRECT, "newredirect", $_SERVER['PHP_SELF'] .""); + $form_new->setExtra( "enctype='multipart/form-data'" ) ; + + $ele_tray[$id] = new XoopsFormElementTray($name.($id=='new')?_XS_NEWREDIRECT_NEW:'',' ',$name); + + $form_new->addElement(new XoopsFormText(_XS_NEWREDIRECT_NAME, "name", 45, 128, $name)); + $form_sel = new XoopsFormSelect(_XS_NEWREDIRECT_TYPE, "type", $type); + $form_sel->addOptionArray(array('302' => '302 Redirection', + '301' => '301 Redirection', + 'iframe' => 'IFrame Redirection', + 'header' => 'Header Redirection')); + $form_new->addElement($form_sel); + $form_new->addElement(new XoopsFormSelectGroup(_XS_NEWREDIRECT_GROUP, "groups", true, $groups, 4, true)); + $form_new->addElement(new XoopsFormTextArea(_XS_NEWREDIRECT_URL, "redirect_url", $redirect_url, 6, 50)); + $form_new->addElement(new XoopsFormTextArea(_XS_NEWREDIRECT_MESSAGE, "redirect_message", $redirect_message, 6, 50)); + + + $form_selb = new XoopsFormSelect(_XS_NEWREDIRECT_TIME, "redirect_time", $redirect_time); + $form_selb->addOptionArray(array('1' => '1 Second', + '3' => '3 Seconds', + '5' => '5 Seconds', + '10' => '10 Seconds')); + $form_new->addElement($form_selb); + + $form_new->addElement(new XoopsFormTextArea(_XS_NEWREDIRECT_AGENTS, "agents", $agents, 10, 50)); + $form_new->addElement(new XoopsFormCheckBoxDomains(_XS_NEWREDIRECT_DOMAINS, "domains", $domains)); + $form_new->addElement(new XoopsFormHidden("op", "save")); + $form_new->addElement(new XoopsFormHidden("id", $id)); + $form_new->addElement(new XoopsFormButton('', 'send', _SEND, 'submit')); + xoops_cp_header(); + adminMenu(1); + $form_new->display(); + footer_adminMenu(); + xoops_cp_footer(); + break; +case "list": +default: + + $redirect_handler = xoops_getmodulehandler('redirection', 'redirector'); + $redirects = $redirect_handler->getObjects(NULL); + + $form = new XoopsThemeForm(_XS_REDIRECTS, "redirects", $_SERVER['PHP_SELF'] .""); + $form->setExtra( "enctype='multipart/form-data'" ) ; + + $ele_tray = array(); + + foreach($redirects as $redirect) { + + $id = $redirect->id(); + $name = $redirect->name(); + $type = $redirect->type(); + $groups = $redirect->groups(); + $redirect_url = $redirect->redirect_url(); + $redirect_message = $redirect->redirect_message(); + $redirect_time = $redirect->redirect_time(); + $agents = $redirect->agents(); + $domains = $redirect->domains(); + $xml_conf = $redirect->xml_conf(); + + $ele_tray[$id] = new XoopsFormElementTray($name,' ',$name); + $ele_tray[$id]->addElement(new XoopsFormHidden("id", $id)); + $ele_tray[$id]->addElement(new XoopsFormLabel(" ", '<a href="'.XOOPS_URL.'/modules/redirector/admin/index.php?op=edit&id='.$redirect->getVar('id').'">'._EDIT.'</a>')); + $ele_tray[$id]->addElement(new XoopsFormLabel(" ", '<a href="'.XOOPS_URL.'/modules/redirector/admin/index.php?op=delete&id='.$redirect->getVar('id').'">'._DELETE.'</a>')); + $ele_tray[$id]->addElement(new XoopsFormLabel("type:", $type)); + $ele_tray[$id]->addElement(new XoopsFormLabel("name:", $name)); + + $form->addElement($ele_tray[$id]); + } + + xoops_cp_header(); + adminMenu(2); + $form->display(); + footer_adminMenu(); + xoops_cp_footer(); + break; + +} + +?> \ No newline at end of file Added: XoopsModules/redirector/releases/1.00/redirector/admin/menu.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/admin/menu.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/admin/menu.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,10 @@ +<?php + +global $adminmenu; +$adminmenu = array(); +$adminmenu[1]['title'] = _MI_REDIRECT_ADMENU1; +$adminmenu[1]['link'] = "admin/index.php?op=new"; +$adminmenu[2]['title'] = _MI_REDIRECT_ADMENU2; +$adminmenu[2]['link'] = "admin/index.php?op=list"; + +?> \ No newline at end of file Added: XoopsModules/redirector/releases/1.00/redirector/class/redirection.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/class/redirection.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/class/redirection.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,231 @@ +<?php +// $Id: user.php 2191 2008-09-29 13:01:00Z phppp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Kazumi Ono (AKA onokazu) // +// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for policies + * @author Simon Roberts <on...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + * @package kernel + */ +class RedirectorRedirection extends XoopsObject +{ + + function RedirectorRedirection($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('type', XOBJ_DTYPE_OTHER, null, false, 128); + $this->initVar('groups', XOBJ_DTYPE_ARRAY, null, false, 255); + $this->initVar('redirect_url', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('redirect_message', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('redirect_time', XOBJ_DTYPE_INT, null, false); + $this->initVar('agents', XOBJ_DTYPE_OTHER, null, false); + $this->initVar('domains', XOBJ_DTYPE_ARRAY, null, false); + $this->initVar('xml_conf', XOBJ_DTYPE_OTHER, null, false); + + } + + + /** + * get the policies name + * @param string $format format for the output, see {@link XoopsObject::getVar()} + * @return string + */ + function id($format="S") + { + return $this->getVar("id", $format); + } + + function name($format="S") + { + return $this->getVar("name", $format); + } + + function type($format="S") + { + return $this->getVar("type", $format); + } + + function agents() + { + return $this->getVar("agents"); + } + + function groups($format="S") + { + return $this->getVar("groups", $format); + } + + function redirect_url($format="S") + { + return $this->getVar("redirect_url", $format); + } + + function redirect_message($format="S") + { + return $this->getVar("redirect_message", $format); + } + + function redirect_time() + { + return $this->getVar("redirect_time"); + } + + function domains() + { + return $this->getVar("domains"); + } + + function xml_conf() + { + return $this->getVar("xml_conf"); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class RedirectorRedirectionHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "redirections", 'RedirectorRedirection', "id", "name"); + } + + function kill($id) + { + global $xoopsDB; + $sql = "DELETE FROM ".$xoopsDB->prefix('redirections').' WHERE id = '.$id; + return $xoopsDB->queryF($sql); + } + + function checkRedirection($Redirection) + { + if (!is_a($Redirection, 'RedirectorRedirection')) + return false; + + // Checks Agents + if (strlen($Redirection->agents())>0) { + foreach(explode('|',$Redirection->agents()) as $agent) + if (eregi ($agent, $HTTP_SERVER_VARS['HTTP_USER_AGENT'])) + { + $agents_match=true; + } + } else { + $agents_match=true; + } + + + // Checks User Groups + if (count($Redirection->getVar('groups'))>0) + { + global $xoopsUser; + $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : array(3,4); + foreach($groups as $group) + if (in_array ($group, $Redirection->getVar('groups')) ) + { + $groups_match=true; + } + } else { + $groups_match=true; + } + + // Checks Domains + if (count($Redirection->getVar('domains'))>0) { + $xstr = str_replace($_SERVER['HTTP_HOST'], '%s', XOOPS_URL); + + if (in_array (urlencode(XOOPS_URL), $Redirection->getVar('domains')) ) + { + $domain_match=true; + } + } else { + $domain_match=true; + } + + if (in_array ('all', $Redirection->getVar('domains')) ) + { + $domain_match=true; + } + + + if ($agents_match == true && $groups_match == true && $domain_match == true) + { + switch($Redirection->type()){ + case "301": + if (strpos(XOOPS_URL.$_SERVER['REQUEST_URI'], 'modules/redirector/?id')==0) + { + header( "HTTP/1.1 301 Moved Permanently" ); + header( "Location: ".$Redirection->redirect_url()); + exit; + } + break; + case "302": + if (strpos(XOOPS_URL.$_SERVER['REQUEST_URI'], 'modules/redirector/?id')==0) + { + header( "HTTP/1.1 302 Moved Temporarily" ); + header( "Location: ".$Redirection->redirect_url()); + exit; + } + break; + case "header": + if (strpos(XOOPS_URL.$_SERVER['REQUEST_URI'], 'modules/redirector/?id')==0) + { + redirect_header($Redirection->redirect_url(), $Redirection->redirect_time(), $Redirection->redirect_message()); + } + return true; + exit; + case "iframe": + if (strpos(XOOPS_URL.$_SERVER['REQUEST_URI'], 'modules/redirector/?id')==0) + { + header( "HTTP/1.1 301 Moved Permanently" ); + header( "Location: ".XOOPS_URL.'/modules/redirector/?id='.$Redirection->getVar('id')); + exit; + } + break; + default: + return false; + } + return false; + } else { + return false; + } + } +} +?> \ No newline at end of file Added: XoopsModules/redirector/releases/1.00/redirector/images/left_both.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/redirector/releases/1.00/redirector/images/left_both.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/redirector/releases/1.00/redirector/images/redirector_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/redirector/releases/1.00/redirector/images/redirector_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/redirector/releases/1.00/redirector/images/right_both.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/redirector/releases/1.00/redirector/images/right_both.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/redirector/releases/1.00/redirector/include/functions.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/include/functions.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/include/functions.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,70 @@ +<?php + +if (!function_exists("adminMenu")) { + function adminMenu ($currentoption = 0) { + /* Nice buttons styles */ + global $xoopsConfig,$xoopsModule; + $module_handler =& xoops_getmodulehandler('module','multisite'); + $xoopsModule = $module_handler->getByDirname('redirector'); + $dirname=$xoopsModule->getVar('dirname'); + echo " + <style type='text/css'> + #form {float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/$dirname/images/bg.gif') repeat-x left bottom; font-size:93%; line-height:normal; border-bottom: 1px solid black; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black;} + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/$dirname/images/bg.gif') repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 0px; border-bottom: 1px solid black; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url('" . XOOPS_URL . "/modules/$dirname/images/left_both.gif') no-repeat left top; margin:0; padding:0 0 0 9px; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url('" . XOOPS_URL . "/modules/$dirname/images/right_both.gif') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style>"; + + // global $xoopsDB, $xoopsModule, $xoopsConfig, $xoopsModuleConfig; + + $myts = &MyTextSanitizer::getInstance(); + + $tblColors = Array(); + // $adminmenu=array(); + if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/modinfo.php')) { + include_once XOOPS_ROOT_PATH . '/modules/redirector/language/' . $xoopsConfig['language'] . '/modinfo.php'; + } else { + include_once XOOPS_ROOT_PATH . '/modules/redirector/english/modinfo.php'; + } + + require_once XOOPS_ROOT_PATH . '/modules/redirector/admin/menu.php'; + global $adminmenu; + echo "<table width=\"100%\" border='0'><tr><td>"; + echo "<div id='buttontop'>"; + echo "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\"><tr>"; + echo "<td style=\"width: 45%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"><!--<a class=\"nobutton\" href=\"../../modules/system/admin.php?fct=preferences&op=showmod&mod=" . $xoopsModule->getVar('mid') . "\">" . _PREFERENCES . "</a>--></td>"; + echo "<td style='font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;'><b>" . $myts->displayTarea($xoopsModule->name()) ."</td>"; + echo "</tr></table>"; + echo "</div>"; + echo "<div id='buttonbar'>"; + echo "<ul>"; + foreach ($adminmenu as $key => $value) { + $tblColors[$key] = ''; + $tblColors[$currentoption] = 'current'; + echo "<li id='" . $tblColors[$key] . "'><a href=\"" . XOOPS_URL . "/modules/".$xoopsModule->getVar('dirname')."/".$value['link']."\"><span>" . $value['title'] . "</span></a></li>"; + } + + echo "</ul></div>"; + echo "</td></tr>"; + echo "<tr'><td><div id='form'>"; + + } + + function footer_adminMenu() + { + echo "</div></td></tr>"; + echo "</table>"; + } +} +?> \ No newline at end of file Added: XoopsModules/redirector/releases/1.00/redirector/index.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/index.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/index.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,20 @@ +<?php + + include ('../../mainfile.php'); + + if (!isset($_REQUEST['id'])) + redirect_header(XOOPS_URL, 3,_AM_REDIRECT_NOID); + + $id = intval($_REQUEST['id']); + $redirect_handler = xoops_getmodulehandler('redirection', 'redirector'); + $redirect = $redirect_handler->get($id); + + $xoopsOption['template_main'] = "redirector_frameredir.html"; + include XOOPS_ROOT_PATH . '/header.php'; + + global $xoopsTpl; + + $xoopsTpl->assign('xoops_redirecturl', $redirect->redirect_url()); + + include XOOPS_ROOT_PATH . '/footer.php'; +?> Added: XoopsModules/redirector/releases/1.00/redirector/language/english/admin.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/language/english/admin.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/language/english/admin.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,21 @@ +<?php + + define('_XS_NEWREDIRECT', 'Redirection'); + define('_XS_NEWREDIRECT_NAME', 'Name:'); + define('_XS_NEWREDIRECT_TYPE', 'Redirection Type:'); + define('_XS_NEWREDIRECT_GROUP', 'Redirection Group:'); + define('_XS_NEWREDIRECT_URL', 'Redirection URL:'); + define('_XS_NEWREDIRECT_MESSAGE', 'Redirection Message:'); + define('_XS_NEWREDIRECT_TIME', 'Redirection Time (Header Only):'); + define('_XS_NEWREDIRECT_DOMAINS', 'Domains To Redirect on:'); + define('_XS_NEWREDIRECT_AGENTS', 'Network Agents<br/><em>Seperated by |</em>'); + define('_XS_REDIRECTS','Current Redirections'); + + define('_AM_REDIRECT_NOID', 'NO ID Specified'); + define('_AM_REDIRECT_DELETEGOOD', 'The item was deleted successfully.'); + define('_AM_REDIRECT_DELETEBAD', 'The item was deleted unsuccessfully.'); + define('_AM_REDIRECT_SAVEGOOD', 'The item was saved successfully.'); + define('_AM_REDIRECT_SAVEBAD', 'The item was saved unsuccessfully.'); + + define('_ALL_DOMAINS', 'All Domains'); +?> Added: XoopsModules/redirector/releases/1.00/redirector/language/english/modinfo.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/language/english/modinfo.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/language/english/modinfo.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,6 @@ +<?php + + define('_MI_REDIRECT_ADMENU1', 'New Redirection'); + define('_MI_REDIRECT_ADMENU2', 'Lists Redirection'); + +?> \ No newline at end of file Added: XoopsModules/redirector/releases/1.00/redirector/post.loader.mainfile.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/post.loader.mainfile.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/post.loader.mainfile.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,9 @@ +<?php + + $redirect_handler = xoops_getmodulehandler('redirection', 'redirector'); + $redirects = $redirect_handler->getObjects(NULL); + + foreach ($redirects as $redirect) + $redirect_handler->checkRedirection($redirect); + +?> Added: XoopsModules/redirector/releases/1.00/redirector/sql/mysql.sql =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/sql/mysql.sql (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/sql/mysql.sql 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,13 @@ +CREATE TABLE `redirections` ( + `id` INT(12) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` VARCHAR(128) DEFAULT NULL, + `type` ENUM('302','301','iframe','header') DEFAULT NULL, + `groups` VARCHAR(255) DEFAULT NULL, + `redirect_url` VARCHAR(255) DEFAULT NULL, + `redirect_message` VARCHAR(255) DEFAULT NULL, + `redirect_time` INT(5) DEFAULT '3', + `agents` MEDIUMTEXT, + `domains` MEDIUMTEXT, + `xml_conf` MEDIUMTEXT, + PRIMARY KEY (`id`) + ) ENGINE=MYISAM DEFAULT CHARSET=utf8; \ No newline at end of file Added: XoopsModules/redirector/releases/1.00/redirector/templates/redirector_frameredir.html =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/templates/redirector_frameredir.html (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/templates/redirector_frameredir.html 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,6 @@ +<div style="float:left"><img src="<{$xoops_url}>/images/logo.png" /></div> +<div style="float:right;"><a href="<{$xoops_redirecturl}>"><{$xoops_redirecturl}></a></div> +<div style="float:right; clear:right;"><font size="+1"><{$xoops_sitename}></font></div> +<div style="float:right; clear:right;"><{$xoops_slogan}></div> +<div style="clear:both;height:14px"> </div> +<iframe src="<{$xoops_redirecturl}>" width="100%" height="800px"></iframe> Added: XoopsModules/redirector/releases/1.00/redirector/xoops_version.php =================================================================== --- XoopsModules/redirector/releases/1.00/redirector/xoops_version.php (rev 0) +++ XoopsModules/redirector/releases/1.00/redirector/xoops_version.php 2009-07-31 00:59:56 UTC (rev 3370) @@ -0,0 +1,63 @@ +<?php +// $Id: xoops_version.php 2712 2009-01-22 10:06:01Z phppp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Kazumi Ono (AKA onokazu) // +// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +$modversion['name'] = 'Redirector'; +$modversion['version'] = 1.00; +$modversion['description'] = 'Will Redirect Domains & Urls'; +$modversion['author'] = "Wishcraft"; +$modversion['credits'] = "The XOOPS Project"; +$modversion['help'] = "multisite.html"; +$modversion['license'] = "GPL see LICENSE"; +$modversion['official'] = 1; +$modversion['image'] = "images/redirector_slogo.png"; +$modversion['dirname'] = "redirector"; + +// Admin things +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = "admin/index.php"; +$modversion['adminmenu'] = "admin/menu.php"; + +/*$modversion['onUpdate'] = "include/update.php"; +$modversion['onInstall'] = "include/install.php"; +$modversion['onUninstall'] = "include/uninstall.php";*/ + +// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) +// All tables should not have any prefix! +$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; +// $modversion['sqlfile']['postgresql'] = "sql/pgsql.sql"; +// Tables created by sql file (without prefix!) +$modversion['tables'][0] = "redirections"; + +$modversion['templates'][1]['file'] = 'redirector_frameredir.html'; +$modversion['templates'][1]['description'] = 'IFRAME Redirection Template'; +// Menu +$modversion['hasMain'] = 1; +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2009-07-31 01:01:56
|
Revision: 3371 http://xoops.svn.sourceforge.net/xoops/?rev=3371&view=rev Author: wishcraft Date: 2009-07-31 01:01:47 +0000 (Fri, 31 Jul 2009) Log Message: ----------- Route * Trunk Update - Release Soon Added Paths: ----------- XoopsModules/route/ XoopsModules/route/branches/ XoopsModules/route/releases/ XoopsModules/route/trunk/ XoopsModules/route/trunk/admin/ XoopsModules/route/trunk/admin/index.php XoopsModules/route/trunk/admin/menu.php XoopsModules/route/trunk/class/ XoopsModules/route/trunk/class/htaccess.php XoopsModules/route/trunk/class/pipemap.php XoopsModules/route/trunk/class/regexsets.php XoopsModules/route/trunk/images/ XoopsModules/route/trunk/images/htaccess_icon.png XoopsModules/route/trunk/images/move_down.png XoopsModules/route/trunk/images/move_up.png XoopsModules/route/trunk/images/pipemap_icon.png XoopsModules/route/trunk/images/regexset_icon.png XoopsModules/route/trunk/images/route_slogo.png XoopsModules/route/trunk/images/write_icon.png XoopsModules/route/trunk/include/ XoopsModules/route/trunk/include/functions.php XoopsModules/route/trunk/include/htaccess.addnew.form.php XoopsModules/route/trunk/include/htaccess.edit.form.php XoopsModules/route/trunk/include/htaccess.list.form.php XoopsModules/route/trunk/include/install.php XoopsModules/route/trunk/include/pipemap.addnew.form.php XoopsModules/route/trunk/include/pipemap.edit.form.php XoopsModules/route/trunk/include/pipemap.list.form.php XoopsModules/route/trunk/include/regexsets.addnew.form.php XoopsModules/route/trunk/include/regexsets.edit.form.php XoopsModules/route/trunk/include/regexsets.list.form.php XoopsModules/route/trunk/include/uninstall.php XoopsModules/route/trunk/include/update.php XoopsModules/route/trunk/language/ XoopsModules/route/trunk/language/english/ XoopsModules/route/trunk/language/english/admin.php XoopsModules/route/trunk/language/english/blocks.php XoopsModules/route/trunk/language/english/index.html XoopsModules/route/trunk/language/english/modinfo.php XoopsModules/route/trunk/sql/ XoopsModules/route/trunk/sql/route.sql XoopsModules/route/trunk/xoops_version.php Added: XoopsModules/route/trunk/admin/index.php =================================================================== --- XoopsModules/route/trunk/admin/index.php (rev 0) +++ XoopsModules/route/trunk/admin/index.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,138 @@ +<?php + include ('../../../mainfile.php'); + include ('../../include/functions.php'); + + foreach($_REQUEST as $key => $value) + ${$key} = $value; + + $htaccess_handler = xoops_getmodulehandler('htaccess', 'route'); + $pipemap_handler = xoops_getmodulehandler('pipemap', 'route'); + $regexsets_handler = xoops_getmodulehandler('regexsets', 'route'); + + xoops_cp_header() + switch ($op) { + case "regexset": + switch($fct){ + case "save": + if (!empty($id)) { + foreach($id as $key => $pointer) { + $regexset = $regexsets_handler->get($pointer); + $regexset->setVar('regex', $regex[$pointer]); + $regexset->setVar('name', $name[$pointer]); + if(!$regexsets_handler->insert($regexset)) + redirect_header('index.php?op=regexsets', 3, _AM_WRITEOF_REGEXSET_NOTOK); + } + redirect_header('index.php?op=regexsets', 3, _AM_WRITEOF_REGEXSET_OK); + } else { + $regexset = $regexsets_handler->create(); + $regexset->setVar('regex', $regex[0]); + $regexset->setVar('name', $name[0]); + if(!$regexsets_handler->insert($regexset)) + redirect_header('index.php?op=regexsets', 3, _AM_WRITEOF_REGEXSET_OK); + else + redirect_header('index.php?op=regexsets', 3, _AM_WRITEOF_REGEXSET_NOTOK); + } + break; + case "edit": + $regexset = $regexsets_handler->get($id); + $regex = $regexset->getVar('regex'); + $name = $regexset->getVar('name'); + adminMenu(1); + include(XOOPS_ROOT_PATH.'/modules/route/include/regexsets.edit.form.php'); + break; + default: + $regexsets = $regexsets_handler->getObjects(NULL); + adminMenu(1); + include(XOOPS_ROOT_PATH.'/modules/route/include/regexsets.list.form.php'); + include(XOOPS_ROOT_PATH.'/modules/route/include/regexsets.addnew.form.php'); + } + + case "pipemap": + switch($fct){ + case "save": + if (!empty($id)) { + foreach($id as $key => $pointer) { + $pipemap = $pipemap_handler->get($pointer); + $pipemap->setVar('var', $var[$pointer]); + $pipemap->setVar('type', $type[$pointer]); + $pipemap->setVar('hta_id', $hta_id[$pointer]); + if(!$pipemap_handler->insert($htaccess)) + redirect_header('index.php?op=pipemap', 3, _AM_WRITEOF_PIPEMAP_NOTOK); + } + redirect_header('index.php?op=pipemap', 3, _AM_WRITEOF_PIPEMAP_OK); + } else { + $pipemap = $pipemap_handler->create(); + $pipemap->setVar('var', $var[0]); + $pipemap->setVar('type', $type[0]); + $pipemap->setVar('hta_id', $hta_id[0]); + if(!$pipemap_handler->insert($pipemap)) + redirect_header('index.php?op=pipemap', 3, _AM_WRITEOF_PIPEMAP_OK); + else + redirect_header('index.php?op=pipemap', 3, _AM_WRITEOF_PIPEMAP_NOTOK); + } + break; + case "edit": + $pipemap = $pipemap_handler->get($id); + $var = $pipemap->getVar('var'); + $type = $pipemap->getVar('type'); + $hta_id = $pipemap->getVar('hta_id'); + adminMenu(2); + include(XOOPS_ROOT_PATH.'/modules/route/include/pipemap.edit.form.php'); + break; + default: + $pipemaps = $pipemap_handler->getObjects(NULL); + adminMenu(2); + include(XOOPS_ROOT_PATH.'/modules/route/include/pipemap.list.form.php'); + include(XOOPS_ROOT_PATH.'/modules/route/include/pipemap.addnew.form.php'); + } + case "htaccess": + default: + switch($fct){ + case "save": + if (!empty($id)) { + foreach($id as $key => $pointer) { + $htaccess = $htaccess_handler->get($pointer); + $clause = $regexsets_handler->validateClause($clause[$pointer]); + $htaccess->setVar('line', $line[$pointer]); + $htaccess->setVar('clause', $clause[$pointer]); + if(!$htaccess_handler->insert($htaccess)) + redirect_header('index.php?op=htaccess', 3, _AM_WRITEOF_HTACCESS_NOTOK); + } + redirect_header('index.php?op=htaccess', 3, _AM_WRITEOF_HTACCESS_OK); + } else { + $id = 0; + $sql = "SELECT MAX(line) as mline FROM ".$GLOBALS['xoopsDB']->prefix('htaccess'); + list($mline) = $GLOBALS['xoopsDB']->fetchRow($GLOBALS['xoopsDB']->query($sql)); + $line[0] = $mline+1; + $htaccess = $htaccess_handler->create(); + + $clause[0] = $regexsets_handler->validateClause($clause[0]); + $htaccess->setVar('line', $line[0]); + $htaccess->setVar('clause', $clause[0]); + if($htaccess_handler->insert($htaccess)) + redirect_header('index.php?op=htaccess', 3, _AM_WRITEOF_HTACCESS_OK); + else + redirect_header('index.php?op=htaccess', 3, _AM_WRITEOF_HTACCESS_NOTOK); + } + + break; + case "edit": + $htaccess = $htaccess_handler->get($id); + $id = $htaccess->getVar('id'); + $line = $htaccess->getVar('line'); + $clause = $regexsets_handler->formatClause($htaccess->getVar('clause')); + adminMenu(0); + include(XOOPS_ROOT_PATH.'/modules/route/include/htaccess.edit.form.php'); + break; + default: + $htaccesses = $htaccess_handler->getObjects(NULL); + adminMenu(0); + include(XOOPS_ROOT_PATH.'/modules/route/include/htaccess.list.form.php'); + include(XOOPS_ROOT_PATH.'/modules/route/include/htaccess.addnew.form.php'); + } + + } + + xoops_cp_footer() + +?> \ No newline at end of file Added: XoopsModules/route/trunk/admin/menu.php =================================================================== --- XoopsModules/route/trunk/admin/menu.php (rev 0) +++ XoopsModules/route/trunk/admin/menu.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,42 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA wishcraft) // +// URL: http://www.chronolabs.org.au/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // +$adminmenu[1]['title'] = _MI_ROUTE_ADMENU1; +$adminmenu[1]['link'] = "admin/index.php?op=htaccess"; +$adminmenu[1]['icon'] = "images/htaccess_icon.png"; +$adminmenu[2]['title'] = _MI_ROUTE_ADMENU2; +$adminmenu[2]['link'] = "admin/index.php?op=regexset"; +$adminmenu[2]['icon'] = "images/regexset_icon.png"; +$adminmenu[3]['title'] = _MI_ROUTE_ADMENU3; +$adminmenu[3]['link'] = "admin/index.php?op=pipemap"; +$adminmenu[3]['icon'] = "images/pipemap_icon.png"; +$adminmenu[4]['title'] = _MI_ROUTE_ADMENU4; +$adminmenu[4]['link'] = "admin/index.php?op=write"; +$adminmenu[4]['icon'] = "images/write_icon.png"; +?> \ No newline at end of file Added: XoopsModules/route/trunk/class/htaccess.php =================================================================== --- XoopsModules/route/trunk/class/htaccess.php (rev 0) +++ XoopsModules/route/trunk/class/htaccess.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,67 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA wishcraft) // +// URL: http://www.chronolabs.org.au/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Route + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + * @package kernel + */ +class RouteHtaccess extends XoopsObject +{ + + function RouteHtaccess($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('line', XOBJ_DTYPE_INT, null, false); + $this->initVar('clause', XOBJ_DTYPE_TXTBOX, null, true, 255); + } + +} + + +/** +* XOOPS Route handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@xo...> +* @package kernel +*/ +class RouteHtaccessHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "htaccess", 'RouteHtaccess', "id", "clause"); + } +} +?> \ No newline at end of file Added: XoopsModules/route/trunk/class/pipemap.php =================================================================== --- XoopsModules/route/trunk/class/pipemap.php (rev 0) +++ XoopsModules/route/trunk/class/pipemap.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,68 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA wishcraft) // +// URL: http://www.chronolabs.org.au/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Route + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + * @package kernel + */ +class RoutePipemap extends XoopsObject +{ + + function RoutePipemap($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('var', XOBJ_DTYPE_TXTBOX, null, true, 64); + $this->initVar('type', XOBJ_DTYPE_ENUM, null, true, 128, null, null, array('REQUEST','GET','POST')); + $this->initVar('hta_id', XOBJ_DTYPE_INT, null, true); + } + +} + + +/** +* XOOPS Route handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@xo...> +* @package kernel +*/ +class RoutePipemapHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "pipemap", 'RoutePipemap', "id", "var"); + } +} +?> \ No newline at end of file Added: XoopsModules/route/trunk/class/regexsets.php =================================================================== --- XoopsModules/route/trunk/class/regexsets.php (rev 0) +++ XoopsModules/route/trunk/class/regexsets.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,67 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Simon Roberts (AKA wishcraft) // +// URL: http://www.chronolabs.org.au/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Route + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + * @package kernel + */ +class RouteRegexsets extends XoopsObject +{ + + function RouteRegexsets($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('regex', XOBJ_DTYPE_TXTBOX, null, true, 255); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, true, 128); + } + +} + + +/** +* XOOPS Route handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@xo...> +* @package kernel +*/ +class RouteRegexsetsHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "regexsets", 'RouteRegexsets', "id", "name"); + } +} +?> \ No newline at end of file Added: XoopsModules/route/trunk/images/htaccess_icon.png =================================================================== (Binary files differ) Property changes on: XoopsModules/route/trunk/images/htaccess_icon.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/route/trunk/images/move_down.png =================================================================== (Binary files differ) Property changes on: XoopsModules/route/trunk/images/move_down.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/route/trunk/images/move_up.png =================================================================== (Binary files differ) Property changes on: XoopsModules/route/trunk/images/move_up.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/route/trunk/images/pipemap_icon.png =================================================================== (Binary files differ) Property changes on: XoopsModules/route/trunk/images/pipemap_icon.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/route/trunk/images/regexset_icon.png =================================================================== (Binary files differ) Property changes on: XoopsModules/route/trunk/images/regexset_icon.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/route/trunk/images/route_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/route/trunk/images/route_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/route/trunk/images/write_icon.png =================================================================== (Binary files differ) Property changes on: XoopsModules/route/trunk/images/write_icon.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/route/trunk/include/functions.php =================================================================== --- XoopsModules/route/trunk/include/functions.php (rev 0) +++ XoopsModules/route/trunk/include/functions.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,103 @@ +<?php + +if (!function_exists("adminMenu")) { + function adminMenu ($currentoption = 0) { + /* Nice buttons styles */ + global $xoopsConfig,$xoopsModule; + $module_handler =& xoops_getmodulehandler('module','multisite'); + $xoopsModule = $module_handler->getByDirname('multisite'); + $dirname=$xoopsModule->getVar('dirname'); + echo " + <style type='text/css'> + #form {float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/$dirname/images/bg.gif') repeat-x left bottom; font-size:93%; line-height:normal; border-bottom: 1px solid black; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black;} + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/$dirname/images/bg.gif') repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 0px; border-bottom: 1px solid black; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url('" . XOOPS_URL . "/modules/$dirname/images/left_both.gif') no-repeat left top; margin:0; padding:0 0 0 9px; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url('" . XOOPS_URL . "/modules/$dirname/images/right_both.gif') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style>"; + + // global $xoopsDB, $xoopsModule, $xoopsConfig, $xoopsModuleConfig; + + $myts = &MyTextSanitizer::getInstance(); + + $tblColors = Array(); + // $adminmenu=array(); + if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/modinfo.php')) { + include_once XOOPS_ROOT_PATH . '/modules/multisite/language/' . $xoopsConfig['language'] . '/modinfo.php'; + } else { + include_once XOOPS_ROOT_PATH . '/modules/multisite/english/modinfo.php'; + } + + require_once XOOPS_ROOT_PATH . '/modules/multisite/admin/menu.php'; + global $adminmenu; + echo "<table width=\"100%\" border='0'><tr><td>"; + echo "<div id='buttontop'>"; + echo "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\"><tr>"; + echo "<td style=\"width: 45%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"><a class=\"nobutton\" href=\"../../modules/system/admin.php?fct=preferences&op=showmod&mod=" . $xoopsModule->getVar('mid') . "\">" . _PREFERENCES . "</a></td>"; + echo "<td style='font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;'><b>" . $myts->displayTarea($xoopsModule->name()) ."</td>"; + echo "</tr></table>"; + echo "</div>"; + echo "<div id='buttonbar'>"; + echo "<ul>"; + foreach ($adminmenu as $key => $value) { + $tblColors[$key] = ''; + $tblColors[$currentoption] = 'current'; + echo "<li id='" . $tblColors[$key] . "'><a href=\"" . XOOPS_URL . "/modules/".$xoopsModule->getVar('dirname')."/".$value['link']."\"><span>" . $value['title'] . "</span></a></li>"; + } + + echo "</ul></div>"; + echo "</td></tr>"; + echo "<tr'><td><div id='form'>"; + + } + + function footer_adminMenu() + { + echo "</div></td></tr>"; + echo "</table>"; + } +} + +/** + * Write-enable the specified folder + * @param string $path + * @param bool $recurse + * @return false on failure, method (u-ser,g-roup,w-orld) on success + */ +function makeWritable( $path, $create = true ) +{ + $mode = intval('0777', 8); + if ( !file_exists( $path ) ) { + if (!$create) { + return false; + } else { + mkdir($path, $mode); + } + } + if ( !is_writable($path) ) { + chmod( $path, $mode ); + } + clearstatcache(); + if ( is_writable( $path ) ) { + $info = stat( $path ); + if ( $info['mode'] & 0002 ) { + return 'w'; + } elseif ( $info['mode'] & 0020 ) { + return 'g'; + } + return 'u'; + } + return false; +} + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/htaccess.addnew.form.php =================================================================== --- XoopsModules/route/trunk/include/htaccess.addnew.form.php (rev 0) +++ XoopsModules/route/trunk/include/htaccess.addnew.form.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,12 @@ +<?php + + $form = new XoopsThemeForm(_AM_HTACESS_FORM_NEW, 'htaccess_form_new', 'index.php', 'post', true); + $form->addElement(new XoopsFormText(_AM_CLAUSE, 'clause[0]', 120, 255), true); + $form->addElement(new XoopsFormHidden('id', '0')); + $form->addElement(new XoopsFormHidden('line', '0')); + $form->addElement(new XoopsFormHidden('fct', 'save')); + $form->addElement(new XoopsFormHidden('op', 'htaccess')); + $form->addElement(new XoopsFormButton('', 'htaccess_submit', _SUBMIT, 'submit')); + $form->display(); + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/htaccess.edit.form.php =================================================================== --- XoopsModules/route/trunk/include/htaccess.edit.form.php (rev 0) +++ XoopsModules/route/trunk/include/htaccess.edit.form.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,12 @@ +<?php + + $form = new XoopsThemeForm(_AM_HTACESS_FORM_EDIT, 'htaccess_form_edit', 'index.php', 'post', true); + $form->addElement(new XoopsFormText(_AM_CLAUSE, 'clause['.$id.']', 120, 255, $clause), true); + $form->addElement(new XoopsFormHidden('id', $id)); + $form->addElement(new XoopsFormHidden('line', $line)); + $form->addElement(new XoopsFormHidden('fct', 'save')); + $form->addElement(new XoopsFormHidden('op', 'htaccess')); + $form->addElement(new XoopsFormButton('', 'htaccess_submit', _SUBMIT, 'submit')); + $form->display(); + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/htaccess.list.form.php =================================================================== --- XoopsModules/route/trunk/include/htaccess.list.form.php (rev 0) +++ XoopsModules/route/trunk/include/htaccess.list.form.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,21 @@ +<?php + + echo "<h4>"._AM_HTACCESS."</h4>"; + $form = new XoopsThemeForm(_AM_HTACESS_FORM_LIST, 'htaccess_form_list', 'index.php', 'post', true); + foreach($htaccesses as $htaccess) { + $ii++; + $ele = new XoopsFormElementTray("Line ".$htaccess->getVar('line').":",""); + $ele->addElement(new XoopsFormText(_AM_CLAUSE, 'clause['.$htaccess->getVar('id').']', 120, 255, $regexsets_handler->formatClause($htaccess->getVar('clause'))), true); + $ele->addElement(new XoopsFormHidden('id['.$htaccess->getVar('id').']', $htaccess->getVar('id')); + $ele->addElement(new XoopsFormHidden('line['.$htaccess->getVar('id').']', $htaccess->getVar('id')); + if ($ii!=1) + $ele->addElement(new XoopsFormLabel('<a href=\''.XOOPS_URL.'/modules/route/admin/index.php?op=htaccess&fct=moveup&id='.$htaccess->getVar('id').'\'><img src=\''.XOOPS_URL.'/modules/route/images/move_up.png\'></a>', '')); + if ($ii<count($htaccesses)) + $ele->addElement(new XoopsFormLabel('<a href=\''.XOOPS_URL.'/modules/route/admin/index.php?op=htaccess&fct=movedown&id='.$htaccess->getVar('id').'\'><img src=\''.XOOPS_URL.'/modules/route/images/move_down.png\'></a>', '')); + $form->addElement($ele); + } + $form->addElement(new XoopsFormHidden('fct', 'save')); + $form->addElement(new XoopsFormHidden('op', 'htaccess')); + $form->display(); + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/install.php =================================================================== --- XoopsModules/route/trunk/include/install.php (rev 0) +++ XoopsModules/route/trunk/include/install.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,37 @@ +<?php +// $Id: update.php 2 2005-11-02 18:23:29Z skalpa $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Kazumi Ono (AKA onokazu) // +// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +function xoops_module_pre_install_route(&$module) { + + +} + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/pipemap.addnew.form.php =================================================================== --- XoopsModules/route/trunk/include/pipemap.addnew.form.php (rev 0) +++ XoopsModules/route/trunk/include/pipemap.addnew.form.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,17 @@ +<?php + + $form = new XoopsThemeForm(_AM_PIPEMAP_FORM_NEW, 'pipemap_form_new', 'index.php', 'post', true); + $form->addElement(new XoopsFormText(_AM_PIPEMAP_VAR, 'var[0]', 30, 64, $var), true); + $sel = new XoopsFormSelect(_AM_PIPEMAP_TYPE, 'type[0]'); + $sel->addOption('REQUEST','REQUEST Method'); + $sel->addOption('GET','GET Method'); + $sel->addOption('POST','POST Method'); + $sel->setValue($type); + $form->addElement($sel, true); + $form->addElement(new XoopsFormHidden('id[0]', '0'); + $form->addElement(new XoopsFormHidden('fct', 'save')); + $form->addElement(new XoopsFormHidden('op', 'pipemap')); + $form->addElement(new XoopsFormButton('', 'pipemap_submit', _SUBMIT, 'submit')); + $form->display(); + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/pipemap.edit.form.php =================================================================== --- XoopsModules/route/trunk/include/pipemap.edit.form.php (rev 0) +++ XoopsModules/route/trunk/include/pipemap.edit.form.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,17 @@ +<?php + + $form = new XoopsThemeForm(_AM_PIPEMAP_FORM_EDIT, 'pipemap_form_edit', 'index.php', 'post', true); + $form->addElement(new XoopsFormText(_AM_PIPEMAP_VAR, 'var['.$id.']', 30, 64, $var), true); + $sel = new XoopsFormSelect(_AM_PIPEMAP_TYPE, 'type['.$id.']'); + $sel->addOption('REQUEST','REQUEST Method'); + $sel->addOption('GET','GET Method'); + $sel->addOption('POST','POST Method'); + $sel->setValue($type); + $form->addElement($sel, true); + $form->addElement(new XoopsFormHidden('id[$id]', $id); + $form->addElement(new XoopsFormHidden('fct', 'save')); + $form->addElement(new XoopsFormHidden('op', 'pipemap')); + $form->addElement(new XoopsFormButton('', 'pipemap_submit', _SUBMIT, 'submit')); + $form->display(); + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/pipemap.list.form.php =================================================================== --- XoopsModules/route/trunk/include/pipemap.list.form.php (rev 0) +++ XoopsModules/route/trunk/include/pipemap.list.form.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,15 @@ +<?php + + echo "<h4>"._AM_PIPEMAP."</h4>"; + $form = new XoopsThemeForm(_AM_PIPEMAP_FORM_LIST, 'pipemap_form_list', 'index.php', 'post', true); + foreach($pipemaps as $pipemap) { + $ii++; + $ele = new XoopsFormElementTray("Item ".$pipemap->getVar('id').":",""); + $ele->addElement(new XoopsFormLabel(_AM_PIPEMAP_TYPE, $regexset->getVar('type')), true); + $ele->addElement(new XoopsFormLabel(_AM_PIPEMAP_VAR, $regexset->getVar('var')), true); + $ele->addElement(new XoopsFormLabel('', '<a href="index.php?op=pipemap&fct=edit&id='.$pipemap->getVar('id').'">'._EDIT.'</a>'), true); + $form->addElement($ele); + } + $form->display(); + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/regexsets.addnew.form.php =================================================================== --- XoopsModules/route/trunk/include/regexsets.addnew.form.php (rev 0) +++ XoopsModules/route/trunk/include/regexsets.addnew.form.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,12 @@ +<?php + + $form = new XoopsThemeForm(_AM_REGEXTSET_FORM_NEW, 'htaccess_form_new', 'index.php', 'post', true); + $form->addElement(new XoopsFormText(_AM_REGEX_NAME, 'name[0]', 40, 128, $name), true); + $form->addElement(new XoopsFormText(_AM_REGEX, 'regex[0]', 120, 255, $regex), true); + $form->addElement(new XoopsFormHidden('id[0]', '0'); + $form->addElement(new XoopsFormHidden('fct', 'save')); + $form->addElement(new XoopsFormHidden('op', 'regexset')); + $form->addElement(new XoopsFormButton('', 'htaccess_submit', _SUBMIT, 'submit')); + $form->display(); + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/regexsets.edit.form.php =================================================================== --- XoopsModules/route/trunk/include/regexsets.edit.form.php (rev 0) +++ XoopsModules/route/trunk/include/regexsets.edit.form.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,12 @@ +<?php + + $form = new XoopsThemeForm(_AM_REGEXTSET_FORM_EDIT, 'htaccess_form_edit', 'index.php', 'post', true); + $form->addElement(new XoopsFormText(_AM_REGEX_NAME, 'name['.$id.']', 40, 128, $name), true); + $form->addElement(new XoopsFormText(_AM_REGEX, 'regex['.$id.']', 120, 255, $regex), true); + $form->addElement(new XoopsFormHidden('id['.$id.']', $id); + $form->addElement(new XoopsFormHidden('fct', 'save')); + $form->addElement(new XoopsFormHidden('op', 'regexset')); + $form->addElement(new XoopsFormButton('', 'htaccess_submit', _SUBMIT, 'submit')); + $form->display(); + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/regexsets.list.form.php =================================================================== --- XoopsModules/route/trunk/include/regexsets.list.form.php (rev 0) +++ XoopsModules/route/trunk/include/regexsets.list.form.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,18 @@ +<?php + + echo "<h4>"._AM_REGEXTSET."</h4>"; + $form = new XoopsThemeForm(_AM_REGEXTSET_FORM_LIST, 'regexset_form_list', 'index.php', 'post', true); + foreach($regexsets as $regexset) { + $ii++; + $ele = new XoopsFormElementTray("Item ".$regexset->getVar('id').":",""); + $ele->addElement(new XoopsFormText(_AM_REGEX_NAME, 'name['.$regexset->getVar('id').']', 40, 128, $regexset->getVar('name')), true); + $ele->addElement(new XoopsFormText(_AM_REGEX, 'regex['.$regexset->getVar('id').']', 120, 255, $regexset->getVar('regex')), true); + $ele->addElement(new XoopsFormHidden('id['.$regexset->getVar('id').']', $regexset->getVar('id')); + $form->addElement($ele); + } + $form->addElement(new XoopsFormHidden('fct', 'save')); + $form->addElement(new XoopsFormHidden('op', 'regexset')); + $form->addElement(new XoopsFormButton('', 'htaccess_submit', _SUBMIT, 'submit')); + $form->display(); + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/uninstall.php =================================================================== --- XoopsModules/route/trunk/include/uninstall.php (rev 0) +++ XoopsModules/route/trunk/include/uninstall.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,38 @@ +<?php +// $Id: update.php 2 2005-11-02 18:23:29Z skalpa $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Kazumi Ono (AKA onokazu) // +// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +function xoops_module_pre_uninstall_route(&$module) { + + + +} + +?> \ No newline at end of file Added: XoopsModules/route/trunk/include/update.php =================================================================== --- XoopsModules/route/trunk/include/update.php (rev 0) +++ XoopsModules/route/trunk/include/update.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,36 @@ +<?php +// $Id: update.php 2 2005-11-02 18:23:29Z skalpa $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Kazumi Ono (AKA onokazu) // +// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +function xoops_module_update_route(&$module) { + +} + +?> \ No newline at end of file Added: XoopsModules/route/trunk/language/english/admin.php =================================================================== --- XoopsModules/route/trunk/language/english/admin.php (rev 0) +++ XoopsModules/route/trunk/language/english/admin.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,3 @@ +<?php + +?> Added: XoopsModules/route/trunk/language/english/blocks.php =================================================================== --- XoopsModules/route/trunk/language/english/blocks.php (rev 0) +++ XoopsModules/route/trunk/language/english/blocks.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,3 @@ +<?php + +?> Added: XoopsModules/route/trunk/language/english/index.html =================================================================== --- XoopsModules/route/trunk/language/english/index.html (rev 0) +++ XoopsModules/route/trunk/language/english/index.html 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/route/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/route/trunk/language/english/modinfo.php (rev 0) +++ XoopsModules/route/trunk/language/english/modinfo.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,21 @@ +<?php +// $Id: modinfo.php 2879 2009-02-27 00:53:34Z wishcraft $ +// _LANGCODE: en +// _CHARSET : UTF-8 +// Translator: XOOPS Translation Team + +// Module Info + +// The name of this module +define("_MI_ROUTE_NAME","Route"); + +// A brief description of this module +define("_MI_ROUTE_DESC",".htaccess Route System for maintaining .htaccess files"); + +// Names of admin menu items +define("_MI_ROUTE_ADMENU1","htaccess Profiler"); +define("_MI_ROUTE_ADMENU2","Regex Sets"); +define("_MI_ROUTE_ADMENU3","Variable Pipe"); +define("_MI_ROUTE_ADMENU4","Write File"); + +?> Added: XoopsModules/route/trunk/sql/route.sql =================================================================== --- XoopsModules/route/trunk/sql/route.sql (rev 0) +++ XoopsModules/route/trunk/sql/route.sql 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,45 @@ +/*Table structure for table `htaccess` */ + +CREATE TABLE `htaccess` ( + `id` int(12) unsigned NOT NULL AUTO_INCREMENT, + `line` int(5) unsigned zerofill DEFAULT NULL, + `clause` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +/*Data for the table `htaccess` */ + +/*Table structure for table `pipemap` */ + +CREATE TABLE `pipemap` ( + `id` int(12) unsigned zerofill NOT NULL AUTO_INCREMENT, + `var` varchar(64) DEFAULT NULL, + `type` enum('REQUEST','GET','POST') DEFAULT 'REQUEST', + `hta_id` int(12) unsigned zerofill NOT NULL DEFAULT '000000000000', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +/*Data for the table `pipemap` */ + +/*Table structure for table `regexsets` */ + +CREATE TABLE `regexsets` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `regex` varchar(255) DEFAULT NULL, + `name` varchar(128) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +/*Data for the table `regexsets` */ + +insert into `regexsets`(`id`,`regex`,`name`) values (1,'([a-zA-Z0-9\\ \\%\\_\\-]+)','Unicode URI Variable'); +insert into `regexsets`(`id`,`regex`,`name`) values (2,'([0-9]+)','Numerical'); +insert into `regexsets`(`id`,`regex`,`name`) values (3,'([a-zA-Z0-9\\&\\%\\?\\_\\.\\-\\=]+)','Safe URI Passing'); +insert into `regexsets`(`id`,`regex`,`name`) values (4,'(.*)','Any file type'); +insert into `regexsets`(`id`,`regex`,`name`) values (5,'([a-zA-Z0-9\\_\\-]+)','Search Engine Friendly'); +insert into `regexsets`(`id`,`regex`,`name`) values (6,'([a-zA-Z0-9]+)','Upper and Lowercase with Numerical'); +insert into `regexsets`(`id`,`regex`,`name`) values (7,'([a-z]+)','Lowercase'); +insert into `regexsets`(`id`,`regex`,`name`) values (8,'([A-Z]+)','Uppercase'); +insert into `regexsets`(`id`,`regex`,`name`) values (9,'([a-z0-9]+)','Lowercase & Numerical'); +insert into `regexsets`(`id`,`regex`,`name`) values (10,'([A-Z0-9]+)','Uppercase & Numerical'); + Added: XoopsModules/route/trunk/xoops_version.php =================================================================== --- XoopsModules/route/trunk/xoops_version.php (rev 0) +++ XoopsModules/route/trunk/xoops_version.php 2009-07-31 01:01:47 UTC (rev 3371) @@ -0,0 +1,78 @@ +<?php +// $Id: xoops_version.php 2712 2009-01-22 10:06:01Z phppp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Kazumi Ono (AKA onokazu) // +// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +$modversion['name'] = _MI_ROUTE_NAME; +$modversion['version'] = 1.11; +$modversion['description'] = _MI_ROUTE_DESC; +$modversion['author'] = "Wishcraft"; +$modversion['credits'] = "The XOOPS Project"; +$modversion['help'] = "multisite.html"; +$modversion['license'] = "GPL see LICENSE"; +$modversion['official'] = 1; +$modversion['image'] = "images/route_slogo.gif"; +$modversion['dirname'] = "route"; + +$modversion['author_realname'] = "Simon Roberts"; +$modversion['author_website_url'] = "http://www.chronolabs.org.au"; +$modversion['author_website_name'] = "Chronolabs Australia"; +$modversion['author_email'] = "si...@ch..."; +$modversion['demo_site_url'] = "Chronolabs Australia"; +$modversion['demo_site_name'] = "http://www.chronolabs.org.au/"; +$modversion['support_site_url'] = "http://www.chronolabs.org.au/forums/viewforum.php?forum=19"; +$modversion['support_site_name'] = "Chronolabs"; +$modversion['submit_bug'] = "http://www.chronolabs.org.au/forums/viewforum.php?forum=19"; +$modversion['submit_feature'] = "http://www.chronolabs.org.au/forums/viewforum.php?forum=19"; +$modversion['usenet_group'] = "sci.chronolabs"; +$modversion['maillist_announcements'] = ""; +$modversion['maillist_bugs'] = ""; +$modversion['maillist_features'] = ""; + +// Admin things +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = "admin/index.php"; +$modversion['adminmenu'] = "admin/menu.php"; + +$modversion['onUpdate'] = "include/update.php"; +$modversion['onInstall'] = "include/install.php"; +$modversion['onUninstall'] = "include/uninstall.php"; + +// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) +// All tables should not have any prefix! +$modversion['sqlfile']['mysql'] = "sql/route.sql"; +// $modversion['sqlfile']['postgresql'] = "sql/pgsql.sql"; +// Tables created by sql file (without prefix!) +$modversion['tables'][0] = "htaccess"; +$modversion['tables'][1] = "regexsets"; +$modversion['tables'][2] = "pipemap"; + +// Menu +$modversion['hasMain'] = 0; +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2009-08-02 04:15:03
|
Revision: 3396 http://xoops.svn.sourceforge.net/xoops/?rev=3396&view=rev Author: wishcraft Date: 2009-08-02 04:14:30 +0000 (Sun, 02 Aug 2009) Log Message: ----------- Profile Module (Version Include 2.3.x & 2.4.x Instances) Added Paths: ----------- XoopsModules/profile/ XoopsModules/profile/branches/ XoopsModules/profile/releases/ XoopsModules/profile/releases/1.53/ XoopsModules/profile/releases/1.53/profile/ XoopsModules/profile/releases/1.53/profile/activate.php XoopsModules/profile/releases/1.53/profile/admin/ XoopsModules/profile/releases/1.53/profile/admin/category.php XoopsModules/profile/releases/1.53/profile/admin/deactivate.php XoopsModules/profile/releases/1.53/profile/admin/field.php XoopsModules/profile/releases/1.53/profile/admin/header.php XoopsModules/profile/releases/1.53/profile/admin/index.html XoopsModules/profile/releases/1.53/profile/admin/menu.php XoopsModules/profile/releases/1.53/profile/admin/permissions.php XoopsModules/profile/releases/1.53/profile/admin/step.php XoopsModules/profile/releases/1.53/profile/admin/user.php XoopsModules/profile/releases/1.53/profile/admin/visibility.php XoopsModules/profile/releases/1.53/profile/changelog.txt XoopsModules/profile/releases/1.53/profile/changemail.php XoopsModules/profile/releases/1.53/profile/changepass.php XoopsModules/profile/releases/1.53/profile/class/ XoopsModules/profile/releases/1.53/profile/class/category.php XoopsModules/profile/releases/1.53/profile/class/field.php XoopsModules/profile/releases/1.53/profile/class/index.html XoopsModules/profile/releases/1.53/profile/class/profile.php XoopsModules/profile/releases/1.53/profile/class/regstep.php XoopsModules/profile/releases/1.53/profile/class/visibility.php XoopsModules/profile/releases/1.53/profile/edituser.php XoopsModules/profile/releases/1.53/profile/footer.php XoopsModules/profile/releases/1.53/profile/header.php XoopsModules/profile/releases/1.53/profile/images/ XoopsModules/profile/releases/1.53/profile/images/index.html XoopsModules/profile/releases/1.53/profile/images/left_both.gif XoopsModules/profile/releases/1.53/profile/images/logo.png XoopsModules/profile/releases/1.53/profile/images/modadminbg.gif XoopsModules/profile/releases/1.53/profile/images/no.png XoopsModules/profile/releases/1.53/profile/images/right_both.gif XoopsModules/profile/releases/1.53/profile/images/yes.png XoopsModules/profile/releases/1.53/profile/include/ XoopsModules/profile/releases/1.53/profile/include/forms.php XoopsModules/profile/releases/1.53/profile/include/index.html XoopsModules/profile/releases/1.53/profile/include/install.php XoopsModules/profile/releases/1.53/profile/include/update.php XoopsModules/profile/releases/1.53/profile/index.html XoopsModules/profile/releases/1.53/profile/index.php XoopsModules/profile/releases/1.53/profile/language/ XoopsModules/profile/releases/1.53/profile/language/english/ XoopsModules/profile/releases/1.53/profile/language/english/admin.php XoopsModules/profile/releases/1.53/profile/language/english/index.html XoopsModules/profile/releases/1.53/profile/language/english/mail_template/ XoopsModules/profile/releases/1.53/profile/language/english/mail_template/emailchanged.tpl XoopsModules/profile/releases/1.53/profile/language/english/mail_template/index.html XoopsModules/profile/releases/1.53/profile/language/english/main.php XoopsModules/profile/releases/1.53/profile/language/english/modinfo.php XoopsModules/profile/releases/1.53/profile/language/index.html XoopsModules/profile/releases/1.53/profile/lostpass.php XoopsModules/profile/releases/1.53/profile/register.php XoopsModules/profile/releases/1.53/profile/search.php XoopsModules/profile/releases/1.53/profile/sql/ XoopsModules/profile/releases/1.53/profile/sql/index.html XoopsModules/profile/releases/1.53/profile/sql/mysql.sql XoopsModules/profile/releases/1.53/profile/templates/ XoopsModules/profile/releases/1.53/profile/templates/index.html XoopsModules/profile/releases/1.53/profile/templates/profile_admin_categorylist.html XoopsModules/profile/releases/1.53/profile/templates/profile_admin_fieldlist.html XoopsModules/profile/releases/1.53/profile/templates/profile_admin_steplist.html XoopsModules/profile/releases/1.53/profile/templates/profile_admin_visibility.html XoopsModules/profile/releases/1.53/profile/templates/profile_avatar.html XoopsModules/profile/releases/1.53/profile/templates/profile_breadcrumbs.html XoopsModules/profile/releases/1.53/profile/templates/profile_changepass.html XoopsModules/profile/releases/1.53/profile/templates/profile_editprofile.html XoopsModules/profile/releases/1.53/profile/templates/profile_email.html XoopsModules/profile/releases/1.53/profile/templates/profile_form.html XoopsModules/profile/releases/1.53/profile/templates/profile_register.html XoopsModules/profile/releases/1.53/profile/templates/profile_results.html XoopsModules/profile/releases/1.53/profile/templates/profile_search.html XoopsModules/profile/releases/1.53/profile/templates/profile_userform.html XoopsModules/profile/releases/1.53/profile/templates/profile_userinfo.html XoopsModules/profile/releases/1.53/profile/templates/style.css XoopsModules/profile/releases/1.53/profile/user.php XoopsModules/profile/releases/1.53/profile/userinfo.php XoopsModules/profile/releases/1.53/profile/xoops_version.php XoopsModules/profile/releases/1.55/ XoopsModules/profile/releases/1.55/profile/ XoopsModules/profile/releases/1.55/profile/activate.php XoopsModules/profile/releases/1.55/profile/admin/ XoopsModules/profile/releases/1.55/profile/admin/category.php XoopsModules/profile/releases/1.55/profile/admin/deactivate.php XoopsModules/profile/releases/1.55/profile/admin/field.php XoopsModules/profile/releases/1.55/profile/admin/header.php XoopsModules/profile/releases/1.55/profile/admin/index.html XoopsModules/profile/releases/1.55/profile/admin/menu.php XoopsModules/profile/releases/1.55/profile/admin/permissions.php XoopsModules/profile/releases/1.55/profile/admin/step.php XoopsModules/profile/releases/1.55/profile/admin/user.php XoopsModules/profile/releases/1.55/profile/admin/visibility.php XoopsModules/profile/releases/1.55/profile/changelog.txt XoopsModules/profile/releases/1.55/profile/changemail.php XoopsModules/profile/releases/1.55/profile/changepass.php XoopsModules/profile/releases/1.55/profile/class/ XoopsModules/profile/releases/1.55/profile/class/category.php XoopsModules/profile/releases/1.55/profile/class/field.php XoopsModules/profile/releases/1.55/profile/class/index.html XoopsModules/profile/releases/1.55/profile/class/profile.php XoopsModules/profile/releases/1.55/profile/class/regstep.php XoopsModules/profile/releases/1.55/profile/class/visibility.php XoopsModules/profile/releases/1.55/profile/edituser.php XoopsModules/profile/releases/1.55/profile/footer.php XoopsModules/profile/releases/1.55/profile/header.php XoopsModules/profile/releases/1.55/profile/images/ XoopsModules/profile/releases/1.55/profile/images/index.html XoopsModules/profile/releases/1.55/profile/images/left_both.gif XoopsModules/profile/releases/1.55/profile/images/logo.png XoopsModules/profile/releases/1.55/profile/images/modadminbg.gif XoopsModules/profile/releases/1.55/profile/images/no.png XoopsModules/profile/releases/1.55/profile/images/right_both.gif XoopsModules/profile/releases/1.55/profile/images/yes.png XoopsModules/profile/releases/1.55/profile/include/ XoopsModules/profile/releases/1.55/profile/include/forms.php XoopsModules/profile/releases/1.55/profile/include/index.html XoopsModules/profile/releases/1.55/profile/include/install.php XoopsModules/profile/releases/1.55/profile/include/update.php XoopsModules/profile/releases/1.55/profile/index.php XoopsModules/profile/releases/1.55/profile/language/ XoopsModules/profile/releases/1.55/profile/language/english/ XoopsModules/profile/releases/1.55/profile/language/english/admin.php XoopsModules/profile/releases/1.55/profile/language/english/index.html XoopsModules/profile/releases/1.55/profile/language/english/mail_template/ XoopsModules/profile/releases/1.55/profile/language/english/mail_template/emailchanged.tpl XoopsModules/profile/releases/1.55/profile/language/english/mail_template/index.html XoopsModules/profile/releases/1.55/profile/language/english/main.php XoopsModules/profile/releases/1.55/profile/language/english/modinfo.php XoopsModules/profile/releases/1.55/profile/language/index.html XoopsModules/profile/releases/1.55/profile/lostpass.php XoopsModules/profile/releases/1.55/profile/register.php XoopsModules/profile/releases/1.55/profile/search.php XoopsModules/profile/releases/1.55/profile/sql/ XoopsModules/profile/releases/1.55/profile/sql/index.html XoopsModules/profile/releases/1.55/profile/sql/mysql.sql XoopsModules/profile/releases/1.55/profile/templates/ XoopsModules/profile/releases/1.55/profile/templates/index.html XoopsModules/profile/releases/1.55/profile/templates/profile_admin_categorylist.html XoopsModules/profile/releases/1.55/profile/templates/profile_admin_fieldlist.html XoopsModules/profile/releases/1.55/profile/templates/profile_admin_steplist.html XoopsModules/profile/releases/1.55/profile/templates/profile_admin_visibility.html XoopsModules/profile/releases/1.55/profile/templates/profile_avatar.html XoopsModules/profile/releases/1.55/profile/templates/profile_breadcrumbs.html XoopsModules/profile/releases/1.55/profile/templates/profile_changepass.html XoopsModules/profile/releases/1.55/profile/templates/profile_editprofile.html XoopsModules/profile/releases/1.55/profile/templates/profile_email.html XoopsModules/profile/releases/1.55/profile/templates/profile_form.html XoopsModules/profile/releases/1.55/profile/templates/profile_register.html XoopsModules/profile/releases/1.55/profile/templates/profile_results.html XoopsModules/profile/releases/1.55/profile/templates/profile_search.html XoopsModules/profile/releases/1.55/profile/templates/profile_userform.html XoopsModules/profile/releases/1.55/profile/templates/profile_userinfo.html XoopsModules/profile/releases/1.55/profile/templates/style.css XoopsModules/profile/releases/1.55/profile/user.php XoopsModules/profile/releases/1.55/profile/userinfo.php XoopsModules/profile/releases/1.55/profile/xoops_version.php XoopsModules/profile/trunk/ Added: XoopsModules/profile/releases/1.53/profile/activate.php =================================================================== --- XoopsModules/profile/releases/1.53/profile/activate.php (rev 0) +++ XoopsModules/profile/releases/1.53/profile/activate.php 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1,110 @@ +<?php +/** + * Extended User Profile + * + * 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 XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: activate.php 2133 2008-09-21 12:41:07Z phppp $ + */ + +$xoopsOption['pagetype'] = "user"; +include 'header.php'; + +include XOOPS_ROOT_PATH . '/header.php'; +if (!empty($_GET['id']) && !empty($_GET['actkey'])) { + $id = intval($_GET['id']); + $actkey = trim($_GET['actkey']); + if (empty($id)) { + redirect_header(XOOPS_URL, 1, ''); + exit(); + } + $member_handler =& xoops_gethandler('member'); + $thisuser =& $member_handler->getUser($id); + if (!is_object($thisuser)) { + redirect_header(XOOPS_URL, 1, ''); + exit(); + } + if ($thisuser->getVar('actkey') != $actkey) { + redirect_header(XOOPS_URL . '/', 5, _US_ACTKEYNOT); + } else { + if ($thisuser->getVar('level') > 0 ) { + redirect_header(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n'). '/index.php', 5, _US_ACONTACT, false); + } else { + if (false != $member_handler->activateUser($thisuser)) { + $config_handler =& xoops_gethandler('config'); + $xoopsConfigUser = $config_handler->getConfigsByCat(XOOPS_CONF_USER); + if ($xoopsConfigUser['activation_type'] == 2) { + $myts =& MyTextSanitizer::getInstance(); + $xoopsMailer = xoops_getMailer(); + $xoopsMailer->useMail(); + $xoopsMailer->setTemplate('activated.tpl'); + $xoopsMailer->assign('SITENAME', $xoopsConfig['sitename']); + $xoopsMailer->assign('ADMINMAIL', $xoopsConfig['adminmail']); + $xoopsMailer->assign('SITEURL', XOOPS_URL . "/"); + $xoopsMailer->setToUsers($thisuser); + $xoopsMailer->setFromEmail($xoopsConfig['adminmail']); + $xoopsMailer->setFromName($xoopsConfig['sitename']); + $xoopsMailer->setSubject(sprintf(_US_YOURACCOUNT, $xoopsConfig['sitename'])); + include XOOPS_ROOT_PATH . '/header.php'; + if ( !$xoopsMailer->send() ) { + printf(_US_ACTVMAILNG, $thisuser->getVar('uname')); + } else { + printf(_US_ACTVMAILOK, $thisuser->getVar('uname')); + } + include 'footer.php'; + } else { + redirect_header(XOOPS_URL . '/user.php', 5, _US_ACTLOGIN, false); + } + } else { + redirect_header(XOOPS_URL . '/index.php', 5, 'Activation failed!'); + } + } + } +// Not implemented yet: re-send activiation code +} elseif (!empty($_REQUEST['email'])) { + $myts =& MyTextSanitizer::getInstance(); + $member_handler =& xoops_gethandler('member'); + $getuser =& $member_handler->getUsers(new Criteria('email', $myts->addSlashes(trim($_REQUEST['email'])))); + if (count($getuser) == 0) { + redirect_header(XOOPS_URL, 2, _US_SORRYNOTFOUND); + } + if ($getuser[0]->isActive()) { + redirect_header(XOOPS_URL, 2, sprintf(_US_USERALREADYACTIVE, $getuser[0]->getVar('email'))); + } + $xoopsMailer = xoops_getMailer(); + $xoopsMailer->useMail(); + $xoopsMailer->setTemplate('register.tpl'); + $xoopsMailer->assign('SITENAME', $xoopsConfig['sitename']); + $xoopsMailer->assign('ADMINMAIL', $xoopsConfig['adminmail']); + $xoopsMailer->assign('SITEURL', XOOPS_URL . "/"); + $xoopsMailer->setToUsers($getuser[0]); + $xoopsMailer->setFromEmail($xoopsConfig['adminmail']); + $xoopsMailer->setFromName($xoopsConfig['sitename']); + $xoopsMailer->setSubject(sprintf(_US_USERKEYFOR, $getuser[0]->getVar('uname'))); + if ( !$xoopsMailer->send() ) { + echo _US_YOURREGMAILNG; + } else { + echo _US_YOURREGISTERED; + } +} else { + include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; + $form = new XoopsThemeForm('', 'form', 'activate.php'); + $form->addElement(new XoopsFormText(_US_EMAIL, 'email', 25, 255)); + $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); + $form->display(); +} + +$xoBreadcrumbs[] = array('title' => _PROFILE_MA_REGISTER); +include 'footer.php'; +?> \ No newline at end of file Added: XoopsModules/profile/releases/1.53/profile/admin/category.php =================================================================== --- XoopsModules/profile/releases/1.53/profile/admin/category.php (rev 0) +++ XoopsModules/profile/releases/1.53/profile/admin/category.php 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1,103 @@ +<?php +// $Id: category.php 2639 2009-01-10 05:33:33Z phppp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // +include 'header.php'; +xoops_cp_header(); + +loadModuleAdminMenu(2, ""); +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); + +$handler =& xoops_getmodulehandler('category'); +switch($op) { +default: +case "list": + $criteria = new CriteriaCompo(); + $criteria->setSort('cat_weight'); + $criteria->setOrder('ASC'); + $xoopsTpl->assign('categories', $handler->getObjects($criteria, true, false)); + $template_main = "profile_admin_categorylist.html"; + break; + +case "new": + include_once '../include/forms.php'; + $obj =& $handler->create(); + $form = $obj->getForm(); + $form->display(); + break; + +case "edit": + include_once '../include/forms.php'; + $obj = $handler->get($_REQUEST['id']); + $form = $obj->getForm(); + $form->display(); + break; + +case "save": + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('category.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if (isset($_REQUEST['id'])) { + $obj =& $handler->get($_REQUEST['id']); + } else { + $obj =& $handler->create(); + } + $obj->setVar('cat_title', $_REQUEST['cat_title']); + $obj->setVar('cat_description', $_REQUEST['cat_description']); + $obj->setVar('cat_weight', $_REQUEST['cat_weight']); + if ($handler->insert($obj)) { + redirect_header('category.php', 3, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_CATEGORY)); + } + include_once '../include/forms.php'; + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + +case "delete": + $obj =& $handler->get($_REQUEST['id']); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('category.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if ($handler->delete($obj)) { + redirect_header('category.php', 3, sprintf(_PROFILE_AM_DELETEDSUCCESS, _PROFILE_AM_CATEGORY)); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array('ok' => 1, 'id' => $_REQUEST['id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_PROFILE_AM_RUSUREDEL, $obj->getVar('cat_title'))); + } + break; +} +if (isset($template_main)) { + $xoopsTpl->display("db:{$template_main}"); +} +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/profile/releases/1.53/profile/admin/deactivate.php =================================================================== --- XoopsModules/profile/releases/1.53/profile/admin/deactivate.php (rev 0) +++ XoopsModules/profile/releases/1.53/profile/admin/deactivate.php 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1,32 @@ +<?php +include 'header.php'; +xoops_cp_header(); + +if (!isset($_REQUEST['uid'])) { + redirect_header("index.php", 2, _PROFILE_AM_NOSELECTION); +} +$member_handler = xoops_gethandler('member'); +$user = $member_handler->getUser($_REQUEST['uid']); +if (!$user || $user->isNew()) { + redirect_header("index.php", 2, _PROFILE_AM_USERDONEXIT); +} + +if (in_array(XOOPS_GROUP_ADMIN, $user->getGroups())) { + redirect_header("index.php", 2, _PROFILE_AM_CANNOTDEACTIVATEWEBMASTERS); +} +$user->setVar('level', $_REQUEST['level']); +if ($member_handler->insertUser($user)) { + if ($_REQUEST['level'] == 1) { + $message = _PROFILE_AM_USER_ACTIVATED; + } else { + $message = _PROFILE_AM_USER_DEACTIVATED; + } +} else { + if ($_REQUEST['level'] == 1) { + $message = _PROFILE_AM_USER_NOT_ACTIVATED; + } else { + $message = _PROFILE_AM_USER_NOT_DEACTIVATED; + } +} +redirect_header("../userinfo.php?uid=" . $user->getVar('uid'), 3, $message); +?> \ No newline at end of file Added: XoopsModules/profile/releases/1.53/profile/admin/field.php =================================================================== --- XoopsModules/profile/releases/1.53/profile/admin/field.php (rev 0) +++ XoopsModules/profile/releases/1.53/profile/admin/field.php 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1,305 @@ +<?php +/** + * Extended User Profile + * + * 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 XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: field.php 2190 2008-09-29 12:53:58Z phppp $ + */ +include 'header.php'; +xoops_cp_header(); + +loadModuleAdminMenu(3, ""); +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); + +$profilefield_handler =& xoops_getmodulehandler('field'); + +switch($op) { +default: +case "list": + $fields = $profilefield_handler->getObjects(null, true, false); + + $module_handler =& xoops_gethandler('module'); + $modules = $module_handler->getObjects(null, true); + + $cat_handler =& xoops_getmodulehandler('category'); + $criteria = new CriteriaCompo(); + $criteria->setSort('cat_weight'); + $cats = $cat_handler->getObjects($criteria, true); + unset($criteria); + + $categories[0] = _PROFILE_AM_DEFAULT; + if (count($cats) > 0) { + foreach (array_keys($cats) as $i) { + $categories[$cats[$i]->getVar('cat_id')] = $cats[$i]->getVar('cat_title'); + } + } + $xoopsTpl->assign('categories', $categories); + unset($categories); + $valuetypes = array(XOBJ_DTYPE_ARRAY => _PROFILE_AM_ARRAY, + XOBJ_DTYPE_EMAIL => _PROFILE_AM_EMAIL, + XOBJ_DTYPE_INT => _PROFILE_AM_INT, + XOBJ_DTYPE_TXTAREA => _PROFILE_AM_TXTAREA, + XOBJ_DTYPE_TXTBOX => _PROFILE_AM_TXTBOX, + XOBJ_DTYPE_URL => _PROFILE_AM_URL, + XOBJ_DTYPE_OTHER => _PROFILE_AM_OTHER, + XOBJ_DTYPE_MTIME => _PROFILE_AM_DATE); + + $fieldtypes = array('checkbox' => _PROFILE_AM_CHECKBOX, + 'group' => _PROFILE_AM_GROUP, + 'group_multi' => _PROFILE_AM_GROUPMULTI, + 'language' => _PROFILE_AM_LANGUAGE, + 'radio' => _PROFILE_AM_RADIO, + 'select' => _PROFILE_AM_SELECT, + 'select_multi' => _PROFILE_AM_SELECTMULTI, + 'textarea' => _PROFILE_AM_TEXTAREA, + 'dhtml' => _PROFILE_AM_DHTMLTEXTAREA, + 'textbox' => _PROFILE_AM_TEXTBOX, + 'timezone' => _PROFILE_AM_TIMEZONE, + 'yesno' => _PROFILE_AM_YESNO, + 'date' => _PROFILE_AM_DATE, + 'datetime' => _PROFILE_AM_DATETIME, + 'longdate' => _PROFILE_AM_LONGDATE, + 'theme' => _PROFILE_AM_THEME, + 'autotext' => _PROFILE_AM_AUTOTEXT, + 'rank' => _PROFILE_AM_RANK); + + foreach (array_keys($fields) as $i) { + $fields[$i]['canEdit'] = $fields[$i]['field_config'] || $fields[$i]['field_show'] || $fields[$i]['field_edit']; + $fields[$i]['canDelete'] = $fields[$i]['field_config']; + $fields[$i]['fieldtype'] = $fieldtypes[$fields[$i]['field_type']]; + $fields[$i]['valuetype'] = $valuetypes[$fields[$i]['field_valuetype']]; + $categories[$fields[$i]['cat_id']][] = $fields[$i]; + $weights[$fields[$i]['cat_id']][] = $fields[$i]['field_weight']; + } + //sort fields order in categories + foreach (array_keys($categories) as $i) { + array_multisort($weights[$i], SORT_ASC, array_keys($categories[$i]), SORT_ASC, $categories[$i]); + } + ksort($categories); + $xoopsTpl->assign('fieldcategories', $categories); + $xoopsTpl->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML()); + $template_main = "profile_admin_fieldlist.html"; + break; + +case "new": + include_once('../include/forms.php'); + $obj =& $profilefield_handler->create(); + $form = profile_getFieldForm($obj); + $form->display(); + break; + +case "edit": + $obj =& $profilefield_handler->get($_REQUEST['id']); + if (!$obj->getVar('field_config') && !$obj->getVar('field_show') && !$obj->getVar('field_edit')) { //If no configs exist + redirect_header('field.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); + } + include_once('../include/forms.php'); + $form = profile_getFieldForm($obj); + $form->display(); + break; + +case "reorder": + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if (isset($_POST['field_ids']) && count($_POST['field_ids']) > 0) { + $oldweight = $_POST['oldweight']; + $oldcat = $_POST['oldcat']; + $category = $_POST['category']; + $weight = $_POST['weight']; + $ids = array(); + foreach ($_POST['field_ids'] as $field_id) { + if ($oldweight[$field_id] != $weight[$field_id] || $oldcat[$field_id] != $category[$field_id]) { + //if field has changed + $ids[] = intval($field_id); + } + } + if (count($ids) > 0) { + $errors = array(); + //if there are changed fields, fetch the fieldcategory objects + $field_handler =& xoops_getmodulehandler('field'); + $fields = $field_handler->getObjects(new Criteria('field_id', "(" . implode(',', $ids) . ")", "IN"), true); + foreach ($ids as $i) { + $fields[$i]->setVar('field_weight', intval($weight[$i])); + $fields[$i]->setVar('cat_id', intval($category[$i])); + if (!$field_handler->insert($fields[$i])) { + $errors = array_merge($errors, $fields[$i]->getErrors()); + } + } + if (count($errors) == 0) { + //no errors + redirect_header('field.php', 2, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_FIELDS)); + } else { + redirect_header('field.php', 3, implode('<br />', $errors)); + } + } + } + break; + +case "save": + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + $redirect_to_edit = false; + if (isset($_REQUEST['id'])) { + $obj =& $profilefield_handler->get($_REQUEST['id']); + if (!$obj->getVar('field_config') && !$obj->getVar('field_show') && !$obj->getVar('field_edit')) { //If no configs exist + redirect_header('admin.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); + } + } else { + $obj =& $profilefield_handler->create(); + $obj->setVar('field_name', $_REQUEST['field_name']); + $obj->setVar('field_moduleid', $xoopsModule->getVar('mid')); + $obj->setVar('field_show', 1); + $obj->setVar('field_edit', 1); + $obj->setVar('field_config', 1); + $redirect_to_edit = true; + } + $obj->setVar('field_title', $_REQUEST['field_title']); + $obj->setVar('field_description', $_REQUEST['field_description']); + if ($obj->getVar('field_config')) { + $obj->setVar('field_type', $_REQUEST['field_type']); + if (isset($_REQUEST['field_valuetype'])) { + $obj->setVar('field_valuetype', $_REQUEST['field_valuetype']); + } + $options = $obj->getVar('field_options'); + + if (isset($_REQUEST['removeOptions']) && is_array($_REQUEST['removeOptions'])) { + foreach ($_REQUEST['removeOptions'] as $index) { + unset($options[$index]); + } + $redirect_to_edit = true; + } + + if (!empty($_REQUEST['addOption'])) { + foreach ($_REQUEST['addOption'] as $option) { + if (empty($option['value'])) continue; + $options[$option['key']] = $option['value']; + $redirect_to_edit = true; + } + } + $obj->setVar('field_options', $options); + } + if ($obj->getVar('field_edit')) { + $required = isset($_REQUEST['field_required']) ? $_REQUEST['field_required'] : 0; + $obj->setVar('field_required', $required); //0 = no, 1 = yes + if (isset($_REQUEST['field_maxlength'])) { + $obj->setVar('field_maxlength', $_REQUEST['field_maxlength']); + } + if (isset($_REQUEST['field_default'])) { + $field_default = $obj->getValueForSave($_REQUEST['field_default']); + //Check for multiple selections + if (is_array($field_default)) { + $obj->setVar('field_default', serialize($field_default)); + } else { + $obj->setVar('field_default', $field_default); + } + } + } + + if ($obj->getVar('field_show')) { + $obj->setVar('field_weight', $_REQUEST['field_weight']); + $obj->setVar('cat_id', $_REQUEST['field_category']); + } + if (/*$obj->getVar('field_edit') && */isset($_REQUEST['step_id'])) { + $obj->setVar('step_id', $_REQUEST['step_id']); + } + if ($profilefield_handler->insert($obj)) { + $groupperm_handler =& xoops_gethandler('groupperm'); + + $perm_arr = array(); + if ($obj->getVar('field_show')) { + $perm_arr[] = 'profile_show'; + $perm_arr[] = 'profile_visible'; + } + if ($obj->getVar('field_edit')) { + $perm_arr[] = 'profile_edit'; + } + if ($obj->getVar('field_edit') || $obj->getVar('field_show')) { + $perm_arr[] = 'profile_search'; + } + if (count($perm_arr) > 0) { + foreach ($perm_arr as $perm) { + $criteria = new CriteriaCompo(new Criteria('gperm_name', $perm)); + $criteria->add(new Criteria('gperm_itemid', intval($obj->getVar('field_id')))); + $criteria->add(new Criteria('gperm_modid', intval($xoopsModule->getVar('mid')))); + if (isset($_REQUEST[$perm]) && is_array($_REQUEST[$perm])) { + $perms = $groupperm_handler->getObjects($criteria); + if (count($perms) > 0) { + foreach (array_keys($perms) as $i) { + $groups[$perms[$i]->getVar('gperm_groupid')] =& $perms[$i]; + } + } else { + $groups = array(); + } + foreach ($_REQUEST[$perm] as $groupid) { + $groupid = intval($groupid); + if (!isset($groups[$groupid])) { + $perm_obj =& $groupperm_handler->create(); + $perm_obj->setVar('gperm_name', $perm); + $perm_obj->setVar('gperm_itemid', intval($obj->getVar('field_id'))); + $perm_obj->setVar('gperm_modid', $xoopsModule->getVar('mid')); + $perm_obj->setVar('gperm_groupid', $groupid); + $groupperm_handler->insert($perm_obj); + unset($perm_obj); + } + } + $removed_groups = array_diff(array_keys($groups), $_REQUEST[$perm]); + if (count($removed_groups) > 0) { + $criteria->add(new Criteria('gperm_groupid', "(".implode(',', $removed_groups).")", "IN")); + $groupperm_handler->deleteAll($criteria); + } + unset($groups); + + } else { + $groupperm_handler->deleteAll($criteria); + } + unset($criteria); + } + } + $url = $redirect_to_edit ? 'field.php?op=edit&id=' . $obj->getVar('field_id') : 'field.php'; + redirect_header($url, 3, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_FIELD)); + } + include_once('../include/forms.php'); + echo $obj->getHtmlErrors(); + $form = profile_getFieldForm($obj); + $form->display(); + break; + +case "delete": + $obj =& $profilefield_handler->get($_REQUEST['id']); + if (!$obj->getVar('field_config')) { + redirect_header('index.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); + } + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if ($profilefield_handler->delete($obj)) { + redirect_header('field.php', 3, sprintf(_PROFILE_AM_DELETEDSUCCESS, _PROFILE_AM_FIELD)); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array('ok' => 1, 'id' => $_REQUEST['id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_PROFILE_AM_RUSUREDEL, $obj->getVar('field_title'))); + } + break; +} + +if (isset($template_main)) { + $xoopsTpl->display("db:{$template_main}"); +} +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/profile/releases/1.53/profile/admin/header.php =================================================================== --- XoopsModules/profile/releases/1.53/profile/admin/header.php (rev 0) +++ XoopsModules/profile/releases/1.53/profile/admin/header.php 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1,88 @@ +<?php +/** + * Extended User Profile + * + * 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 XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package profile + * @since 2.3.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 2537 2008-11-29 12:03:30Z dhcst $ + */ + +require_once "../../../include/cp_header.php"; + +xoops_loadLanguage('user'); +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once XOOPS_ROOT_PATH . "/class/template.php"; + $xoopsTpl = new XoopsTpl(); +} + +IF (!@ include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php"): + + +function loadModuleAdminMenu($currentoption, $breadcrumb = "") +{ + if (!$adminmenu = $GLOBALS["xoopsModule"]->getAdminMenu()) { + return false; + } + + $breadcrumb = empty($breadcrumb) ? $adminmenu[$currentoption]["title"] : $breadcrumb; + $module_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/"; + $image_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/images"; + + $adminmenu_text =' + <style type="text/css"> + <!-- + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0;} + #buttonbar { float:left; width:100%; background: #e7e7e7 url("'.$image_link.'/modadminbg.gif") repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px;} + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url("'.$image_link.'/left_both.gif") no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url("'.$image_link.'/right_both.gif") no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar .current a { background-position:0 -150px; border-width:0; } + #buttonbar .current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + //--> + </style> + <div id="buttontop"> + <table style="width: 100%; padding: 0; " cellspacing="0"> + <tr> + <td style="width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <a href="../index.php">' . $GLOBALS["xoopsModule"]->getVar("name") . '</a> + </td> + <td style="width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <strong>' . $GLOBALS["xoopsModule"]->getVar("name") . '</strong> ' . $breadcrumb . ' + </td> + </tr> + </table> + </div> + <div id="buttonbar"> + <ul> + '; + foreach (array_keys($adminmenu) as $key) { + $adminmenu_text .= (($currentoption == $key) ? '<li class="current">' : '<li>') . '<a href="' . $module_link . $adminmenu[$key]["link"] . '"><span>' . $adminmenu[$key]["title"] . '</span></a></li>'; + } + $adminmenu_text .= '<li><a href="' . XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $GLOBALS["xoopsModule"]->getVar("mid") . '"><span>' . _PREFERENCES . '</span></a></li>'; + $adminmenu_text .= ' + </ul> + </div> + <br style="clear:both;" />'; + + echo $adminmenu_text; +} + +ENDIF; +?> \ No newline at end of file Added: XoopsModules/profile/releases/1.53/profile/admin/index.html =================================================================== --- XoopsModules/profile/releases/1.53/profile/admin/index.html (rev 0) +++ XoopsModules/profile/releases/1.53/profile/admin/index.html 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/profile/releases/1.53/profile/admin/menu.php =================================================================== --- XoopsModules/profile/releases/1.53/profile/admin/menu.php (rev 0) +++ XoopsModules/profile/releases/1.53/profile/admin/menu.php 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1,31 @@ +<?php +/** + * Extended User Profile + * + * 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 XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: menu.php 2021 2008-08-31 02:02:45Z phppp $ + */ +$adminmenu[1]['title'] = _PROFILE_MI_USERS; +$adminmenu[1]['link'] = "admin/user.php"; +$adminmenu[2]['title'] = _PROFILE_MI_CATEGORIES; +$adminmenu[2]['link'] = "admin/category.php"; +$adminmenu[3]['title'] = _PROFILE_MI_FIELDS; +$adminmenu[3]['link'] = "admin/field.php"; +$adminmenu[4]['title'] = _PROFILE_MI_STEPS; +$adminmenu[4]['link'] = "admin/step.php"; +$adminmenu[5]['title'] = _PROFILE_MI_PERMISSIONS; +$adminmenu[5]['link'] = "admin/permissions.php"; + +?> \ No newline at end of file Added: XoopsModules/profile/releases/1.53/profile/admin/permissions.php =================================================================== --- XoopsModules/profile/releases/1.53/profile/admin/permissions.php (rev 0) +++ XoopsModules/profile/releases/1.53/profile/admin/permissions.php 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1,107 @@ +<?php +/** + * Extended User Profile + * + * 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 XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: permissions.php 2060 2008-09-06 05:16:10Z phppp $ + */ +include 'header.php'; +xoops_cp_header(); + +loadModuleAdminMenu(5, ""); +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : "edit"; + +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +$opform = new XoopsSimpleForm('', 'opform', 'permissions.php', "get"); +$op_select = new XoopsFormSelect("", 'op', $op); +$op_select->setExtra('onchange="document.forms.opform.submit()"'); +$op_select->addOption('visibility', _PROFILE_AM_PROF_VISIBLE); +$op_select->addOption('edit', _PROFILE_AM_PROF_EDITABLE); +$op_select->addOption('search', _PROFILE_AM_PROF_SEARCH); +$op_select->addOption('access', _PROFILE_AM_PROF_ACCESS); +$opform->addElement($op_select); +$opform->display(); + +$perm_desc = ""; +switch ($op) { +case "visibility": + redirect_header("visibility.php", 0, _PROFILE_AM_PROF_VISIBLE); + //header("Location: visibility.php"); + break; + +case "edit": + $title_of_form = _PROFILE_AM_PROF_EDITABLE; + $perm_name = "profile_edit"; + $restriction = "field_edit"; + $anonymous = false; + break; + +case "search": + $title_of_form = _PROFILE_AM_PROF_SEARCH; + $perm_name = "profile_search"; + $restriction = ""; + $anonymous = true; + break; + +case "access": + $title_of_form = _PROFILE_AM_PROF_ACCESS; + $perm_name = "profile_access"; + $perm_desc = _PROFILE_AM_PROF_ACCESS_DESC; + $restriction = ""; + $anonymous = true; + break; +} +$module_id = $xoopsModule->getVar('mid'); +include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php'; +$form = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name, $perm_desc, 'admin/permissions.php', $anonymous); + +if ($op == "access") { + $member_handler =& xoops_gethandler('member'); + $glist = $member_handler->getGroupList(); + foreach (array_keys($glist) as $i) { + if ($i != XOOPS_GROUP_ANONYMOUS) { + $form->addItem($i, $glist[$i]); + } + } + +} else { + $profile_handler =& xoops_getmodulehandler('profile'); + $fields = $profile_handler->loadFields(); + + if ($op != "search") { + foreach (array_keys($fields) as $i) { + if ($restriction == "" || $fields[$i]->getVar($restriction)) { + $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25)); + } + } + } else { + $searchable_types = array('textbox', + 'select', + 'radio', + 'yesno', + 'date', + 'datetime', + 'timezone', + 'language'); + foreach (array_keys($fields) as $i) { + if (in_array($fields[$i]->getVar('field_type'), $searchable_types)) { + $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25)); + } + } + } +} +$form->display(); +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/profile/releases/1.53/profile/admin/step.php =================================================================== --- XoopsModules/profile/releases/1.53/profile/admin/step.php (rev 0) +++ XoopsModules/profile/releases/1.53/profile/admin/step.php 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1,85 @@ +<?php +/** + * Extended User Profile + * + * 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 XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: step.php 2021 2008-08-31 02:02:45Z phppp $ + */ +include 'header.php'; +xoops_cp_header(); + +loadModuleAdminMenu(4, ""); + +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); + +$handler =& xoops_getmodulehandler('regstep'); +switch ($op) { + case "list": + $xoopsTpl->assign('steps', $handler->getObjects(null, true, false)); + $template_main = "profile_admin_steplist.html"; + break; + + case "new": + $obj =& $handler->create(); + include_once "../include/forms.php"; + $form = profile_getStepForm($obj);; + $form->display(); + break; + + case "edit": + $obj =& $handler->get($_REQUEST['id']); + include_once "../include/forms.php"; + $form = profile_getStepForm($obj);; + $form->display(); + break; + + case "save": + if (isset($_REQUEST['id'])) { + $obj =& $handler->get($_REQUEST['id']); + } else { + $obj =& $handler->create(); + } + $obj->setVar('step_name', $_REQUEST['step_name']); + $obj->setVar('step_order', $_REQUEST['step_order']); + $obj->setVar('step_desc', $_REQUEST['step_desc']); + $obj->setVar('step_save', $_REQUEST['step_save']); + if ($handler->insert($obj)) { + redirect_header('step.php', 3, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_STEP)); + } + echo $obj->getHtmlErrors(); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete": + $obj =& $handler->get($_REQUEST['id']); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if ($handler->delete($obj)) { + redirect_header('step.php', 3, sprintf(_PROFILE_AM_DELETEDSUCCESS, _PROFILE_AM_STEP)); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array('ok' => 1, 'id' => $_REQUEST['id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_PROFILE_AM_RUSUREDEL, $obj->getVar('step_name'))); + } + break; +} + +if (!empty($template_main)) { + $xoopsTpl->display("db:{$template_main}"); +} + +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/profile/releases/1.53/profile/admin/user.php =================================================================== --- XoopsModules/profile/releases/1.53/profile/admin/user.php (rev 0) +++ XoopsModules/profile/releases/1.53/profile/admin/user.php 2009-08-02 04:14:30 UTC (rev 3396) @@ -0,0 +1,215 @@ +<?php +/** + * Extended User Profile + * + * 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 XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: user.php 2206 2008-09-30 06:30:16Z phppp $ + */ +include 'header.php'; +xoops_cp_header(); + +loadModuleAdminMenu(1, ""); +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'list'; +if ($op == "editordelete") { + $op = isset($_REQUEST['delete']) ? "delete" : "edit"; +} +$handler =& xoops_gethandler('member'); + +switch($op) { + default: + case "list": + include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; + $form = new XoopsThemeForm(_PROFILE_AM_EDITUSER, 'form', 'user.php'); + $form->addElement(new XoopsFormSelectUser(_PROFILE_AM_SELECTUSER, 'id')); + $form->addElement(new XoopsFormHidden('op', 'editordelete')); + $button_tray = new XoopsFormElementTray(''); + $button_tray->addElement(new XoopsFormButton('', 'edit', _EDIT, 'submit')); + $button_tray->addElement(new XoopsFormButton('', 'delete', _DELETE, 'submit')); + $form->addElement($button_tray); + $form->display(); + + case "new": + xoops_loadLanguage("main", $xoopsModule->getVar('dirname', 'n')); + include_once '../include/forms.php'; + $obj =& $handler->createUser(); + $obj->setGroups(array(XOOPS_GROUP_USERS)); + $form = profile_getUserForm($obj); + $form->display(); + break; + + case "edit": + xoops_loadLanguage("main", $xoopsModule->getVar('dirname', 'n')); + $obj =& $handler->getUser($_REQUEST['id']); + if (in_array(XOOPS_GROUP_ADMIN, $obj->getGroups()) && !in_array(XOOPS_GROUP_ADMIN, $xoopsUser->getGroups())) { + // If not webmaster trying to edit a webmaster - disallow + redirect_header("user.php", 3, _US_NOEDITRIGHT); + } + include_once '../include/forms.php'; + $form = profile_getUserForm($obj); + $form->display(); + break; + + case "save": + xoops_loadLanguage("main", $xoopsModule->getVar('dirname', 'n')); + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('user.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + exit; + } + + // Dynamic fields + $profile_handler =& xoops_getmodulehandler('profile'); + // Get fields + $fields = $profile_handler->loadFields(); + $userfields = $profile_handler->getUserVars(); + // Get ids of fields that can be edited + $gperm_handler =& xoops_gethandler('groupperm'); + $editable_fields = $gperm_handler->getItemIds('profile_edit', $xoopsUser->getGroups(), $xoopsModule->getVar('mid')); + + $uid = empty($_POST['uid']) ? 0 : intval($_POST['uid']); + if (!empty($uid)) { + $user =& $handler->getUser($uid); + $profile = $profile_handler->get($uid); + if (!is_object($profile)) { + $profile = $profile_handler->create(); + $profile->setVar('profile_id', $uid); + } + } else { + $user =& $handler->createUser(); + $profile = $profile_handler->create(); + if (count($fields) > 0) { + foreach (array_keys($fields) as $i) { + $fieldname = $fields[$i]->getVar('field_name'); + if (in_array($fieldname, $userfields)) { + $default = $fields[$i]->getVar('field_default'); + if ($default === '' || $default === null) continue; + $user->setVar($fieldname, $default); + } + } + } + $user->setVar('user_regdate', time()); + $user->setVar('level', 1); + } + $myts =& MyTextSanitizer::getInstance(); + $user->setVar('uname', $_POST['uname']); + $user->setVar('email', trim($_POST['email'])); + if (isset($_POST['level']) && $user->getVar('level') != intval($_POST['level'])) { + $user->setVar('level', intval($_POST['level'])); + } + $password = $vpass = null; + if (!empty($_POST['password'])) { + $password = $myts->stripSlashesGPC(trim($_POST['password'])); + $vpass = @$myts->stripSlashesGPC(trim($_POST['vpass'])); + $user->setVar('pass', md5($password)); + } elseif ($user->isNew()) { + $password = $vpass = ''; + } + xoops_load("userUtility"); + $stop = XoopsUserUtility::validate($user, $password, $vpass); + + $errors = array(); + if ($stop != "") { + $errors[] = $stop; + } + + foreach (array_keys($fields) as $i) { + $fieldname = $fields[$i]->getVar('field_name'); + if (in_array($fields[$i]->getVar('field_id'), $editable_fields) && isset($_REQUEST[$fieldname])) { + if (in_array($fieldname, $userfields)) { + $value = $fields[$i]->getValueForSave($_REQUEST[$fieldname], $user->getVar($fieldname, 'n')); + $user->setVar($fieldname, $value); + } else { + $value = $fields[$i]->getValueForSave((isset($_REQUEST[$fieldname]) ? $_REQUEST[$fieldname] : ""), $profile->getVar($fieldname, 'n')); + $profile->setVar($fieldname, $value); + } + } + } + + $new_groups = isset($_POST['groups']) ? $_POST['groups'] : array(); + + if (count($errors) == 0) { + if ($handler->insertUser($user)) { + $profile->setVar('profile_id', $user->getVar('uid')); + $profile_handler->insert($profile); + include_once XOOPS_ROOT_PATH . "/modules/system/constants.php"; + if ($gperm_handler->checkRight("system_admin", XOOPS_SYSTEM_GROUP, $xoopsUser->getGroups(), 1)) { + //Update group memberships + $cur_groups = $user->getGroups(); + + $added_groups = array_diff($new_groups, $cur_groups); + $removed_groups = array_diff($cur_groups, $new_groups); + + if (count($added_groups) > 0) { + foreach ($added_groups as $groupid) { + $handler->addUserToGroup($groupid, $user->getVar('uid')); + } + } + if (count($removed_groups) > 0) { + foreach ($removed_groups as $groupid) { + $handler->removeUsersFromGroup($groupid, array($user->getVar('uid'))); + } + } + } + if ($user->isNew()) { + redirect_header('user.php', 2, _PROFILE_AM_USERCREATED, false); + } else { + redirect_header('user.php', 2, _US_PROFUPDATED, false); + } + } + } else { + foreach ($errors as $err) { + $user->setErrors($err); + } + } + $user->setGroups($new_groups); + include_once '../include/forms.php'; + echo $user->getHtmlErrors(); + $form = profile_getUserForm($user, $profile); + $form->display(); + break; + + case "delete": + if ($_REQUEST['id'] == $xoopsUser->getVar('uid')) { + redirect_header('user.php', 2, _PROFILE_AM_CANNOTDELETESELF); + } + $obj =& $handler->getUser($_REQUEST['id']); + $groups = $obj->getGroups(); + if (in_array(XOOPS_GROUP_ADMIN, $groups)) { + redirect_header('user.php', 3, _PROFILE_AM_CANNOTDELETEADMIN, false); + } + + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('user.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()), false); + } + $profile_handler = xoops_getmodulehandler('profile'); + $profile = $profile_handler->get($obj->getVar('uid')); + if (!$profile || $profile->isNew() || $profile_handler->delete($profile)) { + if ($handler->deleteUser($obj)) { + redirect_header('user.... [truncated message content] |
From: <be...@us...> - 2009-08-23 20:55:20
|
Revision: 3488 http://xoops.svn.sourceforge.net/xoops/?rev=3488&view=rev Author: beckmi Date: 2009-08-23 20:55:04 +0000 (Sun, 23 Aug 2009) Log Message: ----------- Adding TadGallery 1.3 Added Paths: ----------- XoopsModules/tadgallery/ XoopsModules/tadgallery/branches/ XoopsModules/tadgallery/releases/ XoopsModules/tadgallery/trunk/ XoopsModules/tadgallery/trunk/3d.php XoopsModules/tadgallery/trunk/admin/ XoopsModules/tadgallery/trunk/admin/autoupdate/ XoopsModules/tadgallery/trunk/admin/autoupdate/update1.php XoopsModules/tadgallery/trunk/admin/autoupdate/update2.php XoopsModules/tadgallery/trunk/admin/autoupdate/update3.php XoopsModules/tadgallery/trunk/admin/autoupdate/update4.php XoopsModules/tadgallery/trunk/admin/autoupdate/update5.php XoopsModules/tadgallery/trunk/admin/autoupdate/update6.php XoopsModules/tadgallery/trunk/admin/batch_tool.php XoopsModules/tadgallery/trunk/admin/cate.php XoopsModules/tadgallery/trunk/admin/form.php XoopsModules/tadgallery/trunk/admin/good.php XoopsModules/tadgallery/trunk/admin/index.html XoopsModules/tadgallery/trunk/admin/index.php XoopsModules/tadgallery/trunk/admin/menu.php XoopsModules/tadgallery/trunk/admin/update.php XoopsModules/tadgallery/trunk/author.php XoopsModules/tadgallery/trunk/blocks/ XoopsModules/tadgallery/trunk/blocks/index.html XoopsModules/tadgallery/trunk/blocks/mainfile.php XoopsModules/tadgallery/trunk/blocks/tadgallery_carousel.php XoopsModules/tadgallery/trunk/blocks/tadgallery_good.php XoopsModules/tadgallery/trunk/blocks/tadgallery_jquery.php XoopsModules/tadgallery/trunk/blocks/tadgallery_list.php XoopsModules/tadgallery/trunk/blocks/tadgallery_re_block.php XoopsModules/tadgallery/trunk/blocks/tadgallery_show.php XoopsModules/tadgallery/trunk/blocks/tadgallery_shuffle.php XoopsModules/tadgallery/trunk/blocks/tadgallery_slideshow.php XoopsModules/tadgallery/trunk/bubble.css XoopsModules/tadgallery/trunk/checklogin.php XoopsModules/tadgallery/trunk/checklogin20.php XoopsModules/tadgallery/trunk/class/ XoopsModules/tadgallery/trunk/class/bubble-tooltip.js XoopsModules/tadgallery/trunk/class/changes.txt XoopsModules/tadgallery/trunk/class/copy.js XoopsModules/tadgallery/trunk/class/copy.swf XoopsModules/tadgallery/trunk/class/dfgallery/ XoopsModules/tadgallery/trunk/class/dfgallery/df/ XoopsModules/tadgallery/trunk/class/dfgallery/df/Strippers/ XoopsModules/tadgallery/trunk/class/dfgallery/df/Strippers/Flickr.php XoopsModules/tadgallery/trunk/class/dfgallery/df/Strippers/Fotki.php XoopsModules/tadgallery/trunk/class/dfgallery/df/Strippers/ImageFetcher.php XoopsModules/tadgallery/trunk/class/dfgallery/df/Strippers/Photobucket.php XoopsModules/tadgallery/trunk/class/dfgallery/df/Strippers/Picasa.php XoopsModules/tadgallery/trunk/class/dfgallery/df/gallery.php XoopsModules/tadgallery/trunk/class/dfgallery/gallery.swf XoopsModules/tadgallery/trunk/class/dfgallery/gallery.xml XoopsModules/tadgallery/trunk/class/dfgallery/images/ XoopsModules/tadgallery/trunk/class/dfgallery/images/big/ XoopsModules/tadgallery/trunk/class/dfgallery/images/big/c1.jpg XoopsModules/tadgallery/trunk/class/dfgallery/images/big/c2.jpg XoopsModules/tadgallery/trunk/class/dfgallery/images/big/c3.jpg XoopsModules/tadgallery/trunk/class/dfgallery/images/big/c4.jpg XoopsModules/tadgallery/trunk/class/dfgallery/images/thumbs/ XoopsModules/tadgallery/trunk/class/dfgallery/images/thumbs/c1.jpg XoopsModules/tadgallery/trunk/class/dfgallery/images/thumbs/c2.jpg XoopsModules/tadgallery/trunk/class/dfgallery/images/thumbs/c3.jpg XoopsModules/tadgallery/trunk/class/dfgallery/images/thumbs/c4.jpg XoopsModules/tadgallery/trunk/class/dfgallery/index.html XoopsModules/tadgallery/trunk/class/dfgallery/manual/ XoopsModules/tadgallery/trunk/class/dfgallery/manual/images/ XoopsModules/tadgallery/trunk/class/dfgallery/manual/images/action_go.gif XoopsModules/tadgallery/trunk/class/dfgallery/manual/images/df_logo.gif XoopsModules/tadgallery/trunk/class/dfgallery/manual/images/gototop.gif XoopsModules/tadgallery/trunk/class/dfgallery/manual/images/headerstripe_loop.jpg XoopsModules/tadgallery/trunk/class/dfgallery/manual/images/index_clip_image001.gif XoopsModules/tadgallery/trunk/class/dfgallery/manual/images/main_tl.gif XoopsModules/tadgallery/trunk/class/dfgallery/manual/index.css XoopsModules/tadgallery/trunk/class/dfgallery/manual/index.html XoopsModules/tadgallery/trunk/class/edge/ XoopsModules/tadgallery/trunk/class/edge/cvi_edge_lib.js XoopsModules/tadgallery/trunk/class/edge/edge.js XoopsModules/tadgallery/trunk/class/edge/masks/ XoopsModules/tadgallery/trunk/class/edge/masks/2bit/ XoopsModules/tadgallery/trunk/class/edge/masks/2bit/crippleedge.gif XoopsModules/tadgallery/trunk/class/edge/masks/2bit/frizzedge.gif XoopsModules/tadgallery/trunk/class/edge/masks/2bit/softedge.gif XoopsModules/tadgallery/trunk/class/edge/masks/2bit/splatteredge.gif XoopsModules/tadgallery/trunk/class/edge/masks/2bit/waveedge.gif XoopsModules/tadgallery/trunk/class/edge/masks/8bit/ XoopsModules/tadgallery/trunk/class/edge/masks/8bit/crippleedge.png XoopsModules/tadgallery/trunk/class/edge/masks/8bit/frizzedge.png XoopsModules/tadgallery/trunk/class/edge/masks/8bit/softedge.png XoopsModules/tadgallery/trunk/class/edge/masks/8bit/splatteredge.png XoopsModules/tadgallery/trunk/class/edge/masks/8bit/waveedge.png XoopsModules/tadgallery/trunk/class/exif.php XoopsModules/tadgallery/trunk/class/form-field-tooltip.js XoopsModules/tadgallery/trunk/class/index.html XoopsModules/tadgallery/trunk/class/instant/ XoopsModules/tadgallery/trunk/class/instant/LICENSE.txt XoopsModules/tadgallery/trunk/class/instant/cvi_instant_lib.js XoopsModules/tadgallery/trunk/class/instant/images/ XoopsModules/tadgallery/trunk/class/instant/instant.js XoopsModules/tadgallery/trunk/class/jcarousel/ XoopsModules/tadgallery/trunk/class/jcarousel/changelog.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/ XoopsModules/tadgallery/trunk/class/jcarousel/examples/dynamic_ajax.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/dynamic_ajax.txt XoopsModules/tadgallery/trunk/class/jcarousel/examples/dynamic_ajax_php.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/dynamic_ajax_php.php XoopsModules/tadgallery/trunk/class/jcarousel/examples/dynamic_flickr_api.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/dynamic_flickr_api.php XoopsModules/tadgallery/trunk/class/jcarousel/examples/dynamic_flickr_feed.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/dynamic_flickr_feed.php XoopsModules/tadgallery/trunk/class/jcarousel/examples/dynamic_javascript.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/special_circular.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/special_easing.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/special_flexible.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/special_textscroller.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/special_textscroller.php XoopsModules/tadgallery/trunk/class/jcarousel/examples/special_thickbox.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/static_auto.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/static_callbacks.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/static_controls.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/static_simple.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/static_start.html XoopsModules/tadgallery/trunk/class/jcarousel/examples/static_vertical.html XoopsModules/tadgallery/trunk/class/jcarousel/images/ XoopsModules/tadgallery/trunk/class/jcarousel/images/arrow-down.gif XoopsModules/tadgallery/trunk/class/jcarousel/images/arrow-up.gif XoopsModules/tadgallery/trunk/class/jcarousel/images/loading-small.gif XoopsModules/tadgallery/trunk/class/jcarousel/images/loading-thickbox.gif XoopsModules/tadgallery/trunk/class/jcarousel/images/loading.gif XoopsModules/tadgallery/trunk/class/jcarousel/index.html XoopsModules/tadgallery/trunk/class/jcarousel/lib/ XoopsModules/tadgallery/trunk/class/jcarousel/lib/jquery-1.2.1.pack.js XoopsModules/tadgallery/trunk/class/jcarousel/lib/jquery.jcarousel.css XoopsModules/tadgallery/trunk/class/jcarousel/lib/jquery.jcarousel.js XoopsModules/tadgallery/trunk/class/jcarousel/lib/jquery.jcarousel.pack.js XoopsModules/tadgallery/trunk/class/jcarousel/lib/thickbox/ XoopsModules/tadgallery/trunk/class/jcarousel/lib/thickbox/thickbox.css XoopsModules/tadgallery/trunk/class/jcarousel/lib/thickbox/thickbox.js XoopsModules/tadgallery/trunk/class/jcarousel/skins/ XoopsModules/tadgallery/trunk/class/jcarousel/skins/ie7/ XoopsModules/tadgallery/trunk/class/jcarousel/skins/ie7/credits.txt XoopsModules/tadgallery/trunk/class/jcarousel/skins/ie7/loading-small.gif XoopsModules/tadgallery/trunk/class/jcarousel/skins/ie7/loading.gif XoopsModules/tadgallery/trunk/class/jcarousel/skins/ie7/loading_small.gif XoopsModules/tadgallery/trunk/class/jcarousel/skins/ie7/next-horizontal.gif XoopsModules/tadgallery/trunk/class/jcarousel/skins/ie7/prev-horizontal.gif XoopsModules/tadgallery/trunk/class/jcarousel/skins/ie7/skin.css XoopsModules/tadgallery/trunk/class/jcarousel/skins/sweetie/ XoopsModules/tadgallery/trunk/class/jcarousel/skins/sweetie/credits.txt XoopsModules/tadgallery/trunk/class/jcarousel/skins/sweetie/next-horizontal.gif XoopsModules/tadgallery/trunk/class/jcarousel/skins/sweetie/next-vertical.gif XoopsModules/tadgallery/trunk/class/jcarousel/skins/sweetie/prev-horizontal.gif XoopsModules/tadgallery/trunk/class/jcarousel/skins/sweetie/prev-vertical.gif XoopsModules/tadgallery/trunk/class/jcarousel/skins/tango/ XoopsModules/tadgallery/trunk/class/jcarousel/skins/tango/credits.txt XoopsModules/tadgallery/trunk/class/jcarousel/skins/tango/next-horizontal.png XoopsModules/tadgallery/trunk/class/jcarousel/skins/tango/next-vertical.png XoopsModules/tadgallery/trunk/class/jcarousel/skins/tango/prev-horizontal.png XoopsModules/tadgallery/trunk/class/jcarousel/skins/tango/prev-vertical.png XoopsModules/tadgallery/trunk/class/jcarousel/skins/tango/skin.css XoopsModules/tadgallery/trunk/class/jcarousel/style.css XoopsModules/tadgallery/trunk/class/jqshuffle.js XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/ XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/images/ XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/img/ XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/img/frame-black.gif XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/img/frame.gif XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/img/frame.png XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/img/next.gif XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/img/pause.gif XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/img/play.gif XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/img/previous.gif XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/index.htm XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/js/ XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/js/jquery.animated.innerfade.js XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/js/jquery.js XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/rien.gif XoopsModules/tadgallery/trunk/class/jquery.animated.innerfade/win_png.htc XoopsModules/tadgallery/trunk/class/jquery.autogrow.js XoopsModules/tadgallery/trunk/class/jquery.dimensions.js XoopsModules/tadgallery/trunk/class/jquery.dropshadow.js XoopsModules/tadgallery/trunk/class/jquery.form.js XoopsModules/tadgallery/trunk/class/jquery.js XoopsModules/tadgallery/trunk/class/jscroller.js XoopsModules/tadgallery/trunk/class/makers/ XoopsModules/tadgallery/trunk/class/makers/canon.php XoopsModules/tadgallery/trunk/class/makers/fujifilm.php XoopsModules/tadgallery/trunk/class/makers/gps.php XoopsModules/tadgallery/trunk/class/makers/nikon.php XoopsModules/tadgallery/trunk/class/makers/olympus.php XoopsModules/tadgallery/trunk/class/makers/sanyo.php XoopsModules/tadgallery/trunk/class/menu/ XoopsModules/tadgallery/trunk/class/menu/index.html XoopsModules/tadgallery/trunk/class/menu/js/ XoopsModules/tadgallery/trunk/class/menu/js/adminmenu.js XoopsModules/tadgallery/trunk/class/menu/js/adminmenu_src.js XoopsModules/tadgallery/trunk/class/menu/js/ie5.js XoopsModules/tadgallery/trunk/class/menu/js/index.html XoopsModules/tadgallery/trunk/class/menu/js/menu.css XoopsModules/tadgallery/trunk/class/menu/js/menuarrow1.gif XoopsModules/tadgallery/trunk/class/menu/js/menuarrow2.gif XoopsModules/tadgallery/trunk/class/menu/menu_function.php XoopsModules/tadgallery/trunk/class/mootools.js XoopsModules/tadgallery/trunk/class/piclens.js XoopsModules/tadgallery/trunk/class/reflex/ XoopsModules/tadgallery/trunk/class/reflex/LICENSE.txt XoopsModules/tadgallery/trunk/class/reflex/cvi_reflex_lib.js XoopsModules/tadgallery/trunk/class/reflex/images/ XoopsModules/tadgallery/trunk/class/reflex/index.html XoopsModules/tadgallery/trunk/class/reflex/reflex.js XoopsModules/tadgallery/trunk/class/rounded-corners.js XoopsModules/tadgallery/trunk/class/shadowbox/ XoopsModules/tadgallery/trunk/class/shadowbox/3d.html XoopsModules/tadgallery/trunk/class/shadowbox/COPYING XoopsModules/tadgallery/trunk/class/shadowbox/COPYING.LESSER XoopsModules/tadgallery/trunk/class/shadowbox/README XoopsModules/tadgallery/trunk/class/shadowbox/build/ XoopsModules/tadgallery/trunk/class/shadowbox/build/css/ XoopsModules/tadgallery/trunk/class/shadowbox/build/css/shadowbox-light.css XoopsModules/tadgallery/trunk/class/shadowbox/build/css/shadowbox.css XoopsModules/tadgallery/trunk/class/shadowbox/build/js/ XoopsModules/tadgallery/trunk/class/shadowbox/build/js/adapter/ XoopsModules/tadgallery/trunk/class/shadowbox/build/js/adapter/shadowbox-dojo.js XoopsModules/tadgallery/trunk/class/shadowbox/build/js/adapter/shadowbox-ext.js XoopsModules/tadgallery/trunk/class/shadowbox/build/js/adapter/shadowbox-jquery.js XoopsModules/tadgallery/trunk/class/shadowbox/build/js/adapter/shadowbox-mootools.js XoopsModules/tadgallery/trunk/class/shadowbox/build/js/adapter/shadowbox-prototype.js XoopsModules/tadgallery/trunk/class/shadowbox/build/js/adapter/shadowbox-yui.js XoopsModules/tadgallery/trunk/class/shadowbox/build/js/shadowbox.js XoopsModules/tadgallery/trunk/class/shadowbox/images/ XoopsModules/tadgallery/trunk/class/shadowbox/images/loading-light.gif XoopsModules/tadgallery/trunk/class/shadowbox/images/loading.gif XoopsModules/tadgallery/trunk/class/shadowbox/images/overlay-85.png XoopsModules/tadgallery/trunk/class/shadowbox/src/ XoopsModules/tadgallery/trunk/class/shadowbox/src/css/ XoopsModules/tadgallery/trunk/class/shadowbox/src/css/shadowbox-light.css XoopsModules/tadgallery/trunk/class/shadowbox/src/css/shadowbox.css XoopsModules/tadgallery/trunk/class/shadowbox/src/js/ XoopsModules/tadgallery/trunk/class/shadowbox/src/js/adapter/ XoopsModules/tadgallery/trunk/class/shadowbox/src/js/adapter/shadowbox-dojo.js XoopsModules/tadgallery/trunk/class/shadowbox/src/js/adapter/shadowbox-ext.js XoopsModules/tadgallery/trunk/class/shadowbox/src/js/adapter/shadowbox-jquery.js XoopsModules/tadgallery/trunk/class/shadowbox/src/js/adapter/shadowbox-mootools.js XoopsModules/tadgallery/trunk/class/shadowbox/src/js/adapter/shadowbox-prototype.js XoopsModules/tadgallery/trunk/class/shadowbox/src/js/adapter/shadowbox-yui.js XoopsModules/tadgallery/trunk/class/shadowbox/src/js/lib/ XoopsModules/tadgallery/trunk/class/shadowbox/src/js/lib/yui-utilities.js XoopsModules/tadgallery/trunk/class/shadowbox/src/js/shadowbox.js XoopsModules/tadgallery/trunk/class/slided/ XoopsModules/tadgallery/trunk/class/slided/LICENSE.txt XoopsModules/tadgallery/trunk/class/slided/cvi_slide_lib.js XoopsModules/tadgallery/trunk/class/slided/images/ XoopsModules/tadgallery/trunk/class/slided/index.html XoopsModules/tadgallery/trunk/class/slided/slided.js XoopsModules/tadgallery/trunk/class/slideshow.js XoopsModules/tadgallery/trunk/class/upload/ XoopsModules/tadgallery/trunk/class/upload/LICENSE XoopsModules/tadgallery/trunk/class/upload/class.upload.php XoopsModules/tadgallery/trunk/class/upload/index.html XoopsModules/tadgallery/trunk/class/upload/lang/ XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.de_DE.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.es_ES.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.fr_FR.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.it_IT.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.nl_NL.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.pl_PL.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.ro_RO.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.ru_RU.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.ru_RU.windows-1251.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.sv_SE.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.xx_XX.php XoopsModules/tadgallery/trunk/class/upload/lang/class.upload.zh_TW.php XoopsModules/tadgallery/trunk/class/upload/test.png XoopsModules/tadgallery/trunk/class/upload/watermark.png XoopsModules/tadgallery/trunk/comment_delete.php XoopsModules/tadgallery/trunk/comment_edit.php XoopsModules/tadgallery/trunk/comment_new.php XoopsModules/tadgallery/trunk/comment_post.php XoopsModules/tadgallery/trunk/comment_reply.php XoopsModules/tadgallery/trunk/demo.html XoopsModules/tadgallery/trunk/exif.php XoopsModules/tadgallery/trunk/favicon.ico XoopsModules/tadgallery/trunk/function.php XoopsModules/tadgallery/trunk/gallery.swf XoopsModules/tadgallery/trunk/gallery.xml XoopsModules/tadgallery/trunk/header.php XoopsModules/tadgallery/trunk/htaccess.zip XoopsModules/tadgallery/trunk/images/ XoopsModules/tadgallery/trunk/images/1leftarrow.gif XoopsModules/tadgallery/trunk/images/1rightarrow.gif XoopsModules/tadgallery/trunk/images/2leftarrow.gif XoopsModules/tadgallery/trunk/images/2rightarrow.gif XoopsModules/tadgallery/trunk/images/3d.png XoopsModules/tadgallery/trunk/images/PicLensButton.png XoopsModules/tadgallery/trunk/images/Thumbs.db XoopsModules/tadgallery/trunk/images/add.gif XoopsModules/tadgallery/trunk/images/back.png XoopsModules/tadgallery/trunk/images/bbg.jpg XoopsModules/tadgallery/trunk/images/bbg2.jpg XoopsModules/tadgallery/trunk/images/bg.gif XoopsModules/tadgallery/trunk/images/borders.gif XoopsModules/tadgallery/trunk/images/borders.png XoopsModules/tadgallery/trunk/images/bottom_left1.gif XoopsModules/tadgallery/trunk/images/bottom_left2.gif XoopsModules/tadgallery/trunk/images/bottom_left3.gif XoopsModules/tadgallery/trunk/images/bottom_left4.gif XoopsModules/tadgallery/trunk/images/bottom_right1.gif XoopsModules/tadgallery/trunk/images/bottom_right2.gif XoopsModules/tadgallery/trunk/images/bottom_right3.gif XoopsModules/tadgallery/trunk/images/bottom_right4.gif XoopsModules/tadgallery/trunk/images/box.gif XoopsModules/tadgallery/trunk/images/box.png XoopsModules/tadgallery/trunk/images/bubble_bottom.gif XoopsModules/tadgallery/trunk/images/bubble_middle.gif XoopsModules/tadgallery/trunk/images/bubble_top.gif XoopsModules/tadgallery/trunk/images/c_bl.gif XoopsModules/tadgallery/trunk/images/c_br.gif XoopsModules/tadgallery/trunk/images/c_tl.gif XoopsModules/tadgallery/trunk/images/c_tr.gif XoopsModules/tadgallery/trunk/images/del.gif XoopsModules/tadgallery/trunk/images/edit.gif XoopsModules/tadgallery/trunk/images/enable.gif XoopsModules/tadgallery/trunk/images/film.gif XoopsModules/tadgallery/trunk/images/film.ufo XoopsModules/tadgallery/trunk/images/folder_picture.png XoopsModules/tadgallery/trunk/images/forward.png XoopsModules/tadgallery/trunk/images/good.png XoopsModules/tadgallery/trunk/images/good_add.png XoopsModules/tadgallery/trunk/images/good_del.png XoopsModules/tadgallery/trunk/images/image.png XoopsModules/tadgallery/trunk/images/impress.png XoopsModules/tadgallery/trunk/images/index.html XoopsModules/tadgallery/trunk/images/indicator9mq.gif XoopsModules/tadgallery/trunk/images/logo.png XoopsModules/tadgallery/trunk/images/no_cover.png XoopsModules/tadgallery/trunk/images/no_hotlink.png XoopsModules/tadgallery/trunk/images/panel.jpg XoopsModules/tadgallery/trunk/images/piclen_logo.png XoopsModules/tadgallery/trunk/images/point1.gif XoopsModules/tadgallery/trunk/images/point2.gif XoopsModules/tadgallery/trunk/images/point3.gif XoopsModules/tadgallery/trunk/images/point4.gif XoopsModules/tadgallery/trunk/images/randr.png XoopsModules/tadgallery/trunk/images/sb.gif XoopsModules/tadgallery/trunk/images/sc.gif XoopsModules/tadgallery/trunk/images/sl.gif XoopsModules/tadgallery/trunk/images/sr.gif XoopsModules/tadgallery/trunk/images/tag.png XoopsModules/tadgallery/trunk/images/top_left1.gif XoopsModules/tadgallery/trunk/images/top_left2.gif XoopsModules/tadgallery/trunk/images/top_left3.gif XoopsModules/tadgallery/trunk/images/top_left4.gif XoopsModules/tadgallery/trunk/images/top_right1.gif XoopsModules/tadgallery/trunk/images/top_right2.gif XoopsModules/tadgallery/trunk/images/top_right3.gif XoopsModules/tadgallery/trunk/images/top_right4.gif XoopsModules/tadgallery/trunk/images/txt_bg.png XoopsModules/tadgallery/trunk/images/txt_bg.ufo XoopsModules/tadgallery/trunk/images/unable.gif XoopsModules/tadgallery/trunk/images/view_copy.png XoopsModules/tadgallery/trunk/images/view_copy_m.png XoopsModules/tadgallery/trunk/images/view_copy_s.png XoopsModules/tadgallery/trunk/images/view_del.gif XoopsModules/tadgallery/trunk/images/view_del.png XoopsModules/tadgallery/trunk/images/view_del2.png XoopsModules/tadgallery/trunk/images/view_dl.png XoopsModules/tadgallery/trunk/images/view_edit.png XoopsModules/tadgallery/trunk/images/view_exif.png XoopsModules/tadgallery/trunk/images/view_lock.png XoopsModules/tadgallery/trunk/import.php XoopsModules/tadgallery/trunk/include/ XoopsModules/tadgallery/trunk/include/onInstall.php XoopsModules/tadgallery/trunk/include/onUninstall.php XoopsModules/tadgallery/trunk/include/onUpdate.php XoopsModules/tadgallery/trunk/include/search.php XoopsModules/tadgallery/trunk/index.php XoopsModules/tadgallery/trunk/language/ XoopsModules/tadgallery/trunk/language/english/ XoopsModules/tadgallery/trunk/language/english/admin.php XoopsModules/tadgallery/trunk/language/english/blocks.php XoopsModules/tadgallery/trunk/language/english/index.html XoopsModules/tadgallery/trunk/language/english/main.php XoopsModules/tadgallery/trunk/language/english/modinfo.php XoopsModules/tadgallery/trunk/language/index.html XoopsModules/tadgallery/trunk/language/tchinese/ XoopsModules/tadgallery/trunk/language/tchinese/admin.php XoopsModules/tadgallery/trunk/language/tchinese/blocks.php XoopsModules/tadgallery/trunk/language/tchinese/index.html XoopsModules/tadgallery/trunk/language/tchinese/main.php XoopsModules/tadgallery/trunk/language/tchinese/modinfo.php XoopsModules/tadgallery/trunk/language/tchinese_utf8/ XoopsModules/tadgallery/trunk/language/tchinese_utf8/admin.php XoopsModules/tadgallery/trunk/language/tchinese_utf8/blocks.php XoopsModules/tadgallery/trunk/language/tchinese_utf8/index.html XoopsModules/tadgallery/trunk/language/tchinese_utf8/main.php XoopsModules/tadgallery/trunk/language/tchinese_utf8/modinfo.php XoopsModules/tadgallery/trunk/module.css XoopsModules/tadgallery/trunk/module.php XoopsModules/tadgallery/trunk/slideshow.php XoopsModules/tadgallery/trunk/sql/ XoopsModules/tadgallery/trunk/sql/index.html XoopsModules/tadgallery/trunk/sql/mysql.sql XoopsModules/tadgallery/trunk/templates/ XoopsModules/tadgallery/trunk/templates/author_tpl.html XoopsModules/tadgallery/trunk/templates/blocks/ XoopsModules/tadgallery/trunk/templates/blocks/index.html XoopsModules/tadgallery/trunk/templates/blocks/tadgallery_carousel.html XoopsModules/tadgallery/trunk/templates/blocks/tadgallery_good.html XoopsModules/tadgallery/trunk/templates/blocks/tadgallery_jquery.html XoopsModules/tadgallery/trunk/templates/blocks/tadgallery_list.html XoopsModules/tadgallery/trunk/templates/blocks/tadgallery_re.html XoopsModules/tadgallery/trunk/templates/blocks/tadgallery_show.html XoopsModules/tadgallery/trunk/templates/blocks/tadgallery_shuffle.html XoopsModules/tadgallery/trunk/templates/blocks/tadgallery_slideshow.html XoopsModules/tadgallery/trunk/templates/index.html XoopsModules/tadgallery/trunk/templates/index_tpl.html XoopsModules/tadgallery/trunk/templates/show_tpl.html XoopsModules/tadgallery/trunk/templates/slideshow.html XoopsModules/tadgallery/trunk/templates/view_tpl.html XoopsModules/tadgallery/trunk/uploads.php XoopsModules/tadgallery/trunk/view.php XoopsModules/tadgallery/trunk/xoops2_mod_tadgallery_1.3_tad.zip XoopsModules/tadgallery/trunk/xoops_version.php XoopsModules/tadgallery/trunk/xppw.php Added: XoopsModules/tadgallery/trunk/3d.php =================================================================== --- XoopsModules/tadgallery/trunk/3d.php (rev 0) +++ XoopsModules/tadgallery/trunk/3d.php 2009-08-23 20:55:04 UTC (rev 3488) @@ -0,0 +1,502 @@ +<?php +include_once "header.php"; +$csn=intval($_GET['csn']); + +if(!empty($csn)){ + $ok_cat=chk_cate_power(); + if(!in_array($csn,$ok_cat)){ + $cate_option=get_tad_gallery_cate_option(0,0,$csn); + $cate=get_tad_gallery_cate($csn); + $select="<select onChange=\"window.location.href='{$_SERVER['PHP_SELF']}?csn=' + this.value\"> + $cate_option + </select>"; + echo div_3d(_TADGAL_NO_POWER_TITLE,sprintf(_TADGAL_NO_POWER_CONTENT,$cate['title'],$select),"corners"); + exit; + } +} + +$sql = "select a.sn,a.csn,a.title,a.description,a.filename,a.dir,a.post_date,a.counter from ".$xoopsDB->prefix("tad_gallery")." as a , ".$xoopsDB->prefix("tad_gallery_cate")." as b where a.csn=b.csn and a.csn='{$csn}' and b.passwd='{$_SESSION['tadgallery'][$csn]}'"; +$result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); +$list=""; +while(list($sn,$csn,$title,$description,$filename,$dir,$post_date,$counter)=$xoopsDB->fetchRow($result)){ + $list.= "<a rel='".get_pic_url($dir,$sn,$filename,"m")."' title='{$title}' />$description</a>"; +} +?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> +<title>Theories of mind - Interactive DHTML art-demos</title> +<meta name="Author" content="Gerard Ferrandez at http://www.dhteumeuleu.com"> +<meta http-equiv="imagetoolbar" content="no"> +<style type="text/css"> + html { + overflow: hidden; + } + body { + margin: 0px; + padding: 0px; + background: #000; + width: 100%; + height: 100%; + } + #imageFlow { + position: absolute; + width: 100%; + height: 80%; + left: 0%; + top: 10%; + background: #000; + } + #imageFlow .diapo { + position: absolute; + left: -1000px; + cursor: pointer; + -ms-interpolation-mode: nearest-neighbor; + } + #imageFlow .link { + border: dotted #fff 1px; + margin-left: -1px; + margin-bottom: -1px; + } + #imageFlow .bank { + visibility: hidden; + } + #imageFlow .top { + position: absolute; + width: 100%; + height: 40%; + background: #222; + } + #imageFlow .text { + position: absolute; + left: 0px; + width: 100%; + bottom: 16%; + text-align: center; + color: #FFF; + font-family: verdana, arial, Helvetica, sans-serif; + z-index: 1000; + } + #imageFlow .title { + font-size: 0.9em; + font-weight: bold; + } + #imageFlow .legend { + font-size: 0.8em; + } + #imageFlow .scrollbar { + position: absolute; + left: 10%; + bottom: 10%; + width: 80%; + height: 16px; + z-index: 1000; + } + #imageFlow .track { + position: absolute; + left: 1%; + width: 98%; + height: 16px; + filter: alpha(opacity=30); + opacity: 0.3; + } + #imageFlow .arrow-left { + position: absolute; + } + #imageFlow .arrow-right { + position: absolute; + right: 0px; + } + #imageFlow .bar { + position: absolute; + height: 16px; + left: 25px; + } +</style> + +<script type="text/javascript"> +/* + ======================================================== + script: image-flow + author: Gerard Ferrandez - [Ge1doot] + date: March 15, 2008 + site: http://www.dhteumeuleu.com + license: CC-BY-NC - do not remove this notice + ======================================================== +*/ + +var imf = function () { + /* //////////// ==== private methods ==== //////////// */ + var lf = 0; + var instances = []; + /* ===== custom getElementsByClass ==== */ + function getElementsByClass (object, tag, className) { + var o = object.getElementsByTagName(tag); + for ( var i = 0, n = o.length, ret = []; i < n; i++) + if (o[i].className == className) ret.push(o[i]); + if (ret.length == 1) ret = ret[0]; + return ret; + } + /* ===== crossbrowsers addEvent ==== */ + function addEvent (o, e, f) { + if (window.addEventListener) o.addEventListener(e, f, false); + else if (window.attachEvent) r = o.attachEvent('on' + e, f); + } + /* ===== create image reflexion ==== */ + function createReflexion (cont, img) { + var flx = false; + if (document.createElement("canvas").getContext) { + /* ---- canvas ---- */ + flx = document.createElement("canvas"); + flx.width = img.width; + flx.height = img.height; + var context = flx.getContext("2d"); + context.translate(0, img.height); + context.scale(1, -1); + context.drawImage(img, 0, 0, img.width, img.height); + context.globalCompositeOperation = "destination-out"; + var gradient = context.createLinearGradient(0, 0, 0, img.height * 2); + gradient.addColorStop(1, "rgba(255, 255, 255, 0)"); + gradient.addColorStop(0, "rgba(255, 255, 255, 1)"); + context.fillStyle = gradient; + context.fillRect(0, 0, img.width, img.height * 2); + } else { + /* ---- DXImageTransform ---- */ + flx = document.createElement('img'); + flx.src = img.src; + flx.style.filter = 'flipv progid:DXImageTransform.Microsoft.Alpha(' + + 'opacity=50, style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy=' + + (img.height * .25) + ')'; + } + /* ---- insert Reflexion ---- */ + flx.style.position = 'absolute'; + flx.style.left = '-1000px'; + cont.appendChild(flx); + return flx; + } + /* //////////// ==== ImageFlow Constructor ==== //////////// */ + function ImageFlow(oCont, size, zoom, border) { + this.diapos = []; + this.scr = false; + this.size = size; + this.zoom = zoom; + this.bdw = border; + this.oCont = oCont; + this.oc = document.getElementById(oCont); + this.scrollbar = getElementsByClass(this.oc, 'div', 'scrollbar'); + this.text = getElementsByClass(this.oc, 'div', 'text'); + this.title = getElementsByClass(this.text, 'div', 'title'); + this.legend = getElementsByClass(this.text, 'div', 'legend'); + this.bar = getElementsByClass(this.oc, 'img', 'bar'); + this.arL = getElementsByClass(this.oc, 'img', 'arrow-left'); + this.arR = getElementsByClass(this.oc, 'img', 'arrow-right'); + this.bw = this.bar.width; + this.alw = this.arL.width - 5; + this.arw = this.arR.width - 5; + this.bar.parent = this.oc.parent = this; + this.arL.parent = this.arR.parent = this; + this.view = this.back = -1; + this.resize(); + this.oc.onselectstart = function () { return false; } + /* ---- create images ---- */ + var img = getElementsByClass(this.oc, 'div', 'bank').getElementsByTagName('a'); + this.NF = img.length; + for (var i = 0, o; o = img[i]; i++) { + this.diapos[i] = new Diapo(this, i, + o.rel, + o.title || '- ' + i + ' -', + o.innerHTML || o.rel, + o.href || '', + o.target || '_self' + ); + } + /* ==== add mouse wheel events ==== */ + if (window.addEventListener) + this.oc.addEventListener('DOMMouseScroll', function(e) { + this.parent.scroll(-e.detail); + }, false); + else this.oc.onmousewheel = function () { + this.parent.scroll(event.wheelDelta); + } + /* ==== scrollbar drag N drop ==== */ + this.bar.onmousedown = function (e) { + if (!e) e = window.event; + var scl = e.screenX - this.offsetLeft; + var self = this.parent; + /* ---- move bar ---- */ + this.parent.oc.onmousemove = function (e) { + if (!e) e = window.event; + self.bar.style.left = Math.round(Math.min((self.ws - self.arw - self.bw), Math.max(self.alw, e.screenX - scl))) + 'px'; + self.view = Math.round(((e.screenX - scl) ) / (self.ws - self.alw - self.arw - self.bw) * self.NF); + if (self.view != self.back) self.calc(); + return false; + } + /* ---- release scrollbar ---- */ + this.parent.oc.onmouseup = function (e) { + self.oc.onmousemove = null; + return false; + } + return false; + } + /* ==== right arrow ==== */ + this.arR.onclick = this.arR.ondblclick = function () { + if (this.parent.view < this.parent.NF - 1) + this.parent.calc(1); + } + /* ==== Left arrow ==== */ + this.arL.onclick = this.arL.ondblclick = function () { + if (this.parent.view > 0) + this.parent.calc(-1); + } + } + /* //////////// ==== ImageFlow prototype ==== //////////// */ + ImageFlow.prototype = { + /* ==== targets ==== */ + calc : function (inc) { + if (inc) this.view += inc; + var tw = 0; + var lw = 0; + var o = this.diapos[this.view]; + if (o && o.loaded) { + /* ---- reset ---- */ + var ob = this.diapos[this.back]; + if (ob && ob != o) { + ob.img.className = 'diapo'; + ob.z1 = 1; + } + /* ---- update legend ---- */ + this.title.replaceChild(document.createTextNode(o.title), this.title.firstChild); + this.legend.replaceChild(document.createTextNode(o.text), this.legend.firstChild); + /* ---- update hyperlink ---- */ + if (o.url) { + o.img.className = 'diapo link'; + window.status = 'hyperlink: ' + o.url; + } else { + o.img.className = 'diapo'; + window.status = ''; + } + /* ---- calculate target sizes & positions ---- */ + o.w1 = Math.min(o.iw, this.wh * .5) * o.z1; + var x0 = o.x1 = (this.wh * .5) - (o.w1 * .5); + var x = x0 + o.w1 + this.bdw; + for (var i = this.view + 1, o; o = this.diapos[i]; i++) { + if (o.loaded) { + o.x1 = x; + o.w1 = (this.ht / o.r) * this.size; + x += o.w1 + this.bdw; + tw += o.w1 + this.bdw; + } + } + x = x0 - this.bdw; + for (var i = this.view - 1, o; o = this.diapos[i]; i--) { + if (o.loaded) { + o.w1 = (this.ht / o.r) * this.size; + o.x1 = x - o.w1; + x -= o.w1 + this.bdw; + tw += o.w1 + this.bdw; + lw += o.w1 + this.bdw; + } + } + /* ---- move scrollbar ---- */ + if (!this.scr && tw) { + var r = (this.ws - this.alw - this.arw - this.bw) / tw; + this.bar.style.left = Math.round(this.alw + lw * r) + 'px'; + } + /* ---- save preview view ---- */ + this.back = this.view; + } + }, + /* ==== mousewheel scrolling ==== */ + scroll : function (sc) { + if (sc < 0) { + if (this.view < this.NF - 1) this.calc(1); + } else { + if (this.view > 0) this.calc(-1); + } + }, + /* ==== resize ==== */ + resize : function () { + this.wh = this.oc.clientWidth; + this.ht = this.oc.clientHeight; + this.ws = this.scrollbar.offsetWidth; + this.calc(); + this.run(true); + }, + /* ==== move all images ==== */ + run : function (res) { + var i = this.NF; + while (i--) this.diapos[i].move(res); + } + } + /* //////////// ==== Diapo Constructor ==== //////////// */ + Diapo = function (parent, N, src, title, text, url, target) { + this.parent = parent; + this.loaded = false; + this.title = title; + this.text = text; + this.url = url; + this.target = target; + this.N = N; + this.img = document.createElement('img'); + this.img.src = src; + this.img.parent = this; + this.img.className = 'diapo'; + this.x0 = this.parent.oc.clientWidth; + this.x1 = this.x0; + this.w0 = 0; + this.w1 = 0; + this.z1 = 1; + this.img.parent = this; + this.img.onclick = function() { this.parent.click(); } + this.parent.oc.appendChild(this.img); + /* ---- display external link ---- */ + if (url) { + this.img.onmouseover = function () { this.className = 'diapo link'; } + this.img.onmouseout = function () { this.className = 'diapo'; } + } + } + /* //////////// ==== Diapo prototype ==== //////////// */ + Diapo.prototype = { + /* ==== HTML rendering ==== */ + move : function (res) { + if (this.loaded) { + var sx = this.x1 - this.x0; + var sw = this.w1 - this.w0; + if (Math.abs(sx) > 2 || Math.abs(sw) > 2 || res) { + /* ---- paint only when moving ---- */ + this.x0 += sx * .1; + this.w0 += sw * .1; + if (this.x0 < this.parent.wh && this.x0 + this.w0 > 0) { + /* ---- paint only visible images ---- */ + this.visible = true; + var o = this.img.style; + var h = this.w0 * this.r; + /* ---- diapo ---- */ + o.left = Math.round(this.x0) + 'px'; + o.bottom = Math.floor(this.parent.ht * .25) + 'px'; + o.width = Math.round(this.w0) + 'px'; + o.height = Math.round(h) + 'px'; + /* ---- reflexion ---- */ + if (this.flx) { + var o = this.flx.style; + o.left = Math.round(this.x0) + 'px'; + o.top = Math.ceil(this.parent.ht * .75 + 1) + 'px'; + o.width = Math.round(this.w0) + 'px'; + o.height = Math.round(h) + 'px'; + } + } else { + /* ---- disable invisible images ---- */ + if (this.visible) { + this.visible = false; + this.img.style.width = '0px'; + if (this.flx) this.flx.style.width = '0px'; + } + } + } + } else { + /* ==== image onload ==== */ + if (this.img.complete && this.img.width) { + /* ---- get size image ---- */ + this.iw = this.img.width; + this.ih = this.img.height; + this.r = this.ih / this.iw; + this.loaded = true; + /* ---- create reflexion ---- */ + this.flx = createReflexion(this.parent.oc, this.img); + if (this.parent.view < 0) this.parent.view = this.N; + this.parent.calc(); + } + } + }, + /* ==== diapo onclick ==== */ + click : function () { + if (this.parent.view == this.N) { + /* ---- click on zoomed diapo ---- */ + if (this.url) { + /* ---- open hyperlink ---- */ + window.open(this.url, this.target); + } else { + /* ---- zoom in/out ---- */ + this.z1 = this.z1 == 1 ? this.parent.zoom : 1; + this.parent.calc(); + } + } else { + /* ---- select diapo ---- */ + this.parent.view = this.N; + this.parent.calc(); + } + return false; + } + } + /* //////////// ==== public methods ==== //////////// */ + return { + /* ==== initialize script ==== */ + create : function (div, size, zoom, border) { + /* ---- instanciate imageFlow ---- */ + var load = function () { + var loaded = false; + var i = instances.length; + while (i--) if (instances[i].oCont == div) loaded = true; + if (!loaded) { + /* ---- push new imageFlow instance ---- */ + instances.push( + new ImageFlow(div, size, zoom, border) + ); + /* ---- init script (once) ---- */ + if (!imf.initialized) { + imf.initialized = true; + /* ---- window resize event ---- */ + addEvent(window, 'resize', function () { + var i = instances.length; + while (i--) instances[i].resize(); + }); + /* ---- stop drag N drop ---- */ + addEvent(document.getElementById(div), 'mouseout', function (e) { + if (!e) e = window.event; + var tg = e.relatedTarget || e.toElement; + if (tg && tg.tagName == 'HTML') { + var i = instances.length; + while (i--) instances[i].oc.onmousemove = null; + } + return false; + }); + /* ---- set interval loop ---- */ + setInterval(function () { + var i = instances.length; + while (i--) instances[i].run(); + }, 16); + } + } + } + /* ---- window onload event ---- */ + addEvent(window, 'load', function () { load(); }); + } + } +}(); + +/* ==== create imageFlow ==== */ +// div ID , size, zoom, border +imf.create("imageFlow", 0.1, 1, 10); + +</script> +</head> + +<body> + <div id="imageFlow"> + <div class="bank"> + <?php echo $list;?> + </div> + + <div class="text"> + <div class="title">Loading</div> + <div class="legend">Please wait...</div> + </div> + <div class="scrollbar"> + <img class="track" src="images/sb.gif" alt=""> + <img class="arrow-left" src="images/sl.gif" alt=""> + <img class="arrow-right" src="images/sr.gif" alt=""> + <img class="bar" src="images/sc.gif" alt=""> + </div> + </div> +</body> +</html> \ No newline at end of file Added: XoopsModules/tadgallery/trunk/admin/autoupdate/update1.php =================================================================== --- XoopsModules/tadgallery/trunk/admin/autoupdate/update1.php (rev 0) +++ XoopsModules/tadgallery/trunk/admin/autoupdate/update1.php 2009-08-23 20:55:04 UTC (rev 3488) @@ -0,0 +1,30 @@ +<?php +include_once "../../../../mainfile.php"; + +if($_POST['op']=="GO"){ + start_update1(); +} + +$ver="0.9 -> 1.0"; +$title=_MA_GAL_AUTOUPDATE1; +$ok=update_chk1(); + + +function update_chk1(){ + global $xoopsDB; + $sql="select count(`mode`) from ".$xoopsDB->prefix("tad_gallery_cate"); + $result=$xoopsDB->query($sql); + if(empty($result)) return false; + return true; +} + + +function start_update1(){ + global $xoopsDB; + $sql="ALTER TABLE ".$xoopsDB->prefix("tad_gallery_cate")." ADD `mode` varchar(255) NOT NULL"; + $xoopsDB->queryF($sql) or redirect_header(XOOPS_URL,3, mysql_error()); + + header("location:{$_SERVER["HTTP_REFERER"]}"); + exit; +} +?> Added: XoopsModules/tadgallery/trunk/admin/autoupdate/update2.php =================================================================== --- XoopsModules/tadgallery/trunk/admin/autoupdate/update2.php (rev 0) +++ XoopsModules/tadgallery/trunk/admin/autoupdate/update2.php 2009-08-23 20:55:04 UTC (rev 3488) @@ -0,0 +1,51 @@ +<?php +include_once "../../../../mainfile.php"; +include_once "../../function.php"; + +if($_POST['op']=="GO"){ + start_update2(); +} + +$ver="0.9 -> 1.0"; +$title=_MA_GAL_AUTOUPDATE2; +$ok=update_chk2(); + + +function update_chk2(){ + global $xoopsDB; + if(is_dir(_TADGAL_UP_FILE_DIR."small") and is_dir(_TADGAL_UP_FILE_DIR."medium")){ + return true; + } + return false; +} + + +function start_update2(){ + global $xoopsDB; + + //找出原始上傳檔的日期資料夾 + if ($dh = opendir(_TADGAL_UP_FILE_DIR)) { + //$file=日期資料夾 + while (($file = readdir($dh)) !== false) { + if(substr($file,0,1)!="2")continue; + if(is_dir(_TADGAL_UP_FILE_DIR.$file)){ + //開啟日期資料夾,找出裡頭的相片 + if ($dh2 = opendir(_TADGAL_UP_FILE_DIR.$file)) { + while (($file2 = readdir($dh2)) !== false) { + if(substr($file2,0,1)==".")continue; + if(eregi('_s_', $file2)){ + rename(_TADGAL_UP_FILE_DIR.$file."/".$file2,_TADGAL_UP_FILE_DIR."small/{$file}/{$file2}"); + } + if(eregi('_m_', $file2)){ + rename(_TADGAL_UP_FILE_DIR.$file."/".$file2,_TADGAL_UP_FILE_DIR."medium/{$file}/{$file2}"); + } + } + } + } + } + closedir($dh); + } + header("location:{$_SERVER["HTTP_REFERER"]}"); + exit; +} +?> Added: XoopsModules/tadgallery/trunk/admin/autoupdate/update3.php =================================================================== --- XoopsModules/tadgallery/trunk/admin/autoupdate/update3.php (rev 0) +++ XoopsModules/tadgallery/trunk/admin/autoupdate/update3.php 2009-08-23 20:55:04 UTC (rev 3488) @@ -0,0 +1,30 @@ +<?php +include_once "../../../../mainfile.php"; + +if($_POST['op']=="GO"){ + start_update3(); +} + +$ver="1.2 -> 1.3"; +$title=_MA_GAL_AUTOUPDATE3; +$ok=update_chk3(); + + +function update_chk3(){ + global $xoopsDB; + $sql="select count(`show_mode`) from ".$xoopsDB->prefix("tad_gallery_cate"); + $result=$xoopsDB->query($sql); + if(empty($result)) return false; + return true; +} + + +function start_update3(){ + global $xoopsDB; + $sql="ALTER TABLE ".$xoopsDB->prefix("tad_gallery_cate")." ADD `show_mode` varchar(255) NOT NULL"; + $xoopsDB->queryF($sql) or redirect_header(XOOPS_URL,3, mysql_error()); + + header("location:{$_SERVER["HTTP_REFERER"]}"); + exit; +} +?> Added: XoopsModules/tadgallery/trunk/admin/autoupdate/update4.php =================================================================== --- XoopsModules/tadgallery/trunk/admin/autoupdate/update4.php (rev 0) +++ XoopsModules/tadgallery/trunk/admin/autoupdate/update4.php 2009-08-23 20:55:04 UTC (rev 3488) @@ -0,0 +1,30 @@ +<?php +include_once "../../../../mainfile.php"; + +if($_POST['op']=="GO"){ + start_update4(); +} + +$ver="1.2 -> 1.3"; +$title=_MA_GAL_AUTOUPDATE4; +$ok=update_chk4(); + + +function update_chk4(){ + global $xoopsDB; + $sql="select count(`cover`) from ".$xoopsDB->prefix("tad_gallery_cate"); + $result=$xoopsDB->query($sql); + if(empty($result)) return false; + return true; +} + + +function start_update4(){ + global $xoopsDB; + $sql="ALTER TABLE ".$xoopsDB->prefix("tad_gallery_cate")." ADD `cover` varchar(255) NOT NULL"; + $xoopsDB->queryF($sql) or redirect_header(XOOPS_URL,3, mysql_error()); + + header("location:{$_SERVER["HTTP_REFERER"]}"); + exit; +} +?> Added: XoopsModules/tadgallery/trunk/admin/autoupdate/update5.php =================================================================== --- XoopsModules/tadgallery/trunk/admin/autoupdate/update5.php (rev 0) +++ XoopsModules/tadgallery/trunk/admin/autoupdate/update5.php 2009-08-23 20:55:04 UTC (rev 3488) @@ -0,0 +1,30 @@ +<?php +include_once "../../../../mainfile.php"; + +if($_POST['op']=="GO"){ + start_update5(); +} + +$ver="1.2 -> 1.3"; +$title=_MA_GAL_AUTOUPDATE5; +$ok=update_chk5(); + + +function update_chk5(){ + global $xoopsDB; + $sql="select count(`no_hotlink`) from ".$xoopsDB->prefix("tad_gallery_cate"); + $result=$xoopsDB->query($sql); + if(empty($result)) return false; + return true; +} + + +function start_update5(){ + global $xoopsDB; + $sql="ALTER TABLE ".$xoopsDB->prefix("tad_gallery_cate")." ADD `no_hotlink` varchar(255) NOT NULL"; + $xoopsDB->queryF($sql) or redirect_header(XOOPS_URL,3, mysql_error()); + + header("location:{$_SERVER["HTTP_REFERER"]}"); + exit; +} +?> Added: XoopsModules/tadgallery/trunk/admin/autoupdate/update6.php =================================================================== --- XoopsModules/tadgallery/trunk/admin/autoupdate/update6.php (rev 0) +++ XoopsModules/tadgallery/trunk/admin/autoupdate/update6.php 2009-08-23 20:55:04 UTC (rev 3488) @@ -0,0 +1,30 @@ +<?php +include_once "../../../../mainfile.php"; + +if($_POST['op']=="GO"){ + start_update6(); +} + +$ver="1.2 -> 1.3"; +$title=_MA_GAL_AUTOUPDATE6; +$ok=update_chk6(); + + +function update_chk6(){ + global $xoopsDB; + $sql="select count(`uid`) from ".$xoopsDB->prefix("tad_gallery_cate"); + $result=$xoopsDB->query($sql); + if(empty($result)) return false; + return true; +} + + +function start_update6(){ + global $xoopsDB; + $sql="ALTER TABLE ".$xoopsDB->prefix("tad_gallery_cate")." ADD `uid` smallint(5) NOT NULL"; + $xoopsDB->queryF($sql) or redirect_header(XOOPS_URL,3, mysql_error()); + + header("location:{$_SERVER["HTTP_REFERER"]}"); + exit; +} +?> Added: XoopsModules/tadgallery/trunk/admin/batch_tool.php =================================================================== --- XoopsModules/tadgallery/trunk/admin/batch_tool.php (rev 0) +++ XoopsModules/tadgallery/trunk/admin/batch_tool.php 2009-08-23 20:55:04 UTC (rev 3488) @@ -0,0 +1,237 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 tad \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-03-23 +// $Id: batch_tool.php,v 1.1 2008/05/05 03:21:15 tad Exp $ +// ------------------------------------------------------------------------- // + +/*-----------\xA4ޤJ\xC0ɮװ\xCF--------------*/ +include "../../../include/cp_header.php"; +include "../function.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; + +/*-----------function\xB0\xCF--------------*/ +//\xA6C\xA5X\xA9Ҧ\xB3tad_gallery\xB8\xEA\xAE\xC6 +function list_tad_gallery($show_function=1){ + global $xoopsDB,$xoopsModule,$xoopsModuleConfig; + $MDIR=$xoopsModule->getVar('dirname'); + + $order=(empty($_SESSION['gallery_order_mode']))?"filename":$_SESSION['gallery_order_mode']; + + $sql = "select sn,csn,title,filename,size,width,height,dir,uid,post_date,counter,good from ".$xoopsDB->prefix("tad_gallery")." where csn='{$_GET['csn']}' order by $order"; + + //PageBar(\xB8\xEA\xAEƼ\xC6, \xA8C\xAD\xB6\xC5\xE3\xA5ܴX\xB5\xA7\xB8\xEA\xAE\xC6, \xB3̦h\xC5\xE3\xA5ܴX\xADӭ\xB6\xBCƿﶵ); + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + $total=$xoopsDB->getRowsNum($result); + + $thumbnail_number=$xoopsModuleConfig['thumbnail_number']*2; + $navbar = new PageBar($total, $thumbnail_number, 10); + $mybar = $navbar->makeBar(); + $bar= sprintf(_BP_TOOLBAR,$mybar['total'],$mybar['current'])."{$mybar['left']}{$mybar['center']}{$mybar['right']}"; + $sql.=$mybar['sql']; + + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + + $cate_option=get_tad_gallery_cate_option(0,0,$_GET['csn']); + + + $data=" + + <script language=\"JavaScript\"> +function chkall(input1,input2) +{ + var objForm = document.forms[input1]; + var objLen = objForm.length; + for (var iCount = 0; iCount < objLen; iCount++) + { + if (input2.checked == true) + { + if (objForm.elements[iCount].type == \"checkbox\") + { + objForm.elements[iCount].checked = true; + } + } + else + { + if (objForm.elements[iCount].type == \"checkbox\") + { + objForm.elements[iCount].checked = false; + } + } + } +} + +function ckeck_one(id_name){ + if(document.getElementById(id_name).checked){ + document.getElementById(id_name).checked = false; + }else{ + document.getElementById(id_name).checked = true; + } +} +</script> + <table><tr><td valign='top'> + <select size=30 name='csn' onChange='location.href=\"batch_tool.php?csn=\"+this.value'> + $cate_option + </select> + </td><td valign='top'> + <form action='batch_tool.php' method='post' name='form1'> + <input type='checkbox' onclick='chkall(\"form1\",this)' name=chk>"._MA_TADGAL_SELECT_ALL." + <table> + <tbody>"; + $i=4; + while(list($sn,$csn,$title,$filename,$size,$width,$height,$dir,$uid,$post_date,$counter,$good)=$xoopsDB->fetchRow($result)){ + + $tr1=($i%4)?"":"<tr>"; + $tr2=($i%4==3)?"</tr>":""; + + $good_pic=($good=='1')?"<img src='".XOOPS_URL."/modules/{$MDIR}/images/good.png' alt='good.png, 3.9kB' title='Good' border='0' height='22' width='22' style='float:left'>":""; + + $data.="$tr1 + <td style='background-image:url(".get_pic_url($dir,$sn,$filename,"s").");background-position: center center; background-repeat: no-repeat; padding:0px;' align='center'> + <div style='background-image:url(".XOOPS_URL."/modules/{$MDIR}/images/film.gif); width: 150px; height: 120px;vertical-align:bottom;position:relative;' onClick='ckeck_one(\"p{$sn}\");'><div style='float:left'><input type='checkbox' id='p{$sn}' name='pic[]' value='{$sn}' onClick='ckeck_one(\"p{$sn}\")';></div>$good_pic<div class='pic_title'>$filename</div></div></td> + + + $tr2"; + $i++; + } + + $option=get_tad_gallery_cate_option(0,0,$_GET['csn']); + + $tag_select=tag_select(); + + $data.=" + <tr> + <td colspan=4 class='bar'> + <input type='hidden' name='csn' value='{$_GET['csn']}'> + "._MA_TADGAL_THE_ACT_IS."<br> + <input type='radio' name='op' value='del'>"._BP_DEL."<br> + <input type='radio' name='op' value='add_good'>"._MA_TADGAL_ADD_GOOD."<br> + <input type='radio' name='op' value='del_good'>"._MA_TADGAL_DEL_GOOD."<br> + <input type='radio' name='op' value='move'>"._MA_TADGAL_MOVE_TO."<select name='new_csn'>$option</select><br> + <input type='radio' name='op' value='add_tag'>"._MA_TADGAL_TAG."<input type='text' name='new_tag' size='20'>"._MA_TADGAL_TAG_TXT."</td></tr> + <tr> + <td class='col' colspan=4>$tag_select</td></tr> + <tr><td class='bar' colspan='4' align='right'> + </td></tr> + + <tr> + <td colspan=4 class='bar'>{$bar}</td></tr> + </tbody> + </table> + <input type='submit' value='"._MA_TADGAL_GO."'></form> + </td></tr></table>"; + $data=div_3d(_MA_TADGAL_LIST_ALL,$data,"corners","display:inline;"); + return $data; +} + + + +//\xA7妸\xB7h\xB2\xBE +function batch_move($new_csn=""){ + global $xoopsDB; + $pics=implode(",",$_POST['pic']); + $sql = "update ".$xoopsDB->prefix("tad_gallery")." set `csn` = '{$new_csn}' where sn in($pics)"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()."<br>$sql"); + return $sn; +} + +//\xA7妸\xB7s\xBCW\xBA\xEB\xB5\xD8 +function batch_add_good(){ + global $xoopsDB; + $pics=implode(",",$_POST['pic']); + $sql = "update ".$xoopsDB->prefix("tad_gallery")." set `good` = '1' where sn in($pics)"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + return $sn; +} + + +//\xA7妸\xB2\xBE\xB0\xA3\xBA\xEB\xB5\xD8 +function batch_add_tag(){ + global $xoopsDB; + $pics=implode(",",$_POST['pic']); + + $all=implode(",",$_POST['tag']); + + if(!empty($_POST['new_tag'])){ + $new_tags=explode(",",$_POST['new_tag']); + } + + foreach($new_tags as $tag){ + if(!empty($tag)){ + $tag=trim($tag); + $all.=",{$tag}"; + } + } + + $sql = "update ".$xoopsDB->prefix("tad_gallery")." set `tag` = '{$all}' where sn in($pics)"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + return $sn; +} + +//\xA7妸\xA5[\xA4J\xBC\xD0\xC5\xD2 +function batch_del_good(){ + global $xoopsDB; + $pics=implode(",",$_POST['pic']); + $sql = "update ".$xoopsDB->prefix("tad_gallery")." set `good` = '0' where sn in($pics)"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + return $sn; +} + + + +//\xA7妸\xA7R\xB0\xA3 +function batch_del(){ + global $xoopsDB; + foreach($_POST['pic'] as $sn){ + delete_tad_gallery($sn); + } +} + + +/*-----------\xB0\xF5\xA6\xE6\xB0ʧ@\xA7P\xC2_\xB0\xCF----------*/ +$op = (!isset($_REQUEST['op']))? "main":$_REQUEST['op']; + +switch($op){ + case "del": + batch_del(); + mk_rss_xml(); + header("location: {$_SERVER['PHP_SELF']}?csn={$_POST['csn']}"); + break; + + case "move": + batch_move($_POST['new_csn']); + header("location: {$_SERVER['PHP_SELF']}?csn={$_POST['csn']}"); + break; + + case "add_good"; + batch_add_good(); + header("location: {$_SERVER['PHP_SELF']}?csn={$_POST['csn']}"); + break; + + + case "del_good"; + batch_del_good(); + header("location: {$_SERVER['PHP_SELF']}?csn={$_POST['csn']}"); + break; + + case "add_tag"; + batch_add_tag(); + header("location: {$_SERVER['PHP_SELF']}?csn={$_POST['csn']}"); + break; + + //\xB9w\xB3]\xB0ʧ@ + default: + $main=list_tad_gallery(1); + break; + +} + +/*-----------\xA8q\xA5X\xB5\xB2\xAAG\xB0\xCF--------------*/ +xoops_cp_header(); +loadModuleAdminMenu(5); +echo "<link rel='stylesheet' type='text/css' media='screen' href='../module.css' />"; +echo $main; +xoops_cp_footer(); + +?> Added: XoopsModules/tadgallery/trunk/admin/cate.php =================================================================== --- XoopsModules/tadgallery/trunk/admin/cate.php (rev 0) +++ XoopsModules/tadgallery/trunk/admin/cate.php 2009-08-23 20:55:04 UTC (rev 3488) @@ -0,0 +1,334 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 tad \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-02-28 +// $Id: cate.php,v 1.4 2008/05/05 03:21:31 tad Exp $ +// ------------------------------------------------------------------------- // + +/*-----------\xA4ޤJ\xC0ɮװ\xCF--------------*/ +include "../../../include/cp_header.php"; +include "../function.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; + +/*-----------function\xB0\xCF--------------*/ +//tad_gallery_cate\xBDs\xBF\xE8\xAA\xED\xB3\xE6 +function tad_gallery_cate_form($csn=""){ + global $xoopsDB,$xoopsModuleConfig,$photo_border,$cate_show_mode_array; + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + include_once(XOOPS_ROOT_PATH."/class/xoopseditor/xoopseditor.php"); + + //\xA7\xEC\xA8\xFA\xB9w\xB3]\xAD\xC8 + if(!empty($csn)){ + $DBV=get_tad_gallery_cate($csn); + }else{ + $DBV=array(); + } + + //\xB9w\xB3]\xADȳ]\xA9w + + $csn=(!isset($DBV['csn']))?"":$DBV['csn']; + $of_csn=(!isset($DBV['of_csn']))?"":$DBV['of_csn']; + $title=(!isset($DBV['title']))?"":$DBV['title']; + $enable_group=(!isset($DBV['enable_group']))?"":explode(",",$DBV['enable_group']); + $enable_upload_group=(!isset($DBV['enable_upload_group']))?array('1'):explode(",",$DBV['enable_upload_group']); + $sort=(!isset($DBV['sort']))?auto_get_csn_sort():$DBV['sort']; + $passwd=(!isset($DBV['passwd']))?"":$DBV['passwd']; + $mode=(!isset($DBV['mode']))?$xoopsModuleConfig['thumbnail_mode']:$DBV['mode']; + $show_mode=(!isset($DBV['show_mode']))?"":$DBV['show_mode']; + $cover=(!isset($DBV['cover']))?"":$DBV['cover']; + + $op=(empty($csn))?"insert_tad_gallery_cate":"update_tad_gallery_cate"; + + $cate_select=get_tad_gallery_cate_option(0,0,$of_csn,"","",$csn,1); + $cover_select=get_cover($csn,$cover); + + + //\xA5i\xA8\xA3\xB8s\xB2\xD5 + $SelectGroup_name = new XoopsFormSelectGroup("", "enable_group", false,$enable_group, 3, true); + $SelectGroup_name->addOption("", _MA_TADGAL_ALL_OK, false); + $enable_group = $SelectGroup_name->render(); + + //\xA5i\xA4W\xB6Ǹs\xB2\xD5 + $SelectGroup_name = new XoopsFormSelectGroup("", "enable_upload_group", false,$enable_upload_group, 3, true); + //$SelectGroup_name->addOption("", _MA_TADGAL_ALL_OK, false); + $enable_upload_group = $SelectGroup_name->render(); + + $option=""; + foreach($photo_border as $key=>$value){ + $selected=($mode==$key)?"selected='selected'":""; + $option.="<option value='$key' $selected>$value</option>"; + } + + $cate_show_option=""; + foreach($cate_show_mode_array as $key=>$value){ + $selected=($show_mode==$key)?"selected='selected'":""; + $cate_show_option.="<option value='$key' $selected>$value</option>"; + } + + + $cover_default=(!empty($cover))?XOOPS_URL."/uploads/tadgallery/{$cover}":"../images/folder_picture.png"; + + $main=" + <script type='text/javascript' src='".XOOPS_URL."/modules/tadgallery/class/jquery.js'></script> + <script type='text/javascript'> + $(document).ready(function() { + $('#adv_... [truncated message content] |
From: <be...@us...> - 2009-08-24 01:25:23
|
Revision: 3491 http://xoops.svn.sourceforge.net/xoops/?rev=3491&view=rev Author: beckmi Date: 2009-08-24 01:25:15 +0000 (Mon, 24 Aug 2009) Log Message: ----------- Adding xSitemap Added Paths: ----------- XoopsModules/xsitemap/ XoopsModules/xsitemap/branches/ XoopsModules/xsitemap/releases/ XoopsModules/xsitemap/trunk/ XoopsModules/xsitemap/trunk/admin/ XoopsModules/xsitemap/trunk/admin/about.php XoopsModules/xsitemap/trunk/admin/gpl.txt XoopsModules/xsitemap/trunk/admin/header.php XoopsModules/xsitemap/trunk/admin/index.html XoopsModules/xsitemap/trunk/admin/index.php XoopsModules/xsitemap/trunk/admin/menu.php XoopsModules/xsitemap/trunk/admin/plugin.php XoopsModules/xsitemap/trunk/blocks/ XoopsModules/xsitemap/trunk/blocks/index.html XoopsModules/xsitemap/trunk/changelog.txt XoopsModules/xsitemap/trunk/class/ XoopsModules/xsitemap/trunk/class/index.html XoopsModules/xsitemap/trunk/class/menu.php XoopsModules/xsitemap/trunk/class/object.php XoopsModules/xsitemap/trunk/class/plugin.php XoopsModules/xsitemap/trunk/class/xsitemap_class.php XoopsModules/xsitemap/trunk/images/ XoopsModules/xsitemap/trunk/images/L1-center.png XoopsModules/xsitemap/trunk/images/L1-left.png XoopsModules/xsitemap/trunk/images/L1-right.png XoopsModules/xsitemap/trunk/images/L3-bottom.png XoopsModules/xsitemap/trunk/images/L3-center.png XoopsModules/xsitemap/trunk/images/L3-li-top.png XoopsModules/xsitemap/trunk/images/L3-ul-top.png XoopsModules/xsitemap/trunk/images/deco/ XoopsModules/xsitemap/trunk/images/deco/about.png XoopsModules/xsitemap/trunk/images/deco/arrow.gif XoopsModules/xsitemap/trunk/images/deco/contact.png XoopsModules/xsitemap/trunk/images/deco/delete.gif XoopsModules/xsitemap/trunk/images/deco/edit.gif XoopsModules/xsitemap/trunk/images/deco/index.html XoopsModules/xsitemap/trunk/images/deco/index.png XoopsModules/xsitemap/trunk/images/deco/off.gif XoopsModules/xsitemap/trunk/images/deco/on.gif XoopsModules/xsitemap/trunk/images/deco/permissions.png XoopsModules/xsitemap/trunk/images/deco/pref.png XoopsModules/xsitemap/trunk/images/deco/update.png XoopsModules/xsitemap/trunk/images/index.html XoopsModules/xsitemap/trunk/images/logo.png XoopsModules/xsitemap/trunk/images/menu/ XoopsModules/xsitemap/trunk/images/menu/bg.png XoopsModules/xsitemap/trunk/images/menu/index.html XoopsModules/xsitemap/trunk/images/menu/left_both.png XoopsModules/xsitemap/trunk/images/menu/right_both.png XoopsModules/xsitemap/trunk/images/vertical-line.png XoopsModules/xsitemap/trunk/images/white-highlight.png XoopsModules/xsitemap/trunk/include/ XoopsModules/xsitemap/trunk/include/functions.php XoopsModules/xsitemap/trunk/include/index.html XoopsModules/xsitemap/trunk/include/install.php XoopsModules/xsitemap/trunk/index.php XoopsModules/xsitemap/trunk/language/ XoopsModules/xsitemap/trunk/language/english/ XoopsModules/xsitemap/trunk/language/english/admin.php XoopsModules/xsitemap/trunk/language/english/blocks.php XoopsModules/xsitemap/trunk/language/english/index.html XoopsModules/xsitemap/trunk/language/english/modinfo.php XoopsModules/xsitemap/trunk/language/index.html XoopsModules/xsitemap/trunk/language/italian/ XoopsModules/xsitemap/trunk/language/italian/admin.php XoopsModules/xsitemap/trunk/language/italian/blocks.php XoopsModules/xsitemap/trunk/language/italian/index.html XoopsModules/xsitemap/trunk/language/italian/modinfo.php XoopsModules/xsitemap/trunk/language/portuguesebr/ XoopsModules/xsitemap/trunk/language/portuguesebr/admin.php XoopsModules/xsitemap/trunk/language/portuguesebr/blocks.php XoopsModules/xsitemap/trunk/language/portuguesebr/index.html XoopsModules/xsitemap/trunk/language/portuguesebr/modinfo.php XoopsModules/xsitemap/trunk/sql/ XoopsModules/xsitemap/trunk/sql/index.html XoopsModules/xsitemap/trunk/sql/mysql.sql XoopsModules/xsitemap/trunk/templates/ XoopsModules/xsitemap/trunk/templates/blocks/ XoopsModules/xsitemap/trunk/templates/blocks/index.html XoopsModules/xsitemap/trunk/templates/index.html XoopsModules/xsitemap/trunk/templates/xsitemap_index.html XoopsModules/xsitemap/trunk/templates/xsitemap_slickmap.html XoopsModules/xsitemap/trunk/templates/xsitemap_style.html XoopsModules/xsitemap/trunk/templates/xsitemap_xml.html XoopsModules/xsitemap/trunk/xml_google.php XoopsModules/xsitemap/trunk/xoops_version.php Added: XoopsModules/xsitemap/trunk/admin/about.php =================================================================== --- XoopsModules/xsitemap/trunk/admin/about.php (rev 0) +++ XoopsModules/xsitemap/trunk/admin/about.php 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1,159 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * xsitemap - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) Urbanspaceman (http://www.takeaweb.it) + * + * 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 Urbanspaceman (http://www.takeaweb.it) + * @license GPL + * @package xsitemap + * @author Urbanspaceman (http://www.takeaweb.it) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); + +xoops_cp_header(); + +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +xsitemap_adminmenu(2, _AM_XSITEMAP_MANAGER_ABOUT); + +echo "<style> +.CPbigTitle{ + font-size: 20px; + color: #1E90FF; + background: no-repeat left top; + font-weight: bold; + height: 40px; + vertical-align: middle; + padding: 10px 0 0 50px; + border-bottom: 3px solid #1E90FF; +} +</style>"; +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (2, _AM_XSITEMAP_MANAGER_ABOUT); +} + +//menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/about.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_XSITEMAP_MANAGER_ABOUT."</strong> +</div><br />"; + +$versioninfo =& $module_handler->get( $xoopsModule->getVar("mid") ); + + + + +echo "<style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">".$xoopsModule->getVar("name")."</legend> + <div style=\"padding: 8px;\"> + <img src=\"".XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/".$versioninfo->getInfo("image")."\" alt=\"\" hspace=\"10\" vspace=\"0\" /></a>\n + <div style=\"padding: 5px;\"><strong>".$versioninfo->getInfo("name")." version ".$versioninfo->getInfo("version")."</strong></div>\n + <label>"._AM_XSITEMAP_ABOUT_RELEASEDATE.":</label><text>".$versioninfo->getInfo("release")."</text><br /> + <label>"._AM_XSITEMAP_ABOUT_AUTHOR.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_XSITEMAP_ABOUT_CREDITS.":</label><text>".$versioninfo->getInfo("credits")."</text><br /> + <label>"._AM_XSITEMAP_ABOUT_LICENSE.":</label><text><a href=\"".$versioninfo->getInfo("license_file")."\" target=\"_blank\" >".$versioninfo->getInfo("license")."</a></text>\n + </div> + </fieldset> +<br clear=\"all\"/> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_XSITEMAP_ABOUT_MODULE_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_XSITEMAP_ABOUT_MODULE_STATUS.":</label><text>".$versioninfo->getInfo("module_status")."</text><br /> + <label>"._AM_XSITEMAP_ABOUT_MODULE_DESC.":</label><text>"._AM_XSITEMAP_ABOUT_MODULE_DESC_TEXT."</text><br /> + <label>"._AM_XSITEMAP_ABOUT_MODULE_PLUGIN.":</label><text>"; + $criteria = new CriteriaCompo(); + $criteria->setSort("plugin_name"); + $criteria->setOrder("ASC"); + $supported_module = $pluginHandler->getall($criteria); + + foreach (array_keys($supported_module) as $i){ + echo $supported_module[$i]->getVar("plugin_name"); + echo " "; + echo $supported_module[$i]->getVar("plugin_mod_version"); + echo " / "; + } + echo "</text><br /> + </div> + </fieldset> +<br clear=\"all\" /> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_XSITEMAP_ABOUT_AUTHOR_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_XSITEMAP_ABOUT_AUTHOR_NAME.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_XSITEMAP_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("author_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("author_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" /> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_XSITEMAP_ABOUT_CREDITS."</legend> + <div style=\"padding: 8px;\"> + "._AM_XSITEMAP_ABOUT_CREDITS_TEXT." + </div> + </fieldset> +<br clear=\"all\" /> + +<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_XSITEMAP_ABOUT_TRANSLATION."</legend> + <div style=\"padding: 8px;\"> + "._AM_XSITEMAP_ABOUT_TRANSLATION_TEXT." + </div> + </fieldset> +<br clear=\"all\" /> + + +<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_XSITEMAP_ABOUT_TNX."</legend> + <div style=\"padding: 8px;\"> + "._AM_XSITEMAP_ABOUT_TNX_TEXT." + </div> + </fieldset> +<br clear=\"all\" />"; + +$file = XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/changelog.txt"; + +if ( is_readable( $file ) ){ +echo "<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_XSITEMAP_ABOUT_CHANGELOG."</legend> + <div style=\"padding: 8px;\"> + <div>".implode("<br />", file( $file ))."</div> + </div> + </fieldset> + <br clear=\"all\" />"; + +} +echo "<br /><br /> +<div align=\"center\">"._AM_XSITEMAP_ABOUT_BY."</div> +"; +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xsitemap/trunk/admin/gpl.txt =================================================================== --- XoopsModules/xsitemap/trunk/admin/gpl.txt (rev 0) +++ XoopsModules/xsitemap/trunk/admin/gpl.txt 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1,342 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. + + Added: XoopsModules/xsitemap/trunk/admin/header.php =================================================================== --- XoopsModules/xsitemap/trunk/admin/header.php (rev 0) +++ XoopsModules/xsitemap/trunk/admin/header.php 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1,110 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * xsitemap - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) Urbanspaceman (http://www.takeaweb.it) + * + * 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 Urbanspaceman (http://www.takeaweb.it) + * @license GPL + * @package xsitemap + * @author Urbanspaceman (http://www.takeaweb.it) + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstopic.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; +include_once("../include/functions.php"); + +$myts =& MyTextSanitizer::getInstance(); +include_once XOOPS_ROOT_PATH."/modules/xsitemap/class/plugin.php"; + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("xsitemap"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage("admin", "system"); +xoops_loadLanguage("admin", $xoopsModule->getVar("dirname", "e")); +xoops_loadLanguage("modinfo", $xoopsModule->getVar("dirname", "e")); + +function xsitemap_adminmenu ($currentoption = 0, $breadcrumb = "") +{ + global $xoopsModule, $xoopsConfig; + + echo " + <style type=\"text/css\"> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url(".XOOPS_URL."/modules/xsitemap/images/menu/bg.png) repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url(".XOOPS_URL."/modules/xsitemap/images/deco/left_both.png) no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url(".XOOPS_URL."/modules/xsitemap/images/deco/right_both.png) no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + #buttonbar a span {float:none;} + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = Array(); + $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ""; + $tblColors[$currentoption] = "current"; + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php")) { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php"); + } else { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/english/modinfo.php"); + } + + echo "<div id=\"buttontop\"> + <table style=\"width: 100%; padding: 0;\" cellspacing=\"0\"> + <tr> + <td style=\"font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"> + <a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$myts->displayTarea($xoopsModule->getVar("mid"))."\">_AM_XSITEMAP_GENERALSET</a> + | <a href=\"".XOOPS_URL."/modules/xsitemap/index.php\">_AM_XSITEMAP_GOINDEX</a> + | <a href=\"".XOOPS_URL."/modules/xsitemap/admin/upgrade.php\">_AM_XSITEMAP_UPGRADE</a> + </td> + <td style=\"font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>".$myts->displayTarea($xoopsModule->name())."</b></td> + </tr> + </table> + </div> + + <div id=\"buttonbar\"> + <ul><li id=\"$tblColors[0]\"><a href=\"".XOOPS_URL."/modules/xsitemap/admin/index.php\"><span>_MI_XSITEMAP_MANAGER_INDEX</span></a></li> + <li id=\"$tblColors[1]\"><a href=\"".XOOPS_URL."/modules/xsitemap/admin/plugin.php\"><span>_MI_XSITEMAP_MANAGER_PLUGIN</span></a></li> + + <li id=\"$tblColors[2]\"><a href=\"".XOOPS_URL."/modules/xsitemap/admin/permissions.php\"><span>_MI_XSITEMAP_MANAGER_PERMISSIONS</span></a></li> + <li id=\"$tblColors[3]\"><a href=\"".XOOPS_URL."/modules/xsitemap/admin/about.php\"><span>_MI_XSITEMAP_MANAGER_ABOUT</span></a></li> + </ul></div>"; +} + +$pluginHandler =& xoops_getModuleHandler("xsitemap_plugin", "xsitemap"); + +?> \ No newline at end of file Added: XoopsModules/xsitemap/trunk/admin/index.html =================================================================== --- XoopsModules/xsitemap/trunk/admin/index.html (rev 0) +++ XoopsModules/xsitemap/trunk/admin/index.html 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xsitemap/trunk/admin/index.php =================================================================== --- XoopsModules/xsitemap/trunk/admin/index.php (rev 0) +++ XoopsModules/xsitemap/trunk/admin/index.php 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1,82 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * xsitemap - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) Urbanspaceman (http://www.takeaweb.it) + * + * 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 Urbanspaceman (http://www.takeaweb.it) + * @license GPL + * @package xsitemap + * @author Urbanspaceman (http://www.takeaweb.it) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); +$versioninfo =& $module_handler->get( $xoopsModule->getVar("mid") ); +xoops_cp_header(); + +global $xoopsModule; + +//Apelle du menu admin +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +xsitemap_adminmenu(0, _AM_XSITEMAP_MANAGER_INDEX); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (0, _AM_XSITEMAP_MANAGER_INDEX); +} + + //compte "total" + $count_plugin = $pluginHandler->getCount(); + //compte "attente" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("plugin_online", 1)); + $plugin_online = $pluginHandler->getCount($criteria); + +include_once XOOPS_ROOT_PATH."/modules/xsitemap/class/menu.php"; + + $menu = new xsitemapMenu(); + $menu->addItem("plugin", "plugin.php", "../images/deco/contact.png", _AM_XSITEMAP_MANAGER_PLUGIN); + $menu->addItem("about", "about.php", "../images/deco/about.png", _AM_XSITEMAP_MANAGER_ABOUT); + $menu->addItem("preference", "../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar("mid"). + "&&confcat_id=1", "../images/deco/pref.png", _AM_XSITEMAP_MANAGER_PREFERENCES); + $menu->addItem("update", "../../system/admin.php?fct=modulesadmin&op=update&module=xsitemap", "../images/deco/update.png", _AM_XSITEMAP_MANAGER_UPDATE); + //$menu->addItem("permissions", "permissions.php", "../images/deco/permissions.png", _AM_XSITEMAP_MANAGER_PERMISSIONS); + + + echo $menu->getCSS(); + + +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/index.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_XSITEMAP_MANAGER_INDEX."</strong></div><br /> + <table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"4\"> + <tr> + <td valign=\"top\">".$menu->render()."</td> + <td valign=\"top\" width=\"60%\">"; + + echo "<fieldset> + <legend class=\"CPmediumTitle\">"._AM_XSITEMAP_MANAGER_PLUGIN."</legend> + <br />"; + printf(_AM_XSITEMAP_THEREARE_PLUGIN, $count_plugin); + echo "<br /><br />"; + printf(_AM_XSITEMAP_THEREARE_PLUGIN_ONLINE, $plugin_online); + echo "<br /> + </fieldset><br /><br />"; + + echo "</td> + </tr> + </table> +<br /><br /> +<div align=\"center\">"._AM_XSITEMAP_ABOUT_BY."</div>"; +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/xsitemap/trunk/admin/menu.php =================================================================== --- XoopsModules/xsitemap/trunk/admin/menu.php (rev 0) +++ XoopsModules/xsitemap/trunk/admin/menu.php 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1,36 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * xsitemap - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) Urbanspaceman (http://www.takeaweb.it) + * + * 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 Urbanspaceman (http://www.takeaweb.it) + * @license GPL + * @package xsitemap + * @author Urbanspaceman (http://www.takeaweb.it) + * + * Version : 1.00: + * **************************************************************************** + */ + +$adminmenu = array(); +$adminmenu[0]["title"] = _MI_XSITEMAP_MANAGER_INDEX; +$adminmenu[0]["link"] = "admin/index.php"; +$adminmenu[1]["title"] = _MI_XSITEMAP_MANAGER_PLUGIN; +$adminmenu[1]["link"] = "admin/plugin.php"; +//$adminmenu[2]["title"] = _MI_XSITEMAP_MANAGER_PERMISSIONS; +//$adminmenu[2]["link"] = "admin/permissions.php"; + +$adminmenu[2]["title"] = _MI_XSITEMAP_MANAGER_ABOUT; +$adminmenu[2]["link"] = "admin/about.php"; + +?> \ No newline at end of file Added: XoopsModules/xsitemap/trunk/admin/plugin.php =================================================================== --- XoopsModules/xsitemap/trunk/admin/plugin.php (rev 0) +++ XoopsModules/xsitemap/trunk/admin/plugin.php 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1,200 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * xsitemap - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) Urbanspaceman (http://www.takeaweb.it) + * + * 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 Urbanspaceman (http://www.takeaweb.it) + * @license GPL + * @package xsitemap + * @author Urbanspaceman (http://www.takeaweb.it) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); + +xoops_cp_header(); + +if (isset($_REQUEST["op"])) { + $op = $_REQUEST["op"]; +} else { + @$op = "show_list_plugin"; +} + +//Menu admin +if ( !is_readable(XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php") ) { +xsitemap_adminmenu(1, _AM_XSITEMAP_MANAGER_PLUGIN); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (1, _AM_XSITEMAP_MANAGER_PLUGIN); +} + +//Sous menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/contact.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"> + <strong>"._AM_XSITEMAP_MANAGER_PLUGIN."</strong> + </div><br /><br>"; +switch ($op) +{ + case "save_plugin": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("plugin.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["plugin_id"])) { + $obj =& $pluginHandler->get($_REQUEST["plugin_id"]); + } else { + $obj =& $pluginHandler->create(); + } + + //Form plugin_name + $obj->setVar("plugin_name", $_REQUEST["plugin_name"]); + //Form plugin_mod_version + $obj->setVar("plugin_mod_version", $_REQUEST["plugin_mod_version"]); + //Form plugin_mod_table + $obj->setVar("plugin_mod_table", $_REQUEST["plugin_mod_table"]); + //Form plugin_cat_id + $obj->setVar("plugin_cat_id", $_REQUEST["plugin_cat_id"]); + //Form plugin_cat_pid + $obj->setVar("plugin_cat_pid", $_REQUEST["plugin_cat_pid"]); + //Form plugin_cat_name + $obj->setVar("plugin_cat_name", $_REQUEST["plugin_cat_name"]); + //Form plugin_weight + $obj->setVar("plugin_weight", $_REQUEST["plugin_weight"]); + //Form plugin_call + $obj->setVar("plugin_call", $_REQUEST["plugin_call"]); + //Form plugin_submitter + $obj->setVar("plugin_submitter", $_REQUEST["plugin_submitter"]); + //Form plugin_date_created + $obj->setVar("plugin_date_created", strtotime($_REQUEST["plugin_date_created"])); + //Form plugin_online + $verif_plugin_online = ($_REQUEST["plugin_online"] == 1) ? "1" : "0"; + $obj->setVar("plugin_online", $verif_plugin_online); + + + if ($pluginHandler->insert($obj)) { + redirect_header("plugin.php?op=show_list_plugin", 2, _AM_XSITEMAP_FORMOK); + } + //include_once("../include/forms.php"); + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + break; + + case "edit_plugin": + $obj = $pluginHandler->get($_REQUEST["plugin_id"]); + $form = $obj->getForm(); + break; + + case "delete_plugin": + $obj =& $pluginHandler->get($_REQUEST["plugin_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("plugin.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($pluginHandler->delete($obj)) { + redirect_header("plugin.php", 3, _AM_XSITEMAP_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "plugin_id" => $_REQUEST["plugin_id"], "op" => "delete_plugin"), $_SERVER["REQUEST_URI"], sprintf(_AM_XSITEMAP_FORMSUREDEL, $obj->getVar("plugin"))); + } + break; + + case "update_online_plugin": + + if (isset($_REQUEST["plugin_id"])) { + $obj =& $pluginHandler->get($_REQUEST["plugin_id"]); + } + $obj->setVar("plugin_online", $_REQUEST["plugin_online"]); + + if ($pluginHandler->insert($obj)) { + redirect_header("plugin.php", 3, _AM_XSITEMAP_FORMOK); + } + echo $obj->getHtmlErrors(); + + break; + + case "default": + default: + + $criteria = new CriteriaCompo(); + $criteria->setSort("plugin_name"); + $criteria->setOrder("ASC"); + $numrows = $pluginHandler->getCount(); + $plugin_arr = $pluginHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\"> + <tr> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_NAME."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_MOD_VERSION."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_MOD_TABLE_SHORT."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_CAT_ID_SHORT."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_CAT_PID_SHORT."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_CAT_NAME_SHORT."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_WEIGHT_SHORT."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_CALL_SHORT."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_SUBMITTER."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_DATE_CREATED."</th> + <th align=\"center\">"._AM_XSITEMAP_PLUGIN_ONLINE."</th> + + <th align=\"center\" width=\"10%\">"._AM_XSITEMAP_FORMACTION."</th> + </tr>"; + + $class = "odd"; + + foreach (array_keys($plugin_arr) as $i) + { + if ( $plugin_arr[$i]->getVar("topic_pid") == 0) + { + echo "<tr class=\"".$class."\">"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td align=\"center\">".$plugin_arr[$i]->getVar("plugin_name")."</td>"; + echo "<td align=\"center\">".$plugin_arr[$i]->getVar("plugin_mod_version")."</td>"; + echo "<td align=\"center\">".$plugin_arr[$i]->getVar("plugin_mod_table")."</td>"; + echo "<td align=\"center\">".$plugin_arr[$i]->getVar("plugin_cat_id")."</td>"; + echo "<td align=\"center\">".$plugin_arr[$i]->getVar("plugin_cat_pid")."</td>"; + echo "<td align=\"center\">".$plugin_arr[$i]->getVar("plugin_cat_name")."</td>"; + echo "<td align=\"center\">".$plugin_arr[$i]->getVar("plugin_weight")."</td>"; + echo "<td align=\"center\">".$plugin_arr[$i]->getVar("plugin_call")."</td>"; + echo "<td align=\"center\">".XoopsUser::getUnameFromId($plugin_arr[$i]->getVar("plugin_submitter"),"S")."</td>"; + echo "<td align=\"center\">".formatTimeStamp($plugin_arr[$i]->getVar("plugin_date_created"),"S")."</td>"; + + $online = $plugin_arr[$i]->getVar("plugin_online"); + + if( $online == 1 ) { + echo "<td align=\"center\"><a href=\"./plugin.php?op=update_online_plugin&plugin_id=".$plugin_arr[$i]->getVar("plugin_id")."&plugin_online=0\"><img src=\"./../images/deco/on.gif\" border=\"0\" alt=\""._AM_XSITEMAP_ON."\" title=\""._AM_XSITEMAP_ON."\"></a></td>"; + } else { + echo "<td align=\"center\"><a href=\"./plugin.php?op=update_online_plugin&plugin_id=".$plugin_arr[$i]->getVar("plugin_id")."&plugin_online=1\"><img src=\"./../images/deco/off.gif\" border=\"0\" alt=\""._AM_XSITEMAP_OFF."\" title=\""._AM_XSITEMAP_OFF."\"></a></td>"; + } + echo "<td align=\"center\" width=\"10%\"> + <a href=\"plugin.php?op=edit_plugin&plugin_id=".$plugin_arr[$i]->getVar("plugin_id")."\"><img src=\"../images/deco/edit.gif\" alt=\""._AM_XSITEMAP_EDIT."\" title=\""._AM_XSITEMAP_EDIT."\"></a> + <a href=\"plugin.php?op=delete_plugin&plugin_id=".$plugin_arr[$i]->getVar("plugin_id")."\"><img src=\"../images/deco/delete.gif\" alt=\""._AM_XSITEMAP_DELETE."\" title=\""._AM_XSITEMAP_DELETE."\"></a> + </td>"; + echo "</tr>"; + } + } + echo "</table><br><br>"; + } + + // Affichage du formulaire + $obj =& $pluginHandler->create(); + $form = $obj->getForm(); +} +echo "<br /><br /> +<div align=\"center\">"._AM_XSITEMAP_ABOUT_BY."</div>"; +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/xsitemap/trunk/blocks/index.html =================================================================== --- XoopsModules/xsitemap/trunk/blocks/index.html (rev 0) +++ XoopsModules/xsitemap/trunk/blocks/index.html 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xsitemap/trunk/changelog.txt =================================================================== --- XoopsModules/xsitemap/trunk/changelog.txt (rev 0) +++ XoopsModules/xsitemap/trunk/changelog.txt 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1,19 @@ +22/08/2009 + +- Sistemato un piccolo bug nel file include/install.php grazie a DUGRIS per la segnalazione +- Aggiunto il Portoghesebr tra le lingue del modulo by Artsgeral +- Aggiunto l'inglese tra le lingue del modulo by dbman +- Modificato file di traduzione admin.php + + +21/08/2009 + +RELEASE: +- Rilasciata la prima versione BETA del modulo XSITEMAP. + +21/08/2009 + +DA FINIRE: +- Verificare la funzionalità XML e verificare la compatibilità con Google Sitemap. +- Con alcuni moduli non si vedono i sublinks. + Added: XoopsModules/xsitemap/trunk/class/index.html =================================================================== --- XoopsModules/xsitemap/trunk/class/index.html (rev 0) +++ XoopsModules/xsitemap/trunk/class/index.html 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xsitemap/trunk/class/menu.php =================================================================== --- XoopsModules/xsitemap/trunk/class/menu.php (rev 0) +++ XoopsModules/xsitemap/trunk/class/menu.php 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1,176 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * xsitemap - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) Urbanspaceman (http://www.takeaweb.it) + * + * 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 Urbanspaceman (http://www.takeaweb.it) + * @license GPL + * @package xsitemap + * @author Urbanspaceman (http://www.takeaweb.it) + * + * Version : 1.00: + * **************************************************************************** + */ + +class xsitemapMenu +{ + public $Width = 100; + public $Height = 100; + public $BgColor = "transparent"; + public $OverBgColor = "#FFF6C1"; + public $BorderWidth = 1; + public $BorderColor = "#CCCCCC"; + public $OverBorderColor = "#FF9900"; + public $BorderStyle = "solid"; + public $OverBorderStyle = "solid"; + public $Font = "Tahoma, Arial, Helvetica"; + public $FontColor = "#666666"; + public $OverFontColor = "#1E90FF"; + public $FontDeco = "none"; + public $OverFontDeco = "none"; + public $FontSize = 11; + public $FontWeight = "bold"; + public $FontExtra = "Tahoma, Arial, Helvetica"; + public $FontExtraColor = "#A98952"; + public $OverFontExtraColor = "#0033FF"; + public $FontExtraDeco = "underline"; + public $OverFontExtraDeco = "underline"; + public $FontExtraSize = 9; + public $FontExtraWeight = "normal"; + public $TextAlign = "center"; + private $_items = array(); + + public function addItem($id, $link="", $icon="", $name="", $extra="", $alt=""){ + if (isset($this->_items[$id])) return false; + $rtn["link"] = $link; + $rtn["icon"] = $icon; + $rtn["name"] = $name; + $rtn["extra"] = $extra; + $rtn["alt"] = $alt; + $this->_items[$id] = $rtn; + return true; + } + + public function setLink($id, $link){ + if (isset($this->_items[$id])){ + $this->_items[$id]["link"] = $link; + return true; + } else { + return false; + } + } + + public function setIcon($id, $icon){ + if (isset($this->_items[$id])){ + $this->_items[$id]["icon"] = $icon; + return true; + } else { + return false; + } + } + + public function setName($id, $name){ + if (isset($this->_items[$id])){ + $this->_items[$id]["name"] = $name; + return true; + } else { + return false; + } + } + + public function setExtra($id, $extra){ + if (isset($this->_items[$id])){ + $this->_items[$id]["extra"] = $extra; + return true; + } else { + return false; + } + } + + public function setAlt($id, $alt){ + if (isset($this->_items[$id])){ + $this->_items[$id]["alt"] = $alt; + return true; + } else { + return false; + } + } + + public function getCSS($ws = true){ + if ($ws) $csscode = "<style type=\"text/css\">\n<!--"; + $csscode .= "div.rmmenuicon{ + margin: 3px; + font-family: $this->Font; + text-align: ".$this->TextAlign."; + } + div.rmmenuicon a { + display: block; float: left; + height: ".$this->Height."px !important; + height: ".$this->Height."px; + width: ".$this->Width."px !important; + width: ".$this->Width."px; + vertical-align: middle; + text-decoration : none; + border: ".$this->BorderWidth."px $this->BorderStyle $this->BorderColor; + padding: 2px 5px 1px 5px; + margin: 3px; + color: $this->FontColor; + } + div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; } + div.rmmenuicon a span { + font-size: ".$this->FontSize."px; + font-weight: $this->FontWeight; + display: block; + } + div.rmmenuicon a span.uno{ + font-size: ".$this->FontExtraSize."px; + font-weight: $this->FontExtraWeight; + text-decoration: $this->FontExtraDeco; + color: $this->FontExtraColor; + } + div.rmmenuicon a:hover{ + background-color: $this->OverBgColor; + border: ".$this->BorderWidth."px $this->BorderStyle $this->OverBorderColor; + color: $this->OverFontColor; + } + div.rmmenuicon a:hover span{ + text-decoration: $this->OverFontDeco; + } + div.rmmenuicon a:hover span.uno{ + text-decoration: $this->OverFontExtraDeco; + color: $this->OverFontExtraColor; + }"; + if ($ws) $csscode .= "\n-->\n</style>"; + return $csscode; + } + + public function render(){ + + $ret = "<div class=\"rmmenuicon\">"; + foreach ($this->_items as $k => $v){ + $ret .= "<a href=\"".$v["link"]."\" title=\"".($v["alt"]!="" ? $v["alt"] : $v["name"])."\">".($v["icon"]!="" ? "<img src=\"".$v["icon"]."\" alt=\"".$v["name"]."\" /> " : ""); + if ($v["name"] != "") $ret .= "<span>".$v["name"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + $ret .= "</a>"; + } + $ret .= "</div><div style=\"clear: both;\"></div>"; + return $ret; + } + + public function display(){ + echo $this->render(); + } +} + +?> \ No newline at end of file Added: XoopsModules/xsitemap/trunk/class/object.php =================================================================== --- XoopsModules/xsitemap/trunk/class/object.php (rev 0) +++ XoopsModules/xsitemap/trunk/class/object.php 2009-08-24 01:25:15 UTC (rev 3491) @@ -0,0 +1,412 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * Cette licence, contient des limitations!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +class XoopsPersistableObjectHandler extends XoopsObjectHandler{ + + /** + * Information about the class, the handler is managing + * + * @var string + */ + var $table; + var $keyName; + var $className; + var $identifierName; + + + /** + * Constructor - called from child classes + * @param object $db {@link XoopsDatabase} object + * @param string $tablename Name of database table + * @param string $classname Name of Class, this handler is managing + * @param string $keyname Name of the property, holding the key + * + * @return void + */ + function XoopsPersistableObjectHandler(&$db, $tablename, $classname, $keyname, $idenfierName = false) { + $this->XoopsObjectHandler($db); + $this->table = $db->prefix($tablename); + $this->keyName = $keyname; + $this->className = $classname; + if ($idenfierName != false) { + $this->identifierName = $idenfierName; + } + } + + /** + * create a new user + * + * @param bool $isNew Flag the new objects as "new"? + * + * @return object + */ + function &create($isNew = true) { + $obj =& new $this->className(); + if ($isNew === true) { + $obj->setNew(); + } + return $obj; + } + + /** + * retrieve an object + * + * @param mixed $id ID of the object - or array of ids for joint keys. Joint keys MUST be given in the same order as in the constructor + * @param bool $as_object whether to return an object or an array + * @return mixed reference to the object, FALSE if failed + */ + function &get($id, $as_object=true) { + if (is_array($this->keyName)) { + $criteria = new CriteriaCompo(); + for ($i = 0; $i < count($this->keyName); $i++) { + $criteria->add(new Criteria($this->keyName[$i], intval($id[$i]))); + } + } else { + $criteria = new Criter... [truncated message content] |
From: <be...@us...> - 2009-08-27 18:12:26
|
Revision: 3503 http://xoops.svn.sourceforge.net/xoops/?rev=3503&view=rev Author: beckmi Date: 2009-08-27 18:12:15 +0000 (Thu, 27 Aug 2009) Log Message: ----------- Adding Tad Chat Box Module Added Paths: ----------- XoopsModules/tad_cbox/ XoopsModules/tad_cbox/branches/ XoopsModules/tad_cbox/releases/ XoopsModules/tad_cbox/trunk/ XoopsModules/tad_cbox/trunk/admin/ XoopsModules/tad_cbox/trunk/admin/index.html XoopsModules/tad_cbox/trunk/admin/index.php XoopsModules/tad_cbox/trunk/admin/menu.php XoopsModules/tad_cbox/trunk/blocks/ XoopsModules/tad_cbox/trunk/blocks/index.html XoopsModules/tad_cbox/trunk/blocks/tad_cbox_block.php XoopsModules/tad_cbox/trunk/class/ XoopsModules/tad_cbox/trunk/class/index.html XoopsModules/tad_cbox/trunk/class/jcarousellite.js XoopsModules/tad_cbox/trunk/class/jquery123.js XoopsModules/tad_cbox/trunk/class/menu/ XoopsModules/tad_cbox/trunk/class/menu/index.html XoopsModules/tad_cbox/trunk/class/menu/js/ XoopsModules/tad_cbox/trunk/class/menu/js/adminmenu.js XoopsModules/tad_cbox/trunk/class/menu/js/adminmenu_src.js XoopsModules/tad_cbox/trunk/class/menu/js/ie5.js XoopsModules/tad_cbox/trunk/class/menu/js/index.html XoopsModules/tad_cbox/trunk/class/menu/js/menu.css XoopsModules/tad_cbox/trunk/class/menu/js/menuarrow1.gif XoopsModules/tad_cbox/trunk/class/menu/js/menuarrow2.gif XoopsModules/tad_cbox/trunk/class/menu/menu_function.php XoopsModules/tad_cbox/trunk/function.php XoopsModules/tad_cbox/trunk/header.php XoopsModules/tad_cbox/trunk/images/ XoopsModules/tad_cbox/trunk/images/1leftarrow.gif XoopsModules/tad_cbox/trunk/images/1rightarrow.gif XoopsModules/tad_cbox/trunk/images/2leftarrow.gif XoopsModules/tad_cbox/trunk/images/2rightarrow.gif XoopsModules/tad_cbox/trunk/images/add.gif XoopsModules/tad_cbox/trunk/images/bbg.jpg XoopsModules/tad_cbox/trunk/images/bbg2.jpg XoopsModules/tad_cbox/trunk/images/bg.gif XoopsModules/tad_cbox/trunk/images/bg.png XoopsModules/tad_cbox/trunk/images/bg.ufo XoopsModules/tad_cbox/trunk/images/bg1.png XoopsModules/tad_cbox/trunk/images/bottom_left1.gif XoopsModules/tad_cbox/trunk/images/bottom_left2.gif XoopsModules/tad_cbox/trunk/images/bottom_left3.gif XoopsModules/tad_cbox/trunk/images/bottom_left4.gif XoopsModules/tad_cbox/trunk/images/bottom_right1.gif XoopsModules/tad_cbox/trunk/images/bottom_right2.gif XoopsModules/tad_cbox/trunk/images/bottom_right3.gif XoopsModules/tad_cbox/trunk/images/bottom_right4.gif XoopsModules/tad_cbox/trunk/images/comment.png XoopsModules/tad_cbox/trunk/images/del.gif XoopsModules/tad_cbox/trunk/images/del2.gif XoopsModules/tad_cbox/trunk/images/edit.gif XoopsModules/tad_cbox/trunk/images/enable.gif XoopsModules/tad_cbox/trunk/images/imageNavLeft.gif XoopsModules/tad_cbox/trunk/images/imageNavLeftHover.gif XoopsModules/tad_cbox/trunk/images/imageNavRight.gif XoopsModules/tad_cbox/trunk/images/imageNavRightHover.gif XoopsModules/tad_cbox/trunk/images/index.html XoopsModules/tad_cbox/trunk/images/logo.png XoopsModules/tad_cbox/trunk/images/panel.jpg XoopsModules/tad_cbox/trunk/images/point1.gif XoopsModules/tad_cbox/trunk/images/point2.gif XoopsModules/tad_cbox/trunk/images/point3.gif XoopsModules/tad_cbox/trunk/images/point4.gif XoopsModules/tad_cbox/trunk/images/re.gif XoopsModules/tad_cbox/trunk/images/reload.png XoopsModules/tad_cbox/trunk/images/smiles/ XoopsModules/tad_cbox/trunk/images/smiles/s01.gif XoopsModules/tad_cbox/trunk/images/smiles/s02.gif XoopsModules/tad_cbox/trunk/images/smiles/s03.gif XoopsModules/tad_cbox/trunk/images/smiles/s04.gif XoopsModules/tad_cbox/trunk/images/smiles/s05.gif XoopsModules/tad_cbox/trunk/images/smiles/s06.gif XoopsModules/tad_cbox/trunk/images/smiles/s07.gif XoopsModules/tad_cbox/trunk/images/smiles/s08.gif XoopsModules/tad_cbox/trunk/images/smiles/s09.gif XoopsModules/tad_cbox/trunk/images/smiles/s10.gif XoopsModules/tad_cbox/trunk/images/smiles/s11.gif XoopsModules/tad_cbox/trunk/images/smiles/s12.gif XoopsModules/tad_cbox/trunk/images/smiles/s13.gif XoopsModules/tad_cbox/trunk/images/smiles/s14.gif XoopsModules/tad_cbox/trunk/images/smiles/s15.gif XoopsModules/tad_cbox/trunk/images/smiles/s16.gif XoopsModules/tad_cbox/trunk/images/smiles/s17.gif XoopsModules/tad_cbox/trunk/images/smiles/s18.gif XoopsModules/tad_cbox/trunk/images/top_left1.gif XoopsModules/tad_cbox/trunk/images/top_left2.gif XoopsModules/tad_cbox/trunk/images/top_left3.gif XoopsModules/tad_cbox/trunk/images/top_left4.gif XoopsModules/tad_cbox/trunk/images/top_right1.gif XoopsModules/tad_cbox/trunk/images/top_right2.gif XoopsModules/tad_cbox/trunk/images/top_right3.gif XoopsModules/tad_cbox/trunk/images/top_right4.gif XoopsModules/tad_cbox/trunk/images/unable.gif XoopsModules/tad_cbox/trunk/index.php XoopsModules/tad_cbox/trunk/language/ XoopsModules/tad_cbox/trunk/language/english/ XoopsModules/tad_cbox/trunk/language/english/admin.php XoopsModules/tad_cbox/trunk/language/english/blocks.php XoopsModules/tad_cbox/trunk/language/english/index.html XoopsModules/tad_cbox/trunk/language/english/main.php XoopsModules/tad_cbox/trunk/language/english/modinfo.php XoopsModules/tad_cbox/trunk/language/index.html XoopsModules/tad_cbox/trunk/language/tchinese/ XoopsModules/tad_cbox/trunk/language/tchinese/admin.php XoopsModules/tad_cbox/trunk/language/tchinese/big5/ XoopsModules/tad_cbox/trunk/language/tchinese/big5/admin.php XoopsModules/tad_cbox/trunk/language/tchinese/big5/blocks.php XoopsModules/tad_cbox/trunk/language/tchinese/big5/index.html XoopsModules/tad_cbox/trunk/language/tchinese/big5/main.php XoopsModules/tad_cbox/trunk/language/tchinese/big5/modinfo.php XoopsModules/tad_cbox/trunk/language/tchinese/blocks.php XoopsModules/tad_cbox/trunk/language/tchinese/chk_lang.php XoopsModules/tad_cbox/trunk/language/tchinese/index.html XoopsModules/tad_cbox/trunk/language/tchinese/main.php XoopsModules/tad_cbox/trunk/language/tchinese/modinfo.php XoopsModules/tad_cbox/trunk/language/tchinese/utf8/ XoopsModules/tad_cbox/trunk/language/tchinese/utf8/admin.php XoopsModules/tad_cbox/trunk/language/tchinese/utf8/blocks.php XoopsModules/tad_cbox/trunk/language/tchinese/utf8/index.html XoopsModules/tad_cbox/trunk/language/tchinese/utf8/main.php XoopsModules/tad_cbox/trunk/language/tchinese/utf8/modinfo.php XoopsModules/tad_cbox/trunk/language/tchinese_utf8/ XoopsModules/tad_cbox/trunk/language/tchinese_utf8/admin.php XoopsModules/tad_cbox/trunk/language/tchinese_utf8/blocks.php XoopsModules/tad_cbox/trunk/language/tchinese_utf8/chk_lang.php XoopsModules/tad_cbox/trunk/language/tchinese_utf8/index.html XoopsModules/tad_cbox/trunk/language/tchinese_utf8/main.php XoopsModules/tad_cbox/trunk/language/tchinese_utf8/modinfo.php XoopsModules/tad_cbox/trunk/mkpic.php XoopsModules/tad_cbox/trunk/module.css XoopsModules/tad_cbox/trunk/module.php XoopsModules/tad_cbox/trunk/post.php XoopsModules/tad_cbox/trunk/sql/ XoopsModules/tad_cbox/trunk/sql/index.html XoopsModules/tad_cbox/trunk/sql/mysql.sql XoopsModules/tad_cbox/trunk/templates/ XoopsModules/tad_cbox/trunk/templates/blocks/ XoopsModules/tad_cbox/trunk/templates/blocks/index.html XoopsModules/tad_cbox/trunk/templates/blocks/tad_cbox_block.html XoopsModules/tad_cbox/trunk/templates/index.html XoopsModules/tad_cbox/trunk/templates/index_tpl.html XoopsModules/tad_cbox/trunk/wordwrap.xml XoopsModules/tad_cbox/trunk/xoops_version.php Added: XoopsModules/tad_cbox/trunk/admin/index.html =================================================================== --- XoopsModules/tad_cbox/trunk/admin/index.html (rev 0) +++ XoopsModules/tad_cbox/trunk/admin/index.html 2009-08-27 18:12:15 UTC (rev 3503) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/tad_cbox/trunk/admin/index.php =================================================================== --- XoopsModules/tad_cbox/trunk/admin/index.php (rev 0) +++ XoopsModules/tad_cbox/trunk/admin/index.php 2009-08-27 18:12:15 UTC (rev 3503) @@ -0,0 +1,132 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 tad \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-03-25 +// $Id: index.php,v 1.1 2008/05/14 01:25:12 tad Exp $ +// ------------------------------------------------------------------------- // + +/*-----------\xA4ޤJ\xC0ɮװ\xCF--------------*/ +include_once "../../../include/cp_header.php"; +include_once "../function.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; + +/*-----------function\xB0\xCF--------------*/ + +//\xA6C\xA5X\xA9Ҧ\xB3tad_cbox\xB8\xEA\xAE\xC6 +function list_tad_cbox(){ + global $xoopsDB,$xoopsModule,$xoopsUser; + $MDIR=$xoopsModule->getVar('dirname'); + $sql = "select * from ".$xoopsDB->prefix("tad_cbox")." order by post_date desc"; + + //PageBar(\xB8\xEA\xAEƼ\xC6, \xA8C\xAD\xB6\xC5\xE3\xA5ܴX\xB5\xA7\xB8\xEA\xAE\xC6, \xB3̦h\xC5\xE3\xA5ܴX\xADӭ\xB6\xBCƿﶵ); + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + $total=$xoopsDB->getRowsNum($result); + $navbar = new PageBar($total, 20, 10); + $mybar = $navbar->makeBar(); + $bar= sprintf(_BP_TOOLBAR,$mybar['total'],$mybar['current'])."{$mybar['left']}{$mybar['center']}{$mybar['right']}"; + $sql.=$mybar['sql']; + + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + + + //\xA7P\xC2_\xACO\xA7_\xB9\xEF\xB8ӼҲզ\xB3\xBAz\xC5v\xAD\xAD\xA1A \xADY\xAAť\xD5 + if ($xoopsUser) { + $module_id = $xoopsModule->getVar('mid'); + $isAdmin=$xoopsUser->isAdmin($module_id); + }else{ + $isAdmin=false; + + } + + $cbox_root_msg_color=(empty($_SESSION['cbox_root_msg_color']))?"two":$_SESSION['cbox_root_msg_color']; + + if($isAdmin){ + $del_js=" + <script> + function delete_tad_cbox_func(sn){ + var sure = window.confirm('"._BP_DEL_CHK."'); + if (!sure) return; + location.href=\"{$_SERVER['PHP_SELF']}?mode={$_GET['mode']}&op=delete_tad_cbox&sn=\" + sn; + } + </script>"; + }else{ + $del_js=""; + } + + $data=" + $del_js + <div class='cbox'> + <table id='cbox_show_tbl'> + <tr><td class=bar>$bar</td></tr>"; + $i=2; + + while(list($sn,$publisher,$msg,$post_date,$ip,$only_root,$root_msg)=$xoopsDB->fetchRow($result)){ + $bgcss=($i%2)?"cbox_msg_color1":"cbox_msg_color2"; + + $post_date=xoops_getUserTimestamp(strtotime($post_date)); + + if($only_root=='1' and !$isAdmin){ + $msg="<font class='lock_msg'>"._MA_TADCBOX_LOCK_MSG."</font>"; + } + + $tool=($isAdmin)?"<img src='".XOOPS_URL."/modules/tad_cbox/images/del2.gif' width=12 height=12 align=bottom hspace=2 onClick=\"delete_tad_cbox_func($sn)\">":""; + + $msg=str_replace("[s","<img src='".XOOPS_URL."/modules/tad_cbox/images/smiles/s",$msg); + $msg=str_replace(".gif]",".gif' hspace=2 align='absmiddle'>",$msg); + + if(!empty($root_msg)){ + $root_msg=str_replace("[s","<img src='".XOOPS_URL."/modules/tad_cbox/images/smiles/s",$root_msg); + $root_msg=str_replace(".gif]",".gif' hspace=2 align='absmiddle'>",$root_msg); + + $root="<div id='cbox_container'><div class='{$cbox_root_msg_color}'> + <b class='tl'><b class='tr'></b></b> + <p>{$root_msg}</p> + <b class='bl'></b><b class='br'><b class='point'></b></b> + </div></div>"; + }else{ + $root=""; + } + + + + $data.="<tr> + <td class='{$bgcss}'> + <div class='cbox_date'><font class='cbox_ip'>{$ip}</font> | {$post_date} {$tool}</div> {$root} + <div class='cbox_publisher'>{$publisher}</div>: {$msg}</td> + </tr>"; + $i++; + } + $data.=" + <tr><td class=bar>$bar</td></tr> + </table></div>"; + return $data; +} + + + + +/*-----------\xB0\xF5\xA6\xE6\xB0ʧ@\xA7P\xC2_\xB0\xCF----------*/ +$op = (!isset($_REQUEST['op']))? "main":$_REQUEST['op']; + +switch($op){ + //\xA7R\xB0\xA3\xB8\xEA\xAE\xC6 + case "delete_tad_cbox"; + delete_tad_cbox($_GET['sn']); + header("location: {$_SERVER['PHP_SELF']}?mode={$_GET['mode']}"); + break; + + default: + $main=list_tad_cbox(); + break; +} + +/*-----------\xA8q\xA5X\xB5\xB2\xAAG\xB0\xCF--------------*/ +xoops_cp_header(); +echo "<link rel='stylesheet' type='text/css' media='screen' href='../module.css' /> +<link rel='stylesheet' type='text/css' media='screen' href='../module.php' />"; +loadModuleAdminMenu(0); +echo $main; +xoops_cp_footer(); + +?> Added: XoopsModules/tad_cbox/trunk/admin/menu.php =================================================================== --- XoopsModules/tad_cbox/trunk/admin/menu.php (rev 0) +++ XoopsModules/tad_cbox/trunk/admin/menu.php 2009-08-27 18:12:15 UTC (rev 3503) @@ -0,0 +1,12 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 tad \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-03-25 +// $Id: menu.php,v 1.1 2008/05/14 01:25:12 tad Exp $ +// ------------------------------------------------------------------------- // + +$adminmenu[0]['title'] = _MI_TADCBOX_ADMENU1; +$adminmenu[0]['link'] = "admin/index.php"; +$adminmenu[0]['icon'] = "images/comment.png"; + +?> \ No newline at end of file Added: XoopsModules/tad_cbox/trunk/blocks/index.html =================================================================== --- XoopsModules/tad_cbox/trunk/blocks/index.html (rev 0) +++ XoopsModules/tad_cbox/trunk/blocks/index.html 2009-08-27 18:12:15 UTC (rev 3503) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/tad_cbox/trunk/blocks/tad_cbox_block.php =================================================================== --- XoopsModules/tad_cbox/trunk/blocks/tad_cbox_block.php (rev 0) +++ XoopsModules/tad_cbox/trunk/blocks/tad_cbox_block.php 2009-08-27 18:12:15 UTC (rev 3503) @@ -0,0 +1,157 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 tad \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-03-25 +// $Id: tad_cbox_block.php,v 1.1 2008/05/14 01:25:35 tad Exp $ +// ------------------------------------------------------------------------- // + +//\xB0϶\xF4\xA5D\xA8禡 (\xB7|\xB2\xA3\xA5ͤ@\xADӧY\xAEɯd\xA8\xA5ï\xB0϶\xF4) +function tad_cbox_b_show_1($options){ + global $xoopsUser; + $_SESSION['cbox_show_num']=$options[0]; + $_SESSION['talk_width']=$options[1]; + $_SESSION['cbox_root_msg_color']=$options[4]; + + $modhandler = &xoops_gethandler('module'); + $xoopsModule = &$modhandler->getByDirname("tad_cbox"); + $config_handler =& xoops_gethandler('config'); + $xoopsModuleConfig =& $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')); + + + $post_height=$options[3]; + + + //\xC0ˬd\xACO\xA7_\xA6b\xA1u\xA4\xA3\xBB\xDD\xC0ˬd\xAA\xBA\xB8s\xB2դ\xA4\xA1v + if($xoopsUser){ + $no_chk=false; + $group=$xoopsUser->getGroups(); + foreach($group as $g){ + if(in_array($g,$xoopsModuleConfig['no_need_chk'])){ + $no_chk=true; + } + } + }else{ + $no_chk=in_array(3,$xoopsModuleConfig['no_need_chk']); + } + + + if($xoopsModuleConfig['security_images']=='1' and !$no_chk){ + $post_height+=30; + } + + $css=str_replace("{X_SITEURL}",XOOPS_URL,$options[7]); + $css=str_replace("%7BX_SITEURL%7D",XOOPS_URL,$css); + + + if(!empty($options[5])){ + $str=explode("\n",$options[5]); + $headline=""; + foreach($str as $show_str){ + if(empty($show_str))continue; + $headline.="<div class='headline'>{$show_str}</div>"; + } + + $txt=" + <style> + #scrollup { + position: relative; + overflow: hidden; + height: {$options[6]}px; + width: {$options[1]}px; + {$css} + } + .headline { + position: absolute; + top: 210px; + left: 5px; + height: 195px; + width:190px; + } + </style> + <script type='text/javascript' src='".XOOPS_URL."/modules/tad_cbox/class/jquery123.js'></script> + <script> + var headline_count; + var headline_interval; + var old_headline = 0; + var current_headline = 0; + + $(document).ready(function(){ + headline_count = $(\"div.headline\").size(); + $(\"div.headline:eq(\"+current_headline+\")\").css('top','5px'); + + headline_interval = setInterval(headline_rotate,5000); //time in milliseconds + $('#scrollup').hover(function() { + clearInterval(headline_interval); + }, function() { + headline_interval = setInterval(headline_rotate,5000); //time in milliseconds + headline_rotate(); + }); + }); + + function headline_rotate() { + current_headline = (old_headline + 1) % headline_count; + $(\"div.headline:eq(\" + old_headline + \")\").animate({top: -205},\"slow\", function() { + $(this).css('top','210px'); + }); + $(\"div.headline:eq(\" + current_headline + \")\").show().animate({top: 5},\"slow\"); + old_headline = current_headline; + } + </script> + <div id='scrollup'> + <div style='margin:0px 10px;'> + $headline + </div> + </div>"; + }else{ + $txt=""; + } + + $block=" + $txt + <div align='center' id='cboxdiv'> +<iframe frameborder='0' width='{$options[1]}' height='{$options[2]}' src='".XOOPS_URL."/modules/tad_cbox/index.php?mode=box&twh={$options[1]}' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' style='border:#ababab 1px solid;' id='cboxmain'></iframe><br/> +<iframe frameborder='0' width='{$options[1]}' height='{$post_height}' src='".XOOPS_URL."/modules/tad_cbox/post.php' marginheight='2' marginwidth='2' scrolling='no' allowtransparency='yes' name='cboxform' style='border:#ababab 1px solid;border-top:0px' id='cboxform'></iframe> +<p style='text-align:right;'><a href='".XOOPS_URL."/modules/tad_cbox/index.php'>"._MB_TADCBOX_TAD_CBOX_VIEW_ALL."</a></div> +</p>"; + return $block; +} + +//\xB0϶\xF4\xBDs\xBF\xE8\xA8禡 +function tad_cbox_b_edit($options){ + + $opt1=($options[4]=="one")?"checked":""; + $opt2=($options[4]=="two")?"checked":""; + $opt3=($options[4]=="three")?"checked":""; + $opt4=($options[4]=="four")?"checked":""; + +/* + if(empty($options[7])){ + $options[7]="background-image:url({X_SITEURL}/modules/tad_cbox/images/bg.gif); +background-repeat: no-repeat; +color:white;"; + } + */ + + $form=" + <table style='width:auto;'> + <tr><th>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM0."</th><td><INPUT type='text' name='options[0]' value='{$options[0]}' size=5></td></tr> + <tr><th>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM1."</th><td><INPUT type='text' name='options[1]' value='{$options[1]}' size=5></td></tr> + <tr><th>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM2."</th><td><INPUT type='text' name='options[2]' value='{$options[2]}' size=5></td></tr> + <tr><th>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM3."</th><td><INPUT type='text' name='options[3]' value='{$options[3]}' size=5></td></tr> + <tr><th>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM4."</th><td> + <INPUT type='radio' name='options[4]' value='one' $opt1>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM4_OPT1." + <INPUT type='radio' name='options[4]' value='two' $opt2>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM4_OPT2." + <INPUT type='radio' name='options[4]' value='three' $opt3>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM4_OPT3." + <INPUT type='radio' name='options[4]' value='four' $opt4>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM4_OPT4."</td></tr> + <tr><th>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM5."</th><td><textarea name='options[5]' cols=40 rows=4>{$options[5]}</textarea><br>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM5_txt."</td></tr> + <tr><th>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM6."</th><td><INPUT type='text' name='options[6]' value='{$options[6]}' size=5></td></tr> + <tr><th>"._MB_TADCBOX_TAD_CBOX_B_EDIT_BITEM7."</th><td><textarea name='options[7]'cols=40 rows=2>{$options[7]}</textarea><br>ex:<br>background-image:url({X_SITEURL}/modules/tad_cbox/images/bg.gif);<br> +background-repeat: no-repeat;<br> +color:white;<br> +padding:10px;</td></tr> + </table> + "; + return $form; +} + +?> \ No newline at end of file Added: XoopsModules/tad_cbox/trunk/class/index.html =================================================================== --- XoopsModules/tad_cbox/trunk/class/index.html (rev 0) +++ XoopsModules/tad_cbox/trunk/class/index.html 2009-08-27 18:12:15 UTC (rev 3503) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/tad_cbox/trunk/class/jcarousellite.js =================================================================== --- XoopsModules/tad_cbox/trunk/class/jcarousellite.js (rev 0) +++ XoopsModules/tad_cbox/trunk/class/jcarousellite.js 2009-08-27 18:12:15 UTC (rev 3503) @@ -0,0 +1,341 @@ +/** + * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget. + * @requires jQuery v1.2 or above + * + * http://gmarwaha.com/jquery/jcarousellite/ + * + * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com) + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + * Version: 1.0.1 + * Note: Requires jquery 1.2 or above from version 1.0.1 + */ + +/** + * Creates a carousel-style navigation widget for images/any-content from a simple HTML markup. + * + * The HTML markup that is used to build the carousel can be as simple as... + * + * <div class="carousel"> + * <ul> + * <li><img src="image/1.jpg" alt="1"></li> + * <li><img src="image/2.jpg" alt="2"></li> + * <li><img src="image/3.jpg" alt="3"></li> + * </ul> + * </div> + * + * As you can see, this snippet is nothing but a simple div containing an unordered list of images. + * You don't need any special "class" attribute, or a special "css" file for this plugin. + * I am using a class attribute just for the sake of explanation here. + * + * To navigate the elements of the carousel, you need some kind of navigation buttons. + * For example, you will need a "previous" button to go backward, and a "next" button to go forward. + * This need not be part of the carousel "div" itself. It can be any element in your page. + * Lets assume that the following elements in your document can be used as next, and prev buttons... + * + * <button class="prev"><<</button> + * <button class="next">>></button> + * + * Now, all you need to do is call the carousel component on the div element that represents it, and pass in the + * navigation buttons as options. + * + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev" + * }); + * + * That's it, you would have now converted your raw div, into a magnificient carousel. + * + * There are quite a few other options that you can use to customize it though. + * Each will be explained with an example below. + * + * @param an options object - You can specify all the options shown below as an options object param. + * + * @option btnPrev, btnNext : string - no defaults + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev" + * }); + * @desc Creates a basic carousel. Clicking "btnPrev" navigates backwards and "btnNext" navigates forward. + * + * @option btnGo - array - no defaults + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * btnGo: [".0", ".1", ".2"] + * }); + * @desc If you don't want next and previous buttons for navigation, instead you prefer custom navigation based on + * the item number within the carousel, you can use this option. Just supply an array of selectors for each element + * in the carousel. The index of the array represents the index of the element. What i mean is, if the + * first element in the array is ".0", it means that when the element represented by ".0" is clicked, the carousel + * will slide to the first element and so on and so forth. This feature is very powerful. For example, i made a tabbed + * interface out of it by making my navigation elements styled like tabs in css. As the carousel is capable of holding + * any content, not just images, you can have a very simple tabbed navigation in minutes without using any other plugin. + * The best part is that, the tab will "slide" based on the provided effect. :-) + * + * @option mouseWheel : boolean - default is false + * @example + * $(".carousel").jCarouselLite({ + * mouseWheel: true + * }); + * @desc The carousel can also be navigated using the mouse wheel interface of a scroll mouse instead of using buttons. + * To get this feature working, you have to do 2 things. First, you have to include the mouse-wheel plugin from brandon. + * Second, you will have to set the option "mouseWheel" to true. That's it, now you will be able to navigate your carousel + * using the mouse wheel. Using buttons and mouseWheel or not mutually exclusive. You can still have buttons for navigation + * as well. They complement each other. To use both together, just supply the options required for both as shown below. + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * mouseWheel: true + * }); + * + * @option auto : number - default is null, meaning autoscroll is disabled by default + * @example + * $(".carousel").jCarouselLite({ + * auto: 800, + * speed: 500 + * }); + * @desc You can make your carousel auto-navigate itself by specfying a millisecond value in this option. + * The value you specify is the amount of time between 2 slides. The default is null, and that disables auto scrolling. + * Specify this value and magically your carousel will start auto scrolling. + * + * @option speed : number - 200 is default + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * speed: 800 + * }); + * @desc Specifying a speed will slow-down or speed-up the sliding speed of your carousel. Try it out with + * different speeds like 800, 600, 1500 etc. Providing 0, will remove the slide effect. + * + * @option easing : string - no easing effects by default. + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * easing: "bounceout" + * }); + * @desc You can specify any easing effect. Note: You need easing plugin for that. Once specified, + * the carousel will slide based on the provided easing effect. + * + * @option vertical : boolean - default is false + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * vertical: true + * }); + * @desc Determines the direction of the carousel. true, means the carousel will display vertically. The next and + * prev buttons will slide the items vertically as well. The default is false, which means that the carousel will + * display horizontally. The next and prev items will slide the items from left-right in this case. + * + * @option circular : boolean - default is true + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * circular: false + * }); + * @desc Setting it to true enables circular navigation. This means, if you click "next" after you reach the last + * element, you will automatically slide to the first element and vice versa. If you set circular to false, then + * if you click on the "next" button after you reach the last element, you will stay in the last element itself + * and similarly for "previous" button and first element. + * + * @option visible : number - default is 3 + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * visible: 4 + * }); + * @desc This specifies the number of items visible at all times within the carousel. The default is 3. + * You are even free to experiment with real numbers. Eg: "3.5" will have 3 items fully visible and the + * last item half visible. This gives you the effect of showing the user that there are more images to the right. + * + * @option start : number - default is 0 + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * start: 2 + * }); + * @desc You can specify from which item the carousel should start. Remember, the first item in the carousel + * has a start of 0, and so on. + * + * @option scrool : number - default is 1 + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * scroll: 2 + * }); + * @desc The number of items that should scroll/slide when you click the next/prev navigation buttons. By + * default, only one item is scrolled, but you may set it to any number. Eg: setting it to "2" will scroll + * 2 items when you click the next or previous buttons. + * + * @option beforeStart, afterEnd : function - callbacks + * @example + * $(".carousel").jCarouselLite({ + * btnNext: ".next", + * btnPrev: ".prev", + * beforeStart: function(a) { + * alert("Before animation starts:" + a); + * }, + * afterEnd: function(a) { + * alert("After animation ends:" + a); + * } + * }); + * @desc If you wanted to do some logic in your page before the slide starts and after the slide ends, you can + * register these 2 callbacks. The functions will be passed an argument that represents an array of elements that + * are visible at the time of callback. + * + * + * @cat Plugins/Image Gallery + * @author Ganeshji Marwaha/gan...@gm... + */ + +(function($) { // Compliant with jquery.noConflict() +$.fn.jCarouselLite = function(o) { + o = $.extend({ + btnPrev: null, + btnNext: null, + btnGo: null, + mouseWheel: false, + auto: null, + + speed: 200, + easing: null, + + vertical: false, + circular: true, + visible: 3, + start: 0, + scroll: 1, + + beforeStart: null, + afterEnd: null + }, o || {}); + + return this.each(function() { // Returns the element collection. Chainable. + + var running = false, animCss=o.vertical?"top":"left", sizeCss=o.vertical?"height":"width"; + var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible; + + if(o.circular) { + ul.prepend(tLi.slice(tl-v-1+1).clone()) + .append(tLi.slice(0,v).clone()); + o.start += v; + } + + var li = $("li", ul), itemLength = li.size(), curr = o.start; + div.css("visibility", "visible"); + + li.css({overflow: "hidden", float: o.vertical ? "none" : "left"}); + ul.css({margin: "0", padding: "0", position: "relative", "list-style-type": "none", "z-index": "1"}); + div.css({overflow: "hidden", position: "relative", "z-index": "2", left: "0px"}); + + var liSize = o.vertical ? height(li) : width(li); // Full li size(incl margin)-Used for animation + var ulSize = liSize * itemLength; // size of full ul(total length, not just for the visible items) + var divSize = liSize * v; // size of entire div(total length for just the visible items) + + li.css({width: li.width(), height: li.height()}); + ul.css(sizeCss, ulSize+"px").css(animCss, -(curr*liSize)); + + div.css(sizeCss, divSize+"px"); // Width of the DIV. length of visible images + + if(o.btnPrev) + $(o.btnPrev).click(function() { + return go(curr-o.scroll); + }); + + if(o.btnNext) + $(o.btnNext).click(function() { + return go(curr+o.scroll); + }); + + if(o.btnGo) + $.each(o.btnGo, function(i, val) { + $(val).click(function() { + return go(o.circular ? o.visible+i : i); + }); + }); + + if(o.mouseWheel && div.mousewheel) + div.mousewheel(function(e, d) { + return d>0 ? go(curr-o.scroll) : go(curr+o.scroll); + }); + + if(o.auto) + setInterval(function() { + go(curr+o.scroll); + }, o.auto+o.speed); + + function vis() { + return li.slice(curr).slice(0,v); + }; + + function go(to) { + if(!running) { + + if(o.beforeStart) + o.beforeStart.call(this, vis()); + + if(o.circular) { // If circular we are in first or last, then goto the other end + if(to<=o.start-v-1) { // If first, then goto last + ul.css(animCss, -((itemLength-(v*2))*liSize)+"px"); + // If "scroll" > 1, then the "to" might not be equal to the condition; it can be lesser depending on the number of elements. + curr = to==o.start-v-1 ? itemLength-(v*2)-1 : itemLength-(v*2)-o.scroll; + } else if(to>=itemLength-v+1) { // If last, then goto first + ul.css(animCss, -( (v) * liSize ) + "px" ); + // If "scroll" > 1, then the "to" might not be equal to the condition; it can be greater depending on the number of elements. + curr = to==itemLength-v+1 ? v+1 : v+o.scroll; + } else curr = to; + } else { // If non-circular and to points to first or last, we just return. + if(to<0 || to>itemLength-v) return; + else curr = to; + } // If neither overrides it, the curr will still be "to" and we can proceed. + + running = true; + + ul.animate( + animCss == "left" ? { left: -(curr*liSize) } : { top: -(curr*liSize) } , o.speed, o.easing, + function() { + if(o.afterEnd) + o.afterEnd.call(this, vis()); + running = false; + } + ); + // Disable buttons when the carousel reaches the last/first, and enable when not + if(!o.circular) { + $(o.btnPrev + "," + o.btnNext).removeClass("disabled"); + $( (curr-o.scroll<0 && o.btnPrev) + || + (curr+o.scroll > itemLength-v && o.btnNext) + || + [] + ).addClass("disabled"); + } + + } + return false; + }; + }); +}; + +function css(el, prop) { + return parseInt($.css(el[0], prop)) || 0; +}; +function width(el) { + return el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight'); +}; +function height(el) { + return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom'); +}; + +})(jQuery); \ No newline at end of file Added: XoopsModules/tad_cbox/trunk/class/jquery123.js =================================================================== --- XoopsModules/tad_cbox/trunk/class/jquery123.js (rev 0) +++ XoopsModules/tad_cbox/trunk/class/jquery123.js 2009-08-27 18:12:15 UTC (rev 3503) @@ -0,0 +1,3408 @@ +(function(){ +/* + * jQuery 1.2.3 - New Wave Javascript + * + * Copyright (c) 2008 John Resig (jquery.com) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * $Date: 2008/05/14 01:25:44 $ + * $Rev: 4663 $ + */ + +// Map over jQuery in case of overwrite +if ( window.jQuery ) + var _jQuery = window.jQuery; + +var jQuery = window.jQuery = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.prototype.init( selector, context ); +}; + +// Map over the $ in case of overwrite +if ( window.$ ) + var _$ = window.$; + +// Map the jQuery namespace to the '$' one +window.$ = jQuery; + +// A simple way to check for HTML strings or ID strings +// (both of which we optimize for) +var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/; + +// Is it a simple selector +var isSimple = /^.[^:#\[\.]*$/; + +jQuery.fn = jQuery.prototype = { + init: function( selector, context ) { + // Make sure that a selection was provided + selector = selector || document; + + // Handle $(DOMElement) + if ( selector.nodeType ) { + this[0] = selector; + this.length = 1; + return this; + + // Handle HTML strings + } else if ( typeof selector == "string" ) { + // Are we dealing with HTML string or an ID? + var match = quickExpr.exec( selector ); + + // Verify a match, and that no context was specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) + selector = jQuery.clean( [ match[1] ], context ); + + // HANDLE: $("#id") + else { + var elem = document.getElementById( match[3] ); + + // Make sure an element was located + if ( elem ) + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id != match[3] ) + return jQuery().find( selector ); + + // Otherwise, we inject the element directly into the jQuery object + else { + this[0] = elem; + this.length = 1; + return this; + } + + else + selector = []; + } + + // HANDLE: $(expr, [context]) + // (which is just equivalent to: $(content).find(expr) + } else + return new jQuery( context ).find( selector ); + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) + return new jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector ); + + return this.setArray( + // HANDLE: $(array) + selector.constructor == Array && selector || + + // HANDLE: $(arraylike) + // Watch for when an array-like object, contains DOM nodes, is passed in as the selector + (selector.jquery || selector.length && selector != window && !selector.nodeType && selector[0] != undefined && selector[0].nodeType) && jQuery.makeArray( selector ) || + + // HANDLE: $(*) + [ selector ] ); + }, + + // The current version of jQuery being used + jquery: "1.2.3", + + // The number of elements contained in the matched element set + size: function() { + return this.length; + }, + + // The number of elements contained in the matched element set + length: 0, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num == undefined ? + + // Return a 'clean' array + jQuery.makeArray( this ) : + + // Return just the object + this[ num ]; + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + // Build a new jQuery matched element set + var ret = jQuery( elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + // Return the newly-formed element set + return ret; + }, + + // Force the current matched set of elements to become + // the specified array of elements (destroying the stack in the process) + // You should use pushStack() in order to do this, but maintain the stack + setArray: function( elems ) { + // Resetting the length to 0, then using the native Array push + // is a super-fast way to populate an object with array-like properties + this.length = 0; + Array.prototype.push.apply( this, elems ); + + return this; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + var ret = -1; + + // Locate the position of the desired element + this.each(function(i){ + if ( this == elem ) + ret = i; + }); + + return ret; + }, + + attr: function( name, value, type ) { + var options = name; + + // Look for the case where we're accessing a style value + if ( name.constructor == String ) + if ( value == undefined ) + return this.length && jQuery[ type || "attr" ]( this[0], name ) || undefined; + + else { + options = {}; + options[ name ] = value; + } + + // Check to see if we're setting style values + return this.each(function(i){ + // Set all the styles + for ( name in options ) + jQuery.attr( + type ? + this.style : + this, + name, jQuery.prop( this, options[ name ], type, i, name ) + ); + }); + }, + + css: function( key, value ) { + // ignore negative width and height values + if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 ) + value = undefined; + return this.attr( key, value, "curCSS" ); + }, + + text: function( text ) { + if ( typeof text != "object" && text != null ) + return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); + + var ret = ""; + + jQuery.each( text || this, function(){ + jQuery.each( this.childNodes, function(){ + if ( this.nodeType != 8 ) + ret += this.nodeType != 1 ? + this.nodeValue : + jQuery.fn.text( [ this ] ); + }); + }); + + return ret; + }, + + wrapAll: function( html ) { + if ( this[0] ) + // The elements to wrap the target around + jQuery( html, this[0].ownerDocument ) + .clone() + .insertBefore( this[0] ) + .map(function(){ + var elem = this; + + while ( elem.firstChild ) + elem = elem.firstChild; + + return elem; + }) + .append(this); + + return this; + }, + + wrapInner: function( html ) { + return this.each(function(){ + jQuery( this ).contents().wrapAll( html ); + }); + }, + + wrap: function( html ) { + return this.each(function(){ + jQuery( this ).wrapAll( html ); + }); + }, + + append: function() { + return this.domManip(arguments, true, false, function(elem){ + if (this.nodeType == 1) + this.appendChild( elem ); + }); + }, + + prepend: function() { + return this.domManip(arguments, true, true, function(elem){ + if (this.nodeType == 1) + this.insertBefore( elem, this.firstChild ); + }); + }, + + before: function() { + return this.domManip(arguments, false, false, function(elem){ + this.parentNode.insertBefore( elem, this ); + }); + }, + + after: function() { + return this.domManip(arguments, false, true, function(elem){ + this.parentNode.insertBefore( elem, this.nextSibling ); + }); + }, + + end: function() { + return this.prevObject || jQuery( [] ); + }, + + find: function( selector ) { + var elems = jQuery.map(this, function(elem){ + return jQuery.find( selector, elem ); + }); + + return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ? + jQuery.unique( elems ) : + elems ); + }, + + clone: function( events ) { + // Do the clone + var ret = this.map(function(){ + if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) { + // IE copies events bound via attachEvent when + // using cloneNode. Calling detachEvent on the + // clone will also remove the events from the orignal + // In order to get around this, we use innerHTML. + // Unfortunately, this means some modifications to + // attributes in IE that are actually only stored + // as properties will not be copied (such as the + // the name attribute on an input). + var clone = this.cloneNode(true), + container = document.createElement("div"); + container.appendChild(clone); + return jQuery.clean([container.innerHTML])[0]; + } else + return this.cloneNode(true); + }); + + // Need to set the expando to null on the cloned set if it exists + // removeData doesn't work here, IE removes it from the original as well + // this is primarily for IE but the data expando shouldn't be copied over in any browser + var clone = ret.find("*").andSelf().each(function(){ + if ( this[ expando ] != undefined ) + this[ expando ] = null; + }); + + // Copy the events from the original to the clone + if ( events === true ) + this.find("*").andSelf().each(function(i){ + if (this.nodeType == 3) + return; + var events = jQuery.data( this, "events" ); + + for ( var type in events ) + for ( var handler in events[ type ] ) + jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data ); + }); + + // Return the cloned set + return ret; + }, + + filter: function( selector ) { + return this.pushStack( + jQuery.isFunction( selector ) && + jQuery.grep(this, function(elem, i){ + return selector.call( elem, i ); + }) || + + jQuery.multiFilter( selector, this ) ); + }, + + not: function( selector ) { + if ( selector.constructor == String ) + // test special case where just one selector is passed in + if ( isSimple.test( selector ) ) + return this.pushStack( jQuery.multiFilter( selector, this, true ) ); + else + selector = jQuery.multiFilter( selector, this ); + + var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; + return this.filter(function() { + return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; + }); + }, + + add: function( selector ) { + return !selector ? this : this.pushStack( jQuery.merge( + this.get(), + selector.constructor == String ? + jQuery( selector ).get() : + selector.length != undefined && (!selector.nodeName || jQuery.nodeName(selector, "form")) ? + selector : [selector] ) ); + }, + + is: function( selector ) { + return selector ? + jQuery.multiFilter( selector, this ).length > 0 : + false; + }, + + hasClass: function( selector ) { + return this.is( "." + selector ); + }, + + val: function( value ) { + if ( value == undefined ) { + + if ( this.length ) { + var elem = this[0]; + + // We need to handle select boxes special + if ( jQuery.nodeName( elem, "select" ) ) { + var index = elem.selectedIndex, + values = [], + options = elem.options, + one = elem.type == "select-one"; + + // Nothing was selected + if ( index < 0 ) + return null; + + // Loop through all the selected options + for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { + var option = options[ i ]; + + if ( option.selected ) { + // Get the specifc value for the option + value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value; + + // We don't need an array for one selects + if ( one ) + return value; + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + + // Everything else, we just grab the value + } else + return (this[0].value || "").replace(/\r/g, ""); + + } + + return undefined; + } + + return this.each(function(){ + if ( this.nodeType != 1 ) + return; + + if ( value.constructor == Array && /radio|checkbox/.test( this.type ) ) + this.checked = (jQuery.inArray(this.value, value) >= 0 || + jQuery.inArray(this.name, value) >= 0); + + else if ( jQuery.nodeName( this, "select" ) ) { + var values = value.constructor == Array ? + value : + [ value ]; + + jQuery( "option", this ).each(function(){ + this.selected = (jQuery.inArray( this.value, values ) >= 0 || + jQuery.inArray( this.text, values ) >= 0); + }); + + if ( !values.length ) + this.selectedIndex = -1; + + } else + this.value = value; + }); + }, + + html: function( value ) { + return value == undefined ? + (this.length ? + this[0].innerHTML : + null) : + this.empty().append( value ); + }, + + replaceWith: function( value ) { + return this.after( value ).remove(); + }, + + eq: function( i ) { + return this.slice( i, i + 1 ); + }, + + slice: function() { + return this.pushStack( Array.prototype.slice.apply( this, arguments ) ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function(elem, i){ + return callback.call( elem, i, elem ); + })); + }, + + andSelf: function() { + return this.add( this.prevObject ); + }, + + data: function( key, value ){ + var parts = key.split("."); + parts[1] = parts[1] ? "." + parts[1] : ""; + + if ( value == null ) { + var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); + + if ( data == undefined && this.length ) + data = jQuery.data( this[0], key ); + + return data == null && parts[1] ? + this.data( parts[0] ) : + data; + } else + return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){ + jQuery.data( this, key, value ); + }); + }, + + removeData: function( key ){ + return this.each(function(){ + jQuery.removeData( this, key ); + }); + }, + + domManip: function( args, table, reverse, callback ) { + var clone = this.length > 1, elems; + + return this.each(function(){ + if ( !elems ) { + elems = jQuery.clean( args, this.ownerDocument ); + + if ( reverse ) + elems.reverse(); + } + + var obj = this; + + if ( table && jQuery.nodeName( this, "table" ) && jQuery.nodeName( elems[0], "tr" ) ) + obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") ); + + var scripts = jQuery( [] ); + + jQuery.each(elems, function(){ + var elem = clone ? + jQuery( this ).clone( true )[0] : + this; + + // execute all scripts after the elements have been injected + if ( jQuery.nodeName( elem, "script" ) ) { + scripts = scripts.add( elem ); + } else { + // Remove any inner scripts for later evaluation + if ( elem.nodeType == 1 ) + scripts = scripts.add( jQuery( "script", elem ).remove() ); + + // Inject the elements into the document + callback.call( obj, elem ); + } + }); + + scripts.each( evalScript ); + }); + } +}; + +// Give the init function the jQuery prototype for later instantiation +jQuery.prototype.init.prototype = jQuery.prototype; + +function evalScript( i, elem ) { + if ( elem.src ) + jQuery.ajax({ + url: elem.src, + async: false, + dataType: "script" + }); + + else + jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); + + if ( elem.parentNode ) + elem.parentNode.removeChild( elem ); +} + +jQuery.extend = jQuery.fn.extend = function() { + // copy reference to target object + var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; + + // Handle a deep copy situation + if ( target.constructor == Boolean ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target != "object" && typeof target != "function" ) + target = {}; + + // extend jQuery itself if only one argument is passed + if ( length == 1 ) { + target = this; + i = 0; + } + + for ( ; i < length; i++ ) + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) + // Extend the base object + for ( var name in options ) { + // Prevent never-ending loop + if ( target === options[ name ] ) + continue; + + // Recurse if we're merging object values + if ( deep && options[ name ] && typeof options[ name ] == "object" && target[ name ] && !options[ name ].nodeType ) + target[ name ] = jQuery.extend( target[ name ], options[ name ] ); + + // Don't bring in undefined values + else if ( options[ name ] != undefined ) + target[ name ] = options[ name ]; + + } + + // Return the modified object + return target; +}; + +var expando = "jQuery" + (new Date()).getTime(), uuid = 0, windowData = {}; + +// exclude the following css properties to add px +var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i; + +jQuery.extend({ + noConflict: function( deep ) { + window.$ = _$; + + if ( deep ) + window.jQuery = _jQuery; + + return jQuery; + }, + + // See test/unit/core.js for details concerning this function. + isFunction: function( fn ) { + return !!fn && typeof fn != "string" && !fn.nodeName && + fn.constructor != Array && /function/i.test( fn + "" ); + }, + + // check if an element is in a (or is an) XML document + isXMLDoc: function( elem ) { + return elem.documentElement && !elem.body || + elem.tagName && elem.ownerDocument && !elem.ownerDocument.body; + }, + + // Evalulates a script in a global context + globalEval: function( data ) { + data = jQuery.trim( data ); + + if ( data ) { + // Inspired by code by Andrea Giammarchi + // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html + var head = document.getElementsByTagName("head")[0] || document.documentElement, + script = document.createElement("script"); + + script.type = "text/javascript"; + if ( jQuery.browser.msie ) + script.text = data; + else + script.appendChild( document.createTextNode( data ) ); + + head.appendChild( script ); + head.removeChild( script ); + } + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); + }, + + cache: {}, + + data: function( elem, name, data ) { + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ]; + + // Compute a unique ID for the element + if ( !id ) + id = elem[ expando ] = ++uuid; + + // Only generate the data cache if we're + // trying to access or manipulate it + if ( name && !jQuery.cache[ id ] ) + jQuery.cache[ id ] = {}; + + // Prevent overriding the named cache with undefined values + if ( data != undefined ) + jQuery.cache[ id ][ name ] = data; + + // Return the named cache data, or the ID for the element + return name ? + jQuery.cache[ id ][ name ] : + id; + }, + + removeData: function( elem, name ) { + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ]; + + // If we want to remove a specific section of the element's data + if ( name ) { + if ( jQuery.cache[ id ] ) { + // Remove the section of cache data + delete jQuery.cache[ id ][ name ]; + + // If we've removed all the data, remove the element's cache + name = ""; + + for ( name in jQuery.cache[ id ] ) + break; + + if ( !name ) + jQuery.removeData( elem ); + } + + // Otherwise, we want to remove all of the element's data + } else { + // Clean up the element expando + try { + delete elem[ expando ]; + } catch(e){ + // IE has trouble directly removing the expando + // but it's ok with using removeAttribute + if ( elem.removeAttribute ) + elem.removeAttribute( expando ); + } + + // Completely remove the data cache + delete jQuery.cache[ id ]; + } + }, + + // args is for internal usage only + each: function( object, callback, args ) { + if ( args ) { + if ( object.length == undefined ) { + for ( var name in object ) + if ( callback.apply( object[ name ], args ) === false ) + break; + } else + for ( var i = 0, length = object.length; i < length; i++ ) + if ( callback.apply( object[ i ], args ) === false ) + break; + + // A special, fast, case for the most common use of each + } else { + if ( object.length == undefined ) { + for ( var name in object ) + if ( callback.call( object[ name ], name, object[ name ] ) === false ) + break; + } else + for ( var i = 0, length = object.length, value = object[0]; + i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} + } + + return object; + }, + + prop: function( elem, value, type, i, name ) { + // Handle executable functions + if ( jQuery.isFunction( value ) ) + value = value.call( elem, i ); + + // Handle passing in a number to a CSS property + return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ? + value + "px" : + value; + }, + + className: { + // internal only, use addClass("class") + add: function( elem, classNames ) { + jQuery.each((classNames || "").split(/\s+/), function(i, className){ + if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) + elem.className += (elem.className ? " " : "") + className; + }); + }, + + // internal only, use removeClass("class") + remove: function( elem, classNames ) { + if (elem.nodeType == 1) + elem.className = classNames != undefined ? + jQuery.grep(elem.className.split(/\s+/), function(className){ + return !jQuery.className.has( classNames, className ); + }).join(" ") : + ""; + }, + + // internal only, use is(".class") + has: function( elem, className ) { + return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; + } + }, + + // A method for quickly swapping in/out CSS properties to get correct calculations + swap: function( elem, options, callback ) { + var old = {}; + // Remember the old values, and insert the new ones + for ( var name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + callback.call( elem ); + + // Revert the old values + for ( var name in options ) + elem.style[ name ] = old[ name ]; + }, + + css: function( elem, name, force ) { + if ( name == "width" || name == "height" ) { + var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; + + function getWH() { + val = name == "width" ? elem.offsetWidth : elem.offsetHeight; + var padding = 0, border = 0; + jQuery.each( which, function() { + padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; + border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; + }); + val -= Math.round(padding + border); + } + + if ( jQuery(elem).is(":visible") ) + getWH(); + else + jQuery.swap( elem, props, getWH ); + + return Math.max(0, val); + } + + return jQuery.curCSS( elem, name, force ); + }, + + curCSS: function( elem, name, force ) { + var ret; + + // A helper method for determining if an element's values are broken + function color( elem ) { + if ( !jQuery.browser.safari ) + return false; + + var ret = document.defaultView.getComputedStyle( elem, null ); + return !ret || ret.getPropertyValue("color") == ""; + } + + // We need to handle opacity special in IE + if ( name == "opacity" && jQuery.browser.msie ) { + ret = jQuery.attr( elem.style, "opacity" ); + + return ret == "" ? + "1" : + ret; + } + // Opera sometimes will give the wrong display answer, this fixes it, see #2037 + if ( jQuery.browser.opera && name == "display" ) { + var save = elem.style.outline; + elem.style.outline = "0 solid black"; + elem.style.outline = save; + } + + // Make sure we're using the right name for getting the float value + if ( name.match( /float/i ) ) + name = styleFloat; + + if ( !force && elem.style && elem.style[ name ] ) + ret = elem.style[ name ]; + + else if ( document.defaultView && document.defaultView.getComputedStyle ) { + + // Only "float" is needed here + if ( name.match( /float/i ) ) + name = "float"; + + name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); + + var getComputedStyle = document.defaultView.getComputedStyle( elem, null ); + + if ( getComputedStyle && !color( elem ) ) + ret = getComputedStyle.getPropertyValue( name ); + + // If the element isn't reporting its values properly in Safari + // then some display: none elements are involved + else { + var swap = [], stack = []; + + // Locate all of the parent display: none elements + for ( var a = elem; a && color(a); a = a.parentNode ) + stack.unshift(a); + + // Go through and make them visible, but in reverse + // (It would be better if we knew the exact displa... [truncated message content] |
From: <be...@us...> - 2009-08-27 18:37:42
|
Revision: 3508 http://xoops.svn.sourceforge.net/xoops/?rev=3508&view=rev Author: beckmi Date: 2009-08-27 18:37:28 +0000 (Thu, 27 Aug 2009) Log Message: ----------- Adding TadForm Module Added Paths: ----------- XoopsModules/tad_form/ XoopsModules/tad_form/branches/ XoopsModules/tad_form/releases/ XoopsModules/tad_form/trunk/ XoopsModules/tad_form/trunk/admin/ XoopsModules/tad_form/trunk/admin/add.php XoopsModules/tad_form/trunk/admin/autoupdate/ XoopsModules/tad_form/trunk/admin/autoupdate/update1.php XoopsModules/tad_form/trunk/admin/autoupdate/update2.php XoopsModules/tad_form/trunk/admin/index.html XoopsModules/tad_form/trunk/admin/index.php XoopsModules/tad_form/trunk/admin/mail.php XoopsModules/tad_form/trunk/admin/menu.php XoopsModules/tad_form/trunk/admin/result.php XoopsModules/tad_form/trunk/admin/update.php XoopsModules/tad_form/trunk/blocks/ XoopsModules/tad_form/trunk/blocks/index.html XoopsModules/tad_form/trunk/blocks/tad_form.php XoopsModules/tad_form/trunk/blocks/tad_one_form.php XoopsModules/tad_form/trunk/class/ XoopsModules/tad_form/trunk/class/CreateZipFile.php XoopsModules/tad_form/trunk/class/CreateZipFileMac.zip.php XoopsModules/tad_form/trunk/class/createzipfile-2007-07-21.zip XoopsModules/tad_form/trunk/class/exampleScript.php XoopsModules/tad_form/trunk/class/fckeditor/ XoopsModules/tad_form/trunk/class/fckeditor/editor/ XoopsModules/tad_form/trunk/class/fckeditor/editor/css/ XoopsModules/tad_form/trunk/class/fckeditor/editor/css/behaviors/ XoopsModules/tad_form/trunk/class/fckeditor/editor/css/behaviors/disablehandles.htc XoopsModules/tad_form/trunk/class/fckeditor/editor/css/behaviors/showtableborders.htc XoopsModules/tad_form/trunk/class/fckeditor/editor/css/fck_editorarea.css XoopsModules/tad_form/trunk/class/fckeditor/editor/css/fck_internal.css XoopsModules/tad_form/trunk/class/fckeditor/editor/css/fck_showtableborders_gecko.css XoopsModules/tad_form/trunk/class/fckeditor/editor/css/images/ XoopsModules/tad_form/trunk/class/fckeditor/editor/css/images/fck_anchor.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/css/images/fck_flashlogo.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/css/images/fck_hiddenfield.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/css/images/fck_pagebreak.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/common/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/common/fck_dialog_common.css XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/common/fck_dialog_common.js XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/common/fcknumericfield.htc XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/common/images/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/common/images/locked.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/common/images/reset.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/common/images/unlocked.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/common/moz-bindings.xml XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_about/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_about/logo_fredck.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_about.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_anchor.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_button.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_checkbox.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_colorselector.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_docprops/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_docprops.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_find.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_flash/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_flash/fck_flash.js XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_flash.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_form.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_hiddenfield.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_image/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_image/fck_image.js XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_image/fck_image_preview.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_image.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_link/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_link/fck_link.js XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_link.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_listprop.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_paste.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_radiobutton.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_replace.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_select/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_select/fck_select.js XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_select.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_smiley.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_source.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_specialchar.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/blank.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_spellerpages.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_table.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_tablecell.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_template/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_template/images/ XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_template/images/template1.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_template/images/template2.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_template/images/template3.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_template.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_textarea.html XoopsModules/tad_form/trunk/class/fckeditor/editor/dialog/fck_textfield.html XoopsModules/tad_form/trunk/class/fckeditor/editor/fckdebug.html XoopsModules/tad_form/trunk/class/fckeditor/editor/fckdialog.html XoopsModules/tad_form/trunk/class/fckeditor/editor/fckeditor.html XoopsModules/tad_form/trunk/class/fckeditor/editor/fckeditor.original.html XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/browser.css XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/browser.html XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/basexml.php XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/commands.php XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/config.php XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/io.php XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/util.php XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/test.html XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/frmactualfolder.html XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/frmfolders.html XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/frmresourceslist.html XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/frmresourcetype.html XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/frmupload.html XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/ButtonArrow.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/Folder.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/Folder32.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/FolderOpened.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/FolderOpened32.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/FolderUp.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/fla.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/gif.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/htm.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/html.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/jpg.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/js.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/mdb.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/mp3.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/pdf.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/ppt.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/rdp.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/swf.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/swt.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/txt.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/vsd.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/xls.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/xml.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/zip.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/ai.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/avi.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/bmp.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/cs.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/default.icon.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/dll.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/doc.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/exe.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/fla.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/gif.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/htm.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/html.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/jpg.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/js.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/mdb.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/mp3.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/pdf.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/png.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/ppt.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/rdp.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/swf.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/swt.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/txt.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/vsd.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/xls.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/xml.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/zip.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/images/spacer.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/js/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/js/common.js XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/browser/default/js/fckxml.js XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/upload/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/upload/php/ XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/upload/php/config.php XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/upload/php/upload.php XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/upload/php/util.php XoopsModules/tad_form/trunk/class/fckeditor/editor/filemanager/upload/test.html XoopsModules/tad_form/trunk/class/fckeditor/editor/images/ XoopsModules/tad_form/trunk/class/fckeditor/editor/images/anchor.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/arrow_ltr.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/arrow_rtl.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/ XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/ XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/angel_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/angry_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/broken_heart.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/cake.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/confused_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/cry_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/devil_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/embaressed_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/envelope.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/heart.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/kiss.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/lightbulb.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/omg_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/regular_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/sad_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/shades_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/teeth_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/thumbs_down.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/thumbs_up.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/tounge_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/smiley/msn/wink_smile.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/images/spacer.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/js/ XoopsModules/tad_form/trunk/class/fckeditor/editor/js/fckeditorcode_gecko.js XoopsModules/tad_form/trunk/class/fckeditor/editor/js/fckeditorcode_ie.js XoopsModules/tad_form/trunk/class/fckeditor/editor/lang/ XoopsModules/tad_form/trunk/class/fckeditor/editor/lang/_translationstatus.txt XoopsModules/tad_form/trunk/class/fckeditor/editor/lang/en.js XoopsModules/tad_form/trunk/class/fckeditor/editor/lang/zh-cn.js XoopsModules/tad_form/trunk/class/fckeditor/editor/lang/zh.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/20062020_20061221.diff XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/ChangeLog XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/Files.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/GD.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/IM.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/ImageEditor.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/ImageManager.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/NetPBM.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/Thumbnail.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/Transform.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/api.watermark.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/package.xml XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/README.txt XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/EditorContent.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/ImageEditor.css XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/blank.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/dialog.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editor.css XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editor.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editorFrame.css XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editorFrame.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/hover.htc XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/imagelist.css XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/images.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/manager.css XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/manager.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/pngbehavior.htc XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/popup.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/slider.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/wz_dragdrop.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/assets/wz_jsgraphics.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/config.inc.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/editor.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/editorFrame.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/fckplugin.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/icon.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/images.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/2x2.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/2x2_w.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/backgroundGrid.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/btnFolderNew.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/btnFolderUp.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/btn_cancel.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/btn_ok.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/crop.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/default.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/div.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/dots.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/edit_active.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/edit_pencil.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/edit_trash.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/folder.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/hand.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/islocked2.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/locked.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/measure.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/noimages.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/replace.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/rotate.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/save.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/scale.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/spacer.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/t_black.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/t_white.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/transparentpixel.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/unlocked.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/unlocked2.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/devshed.png XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/imageManager.jpg XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/imageManager.png XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/natureWatermark.png XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermarkAlign.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermarkColor.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/de.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/en.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/fr.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/nl.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/no.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/pl.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/ru.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/sv.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/lang/zh.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/manager.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/newFolder.html XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/ImageManager/thumbs.php XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/autogrow/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/autogrow/fckplugin.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/fck_placeholder.html XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/fckplugin.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/lang/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/lang/de.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/lang/en.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/lang/fr.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/lang/it.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/lang/pl.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/placeholder/placeholder.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/simplecommands/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/simplecommands/fckplugin.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/summary/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/summary/fckplugin.js XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/summary/summary.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/tablecommands/ XoopsModules/tad_form/trunk/class/fckeditor/editor/plugins/tablecommands/fckplugin.js XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/ XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/_fckviewstrips.html XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/ XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/fck_dialog.css XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/fck_editor.css XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/fck_strip.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/images/ XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/images/toolbar.arrowright.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/images/toolbar.buttonarrow.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/images/toolbar.collapse.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/images/toolbar.end.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/images/toolbar.expand.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/images/toolbar.separator.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/default/images/toolbar.start.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/ XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/fck_dialog.css XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/fck_editor.css XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/fck_strip.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/images/ XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.arrowright.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.bg.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.buttonarrow.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.collapse.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.end.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.expand.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.separator.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.start.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/ XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/fck_dialog.css XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/fck_editor.css XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/fck_strip.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/images/ XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/images/toolbar.arrowright.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/images/toolbar.collapse.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/images/toolbar.end.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/images/toolbar.expand.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/images/toolbar.separator.gif XoopsModules/tad_form/trunk/class/fckeditor/editor/skins/silver/images/toolbar.start.gif XoopsModules/tad_form/trunk/class/fckeditor/fckconfig.js XoopsModules/tad_form/trunk/class/fckeditor/fckeditor.js XoopsModules/tad_form/trunk/class/fckeditor/fckeditor.php XoopsModules/tad_form/trunk/class/fckeditor/fckeditor_php4.php XoopsModules/tad_form/trunk/class/fckeditor/fckeditor_php5.php XoopsModules/tad_form/trunk/class/fckeditor/fckpackager.xml XoopsModules/tad_form/trunk/class/fckeditor/fckstyles.xml XoopsModules/tad_form/trunk/class/fckeditor/fcktemplates.xml XoopsModules/tad_form/trunk/class/fckeditor/htaccess.txt XoopsModules/tad_form/trunk/class/fckeditor/index.html XoopsModules/tad_form/trunk/class/fckeditor/license.txt XoopsModules/tad_form/trunk/class/formValidator/ XoopsModules/tad_form/trunk/class/formValidator/DateTimeMask.js XoopsModules/tad_form/trunk/class/formValidator/datepicker/ XoopsModules/tad_form/trunk/class/formValidator/datepicker/My97DatePicker.htm XoopsModules/tad_form/trunk/class/formValidator/datepicker/WdatePicker.js XoopsModules/tad_form/trunk/class/formValidator/datepicker/calendar.js XoopsModules/tad_form/trunk/class/formValidator/datepicker/config.js XoopsModules/tad_form/trunk/class/formValidator/datepicker/lang/ XoopsModules/tad_form/trunk/class/formValidator/datepicker/lang/en.js XoopsModules/tad_form/trunk/class/formValidator/datepicker/lang/zh-cn.js XoopsModules/tad_form/trunk/class/formValidator/datepicker/lang/zh-tw.js XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/ XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/WdatePicker.css XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/ XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/Thumbs.db XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/bg.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/btnbg.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/datepicker.css XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/down.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/left.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/navLeft.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/navRight.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/qs.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/right.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/up.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/datePicker.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/ XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/Thumbs.db XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/datepicker.css XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/down.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/left.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/navLeft.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/navRight.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/qs.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/right.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/up.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/ XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/Thumbs.db XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/bg.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/datepicker.css XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/down.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/left.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/navLeft.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/navRight.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/qs.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/right.gif XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/up.jpg XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/ymbg.jpg XoopsModules/tad_form/trunk/class/formValidator/formValidator.js XoopsModules/tad_form/trunk/class/formValidator/formValidatorRegex.js XoopsModules/tad_form/trunk/class/formValidator/formValidator_min.js XoopsModules/tad_form/trunk/class/formValidator/images/ XoopsModules/tad_form/trunk/class/formValidator/images/loading.gif XoopsModules/tad_form/trunk/class/formValidator/images/reg1.gif XoopsModules/tad_form/trunk/class/formValidator/images/reg2.gif XoopsModules/tad_form/trunk/class/formValidator/images/reg3.gif XoopsModules/tad_form/trunk/class/formValidator/images/reg4.gif XoopsModules/tad_form/trunk/class/formValidator/index.html XoopsModules/tad_form/trunk/class/formValidator/jquery_last.js XoopsModules/tad_form/trunk/class/formValidator/loading.gif XoopsModules/tad_form/trunk/class/formValidator/site.js XoopsModules/tad_form/trunk/class/formValidator/style/ XoopsModules/tad_form/trunk/class/formValidator/style/validator.css XoopsModules/tad_form/trunk/class/formValidator/style/validatorAuto.css XoopsModules/tad_form/trunk/class/formValidator/style.css XoopsModules/tad_form/trunk/class/formValidator/tab.png XoopsModules/tad_form/trunk/class/formValidator/ui.tabs.css XoopsModules/tad_form/trunk/class/formValidator/ui.tabs.js XoopsModules/tad_form/trunk/class/index.html XoopsModules/tad_form/trunk/class/menu/ XoopsModules/tad_form/trunk/class/menu/index.html XoopsModules/tad_form/trunk/class/menu/js/ XoopsModules/tad_form/trunk/class/menu/js/adminmenu.js XoopsModules/tad_form/trunk/class/menu/js/adminmenu_src.js XoopsModules/tad_form/trunk/class/menu/js/ie5.js XoopsModules/tad_form/trunk/class/menu/js/index.html XoopsModules/tad_form/trunk/class/menu/js/menu.css XoopsModules/tad_form/trunk/class/menu/js/menuarrow1.gif XoopsModules/tad_form/trunk/class/menu/js/menuarrow2.gif XoopsModules/tad_form/trunk/class/menu/menu_function.php XoopsModules/tad_form/trunk/class/ods/ XoopsModules/tad_form/trunk/class/ods/content.xml XoopsModules/tad_form/trunk/class/ods/ods.zip XoopsModules/tad_form/trunk/function.php XoopsModules/tad_form/trunk/header.php XoopsModules/tad_form/trunk/images/ XoopsModules/tad_form/trunk/images/001_05.gif XoopsModules/tad_form/trunk/images/001_06.gif XoopsModules/tad_form/trunk/images/1leftarrow.gif XoopsModules/tad_form/trunk/images/1rightarrow.gif XoopsModules/tad_form/trunk/images/2leftarrow.gif XoopsModules/tad_form/trunk/images/2rightarrow.gif XoopsModules/tad_form/trunk/images/add.gif XoopsModules/tad_form/trunk/images/bbg.jpg XoopsModules/tad_form/trunk/images/bbg2.jpg XoopsModules/tad_form/trunk/images/del.gif XoopsModules/tad_form/trunk/images/edit.gif XoopsModules/tad_form/trunk/images/enable.gif XoopsModules/tad_form/trunk/images/index.html XoopsModules/tad_form/trunk/images/logo.png XoopsModules/tad_form/trunk/images/panel.jpg XoopsModules/tad_form/trunk/images/star.png XoopsModules/tad_form/trunk/images/unable.gif XoopsModules/tad_form/trunk/include/ XoopsModules/tad_form/trunk/include/onInstall.php XoopsModules/tad_form/trunk/include/onUninstall.php XoopsModules/tad_form/trunk/include/onUpdate.php XoopsModules/tad_form/trunk/index.php XoopsModules/tad_form/trunk/language/ XoopsModules/tad_form/trunk/language/english/ XoopsModules/tad_form/trunk/language/english/admin.php XoopsModules/tad_form/trunk/language/english/blocks.php XoopsModules/tad_form/trunk/language/english/index.html XoopsModules/tad_form/trunk/language/english/main.php XoopsModules/tad_form/trunk/language/english/modinfo.php XoopsModules/tad_form/trunk/language/index.html XoopsModules/tad_form/trunk/language/tchinese/ XoopsModules/tad_form/trunk/language/tchinese/admin.php XoopsModules/tad_form/trunk/language/tchinese/blocks.php XoopsModules/tad_form/trunk/language/tchinese/index.html XoopsModules/tad_form/trunk/language/tchinese/main.php XoopsModules/tad_form/trunk/language/tchinese/modinfo.php XoopsModules/tad_form/trunk/language/tchinese_utf8/ XoopsModules/tad_form/trunk/language/tchinese_utf8/admin.php XoopsModules/tad_form/trunk/language/tchinese_utf8/blocks.php XoopsModules/tad_form/trunk/language/tchinese_utf8/index.html XoopsModules/tad_form/trunk/language/tchinese_utf8/main.php XoopsModules/tad_form/trunk/language/tchinese_utf8/modinfo.php XoopsModules/tad_form/trunk/module.css XoopsModules/tad_form/trunk/sql/ XoopsModules/tad_form/trunk/sql/index.html XoopsModules/tad_form/trunk/sql/mysql.sql XoopsModules/tad_form/trunk/templates/ XoopsModules/tad_form/trunk/templates/blocks/ XoopsModules/tad_form/trunk/templates/blocks/index.html XoopsModules/tad_form/trunk/templates/blocks/tad_form.html XoopsModules/tad_form/trunk/templates/blocks/tad_one_form.html XoopsModules/tad_form/trunk/templates/index.html XoopsModules/tad_form/trunk/templates/index_tpl.html XoopsModules/tad_form/trunk/xoops_version.php Added: XoopsModules/tad_form/trunk/admin/add.php =================================================================== --- XoopsModules/tad_form/trunk/admin/add.php (rev 0) +++ XoopsModules/tad_form/trunk/admin/add.php 2009-08-27 18:37:28 UTC (rev 3508) @@ -0,0 +1,454 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 tad \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-06-25 +// $Id: function.php,v 1.1 2008/05/14 01:22:08 tad Exp $ +// ------------------------------------------------------------------------- // + +/*-----------\xA4ޤJ\xC0ɮװ\xCF--------------*/ +include "../../../include/cp_header.php"; +include "../function.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; + +/*-----------function\xB0\xCF--------------*/ +//tad_form_main\xBDs\xBF\xE8\xAA\xED\xB3\xE6 +function tad_form_main_form($ofsn=""){ + global $xoopsDB; + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + + //\xA7\xEC\xA8\xFA\xB9w\xB3]\xAD\xC8 + if(!empty($ofsn)){ + $DBV=get_tad_form_main($ofsn); + }else{ + $DBV=array(); + } + + //\xB9w\xB3]\xADȳ]\xA9w + + $ofsn=(!isset($DBV['ofsn']))?"":$DBV['ofsn']; + $title=(!isset($DBV['title']))?"":$DBV['title']; + $start_date=(!isset($DBV['start_date']))?"":$DBV['start_date']; + $end_date=(!isset($DBV['end_date']))?"":$DBV['end_date']; + $content=(!isset($DBV['content']))?"":$DBV['content']; + $uid=(!isset($DBV['uid']))?"":$DBV['uid']; + $post_date=(!isset($DBV['post_date']))?"":$DBV['post_date']; + $enable=(!isset($DBV['enable']))?"":$DBV['enable']; + $sign_group=(!isset($DBV['sign_group']))?"":explode(",",$DBV['sign_group']); + $kind=(!isset($DBV['kind']))?"":$DBV['kind']; + + $SelectGroup_name = new XoopsFormSelectGroup("", "sign_group", false,$sign_group, 5, true); + $SelectGroup_name->addOption("", _MA_TADFORM_ANONYMOUS, false); + $sign_group = $SelectGroup_name->render(); + + include(XOOPS_ROOT_PATH."/modules/tad_form/class/fckeditor/fckeditor.php") ; + $oFCKeditor = new FCKeditor('content') ; + $oFCKeditor->BasePath = XOOPS_URL."/modules/tad_form/class/fckeditor/" ; + $oFCKeditor->Config['AutoDetectLanguage']=false; + $oFCKeditor->Config['DefaultLanguage'] = 'zh' ; + $oFCKeditor->ToolbarSet ='my'; + $oFCKeditor->Width = '600' ; + $oFCKeditor->Height = '150' ; + $oFCKeditor->Value =$content; + $editor=$oFCKeditor->CreateHtml() ; + + + $op=(empty($ofsn))?"insert_tad_form_main":"update_tad_form_main"; + + $next=(empty($ofsn))?"<input type='checkbox' name='edit_option' value='1' checked>"._MA_TADFORM_EDIT_OPTION:""; + + $kind_menu=kind_menu($kind); + + //$op="replace_tad_form_main"; + $main=" + <link type='text/css' rel='stylesheet' href='".XOOPS_URL."/modules/tad_form/class/formValidator/style/validator.css'> + <script src='".XOOPS_URL."/modules/tad_form/class/formValidator/jquery_last.js' type='text/javascript'></script> + <script src='".XOOPS_URL."/modules/tad_form/class/formValidator/formValidator.js' type='text/javascript' charset='UTF-8'></script> + <script src='".XOOPS_URL."/modules/tad_form/class/formValidator/formValidatorRegex.js' type='text/javascript' charset='UTF-8'></script> + <script src='".XOOPS_URL."/modules/tad_form/class/formValidator/DateTimeMask.js' language='javascript' type='text/javascript'></script> + <script type='text/javascript'> + $(document).ready(function(){ + $.formValidator.initConfig({formid:'myForm',onerror:function(msg){alert(msg)}}); + + + + //\xA1ustart_date\xA1v\xC4\xE6\xA6\xEC\xC0ˬd + $('#start_date').focus(function(){ + WdatePicker({ + skin:'whyGreen', + oncleared:function(){\$(this).blur();}, + onpicked:function(){\$(this).blur();} + }) + }); + + //\xA1uend_date\xA1v\xC4\xE6\xA6\xEC\xC0ˬd + $('#end_date').focus(function(){ + WdatePicker({ + skin:'whyGreen', + oncleared:function(){\$(this).blur();}, + onpicked:function(){\$(this).blur();} + }) + }); + }); + </script> + <script defer='defer' src='".XOOPS_URL."/modules/tad_form/class/formValidator/datepicker/WdatePicker.js' type='text/javascript'></script> + <form action='{$_SERVER['PHP_SELF']}' method='post' id='myForm' enctype='multipart/form-data'> + <table class='form_tbl'> + <tr><td class='title' nowrap>"._MA_TADFORM_TITLE."</td> + <td class='col' colspan=3><input type='text' name='title' size='30' value='{$title}' style='width:100%;'></td></tr> + <tr><td class='title' nowrap>"._MA_TADFORM_KIND."</td><td class='col'><select name='kind'>{$kind_menu}</select></td><td class='title' nowrap rowspan=3>"._MA_TADFORM_SIGN_GROUP."</td> + <td class='col' rowspan=3>{$sign_group}</td></tr> + <tr> + <td class='title' nowrap>"._MA_TADFORM_START_DATE."</td> + <td class='col'><input type='text' name='start_date' id='start_date' value='$start_date'></td></tr> + <tr><td class='title' nowrap>"._MA_TADFORM_END_DATE."</td> + <td class='col'><input type='text' name='end_date' id='end_date' value='$end_date'></td></tr> + + <tr><td class='title' nowrap>"._MA_TADFORM_CONTENT."</td> + <td class='col' colspan=3>$editor</td></tr> + + <tr><td class='bar' colspan='4'> + <input type='hidden' name='enable' value='{$enable}'> + <input type='hidden' name='ofsn' value='{$ofsn}'> + <input type='hidden' name='op' value='{$op}'> + + $next + <input type='submit' value='"._MA_SAVE."'></td></tr> + </table> + </form>"; + + $main=div_3d(_MA_INPUT_FORM,$main); + + return $main; +} + + +//\xAA\xED\xB3\xE6\xA5γ~ +function kind_menu($db_kind=""){ + $kind_array['application']=_MA_TADFORM_KIND1; + $kind_array['examination']=_MA_TADFORM_KIND2; + $opt="<option value=''>"._MA_TADFORM_KIND0."</option>"; + foreach($kind_array as $kind=>$kind_txt){ + $selected=($db_kind==$kind)?"selected":""; + $opt.="<option value='$kind' $selected>$kind_txt</option>"; + } + return $opt; +} + +//\xB7s\xBCW\xB8\xEA\xAEƨ\xECtad_form_main\xA4\xA4 +function insert_tad_form_main(){ + global $xoopsDB,$xoopsUser; + $uid=$xoopsUser->getVar('uid'); + $sign_group=(in_array("",$_POST['sign_group']))?"":implode(",",$_POST['sign_group']); + //$now=date("Y-m-d H:i:s" , xoops_getUserTimestamp(time())); + + $sql = "insert into ".$xoopsDB->prefix("tad_form_main")." (`title`,`start_date`,`end_date`,`content`,`uid`,`post_date`,`enable`,`sign_group`,`kind`) values('{$_POST['title']}','{$_POST['start_date']}','{$_POST['end_date']}','{$_POST['content']}','{$uid}',now(),'{$_POST['enable']}','{$sign_group}','{$_POST['kind']}')"; + $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + //\xA8\xFA\xB1o\xB3̫\xE1\xB7s\xBCW\xB8\xEA\xAEƪ\xBA\xACy\xA4\xF4\xBDs\xB8\xB9 + $ofsn=$xoopsDB->getInsertId(); + return $ofsn; +} + +//\xA7\xF3\xB7stad_form_main\xACY\xA4@\xB5\xA7\xB8\xEA\xAE\xC6 +function update_tad_form_main($ofsn=""){ + global $xoopsDB; + $sign_group=(in_array("",$_POST['sign_group']))?"":implode(",",$_POST['sign_group']); + //$now=date("Y-m-d H:i:s" , xoops_getUserTimestamp(time())); + $sql = "update ".$xoopsDB->prefix("tad_form_main")." set `title` = '{$_POST['title']}', `start_date` = '{$_POST['start_date']}', `end_date` = '{$_POST['end_date']}', `content` = '{$_POST['content']}', `post_date` = now(), `enable` = '{$_POST['enable']}', `sign_group` = '{$sign_group}', `kind` = '{$_POST['kind']}' where ofsn='$ofsn'"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + return $ofsn; +} + + + + +/*************************************\xC4\xE6\xA6쳡\xA5\xF7****************************************/ + + + + +//tad_form_col\xBDs\xBF\xE8\xAA\xED\xB3\xE6 +function tad_form_col_form($the_ofsn="",$csn="",$mode=""){ + global $xoopsDB; + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + + //\xA7\xEC\xA8\xFA\xB9w\xB3]\xAD\xC8 + if(!empty($csn)){ + $DBV=get_tad_form_col($csn); + }else{ + $DBV=array(); + } + + $form=get_tad_form_main($the_ofsn); + + //\xB9w\xB3]\xADȳ]\xA9w + + $csn=(!isset($DBV['csn']))?"":$DBV['csn']; + $ofsn=(!isset($DBV['ofsn']))?$the_ofsn:$DBV['ofsn']; + $title=(!isset($DBV['title']))?"":$DBV['title']; + $descript=(!isset($DBV['descript']))?"":$DBV['descript']; + $kind=(!isset($DBV['kind']))?"":$DBV['kind']; + $size=(!isset($DBV['size']))?"":$DBV['size']; + $val=(!isset($DBV['val']))?"":$DBV['val']; + $chk=(!isset($DBV['chk']))?"":$DBV['chk']; + $func=(!isset($DBV['func']))?"":$DBV['func']; + $sort=(!isset($DBV['sort']))?get_max_sort($the_ofsn):$DBV['sort']; + + $op=(empty($csn))?"insert_tad_form_col":"update_tad_form_col"; + //$op="replace_tad_form_col"; + + $end_txt=(!empty($mode))?"<input type='hidden' name='mode' value='$mode'>":"<input type='checkbox' name='end' value='1'>"._MA_TADFORM_COL_END.""; + + $main=" + <form action='{$_SERVER['PHP_SELF']}' method='post' id='myForm' enctype='multipart/form-data'> + <table class='form_tbl'> + + <input type='hidden' name='csn' value='{$csn}'> + <input type='hidden' name='ofsn' value='{$ofsn}'> + <tr><td class='title' nowrap>"._MA_TADFORM_COL_TITLE."</td> + <td class='col' colspan=3><input type='text' name='title' size='70' value='{$title}'></td></tr> + <tr><td class='title' nowrap>"._MA_TADFORM_COL_DESCRIPT."</td> + <td class='col' colspan=3><textarea name='descript' cols='50' rows=4>{$descript}</textarea></td></tr> + <tr><td class='title' nowrap>"._MA_TADFORM_COL_KIND."</td> + <td class='col'><select name='kind' size=1> + <option value='text' ".chk($kind,'text','1','selected').">"._MA_TADFORM_COL_TEXT."</option> + <option value='radio' ".chk($kind,'radio','0','selected').">"._MA_TADFORM_COL_RADIO."</option> + <option value='checkbox' ".chk($kind,'checkbox','0','selected').">"._MA_TADFORM_COL_CHECKBOX."</option> + <option value='select' ".chk($kind,'select','0','selected').">"._MA_TADFORM_COL_SELECT."</option> + <option value='textarea' ".chk($kind,'textarea','0','selected').">"._MA_TADFORM_COL_TEXTAREA."</option> + <option value='fck' ".chk($kind,'fck','0','selected').">"._MA_TADFORM_COL_FCK."</option> + </select></td> + <td class='title' nowrap>"._MA_TADFORM_COL_VAL."</td> + <td class='col'><input type='text' name='val' size='10' value='{$val}'> + </tr> + + + <tr><td class='title' nowrap>"._MA_TADFORM_COL_SIZE."</td> + <td class='col'><input type='text' name='size' size='40' value='{$size}'></td></td> + + <td class='title' nowrap>"._MA_TADFORM_COL_CHK."</td> + <td class='col'> + <input type='radio' name='chk' value='1' ".chk($chk,'1').">"._MA_TADFORM_YES." + <input type='radio' name='chk' value='0' ".chk($chk,'0').">"._MA_TADFORM_NO."</td></tr> + + <tr><td class='title' nowrap>"._MA_TADFORM_COL_SORT."</td> + <td class='col'><input type='text' name='sort' size='4' value='{$sort}'></td> + <td class='title' nowrap>"._MA_TADFORM_COL_FUNC."</td> + <td class='col'><select name='func' size=1> + <option value='' ".chk($func,'','1','selected').">"._MA_TADFORM_COL_NO_FUN."</option> + <option value='sum' ".chk($func,'sum','0','selected').">"._MA_TADFORM_COL_SUM."</option> + <option value='avg' ".chk($func,'avg','0','selected').">"._MA_TADFORM_COL_AVG."</option> + <option value='count' ".chk($func,'count','0','selected').">"._MA_TADFORM_COL_COUNT."</option> + </select></td></tr> + + <tr><td class='bar' colspan='4'> + <input type='hidden' name='op' value='{$op}'> + $end_txt + + <input type='submit' value='"._MA_SAVE."'></td></tr> + <tr><td colspan='4'>"._MA_TADFORM_COL_NOTE."</td></tr> + </table> + </form>"; + + $main=div_3d($form['title']._MA_INPUT_COL_FORM,$main); + + return $main; +} + + +//\xA6۰ʨ\xFA\xB1o\xB1Ƨ\xC7 +function get_max_sort($ofsn=""){ + global $xoopsDB; + $sql = "select max(sort) from ".$xoopsDB->prefix("tad_form_col")." where ofsn={$ofsn}"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()."<br>$sql"); + list($sort)=$xoopsDB->fetchRow($result); + return ++$sort; + +} + +//\xB7s\xBCW\xB8\xEA\xAEƨ\xECtad_form_col\xA4\xA4 +function insert_tad_form_col(){ + global $xoopsDB; + $sql = "insert into ".$xoopsDB->prefix("tad_form_col")." (`ofsn`,`title`,`descript`,`kind`,`size`,`val`,`chk`,`func`,`sort`) values('{$_POST['ofsn']}','{$_POST['title']}','{$_POST['descript']}','{$_POST['kind']}','{$_POST['size']}','{$_POST['val']}','{$_POST['chk']}','{$_POST['func']}','{$_POST['sort']}')"; + $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + //\xA8\xFA\xB1o\xB3̫\xE1\xB7s\xBCW\xB8\xEA\xAEƪ\xBA\xACy\xA4\xF4\xBDs\xB8\xB9 + $csn=$xoopsDB->getInsertId(); + return $csn; +} + + +//\xA5H\xACy\xA4\x{138E68}\xFA\xB1o\xACY\xB5\xA7tad_form_col\xB8\xEA\xAE\xC6 +function get_tad_form_col($csn=""){ + global $xoopsDB; + if(empty($csn))return; + $sql = "select * from ".$xoopsDB->prefix("tad_form_col")." where csn='$csn'"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + $data=$xoopsDB->fetchArray($result); + return $data; +} + +//\xA7\xF3\xB7stad_form_col\xACY\xA4@\xB5\xA7\xB8\xEA\xAE\xC6 +function update_tad_form_col($csn=""){ + global $xoopsDB; + $sql = "update ".$xoopsDB->prefix("tad_form_col")." set `ofsn` = '{$_POST['ofsn']}', `title` = '{$_POST['title']}', `descript` = '{$_POST['descript']}', `kind` = '{$_POST['kind']}', `size` = '{$_POST['size']}', `val` = '{$_POST['val']}', `chk` = '{$_POST['chk']}', `func` = '{$_POST['func']}', `sort` = '{$_POST['sort']}' where csn='$csn'"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + return $csn; +} + +//\xA7R\xB0\xA3tad_form_col\xACY\xB5\xA7\xB8\xEA\xAEƸ\xEA\xAE\xC6 +function delete_tad_form_col($csn=""){ + global $xoopsDB; + $sql = "delete from ".$xoopsDB->prefix("tad_form_col")." where csn='$csn'"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); +} + +//\xBDs\xBF\xE8\xC3D\xA5\xD8 +function edit_all_opt($ofsn=""){ + global $xoopsDB,$col_type; + + $sql = "select csn,title,descript,kind,size,val,chk,func,sort from ".$xoopsDB->prefix("tad_form_col")." where ofsn='{$ofsn}' order by sort"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + $i=1; + $main=" + + <script> + function delete_tad_col_func(csn){ + var sure = window.confirm('"._BP_DEL_CHK."'); + if (!sure) return; + location.href=\"{$_SERVER['PHP_SELF']}?op=delete_tad_form_col&ofsn=$ofsn&csn=\" + csn; + } + </script> + <form action='{$_SERVER['PHP_SELF']}' method='post' id='myForm' enctype='multipart/form-data'> + <table id='tbl'> + <tr> + <th>"._MA_TADFORM_COL_SORT."</th> + <th>"._MA_TADFORM_COL_TITLE." ("._MA_TADFORM_COL_DESCRIPT.")</th> + <th>"._MA_TADFORM_COL_KIND."</th> + <th>"._MA_TADFORM_COL_SIZE."</th> + <th>"._MA_TADFORM_COL_VAL."</th> + <th>"._MA_TADFORM_COL_CHK."</th> + <th>"._MA_TADFORM_COL_FUNC."</th> + <th>"._BP_FUNCTION."</th> + </tr>"; + while(list($csn,$title,$descript,$kind,$size,$val,$chk,$func,$sort)=$xoopsDB->fetchRow($result)){ + $descript=(empty($descript))?"":"({$descript})"; + $main.="<tr> + <td><input type='text' name='sort[$csn]' value='{$sort}' size=3></td> + <td><span class='question'><b>$title</b></span><br><span class='note'>{$descript}</span></td> + <td>{$col_type[$kind]}</td> + <td>".str_replace(";","<br>",$size)."</td> + <td>$val</td> + <td>$chk</td> + <td>$func</td> + <td><a href='add.php?op=edit_opt&ofsn=$ofsn&csn=$csn&mode=modify' style='color:#0066CC;'>"._BP_EDIT."</a> | + <a href=\"javascript:delete_tad_col_func($csn);\" style='color:red;'>"._BP_DEL."</a> + + </td> + </tr>"; + } + $main.="</table> + + <input type='hidden' name='ofsn' value='$ofsn'> + <input type='hidden' name='op' value='update_sort'> + <input type='button' value='"._MA_TADFORM_ADD_COL."' onClick=\"window.location.href='add.php?op=edit_opt&ofsn={$ofsn}'\" style='font-size:16px;padding:4px;float:right;'> + <input type='submit' value='"._MA_SAVE."' style='font-size:16px;padding:4px;'> + </form> + "; + + $main=div_3d("",$main,"corners"); + return $main; +} + +//\xA7\xF3\xB7s\xB1Ƨ\xC7 +function update_sort(){ + global $xoopsDB; + foreach($_PO... [truncated message content] |
From: <be...@us...> - 2009-08-27 18:46:45
|
Revision: 3509 http://xoops.svn.sourceforge.net/xoops/?rev=3509&view=rev Author: beckmi Date: 2009-08-27 18:46:26 +0000 (Thu, 27 Aug 2009) Log Message: ----------- Adding TadPlayer Module Added Paths: ----------- XoopsModules/tad_player/ XoopsModules/tad_player/branches/ XoopsModules/tad_player/releases/ XoopsModules/tad_player/trunk/ XoopsModules/tad_player/trunk/admin/ XoopsModules/tad_player/trunk/admin/.htaccess XoopsModules/tad_player/trunk/admin/autoupdate/ XoopsModules/tad_player/trunk/admin/autoupdate/update1.php XoopsModules/tad_player/trunk/admin/autoupdate/update2.php XoopsModules/tad_player/trunk/admin/batch_upload.php XoopsModules/tad_player/trunk/admin/cate.php XoopsModules/tad_player/trunk/admin/htaccess.zip XoopsModules/tad_player/trunk/admin/index.html XoopsModules/tad_player/trunk/admin/index.php XoopsModules/tad_player/trunk/admin/menu.php XoopsModules/tad_player/trunk/admin/update.php XoopsModules/tad_player/trunk/admin/upload.php XoopsModules/tad_player/trunk/blocks/ XoopsModules/tad_player/trunk/blocks/index.html XoopsModules/tad_player/trunk/blocks/tad_hot_media.php XoopsModules/tad_player/trunk/blocks/tad_new_media.php XoopsModules/tad_player/trunk/blocks/tad_play_list.php XoopsModules/tad_player/trunk/blocks/tad_player.php XoopsModules/tad_player/trunk/class/ XoopsModules/tad_player/trunk/class/ajax.js XoopsModules/tad_player/trunk/class/chained_selects.js XoopsModules/tad_player/trunk/class/context-menu.js XoopsModules/tad_player/trunk/class/fckeditor/ XoopsModules/tad_player/trunk/class/fckeditor/editor/ XoopsModules/tad_player/trunk/class/fckeditor/editor/css/ XoopsModules/tad_player/trunk/class/fckeditor/editor/css/behaviors/ XoopsModules/tad_player/trunk/class/fckeditor/editor/css/behaviors/disablehandles.htc XoopsModules/tad_player/trunk/class/fckeditor/editor/css/behaviors/showtableborders.htc XoopsModules/tad_player/trunk/class/fckeditor/editor/css/fck_editorarea.css XoopsModules/tad_player/trunk/class/fckeditor/editor/css/fck_internal.css XoopsModules/tad_player/trunk/class/fckeditor/editor/css/fck_showtableborders_gecko.css XoopsModules/tad_player/trunk/class/fckeditor/editor/css/images/ XoopsModules/tad_player/trunk/class/fckeditor/editor/css/images/fck_anchor.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/css/images/fck_flashlogo.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/css/images/fck_hiddenfield.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/css/images/fck_pagebreak.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/common/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/common/fck_dialog_common.css XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/common/fck_dialog_common.js XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/common/fcknumericfield.htc XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/common/images/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/common/images/locked.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/common/images/reset.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/common/images/unlocked.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/common/moz-bindings.xml XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_about/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_about/logo_fredck.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_about.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_anchor.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_button.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_checkbox.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_colorselector.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_docprops/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_docprops.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_find.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_flash/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_flash/fck_flash.js XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_flash.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_form.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_hiddenfield.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_image/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_image/fck_image.js XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_image/fck_image_preview.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_image.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_link/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_link/fck_link.js XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_link.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_listprop.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_paste.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_radiobutton.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_replace.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_select/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_select/fck_select.js XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_select.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_smiley.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_source.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_specialchar.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/blank.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_spellerpages.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_table.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_tablecell.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_template/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_template/images/ XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_template/images/template1.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_template/images/template2.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_template/images/template3.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_template.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_textarea.html XoopsModules/tad_player/trunk/class/fckeditor/editor/dialog/fck_textfield.html XoopsModules/tad_player/trunk/class/fckeditor/editor/fckdebug.html XoopsModules/tad_player/trunk/class/fckeditor/editor/fckdialog.html XoopsModules/tad_player/trunk/class/fckeditor/editor/fckeditor.html XoopsModules/tad_player/trunk/class/fckeditor/editor/fckeditor.original.html XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/browser.css XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/browser.html XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/basexml.php XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/commands.php XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/config.php XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/io.php XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/util.php XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/test.html XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/frmactualfolder.html XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/frmfolders.html XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/frmresourceslist.html XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/frmresourcetype.html XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/frmupload.html XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/ButtonArrow.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/Folder.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/Folder32.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/FolderOpened.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/FolderOpened32.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/FolderUp.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/fla.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/gif.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/htm.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/html.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/jpg.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/js.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/mdb.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/mp3.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/pdf.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/ppt.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/rdp.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/swf.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/swt.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/txt.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/vsd.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/xls.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/xml.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/zip.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/ai.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/avi.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/bmp.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/cs.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/default.icon.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/dll.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/doc.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/exe.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/fla.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/gif.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/htm.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/html.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/jpg.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/js.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/mdb.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/mp3.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/pdf.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/png.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/ppt.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/rdp.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/swf.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/swt.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/txt.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/vsd.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/xls.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/xml.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/zip.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/images/spacer.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/js/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/js/common.js XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/browser/default/js/fckxml.js XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/upload/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/upload/php/ XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/upload/php/config.php XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/upload/php/upload.php XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/upload/php/util.php XoopsModules/tad_player/trunk/class/fckeditor/editor/filemanager/upload/test.html XoopsModules/tad_player/trunk/class/fckeditor/editor/images/ XoopsModules/tad_player/trunk/class/fckeditor/editor/images/anchor.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/arrow_ltr.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/arrow_rtl.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/ XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/ XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/angel_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/angry_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/broken_heart.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/cake.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/confused_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/cry_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/devil_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/embaressed_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/envelope.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/heart.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/kiss.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/lightbulb.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/omg_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/regular_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/sad_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/shades_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/teeth_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/thumbs_down.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/thumbs_up.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/tounge_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/smiley/msn/wink_smile.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/images/spacer.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/js/ XoopsModules/tad_player/trunk/class/fckeditor/editor/js/fckeditorcode_gecko.js XoopsModules/tad_player/trunk/class/fckeditor/editor/js/fckeditorcode_ie.js XoopsModules/tad_player/trunk/class/fckeditor/editor/lang/ XoopsModules/tad_player/trunk/class/fckeditor/editor/lang/_translationstatus.txt XoopsModules/tad_player/trunk/class/fckeditor/editor/lang/en.js XoopsModules/tad_player/trunk/class/fckeditor/editor/lang/zh-cn.js XoopsModules/tad_player/trunk/class/fckeditor/editor/lang/zh.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/20062020_20061221.diff XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/ChangeLog XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/Files.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/GD.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/IM.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/ImageEditor.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/ImageManager.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/NetPBM.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/Thumbnail.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/Transform.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/api.watermark.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/package.xml XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/README.txt XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/EditorContent.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/ImageEditor.css XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/blank.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/dialog.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editor.css XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editor.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editorFrame.css XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editorFrame.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/hover.htc XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/imagelist.css XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/images.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/manager.css XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/manager.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/pngbehavior.htc XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/popup.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/slider.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/wz_dragdrop.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/assets/wz_jsgraphics.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/config.inc.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/editor.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/editorFrame.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/fckplugin.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/icon.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/images.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/2x2.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/2x2_w.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/backgroundGrid.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/btnFolderNew.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/btnFolderUp.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/btn_cancel.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/btn_ok.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/crop.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/default.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/div.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/dots.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/edit_active.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/edit_pencil.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/edit_trash.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/folder.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/hand.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/islocked2.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/locked.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/measure.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/noimages.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/replace.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/rotate.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/save.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/scale.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/spacer.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/t_black.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/t_white.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/transparentpixel.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/unlocked.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/unlocked2.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/devshed.png XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/imageManager.jpg XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/imageManager.png XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/natureWatermark.png XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermarkAlign.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermarkColor.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/de.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/en.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/fr.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/nl.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/no.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/pl.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/ru.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/sv.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/lang/zh.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/manager.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/newFolder.html XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/ImageManager/thumbs.php XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/autogrow/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/autogrow/fckplugin.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/fck_placeholder.html XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/fckplugin.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/lang/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/lang/de.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/lang/en.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/lang/fr.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/lang/it.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/lang/pl.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/placeholder/placeholder.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/simplecommands/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/simplecommands/fckplugin.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/summary/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/summary/fckplugin.js XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/summary/summary.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/tablecommands/ XoopsModules/tad_player/trunk/class/fckeditor/editor/plugins/tablecommands/fckplugin.js XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/ XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/_fckviewstrips.html XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/ XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/fck_dialog.css XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/fck_editor.css XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/fck_strip.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/images/ XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/images/toolbar.arrowright.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/images/toolbar.buttonarrow.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/images/toolbar.collapse.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/images/toolbar.end.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/images/toolbar.expand.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/images/toolbar.separator.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/default/images/toolbar.start.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/ XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/fck_dialog.css XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/fck_editor.css XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/fck_strip.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/images/ XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.arrowright.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.bg.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.buttonarrow.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.collapse.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.end.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.expand.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.separator.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.start.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/ XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/fck_dialog.css XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/fck_editor.css XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/fck_strip.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/images/ XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/images/toolbar.arrowright.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/images/toolbar.collapse.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/images/toolbar.end.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/images/toolbar.expand.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/images/toolbar.separator.gif XoopsModules/tad_player/trunk/class/fckeditor/editor/skins/silver/images/toolbar.start.gif XoopsModules/tad_player/trunk/class/fckeditor/fckconfig.js XoopsModules/tad_player/trunk/class/fckeditor/fckeditor.js XoopsModules/tad_player/trunk/class/fckeditor/fckeditor.php XoopsModules/tad_player/trunk/class/fckeditor/fckeditor_php4.php XoopsModules/tad_player/trunk/class/fckeditor/fckeditor_php5.php XoopsModules/tad_player/trunk/class/fckeditor/fckpackager.xml XoopsModules/tad_player/trunk/class/fckeditor/fckstyles.xml XoopsModules/tad_player/trunk/class/fckeditor/fcktemplates.xml XoopsModules/tad_player/trunk/class/fckeditor/htaccess.txt XoopsModules/tad_player/trunk/class/fckeditor/index.html XoopsModules/tad_player/trunk/class/fckeditor/license.txt XoopsModules/tad_player/trunk/class/folder-tree-static.js XoopsModules/tad_player/trunk/class/index.html XoopsModules/tad_player/trunk/class/jquery.js XoopsModules/tad_player/trunk/class/jw_player/ XoopsModules/tad_player/trunk/class/jw_player/mediaplayer.swf XoopsModules/tad_player/trunk/class/jw_player/swfobject.js XoopsModules/tad_player/trunk/class/jw_player/xspf_example.xml XoopsModules/tad_player/trunk/class/mediaplayer/ XoopsModules/tad_player/trunk/class/mediaplayer/player.swf XoopsModules/tad_player/trunk/class/mediaplayer/preview.jpg XoopsModules/tad_player/trunk/class/mediaplayer/readme.html XoopsModules/tad_player/trunk/class/mediaplayer/swfobject.js XoopsModules/tad_player/trunk/class/mediaplayer/video.flv XoopsModules/tad_player/trunk/class/mediaplayer/yt.swf XoopsModules/tad_player/trunk/class/menu/ XoopsModules/tad_player/trunk/class/menu/index.html XoopsModules/tad_player/trunk/class/menu/js/ XoopsModules/tad_player/trunk/class/menu/js/adminmenu.js XoopsModules/tad_player/trunk/class/menu/js/adminmenu_src.js XoopsModules/tad_player/trunk/class/menu/js/ie5.js XoopsModules/tad_player/trunk/class/menu/js/index.html XoopsModules/tad_player/trunk/class/menu/js/menu.css XoopsModules/tad_player/trunk/class/menu/js/menuarrow1.gif XoopsModules/tad_player/trunk/class/menu/js/menuarrow2.gif XoopsModules/tad_player/trunk/class/menu/menu_function.php XoopsModules/tad_player/trunk/class/upload/ XoopsModules/tad_player/trunk/class/upload/LICENSE XoopsModules/tad_player/trunk/class/upload/class.upload.php XoopsModules/tad_player/trunk/class/upload/index.html XoopsModules/tad_player/trunk/class/upload/lang/ XoopsModules/tad_player/trunk/class/upload/lang/class.upload.de_DE.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.es_ES.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.fr_FR.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.it_IT.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.nl_NL.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.pl_PL.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.ro_RO.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.ru_RU.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.ru_RU.windows-1251.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.sv_SE.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.xx_XX.php XoopsModules/tad_player/trunk/class/upload/lang/class.upload.zh_TW.php XoopsModules/tad_player/trunk/class/upload/test/ XoopsModules/tad_player/trunk/class/upload/test.png XoopsModules/tad_player/trunk/class/upload/upload.php XoopsModules/tad_player/trunk/class/upload/watermark.png XoopsModules/tad_player/trunk/comment_delete.php XoopsModules/tad_player/trunk/comment_edit.php XoopsModules/tad_player/trunk/comment_new.php XoopsModules/tad_player/trunk/comment_post.php XoopsModules/tad_player/trunk/comment_reply.php XoopsModules/tad_player/trunk/function.php XoopsModules/tad_player/trunk/get_list.php XoopsModules/tad_player/trunk/header.php XoopsModules/tad_player/trunk/images/ XoopsModules/tad_player/trunk/images/1leftarrow.gif XoopsModules/tad_player/trunk/images/1rightarrow.gif XoopsModules/tad_player/trunk/images/2leftarrow.gif XoopsModules/tad_player/trunk/images/2rightarrow.gif XoopsModules/tad_player/trunk/images/3d_div_body.gif XoopsModules/tad_player/trunk/images/3d_div_left.gif XoopsModules/tad_player/trunk/images/3d_div_right.gif XoopsModules/tad_player/trunk/images/Thumbs.db XoopsModules/tad_player/trunk/images/add.gif XoopsModules/tad_player/trunk/images/admin.png XoopsModules/tad_player/trunk/images/admin2.png XoopsModules/tad_player/trunk/images/bbg.jpg XoopsModules/tad_player/trunk/images/bbg2.jpg XoopsModules/tad_player/trunk/images/bg-bubplastic-button.gif XoopsModules/tad_player/trunk/images/bg-bubplastic-h-aqua.gif XoopsModules/tad_player/trunk/images/bg-bubplastic-h-blue.gif XoopsModules/tad_player/trunk/images/bg-bubplastic-h-gray.gif XoopsModules/tad_player/trunk/images/bg-bubplastic-h-lime.gif XoopsModules/tad_player/trunk/images/bg-bubplastic-h-orange.gif XoopsModules/tad_player/trunk/images/bg-bubplastic-h-pink.gif XoopsModules/tad_player/trunk/images/bg-bubplastic-h-purple.gif XoopsModules/tad_player/trunk/images/bg-bubplastic-h-red.gif XoopsModules/tad_player/trunk/images/bg-bubplastic.gif XoopsModules/tad_player/trunk/images/content_bg.png XoopsModules/tad_player/trunk/images/content_bottom.png XoopsModules/tad_player/trunk/images/del.gif XoopsModules/tad_player/trunk/images/dhtmlgoodies_folder.gif XoopsModules/tad_player/trunk/images/dhtmlgoodies_minus.gif XoopsModules/tad_player/trunk/images/dhtmlgoodies_plus.gif XoopsModules/tad_player/trunk/images/dhtmlgoodies_sheet.gif XoopsModules/tad_player/trunk/images/edit.gif XoopsModules/tad_player/trunk/images/enable.gif XoopsModules/tad_player/trunk/images/flv.png XoopsModules/tad_player/trunk/images/home.png XoopsModules/tad_player/trunk/images/home2.png XoopsModules/tad_player/trunk/images/image.png XoopsModules/tad_player/trunk/images/index.html XoopsModules/tad_player/trunk/images/logo.png XoopsModules/tad_player/trunk/images/main_bottom_bg.png XoopsModules/tad_player/trunk/images/main_top_bg.png XoopsModules/tad_player/trunk/images/menu3.psd XoopsModules/tad_player/trunk/images/menu_left.gif XoopsModules/tad_player/trunk/images/menu_left.png XoopsModules/tad_player/trunk/images/menu_mid.gif XoopsModules/tad_player/trunk/images/menu_mid.png XoopsModules/tad_player/trunk/images/menu_right.gif XoopsModules/tad_player/trunk/images/menu_right.png XoopsModules/tad_player/trunk/images/mp3.png XoopsModules/tad_player/trunk/images/nav-bg.png XoopsModules/tad_player/trunk/images/nav-left-bg.gif XoopsModules/tad_player/trunk/images/nav-right-bg.gif XoopsModules/tad_player/trunk/images/nav_bg.png XoopsModules/tad_player/trunk/images/nav_left.png XoopsModules/tad_player/trunk/images/nav_right.png XoopsModules/tad_player/trunk/images/no_pic.png XoopsModules/tad_player/trunk/images/panel.jpg XoopsModules/tad_player/trunk/images/playlist.png XoopsModules/tad_player/trunk/images/split.png XoopsModules/tad_player/trunk/images/split.psd XoopsModules/tad_player/trunk/images/submenu_bg.png XoopsModules/tad_player/trunk/images/submenu_bottom.png XoopsModules/tad_player/trunk/images/submenu_top.png XoopsModules/tad_player/trunk/images/unable.gif XoopsModules/tad_player/trunk/images/xppw.png XoopsModules/tad_player/trunk/images/xppw2.png XoopsModules/tad_player/trunk/include/ XoopsModules/tad_player/trunk/include/onInstall.php XoopsModules/tad_player/trunk/include/onUninstall.php XoopsModules/tad_player/trunk/include/onUpdate.php XoopsModules/tad_player/trunk/include/search.php XoopsModules/tad_player/trunk/index.php XoopsModules/tad_player/trunk/language/ XoopsModules/tad_player/trunk/language/english/ XoopsModules/tad_player/trunk/language/english/admin.php XoopsModules/tad_player/trunk/language/english/blocks.php XoopsModules/tad_player/trunk/language/english/index.html XoopsModules/tad_player/trunk/language/english/main.php XoopsModules/tad_player/trunk/language/english/modinfo.php XoopsModules/tad_player/trunk/language/index.html XoopsModules/tad_player/trunk/language/tchinese/ XoopsModules/tad_player/trunk/language/tchinese/admin.php XoopsModules/tad_player/trunk/language/tchinese/blocks.php XoopsModules/tad_player/trunk/language/tchinese/index.html XoopsModules/tad_player/trunk/language/tchinese/main.php XoopsModules/tad_player/trunk/language/tchinese/modinfo.php XoopsModules/tad_player/trunk/language/tchinese_utf8/ XoopsModules/tad_player/trunk/language/tchinese_utf8/admin.php XoopsModules/tad_player/trunk/language/tchinese_utf8/blocks.php XoopsModules/tad_player/trunk/language/tchinese_utf8/index.html XoopsModules/tad_player/trunk/language/tchinese_utf8/main.php XoopsModules/tad_player/trunk/language/tchinese_utf8/modinfo.php XoopsModules/tad_player/trunk/menu_style.css XoopsModules/tad_player/trunk/mk_code.php XoopsModules/tad_player/trunk/module.css XoopsModules/tad_player/trunk/play.php XoopsModules/tad_player/trunk/play_code.php XoopsModules/tad_player/trunk/player.css XoopsModules/tad_player/trunk/sql/ XoopsModules/tad_player/trunk/sql/index.html XoopsModules/tad_player/trunk/sql/mysql.sql XoopsModules/tad_player/trunk/templates/ XoopsModules/tad_player/trunk/templates/blocks/ XoopsModules/tad_player/trunk/templates/blocks/index.html XoopsModules/tad_player/trunk/templates/blocks/tad_hot_media.html XoopsModules/tad_player/trunk/templates/blocks/tad_new_media.html XoopsModules/tad_player/trunk/templates/blocks/tad_play_list.html XoopsModules/tad_player/trunk/templates/blocks/tad_player.html XoopsModules/tad_player/trunk/templates/index.html XoopsModules/tad_player/trunk/templates/main_tpl.html XoopsModules/tad_player/trunk/templates/play_tpl.html XoopsModules/tad_player/trunk/writeNodes.php XoopsModules/tad_player/trunk/xoops_version.php Added: XoopsModules/tad_player/trunk/admin/.htaccess =================================================================== --- XoopsModules/tad_player/trunk/admin/.htaccess (rev 0) +++ XoopsModules/tad_player/trunk/admin/.htaccess 2009-08-27 18:46:26 UTC (rev 3509) @@ -0,0 +1,4 @@ +<FilesMatch upload.php> + php_value post_max_size "100M" + php_value upload_max_filesize "100M" +</FilesMatch> \ No newline at end of file Added: XoopsModules/tad_player/trunk/admin/autoupdate/update1.php =================================================================== --- XoopsModules/tad_player/trunk/admin/autoupdate/update1.php (rev 0) +++ XoopsModules/tad_player/trunk/admin/autoupdate/update1.php 2009-08-27 18:46:26 UTC (rev 3509) @@ -0,0 +1,30 @@ +<?php +include_once "../../../../mainfile.php"; + +if($_POST['op']=="GO"){ + start_update1(); +} + +$ver="1.0 -> 1.1"; +$title=_MA_TADPLAYER_AUTOUPDATE1; +$ok=update_chk1(); + + +function update_chk1(){ + global $xoopsDB; + $sql="select count(`sort`) from ".$xoopsDB->prefix("tad_player"); + $result=$xoopsDB->query($sql); + if(empty($result)) return false; + return true; +} + + +function start_update1(){ + global $xoopsDB; + $sql="ALTER TABLE ".$xoopsDB->prefix("tad_player")." ADD `sort` smallint(5) unsigned NOT NULL"; + $xoopsDB->queryF($sql) or redirect_header(XOOPS_URL,3, mysql_error()); + + header("location:{$_SERVER["HTTP_REFERER"]}"); + exit; +} +?> Added: XoopsModules/tad_player/trunk/admin/autoupdate/update2.php =================================================================== --- XoopsModules/tad_player/trunk/admin/autoupdate/update2.php (rev 0) +++ XoopsModules/tad_player/trunk/admin/autoupdate/update2.php 2009-08-27 18:46:26 UTC (rev 3509) @@ -0,0 +1,30 @@ +<?php +include_once "../../../../mainfile.php"; + +if($_POST['op']=="GO"){ + start_update2(); +} + +$ver="1.0 -> 1.1"; +$title=_MA_TADPLAYER_AUTOUPDATE2; +$ok=update_chk2(); + + +function update_chk2(){ + global $xoopsDB; + $sql="select count(`content`) from ".$xoopsDB->prefix("tad_player"); + $result=$xoopsDB->query($sql); + if(empty($result)) return false; + return true; +} + + +function start_update2(){ + global $xoopsDB; + $sql="ALTER TABLE ".$xoopsDB->prefix("tad_player")." ADD `content` text NOT NULL"; + $xoopsDB->queryF($sql) or redirect_header(XOOPS_URL,3, mysql_error()); + + header("location:{$_SERVER["HTTP_REFERER"]}"); + exit; +} +?> Added: XoopsModules/tad_player/trunk/admin/batch_upload.php =================================================================== --- XoopsModules/tad_player/trunk/admin/batch_upload.php (rev 0) +++ XoopsModules/tad_player/trunk/admin/batch_upload.php 2009-08-27 18:46:26 UTC (rev 3509) @@ -0,0 +1,153 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 tad \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-02-28 +// $Id: batch_upload.php,v 1.1 2008/05/05 03:23:49 tad Exp $ +// ------------------------------------------------------------------------- // + +/*-----------\xA4ޤJ\xC0ɮװ\xCF--------------*/ +include "../../../include/cp_header.php"; +include "../function.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; + +/*-----------function\xB0\xCF--------------*/ + + +//tad_player\xA7妸\xA4W\xB6Ǫ\xED\xB3\xE6 +function tad_player_batch_upload_form(){ + global $xoopsDB,$xoopsModuleConfig; + + $cate_select=get_tad_player_cate_option(0,0,$pcsn,1,false); + $i=0; + + if ($dh = opendir(_TAD_PLAYER_BATCH_UPLOAD_DIR)) { + while (($file = readdir($dh)) !== false) { + if(strlen($file)<=2)continue; + $f=explode(".",$file); + $filename=$f[0]; + $ext=strtolower($f[1]); + + if($ext=="flv" or $ext=="mp4" or $ext=="m4v" or $ext=="mp3" or $ext=="swf"){ + $flv_arr['flv'][$filename]=$file; + }elseif($ext=="jpg" or $ext=="jpeg" or $ext=="gif" or $ext=="png"){ + $flv_arr['img'][$filename]=$file; + } + } + closedir($dh); + + foreach($flv_arr['flv'] as $filename=>$file ){ + if(!empty($flv_arr['img'][$filename])){ + $image=$flv_arr['img'][$filename]; + $image_form="<input type='hidden' name='img[$filename]' value='{$image}'>"; + }else{ + $image=$image_form=""; + } + + $tr.="<tr> + <td class='title'><input type='checkbox' name='flv[$filename]' value='{$file}' checked>{$title}</td> + <td class='col'>$file</td> + <td class='col'>{$image}{$image_form}</td> + </tr>\n"; + } + } + + + + $main=" + <form action='{$_SERVER['PHP_SELF']}' method='post' id='myForm' enctype='multipart/form-data'> + <table class='form_tbl'> + <tr><td class='title'>"._MA_TADPLAYER_OF_CSN."</td> + <td class='col' colspan=2><select name='pcsn' size=1> + $cate_select + </select>"._MA_TADPLAYER_NEW_PCSN."<input type='text' name='new_pcsn' size='10'></td></tr> + $tr + <input type='hidden' name='op' value='import'> + <tr><td colspan=3 class='bar'><input type='submit' value='"._MA_SAVE."'></td></tr> + </table> + </form>"; + + $main=div_3d(_MA_INPUT_FORM,$main); + + return $main; +} + + +//\xA7妸\xB6פJ +function tad_player_batch_import(){ + global $xoopsDB,$xoopsUser,$xoopsModuleConfig; + + if(!empty($_POST['new_pcsn'])){ + $pcsn=add_tad_player_cate(); + }else{ + $pcsn=$_POST['pcsn']; + } + + $uid=$xoopsUser->getVar('uid'); + $uid_name=XoopsUser::getUnameFromId($uid,1); + //$now=xoops_getUserTimestamp(time()); + + foreach($_POST['flv'] as $filename => $flv){ + if(empty($flv))continue; + $sql = "insert into ".$xoopsDB->prefix("tad_player")." (pcsn,title,creator,location,image,info,uid,post_date,enable_group,counter,width,height) values('{$pcsn}','{$flv}','{$uid_name}','{$flv}','','{$flv}','{$uid}',now(),'','0','{$xoopsModuleConfig['width']}','{$xoopsModuleConfig['height']}')"; + $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + //\xA8\xFA\xB1o\xB3̫\xE1\xB7s\xBCW\xB8\xEA\xAEƪ\xBA\xACy\xA4\xF4\xBDs\xB8\xB9 + $psn=$xoopsDB->getInsertId(); + + $sql = "update ".$xoopsDB->prefix("tad_player")." set image='{$psn}.png' where psn='$psn'"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + + set_time_limit(0); + ini_set('memory_limit', '50M'); + if(rename(_TAD_PLAYER_BATCH_UPLOAD_DIR.$flv,_TAD_PLAYER_FLV_DIR.$psn."_".$flv)){ + if(!empty($_POST['img'][$filename])){ + $pic_file=_TAD_PLAYER_BATCH_UPLOAD_DIR.$_POST['img'][$filename]; + $pic_b_file=_TAD_PLAYER_IMG_DIR.$psn.".png"; + $pic_s_file=_TAD_PLAYER_IMG_DIR."s_".$psn.".png"; + + $sub=strtolower(substr($_POST['img'][$filename],-3)); + if($sub=="gif"){ + $type="image/gif"; + }elseif($sub=="png"){ + $type="image/png"; + }elseif($sub=="jpg" or $sub=="peg" ){ + $type="image/jpeg"; + } + thumbnail($pic_file,$pic_b_file,$type,$xoopsModuleConfig['width']); + thumbnail($pic_file,$pic_s_file,$type,"120"); + + unlink($pic_file); + } + } + } + return $pcsn; +} + + + + +/*-----------\xB0\xF5\xA6\xE6\xB0ʧ@\xA7P\xC2_\xB0\xCF----------*/ +$op = (!isset($_REQUEST['op']))? "main":$_REQUEST['op']; +$pcsn = (!isset($_REQUEST['pcsn']))? "":$_REQUEST['pcsn']; + +switch($op){ + case "import": + $pcsn=tad_player_batch_import(); + mk_list_xml($pcsn); + header("location:index.php?pcsn=$pcsn"); + break; + + default: + $main=tad_player_batch_upload_form(); + break; + +} + +/*-----------\xA8q\xA5X\xB5\xB2\xAAG\xB0\xCF--------------*/ +xoops_cp_header(); +echo "<link rel='stylesheet' type='text/css' media='screen' href='../module.css' />"; +loadModuleAdminMenu(4); +echo $main; +xoops_cp_footer(); + +?> Added: XoopsModules/tad_player/trunk/admin/cate.php =================================================================== --- XoopsModules/tad_player/trunk/admin/cate.php (rev 0) +++ XoopsModules/tad_player/trunk/admin/cate.php 2009-08-27 18:46:26 UTC (rev 3509) @@ -0,0 +1,218 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 tad \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-02-28 +// $Id: cate.php,v 1.2 2008/05/14 01:22:58 tad Exp $ +// ------------------------------------------------------------------------- // + +/*-----------\xA4ޤJ\xC0ɮװ\xCF--------------*/ +include "../../../include/cp_header.php"; +include "../function.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; + +/*-----------function\xB0\xCF--------------*/ +//tad_player_cate\xBDs\xBF\xE8\xAA\xED\xB3\xE6 +function tad_player_cate_form($pcsn=""){ + global $xoopsDB,$xoopsModuleConfig; + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + include_once(XOOPS_ROOT_PATH."/class/xoopseditor/xoopseditor.php"); + + + //\xA7\xEC\xA8\xFA\xB9w\xB3]\xAD\xC8 + if(!empty($pcsn)){ + $DBV=get_tad_player_cate($pcsn); + }else{ + $DBV=array(); + } + + //\xB9w\xB3]\xADȳ]\xA9w + + $pcsn=(!isset($DBV['pcsn']))?"":$DBV['pcsn']; + $of_csn=(!isset($DBV['of_csn']))?"":$DBV['of_csn']; + $title=(!isset($DBV['title']))?"":$DBV['title']; + $enable_group=(!isset($DBV['enable_group']))?"":explode(",",$DBV['enable_group']); + $sort=(!isset($DBV['sort']))?"":$DBV['sort']; + $width=(!isset($DBV['width']))?$xoopsModuleConfig['width']:$DBV['width']; + $height=(!isset($DBV['height']))?$xoopsModuleConfig['height']:$DBV['height']; + + $op=(empty($pcsn))?"insert_tad_player_cate":"update_tad_player_cate"; + + $cate_select=get_tad_player_cate_option(0,0,$of_csn,1,false); + + //\xA5i\xA8\xA3\xB8s\xB2\xD5 + $SelectGroup_name = new XoopsFormSelectGroup("", "enable_group", false,$enable_group, 3, true); + $SelectGroup_name->addOption("", _MA_TADPLAYER_ALL_OK, false); + $enable_group = $SelectGroup_name->render(); + + $main=" + <form action='{$_SERVER['PHP_SELF']}' method='post' id='myForm' enctype='multipart/form-data'> + <table class='form_tbl'> + + <input type='hidden' name='pcsn' value='{$pcsn}'> + <tr><td class='title'>"._MA_TADPLAYER_OF_CSN."</td> + <td class='col'><select name='of_csn' size=1> + $cate_select + </select></td></tr> + <tr><td class='title'>"._MA_TADPLAYER_TITLE."</td> + <td class='col'><input type='text' name='title' size='30' value='{$title}'></td></tr> + <tr><td class='title'>"._MA_TADPLAYER_ENABLE_GROUP."</td> + <td class='col'>$enable_group</td></tr> + <tr><td class='title'>"._MA_TADPLAYER_SORT."</td> + <td class='col'><input type='text' name='sort' size='2' value='{$sort}'></td></tr> + <tr><td class='title'>"._MA_TADPLAYER_CATE_W_H."</td> + <td class='col'><input type='text' name='width' size='2' value='{$width}'> x <input type='text' name='height' size='2' value='{$height}'>"._MA_TADPLAYER_CATE_W_H_DESC."</td></tr> + <tr><td class='bar' colspan='2'> + <input type='hidden' name='op' value='{$op}'> + <input type='submit' value='"._MA_SAVE."'></td></tr> + </table> + </form>"; + + $main=div_3d(_MA_INPUT_CATE_FORM,$main,"raised","display:inline;float:left;"); + + return $main; +} + +//\xB7s\xBCW\xB8\xEA\xAEƨ\xECtad_player_cate\xA4\xA4 +function insert_tad_player_cate(){ + global $xoopsDB; + if(empty($_POST['title']))return; + $enable_group=implode(",",$_POST['enable_group']); + $sql = "insert into ".$xoopsDB->prefix("tad_player_cate")." (of_csn,title,enable_group,sort,width,height) values('{$_POST['of_csn']}','{$_POST['title']}','{$enable_group}','{$_POST['sort']}','{$_POST['width']}','{$_POST['height']}')"; + $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + //\xA8\xFA\xB1o\xB3̫\xE1\xB7s\xBCW\xB8\xEA\xAEƪ\xBA\xACy\xA4\xF4\xBDs\xB8\xB9 + $pcsn=$xoopsDB->getInsertId(); + mk_list_xml($pcsn); + return $pcsn; +} + +//\xA6C\xA5X\xA9Ҧ\xB3tad_player_cate\xB8\xEA\xAE\xC6 +function list_tad_player_cate($of_csn=1,$level=0){ + global $xoopsDB,$xoopsModule; + $old_level=$level; + $left=$level*12+4; + $level++; + + $MDIR=$xoopsModule->getVar('dirname'); + + $sql = "select * from ".$xoopsDB->prefix("tad_player_cate")." where of_csn='{$of_csn}' order by sort"; + + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + + + if($old_level==0){ + $data=" + <script> + function delete_tad_player_cate_func(pcsn){ + var sure = window.confirm('"._BP_DEL_CHK."'); + if (!sure) return; + location.href=\"{$_SERVER['PHP_SELF']}?op=delete_tad_player_cate&pcsn=\" + pcsn; + } + </script> + <table id='tbl'> + <tr> + <th>"._MA_TADPLAYER_SORT."</th> + <th>"._MA_TADPLAYER_TITLE."</th> + <th>"._MA_TADPLAYER_CATE_W_H."</th> + <th>"._MA_TADPLAYER_ENABLE_GROUP."</th> + <th>"._BP_FUNCTION."</th></tr> + <tbody>"; + }else{ + $data=""; + } + + while(list($pcsn,$of_csn,$title,$enable_group,$sort,$width,$height)=$xoopsDB->fetchRow($result)){ + $g_txt=(empty($enable_group))?_MA_TADPLAYER_ALL_OK:$enable_group; + + $data.="<tr> + <td>{$sort}</td> + <td style='padding-left: {$left}px;'>{$title}</td> + <td>{$width} x {$height}</td> + <td>{$g_txt}</td> + <td> + <a href='{$_SERVER['PHP_SELF']}?op=tad_player_cate_form&pcsn=$pcsn'><img src='".XOOPS_URL."/modules/{$MDIR}/images/edit.gif' alt='"._BP_EDIT."'></a> + <a href=\"javascript:delete_tad_player_cate_func($pcsn);\"><img src='".XOOPS_URL."/modules/{$MDIR}/images/del.gif' alt='"._BP_DEL."'></a></td></tr>"; + $data.=list_tad_player_cate($pcsn,$level); + } + + if($old_level==0){ + $data.=" + </tbody> + </table>"; + } + + + + return $data; +} + + + + +//\xA7\xF3\xB7stad_player_cate\xACY\xA4@\xB5\xA7\xB8\xEA\xAE\xC6 +function update_tad_player_cate($pcsn=""){ + global $xoopsDB; + $enable_group=implode(",",$_POST['enable_group']); + $sql = "update ".$xoopsDB->prefix("tad_player_cate")." set of_csn = '{$_POST['of_csn']}', title = '{$_POST['title']}', enable_group = '{$enable_group}', sort = '{$_POST['sort']}', width = '{$_POST['width']}', height = '{$_POST['height']}' where pcsn='$pcsn'"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + mk_list_xml($pcsn); + $log="update $pcsn OK!"; + return $log; +} + +//\xA7R\xB0\xA3tad_player_cate\xACY\xB5\xA7\xB8\xEA\xAEƸ\xEA\xAE\xC6 +function delete_tad_player_cate($pcsn=""){ + global $xoopsDB; + $sql = "delete from ".$xoopsDB->prefix("tad_player_cate")." where pcsn='$pcsn'"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()... [truncated message content] |
From: <be...@us...> - 2009-08-27 18:54:17
|
Revision: 3510 http://xoops.svn.sourceforge.net/xoops/?rev=3510&view=rev Author: beckmi Date: 2009-08-27 18:54:04 +0000 (Thu, 27 Aug 2009) Log Message: ----------- Adding TadUploader Module Added Paths: ----------- XoopsModules/tad_uploader/ XoopsModules/tad_uploader/branches/ XoopsModules/tad_uploader/releases/ XoopsModules/tad_uploader/trunk/ XoopsModules/tad_uploader/trunk/admin/ XoopsModules/tad_uploader/trunk/admin/index.html XoopsModules/tad_uploader/trunk/admin/index.php XoopsModules/tad_uploader/trunk/admin/menu.php XoopsModules/tad_uploader/trunk/admin/power.php XoopsModules/tad_uploader/trunk/blocks/ XoopsModules/tad_uploader/trunk/blocks/catalog_block_1.php XoopsModules/tad_uploader/trunk/blocks/index.html XoopsModules/tad_uploader/trunk/function.php XoopsModules/tad_uploader/trunk/header.php XoopsModules/tad_uploader/trunk/htaccess.zip XoopsModules/tad_uploader/trunk/images/ XoopsModules/tad_uploader/trunk/images/1leftarrow.gif XoopsModules/tad_uploader/trunk/images/1rightarrow.gif XoopsModules/tad_uploader/trunk/images/2leftarrow.gif XoopsModules/tad_uploader/trunk/images/2rightarrow.gif XoopsModules/tad_uploader/trunk/images/MCity-Clearlooks_1.gif XoopsModules/tad_uploader/trunk/images/MCity-Clearlooks_2.gif XoopsModules/tad_uploader/trunk/images/MCity-Clearlooks_3.gif XoopsModules/tad_uploader/trunk/images/MCity-Clearlooks_7.gif XoopsModules/tad_uploader/trunk/images/MCity-Clearlooks_8.gif XoopsModules/tad_uploader/trunk/images/MCity-Clearlooks_9.gif XoopsModules/tad_uploader/trunk/images/Macinscott2_logo_bkgd.jpg XoopsModules/tad_uploader/trunk/images/Macinscott2_nav_bkgd.gif XoopsModules/tad_uploader/trunk/images/Thumbs.db XoopsModules/tad_uploader/trunk/images/button_cancel.gif XoopsModules/tad_uploader/trunk/images/button_ok.gif XoopsModules/tad_uploader/trunk/images/buttons.gif XoopsModules/tad_uploader/trunk/images/buttons_bkgd.gif XoopsModules/tad_uploader/trunk/images/buttons_right.gif XoopsModules/tad_uploader/trunk/images/cellpic3.gif XoopsModules/tad_uploader/trunk/images/del.gif XoopsModules/tad_uploader/trunk/images/edit.gif XoopsModules/tad_uploader/trunk/images/encrypted.gif XoopsModules/tad_uploader/trunk/images/fileopen.gif XoopsModules/tad_uploader/trunk/images/fileopen.png XoopsModules/tad_uploader/trunk/images/folder.gif XoopsModules/tad_uploader/trunk/images/folder_lock.gif XoopsModules/tad_uploader/trunk/images/folder_move.png XoopsModules/tad_uploader/trunk/images/folder_new.png XoopsModules/tad_uploader/trunk/images/folder_rename.png XoopsModules/tad_uploader/trunk/images/index.html XoopsModules/tad_uploader/trunk/images/logo.png XoopsModules/tad_uploader/trunk/images/mime/ XoopsModules/tad_uploader/trunk/images/mime/Thumbs.db XoopsModules/tad_uploader/trunk/images/mime/ai.png XoopsModules/tad_uploader/trunk/images/mime/arj.png XoopsModules/tad_uploader/trunk/images/mime/bmp.png XoopsModules/tad_uploader/trunk/images/mime/bz2.png XoopsModules/tad_uploader/trunk/images/mime/csv.png XoopsModules/tad_uploader/trunk/images/mime/doc.png XoopsModules/tad_uploader/trunk/images/mime/eps.png XoopsModules/tad_uploader/trunk/images/mime/exe.png XoopsModules/tad_uploader/trunk/images/mime/gif.png XoopsModules/tad_uploader/trunk/images/mime/gz.png XoopsModules/tad_uploader/trunk/images/mime/html.png XoopsModules/tad_uploader/trunk/images/mime/jpg.png XoopsModules/tad_uploader/trunk/images/mime/mdb.png XoopsModules/tad_uploader/trunk/images/mime/mime.png XoopsModules/tad_uploader/trunk/images/mime/mpg.png XoopsModules/tad_uploader/trunk/images/mime/odb.png XoopsModules/tad_uploader/trunk/images/mime/odf.png XoopsModules/tad_uploader/trunk/images/mime/odg.png XoopsModules/tad_uploader/trunk/images/mime/odp.png XoopsModules/tad_uploader/trunk/images/mime/ods.png XoopsModules/tad_uploader/trunk/images/mime/odt.png XoopsModules/tad_uploader/trunk/images/mime/pdf.png XoopsModules/tad_uploader/trunk/images/mime/png.png XoopsModules/tad_uploader/trunk/images/mime/ppt.png XoopsModules/tad_uploader/trunk/images/mime/psd.png XoopsModules/tad_uploader/trunk/images/mime/rar.png XoopsModules/tad_uploader/trunk/images/mime/rm.png XoopsModules/tad_uploader/trunk/images/mime/sound_mp3.png XoopsModules/tad_uploader/trunk/images/mime/stc.png XoopsModules/tad_uploader/trunk/images/mime/std.png XoopsModules/tad_uploader/trunk/images/mime/sti.png XoopsModules/tad_uploader/trunk/images/mime/stw.png XoopsModules/tad_uploader/trunk/images/mime/svg.png XoopsModules/tad_uploader/trunk/images/mime/sxc.png XoopsModules/tad_uploader/trunk/images/mime/sxd.png XoopsModules/tad_uploader/trunk/images/mime/sxi.png XoopsModules/tad_uploader/trunk/images/mime/sxw.png XoopsModules/tad_uploader/trunk/images/mime/tar.png XoopsModules/tad_uploader/trunk/images/mime/tgz.png XoopsModules/tad_uploader/trunk/images/mime/tif.png XoopsModules/tad_uploader/trunk/images/mime/txt.png XoopsModules/tad_uploader/trunk/images/mime/wmv.png XoopsModules/tad_uploader/trunk/images/mime/xls.png XoopsModules/tad_uploader/trunk/images/mime/zip.png XoopsModules/tad_uploader/trunk/images/pinstripes.gif XoopsModules/tad_uploader/trunk/images/player_end.png XoopsModules/tad_uploader/trunk/images/player_fwd.png XoopsModules/tad_uploader/trunk/images/player_rev.png XoopsModules/tad_uploader/trunk/images/player_start.png XoopsModules/tad_uploader/trunk/images/s_folder.png XoopsModules/tad_uploader/trunk/images/s_folder_lock.png XoopsModules/tad_uploader/trunk/images/s_mime/ XoopsModules/tad_uploader/trunk/images/s_mime/Thumbs.db XoopsModules/tad_uploader/trunk/images/s_mime/ai.png XoopsModules/tad_uploader/trunk/images/s_mime/arj.png XoopsModules/tad_uploader/trunk/images/s_mime/bmp.png XoopsModules/tad_uploader/trunk/images/s_mime/bz2.png XoopsModules/tad_uploader/trunk/images/s_mime/doc.png XoopsModules/tad_uploader/trunk/images/s_mime/eps.png XoopsModules/tad_uploader/trunk/images/s_mime/exe.png XoopsModules/tad_uploader/trunk/images/s_mime/gif.png XoopsModules/tad_uploader/trunk/images/s_mime/gz.png XoopsModules/tad_uploader/trunk/images/s_mime/html.png XoopsModules/tad_uploader/trunk/images/s_mime/jpg.png XoopsModules/tad_uploader/trunk/images/s_mime/mime.png XoopsModules/tad_uploader/trunk/images/s_mime/mp3.png XoopsModules/tad_uploader/trunk/images/s_mime/mpg.png XoopsModules/tad_uploader/trunk/images/s_mime/odb.png XoopsModules/tad_uploader/trunk/images/s_mime/odf.png XoopsModules/tad_uploader/trunk/images/s_mime/odg.png XoopsModules/tad_uploader/trunk/images/s_mime/odp.png XoopsModules/tad_uploader/trunk/images/s_mime/ods.png XoopsModules/tad_uploader/trunk/images/s_mime/odt.png XoopsModules/tad_uploader/trunk/images/s_mime/pdf.png XoopsModules/tad_uploader/trunk/images/s_mime/png.png XoopsModules/tad_uploader/trunk/images/s_mime/ppt.png XoopsModules/tad_uploader/trunk/images/s_mime/psd.png XoopsModules/tad_uploader/trunk/images/s_mime/rar.png XoopsModules/tad_uploader/trunk/images/s_mime/rm.png XoopsModules/tad_uploader/trunk/images/s_mime/svg.png XoopsModules/tad_uploader/trunk/images/s_mime/sxc.png XoopsModules/tad_uploader/trunk/images/s_mime/sxd.png XoopsModules/tad_uploader/trunk/images/s_mime/sxi.png XoopsModules/tad_uploader/trunk/images/s_mime/sxw.png XoopsModules/tad_uploader/trunk/images/s_mime/tar.png XoopsModules/tad_uploader/trunk/images/s_mime/tgz.png XoopsModules/tad_uploader/trunk/images/s_mime/tif.png XoopsModules/tad_uploader/trunk/images/s_mime/txt.png XoopsModules/tad_uploader/trunk/images/s_mime/wmv.png XoopsModules/tad_uploader/trunk/images/s_mime/xls.png XoopsModules/tad_uploader/trunk/images/s_mime/zip.png XoopsModules/tad_uploader/trunk/images/shadow_bottom.jpg XoopsModules/tad_uploader/trunk/images/shadow_bttm_left_corner.jpg XoopsModules/tad_uploader/trunk/images/shadow_bttm_right_corner.jpg XoopsModules/tad_uploader/trunk/images/stop.png XoopsModules/tad_uploader/trunk/images/up.gif XoopsModules/tad_uploader/trunk/images/up.png XoopsModules/tad_uploader/trunk/images/view_icon.png XoopsModules/tad_uploader/trunk/images/view_text.png XoopsModules/tad_uploader/trunk/include/ XoopsModules/tad_uploader/trunk/include/onInstall.php XoopsModules/tad_uploader/trunk/include/onUninstall.php XoopsModules/tad_uploader/trunk/include/onUpdate.php XoopsModules/tad_uploader/trunk/index.php XoopsModules/tad_uploader/trunk/language/ XoopsModules/tad_uploader/trunk/language/english/ XoopsModules/tad_uploader/trunk/language/english/admin.php XoopsModules/tad_uploader/trunk/language/english/blocks.php XoopsModules/tad_uploader/trunk/language/english/index.html XoopsModules/tad_uploader/trunk/language/english/main.php XoopsModules/tad_uploader/trunk/language/english/modinfo.php XoopsModules/tad_uploader/trunk/language/index.html XoopsModules/tad_uploader/trunk/language/schinese/ XoopsModules/tad_uploader/trunk/language/schinese/admin.php XoopsModules/tad_uploader/trunk/language/schinese/blocks.php XoopsModules/tad_uploader/trunk/language/schinese/index.html XoopsModules/tad_uploader/trunk/language/schinese/main.php XoopsModules/tad_uploader/trunk/language/schinese/modinfo.php XoopsModules/tad_uploader/trunk/language/schinese_utf8/ XoopsModules/tad_uploader/trunk/language/schinese_utf8/admin.php XoopsModules/tad_uploader/trunk/language/schinese_utf8/blocks.php XoopsModules/tad_uploader/trunk/language/schinese_utf8/index.html XoopsModules/tad_uploader/trunk/language/schinese_utf8/main.php XoopsModules/tad_uploader/trunk/language/schinese_utf8/modinfo.php XoopsModules/tad_uploader/trunk/language/tchinese/ XoopsModules/tad_uploader/trunk/language/tchinese/admin.php XoopsModules/tad_uploader/trunk/language/tchinese/blocks.php XoopsModules/tad_uploader/trunk/language/tchinese/index.html XoopsModules/tad_uploader/trunk/language/tchinese/main.php XoopsModules/tad_uploader/trunk/language/tchinese/modinfo.php XoopsModules/tad_uploader/trunk/language/tchinese_utf8/ XoopsModules/tad_uploader/trunk/language/tchinese_utf8/admin.php XoopsModules/tad_uploader/trunk/language/tchinese_utf8/blocks.php XoopsModules/tad_uploader/trunk/language/tchinese_utf8/index.html XoopsModules/tad_uploader/trunk/language/tchinese_utf8/main.php XoopsModules/tad_uploader/trunk/language/tchinese_utf8/modinfo.php XoopsModules/tad_uploader/trunk/sql/ XoopsModules/tad_uploader/trunk/sql/index.html XoopsModules/tad_uploader/trunk/sql/mysql.sql XoopsModules/tad_uploader/trunk/templates/ XoopsModules/tad_uploader/trunk/templates/blocks/ XoopsModules/tad_uploader/trunk/templates/blocks/catalog_block_1.html XoopsModules/tad_uploader/trunk/templates/blocks/index.html XoopsModules/tad_uploader/trunk/templates/index.html XoopsModules/tad_uploader/trunk/xoops_version.php Added: XoopsModules/tad_uploader/trunk/admin/index.html =================================================================== --- XoopsModules/tad_uploader/trunk/admin/index.html (rev 0) +++ XoopsModules/tad_uploader/trunk/admin/index.html 2009-08-27 18:54:04 UTC (rev 3510) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/tad_uploader/trunk/admin/index.php =================================================================== --- XoopsModules/tad_uploader/trunk/admin/index.php (rev 0) +++ XoopsModules/tad_uploader/trunk/admin/index.php 2009-08-27 18:54:04 UTC (rev 3510) @@ -0,0 +1,216 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 \xA7d\xA5\xB0\xB3\xCD(ta...@gm...) \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-02-06 +// $Id: index.php,v 1.1 2008/05/14 01:27:37 tad Exp $ +// ------------------------------------------------------------------------- // +/*-----------\xA4ޤJ\xC0ɮװ\xCF--------------*/ +include "../../../include/cp_header.php"; +include "../function.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; + +$file_adm=new file_adm(); +$col_intf=new cols_interface(); +/*-----------function\xB0\xCF--------------*/ + +//catalog\xBDs\xBF\xE8\xAA\xED\xB3\xE6 +function catalog_form($cat_sn=""){ + global $xoopsDB,$col_intf; + //\xA7\xEC\xA8\xFA\xB9w\xB3]\xAD\xC8 + if(!empty($cat_sn)){ + $DBV=$col_intf->get_catalog($cat_sn); + }else{ + $DBV=array(); + } + + //\xB9w\xB3]\xADȳ]\xA9w + $cat_sn=(!isset($DBV['cat_sn']))?"":$DBV['cat_sn']; + $cat_title=(!isset($DBV['cat_title']))?"":$DBV['cat_title']; + $cat_desc=(!isset($DBV['cat_desc']))?"":$DBV['cat_desc']; + $cat_enable=(!isset($DBV['cat_enable']))?"1":$DBV['cat_enable']; + $uid=(!isset($DBV['uid']))?"":$DBV['uid']; + $of_cat_sn=(!isset($DBV['of_cat_sn']))?"":$DBV['of_cat_sn']; + $cata_select=get_cata_select(array(),$of_cat_sn); + $cat_share=(!isset($DBV['cat_share']))?"1":$DBV['cat_share']; + $cat_count=(!isset($DBV['cat_count']))?"":$DBV['cat_count']; + + $cat_max_sort=get_cat_max_sort(); + $cat_sort=(!isset($DBV['cat_sort']))?$cat_max_sort:$DBV['cat_sort']; + + + $main="<FORM action='{$_SERVER['PHP_SELF']}' method='POST' enctype='multipart/form-data'> + ".tbl_theme(1,_AM_CAT_CREATE_FOLDER)." + <table cellspacing='1' cellpadding='3' bgcolor='#ccccff' style='width:100%' id='t'> + <tbody> + <tr bgcolor='white'><td>"._AM_CAT_FOLDER_NAME."</td><td> + <INPUT type='text' name='cat_title' value='{$cat_title}' size='".strlen($cat_title)."'></td> + <td rowspan=5>"._AM_CAT_FOLDER_DESC."<br> + <textarea name='cat_desc' style='width:100%;font-size:12px' cols=40 rows=4>{$cat_desc}</textarea></td> + </tr> + <tr bgcolor='white'> + <td>"._AM_CAT_FATHER_FOLDER."</td><td> + <select name='of_cat_sn'> + <option></option> + $cata_select + </select></td></tr> + <tr bgcolor='white'> + <td>"._AM_CAT_FOLDER_SORT."</td><td> + <INPUT type='text' name='cat_sort' value='{$cat_sort}' size='".strlen($cat_sort)."'></td></tr> + <tr bgcolor='white'><td>"._AM_CAT_ENABLE."</td><td> + <INPUT type='radio' name='cat_enable' value='1' ".is_checked($cat_enable,"1","default")."><img src='../images/button_ok.gif'> + <INPUT type='radio' name='cat_enable' value='0' ".is_checked($cat_enable,"0","")."><img src='../images/button_cancel.gif'></td></tr> + <tr bgcolor='white'><td>"._AM_CAT_SHARE."</td><td> + <INPUT type='radio' name='cat_share' value='1' ".is_checked($cat_share,"1","default")."><img src='../images/button_ok.gif'> + <INPUT type='radio' name='cat_share' value='0' ".is_checked($cat_share,"0","")."><img src='../images/encrypted.gif'></td></tr> + </tbody> + </table> + <INPUT type='hidden' name='cat_sn' value='{$cat_sn}'> + <INPUT type='hidden' name='cat_count' value='{$cat_count}'> + <INPUT type='hidden' name='op' value='replace_catalog'> + + ".tbl_theme(2,"","","<INPUT type='submit' value='"._AM_CAT_SAVE."'>")." + </FORM>"; + return $main; +} + + + +//\xA8\xFA\xA5N/\xB7s\xBCWcatalog\xB2{\xA6\xB3\xB8\xEA\xAE\xC6 +function replace_catalog(){ + global $xoopsDB,$xoopsUser; + if($xoopsUser){ + $uid=$xoopsUser->getVar('uid'); + } + + $sql = "replace into ".$xoopsDB->prefix("tad_uploader")." (cat_sn,cat_title,cat_desc,cat_enable,uid,of_cat_sn,cat_share,cat_sort,cat_count) + values('{$_POST['cat_sn']}','{$_POST['cat_title']}','{$_POST['cat_desc']}','{$_POST['cat_enable']}','{$uid}','{$_POST['of_cat_sn']}','{$_POST['cat_share']}','{$_POST['cat_sort']}','{$_POST['cat_count']}')"; + $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _AM_CAT_DB_ERROR2); + + //\xA8\xFA\xB1o\xB3̫\xE1\xB7s\xBCW\xB8\xEA\xAEƪ\xBA\xACy\xA4\xF4\xBDs\xB8\xB9 + $cat_sn=$xoopsDB->getInsertId(); + + return $cat_sn; +} + +//\xA6C\xA5X\xA9Ҧ\xB3catalog\xB8\xEA\xAE\xC6 +function list_catalog($show_function=1){ + global $xoopsDB; + $sql = "select * from ".$xoopsDB->prefix("tad_uploader").""; + + //PageBar(\xB8\xEA\xAEƼ\xC6, \xA8C\xAD\xB6\xC5\xE3\xA5ܴX\xB5\xA7\xB8\xEA\xAE\xC6, \xB3̦h\xC5\xE3\xA5ܴX\xADӭ\xB6\xBCƿﶵ); + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _AM_CAT_DB_ERROR3); + $total=$xoopsDB->getRowsNum($result); + + $navbar = new PageBar($total, 20, 10); + $mybar = $navbar->makeBar(); + $bar= sprintf(_AM_CAT_PAGE_BAR1,$mybar['total'],$mybar['current'])."{$mybar['left']}{$mybar['center']}{$mybar['right']}"; + $sql.=$mybar['sql']; + + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _AM_CAT_DB_ERROR1); + $function_title=($show_function)?"<td>"._AM_CAT_FUNCTION."</td>":""; + $data=" + <script> + function delete_catalog_func(cat_sn){ + var sure = window.confirm('"._AM_CAT_DEL_CONFIRM."'); + if (!sure) return; + location.href=\"".$_SERVER['PHP_SELF']."?op=delete_catalog&cat_sn=\" + cat_sn; + } + </script> + ".tbl_theme(1,sprintf(_AM_CAT_LIST_ALL_FILES,$total))." + <table cellspacing='1' cellpadding='3' bgcolor='#ccccff' style='width:100%' id='t'> + <tr bgcolor='#e6e6ff'> + <td>"._AM_CAT_FOLDER_SORT."</td> + <td>"._AM_CAT_FOLDER_NAME."</td> + <td>"._AM_CAT_FOLDER_DESC."</td> + <td>"._AM_CAT_AUTHOR."</td> + <td>"._AM_CAT_ENABLE."</td> + <td>"._AM_CAT_SHARE."</td> + <td>"._AM_CAT_FILE_COUNTER."</td> + $function_title</tr> + <tbody> + ".get_cata_data()." + </tbody> + </table>".tbl_theme(2,"","",$bar); + return $data; +} + +//\xA8\xFA\xB1o\xA9Ҧ\xB3\xB8\xEA\xAEƧ\xA8\xA6C\xAA\xED +function get_cata_data($of_cat_sn=0,$tab=0,$show_function=1){ + global $xoopsDB,$col_intf; + $sql = "select * from ".$xoopsDB->prefix("tad_uploader")." where of_cat_sn='$of_cat_sn'"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _AM_CAT_DB_ERROR1); + $data=""; + $tab+="18"; + while(list($cat_sn,$cat_title,$cat_desc,$cat_enable,$uid,$of_cat_sn,$cat_share,$cat_sort,$cat_count)=$xoopsDB->fetchRow($result)){ + $cat_desc=nl2br($cat_desc); + $uid_name=XoopsUser::getUnameFromId($uid,0); + $enable=($cat_enable=='1')?"<img src='../images/button_ok.gif'>":"<img src='../images/button_cancel.gif'>"; + $share=($cat_share=='1')?"<img src='../images/button_ok.gif'>":"<img src='../images/encrypted.gif'>"; + $cat=$col_intf->get_catalog($of_cat_sn); + + + $fun=($show_function)?"<td> + <a href='{$_SERVER['PHP_SELF']}?op=catalog_form&cat_sn=$cat_sn'><img src='".XOOPS_URL."/modules/tad_uploader/images/edit.gif' alt='"._AM_CAT_EDIT."'></a> + <a href=\"javascript:delete_catalog_func($cat_sn);\"><img src='".XOOPS_URL."/modules/tad_uploader/images/del.gif' alt='"._AM_CAT_DEL."'></a></td>":""; + $data.="<tr bgcolor='white'> + <td>{$cat_sort}</td> + <td style='padding-left: {$tab}px'> + <img src='../images/fileopen.gif' hspace=2 align='absmiddle'><a href='".XOOPS_URL."/modules/tad_uploader/index.php?of_cat_sn={$cat_sn}'>{$cat_title}</a></td> + <td>{$cat_desc}</td> + <td>{$uid_name}</td> + <td align='center'>{$enable}</td> + <td align='center'>{$share}</td> + <td>{$cat_count}</td> + $fun</tr>"; + $data.=get_cata_data($cat_sn,$tab,$show_function); + } + + return $data; +} + + + + +//\xA8\xFA\xB1ocatalog\xA9Ҧ\xB3\xB8\xEA\xAEư}\xA6C +function get_catalog_all(){ + global $xoopsDB; + $sql = "select * from ".$xoopsDB->prefix("tad_uploader"); + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _AM_CAT_DB_ERROR1); + $data=$xoopsDB->fetchArray($result); + return $data; +} + + + + + +/*-----------\xB0\xF5\xA6\xE6\xB0ʧ@\xA7P\xC2_\xB0\xCF----------*/ +$op = (!isset($_REQUEST['op']))? "main":$_REQUEST['op']; + +switch($op){ + case "replace_catalog": + replace_catalog(); + header("location: ".$_SERVER['PHP_SELF']); + break; + + //\xA7R\xB0\xA3\xB8\xEA\xAE\xC6 + case "delete_catalog"; + delete_catalog($_GET['cat_sn']); + header("location: ".$_SERVER['PHP_SELF']); + break; + + + default: + $main=catalog_form($_GET['cat_sn']); + $main.=list_catalog(1); + break; +} + +/*-----------\xA8q\xA5X\xB5\xB2\xAAG\xB0\xCF--------------*/ +xoops_cp_header(); +echo "<link rel='stylesheet' type='text/css' media='screen' href='../module.css' />"; +loadModuleAdminMenu(0); +echo $main; +xoops_cp_footer(); +?> Added: XoopsModules/tad_uploader/trunk/admin/menu.php =================================================================== --- XoopsModules/tad_uploader/trunk/admin/menu.php (rev 0) +++ XoopsModules/tad_uploader/trunk/admin/menu.php 2009-08-27 18:54:04 UTC (rev 3510) @@ -0,0 +1,12 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 \xA7d\xA5\xB0\xB3\xCD(ta...@gm...) \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-02-06 +// $Id: menu.php,v 1.1 2008/05/14 01:27:37 tad Exp $ +// ------------------------------------------------------------------------- // +$adminmenu[0]['title'] = _MI_CAT_ADMENU1; +$adminmenu[0]['link'] = "admin/index.php"; +$adminmenu[1]['title'] = _MI_CAT_ADMENU2; +$adminmenu[1]['link'] = "admin/power.php"; + +?> Added: XoopsModules/tad_uploader/trunk/admin/power.php =================================================================== --- XoopsModules/tad_uploader/trunk/admin/power.php (rev 0) +++ XoopsModules/tad_uploader/trunk/admin/power.php 2009-08-27 18:54:04 UTC (rev 3510) @@ -0,0 +1,53 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 \xA7d\xA5\xB0\xB3\xCD(ta...@gm...) \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-02-06 +// $Id: power.php,v 1.1 2008/05/14 01:27:37 tad Exp $ +// ------------------------------------------------------------------------- // +/*-----------\xA4ޤJ\xC0ɮװ\xCF--------------*/ +include "../../../include/cp_header.php"; +include "../function.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.php"; +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php'; + +/*-----------function\xB0\xCF--------------*/ +$module_id = $xoopsModule->getVar('mid'); + +$main=tbl_theme(1); + +//\xA7\xEC\xA8\xFA\xA9Ҧ\xB3\xB8\xEA\xAEƧ\xA8 + +$sql = "select cat_sn,cat_title from ".$xoopsDB->prefix("tad_uploader"); +$result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _AM_CAT_DB_ERROR1); +while(list($cat_sn,$cat_title)=$xoopsDB->fetchRow($result)){ + $item_list[$cat_sn]=$cat_title; +} + + +$title_of_form = _AM_CAT_SET_ACCESS_POWER; +$perm_name = 'catalog'; +$formi = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name,$perm_desc); +foreach ($item_list as $item_id => $item_name) { + $formi->addItem($item_id, $item_name); +} + +$main.=$formi->render(); + +$title_of_form = _AM_CAT_SET_UPLOAD_POWER; +$perm_name = 'catalog_up'; +$formi = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name,$perm_desc); +foreach ($item_list as $item_id => $item_name) { + $formi->addItem($item_id, $item_name); +} + +$main.=$formi->render(); + +$main.=tbl_theme(2); +/*-----------\xA8q\xA5X\xB5\xB2\xAAG\xB0\xCF--------------*/ +xoops_cp_header(); +echo "<link rel='stylesheet' type='text/css' media='screen' href='../module.css' />"; +loadModuleAdminMenu(1); +echo $main; +xoops_cp_footer(); +?> Added: XoopsModules/tad_uploader/trunk/blocks/catalog_block_1.php =================================================================== --- XoopsModules/tad_uploader/trunk/blocks/catalog_block_1.php (rev 0) +++ XoopsModules/tad_uploader/trunk/blocks/catalog_block_1.php 2009-08-27 18:54:04 UTC (rev 3510) @@ -0,0 +1,93 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 \xA7d\xA5\xB0\xB3\xCD(ta...@gm...) \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-02-06 +// $Id: catalog_block_1.php,v 1.1 2008/05/14 01:27:37 tad Exp $ +// ------------------------------------------------------------------------- // + +//\xB0϶\xF4\xA5D\xA8禡 (\xB3̷s\xA4W\xB6Ǥ\xE5\xA5\xF3) +function catalog_b_show_1($options){ + global $xoopsDB; + + //include_once(XOOPS_ROOT_PATH."/modules/tad_uploader/function.php"); + + //$sql = "select b.cfsn,b.cat_sn,b.cf_name,b.cf_desc,b.cf_count,b.up_date from ".$xoopsDB->prefix("tad_uploader")." as a,".$xoopsDB->prefix("tad_uploader_file")." as b where a.cat_sn=b.cat_sn and a.cat_share='1' order by b.up_date desc limit 0,{$options[0]}"; + + $sql="select a.cfsn,a.cat_sn,a.cf_name,a.cf_desc from ".$xoopsDB->prefix("tad_uploader_file")." as a left join ".$xoopsDB->prefix("tad_uploader")." as b on a.cat_sn=b.cat_sn where b.cat_share='1' order by a.up_date desc limit 0,{$options[0]}"; + + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MB_CAT_DB_ERROR2); + + $block="<table>"; + while(list($cfsn,$cat_sn,$cf_name,$cf_desc)=$xoopsDB->fetchRow($result)){ + + //\xA8̾ڸӸs\xB2լO\xA7_\xB9\xEF\xB8\xD3\xC5v\xAD\xAD\xB6\xB5\xA5ئ\xB3\xA8ϥ\xCE\xC5v\xA4\xA7\xA7P\xC2_ \xA1A\xB0\xB5\xA4\xA3\xA6P\xA4\xA7\xB3B\xB2z + if(!check_up_power("catalog",$cat_sn)) continue; + + $pic=chk_file_pic($cf_name); + $block.="<tr><td><div style='overflow: hidden;width:100%;height: 18px;'><img src='".XOOPS_URL."/modules/tad_uploader/images/s_mime/{$pic}' hspace='2' align='absmiddle'><a href='".XOOPS_URL."/modules/tad_uploader/index.php?op=dlfile&cfsn={$cfsn}&cat_sn={$cat_sn}' style='font-size:11px'>$cf_desc</a></div></td></tr>"; + } + $block.="</table>"; + return $block; +} + +//\xB0϶\xF4\xBDs\xBF\xE8\xA8禡 +function catalog_b_edit_1($options){ + + $form=" + "._MB_CAT_CATALOG_B_EDIT_1_BITEM0." + <INPUT type='text' name='options[0]' value='{$options[0]}'> + "; + return $form; +} + +//\xA7P\xA7O\xAE榡\xB9\xCF\xC0\xC9 +function chk_file_pic($file){ + $f=explode(".",$file); + $n=sizeof($f)-1; + if(!file_exists(XOOPS_ROOT_PATH."/modules/tad_uploader/images/mime/{$f[$n]}.png"))return "mime.png"; + return "{$f[$n]}.png"; +} + + +if(!function_exists("check_up_power")){ + //\xC0ˬd\xA6\xB3\xB5L\xA4W\xB6\xC7\xC5v\xA7Q + function check_up_power($kind="catalog",$cat_sn=""){ + global $xoopsUser; + + //\xA8\xFA\xB1o\xBCҲսs\xB8\xB9 + $modhandler = &xoops_gethandler('module'); + $xoopsModule = &$modhandler->getByDirname("tad_uploader"); + $module_id = $xoopsModule->getVar('mid'); + + + + //\xA8\xFA\xB1o\xA5ثe\xA8ϥΪ̪\xBA\xB8s\xB2սs\xB8\xB9 + if($xoopsUser) { + $groups = $xoopsUser->getGroups(); + $isAdmin=$xoopsUser->isAdmin($module_id); + $uid=$xoopsUser->getVar('uid'); + }else{ + $groups = XOOPS_GROUP_ANONYMOUS; + $isAdmin=false; + } + + //\xA8\xFA\xB1o\xB8s\xB2\xD5\xC5v\xAD\xAD\xA5\\xAF\xE0 + $gperm_handler =& xoops_gethandler('groupperm'); + + //\xC5v\xAD\xAD\xB6\xB5\xA5ؽs\xB8\xB9 + $perm_itemid = intval($cat_sn); + //\xA8̾ڸӸs\xB2լO\xA7_\xB9\xEF\xB8\xD3\xC5v\xAD\xAD\xB6\xB5\xA5ئ\xB3\xA8ϥ\xCE\xC5v\xA4\xA7\xA7P\xC2_ \xA1A\xB0\xB5\xA4\xA3\xA6P\xA4\xA7\xB3B\xB2z + if(empty($cat_sn)){ + if($kind=="catalog"){ + return true; + }else{ + if($isAdmin) return true; + } + }else{ + if($gperm_handler->checkRight($kind, $cat_sn, $groups, $module_id) or $isAdmin) return true; + } + + return false; + } +} +?> Added: XoopsModules/tad_uploader/trunk/blocks/index.html =================================================================== --- XoopsModules/tad_uploader/trunk/blocks/index.html (rev 0) +++ XoopsModules/tad_uploader/trunk/blocks/index.html 2009-08-27 18:54:04 UTC (rev 3510) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/tad_uploader/trunk/function.php =================================================================== --- XoopsModules/tad_uploader/trunk/function.php (rev 0) +++ XoopsModules/tad_uploader/trunk/function.php 2009-08-27 18:54:04 UTC (rev 3510) @@ -0,0 +1,822 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 \xA7d\xA5\xB0\xB3\xCD(ta...@gm...) \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2005-08-21 +// $Id: function.php,v 1.1 2008/05/14 01:27:37 tad Exp $ +// ------------------------------------------------------------------------- // + + + +$dir=XOOPS_ROOT_PATH."/uploads/tad_uploader"; +$url_dir=XOOPS_URL."/uploads/tad_uploader"; + +//\xA7\xE4\xA5X\xA5ثe\xB8\xEA\xAEƧ\xA8\xC0\xB3\xB3]\xB6\xB6\xA7\xC7 +function get_cat_max_sort($of_cat_sn=""){ + global $xoopsDB; + $sql = "select max(cat_sort) from ".$xoopsDB->prefix("tad_uploader")." where of_cat_sn='{$of_cat_sn}'"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR1); + list($max_sort)=$xoopsDB->fetchRow($result); + return $max_sort+1; +} + + + +//\xBAz\xA4\xB6\xAD\xB1\xAA\xBA\xBF\xEF\xB3\xE6 +function menu_interface($show=1){ +global $xoopsModule,$xoopsModuleConfig; + if(empty($show))return; + $dirname=$xoopsModule->getVar('dirname'); + include_once("../language/tchinese/modinfo.php"); + include("menu.php"); + $page=explode("/",$_SERVER['PHP_SELF']); + $n=sizeof($page)-1; + if(is_array($adminmenu)){ + foreach($adminmenu as $m){ + $td.="<a href='".XOOPS_URL."/modules/{$dirname}/{$m['link']}'>{$m['title']}</a>"; + } + }else{ + $td="<td></td>"; + } + $main=" + <style type='text/css'> + #admtool{ + margin-bottom:10px; + } + #admtool a:link, #admtool a:visited { + font-size: 12px; + background-image: url(../images/bbg.jpg); + margin-right: 0px; + padding: 3px 10px 2px 10px; + color: rgb(80,80,80); + background-color: #FCE6EA; + text-decoration: none; + border-top: 1px solid #FFFFFF; + border-left: 1px solid #FFFFFF; + border-bottom: 1px solid #717171; + border-right: 1px solid #717171; + } + #admtool a:hover { + background-image: url(../images/bbg2.jpg); + color: rgb(255,0,128); + border-top: 1px solid #717171; + border-left: 1px solid #717171; + border-bottom: 1px solid #FFFFFF; + border-right: 1px solid #FFFFFF; + } + </style> + <div id='admtool'>{$td}<a href='".XOOPS_URL."/modules/{$dirname}/'>"._MD_TO_MOD."</a> + </div>"; + return $main; +} + + +//\xBF\xEF\xB3\xE6 +function tool_interface($interface_menu=array(),$only_title='1'){ +global $xoopsModule; + if(empty($interface_menu))return; + if(is_array($interface_menu)){ + $td=""; + foreach($interface_menu as $file_name=>$m_array){ + if($only_title=='1'){ + if(empty($m_array['title'])) continue; + if(ereg($file_name,$_SERVER['PHP_SELF'])){ + $style="background-color:#ffffff"; + $color="#000000"; + }else{ + $style="background-color:#dceef5;border-bottom:1px solid #888888"; + $color="#7283c5"; + } + $td.="<td style='$style;padding:2px;border-top:1px solid #dddddd;border-left:1px solid #dddddd;border-right:1px solid #888888;'> + <a href='{$file_name}' id='ml'><font color='{$color}'>{$m_array['title']}</font></a></td>"; + }else{ + foreach($m_array as $link=>$m){ + if($link=='title' or !ereg($file_name,$_SERVER['PHP_SELF']))continue; + if($_REQUEST['op']==$link){ + $style="background-color:#ffffff"; + $color="#000000"; + }else{ + $style="background-color:#dfeac8;border-bottom:1px solid #888888"; + $color="#85a556"; + } + $td.="<td style='$style;padding:2px;border-top:1px solid #dddddd;border-left:1px solid #dddddd;border-right:1px solid #888888;'> + <a href='{$_SERVER['PHP_SELF']}?op={$link}' id='ml'><font color='{$color}'>{$m}</font></a></td>"; + } + } + + } + }else{ + $td="<td></td>"; + } + $main=" + <style> + a#ml:hover{text-decoration: none; font-weight: bold; background-color: transparent;} + </style> + <table style='background-color:#cfcfcf;width:auto' cellspacing='0' cellpadding='2'><tr>$td</tr></table>"; + return $main; +} + +//\xAD\xB6\xAD\xB1\xA4\xC1\xB4\xAB\xA6C +function toolbar($interface_menu=array()){ + $toolbar=tool_interface($interface_menu,'1'); + $toolbar.=tool_interface($interface_menu,'0'); + return $toolbar; +} + +//\xB3\xE6\xBF\xEF\xA7P\xC2_ +function is_checked($v1="",$v2="",$default="",$word="checked"){ + if(isset($v1) and $v1==$v2){ + return $word; + }elseif($default=="default"){ + return $word; + } +} + + +//\xA4\xC0\xAD\xB6\xAA\xAB\xA5\xF3 +class PageBar{ + // \xA5ثe\xA9Ҧb\xAD\xB6\xBDX + var $current; + // \xA9Ҧ\xB3\xAA\xBA\xB8\xEA\xAEƼƶq (rows) + var $total; + // \xA8C\xAD\xB6\xC5\xE3\xA5ܴX\xB5\xA7\xB8\xEA\xAE\xC6 + var $limit; + // \xA5ثe\xA6b\xB2ĴX\xBCh\xAA\xBA\xAD\xB6\xBCƿﶵ\xA1H + var $pCurrent; + // \xC1`\xA6@\xA4\xC0\xA6\xA8\xB4X\xAD\xB6\xA1H + var $pTotal; + // \xA8C\xA4@\xBCh\xB3̦h\xA6\xB3\xB4X\xADӭ\xB6\xBCƿﶵ\xA5i\xA8ѿ\xEF\xBEܡA\xA6p\xA1G3 = {[1][2][3]} + var $pLimit; + var $prev; + var $next = ""; + var $prev_layer = ' '; + var $next_layer = ' '; + var $first; + var $last; + var $bottons = array(); + // \xADn\xA8ϥΪ\xBA URL \xAD\xB6\xBCưѼƦW\xA1H + var $url_page = "g2p"; + // \xADn\xA8ϥΪ\xBA URL Ū\xA8\xFA\xAEɶ\xA1\xB0ѼƦW\xA1H + var $url_loadtime = "loadtime"; + // \xB7|\xA8ϥΨ쪺 URL \xC5ܼƦW\xA1A\xB5\xB9 process_query() \xB9L\xC2o\xA5Ϊ\xBA\xA1C + var $used_query = array(); + // \xA5ثe\xAD\xB6\xBC\xC6\xC3C\xA6\xE2 + var $act_color = "#990000"; + var $query_str; // \xA6s\xA9\xF1 URL \xB0ѼƦC + + function PageBar($total, $limit, $page_limit){ + $mydirname = basename( dirname( __FILE__ ) ) ; + $this->prev = "<img src='".XOOPS_URL."/modules/{$mydirname}/images/1leftarrow.gif' alt='"._MD_CAT_PREV."' align='absmiddle' hspace=3>"._MD_CAT_PREV; + $this->next = "<img src='".XOOPS_URL."/modules/{$mydirname}/images/1rightarrow.gif' alt='"._MD_CAT_NEXT."' align='absmiddle' hspace=3>"._MD_CAT_NEXT; + $this->first = "<img src='".XOOPS_URL."/modules/{$mydirname}/images/2leftarrow.gif' alt='"._MD_CAT_FIRST."' align='absmiddle' hspace=3>"._MD_CAT_FIRST; + $this->last = "<img src='".XOOPS_URL."/modules/{$mydirname}/images/2rightarrow.gif' alt='"._MD_CAT_LAST."' align='absmiddle' hspace=3>"._MD_CAT_LAST; + $this->limit = $limit; + $this->total = $total; + $this->pLimit = $page_limit; + } + + function init(){ + $this->used_query = array($this->url_page, $this->url_loadtime); + $this->query_str = $this->processQuery($this->used_query); + $this->glue = ($this->query_str == "")?'?': + '&'; + $this->current = (isset($_GET["$this->url_page"]))? $_GET["$this->url_page"]: + 1; + $this->pTotal = ceil($this->total / $this->limit); + $this->pCurrent = ceil($this->current / $this->pLimit); + } + + //\xAA\xEC\xA9l\xB3]\xA9w + function set($active_color = "none", $buttons = "none"){ + if ($active_color != "none"){ + $this->act_color = $active_color; + } + + if ($buttons != "none"){ + $this->buttons = $buttons; + $this->prev = $this->buttons['prev']; + $this->next = $this->buttons['next']; + $this->prev_layer = $this->buttons['prev_layer']; + $this->next_layer = $this->buttons['next_layer']; + $this->first = $this->buttons['first']; + $this->last = $this->buttons['last']; + } + } + + // \xB3B\xB2z URL \xAA\xBA\xB0ѼơA\xB9L\xC2o\xB7|\xA8ϥΨ쪺\xC5ܼƦW\xBA\xD9 + function processQuery($used_query){ + // \xB1N URL \xA6r\xA6\xEA\xA4\xC0\xC2\x{1E6A24}G\xBA\xFB\xB0}\xA6C + $vars = explode("&", $_SERVER['QUERY_STRING']); + for($i = 0; $i < count($vars); $i++){ + $var[$i] = explode("=", $vars[$i]); + } + + // \xB9L\xC2o\xADn\xA8ϥΪ\xBA URL \xC5ܼƦW\xBA\xD9 + for($i = 0; $i < count($var); $i++){ + for($j = 0; $j < count($used_query); $j++){ + if (isset($var[$i][0]) && $var[$i][0] == $used_query[$j]) $var[$i] = array(); + } + } + + // \xA6X\xA8\xD6\xC5ܼƦW\xBBP\xC5ܼƭ\xC8 + for($i = 0; $i < count($var); $i++){ + $vars[$i] = implode("=", $var[$i]); + } + + // \xA6X\xA8֬\xB0\xA4@\xA7\xB9\xBE㪺 URL \xA6r\xA6\xEA + $processed_query = ""; + for($i = 0; $i < count($vars); $i++){ + $glue = ($processed_query == "")?'?': + '&'; + // \xB6}\xC0Y\xB2Ĥ@\xADӬO '?' \xA8\xE4\xBEl\xAA\xBA\xA4~\xACO '&' + if ($vars[$i] != "") $processed_query .= $glue.$vars[$i]; + } + return $processed_query; + } + + // \xBBs\xA7@ sql \xAA\xBA query \xA6r\xA6\xEA (LIMIT) + function sqlQuery(){ + $row_start = ($this->current * $this->limit) - $this->limit; + $sql_query = " LIMIT {$row_start}, {$this->limit}"; + return $sql_query; + } + + + // \xBBs\xA7@ bar + function makeBar($url_page = "none"){ + if ($url_page != "none"){ + $this->url_page = $url_page; + } + $this->init(); + + // \xA8\xFA\xB1o\xA5ثe\xAEɶ\xA1 + $loadtime = '&loadtime='.time(); + + // \xA8\xFA\xB1o\xA5ثe\xAD\xB6\xAE\xD8(\xBCh)\xAA\xBA\xB2Ĥ@\xADӭ\xB6\xBCƱҩl\xADȡA\xA6p 6 7 8 9 10 = 6 + $i = ($this->pCurrent * $this->pLimit) - ($this->pLimit - 1); + + $bar_center = ""; + while ($i <= $this->pTotal && $i <= ($this->pCurrent * $this->pLimit)){ + if ($i == $this->current){ + $bar_center = "{$bar_center}<font color='{$this->act_color}'>[{$i}]</font>"; + }else{ + $bar_center .= " <a href='{$_SERVER['PHP_SELF']}{$this->query_str}{$this->glue}{$this->url_page}={$i}{$loadtime}'' title='{$i}'>{$i}</a> "; + } + $i++; + } + $bar_center = $bar_center . ""; + + // \xA9\xB9\xABe\xB8\xF5\xA4@\xAD\xB6 + if ($this->current <= 1){ + $bar_left = " {$this->prev} "; + $bar_first = " {$this->first} "; + } else{ + $i = $this->current-1; + $bar_left = " <a href='{$_SERVER['PHP_SELF']}{$this->query_str}{$this->glue}{$this->url_page}={$i}{$loadtime}' title='"._MD_CAT_PREV."'>{$this->prev}</a> "; + $bar_first = " <a href='{$_SERVER['PHP_SELF']}{$this->query_str}{$this->glue}{$this->url_page}=1{$loadtime}' title='"._MD_CAT_FIRST."'>{$this->first}</a> "; + } + + // \xA9\xB9\xAB\xE1\xB8\xF5\xA4@\xAD\xB6 + if ($this->current >= $this->pTotal){ + $bar_right = " {$this->next} "; + $bar_last = " {$this->last} "; + } else{ + $i = $this->current + 1; + $bar_right = " <a href='{$_SERVER['PHP_SELF']}{$this->query_str}{$this->glue}{$this->url_page}={$i}{$loadtime}' title='"._MD_CAT_NEXT."'>{$this->next}</a> "; + $bar_last = " <a href='{$_SERVER['PHP_SELF']}{$this->query_str}{$this->glue}{$this->url_page}={$this->pTotal}{$loadtime}' title='"._MD_CAT_LAST."'>{$this->last}</a> "; + } + + // \xA9\xB9\xABe\xB8\xF5\xA4@\xBE\xE3\xADӭ\xB6\xAE\xD8(\xBCh) + if (($this->current - $this->pLimit) < 1){ + $bar_l = " {$this->prev_layer} "; + } else{ + $i = $this->current - $this->pLimit; + $bar_l = " <a href='{$_SERVER['PHP_SELF']}{$this->query_str}{$this->glue}{$this->url_page}={$i}{$loadtime}' title='".sprintf(_MD_CAT_PREV_PAGE,$this->pLimit)."'>{$this->prev_layer}</a> "; + } + + //\xA9\xB9\xAB\xE1\xB8\xF5\xA4@\xBE\xE3\xADӭ\xB6\xAE\xD8(\xBCh) + if (($this->current + $this->pLimit) > $this->pTotal){ + $bar_r = " {$this->next_layer} "; + } else{ + $i = $this->current + $this->pLimit; + $bar_r = " <a href='{$_SERVER['PHP_SELF']}{$this->query_str}{$this->glue}{$this->url_page}={$i}{$loadtime}' title='".sprintf(_MD_CAT_NEXT_PAGE,$this->pLimit)."'>{$this->next_layer}</a> "; + } + + $page_bar['center'] = $bar_center; + $page_bar['left'] = $bar_first . $bar_l . $bar_left; + $page_bar['right'] = $bar_right . $bar_r . $bar_last; + $page_bar['current'] = $this->current; + $page_bar['total'] = $this->pTotal; + $page_bar['sql'] = $this->sqlQuery(); + return $page_bar; + } + +} + + +//\xA8\xFA\xB1o\xC3\xFE\xA7O\xA4U\xA9Կ\xEF\xB3\xE6 +function get_cata_select($disable_cat_sn=array(),$dbv=0,$of_cat_sn=0,$tab=""){ + global $xoopsDB; + $sql = "select cat_sn,cat_title from ".$xoopsDB->prefix("tad_uploader")." where of_cat_sn='$of_cat_sn' and cat_enable='1'"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR1); + $option=""; + $tab.=" "; + + while(list($cat_sn,$cat_title)=$xoopsDB->fetchRow($result)){ + $disabled=(in_array($cat_sn,$disable_cat_sn))?"disabled":""; + if(!check_up_power("catalog_up",$cat_sn))continue; + $option.="<option value='$cat_sn' ".is_checked($cat_sn,$dbv,"","selected")." $disabled>{$tab}{$cat_title}</option>\n"; + $option.=get_cata_select($disable_cat_sn,$dbv,$cat_sn,$tab); + } + + return $option; +} + + + +//\xAA\xED\xAE\xE6\xA7G\xB4\xBA +function tbl_theme($kind=1,$p1="",$p2="",$p3="",$theme="mac") { + $main=call_user_func_array($theme,array($kind,$p1,$p2,$p3)); + return $main; +} + +//mac\xA4\xB6\xAD\xB1 +function mac($kind=1,$p1="",$p2="",$p3="") { + if($kind=="1"){ + $main="<table width=100% cellspacing='0' cellpadding='0'> + <tr> + <td width='3%' align='left'><img src='".XOOPS_URL."/modules/tad_uploader/images/buttons.gif' width='66' height='23'></td> + <td width='94%' align='center' background='".XOOPS_URL."/modules/tad_uploader/images/buttons_bkgd.gif' style='vertical-align:middle;color:white'>$p1</td> + <td width='3%' align='right'><img src='".XOOPS_URL."/modules/tad_uploader/images/buttons_right.gif' width='66' height='23'></td> + </tr> + <tr><td colspan=3 background='".XOOPS_URL."/modules/tad_uploader/images/cellpic3.gif' height='20' align='center' style='vertical-align:middle'>$p2</td></tr> + </table>"; + }else{ + $main="<table width=100% border='0' cellspacing='0' cellpadding='0'> + <tr><td colspan=3 background='".XOOPS_URL."/modules/tad_uploader/images/pinstripes.gif' height='20' align='center' valign='middle'>$p3</td></tr> + <tr> + <td height='20' align='left' valign='top' background='".XOOPS_URL."/modules/tad_uploader/images/shadow_bottom.jpg'> + <img src='".XOOPS_URL."/modules/tad_uploader/images/shadow_bttm_left_corner.jpg' width='19' height='20'></td> + + <td align='left' valign='top' background='".XOOPS_URL."/modules/tad_uploader/images/shadow_bottom.jpg'> + <img src='".XOOPS_URL."/modules/tad_uploader/images/shadow_bottom.jpg' width='19' height='20'></td> + <td align='right' valign='top' background='".XOOPS_URL."/modules/tad_uploader/images/shadow_bottom.jpg'> + <img src='".XOOPS_URL."/modules/tad_uploader/images/shadow_bttm_right_corner.jpg' width='19' height='20'></td> + </tr> +</table>"; + } + return $main; +} + +//clearbook\xA4\xB6\xAD\xB1 +function clearbook($kind=1,$p1="",$p2="",$p3="") { + if($kind=="1"){ + $main="<table cellspacing='0' cellpadding='0'> + <tr> + <td width='22' align='left'><img src='".XOOPS_URL."/modules/tad_uploader/images/MCity-Clearlooks_1.gif' width='22' height='20'></td> + <td background='".XOOPS_URL."/modules/tad_uploader/images/MCity-Clearlooks_2.gif' style='vertical-align:middle;color:white'>$p1</td> + <td width='52' align='right'><img src='".XOOPS_URL."/modules/tad_uploader/images/MCity-Clearlooks_3.gif' width='52' height='20'></td> + </tr> + </table> + <table bgcolor='#EFEBE7' style='width:100%;border-left:1px solid #393831;border-right:1px solid #393831;padding-left:4px;padding-right:4px' cellspacing='0' cellpadding='1'> + <tr><td colspan=3 bgcolor='#EFEBE7' height='20' align='center' valign='middle'>$p2</td></tr> + <tr><td>"; + + }else{ + $main=" + </td></tr></table> + <table border='0' cellspacing='0' cellpadding='0'> + <tr bgcolor='#EFEBE7'><td colspan=3 height='20' align='center' valign='middle' style='border-left:1px solid #393831;border-right:1px solid #393831'>$p3</td></tr> + <tr> + <td width='22' height='6' align='left' valign='top'> + <img src='".XOOPS_URL."/modules/tad_uploader/images/MCity-Clearlooks_7.gif' width='22' height='6'></td> + <td background='".XOOPS_URL."/modules/tad_uploader/images/MCity-Clearlooks_8.gif'><img src='".XOOPS_URL."/modules/tad_uploader/images/MCity-Clearlooks_8.gif'></td> + <td width='52' align='right' valign='top'> + <img src='".XOOPS_URL."/modules/tad_uploader/images/MCity-Clearlooks_9.gif' width='52' height='6'></td> + </tr> + </table>"; + } + return $main; +} + +//\xABإߥؿ\xFD +function mk_dir($dir=""){ + //\xADY\xB5L\xA5ؿ\xFD\xA6W\xBA٨q\xA5Xĵ\xA7i\xB0T\xAE\xA7 + if(empty($dir))redirect_header($_SERVER['PHP_SELF'], 3,_MD_CAT_NO_FOLDER_NAME); + //\xADY\xA5ؿ\xFD\xA4\xA3\xA6s\xA6b\xAA\xBA\xB8ܫإߥؿ\xFD + if (!is_dir($dir)) { + umask(000); + //\xADY\xABإߥ\xA2\xB1Ѩq\xA5Xĵ\xA7i\xB0T\xAE\xA7 + if(!mkdir($dir, 0777)){ + redirect_header($_SERVER['PHP_SELF'], 3,_MD_CAT_CANT_CREATE_FOLDER); + } + } +} + + + +//\xC1קK\xBAI\xB1\xBC\xA5b\xADӤ\xA4\xA4\xE5\xA6r +function cuttingstr($str="",$ct="",$mark="...") { + if(strlen($str) > $ct) { + for($i=0;$i<$ct;$i++) { + $ch=substr($str,$i,1); + if(ord($ch)>127) $i++; + } + $main['str']= substr($str,0,$i).$mark; + $main['i']= $i; + }else{ + $main['str']= $str; + $main['i']= 0; + } + return $main; +} + +//\xC1קK\xBAI\xB1\xBC\xA5b\xADӤ\xA4\xA4\xE5\xA6r\xA8ô\xAB\xA6\xE6 +function wrap_str($str="",$ct=10,$addstr="<br>") { + $main=""; + + do{ + $w=cuttingstr($str,$ct,$addstr); + $main.=$w['str']; + $str=substr($str,$w['i']); + }while(strlen($w['str'])>$ct); + + return $main; +} + + +//\xC0ɮz +class file_adm{ + + function file_adm(){ + + } + + //\xA5H\xACy\xA4\x{138E68}\xFA\xB1o\xACY\xB5\xA7catalog_file\xB8\xEA\xAE\xC6 + function get_catalog_file($cfsn=""){ + global $xoopsDB; + if(empty($cfsn))return; + $sql = "select * from ".$xoopsDB->prefix("tad_uploader_file")." where cfsn='$cfsn'"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR2); + $data=$xoopsDB->fetchArray($result); + return $data; + } + + //\xA4U\xB8\xFC\xAC\xF6\xBF\xFD + function add_dl_log($cfsn="",$uid=""){ + global $xoopsDB; + if(empty($cfsn))return; + if (empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { + $myip = $_SERVER['REMOTE_ADDR']; + } else { + $myip = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); + $myip = $myip[0]; + } + $sql = "insert into ".$xoopsDB->prefix("tad_uploader_dl_log")." (`uid`,`dl_time`,`from_ip`,`cfsn`) values('{$uid}',now(),'{$myip}','{$cfsn}')"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, "add log error"); + + } + + + //\xA4U\xB8\xFC\xC0ɮ\xD7 + function dlfile($cfsn=""){ + global $dir,$url_dir,$xoopsUser; + + if(empty($_SERVER['HTTP_REFERER']))redirect_header("index.php",3, _MD_CAT_NO_ACCESS_POWER); + + if(!check_up_power("catalog",$cf[$cat_sn])){ + redirect_header("index.php",3, _MD_CAT_NO_ACCESS_POWER); + } + + if($xoopsUser){ + $uid=$xoopsUser->getVar("uid"); + $this->add_dl_log($cfsn,$uid); + } + + $cf=$this->get_catalog_file($cfsn); + //\xA7\xF3\xB7s\xA4H\xAE\xF0\xAD\xC8 + $this->update_catalog_file_count($cfsn); + $real_file=$this->get_file_name($cf['cf_name'],$cfsn); + + $ffile1="{$dir}/{$real_file}"; + $ffile2="{$dir}/".urlencode($real_file); + $ffile3="{$dir}/".urlencode(iconv("Big5","UTF-8",$real_file)); + + $file1="{$url_dir}/{$real_file}"; + $file2="{$url_dir}/".urlencode($real_file); + $file3="{$url_dir}/".urlencode(iconv("Big5","UTF-8",$real_file)); + + if(file_exists($ffile1)){ + $file=$file1; + }elseif(file_exists($ffile2)){ + $file=$file2; + }elseif(file_exists($ffile3)){ + $file=$file3; + }else{ + die(_MD_CAT_CANT_FIND_FILE.":{$file1}"); + } + + header("location:{$file}"); + + exit; + } + + + + //\xC0x\xA6s\xC0ɮ\xEA\xAE\xC6 + function replace_catalog_file($cat_sn="",$cfsn="",$name="",$type="",$size="",$cf_count="",$cf_desc=""){ + global $xoopsDB,$xoopsUser; + if($xoopsUser){ + $uid=$xoopsUser->getVar('uid'); + }else{ + $uid=0; + } + + if(empty($name))redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_NO_FILE_NAME); + + $sql = "replace into ".$xoopsDB->prefix("tad_uploader_file")." (cfsn,cat_sn,uid,cf_name,cf_desc,cf_type,cf_size,cf_count,up_date) + values('{$cfsn}','{$cat_sn}','{$uid}','{$name}','{$cf_desc}','{$type}','{$size}','{$cf_count}',now())"; + $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR5); + + //\xA8\xFA\xB1o\xB3̫\xE1\xB7s\xBCW\xB8\xEA\xAEƪ\xBA\xACy\xA4\xF4\xBDs\xB8\xB9 + $cfsn=$xoopsDB->getInsertId(); + return $cfsn; + } + + //\xA7\xF3\xB7s\xC0ɮ\xEA\xAE\xC6 + function update_catalog_file($cfsn="",$col_name="",$col_value=""){ + global $xoopsDB,$xoopsUser; + + $sql = "update ".$xoopsDB->prefix("tad_uploader_file")." set {$col_name}='{$col_value}' where cfsn='{$cfsn}'"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR6); + + return $cfsn; + } + + //\xA7R\xB0\xA3\xA4@\xAD\xD3\xC0ɮ\xD7 + function del_file($cfsn,$cf_name){ + global $xoopsDB,$dir; + if(empty($cfsn))return; + unlink($dir."/".$this->get_file_name($cf_name,$cfsn)); + $sql = "delete from ".$xoopsDB->prefix("tad_uploader_file")." where cfsn='$cfsn'"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR7); + } + + + //\xA7R\xB0\xA3\xC0ɮ\xD7 + function delfile($select_files){ + if(empty($select_files)){ + redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_NO_SELECTED_FILE); + } + foreach($select_files as $cfsn=>$cf_name){ + $this->del_file($cfsn,$cf_name); + } + } + + //\xA7\xF3\xB7s\xC0ɮפH\xAE\xF0\xAD\xC8 + function update_catalog_file_count($cfsn=""){ + global $xoopsDB; + $sql = "update ".$xoopsDB->prefix("tad_uploader_file")." set cf_count = cf_count+1 where cfsn='$cfsn'"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR6); + return $cfsn; + } + + //\xA8\xFA\xB1o\xA4W\xB6\xC7\xC0ɦW + function get_file_name($real_file_name="",$cfsn="") { + $f=explode(".",$real_file_name); + $ln=sizeof($f)-1; + $sub=$f[$ln]; + if($sub=="php")$real_file_name.="s"; + $uploadfile="{$cfsn}_{$real_file_name}"; + return $uploadfile; + } + + //\xA7P\xA7O\xAE榡\xB9\xCF\xC0\xC9 + function file_pic($file){ + $f=explode(".",$file); + $n=sizeof($f)-1; + if(!file_exists(XOOPS_ROOT_PATH."/modules/tad_uploader/images/mime/{$f[$n]}.png"))return "mime.png"; + return "{$f[$n]}.png"; + } +} + +class cols_interface{ + + function cols_interface(){ + + } + + //\xA5H\xACy\xA4\x{138E68}\xFA\xB1o\xACY\xB5\xA7catalog\xB8\xEA\xAE\xC6 + function get_catalog($cat_sn=""){ + global $xoopsDB; + if(empty($cat_sn))return; + $sql = "select * from ".$xoopsDB->prefix("tad_uploader")." where cat_sn='$cat_sn'"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR1); + $data=$xoopsDB->fetchArray($result); + return $data; + } + + + //\xB2\xA3\xA5\xEA\xAEƧ\xA8\xA4W\xB6Ǥ\xB6\xAD\xB1 + function make_cols_form($cat_sn="",$i=0,$noup=0){ + global $xoopsUser,$file_adm,$xoopsModuleConfig; + $allow_url_fopen=ini_get('allow_url_fopen'); + $upload_max_filesize=ini_get('upload_max_filesize'); + $post_max_size=ini_get('post_max_size'); + $max_execution_time=ini_get('max_execution_time'); + + $upload_max_filesize_new=$upload_max_filesize * $xoopsModuleConfig['upload_max_filesize']; + $post_max_size_new=$post_max_size * $xoopsModuleConfig['post_max_size']; + $max_execution_time_new=$max_execution_time * $xoopsModuleConfig['max_execution_time']; + + ini_set ( "upload_max_filesize", $upload_max_filesize_new."M" ); + ini_set ( "post_max_size", $post_max_size_new."M"); + ini_set ( "max_execution_time", $max_execution_time_new); + + $phpversion=phpversion(); + + $ff=($noup=='1')?$file_adm->get_catalog_file($i):""; + + $up_col=($noup=='1')?"":" + <tr><td nowrap> + <p><b>"._MD_CAT_UPLOAD_FROM_HD."</b><input type='file' name='cc_file[$i]' size='20'></p> + <p><b>"._MD_CAT_GET_FROM_URL."</b><input type='text' name='cc_file_url' size='30'><br>"._MD_CAT_GET_FROM_URL_DESC."</p> + </td><td rowspan=2> + "._MD_CAT_PHP_VERSION."<font color='red'><b>{$phpversion}</b></font><br> + "._MD_CAT_ALLOW_URL_FOPEN."<font color='red'><b>{$allow_url_fopen}</b></font><br> + "._MD_CAT_MAX_FILESIZE."<font color='red'><b>{$upload_max_filesize_new}M</b></font>".sprintf(_MD_CAT_PRE_SET,$upload_max_filesize)."<br> + "._MD_CAT_POST_MAX_SIZE."<font color='red'><b>{$post_max_size_new}M</b></font>".sprintf(_MD_CAT_PRE_SET,$post_max_size)."<br> + "._MD_CAT_MAX_EXECUTION_TIME."<font color='red'><b>{$max_execution_time_new}"._MD_CAT_SECOND."</b></font>".sprintf(_MD_CAT_PRE_SET,$max_execution_time)."<br> + "._MD_CAT_README1."</font> + </td></tr>"; + + $up_col.="<tr><td nowrap><b>"._MD_CAT_FILE_DESC."</b><br><textarea name='cf_desc[$i]' cols=50 rows=3 style='width:100%'>{$ff['cf_desc']}</textarea></td></tr>"; + + $form_main=" + $form1 + <table cellspacing='0' cellpadding='3' style='width:auto; margin-left:20px' id='t'> + $up_col + </table> + $form2 + "; + return $form_main; + } + + //\xB2\xA3\xA5\xEA\xAEƧ\xA8\xA4W\xB6Ǥ\xB6\xAD\xB1 + function make_cols_interface($cat_sn="",$enable="1",$cfsn="",$cf_name="",$pic=""){ + global $xoopsUser,$xoopsModule; + + $check_up_power=check_up_power("catalog_up",$cat_sn); + if(!$check_up_power) { + return _MD_CAT_NO_EDIT_POWER; + } + + $cat=$this->get_catalog($cat_sn); + $cfsn=(empty($cfsn))?"0":$cfsn; + $cols_form=$this->make_cols_form($cat_sn,$cfsn); + $form1=($enable=="1")?"<FORM action='index.php' method='POST' enctype='multipart/form-data'>":""; + $form2=($enable=="1")?"</FORM>":""; + $cat_title=(empty($cat_sn))?_MD_CAT_ROOT:$cat['cat_title']; + $tbl_theme1=tbl_theme(1,sprintf(_MD_CAT_UPLOAD_INTERFACE,"<a href='".XOOPS_URL."/modules/tad_uploader/index.php?of_cat_sn={$cat_sn}'><font color='#ffff66'>{$cat_title}</font></a>"),"","","clearbook"); + $tbl_theme2=tbl_theme(2,"","","<input type='submit' value='"._MD_CAT_SUBMIT."'>","clearbook"); + + + $form_main=" + $form1 + $tbl_theme1 + <table> + <tr> + <td>{$cols_form}</td> + </tr> + </table> + <input type='hidden' name='cat_sn' value='{$cat_sn}'> + <input type='hidden' name='op' value='replace_data'> + $tbl_theme2 + $form2 + "; + return $form_main; + } +} + + +//\xC0ˬd\xA6\xB3\xB5L\xA4W\xB6\xC7\xC5v\xA7Q +function check_up_power($kind="catalog",$cat_sn=""){ + global $xoopsUser,$xoopsModule; + + //\xA8\xFA\xB1o\xA5ثe\xA8ϥΪ̪\xBA\xB8s\xB2սs\xB8\xB9 + if($xoopsUser) { + if(empty($xoopsModule)){ + $modhandler = &xoops_gethandler('module'); + $xoopsModule = &$modhandler->getByDirname("tad_uploader"); + } + $module_id = $xoopsModule->getVar('mid'); + $groups = $xoopsUser->getGroups(); + $isAdmin=$xoopsUser->isAdmin($module_id); + $uid=$xoopsUser->getVar('uid'); + }else{ + $groups = XOOPS_GROUP_ANONYMOUS; + $isAdmin=false; + } + + //\xADY\xA8S\xA4\xC0\xA8ɡA\xABh\xACݬݬO\xA7_\xACO\xA6ۤv\xAA\xBA\xB8\xEA\xAEƧ\xA8\xA7Y\xA5i\xA1C + $catalog=cols_interface::get_catalog($cat_sn); + if(($catalog['cat_share']=='0' and $catalog['uid']!=$uid) and !$isAdmin ) return false; + + //\xA8\xFA\xB1o\xBCҲսs\xB8\xB9 + $module_id = $xoopsModule->getVar('mid'); + + //\xA8\xFA\xB1o\xB8s\xB2\xD5\xC5v\xAD\xAD\xA5\\xAF\xE0 + $gperm_handler =& xoops_gethandler('groupperm'); + + //\xC5v\xAD\xAD\xB6\xB5\xA5ؽs\xB8\xB9 + $perm_itemid = intval($cat_sn); + //\xA8̾ڸӸs\xB2լO\xA7_\xB9\xEF\xB8\xD3\xC5v\xAD\xAD\xB6\xB5\xA5ئ\xB3\xA8ϥ\xCE\xC5v\xA4\xA7\xA7P\xC2_ \xA1A\xB0\xB5\xA4\xA3\xA6P\xA4\xA7\xB3B\xB2z + if(empty($cat_sn)){ + if($kind=="catalog"){ + return true; + }else{ + if($isAdmin) return true; + } + }else{ + if($gperm_handler->checkRight($kind, $cat_sn, $groups, $module_id) or $isAdmin) return true; + } + + return false; +} + +//\xA7R\xB0\xA3catalog\xACY\xB5\xA7\xB8\xEA\xAEƸ\xEA\xAE\xC6 +function delete_catalog($cat_sn=""){ + global $xoopsDB,$file_adm,$xoopsUser,$xoopsModule; + + $power=check_up_power("catalog_up",$cat_sn); + if(!$power)redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_NO_POWER); + + if($xoopsUser) { + $module_id = $xoopsModule->getVar('mid'); + $groups = $xoopsUser->getGroups(); + $isAdmin=$xoopsUser->isAdmin($module_id); + $uid=$xoopsUser->getVar('uid'); + $where=($isAdmin)?"":" and uid='{$uid}'"; + }else{ + $groups = XOOPS_GROUP_ANONYMOUS; + $isAdmin=false; + redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_NO_LOGIN); + } + + + + //\xA7\xE4\xA5X\xA9\xD2\xC4ݸ\xEA\xAEƧ\xA8 + $sql = "select cat_sn from ".$xoopsDB->prefix("tad_uploader")." where of_cat_sn='{$cat_sn}' $where"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR2); + while(list($sub_cat_sn)=$xoopsDB->fetchRow($result)){ + delete_catalog($sub_cat_sn); + } + + //\xA7\xE4\xA5X\xA9\xD2\xC4\xDD\xC0ɮ\xD7 + $sql = "select cfsn,cf_name from ".$xoopsDB->prefix("tad_uploader_file")." where cat_sn='{$cat_sn}'"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR2); + while(list($cfsn,$cf_name)=$xoopsDB->fetchRow($result)){ + $flies[$cfsn]=$cf_name; + } + + //\xA7R\xB0\xA3\xA9\xD2\xC4\xDD\xC0ɮ\xD7 + if(!empty($flies)) $file_adm->delfile($flies); + + //\xA8\xFA\xB1o\xACY\xB8\xEA\xAEƧ\xA8\xC0ɮ\xC6 + $get_catfile_num=get_catfile_num($cat_sn); + //\xA8\xFA\xB1o\xACY\xB8\xEA\xAEƧ\xA8\xC0ɮ\xC6 + $get_subcat_num=get_subcat_num($cat_sn); + $total=$get_catfile_num+$get_subcat_num; + + if($total>0){ + redirect_header($_SERVER['PHP_SELF'],3, sprintf(_MD_CAT_CANT_DELETE1,$get_subcat_num,$get_catfile_num)); + }else{ + //\xA7R\xB1\xBC\xAB\xFC\xA9w\xB8\xEA\xAEƧ\xA8 + $sql = "delete from ".$xoopsDB->prefix("tad_uploader")." where cat_sn='$cat_sn' $where"; + $xoopsDB->queryF($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR8); + } +} + + +//\xA8\xFA\xB1o\xACY\xB8\xEA\xAEƧ\xA8\xC0ɮ\xC6 +function get_catfile_num($cat_sn=0){ + global $xoopsDB; + if(empty($cat_sn))return; + $sql = "select count(*) from ".$xoopsDB->prefix("tad_uploader_file")." as a,".$xoopsDB->prefix("tad_uploader")." as b where a.cat_sn=b.cat_sn and (a.cat_sn='{$cat_sn}' or b.of_cat_sn='{$cat_sn}')"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR2); + $total=0; + while(list($data)=$xoopsDB->fetchRow($result)){ + $total+=$data; + } + return $total; +} + +//\xA8\xFA\xB1o\xACY\xB8\xEA\xAEƧ\xA8\xA5ؿ\xFD\xBC\xC6 +function get_subcat_num($cat_sn=0){ + global $xoopsDB; + + $sql = "select count(*) from ".$xoopsDB->prefix("tad_uploader")." where of_cat_sn='{$cat_sn}'"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, _MD_CAT_DB_ERROR2); + list($data)=$xoopsDB->fetchRow($result); + return $data; +} +?> Added: XoopsModules/tad_uploader/trunk/header.php =================================================================== --- XoopsModules/tad_uploader/trunk/header.php (rev 0) +++ XoopsModules/tad_uploader/trunk/header.php 2009-08-27 18:54:04 UTC (rev 3510) @@ -0,0 +1,14 @@ +<?php +// ------------------------------------------------------------------------ // +// \xA5\xBB\xBCҲե\xD1 \xA7d\xA5\xB0\xB3\xCD(ta...@gm...) \xBBs\xA7@ +// \xBBs\xA7@\xA4\xE9\xB4\xC1\xA1G2008-02-06 +// $Id: header.php,v 1.1 2008/05/14 01:27:37 tad Exp $ +// ------------------------------------------------------------------------- // + +include "../../mainfile.php"; + +include "function.php"; +$file_adm=new file_adm(); +$col_intf=new cols_interface(); + +?> Added: XoopsModules/tad_uploader/trunk/htaccess.zip =================================================================== (Binary files differ) Property changes on: XoopsModules/tad_uploader/trunk/htaccess.zip ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/tad_uploader/trunk/images/1leftarrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/tad_uploader/trunk/images/1leftarrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/tad_uploader/trunk/images/1rightarrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/tad_uploader/trunk/images/1rightarrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/tad_uploader/trunk/images/2leftarrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/tad_uploader/trunk/images/2leftarrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/tad_uploader/trunk/images/2rightarrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/... [truncated message content] |
From: <be...@us...> - 2009-08-27 19:31:05
|
Revision: 3511 http://xoops.svn.sourceforge.net/xoops/?rev=3511&view=rev Author: beckmi Date: 2009-08-27 19:29:27 +0000 (Thu, 27 Aug 2009) Log Message: ----------- Adding TadNews Module Added Paths: ----------- XoopsModules/tadnews/ XoopsModules/tadnews/branches/ XoopsModules/tadnews/releases/ XoopsModules/tadnews/trunk/ XoopsModules/tadnews/trunk/admin/ XoopsModules/tadnews/trunk/admin/admin_function.php XoopsModules/tadnews/trunk/admin/admin_header.php XoopsModules/tadnews/trunk/admin/cate.php XoopsModules/tadnews/trunk/admin/import.php XoopsModules/tadnews/trunk/admin/index.html XoopsModules/tadnews/trunk/admin/index.php XoopsModules/tadnews/trunk/admin/menu.php XoopsModules/tadnews/trunk/admin/newspaper.php XoopsModules/tadnews/trunk/admin/page.php XoopsModules/tadnews/trunk/admin/post.php XoopsModules/tadnews/trunk/admin/update.php XoopsModules/tadnews/trunk/ajax.php XoopsModules/tadnews/trunk/archive.php XoopsModules/tadnews/trunk/autoupdate/ XoopsModules/tadnews/trunk/autoupdate/update1.php XoopsModules/tadnews/trunk/autoupdate/update2.php XoopsModules/tadnews/trunk/autoupdate/update3.php XoopsModules/tadnews/trunk/autoupdate/update4.php XoopsModules/tadnews/trunk/autoupdate/update5.php XoopsModules/tadnews/trunk/autoupdate/update6.php XoopsModules/tadnews/trunk/autoupdate/update7.php XoopsModules/tadnews/trunk/autoupdate/update8.php XoopsModules/tadnews/trunk/blocks/ XoopsModules/tadnews/trunk/blocks/index.html XoopsModules/tadnews/trunk/blocks/tadnews_cate.php XoopsModules/tadnews/trunk/blocks/tadnews_cate_news.php XoopsModules/tadnews/trunk/blocks/tadnews_content_block.php XoopsModules/tadnews/trunk/blocks/tadnews_focus_news.php XoopsModules/tadnews/trunk/blocks/tadnews_newspaper.php XoopsModules/tadnews/trunk/blocks/tadnews_newspaper_list.php XoopsModules/tadnews/trunk/blocks/tadnews_page.php XoopsModules/tadnews/trunk/blocks/tadnews_re_block.php XoopsModules/tadnews/trunk/class/ XoopsModules/tadnews/trunk/class/bt-0.9.1/ XoopsModules/tadnews/trunk/class/bt-0.9.1/CHANGELOG.txt XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/ XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/ XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/beautytips.png XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/close.gif XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/demo-ajax.html XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/demo-ie-fix.css XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/demo.css XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/demo.js XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/gmap-pin.png XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/logo.html XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/logo.png XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/logo.psd XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/lullabot.png XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/demofiles/netflix.html XoopsModules/tadnews/trunk/class/bt-0.9.1/DEMO/index.html XoopsModules/tadnews/trunk/class/bt-0.9.1/jquery.bt.css XoopsModules/tadnews/trunk/class/bt-0.9.1/jquery.bt.js XoopsModules/tadnews/trunk/class/bt-0.9.1/jquery.bt.min.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/ XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/ XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/ChangeLog.txt XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/META.json XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/docs/ XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/docs/index.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/jquery.bgiframe.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/jquery.bgiframe.min.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/jquery.bgiframe.pack.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/test/ XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/bgiframe_2.1.1/test/index.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/ XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/AUTHORS XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/COPYING XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/README XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/examples/ XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/examples/example1.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/examples/example2.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/examples/example3.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/examples/ff.jpg XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/excanvas-compressed.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/excanvas.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/testcases/ XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/testcases/arc.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/testcases/linewidth.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/testcases/overflow.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/testcases/quadraticcurve.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/excanvas_0002/testcases/resizing.html XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/jquery-1.2.6.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/jquery-1.2.6.min.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/jquery-1.3.min.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/jquery.easing.1.3.js XoopsModules/tadnews/trunk/class/bt-0.9.1/other_libs/jquery.hoverIntent.minified.js XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/ XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/dhtmlgoodies_calendar.css XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/dhtmlgoodies_calendar.php XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/ XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/close.gif XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/close_over.gif XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/down.gif XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/down_over.gif XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/down_time.gif XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/down_time_over.gif XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/left.gif XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/left_over.gif XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/right.gif XoopsModules/tadnews/trunk/class/dhtmlgoodies_calendar/images/right_over.gif XoopsModules/tadnews/trunk/class/fckeditor/ XoopsModules/tadnews/trunk/class/fckeditor/editor/ XoopsModules/tadnews/trunk/class/fckeditor/editor/css/ XoopsModules/tadnews/trunk/class/fckeditor/editor/css/behaviors/ XoopsModules/tadnews/trunk/class/fckeditor/editor/css/behaviors/disablehandles.htc XoopsModules/tadnews/trunk/class/fckeditor/editor/css/behaviors/showtableborders.htc XoopsModules/tadnews/trunk/class/fckeditor/editor/css/fck_editorarea.css XoopsModules/tadnews/trunk/class/fckeditor/editor/css/fck_internal.css XoopsModules/tadnews/trunk/class/fckeditor/editor/css/fck_showtableborders_gecko.css XoopsModules/tadnews/trunk/class/fckeditor/editor/css/images/ XoopsModules/tadnews/trunk/class/fckeditor/editor/css/images/fck_anchor.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/css/images/fck_flashlogo.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/css/images/fck_hiddenfield.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/css/images/fck_pagebreak.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/common/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/common/fck_dialog_common.css XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/common/fck_dialog_common.js XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/common/fcknumericfield.htc XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/common/images/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/common/images/locked.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/common/images/reset.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/common/images/unlocked.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/common/moz-bindings.xml XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_about/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_about/logo_fredck.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_about.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_anchor.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_button.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_checkbox.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_colorselector.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_docprops/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_docprops.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_find.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_flash/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_flash/fck_flash.js XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_flash.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_form.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_hiddenfield.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_image/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_image/fck_image.js XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_image/fck_image_preview.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_image.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_link/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_link/fck_link.js XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_link.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_listprop.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_paste.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_radiobutton.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_replace.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_select/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_select/fck_select.js XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_select.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_smiley.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_source.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_specialchar.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/blank.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_spellerpages.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_table.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_tablecell.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_template/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_template/images/ XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_template/images/template1.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_template/images/template2.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_template/images/template3.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_template.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_textarea.html XoopsModules/tadnews/trunk/class/fckeditor/editor/dialog/fck_textfield.html XoopsModules/tadnews/trunk/class/fckeditor/editor/fckdebug.html XoopsModules/tadnews/trunk/class/fckeditor/editor/fckdialog.html XoopsModules/tadnews/trunk/class/fckeditor/editor/fckeditor.html XoopsModules/tadnews/trunk/class/fckeditor/editor/fckeditor.original.html XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/browser.css XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/browser.html XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/basexml.php XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/commands.php XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/config.php XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/io.php XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/php/util.php XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/connectors/test.html XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/frmactualfolder.html XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/frmfolders.html XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/frmresourceslist.html XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/frmresourcetype.html XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/frmupload.html XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/ButtonArrow.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/Folder.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/Folder32.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/FolderOpened.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/FolderOpened32.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/FolderUp.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/fla.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/gif.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/htm.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/html.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/jpg.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/js.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/mdb.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/mp3.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/pdf.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/ppt.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/rdp.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/swf.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/swt.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/txt.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/vsd.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/xls.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/xml.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/32/zip.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/ai.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/avi.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/bmp.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/cs.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/default.icon.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/dll.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/doc.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/exe.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/fla.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/gif.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/htm.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/html.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/jpg.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/js.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/mdb.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/mp3.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/pdf.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/png.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/ppt.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/rdp.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/swf.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/swt.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/txt.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/vsd.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/xls.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/xml.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/icons/zip.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/images/spacer.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/js/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/js/common.js XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/browser/default/js/fckxml.js XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/upload/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/upload/php/ XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/upload/php/config.php XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/upload/php/upload.php XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/upload/php/util.php XoopsModules/tadnews/trunk/class/fckeditor/editor/filemanager/upload/test.html XoopsModules/tadnews/trunk/class/fckeditor/editor/images/ XoopsModules/tadnews/trunk/class/fckeditor/editor/images/anchor.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/arrow_ltr.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/arrow_rtl.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/ XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/ XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/angel_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/angry_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/broken_heart.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/cake.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/confused_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/cry_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/devil_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/embaressed_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/envelope.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/heart.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/kiss.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/lightbulb.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/omg_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/regular_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/sad_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/shades_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/teeth_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/thumbs_down.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/thumbs_up.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/tounge_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/smiley/msn/wink_smile.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/images/spacer.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/js/ XoopsModules/tadnews/trunk/class/fckeditor/editor/js/fckeditorcode_gecko.js XoopsModules/tadnews/trunk/class/fckeditor/editor/js/fckeditorcode_ie.js XoopsModules/tadnews/trunk/class/fckeditor/editor/lang/ XoopsModules/tadnews/trunk/class/fckeditor/editor/lang/_translationstatus.txt XoopsModules/tadnews/trunk/class/fckeditor/editor/lang/en.js XoopsModules/tadnews/trunk/class/fckeditor/editor/lang/zh-cn.js XoopsModules/tadnews/trunk/class/fckeditor/editor/lang/zh.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/20062020_20061221.diff XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/ChangeLog XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/Files.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/GD.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/IM.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/ImageEditor.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/ImageManager.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/NetPBM.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/Thumbnail.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/Transform.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/api.watermark.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/Classes/package.xml XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/README.txt XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/EditorContent.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/ImageEditor.css XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/blank.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/dialog.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editor.css XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editor.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editorFrame.css XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/editorFrame.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/hover.htc XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/imagelist.css XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/images.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/manager.css XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/manager.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/pngbehavior.htc XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/popup.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/slider.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/wz_dragdrop.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/assets/wz_jsgraphics.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/config.inc.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/editor.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/editorFrame.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/fckplugin.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/icon.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/images.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/2x2.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/2x2_w.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/backgroundGrid.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/btnFolderNew.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/btnFolderUp.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/btn_cancel.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/btn_ok.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/crop.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/default.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/div.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/dots.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/edit_active.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/edit_pencil.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/edit_trash.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/folder.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/hand.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/islocked2.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/locked.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/measure.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/noimages.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/replace.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/rotate.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/save.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/scale.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/spacer.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/t_black.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/t_white.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/transparentpixel.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/unlocked.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/unlocked2.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/devshed.png XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/imageManager.jpg XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/imageManager.png XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark/natureWatermark.png XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermark.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermarkAlign.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/img/watermarkColor.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/de.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/en.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/fr.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/nl.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/no.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/pl.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/ru.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/sv.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/lang/zh.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/manager.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/newFolder.html XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/ImageManager/thumbs.php XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/autogrow/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/autogrow/fckplugin.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/fck_placeholder.html XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/fckplugin.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/lang/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/lang/de.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/lang/en.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/lang/fr.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/lang/it.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/lang/pl.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/placeholder/placeholder.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/simplecommands/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/simplecommands/fckplugin.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/summary/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/summary/fckplugin.js XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/summary/summary.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/tablecommands/ XoopsModules/tadnews/trunk/class/fckeditor/editor/plugins/tablecommands/fckplugin.js XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/ XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/_fckviewstrips.html XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/ XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/fck_dialog.css XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/fck_editor.css XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/fck_strip.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/images/ XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/images/toolbar.arrowright.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/images/toolbar.buttonarrow.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/images/toolbar.collapse.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/images/toolbar.end.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/images/toolbar.expand.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/images/toolbar.separator.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/default/images/toolbar.start.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/ XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/fck_dialog.css XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/fck_editor.css XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/fck_strip.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/images/ XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.arrowright.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.bg.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.buttonarrow.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.collapse.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.end.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.expand.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.separator.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/office2003/images/toolbar.start.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/ XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/fck_dialog.css XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/fck_editor.css XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/fck_strip.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/images/ XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/images/toolbar.arrowright.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/images/toolbar.collapse.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/images/toolbar.end.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/images/toolbar.expand.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/images/toolbar.separator.gif XoopsModules/tadnews/trunk/class/fckeditor/editor/skins/silver/images/toolbar.start.gif XoopsModules/tadnews/trunk/class/fckeditor/fckconfig.js XoopsModules/tadnews/trunk/class/fckeditor/fckeditor.js XoopsModules/tadnews/trunk/class/fckeditor/fckeditor.php XoopsModules/tadnews/trunk/class/fckeditor/fckeditor_php4.php XoopsModules/tadnews/trunk/class/fckeditor/fckeditor_php5.php XoopsModules/tadnews/trunk/class/fckeditor/fckpackager.xml XoopsModules/tadnews/trunk/class/fckeditor/fckstyles.xml XoopsModules/tadnews/trunk/class/fckeditor/fcktemplates.xml XoopsModules/tadnews/trunk/class/fckeditor/htaccess.txt XoopsModules/tadnews/trunk/class/fckeditor/index.html XoopsModules/tadnews/trunk/class/fckeditor/license.txt XoopsModules/tadnews/trunk/class/form-field-tooltip/ XoopsModules/tadnews/trunk/class/form-field-tooltip/css/ XoopsModules/tadnews/trunk/class/form-field-tooltip/css/form-field-tooltip.css XoopsModules/tadnews/trunk/class/form-field-tooltip/form-field-tooltip.html XoopsModules/tadnews/trunk/class/form-field-tooltip/images/ XoopsModules/tadnews/trunk/class/form-field-tooltip/images/Thumbs.db XoopsModules/tadnews/trunk/class/form-field-tooltip/images/green-arrow-right.gif XoopsModules/tadnews/trunk/class/form-field-tooltip/images/green-arrow.gif XoopsModules/tadnews/trunk/class/form-field-tooltip/js/ XoopsModules/tadnews/trunk/class/form-field-tooltip/js/form-field-tooltip.js XoopsModules/tadnews/trunk/class/form-field-tooltip/js/rounded-corners.js XoopsModules/tadnews/trunk/class/index.html XoopsModules/tadnews/trunk/class/jFileDir.php XoopsModules/tadnews/trunk/class/jquery.js XoopsModules/tadnews/trunk/class/jquery.js.126 XoopsModules/tadnews/trunk/class/lytebox/ XoopsModules/tadnews/trunk/class/lytebox/images/ XoopsModules/tadnews/trunk/class/lytebox/images/blank.gif XoopsModules/tadnews/trunk/class/lytebox/images/close_blue.png XoopsModules/tadnews/trunk/class/lytebox/images/close_gold.png XoopsModules/tadnews/trunk/class/lytebox/images/close_green.png XoopsModules/tadnews/trunk/class/lytebox/images/close_grey.png XoopsModules/tadnews/trunk/class/lytebox/images/close_red.png XoopsModules/tadnews/trunk/class/lytebox/images/loading.gif XoopsModules/tadnews/trunk/class/lytebox/images/next_blue.gif XoopsModules/tadnews/trunk/class/lytebox/images/next_gold.gif XoopsModules/tadnews/trunk/class/lytebox/images/next_green.gif XoopsModules/tadnews/trunk/class/lytebox/images/next_grey.gif XoopsModules/tadnews/trunk/class/lytebox/images/next_red.gif XoopsModules/tadnews/trunk/class/lytebox/images/pause_blue.png XoopsModules/tadnews/trunk/class/lytebox/images/pause_gold.png XoopsModules/tadnews/trunk/class/lytebox/images/pause_green.png XoopsModules/tadnews/trunk/class/lytebox/images/pause_grey.png XoopsModules/tadnews/trunk/class/lytebox/images/pause_red.png XoopsModules/tadnews/trunk/class/lytebox/images/play_blue.png XoopsModules/tadnews/trunk/class/lytebox/images/play_gold.png XoopsModules/tadnews/trunk/class/lytebox/images/play_green.png XoopsModules/tadnews/trunk/class/lytebox/images/play_grey.png XoopsModules/tadnews/trunk/class/lytebox/images/play_red.png XoopsModules/tadnews/trunk/class/lytebox/images/prev_blue.gif XoopsModules/tadnews/trunk/class/lytebox/images/prev_gold.gif XoopsModules/tadnews/trunk/class/lytebox/images/prev_green.gif XoopsModules/tadnews/trunk/class/lytebox/images/prev_grey.gif XoopsModules/tadnews/trunk/class/lytebox/images/prev_red.gif XoopsModules/tadnews/trunk/class/lytebox/lytebox.css XoopsModules/tadnews/trunk/class/lytebox/lytebox.js XoopsModules/tadnews/trunk/class/menu/ XoopsModules/tadnews/trunk/class/menu/index.html XoopsModules/tadnews/trunk/class/menu/js/ XoopsModules/tadnews/trunk/class/menu/js/adminmenu.js XoopsModules/tadnews/trunk/class/menu/js/adminmenu_src.js XoopsModules/tadnews/trunk/class/menu/js/ie5.js XoopsModules/tadnews/trunk/class/menu/js/index.html XoopsModules/tadnews/trunk/class/menu/js/menu.css XoopsModules/tadnews/trunk/class/menu/js/menuarrow1.gif XoopsModules/tadnews/trunk/class/menu/js/menuarrow2.gif XoopsModules/tadnews/trunk/class/menu/menu_function.php XoopsModules/tadnews/trunk/class/multiple-file-upload/ XoopsModules/tadnews/trunk/class/multiple-file-upload/change-log.txt XoopsModules/tadnews/trunk/class/multiple-file-upload/documentation.css XoopsModules/tadnews/trunk/class/multiple-file-upload/documentation.js XoopsModules/tadnews/trunk/class/multiple-file-upload/downloads.png XoopsModules/tadnews/trunk/class/multiple-file-upload/index.html XoopsModules/tadnews/trunk/class/multiple-file-upload/jquery.MetaData.js XoopsModules/tadnews/trunk/class/multiple-file-upload/jquery.MultiFile.js XoopsModules/tadnews/trunk/class/multiple-file-upload/jquery.MultiFile.pack.js XoopsModules/tadnews/trunk/class/multiple-file-upload/jquery.blockUI.js XoopsModules/tadnews/trunk/class/multiple-file-upload/jquery.js XoopsModules/tadnews/trunk/class/multiple-file-upload/no_thumb.gif XoopsModules/tadnews/trunk/class/show_layer.js XoopsModules/tadnews/trunk/class/upload/ XoopsModules/tadnews/trunk/class/upload/CVS/ XoopsModules/tadnews/trunk/class/upload/CVS/Entries XoopsModules/tadnews/trunk/class/upload/CVS/Entries.Extra XoopsModules/tadnews/trunk/class/upload/CVS/Entries.Extra.Old XoopsModules/tadnews/trunk/class/upload/CVS/Entries.Old XoopsModules/tadnews/trunk/class/upload/CVS/Repository XoopsModules/tadnews/trunk/class/upload/CVS/Root XoopsModules/tadnews/trunk/class/upload/CVS/Template XoopsModules/tadnews/trunk/class/upload/LICENSE XoopsModules/tadnews/trunk/class/upload/class.upload.php XoopsModules/tadnews/trunk/class/upload/index.html XoopsModules/tadnews/trunk/class/upload/lang/ XoopsModules/tadnews/trunk/class/upload/lang/CVS/ XoopsModules/tadnews/trunk/class/upload/lang/CVS/Entries XoopsModules/tadnews/trunk/class/upload/lang/CVS/Entries.Extra XoopsModules/tadnews/trunk/class/upload/lang/CVS/Entries.Extra.Old XoopsModules/tadnews/trunk/class/upload/lang/CVS/Entries.Old XoopsModules/tadnews/trunk/class/upload/lang/CVS/Repository XoopsModules/tadnews/trunk/class/upload/lang/CVS/Root XoopsModules/tadnews/trunk/class/upload/lang/CVS/Template XoopsModules/tadnews/trunk/class/upload/lang/class.upload.de_DE.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.es_ES.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.fr_FR.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.it_IT.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.nl_NL.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.pl_PL.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.ro_RO.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.ru_RU.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.ru_RU.windows-1251.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.sv_SE.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.xx_XX.php XoopsModules/tadnews/trunk/class/upload/lang/class.upload.zh_TW.php XoopsModules/tadnews/trunk/class/upload/test/ XoopsModules/tadnews/trunk/class/upload/test/CVS/ XoopsModules/tadnews/trunk/class/upload/test/CVS/Entries XoopsModules/tadnews/trunk/class/upload/test/CVS/Entries.Extra XoopsModules/tadnews/trunk/class/upload/test/CVS/Entries.Extra.Old XoopsModules/tadnews/trunk/class/upload/test/CVS/Entries.Old XoopsModules/tadnews/trunk/class/upload/test/CVS/Repository XoopsModules/tadnews/trunk/class/upload/test/CVS/Root XoopsModules/tadnews/trunk/class/upload/test/CVS/Template XoopsModules/tadnews/trunk/class/upload/test.png XoopsModules/tadnews/trunk/class/upload/upload.php XoopsModules/tadnews/trunk/class/upload/watermark.png XoopsModules/tadnews/trunk/comment_delete.php XoopsModules/tadnews/trunk/comment_edit.php XoopsModules/tadnews/trunk/comment_new.php XoopsModules/tadnews/trunk/comment_post.php XoopsModules/tadnews/trunk/comment_reply.php XoopsModules/tadnews/trunk/email.php XoopsModules/tadnews/trunk/function.php XoopsModules/tadnews/trunk/header.php XoopsModules/tadnews/trunk/images/ XoopsModules/tadnews/trunk/images/1leftarrow.gif XoopsModules/tadnews/trunk/images/1rightarrow.gif XoopsModules/tadnews/trunk/images/2leftarrow.gif XoopsModules/tadnews/trunk/images/2rightarrow.gif XoopsModules/tadnews/trunk/images/MenuElement.psd XoopsModules/tadnews/trunk/images/add.gif XoopsModules/tadnews/trunk/images/adv.png XoopsModules/tadnews/trunk/images/bbg.jpg XoopsModules/tadnews/trunk/images/bbg2.jpg XoopsModules/tadnews/trunk/images/bluefreedom2/ XoopsModules/tadnews/trunk/images/bluefreedom2/images/ XoopsModules/tadnews/trunk/images/bluefreedom2/images/botbg.jpg XoopsModules/tadnews/trunk/images/bluefreedom2/images/hidr.jpg XoopsModules/tadnews/trunk/images/bluefreedom2/images/midbg.jpg XoopsModules/tadnews/trunk/images/bluefreedom2/images/minimal.jpg XoopsModules/tadnews/trunk/images/bluefreedom2/images/topbg.jpg XoopsModules/tadnews/trunk/images/bluefreedom2/index.html XoopsModules/tadnews/trunk/images/bluefreedom2/style.css XoopsModules/tadnews/trunk/images/button1.gif XoopsModules/tadnews/trunk/images/button3.gif XoopsModules/tadnews/trunk/images/button4.gif XoopsModules/tadnews/trunk/images/close.gif XoopsModules/tadnews/trunk/images/close.png XoopsModules/tadnews/trunk/images/del.gif XoopsModules/tadnews/trunk/images/document.png XoopsModules/tadnews/trunk/images/dont_show.gif XoopsModules/tadnews/trunk/images/dot.gif XoopsModules/tadnews/trunk/images/dot_started.gif XoopsModules/tadnews/trunk/images/edit.gif XoopsModules/tadnews/trunk/images/enable.gif XoopsModules/tadnews/trunk/images/files.png XoopsModules/tadnews/trunk/images/folder_txt.png XoopsModules/tadnews/trunk/images/icon_more.gif XoopsModules/tadnews/trunk/images/img.gif XoopsModules/tadnews/trunk/images/index.html XoopsModules/tadnews/trunk/images/lm.png XoopsModules/tadnews/trunk/images/lock.png XoopsModules/tadnews/trunk/images/logo.png XoopsModules/tadnews/trunk/images/logo.ufo XoopsModules/tadnews/trunk/images/news_subscribe.png XoopsModules/tadnews/trunk/images/nfs_mount.png XoopsModules/tadnews/trunk/images/no_cover.png XoopsModules/tadnews/trunk/images/open.png XoopsModules/tadnews/trunk/images/optimism/ XoopsModules/tadnews/trunk/images/optimism/images/ XoopsModules/tadnews/trunk/images/optimism/images/img01.gif XoopsModules/tadnews/trunk/images/optimism/images/img02.gif XoopsModules/tadnews/trunk/images/optimism/images/img03.gif XoopsModules/tadnews/trunk/images/optimism/images/img04.gif XoopsModules/tadnews/trunk/images/optimism/images/img05.gif XoopsModules/tadnews/trunk/images/optimism/images/img06.gif XoopsModules/tadnews/trunk/images/optimism/images/img07.gif XoopsModules/tadnews/trunk/images/optimism/images/img08.gif XoopsModules/tadnews/trunk/images/optimism/images/img09.gif XoopsModules/tadnews/trunk/images/optimism/images/img10.gif XoopsModules/tadnews/trunk/images/optimism/images/img11.gif XoopsModules/tadnews/trunk/images/optimism/images/img12.gif XoopsModules/tadnews/trunk/images/optimism/images/img13.gif XoopsModules/tadnews/trunk/images/optimism/images/img14.gif XoopsModules/tadnews/trunk/images/optimism/images/img15.gif XoopsModules/tadnews/trunk/images/optimism/images/img16.jpg XoopsModules/tadnews/trunk/images/optimism/images/img17.jpg XoopsModules/tadnews/trunk/images/optimism/images/img18.jpg XoopsModules/tadnews/trunk/images/optimism/images/img19.jpg XoopsModules/tadnews/trunk/images/optimism/images/img20.jpg XoopsModules/tadnews/trunk/images/optimism/images/spacer.gif XoopsModules/tadnews/trunk/images/optimism/index.html XoopsModules/tadnews/trunk/images/optimism/license.txt XoopsModules/tadnews/trunk/images/optimism/style.css XoopsModules/tadnews/trunk/images/package_editors.png XoopsModules/tadnews/trunk/images/panel.jpg XoopsModules/tadnews/trunk/images/reload.png XoopsModules/tadnews/trunk/images/rm.png XoopsModules/tadnews/trunk/images/rss.png XoopsModules/tadnews/trunk/images/stop.png XoopsModules/tadnews/trunk/images/today.gif XoopsModules/tadnews/trunk/images/top.gif XoopsModules/tadnews/trunk/images/unable.gif XoopsModules/tadnews/trunk/images/view_detailed.png XoopsModules/tadnews/trunk/include/ XoopsModules/tadnews/trunk/include/onInstall.php XoopsModules/tadnews/trunk/include/onUninstall.php XoopsModules/tadnews/trunk/include/onUpdate.php XoopsModules/tadnews/trunk/include/search.php XoopsModules/tadnews/trunk/index.php XoopsModules/tadnews/trunk/language/ XoopsModules/tadnews/trunk/language/english/ XoopsModules/tadnews/trunk/language/english/admin.php XoopsModules/tadnews/trunk/language/english/blocks.php XoopsModules/tadnews/trunk/language/english/index.html XoopsModules/tadnews/trunk/language/english/main.php XoopsModules/tadnews/trunk/language/english/modinfo.php XoopsModules/tadnews/trunk/language/index.html XoopsModules/tadnews/trunk/language/tchinese/ XoopsModules/tadnews/trunk/language/tchinese/admin.php XoopsModules/tadnews/trunk/language/tchinese/blocks.php XoopsModules/tadnews/trunk/language/tchinese/index.html XoopsModules/tadnews/trunk/language/tchinese/main.php XoopsModules/tadnews/trunk/language/tchinese/modinfo.php XoopsModules/tadnews/trunk/language/tchinese_utf8/ XoopsModules/tadnews/trunk/language/tchinese_utf8/admin.php XoopsModules/tadnews/trunk/language/tchinese_utf8/blocks.php XoopsModules/tadnews/trunk/language/tchinese_utf8/index.html XoopsModules/tadnews/trunk/language/tchinese_utf8/main.php XoopsModules/tadnews/trunk/language/tchinese_utf8/modinfo.php XoopsModules/tadnews/trunk/menu/ XoopsModules/tadnews/trunk/menu/closed.gif XoopsModules/tadnews/trunk/menu/list.gif XoopsModules/tadnews/trunk/menu/list.xcf XoopsModules/tadnews/trunk/menu/open.gif XoopsModules/tadnews/trunk/menu/simpletree.css XoopsModules/tadnews/trunk/menu/simpletreemenu.js XoopsModules/tadnews/trunk/menu/simpletreemenu.php XoopsModules/tadnews/trunk/module.css XoopsModules/tadnews/trunk/newspaper.php XoopsModules/tadnews/trunk/page.php XoopsModules/tadnews/trunk/post.php XoopsModules/tadnews/trunk/post_function.php XoopsModules/tadnews/trunk/rss.php XoopsModules/tadnews/trunk/show_layer.css XoopsModules/tadnews/trunk/sql/ XoopsModules/tadnews/trunk/sql/index.html XoopsModules/tadnews/trunk/sql/mysql.sql XoopsModules/tadnews/trunk/templates/ XoopsModules/tadnews/trunk/templates/archive_tpl.html XoopsModules/tadnews/trunk/templates/blocks/ XoopsModules/tadnews/trunk/templates/blocks/index.html XoopsModules/tadnews/trunk/templates/blocks/tadnews_cate.html XoopsModules/tadnews/trunk/templates/blocks/tadnews_cate_news.html XoopsModules/tadnews/trunk/templates/blocks/tadnews_content_block.html XoopsModules/tadnews/trunk/templates/blocks/tadnews_focus_news.html XoopsModules/tadnews/trunk/templates/blocks/tadnews_newspaper.html XoopsModules/tadnews/trunk/templates/blocks/tadnews_newspaper_list.html XoopsModules/tadnews/trunk/templates/blocks/tadnews_page.html XoopsModules/tadnews/trunk/templates/blocks/tadnews_re_block.html XoopsModules/tadnews/trunk/templates/index.html XoopsModules/tadnews/trunk/templates/list_tpl.html XoopsModules/tadnews/trunk/templates/news_tpl.html XoopsModules/tadnews/trunk/templates/page_tpl.html XoopsModules/tadnews/trunk/templates/post_tpl.html XoopsModules/tadnews/trunk/templates/tadnews_rss.html XoopsModules/tadnews/trunk/up_file.php XoopsModules/tadnews/trunk/upload.php XoopsModules/tadnews/trunk/xoops_version.php Added: XoopsModules/tadnews/trunk/admin/admin_function.php =================================================================== --- XoopsModules/tadnews/trunk/admin/admin_function.php (rev 0) +++ XoopsModules/tadnews/trunk/admin/admin_function.php 2009-08-27 19:29:27 UTC (rev 3511) @@ -0,0 +1,227 @@ +<?php +//\xA6C\xA5X\xA9Ҧ\xB3tad_news\xB8\xEA\xAEơ]$kind="news","page"\xA1^ +function list_tad_news($the_ncsn="0",$kind="news"){ + global $xoopsDB,$xoopsModule,$xoopsUser,$xoopsOption,$xoopsModuleConfig; + + $xoopsOption['template_main'] = "list_tpl.html"; + + $tadnews=new tadnews(); + $tadnews->set_news_kind($kind); + $tadnews->set_show_mode("list"); + $tadnews->set_admin_tool(true); + $tadnews->set_show_num($xoopsModuleConfig['show_num']); + + if(!empty($the_ncsn)){ + $tadnews->set_view_ncsn($the_ncsn); + } + $data=$tadnews->get_news(); + + return $data; +} + + +//\xA6C\xA5X\xA9Ҧ\xB3tad_news_cate\xB8\xEA\xAE\xC6 +function list_tad_news_cate($of_ncsn=0,$level=0,$not_news='0'){ + global $xoopsDB,$xoopsModule; + $old_level=$level; + $left=$level*18+4; + $level++; + + + $sql = "select * from ".$xoopsDB->prefix("tad_news_cate")." where not_news='{$not_news}' and of_ncsn='{$of_ncsn}' order by sort"; + $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); + + + $data=""; + + + while(list($ncsn,$of_ncsn,$nc_title,$enable_group,$enable_post_group,$sort,$cate_pic,$not_news)=$xoopsDB->fetchRow($result)){ + + $sql2 = "select count(*) from ".$xoopsDB->prefix("tad_news")." where ncsn='{$ncsn}'"; + $result2 = $xoopsDB->query($sql2); + list($counter)=$xoopsDB->fetchRow($result2); + + $pic=(empty($cate_pic))?"../images/no_cover.png":_TADNEWS_CATE_URL."/{$cate_pic}"; + $g_txt=txt_to_group_name($enable_group,_MA_TADNEW_ALL_OK); + $gp_txt=txt_to_group_name($enable_post_group,_MA_TADNEW_ONLY_ROOT); + + $data.="<tr> + <td style='padding-left: {$left}px;' nowrap> + <img src='{$pic}' width=50 align=left hspace=4 alt='{$nc_title}' title='{$nc_title}'> + <b>({$sort}) {$nc_title}</b><div style='color:#669900;'>"._MA_TADNEW_CATE_COUNTER."{$counter}</div></td> + <td>{$g_txt}</td> + <td>{$gp_txt}</td> + <td> + <a href='{$_SERVER['PHP_SELF']}?ncsn=$ncsn'>"._MA_TADNEW_EDIT."</a> | + <a href=\"javascript:delete_tad_news_cate_func($ncsn);\">"._MA_TADNEW_DEL."</a><br /> + <a href='{$_SERVER['PHP_SELF']}?op=move&ncsn=$ncsn'>"._MA_TADNEW_MOVE."</a> + </td></tr>"; + $data.=list_tad_news_cate($ncsn,$level,$not_news); + } + + + if($old_level==0){ + $main_data=" + <script> + function delete_tad_news_cate_func(ncsn){ + var sure = window.confirm('"._MD_TADNEW_SURE_DEL."'); + if (!sure) return; + location.href=\"{$_SERVER['PHP_SELF']}?op=delete_tad_news_cate&ncsn=\" + ncsn; + } + </script> + <table id='tbl' style='width:100%;'> + <tr> + <th>"._MA_TADNEW_CATE_SORT."/"._MA_TADNEW_CATE_TITLE."</th> + <th>"._MA_TADNEW_CAN_READ_CATE_GROUP_S."</th> + <th>"._MA_TADNEW_CAN_POST_CATE_GROUP_S."</th> + <th>"._MA_TADNEW_FUNCTION."</th></tr> + <tbody> + $data + </tbody> + </table>"; + }else{ + $main_data=$data; + } + + return $main_data; +} + +//\xC1Y\xB9ϤW\xB6\xC7 +function mk_thumb($ncsn="",$col_name="",$width=100){ + global $xoopsDB; + include "../class/upload/class.upload.php"; + + if(file_exists(_TADNEWS_CATE_DIR."/{$ncsn}.png")){ + unlink(_TADNEWS_CATE_DIR."/{$ncsn}.png"); + } + + $handle = new upload($_FILES[$col_name]); + if ($handle->uploaded) { + $handle->file_new_name_body = $ncsn; + $handle->image_convert = 'png'; + $handle->image_resize = true; + $handle->image_x = $width; + $handle->image_ratio_y = true; + $handle->file_overwrite = true; + $handle->process(_TADNEWS_CATE_DIR); + $handle->auto_create_dir = true; + if ($handle->proces... [truncated message content] |
From: <du...@us...> - 2009-09-05 22:51:33
|
Revision: 3578 http://xoops.svn.sourceforge.net/xoops/?rev=3578&view=rev Author: dugris Date: 2009-09-05 22:51:25 +0000 (Sat, 05 Sep 2009) Log Message: ----------- remove all Thumbs.db Modified Paths: -------------- XoopsModules/xcake/archives/xoops2_xcake_1.1.zip Removed Paths: ------------- XoopsModules/AMS - Article Management System/releases/AMS 2.41 Final/images/topics/Thumbs.db XoopsModules/AMS - Article Management System/releases/AMS 2.42 Final/modules/AMS/images/Thumbs.db XoopsModules/AMS - Article Management System/releases/AMS 2.42 Final/modules/AMS/images/topics/Thumbs.db XoopsModules/dr-usage/releases/1.4/usage/images/Thumbs.db XoopsModules/genobio/releases/0.13b/genobio/images/Thumbs.db XoopsModules/lawsuit/releases/1.06/lawsuit/images/Thumbs.db XoopsModules/lawsuit/releases/1.11/images/Thumbs.db XoopsModules/makepayment/releases/1.14.0/makepayment/images/Thumbs.db XoopsModules/makepayment/releases/1.14.0/makepayment/images/screenshot/Thumbs.db XoopsModules/multisite/releases/1.17/images/Thumbs.db XoopsModules/multisite/releases/1.17 RC/images/Thumbs.db XoopsModules/multisite/releases/1.18/multisite/images/Thumbs.db XoopsModules/multisite/releases/1.20/multisite/images/Thumbs.db XoopsModules/multisite/trunk/modules/multisite/images/Thumbs.db XoopsModules/onair/trunk/images/Thumbs.db XoopsModules/onair/trunk/images/helpfiles/Thumbs.db XoopsModules/onair/trunk/images/icons/Thumbs.db XoopsModules/spiders/releases/1.07/spiders/images/Thumbs.db XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/Thumbs.db XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/Thumbs.db XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/Thumbs.db XoopsModules/tad_player/trunk/images/Thumbs.db XoopsModules/tad_uploader/trunk/images/Thumbs.db XoopsModules/tad_uploader/trunk/images/mime/Thumbs.db XoopsModules/tad_uploader/trunk/images/s_mime/Thumbs.db XoopsModules/tadgallery/releases/1.3/images/Thumbs.db XoopsModules/tadgallery/trunk/images/Thumbs.db XoopsModules/tadnews/trunk/class/form-field-tooltip/images/Thumbs.db XoopsModules/xcake/releases/1.1.0/xcake/app/webroot/img/Thumbs.db XoopsModules/xcake/releases/1.2.0 RC2/xcake/app/webroot/img/Thumbs.db XoopsModules/xinvite/planning/xinvite/images/Thumbs.db XoopsModules/xinvite/planning/xinvite/images/_vti_cnf/Thumbs.db XoopsModules/xinvite/releases/1.03/xinvite/images/Thumbs.db XoopsModules/xinvite/releases/1.05/htdocs/modules/xinvite/images/Thumbs.db XoopsModules/xinvite/releases/1.06/xinvite/images/Thumbs.db XoopsModules/xinvite/releases/1.14/xinvite/images/Thumbs.db XoopsModules/xinvite/releases/1.16/xinvite/images/Thumbs.db XoopsModules/xreaggregator/releases/2.07/xreaggregator/images/Thumbs.db XoopsModules/xreaggregator/releases/2.09/xreaggregator/images/Thumbs.db XoopsModules/xreaggregator/releases/2.13/xreaggregator/images/Thumbs.db XoopsModules/xreaggregator/releases/2.15/xreaggregator/images/Thumbs.db XoopsModules/xreaggregator/releases/2.21/xreaggregator/images/Thumbs.db XoopsModules/xreaggregator/trunk/xreaggregator/images/Thumbs.db XoopsModules/xsoap/releases/1.1.0/xsoap/images/Thumbs.db XoopsModules/xsoap/releases/2.3.0/xsoap/images/Thumbs.db XoopsModules/xsoap/releases/3.0.1/xsoap/images/Thumbs.db XoopsModules/xsoap/releases/3.0.2/xsoap/images/Thumbs.db XoopsModules/xsoap/releases/3.9/xsoap/images/Thumbs.db XoopsModules/xsoap/releases/4.2/xsoap/images/Thumbs.db XoopsModules/xsoap/releases/4.21/xsoap/images/Thumbs.db XoopsModules/xtorrent/releases/1.05/xtorrent/images/Thumbs.db XoopsModules/xtorrent/releases/1.05/xtorrent/images/category/Thumbs.db XoopsModules/xtorrent/releases/1.05/xtorrent/images/icon/Thumbs.db XoopsModules/xtorrent/releases/1.05/xtorrent/images/screenshots/Thumbs.db XoopsModules/xtorrent/releases/1.06/xtorrent/images/Thumbs.db XoopsModules/xtorrent/releases/1.06/xtorrent/images/category/Thumbs.db XoopsModules/xtorrent/releases/1.06/xtorrent/images/icon/Thumbs.db XoopsModules/xtorrent/releases/1.06/xtorrent/images/screenshots/Thumbs.db XoopsModules/xtorrent/releases/1.30.1/xtorrent/images/Thumbs.db XoopsModules/xtorrent/releases/1.30.1/xtorrent/images/category/Thumbs.db XoopsModules/xtorrent/releases/1.30.1/xtorrent/images/icon/Thumbs.db XoopsModules/xtorrent/releases/1.30.1/xtorrent/images/screenshots/Thumbs.db XoopsModules/xtorrent/releases/1.32.0/xtorrent/images/Thumbs.db XoopsModules/xtorrent/releases/1.32.0/xtorrent/images/category/Thumbs.db XoopsModules/xtorrent/releases/1.32.0/xtorrent/images/icon/Thumbs.db XoopsModules/xtorrent/releases/1.32.0/xtorrent/images/screenshots/Thumbs.db XoopsModules/xtorrent/releases/1.47/xtorrent/images/Thumbs.db XoopsModules/xtorrent/releases/2.04/xtorrent/images/Thumbs.db XoopsModules/xtorrent/releases/2.04/xtorrent/images/category/Thumbs.db XoopsModules/xtorrent/releases/2.04/xtorrent/images/icon/Thumbs.db XoopsModules/xtorrent/releases/2.04/xtorrent/images/screenshots/Thumbs.db XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/Thumbs.db XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/category/Thumbs.db XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/icon/Thumbs.db XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/screenshots/Thumbs.db XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/screenshots/thumbs/Thumbs.db XoopsModules/xtransam/releases/1.01/xtransam/images/Thumbs.db XoopsModules/xtransam/releases/1.02/xtransam/images/Thumbs.db XoopsModules/xtransam/releases/1.03/xtransam/images/Thumbs.db XoopsModules/xtransam/releases/1.04/xtransam/images/Thumbs.db XoopsModules/xtransam/releases/1.06/xtransam/images/Thumbs.db XoopsModules/xtransam/releases/1.09/xtransam/images/Thumbs.db XoopsModules/xtransam/trunk/htdocs/modules/xtransam/images/Thumbs.db Deleted: XoopsModules/AMS - Article Management System/releases/AMS 2.41 Final/images/topics/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/AMS - Article Management System/releases/AMS 2.42 Final/modules/AMS/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/AMS - Article Management System/releases/AMS 2.42 Final/modules/AMS/images/topics/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/dr-usage/releases/1.4/usage/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/genobio/releases/0.13b/genobio/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/lawsuit/releases/1.06/lawsuit/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/lawsuit/releases/1.11/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/makepayment/releases/1.14.0/makepayment/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/makepayment/releases/1.14.0/makepayment/images/screenshot/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/multisite/releases/1.17/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/multisite/releases/1.17 RC/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/multisite/releases/1.18/multisite/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/multisite/releases/1.20/multisite/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/multisite/trunk/modules/multisite/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/onair/trunk/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/onair/trunk/images/helpfiles/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/onair/trunk/images/icons/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/spiders/releases/1.07/spiders/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/blue/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/default/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tad_form/trunk/class/formValidator/datepicker/skin/whyGreen/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tad_player/trunk/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tad_uploader/trunk/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tad_uploader/trunk/images/mime/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tad_uploader/trunk/images/s_mime/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tadgallery/releases/1.3/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tadgallery/trunk/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/tadnews/trunk/class/form-field-tooltip/images/Thumbs.db =================================================================== (Binary files differ) Modified: XoopsModules/xcake/archives/xoops2_xcake_1.1.zip =================================================================== (Binary files differ) Deleted: XoopsModules/xcake/releases/1.1.0/xcake/app/webroot/img/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xcake/releases/1.2.0 RC2/xcake/app/webroot/img/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xinvite/planning/xinvite/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xinvite/planning/xinvite/images/_vti_cnf/Thumbs.db =================================================================== --- XoopsModules/xinvite/planning/xinvite/images/_vti_cnf/Thumbs.db 2009-09-05 22:49:20 UTC (rev 3577) +++ XoopsModules/xinvite/planning/xinvite/images/_vti_cnf/Thumbs.db 2009-09-05 22:51:25 UTC (rev 3578) @@ -1,6 +0,0 @@ -vti_encoding:SR|utf8-nl -vti_timelastmodified:TR|17 Aug 2006 11:21:42 -0000 -vti_extenderversion:SR|6.0.2.5516 -vti_cacheddtm:TX|17 Aug 2006 11:21:42 -0000 -vti_filesize:IR|5632 -vti_backlinkinfo:VX| Deleted: XoopsModules/xinvite/releases/1.03/xinvite/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xinvite/releases/1.05/htdocs/modules/xinvite/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xinvite/releases/1.06/xinvite/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xinvite/releases/1.14/xinvite/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xinvite/releases/1.16/xinvite/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xreaggregator/releases/2.07/xreaggregator/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xreaggregator/releases/2.09/xreaggregator/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xreaggregator/releases/2.13/xreaggregator/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xreaggregator/releases/2.15/xreaggregator/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xreaggregator/releases/2.21/xreaggregator/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xreaggregator/trunk/xreaggregator/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xsoap/releases/1.1.0/xsoap/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xsoap/releases/2.3.0/xsoap/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xsoap/releases/3.0.1/xsoap/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xsoap/releases/3.0.2/xsoap/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xsoap/releases/3.9/xsoap/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xsoap/releases/4.2/xsoap/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xsoap/releases/4.21/xsoap/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.05/xtorrent/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.05/xtorrent/images/category/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.05/xtorrent/images/icon/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.05/xtorrent/images/screenshots/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.06/xtorrent/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.06/xtorrent/images/category/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.06/xtorrent/images/icon/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.06/xtorrent/images/screenshots/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.30.1/xtorrent/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.30.1/xtorrent/images/category/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.30.1/xtorrent/images/icon/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.30.1/xtorrent/images/screenshots/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.32.0/xtorrent/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.32.0/xtorrent/images/category/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.32.0/xtorrent/images/icon/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.32.0/xtorrent/images/screenshots/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/1.47/xtorrent/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/2.04/xtorrent/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/2.04/xtorrent/images/category/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/2.04/xtorrent/images/icon/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/2.04/xtorrent/images/screenshots/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/category/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/icon/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/screenshots/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtorrent/releases/3.39/modules/xtorrent/images/screenshots/thumbs/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtransam/releases/1.01/xtransam/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtransam/releases/1.02/xtransam/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtransam/releases/1.03/xtransam/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtransam/releases/1.04/xtransam/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtransam/releases/1.06/xtransam/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtransam/releases/1.09/xtransam/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/xtransam/trunk/htdocs/modules/xtransam/images/Thumbs.db =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2009-09-18 00:41:12
|
Revision: 3663 http://xoops.svn.sourceforge.net/xoops/?rev=3663&view=rev Author: wishcraft Date: 2009-09-18 00:40:48 +0000 (Fri, 18 Sep 2009) Log Message: ----------- Compounds for XOOPS 2.4.x Added Paths: ----------- XoopsModules/compounds/ XoopsModules/compounds/branch/ XoopsModules/compounds/releases/ XoopsModules/compounds/releases/1.95/ XoopsModules/compounds/releases/1.95/compounds/ XoopsModules/compounds/releases/1.95/compounds/admin/ XoopsModules/compounds/releases/1.95/compounds/admin/admin.php XoopsModules/compounds/releases/1.95/compounds/admin/header.php XoopsModules/compounds/releases/1.95/compounds/admin/index.html XoopsModules/compounds/releases/1.95/compounds/admin/menu.php XoopsModules/compounds/releases/1.95/compounds/class/ XoopsModules/compounds/releases/1.95/compounds/class/chain_components.php XoopsModules/compounds/releases/1.95/compounds/class/chain_link.php XoopsModules/compounds/releases/1.95/compounds/class/composite.php XoopsModules/compounds/releases/1.95/compounds/class/compound.php XoopsModules/compounds/releases/1.95/compounds/class/formcompound.php XoopsModules/compounds/releases/1.95/compounds/class/formpaypal.php XoopsModules/compounds/releases/1.95/compounds/class/index.html XoopsModules/compounds/releases/1.95/compounds/class/numberof.php XoopsModules/compounds/releases/1.95/compounds/class/periodical.php XoopsModules/compounds/releases/1.95/compounds/class/uid_link.php XoopsModules/compounds/releases/1.95/compounds/class/votedata.php XoopsModules/compounds/releases/1.95/compounds/comment_delete.php XoopsModules/compounds/releases/1.95/compounds/comment_edit.php XoopsModules/compounds/releases/1.95/compounds/comment_new.php XoopsModules/compounds/releases/1.95/compounds/comment_post.php XoopsModules/compounds/releases/1.95/compounds/comment_reply.php XoopsModules/compounds/releases/1.95/compounds/images/ XoopsModules/compounds/releases/1.95/compounds/images/Thumbs.db XoopsModules/compounds/releases/1.95/compounds/images/compoundlist.png XoopsModules/compounds/releases/1.95/compounds/images/compoundnew.png XoopsModules/compounds/releases/1.95/compounds/images/compounds_slogo.png XoopsModules/compounds/releases/1.95/compounds/images/index.html XoopsModules/compounds/releases/1.95/compounds/images/left_both.gif XoopsModules/compounds/releases/1.95/compounds/images/right_both.gif XoopsModules/compounds/releases/1.95/compounds/images/votebutton_large.png XoopsModules/compounds/releases/1.95/compounds/images/votebutton_small.png XoopsModules/compounds/releases/1.95/compounds/include/ XoopsModules/compounds/releases/1.95/compounds/include/comment_functions.php XoopsModules/compounds/releases/1.95/compounds/include/form.compound.php XoopsModules/compounds/releases/1.95/compounds/include/form.objects.php XoopsModules/compounds/releases/1.95/compounds/include/functions.php XoopsModules/compounds/releases/1.95/compounds/include/index.html XoopsModules/compounds/releases/1.95/compounds/index.php XoopsModules/compounds/releases/1.95/compounds/info.php XoopsModules/compounds/releases/1.95/compounds/ipnppd.php XoopsModules/compounds/releases/1.95/compounds/language/ XoopsModules/compounds/releases/1.95/compounds/language/english/ XoopsModules/compounds/releases/1.95/compounds/language/english/admin.php XoopsModules/compounds/releases/1.95/compounds/language/english/index.html XoopsModules/compounds/releases/1.95/compounds/language/english/main.php XoopsModules/compounds/releases/1.95/compounds/language/english/modinfo.php XoopsModules/compounds/releases/1.95/compounds/language/index.html XoopsModules/compounds/releases/1.95/compounds/lists.php XoopsModules/compounds/releases/1.95/compounds/sql/ XoopsModules/compounds/releases/1.95/compounds/sql/index.html XoopsModules/compounds/releases/1.95/compounds/sql/mysql.sql XoopsModules/compounds/releases/1.95/compounds/templates/ XoopsModules/compounds/releases/1.95/compounds/templates/compounds_index.html XoopsModules/compounds/releases/1.95/compounds/templates/compounds_info.html XoopsModules/compounds/releases/1.95/compounds/templates/compounds_list.html XoopsModules/compounds/releases/1.95/compounds/templates/compounds_matrix.html XoopsModules/compounds/releases/1.95/compounds/templates/compounds_vote.html XoopsModules/compounds/releases/1.95/compounds/templates/index.html XoopsModules/compounds/releases/1.95/compounds/vote.php XoopsModules/compounds/releases/1.95/compounds/xoops_version.php XoopsModules/compounds/trunk/ Added: XoopsModules/compounds/releases/1.95/compounds/admin/admin.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/admin/admin.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/admin/admin.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,168 @@ +<?php + + include 'header.php'; + include_once '../include/form.compound.php'; + include_once '../include/functions.php'; + include_once '../../../class/pagenav.php'; + + $compoundHandler =& xoops_getmodulehandler('compound', 'compounds'); + $periodicalHandler =& xoops_getmodulehandler('periodical', 'compounds'); + $chainLinkHandler =& xoops_getmodulehandler('chain_link', 'compounds'); + $chainComponentsHandler =& xoops_getmodulehandler('chain_components', 'compounds'); + $uidLinkHandler =& xoops_getmodulehandler('uid_link', 'compounds'); + + $sql = "SELECT SUM(`donations`) as ttlDonations FROM " . $GLOBALS['xoopsDB']->prefix('uid_link'); + + list($donation) = $GLOBALS['xoopsDB']->fetchRow($GLOBALS['xoopsDB']->queryF($sql)); + + $sql = "SELECT SUM(`amount`) as ttlAmount FROM " . $GLOBALS['xoopsDB']->prefix('uid_link'); + + list($amount) = $GLOBALS['xoopsDB']->fetchRow($GLOBALS['xoopsDB']->queryF($sql)); + + $donations['total_done'] = empty($donation)?'0':$donation; + $donations['total_cash'] = empty($amount)?'0.0000':$amount; + + $userSubmissions['count'] = $compoundHandler->getCount(new Criteria('uid', '0', '>')); + $molecularSubmissions['count'] = $compoundHandler->getCount(NULL); + $sevendaySubmissions['count'] = $compoundHandler->getCount(new Criteria('created', time() - (((60*60)*24)*7), '>')); + $forteendaySubmissions['count'] = $compoundHandler->getCount(new Criteria('created', time() - (((60*60)*24)*14), '>')); + + $userSubmissions['url'] = '<a href="'.XOOPS_URL.'/modules/compounds/admin/admin.php?op=list&fct=users">'.$userSubmissions['count'].'</a>'; + + $molecularSubmissions['url'] = '<a href="'.XOOPS_URL.'/modules/compounds/admin/admin.php?op=list&fct=molecular">'.$molecularSubmissions['count'].'</a>'; + + $sevendaySubmissions['url'] = '<a href="'.XOOPS_URL.'/modules/compounds/admin/admin.php?op=list&fct=sevenday">'.$sevendaySubmissions['count'].'</a>'; + + $forteendaySubmissions['url'] = '<a href="'.XOOPS_URL.'/modules/compounds/admin/admin.php?op=list&fct=forteenday">'.$forteendaySubmissions['count'].'</a>'; + + $op = !empty($_REQUEST['op'])?strtolower($_REQUEST['op']):'default'; + $id = !empty($_REQUEST['id']) ?(int)($_REQUEST['id']):0; + $itmppg = !empty($_REQUEST['itmppg']) ?(int)($_REQUEST['itmppg']):30; + $start = !empty($_REQUEST['start']) ?(int)($_REQUEST['start']):0; + + xoops_cp_header(); + + switch ($op) { + case 'delete': + $compound = $compoundHandler->getObjects(new Criteria('id', $id)); + $sql[0] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('chain_link') . ' WHERE chain_id = '.$compound[0]->getVar('chain_id'); + $sql[1] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('chain_components') . ' WHERE chain_id = '.$compound[0]->getVar('chain_id'); + $sql[2] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('compound') . ' WHERE id = '.$id; + if ($GLOBALS['xoopsDB']->queryF($sql[0])) + if ($GLOBALS['xoopsDB']->queryF($sql[1])) + if ($GLOBALS['xoopsDB']->queryF($sql[2])) { + + $uidLinkHandler =& xoops_getmodulehandler('uid_link', 'compounds'); + $uidlink = $uidLinkHandler->get($compound[0]->getVar('uid')); + if (!is_object($uidlink)) { + $uidlink = $uidLinkHandler->create(); + $uidlink->setVar('uid', $GLOBALS['xoopsUser']->getVar('uid')); + } + $submission = intval($uidlink->getVar('submissions')); + $submission--; + $uidlink->setVar('submissions', $submission); + @$uidLinkHandler->insert($uidlink); + + redirect_header(XOOPS_URL.'/modules/compounds/admin/admin.php?op=list', 4, sprintf(_CMP_AM_COMPOUNDDELETE_SUCCESSFUL, $compoundHandler->renderSymbolisation($compound[0]->getVar('symbol')))); + } else + redirect_header(XOOPS_URL.'/modules/compounds/admin/admin.php?op=list', 4, sprintf(_CMP_AM_COMPOUNDDELETE_UNSUCCESSFUL, $compoundHandler->renderSymbolisation($compound[0]->getVar('symbol')))); + else + redirect_header(XOOPS_URL.'/modules/compounds/admin/admin.php?op=list', 4, sprintf(_CMP_AM_COMPOUNDDELETE_UNSUCCESSFUL, $compoundHandler->renderSymbolisation($compound->getVar('symbol')))); + else + redirect_header(XOOPS_URL.'/modules/compounds/admin/admin.php?op=list', 4, sprintf(_CMP_AM_COMPOUNDDELETE_UNSUCCESSFUL, $compoundHandler->renderSymbolisation($compound->getVar('symbol')))); + exit(0); + + case 'save': + + if ($_REQUEST['hyposise_editor_current'] != $_REQUEST['hyposise_editor'] || $_REQUEST['process_editor_current'] != $_REQUEST['process_editor'] || $_REQUEST['synopisise_editor_current'] != $_REQUEST['synopisise_editor'] ) { + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + echo '<div style="border:dotted; height: 1.5em; clear:both; margin-bottom:8px; padding-top: 3px; padding-bottom: 3px; padding-right: 4px;"> + <div style="float:left; border-right:dotted; padding-left:10px; padding-right:10px;">User Submissions: '.$userSubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Molecular Submissions: '.$molecularSubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">7 Day Submissions: '.$sevendaySubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Donations so Far: '.$donations['total_done'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Total Cash: (USD) $'.$donations['total_cash'].'</div> + </div>'; + echo formCompound($id); + exit(0); + } + + switch ($_REQUEST['fct']) { + case "edit": + saveEditCompound(intval($_REQUEST['compound_id'])); + break; + case "new": + default: + saveNewCompound(); + break; + } + case 'list': + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + echo '<div style="border:dotted; height: 1.5em; clear:both; margin-bottom:8px; padding-top: 3px; padding-bottom: 3px; padding-right: 4px;"> + <div style="float:left; border-right:dotted; padding-left:10px; padding-right:10px;">User Submissions: '.$userSubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Molecular Submissions: '.$molecularSubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">7 Day Submissions: '.$sevendaySubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">14 Day Submissions: '.$forteendaySubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Donations so Far: '.$donations['total_done'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Total Cash: (USD) $'.$donations['total_cash'].'</div> + </div>'; + + switch ($_REQUEST['fct']) { + case 'molecular': + $pgnav = new XoopsPageNav($molecularSubmissions['count'], $itmppg, $start); + $criteria = new Criteria('id', '0', '<>'); + break; + case 'sevenday': + $pgnav = new XoopsPageNav($sevendaySubmissions['count'], $itmppg, $start); + $criteria = new Criteria('created', time() - (((60*60)*24)*7), '>'); + break; + case 'forteenday': + $pgnav = new XoopsPageNav($forteendaySubmissions['count'], $itmppg, $start); + $criteria = new Criteria('created', time() - (((60*60)*24)*14), '>'); + break; + default: + case 'users': + $pgnav = new XoopsPageNav($userSubmissions['count'], $itmppg, $start); + $criteria = new Criteria('uid', '0', '>'); + break; + } + $criteria->setOrder('created'); + $criteria->setStart($start); + $criteria->setLimit($itmppg); + + echo '<div style="clear:both; float:right;">' . $pgnav->renderNav() . '</div>'; + + echo formList($compoundHandler->getObjects($criteria, true), $compoundHandler); + break; + + default: + case 'edit': + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(1) : ""; + echo '<div style="border:dotted; height: 1.5em; clear:both; margin-bottom:8px; padding-top: 3px; padding-bottom: 3px; padding-right: 4px;"> + <div style="float:left; border-right:dotted; padding-left:10px; padding-right:10px;">User Submissions: '.$userSubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Molecular Submissions: '.$molecularSubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">7 Day Submissions: '.$sevendaySubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">14 Day Submissions: '.$forteendaySubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Donations so Far: '.$donations['total_done'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Total Cash: (USD) $'.$donations['total_cash'].'</div> + </div>'; + echo formCompound($id); + break; + + case 'new': + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + echo '<div style="border:dotted; height: 1.5em; clear:both; margin-bottom:8px; padding-top: 3px; padding-bottom: 3px; padding-right: 4px;"> + <div style="float:left; border-right:dotted; padding-left:10px; padding-right:10px;">User Submissions: '.$userSubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Molecular Submissions: '.$molecularSubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">7 Day Submissions: '.$sevendaySubmissions['url'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Donations so Far: '.$donations['total_done'].'</div> + <div style="float:left; border-right: dotted; padding-left:10px; padding-right:10px;">Total Cash: (USD) $'.$donations['total_cash'].'</div> + </div>'; + echo formCompound($id); + break; + + } + + xoops_cp_footer(); +?> + Added: XoopsModules/compounds/releases/1.95/compounds/admin/header.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/admin/header.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/admin/header.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,68 @@ +<?php + +include "../../../include/cp_header.php"; +require_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/include/functions.php"; +xoops_loadLanguage("main", $xoopsModule->getVar("dirname")); + +$myts =& MyTextSanitizer::getInstance(); + +IF (!@ include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php"): + +function loadModuleAdminMenu($currentoption, $breadcrumb = "") +{ + if (!$adminmenu = $GLOBALS["xoopsModule"]->getAdminMenu()) { + return false; + } + + $breadcrumb = empty($breadcrumb) ? $adminmenu[$currentoption]["title"] : $breadcrumb; + $module_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/"; + $image_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/images"; + + $adminmenu_text =' + <style type="text/css"> + <!-- + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0;} + #buttonbar { float:left; width:100%; background: #e7e7e7 url("'.$image_link.'/modadminbg.gif") repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px;} + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url("'.$image_link.'/left_both.gif") no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url("'.$image_link.'/right_both.gif") no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar .current a { background-position:0 -150px; border-width:0; } + #buttonbar .current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + //--> + </style> + <div id="buttontop"> + <table style="width: 100%; padding: 0; " cellspacing="0"> + <tr> + <td style="width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <a href="../index.php">' . $GLOBALS["xoopsModule"]->getVar("name") . '</a> + </td> + <td style="width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <strong>' . $GLOBALS["xoopsModule"]->getVar("name") . '</strong> ' . $breadcrumb . ' + </td> + </tr> + </table> + </div> + <div id="buttonbar"> + <ul> + '; + foreach (array_keys($adminmenu) as $key) { + $adminmenu_text .= (($currentoption == $key) ? '<li class="current">' : '<li>') . '<a href="' . $module_link . $adminmenu[$key]["link"] . '"><span>' . $adminmenu[$key]["title"] . '</span></a></li>'; + } + $adminmenu_text .= '<li><a href="' . XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $GLOBALS["xoopsModule"]->getVar("mid") . '"><span>' . _PREFERENCES . '</span></a></li>'; + $adminmenu_text .= ' + </ul> + </div> + <br style="clear:both;" />'; + + echo $adminmenu_text; +} + +ENDIF; +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/admin/index.html =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/admin/index.html (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/admin/index.html 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/admin/menu.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/admin/menu.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/admin/menu.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,17 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +global $adminmenu; + +$adminmenu = array(); + +$adminmenu[]= array("link" => "admin/admin.php", + "title" => _CMP_AM_MAININDEX, + "icon" => "images/mainindex.png"); +$adminmenu[]= array("link" => "admin/admin.php?op=list", + "title" => _CMP_AM_COMPOUNDLIST, + "icon" => "images/compoundlist.png"); +$adminmenu[]= array("link" => "admin/admin.php?op=new", + "title" => _CMP_AM_COMPOUNDNEW, + "icon" => "images/compoundnew.png"); +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/chain_components.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/chain_components.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/chain_components.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,49 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compunds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class CompoundsChain_components extends XoopsObject +{ + + function CompoundsChain_components($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('chain_id', XOBJ_DTYPE_INT, null, true); + $this->initVar('perodic_id', XOBJ_DTYPE_INT, null, true); + $this->initVar('number', XOBJ_DTYPE_INT, null, false); + $this->initVar('super_composition', XOBJ_DTYPE_INT, null, false); + $this->initVar('sub_composition', XOBJ_DTYPE_INT, null, false); + $this->initVar('weight', XOBJ_DTYPE_INT, null, true); + $this->initVar('uid', XOBJ_DTYPE_INT, null, true); + + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class CompoundsChain_componentsHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "chain_components", 'CompoundsChain_components', "id", "uid"); + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/chain_link.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/chain_link.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/chain_link.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,43 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compunds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class CompoundsChain_link extends XoopsObject +{ + + function CompoundsChain_link($id = null) + { + $this->initVar('chain_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('components', XOBJ_DTYPE_INT, null, false); + $this->initVar('uid', XOBJ_DTYPE_INT, null, false); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class CompoundsChain_linkHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "chain_link", 'CompoundsChain_link', "", ""); + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/composite.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/composite.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/composite.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,42 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compunds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class CompoundsComposite extends XoopsObject +{ + + function CompoundsComposite($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('symbol', XOBJ_DTYPE_TXTBOX, null, true, 4); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class CompoundsCompositeHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "composite", 'CompoundsComposite', "id", "symbol"); + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/compound.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/compound.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/compound.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,244 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compounds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class CompoundsCompound extends XoopsObject +{ + + function CompoundsCompound($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('chain_id', XOBJ_DTYPE_INT, null, true); + $this->initVar('alias', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('symbol', XOBJ_DTYPE_TXTBOX, null, true, 255); + $this->initVar('hyposise', XOBJ_DTYPE_TXTAREA, null, false); + $this->initVar('process', XOBJ_DTYPE_TXTAREA, null, true); + $this->initVar('synopisise', XOBJ_DTYPE_TXTAREA, null, false); + $this->initVar('uid', XOBJ_DTYPE_INT, null, true); + $this->initVar('created', XOBJ_DTYPE_INT, null, true); + $this->initVar('chem_tags', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('comments', XOBJ_DTYPE_INT, null, false); + $this->initVar('votes', XOBJ_DTYPE_INT, null, false); + $this->initVar('stars', XOBJ_DTYPE_DECIMAL, null, false); + $this->initVar('hits', XOBJ_DTYPE_INT, null, false); + $this->initVar('runners', XOBJ_DTYPE_INT, null, false); + } + +} + + +/** +* XOOPS compounds handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class CompoundsCompoundHandler extends XoopsPersistableObjectHandler +{ + + var $_numberof = array( 0 => '--', + 1 => '1', + 2 => '2', + 3 => '3', + 4 => '4', + 5 => '5', + 6 => '6', + 7 => '7', + 8 => '8', + 9 => '9', + 10 => '10', + 11 => '11', + 12 => '12', + 13 => '13', + 14 => '14', + 15 => '15', + 16 => '16', + 17 => '17', + 18 => '18', + 19 => '19', + 20 => '20', + 21 => '21', + 22 => '22', + 23 => '24', + 24 => '25', + 25 => '25', + 26 => '26', + 27 => '27', + 28 => '28', + 29 => '29', + 30 => '30', + 31 => '31', + 32 => 'cyl', + 33 => 'iso', + 34 => 'nux' + ); + + var $_composition = array( 0 => '--', + 1 => '1', + 2 => '2', + 3 => '3', + 4 => '4', + 5 => '5', + 6 => '6', + 7 => '7', + 8 => '8', + 9 => '9', + 10 => '10', + 11 => '11', + 12 => '12', + 13 => '13', + 14 => '14', + 15 => '15', + 16 => '16', + 17 => '17', + 18 => '18', + 19 => '19', + 20 => '20', + 21 => '21', + 22 => '22', + 23 => '24', + 24 => '25', + 25 => '25', + 26 => '26', + 27 => '27', + 28 => '28', + 29 => '29', + 30 => '30', + 31 => '31', + 32 => '32' + ); + + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "compound", 'CompoundsCompound', "id", "alias"); + } + + function getSymbolisation($ret_CompoundForm) + { + $periodicalHandler =& xoops_getmodulehandler('periodical', 'compounds'); + $periodics =& $periodicalHandler->getObjects(NULL, true); + extract($ret_CompoundForm); + foreach ( $periodical as $yy => $value ) { + if ($number[$yy]!=0||$periodical[$yy]!=0||$composition[$yy][1]!=0||$composition[$yy][2]!=0) + { + if ($number[$yy]!=0) + $ret .= '%'.$number[$yy]; + if ($periodical[$yy]!=0) + $ret .= '^'.$periodics[$periodical[$yy]]->getVar('symbol'); + if ($composition[$yy][1]!=0) + $ret .= '#'.$composition[$yy][1]; + if ($composition[$yy][2]!=0) + $ret .= '*'.$composition[$yy][2]; + + } + } + return $ret; + } + + function renderSymbolisation($symbolisism, $composition = NULL, $numberof = NULL) + { + + if (!empty($composition)&&is_array($composition)) + $this->_composition = $composition; + else { + $compositionHandler =& xoops_getmodulehandler('composite', 'compounds'); + $compositions = $compositionHandler->getObjects(NULL, true); + if (is_array($compositions)) { + $this->_composition = array(0=>'---'); + foreach ($compositions as $id => $object) + $this->_composition[$id] = $object->getVar('symbol'); + } + + } + + if (!empty($numberof)&&is_array($numberof)) + $this->_numberof = $numberof; + else { + $compositionHandler =& xoops_getmodulehandler('numberof', 'compounds'); + $numberofs = $compositionHandler->getObjects(NULL, true); + if (is_array($numberofs)) { + $this->_numberof = array(0=>'---'); + foreach ($numberofs as $id => $object) + $this->_numberof[$id] = $object->getVar('symbol'); + } + } + + $crawled = $this->crawlSymbolisation($symbolisism); + $repo = array('%', '^', '#', '*'); + + foreach($repo as $id => $key) + foreach($crawled[$key] as $did => $value) { + if (count($crawled[$key])>$total) + $total = count($crawled[$key]); + + switch($key){ + case '%': + $crawled[$key][$did] = '<font style="font-style:oblique;">'.$this->_numberof[$value].'</font>'; + break; + case '^': + $crawled[$key][$did] = '<font style="font-style:normal;">'.$value.'</font>'; + break; + case '#': + $crawled[$key][$did] = '<sup>'.$this->_composition[$value].'</sup>'; + break; + case '*': + $crawled[$key][$did] = '<sub>'.$this->_composition[$value].'</sub>'; + break; + + } + } + + for($r=0; $r<$total; $r++) + foreach($repo as $id => $key) { + switch($key){ + default: + if (isset($crawled[$key][$r])) + $ret .= $crawled[$key][$r]; + break; + case '*': + if (isset($crawled[$key][$r+1])) + $ret .= $crawled[$key][$r+1]; + break; + + } + } + + return $ret; + } + + private function crawlSymbolisation($symbolisism) + { + $ii=0; + $ret = array(); + $repo = array('%', '^', '#', '*'); + for($r=0; $r<=strlen($symbolisism); $r++) { + $found=false; + foreach($repo as $id => $key) { + if (substr($symbolisism, $r, 1) === $key) { + $found=true; + $symbol = $key; + if ($key == '*') + $ii++; + } + } + + if ($found===false) + $ret[$symbol][$ii] .= substr($symbolisism, $r, 1); + + } + return $ret; + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/formcompound.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/formcompound.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/formcompound.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,319 @@ +<?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. +*/ + +/** + * Compounds Form Class Elements + * + * @copyright The Compounds Project http://sourceforge.net/projects/Compounds/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package kernel + * @subpackage form + * @since 2.0.0 + * @author Kazumi Ono <on...@Co...> + * @author John Neill <cat...@Co...> + * @version $Id: formCompound.php 3295 2009-07-01 02:26:05Z beckmi $ + */ +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * A text Compound + * + * @author Kazumi Ono <on...@Co...> + * @author John Neill <cat...@Co...> + * @copyright The Compounds Project http://sourceforge.net/projects/Compounds/ + * @package kernel + * @subpackage form + * @access public + */ +class CompoundsFormCompound extends XoopsFormElement +{ + /** + * Text + * + * @var string + * @access private + */ + var $_value; + + var $_numberof = array( 0 => '--', + 1 => '1', + 2 => '2', + 3 => '3', + 4 => '4', + 5 => '5', + 6 => '6', + 7 => '7', + 8 => '8', + 9 => '9', + 10 => '10', + 11 => '11', + 12 => '12', + 13 => '13', + 14 => '14', + 15 => '15', + 16 => '16', + 17 => '17', + 18 => '18', + 19 => '19', + 20 => '20', + 21 => '21', + 22 => '22', + 23 => '24', + 24 => '25', + 25 => '25', + 26 => '26', + 27 => '27', + 28 => '28', + 29 => '29', + 30 => '30', + 31 => '31', + 32 => 'cyl', + 33 => 'iso', + 34 => 'nux' + ); + + var $_composition = array( 0 => '--', + 1 => '1', + 2 => '2', + 3 => '3', + 4 => '4', + 5 => '5', + 6 => '6', + 7 => '7', + 8 => '8', + 9 => '9', + 10 => '10', + 11 => '11', + 12 => '12', + 13 => '13', + 14 => '14', + 15 => '15', + 16 => '16', + 17 => '17', + 18 => '18', + 19 => '19', + 20 => '20', + 21 => '21', + 22 => '22', + 23 => '24', + 24 => '25', + 25 => '25', + 26 => '26', + 27 => '27', + 28 => '28', + 29 => '29', + 30 => '30', + 31 => '31', + 32 => '32' + ); + + var $_size = 18; + + var $_compound_id = 0; + + /** + * Constructor + * + * @param string $caption Caption + * @param string $value Text + */ + function CompoundsFormCompound($caption = '', $name = '', $compound_id = 0, $size = 0, $composition = NULL, $numberof = NULL) + { + $this->setCaption($caption); + $this->setName($name); + if (!empty($size)&&is_numeric($size)) + $this->_size = $size; + else { + $module_handler =& xoops_gethandler('module'); + $xoModule = $module_handler->getByDirname('compounds'); + $config_handler =& xoops_gethandler('config'); + $xoConfigs = $config_handler->getConfigList($xoModule->getVar('mid')); + $this->_size = empty($xoConfigs['components'])?18:intval($xoConfigs['components']); + } + if (!empty($compound_id)&&is_numeric($compound_id)) + $this->_compound_id = $compound_id; + + if (!empty($composition)&&is_array($composition)) + $this->_composition = $composition; + else { + $compositionHandler =& xoops_getmodulehandler('composite', 'compounds'); + $compositions = $compositionHandler->getObjects(NULL, true); + if (is_array($compositions)) { + $this->_composition = array(0=>'---'); + foreach ($compositions as $id => $object) + $this->_composition[$id] = $object->getVar('symbol'); + } + + } + + if (!empty($numberof)&&is_array($numberof)) + $this->_numberof = $numberof; + else { + $compositionHandler =& xoops_getmodulehandler('numberof', 'compounds'); + $numberofs = $compositionHandler->getObjects(NULL, true); + if (is_array($numberofs)) { + $this->_numberof = array(0=>'---'); + foreach ($numberofs as $id => $object) + $this->_numberof[$id] = $object->getVar('symbol'); + } + } + } + + /** + * Prepare HTML for output + * + * @return string + */ + function render() + { + + $periodicalHandler =& xoops_getmodulehandler('periodical', 'compounds'); + $periodical =& $periodicalHandler->getObjects(NULL); + + $compoundHandler =& xoops_getmodulehandler('compound', 'compounds'); + $compounds =& $compoundHandler->getObjects(new Criteria('id', $this->_compound_id)); + $ele_name = $this->getName(); + + if (is_object($compounds)) + $compound = $compounds; + elseif (is_array($compounds)) + $compound = $compounds[0]; + + if (!$this->_compound_id||!is_object($compound)) { + + $ret = "Alias: <input type='text' name='" . $this->getName() . "[alias]' id='" . $this->getName() . "[alias]' size='42' maxlength='255' value='' /><br/>Model: <br/><p style=\"position:relative; left: 29px; width:100%;\">"; + + for ( $ii = 0; $ii < $this->_size; $ii++ ) { + $iy++; + $cipos = (string)($iy<10)?'0'.$iy:$iy; + $ret .= 'CI-' . $cipos . ': '; + $ret .= '<select size="1"'; + $ret .= ' name="' . $ele_name . "[number][$ii]\"" . ' id="' . $ele_name . '[number]" title="'. $ele_title. '">' ; + foreach($this->_numberof as $value => $name) { + $ret .= '<option value="' . htmlspecialchars($value, ENT_QUOTES) . '"'; + $ret .= '>' . $name . '</option>' ; + } + $ret .= '</select>'; + + $ret .= '<select size="1"'; + $ret .= ' name="' . $ele_name . "[periodical][$ii]\"" . ' id="' . $ele_name . '[periodical]" title="'. $ele_title. '">' ; + $ret .= '<option value="0"'; + $ret .= '>--</option>' ; + foreach($periodical as $name => $value) { + $ret .= '<option value="' . htmlspecialchars($value->getVar('id'), ENT_QUOTES) . '"'; + $ret .= '>' . $value->getVar('symbol') . '</option>' ; + } + $ret .= '</select>'; + + $ret .= '<select size="1"'; + $ret .= ' name="' . $ele_name . "[composition][$ii][1]\"" . ' id="' . $ele_name . '[composition]" title="'. $ele_title. '">' ; + foreach($this->_composition as $value => $name) { + $ret .= '<option value="' . htmlspecialchars($value, ENT_QUOTES) . '"'; + $ret .= '>' . $name . '</option>' ; + } + $ret .= '</select>'; + + $ret .= '<select size="1"'; + $ret .= ' name="' . $ele_name . "[composition][$ii][2]\"" . ' id="' . $ele_name . '[composition]" title="'. $ele_title. '">' ; + foreach($this->_composition as $value => $name) { + $ret .= '<option value="' . htmlspecialchars($value, ENT_QUOTES) . '"'; + $ret .= '>' . $name . '</option>' ; + } + $ret .= '</select><br/>'; + } + $ret .= '</p>'; + } else { + + $chainLinkHandler =& xoops_getmodulehandler('chain_link', 'compounds'); + $chainLinks =& $chainLinkHandler->getObjects(new Criteria('chain_id', $compound->getVar('chain_id'))); + + if (is_object($chainLinks)) + $chainLink = $chainLinks; + elseif (is_array($chainLinks)) + $chainLink = $chainLinks[0]; + + $criteria = new Criteria('chain_id', $compound->getVar('chain_id')); + $criteria->setOrder('ASC'); + $criteria->setSort('weight'); + $chainComponentsHandler =& xoops_getmodulehandler('chain_components', 'compounds'); + $chainComponents =& $chainComponentsHandler->getObjects($criteria); + + $ret = "Alias: <input type='text' name='" . $this->getName() . "[alias]' id='" . $this->getName() . "[alias]' size='42' maxlength='255' value='" . $compound->getVar('alias') . "' /><br/> Model:<br/><p style=\"position:relative; left: 29px; width:390px;\">"; + + foreach ( $chainComponents as $chainKey => $chainComponent ) { + + $numberof = $chainComponent->getVar('number'); + $periodic_id = $chainComponent->getVar('perodic_id'); + $sub_composition = $chainComponent->getVar('sub_composition'); + $super_composition = $chainComponent->getVar('super_composition'); + + $ii = $chainComponent->getVar('id'); + $iy++; + $cipos = (string)($iy<10)?'0'.$iy:$iy; + $ret .= 'CI-' . $cipos . ': '; + $ret .= '<select size="1"'; + $ret .= ' name="' . $ele_name . "[number][$ii]\"" . ' id="' . $ele_name . '[number]" title="'. $ele_title. '">' ; + foreach($this->_numberof as $value => $name) { + $ret .= '<option value="' . htmlspecialchars($value, ENT_QUOTES) . '"'; + if ($numberof == $value) + $ret .= ' selected="selected"' ; + $ret .= '>' . $name . '</option>' ; + } + $ret .= '</select>'; + + $ret .= '<select size="1"'; + $ret .= ' name="' . $ele_name . "[periodical][$ii]\"" . ' id="' . $ele_name . '[periodical]" title="'. $ele_title. '">' ; + $ret .= '<option value="0"'; + if ($periodic_id == 0) + $ret .= ' selected="selected"' ; + $ret .= '>--</option>' ; + foreach($periodical as $name => $value) { + $ret .= '<option value="' . htmlspecialchars($value->getVar('id'), ENT_QUOTES) . '"'; + if ($periodic_id == $value->getVar('id')) + $ret .= ' selected="selected"' ; + $ret .= '>' . $value->getVar('symbol') . '</option>' ; + } + $ret .= '</select>'; + + $ret .= '<select size="1"'; + $ret .= ' name="' . $ele_name . "[composition][$ii][1]\"" . ' id="' . $ele_name . '[composition]" title="'. $ele_title. '">' ; + foreach($this->_composition as $value => $name) { + $ret .= '<option value="' . htmlspecialchars($value, ENT_QUOTES) . '"'; + if ($super_composition == $value) + $ret .= ' selected="selected"' ; + $ret .= '>' . $name . '</option>' ; + } + $ret .= '</select>'; + + $ret .= '<select size="1"'; + $ret .= ' name="' . $ele_name . "[composition][$ii][2]\"" . ' id="' . $ele_name . '[composition]" title="'. $ele_title. '">' ; + foreach($this->_composition as $value => $name) { + $ret .= '<option value="' . htmlspecialchars($value, ENT_QUOTES) . '"'; + if ($sub_composition == $value) + $ret .= ' selected="selected"' ; + $ret .= '>' . $name . '</option>' ; + } + $ret .= '</select><br/>'; + + $numberof = 0; + $periodic_id = 0; + $composition = 0; + + } + $ret .= '</span>'; + } + $ret .= '<input type="hidden" name="' . $ele_name . "[size]\" id='" . $ele_name . "['size']' value=\"" . $this->_size . '" />'; + $ret .= '<input type="hidden" name="XOOPS_TOKEN_REQUEST" value="' . $GLOBALS['xoopsSecurity']->createToken() .'" />'; + return $ret; + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/formpaypal.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/formpaypal.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/formpaypal.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,73 @@ +<?php +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class PaypalButtonFormCompound extends XoopsFormElement +{ + /** + * Text + * + * @var string + * @access private + */ + var $_value; + + var $_email = ''; + + /** + * Constructor + * + * @param string $caption Caption + * @param string $value Text + */ + function PaypalButtonFormCompound($caption = '', $email = '') + { + $this->setCaption($caption); + if (!empty( $email ) && is_string( $email )) + $this->_email = $email; + } + + /** + * Prepare HTML for output + * + * @return string + * + * Form Path:: https://www.paypal.com/cgi-bin/webscr" + * @ target:: paypal; + * @ method:: post; + * @ Button Name :: I1; + */ + function render() + { + + $module_handler =& xoops_gethandler('module'); + $xoModule = $module_handler->getByDirname('compounds'); + $config_handler =& xoops_gethandler('config'); + $xoConfigs = $config_handler->getConfigList($xoModule->getVar('mid')); + + $ret .= '<form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post">'; + $ret .= '<input type="hidden" name="amount" id="paypal" value="' . $xoConfigs['paypalAmount'] . '">'; + $ret .= '<select size="Yes" name="os0">'; + $ret .= '<option selected value="Yes">Donation Name Yes</option>'; + $ret .= '<option value="No">Donation Name No</option>'; + $ret .= '</select>'; + $ret .= '<input type="hidden" name="cmd" value="_xclick">'; + $ret .= '<input type="hidden" name="business" value="' . $xoConfigs['paypalEmail'] . '">'; + $ret .= ' <input type="hidden" name="item_name" value="Chemical Reaction Compound Register">'; + $ret .= '<input type="hidden" name="item_number" value="110">'; + $ret .= '<input type="hidden" name="rm" value="2">'; + $ret .= '<input type="hidden" name="notify_url" value="' . XOOPS_URL . '/modules/compounds/ipnppd.php">'; + $ret .= '<input type="hidden" name="on0" value="List your name? ">'; + $ret .= '<input type="hidden" name="no_shipping" value="0">'; + $ret .= '<input type="hidden" name="currency_code" value="USD">'; + $ret .= '<input type="hidden" name="cn" value="Comments">'; + $ret .= '<input type="hidden" name="custom" value="' . $GLOBALS['xoopsUser']->getVar('uname') . '">'; + $ret .= '<input type="hidden" name="cancel_return" value="' . XOOPS_URL . '/modules/compounds/index.php">'; + $ret .= '<input type="hidden" name="return" value="' . XOOPS_URL . '/modules/compounds/index.php">'; + $ret .= '<input type="hidden" name="image_url" value="' . XOOPS_URL . '/images/logo.png">"><br><br>'; + $ret .= '<input type="hidden" name="XOOPS_TOKEN_REQUEST" value="' . $GLOBALS['xoopsSecurity']->createToken() .'" />'; + $ret .= '<input type="submit" value="Submit Donation >>" border="0" name="I1"></form>'; + return $ret; + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/index.html =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/index.html (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/index.html 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/numberof.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/numberof.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/numberof.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,42 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compunds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class CompoundsNumberof extends XoopsObject +{ + + function CompoundsNumberof($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('symbol', XOBJ_DTYPE_TXTBOX, null, true, 4); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class CompoundsNumberofHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "numberof", 'CompoundsNumberof', "id", "symbol"); + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/periodical.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/periodical.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/periodical.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,46 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compunds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class CompoundsPeriodical extends XoopsObject +{ + + function CompoundsPeriodical($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('symbol', XOBJ_DTYPE_TXTBOX, null, true, 4); + $this->initVar('weight', XOBJ_DTYPE_INT, null, true); + $this->initVar('period', XOBJ_DTYPE_INT, null, true); + $this->initVar('group', XOBJ_DTYPE_INT, null, true); + $this->initVar('type', XOBJ_DTYPE_ENUM, null, true, false, false, array('base','lanthanoids','actinoids')); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class CompoundsPeriodicalHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "periodical", 'CompoundsPeriodical', "id", "symbol"); + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/uid_link.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/uid_link.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/uid_link.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,52 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compunds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class CompoundsUid_link extends XoopsObject +{ + + function CompoundsUid_link($id = null) + { + $this->initVar('uid', XOBJ_DTYPE_INT, null, false); + $this->initVar('score', XOBJ_DTYPE_FLOAT, 0, false); + $this->initVar('submissions', XOBJ_DTYPE_INT, 0, false); + $this->initVar('donations', XOBJ_DTYPE_INT, 0, false); + $this->initVar('amount', XOBJ_DTYPE_DECIMAL, 0, false); + $this->initVar('hits', XOBJ_DTYPE_INT, 0, false); + $this->initVar('runners', XOBJ_DTYPE_INT, 0, false); + $this->initVar('votes', XOBJ_DTYPE_INT, 0, false); + $this->initVar('stars', XOBJ_DTYPE_DECIMAL, 0, false); + $this->initVar('comments', XOBJ_DTYPE_INT, 0, false); + $this->initVar('edits', XOBJ_DTYPE_INT, 0, false); + + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class CompoundsUid_linkHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "uid_link", 'CompoundsUid_link', "uid", "compounds"); + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/class/votedata.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/class/votedata.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/class/votedata.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,44 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compunds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class CompoundsVotedata extends XoopsObject +{ + + function CompoundsVotedata($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('ip', XOBJ_DTYPE_TXTBOX, null, true, 128); + $this->initVar('addy', XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar('created', XOBJ_DTYPE_INT, null, false); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class CompoundsVotedataHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "comp_votedata", 'CompoundsVotedata', "", ""); + } +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/comment_delete.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/comment_delete.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/comment_delete.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,30 @@ +<?php +// $Id: comment_delete.php,v 1.1 2004/08/25 19:11:25 malanciault Exp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +include_once '../../mainfile.php'; +include_once XOOPS_ROOT_PATH . '/include/comment_delete.php'; + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/comment_edit.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/comment_edit.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/comment_edit.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,30 @@ +<?php +// $Id: comment_edit.php,v 1.1 2004/08/25 19:11:25 malanciault Exp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +include_once '../../mainfile.php'; +include_once XOOPS_ROOT_PATH . '/include/comment_edit.php'; + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/comment_new.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/comment_new.php (rev 0) +++ XoopsModules/compounds/releases/1.95/compounds/comment_new.php 2009-09-18 00:40:48 UTC (rev 3663) @@ -0,0 +1,38 @@ +<?php +// $Id: comment_new.php,v 1.4 2004/11/10 02:14:26 malanciault Exp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +include_once '../../mainfile.php'; +include_once XOOPS_ROOT_PATH . "/modules/smartsection/include/functions.php"; + +$com_itemid = isset($_GET['com_itemid']) ? intval($_GET['com_itemid']) : 0; +if ($com_itemid > 0) { + $compoundHandler =& xoops_getmodulehandler('compound', 'compounds'); + $compound = $compoundHandler->get($com_itemid); + $com_replytitle = $compound->getVar('alias'); + include_once XOOPS_ROOT_PATH.'/include/comment_new.php'; +} + +?> \ No newline at end of file Added: XoopsModules/compounds/releases/1.95/compounds/comment_post.php =================================================================== --- XoopsModules/compounds/releases/1.95/compounds/comment_post.php (rev 0) +++ XoopsModules/compounds/releases/1.95/co... [truncated message content] |
From: <wis...@us...> - 2009-09-18 00:45:15
|
Revision: 3664 http://xoops.svn.sourceforge.net/xoops/?rev=3664&view=rev Author: wishcraft Date: 2009-09-18 00:45:06 +0000 (Fri, 18 Sep 2009) Log Message: ----------- VJ Mixes for XOOPS 2.x.x (1.01 RC) Added Paths: ----------- XoopsModules/vjmixes/ XoopsModules/vjmixes/branch/ XoopsModules/vjmixes/releases/ XoopsModules/vjmixes/releases/1.01/ XoopsModules/vjmixes/releases/1.01/vjmixes/ XoopsModules/vjmixes/releases/1.01/vjmixes/admin/ XoopsModules/vjmixes/releases/1.01/vjmixes/admin/admin.php XoopsModules/vjmixes/releases/1.01/vjmixes/admin/header.php XoopsModules/vjmixes/releases/1.01/vjmixes/admin/index.html XoopsModules/vjmixes/releases/1.01/vjmixes/admin/menu.php XoopsModules/vjmixes/releases/1.01/vjmixes/class/ XoopsModules/vjmixes/releases/1.01/vjmixes/class/formselectcategory.php XoopsModules/vjmixes/releases/1.01/vjmixes/class/index.html XoopsModules/vjmixes/releases/1.01/vjmixes/class/video.php XoopsModules/vjmixes/releases/1.01/vjmixes/class/video_category.php XoopsModules/vjmixes/releases/1.01/vjmixes/images/ XoopsModules/vjmixes/releases/1.01/vjmixes/images/Thumbs.db XoopsModules/vjmixes/releases/1.01/vjmixes/images/index.html XoopsModules/vjmixes/releases/1.01/vjmixes/images/videocatslist.png XoopsModules/vjmixes/releases/1.01/vjmixes/images/videocatsnew.png XoopsModules/vjmixes/releases/1.01/vjmixes/images/videocnew.png XoopsModules/vjmixes/releases/1.01/vjmixes/images/videolist.png XoopsModules/vjmixes/releases/1.01/vjmixes/images/vjmixes_slogo.png XoopsModules/vjmixes/releases/1.01/vjmixes/images/vjmixesmain.png XoopsModules/vjmixes/releases/1.01/vjmixes/include/ XoopsModules/vjmixes/releases/1.01/vjmixes/include/comment_functions.php XoopsModules/vjmixes/releases/1.01/vjmixes/include/form.objects.php XoopsModules/vjmixes/releases/1.01/vjmixes/include/form.vjmixes.php XoopsModules/vjmixes/releases/1.01/vjmixes/include/functions.php XoopsModules/vjmixes/releases/1.01/vjmixes/include/index.html XoopsModules/vjmixes/releases/1.01/vjmixes/index.php XoopsModules/vjmixes/releases/1.01/vjmixes/language/ XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/ XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/admin.php XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/index.html XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/main.php XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/modinfo.php XoopsModules/vjmixes/releases/1.01/vjmixes/language/index.html XoopsModules/vjmixes/releases/1.01/vjmixes/sql/ XoopsModules/vjmixes/releases/1.01/vjmixes/sql/index.html XoopsModules/vjmixes/releases/1.01/vjmixes/sql/mysql.sql XoopsModules/vjmixes/releases/1.01/vjmixes/templates/ XoopsModules/vjmixes/releases/1.01/vjmixes/templates/index.html XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_categories.html XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_category.html XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_index.html XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_info.html XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_vids.html XoopsModules/vjmixes/releases/1.01/vjmixes/xoops_version.php XoopsModules/vjmixes/trunk/ Added: XoopsModules/vjmixes/releases/1.01/vjmixes/admin/admin.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/admin/admin.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/admin/admin.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,124 @@ +<?php + + include 'header.php'; + include_once '../include/form.vjmixes.php'; + include_once '../include/functions.php'; + include_once '../../../class/pagenav.php'; + + $videoHandler =& xoops_getmodulehandler('video', 'vjmixes'); + $videoCatHandler =& xoops_getmodulehandler('video_category', 'vjmixes'); + + $categorycount = $videoCatHandler->getCount(NULL); + $videocount = $videoHandler->getCount(NULL); + + $op = !empty($_REQUEST['op'])?strtolower($_REQUEST['op']):'default'; + $id = !empty($_REQUEST['id']) ?(int)($_REQUEST['id']):0; + $itmppg = !empty($_REQUEST['itmppg']) ?(int)($_REQUEST['itmppg']):30; + $start = !empty($_REQUEST['start']) ?(int)($_REQUEST['start']):0; + + xoops_cp_header(); + + switch ($op) { + case 'delete': + $sql[0] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('vjmixes_video') . ' WHERE id = '.$id; + if ($GLOBALS['xoopsDB']->queryF($sql[0])) + redirect_header(XOOPS_URL.'/modules/vjmixes/admin/admin.php?op=list', 4, sprintf(_CMP_AM_VIDEODELETE_SUCCESSFUL, $video->getVar('name'))); + else + redirect_header(XOOPS_URL.'/modules/vjmixes/admin/admin.php?op=list', 4, sprintf(_CMP_AM_VIDEODELETE_UNSUCCESSFUL, $video->getVar('name'))); + exit(0); + case 'cats': + switch ($_REQUEST['fct']) + { + case "edit": + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + echo formVideoCats($id); + break; + case "new": + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + echo formVideoCats($id); + break; + case "save": + if (intval($_REQUEST['cid'])>0) + saveEditVideoCategory(intval($_REQUEST['cid'])); + else + saveNewVideoCategory(intval($_REQUEST['cid'])); + } + break; + case 'list': + + switch ($_REQUEST['fct']) { + case "cats": + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + + $pgnav = new XoopsPageNav($categorycount, $itmppg, $start); + $criteria = new Criteria('weight', '0', '>'); + + $criteria->setOrder('weight'); + $criteria->setStart($start); + $criteria->setLimit($itmppg); + + echo '<div style="clear:both; float:right;">' . $pgnav->renderNav() . '</div>'; + echo formCatsList($videoCatHandler->getObjects($criteria, true), $videoCatHandler); + break; + default: + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + + $pgnav = new XoopsPageNav($videocount, $itmppg, $start); + $criteria = new Criteria('uid', '0', '>'); + + $criteria->setOrder('created'); + $criteria->setStart($start); + $criteria->setLimit($itmppg); + + echo '<div style="clear:both; float:right;">' . $pgnav->renderNav() . '</div>'; + echo formList($videoHandler->getObjects($criteria, true), $videoHandler); + break; + } + break; + default: + case 'edit': + + + switch ($_REQUEST['fct']) { + case "save": + if ($_REQUEST['description_editor_current'] != $_REQUEST['description_editor'] ) { + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + echo formVideo($id); + exit(0); + } + + saveEditVideo(intval($_REQUEST['id'])); + break; + + default: + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + echo formVideo($id); + break; + + } + + break; + case 'new': + switch ($_REQUEST['fct']) { + case "save": + if ($_REQUEST['description_editor_current'] != $_REQUEST['description_editor'] ) { + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + echo formVideo($id); + exit(0); + } + + saveNewVideo(); + break; + + default: + echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + echo formVideo($id); + break; + + } + break; + } + + xoops_cp_footer(); +?> + Added: XoopsModules/vjmixes/releases/1.01/vjmixes/admin/header.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/admin/header.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/admin/header.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,68 @@ +<?php + +include "../../../include/cp_header.php"; +require_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/include/functions.php"; +xoops_loadLanguage("main", $xoopsModule->getVar("dirname")); + +$myts =& MyTextSanitizer::getInstance(); + +IF (!@ include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php"): + +function loadModuleAdminMenu($currentoption, $breadcrumb = "") +{ + if (!$adminmenu = $GLOBALS["xoopsModule"]->getAdminMenu()) { + return false; + } + + $breadcrumb = empty($breadcrumb) ? $adminmenu[$currentoption]["title"] : $breadcrumb; + $module_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/"; + $image_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/images"; + + $adminmenu_text =' + <style type="text/css"> + <!-- + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0;} + #buttonbar { float:left; width:100%; background: #e7e7e7 url("'.$image_link.'/modadminbg.gif") repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px;} + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url("'.$image_link.'/left_both.gif") no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url("'.$image_link.'/right_both.gif") no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar .current a { background-position:0 -150px; border-width:0; } + #buttonbar .current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + //--> + </style> + <div id="buttontop"> + <table style="width: 100%; padding: 0; " cellspacing="0"> + <tr> + <td style="width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <a href="../index.php">' . $GLOBALS["xoopsModule"]->getVar("name") . '</a> + </td> + <td style="width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <strong>' . $GLOBALS["xoopsModule"]->getVar("name") . '</strong> ' . $breadcrumb . ' + </td> + </tr> + </table> + </div> + <div id="buttonbar"> + <ul> + '; + foreach (array_keys($adminmenu) as $key) { + $adminmenu_text .= (($currentoption == $key) ? '<li class="current">' : '<li>') . '<a href="' . $module_link . $adminmenu[$key]["link"] . '"><span>' . $adminmenu[$key]["title"] . '</span></a></li>'; + } + $adminmenu_text .= '<li><a href="' . XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $GLOBALS["xoopsModule"]->getVar("mid") . '"><span>' . _PREFERENCES . '</span></a></li>'; + $adminmenu_text .= ' + </ul> + </div> + <br style="clear:both;" />'; + + echo $adminmenu_text; +} + +ENDIF; +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/admin/index.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/admin/index.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/admin/index.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/admin/menu.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/admin/menu.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/admin/menu.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,22 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +$adminmenu = array(); + +$adminmenu[]= array("link" => "admin/admin.php", + "title" => _VJM_AM_MAININDEX, + "icon" => "images/vjmixesmain.png"); +$adminmenu[]= array("link" => "admin/admin.php?op=list", + "title" => _VJM_AM_VJMIXESLIST, + "icon" => "images/videolist.png"); +$adminmenu[]= array("link" => "admin/admin.php?op=list&fct=cats", + "title" => _VJM_AM_VJMIXESCATSLIST, + "icon" => "images/videocatslist.png"); +$adminmenu[]= array("link" => "admin/admin.php?op=cats&fct=new", + "title" => _VJM_AM_VJMIXESCATSNEW, + "icon" => "images/videocatsnew.png"); +$adminmenu[]= array("link" => "admin/admin.php?op=new", + "title" => _VJM_AM_VJMIXESNEWITEM, + "icon" => "images/videocnew.png"); + +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/class/formselectcategory.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/class/formselectcategory.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/class/formselectcategory.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,267 @@ +<?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. +*/ + +/** + * Xoops Form Class Elements + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package class + * @package kernel + * @subpackage form + * @author Kazumi Ono <on...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @author John Neill <cat...@xo...> + * @version $Id: formselect.php 3295 2009-07-01 02:26:05Z beckmi $ + */ +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +if (! class_exists('XoopsFormElement')) { + xoops_load('xoopsformelement'); +} + +/** + * A select field + * + * @author Kazumi Ono <on...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @author John Neill <cat...@xo...> + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @package kernel + * @subpackage form + * @access public + */ +class VjmixesFormSelectCategory extends XoopsFormElement +{ + /** + * Options + * + * @var array + * @access private + */ + var $_options = array(); + + /** + * Allow multiple selections? + * + * @var bool + * @access private + */ + var $_multiple = false; + + /** + * Number of rows. "1" makes a dropdown list. + * + * @var int + * @access private + */ + var $_size; + + /** + * Pre-selcted values + * + * @var array + * @access private + */ + var $_value = array(); + + /** + * Constructor + * + * @param string $caption Caption + * @param string $name "name" attribute + * @param mixed $value Pre-selected value (or array of them). + * @param int $size Number or rows. "1" makes a drop-down-list + * @param bool $multiple Allow multiple selections? + */ + function VjmixesFormSelectCategory($caption, $name, $value = null, $size = 1, $multiple = false) + { + $this->setCaption($caption); + $this->setName($name); + $this->_multiple = $multiple; + $this->_size = intval($size); + $this->addCategories(); + if (isset($value)) { + $this->setValue($value); + } + } + + /** + * Are multiple selections allowed? + * + * @return bool + */ + function isMultiple() + { + return $this->_multiple; + } + + /** + * Get the size + * + * @return int + */ + function getSize() + { + return $this->_size; + } + + /** + * Get an array of pre-selected values + * + * @param bool $encode To sanitizer the text? + * @return array + */ + function getValue($encode = false) + { + if (! $encode) { + return $this->_value; + } + $value = array(); + foreach($this->_value as $val) { + $value[] = $val ? htmlspecialchars($val, ENT_QUOTES) : $val; + } + return $value; + } + + /** + * Set pre-selected values + * + * @param $value mixed + */ + function setValue($value) + { + if (is_array($value)) { + foreach($value as $v) { + $this->_value[] = $v; + } + } elseif (isset($value)) { + $this->_value[] = $value; + } + } + + /** + * Add an option + * + * @param string $value "value" attribute + * @param string $name "name" attribute + */ + function addOption($value, $name = '') + { + if ($name != '') { + $this->_options[$value] = $name; + } else { + $this->_options[$value] = $value; + } + } + + /** + * Add multiple options + * + * @param array $options Associative array of value->name pairs + */ + function addOptionArray($options) + { + if (is_array($options)) { + foreach($options as $k => $v) { + $this->addOption($k, $v); + } + } + } + + /** + * Add multiple options + * + * @param array $options Associative array of value->name pairs + */ + function addCategories() + { + $vidcatHandler =& xoops_getmodulehandler('video_category', 'vjmixes'); + $criteria = new Criteria('cid', '0', '>'); + $criteria->setOrder('weight'); + $vidcat = $vidcatHandler->getObjects($criteria, true); + if (is_array($vidcat)) { + foreach($vidcat as $k => $v) { + $this->addOption($v->getVar('cid'), $v->getVar('name')); + } + } + } + /** + * Get an array with all the options + * + * Note: both name and value should be sanitized. However for backward compatibility, only value is sanitized for now. + * + * @param int $encode To sanitizer the text? potential values: 0 - skip; 1 - only for value; 2 - for both value and name + * @return array Associative array of value->name pairs + */ + function getOptions($encode = false) + { + if (! $encode) { + return $this->_options; + } + $value = array(); + foreach($this->_options as $val => $name) { + $value[$encode ? htmlspecialchars($val, ENT_QUOTES) : $val] = ($encode > 1) ? htmlspecialchars($name, ENT_QUOTES) : $name; + } + return $value; + } + + /** + * Prepare HTML for output + * + * @return string HTML + */ + function render() + { + $ele_name = $this->getName(); + $ele_title = $this->getTitle(); + $ele_value = $this->getValue(); + $ele_options = $this->getOptions(); + $ret = '<select size="' . $this->getSize() . '"' . $this->getExtra(); + if ($this->isMultiple() != false) { + $ret .= ' name="' . $ele_name . '[]" id="' . $ele_name . '" title="'. $ele_title. '" multiple="multiple">' ; + } else { + $ret .= ' name="' . $ele_name . '" id="' . $ele_name . '" title="'. $ele_title. '">' ; + } + foreach($ele_options as $value => $name) { + $ret .= '<option value="' . htmlspecialchars($value, ENT_QUOTES) . '"'; + if (count($ele_value) > 0 && in_array($value, $ele_value)) { + $ret .= ' selected="selected"'; + } + $ret .= '>' . $name . '</option>' ; + } + $ret .= '</select>'; + return $ret; + } + + /** + * Render custom javascript validation code + * + * @seealso XoopsForm::renderValidationJS + */ + function renderValidationJS() + { + // render custom validation code if any + if (! empty($this->customValidationCode)) { + return implode("\n", $this->customValidationCode); + // generate validation code if required + } elseif ($this->isRequired()) { + $eltname = $this->getName(); + $eltcaption = $this->getCaption(); + $eltmsg = empty($eltcaption) ? sprintf(_FORM_ENTER, $eltname) : sprintf(_FORM_ENTER, $eltcaption); + $eltmsg = str_replace('"', '\"', stripslashes($eltmsg)); + return "\nvar hasSelected = false; var selectBox = myform.{$eltname};" . "for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true) { hasSelected = true; break; } }" . "if (!hasSelected) { window.alert(\"{$eltmsg}\"); selectBox.focus(); return false; }"; + } + return ''; + } +} + +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/class/index.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/class/index.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/class/index.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/class/video.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/class/video.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/class/video.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,50 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compunds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class VjmixesVideo extends XoopsObject +{ + + function VjmixesVideo($id = null) + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('cid', XOBJ_DTYPE_INT, null, true); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, true, 128); + $this->initVar('image', XOBJ_DTYPE_OTHER, null, false, 255); + $this->initVar('description', XOBJ_DTYPE_OTHER, null, false); + $this->initVar('embedded', XOBJ_DTYPE_OTHER, null, false); + $this->initVar('hit', XOBJ_DTYPE_INT, null, false); + $this->initVar('uid', XOBJ_DTYPE_INT, null, false); + $this->initVar('comments', XOBJ_DTYPE_INT, null, false); + $this->initVar('video_tags', XOBJ_DTYPE_TXTBOX, null, true, 255); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class VjmixesVideoHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "vjmixes_video", 'VjmixesVideo', "id", "name"); + } +} + +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/class/video_category.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/class/video_category.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/class/video_category.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,45 @@ +<?php +// $Autho: wishcraft $ + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for compunds + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class VjmixesVideo_category extends XoopsObject +{ + + function VjmixesVideo_category($id = null) + { + $this->initVar('cid', XOBJ_DTYPE_INT, null, false); + $this->initVar('weight', XOBJ_DTYPE_INT, 1, false); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, true, 128); + $this->initVar('image', XOBJ_DTYPE_OTHER, null, false, 255); + $this->initVar('description', XOBJ_DTYPE_OTHER, null, false); + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class VjmixesVideo_categoryHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, "vjmixes_video_category", 'VjmixesVideo_category', "cid", "name"); + } +} + +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/images/Thumbs.db =================================================================== (Binary files differ) Property changes on: XoopsModules/vjmixes/releases/1.01/vjmixes/images/Thumbs.db ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vjmixes/releases/1.01/vjmixes/images/index.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/images/index.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/images/index.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/images/videocatslist.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vjmixes/releases/1.01/vjmixes/images/videocatslist.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vjmixes/releases/1.01/vjmixes/images/videocatsnew.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vjmixes/releases/1.01/vjmixes/images/videocatsnew.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vjmixes/releases/1.01/vjmixes/images/videocnew.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vjmixes/releases/1.01/vjmixes/images/videocnew.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vjmixes/releases/1.01/vjmixes/images/videolist.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vjmixes/releases/1.01/vjmixes/images/videolist.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vjmixes/releases/1.01/vjmixes/images/vjmixes_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vjmixes/releases/1.01/vjmixes/images/vjmixes_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vjmixes/releases/1.01/vjmixes/images/vjmixesmain.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vjmixes/releases/1.01/vjmixes/images/vjmixesmain.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vjmixes/releases/1.01/vjmixes/include/comment_functions.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/include/comment_functions.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/include/comment_functions.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,17 @@ +<?php + +function vjmixes_com_update($item_id, $total_num) +{ + $videoHandler =& xoops_getmodulehandler('video', 'vjmixes'); + $video = $videoHandler->get($item_id); + $video->setVar('comments', $total_num) + @$videoHandler->insert($video); +} + +function vjmixes_com_approve(&$comment) +{ + // notification mail here +} + + +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/include/form.objects.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/include/form.objects.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/include/form.objects.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,7 @@ +<?php + + include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; + include_once XOOPS_ROOT_PATH . '/modules/vjmixes/class/formselectcategory.php'; + include_once XOOPS_ROOT_PATH . '/modules/tag/include/formtag.php'; + +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/include/form.vjmixes.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/include/form.vjmixes.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/include/form.vjmixes.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,142 @@ +<?php + + include_once( 'form.objects.php' ); + + function formVideoCats($cid) + { + $cform = new XoopsThemeForm(_VJM_FRM_VJMIXES_CATS_FORM, 'vjmixescats'); + $cform->setExtra('enctype="multipart/form-data"'); + + $videoCatsHandler =& xoops_getmodulehandler('video_category', 'vjmixes'); + + if (intval($cid)<>0) + $vcats =& $videoCatsHandler->get(intval($cid)); + else + $vcats =& $videoCatsHandler->create(); + + $cform->addElement(new XoopsFormText(_VJM_FRM_VJMIXES_WEIGHT, 'weight', 4, 13, !isset($_REQUEST['weight'])?$vcats->getVar('weight'):$_REQUEST['weight'])); + $cform->addElement(new XoopsFormText(_VJM_FRM_VJMIXES_NAME, 'name', 70, 128, !isset($_REQUEST['name'])?$vcats->getVar('name'):$_REQUEST['name'])); + if (strlen($vcats->getVar('image'))) + $cform->addElement(new XoopsFormLabel(_VJM_FRM_VJMIXES_CURRENT_IMAGE, "<img src='".XOOPS_URL."/uploads/".$vcats->getVar('image')."' width='160px'>"), false); + $cform->addElement(new XoopsFormFile(_VJM_FRM_VJMIXES_IMAGE, 'image', 1024*1024*3), false); + $description_editor = !isset($_REQUEST['description_editor'])?'xinha':$_REQUEST['description_editor']; + $cform->addElement(new XoopsFormSelectEditor($cform, 'description_editor', $description_editor)); + $description_config['name'] = 'description'; + $description_config['editor'] = $description_editor; + $description_config['value'] = !isset($_REQUEST['description'])?$vcats->getVar('description'):$_REQUEST['description']; + $description_config['width'] = 379; + $description_config['height'] = 479; + $ele_description = new XoopsFormEditor(_VJM_FRM_VJMIXES_DESCRIPTION, 'description', $description_config); + $ele_description->setDescription(_VJM_FRM_VJMIXES_DESCRIPTION_DESC); + $cform->addElement($ele_description); + $cform->addElement(new XoopsFormHidden('description_editor_current', $description_editor)); + $cform->addElement(new XoopsFormHidden('cid', $cid)); + $cform->addElement(new XoopsFormHidden('op', $_REQUEST['op'])); + $cform->addElement(new XoopsFormHidden('fct', 'save')); + + $cform->addElement(new XoopsFormButton('', 'contents_submit', _SUBMIT, "submit")); + return $cform->render(); + + } + + function formCatsList($video_objects, $videoHandler) + { + $lform = new XoopsThemeForm(_VJM_FRM_CATEGORY_LIST, 'videocatlist'); + $lform->setExtra('enctype="multipart/form-data"'); + foreach($video_objects as $key => $video) { + $lele[$key] = new XoopsFormElementTray(sprintf(_VJM_ELE_VJMIXES_LIST, $video->getVar('cid'))); + $lele[$key]->setDescription( $video->getVar('name') ); + $lele[$key]->addElement(new XoopsFormLabel('', '<a href="'.XOOPS_URL.'/modules/vjmixes/admin/admin.php?op=cats&fct=edit&id='.$video->getVar('cid').'">'._EDIT.'</a>')); + $lele[$key]->addElement(new XoopsFormLabel('', '<a href="'.XOOPS_URL.'/modules/vjmixes/admin/admin.php?op=cats&fct=delete&id='.$video->getVar('cid').'">'._DELETE.'</a>')); + $lform->addElement($lele[$key]); + + } + return $lform->render(); + } + + function formVideo($video_id) { + $cform = new XoopsThemeForm(_VJM_FRM_VJMIXES_FORM, 'vjmixes'); + $cform->setExtra('enctype="multipart/form-data"'); + $videoHandler =& xoops_getmodulehandler('video', 'vjmixes'); + + if (intval($_REQUEST['id'])<>0) + $video =& $videoHandler->get(intval($_REQUEST['id'])); + else + $video =& $videoHandler->create(); + + $description_editor = !isset($_REQUEST['description_editor'])?'xinha':$_REQUEST['description_editor']; + + $cat = new VjmixesFormSelectCategory(_VJM_FRM_CATEGORY, 'cid', $video->getVar('cid')); + $cat->setDescription(_VJM_FRM_CATEGORY_DESC); + $cform->addElement($cat); + + $cform->addElement(new XoopsFormText(_VJM_FRM_VJMIXES_NAME, 'name', 70, 128, !isset($_REQUEST['name'])?$video->getVar('name'):$_REQUEST['name'])); + if (strlen($video->getVar('image'))) + $cform->addElement(new XoopsFormLabel(_VJM_FRM_VJMIXES_CURRENT_IMAGE, "<img src='".XOOPS_URL."/uploads/".$video->getVar('image')."' width='160px'>"), false); + + $cform->addElement(new XoopsFormFile(_VJM_FRM_VJMIXES_IMAGE, 'image', 1024*1024*3), false); + + $cform->addElement(new XoopsFormSelectEditor($cform, 'description_editor', $description_editor)); + $description_config['name'] = 'description'; + $description_config['editor'] = $description_editor; + $description_config['value'] = !isset($_REQUEST['description'])?$video->getVar('description'):$_REQUEST['description']; + $description_config['width'] = 379; + $description_config['height'] = 479; + $ele_description = new XoopsFormEditor(_VJM_FRM_VJMIXES_DESCRIPTION, 'description', $description_config); + $ele_description->setDescription(_VJM_FRM_VJMIXES_DESCRIPTION_DESC); + $cform->addElement($ele_description); + + $cform->addElement(new XoopsFormTextArea(_VJM_FRM_VJMIXES_EMBEDDED, 'embedded', !isset($_REQUEST['embedded'])?$video->getVar('embedded'):$_REQUEST['embedded'], 5, 70)); + + $cform->addElement(new XoopsFormTag('video_tags', 70, 255, $_REQUEST['id'])); + + $cform->addElement(new XoopsFormHidden('description_editor_current', $description_editor)); + $cform->addElement(new XoopsFormHidden('id', $_REQUEST['id'])); + $cform->addElement(new XoopsFormHidden('op', $_REQUEST['op'])); + $cform->addElement(new XoopsFormHidden('fct', 'save')); + + $cform->addElement(new XoopsFormButton('', 'contents_submit', _SUBMIT, "submit")); + return $cform->render(); + } + + function formList($video_objects, $videoHandler) + { + $lform = new XoopsThemeForm(_VJM_FRM_VJMIXES_LIST, 'videolist'); + $lform->setExtra('enctype="multipart/form-data"'); + foreach($video_objects as $key => $video) { + $lele[$key] = new XoopsFormElementTray(sprintf(_VJM_ELE_VJMIXES_LIST, $video->getVar('id'))); + $lele[$key]->setDescription( $video->getVar('name') ); + $lele[$key]->addElement(new XoopsFormLabel('', '<a href="'.XOOPS_URL.'/modules/vjmixes/admin/admin.php?op=edit&id='.$video->getVar('id').'">'._EDIT.'</a>')); + $lele[$key]->addElement(new XoopsFormLabel('', '<a href="'.XOOPS_URL.'/modules/vjmixes/admin/admin.php?op=delete&id='.$video->getVar('id').'">'._DELETE.'</a>')); + $lele[$key]->addElement(new XoopsFormTag('video_tags', 35, 255, $video->getVar('id'))); + $lform->addElement($lele[$key]); + + } + return $lform->render(); + } + + function formVote($session) + { + $cform = new XoopsThemeForm(_VJM_FRM_VOTE_FORM, 'vote'); + $cform->setExtra('enctype="multipart/form-data"'); + $votesel = new XoopsFormSelect(_VJM_FRM_VOTE_STARS, 'stars',0 , 10); + $votesel->addOption('10', '10 Stars'); + $votesel->addOption('9', '9 Stars'); + $votesel->addOption('8', '8 Stars'); + $votesel->addOption('7', '7 Stars'); + $votesel->addOption('6', '6 Stars'); + $votesel->addOption('5', '5 Stars'); + $votesel->addOption('4', '4 Stars'); + $votesel->addOption('3', '3 Stars'); + $votesel->addOption('2', '2 Stars'); + $votesel->addOption('1', '1 Stars'); + $cform->addElement($votesel); + $cform->addElement(new XoopsFormHidden('op', 'vote')); + $cform->addElement(new XoopsFormHidden('id', $session['id'])); + $cform->addElement(new XoopsFormHidden('ip', $session['ip'])); + $cform->addElement(new XoopsFormHidden('addy', $session['addy'])); + $cform->addElement(new XoopsFormButton('', 'contents_submit', _SUBMIT, "submit")); + return $cform->render(); + } + +?> Added: XoopsModules/vjmixes/releases/1.01/vjmixes/include/functions.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/include/functions.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/include/functions.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,195 @@ +<?php + + include $GLOBALS['xoops']->path('/class/uploader.php'); + + function saveEditVideo($video_id) + { + $videoHandler =& xoops_getmodulehandler('video', 'vjmixes'); + $video = $videoHandler->get( $video_id ); + + $video->setVar('cid', $_REQUEST["cid"]); + $video->setVar('name', $_REQUEST["name"]); + $video->setVar('description', $_REQUEST["description"]); + if (is_object($GLOBALS['xoopsUser'])) + $video->setVar('uid', $GLOBALS['xoopsUser']->getVar('uid')); + $video->setVar('created', time()); + $video->setVar('video_tags', $_REQUEST["video_tags"]); + $video->setVar('embedded', $_REQUEST["embedded"]); + + if(isset($_POST['xoops_upload_file'])) { + $fldname = $_FILES[$_POST['xoops_upload_file'][0]]; + $fldname = (get_magic_quotes_gpc()) ? stripslashes($fldname['name']) : $fldname['name']; + if(xoops_trim($fldname!='')) { + $destname = md5(time()).'_'.$fldname; + /** + * You can attach files to your news, actually : Web pictures (png, gif, jpeg), zip, pdf, gtar, tar, pdf + */ + $permittedtypes=array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png' ); + $uploader = new XoopsMediaUploader( XOOPS_UPLOAD_PATH, $permittedtypes, 1024*1024*3); + $uploader->setTargetFileName($destname); + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + if ($uploader->upload()) { + $video->setVar('image', str_replace(XOOPS_ROOT_PATH, '', $destname)); + } else { + echo _AM_UPLOAD_ERROR. ' ' . $uploader->getErrors(); + } + } else { + echo $uploader->getErrors(); + } + } + } + if ($videoHandler->insert($video)) { + $video_id = $video_id; + $tag_handler = xoops_getmodulehandler('tag', 'tag'); + $tag_handler->updateByItem($_REQUEST["video_tags"], $video_id, $GLOBALS['xoopsModule']->getVar("dirname"), intval($_REQUEST["cid"])); + + if (!strpos($_SERVER['REQUEST_URI'], '/vjmixes/admin/')) + redirect_header('admin.php?op=edit&id='.$video_id, 8, sprintf(_VJM_RH_VJMIXES_EDITED, $video->getVar('name'))); + else + redirect_header('admin.php?op=list', 8, sprintf(_VJM_RH_VJMIXES_EDITED, $video->getVar('name'))); + exit(0); + } else { + redirect_header('index.php', 4, sprintf(_VJM_RH_VJMIXES_NOCREATION, $video->getVar('name'))); + exit(0); + } + } + + function saveNewVideo() { + + $videoHandler =& xoops_getmodulehandler('video', 'vjmixes'); + $video = $videoHandler->create(); + + $video->setVar('cid', $_REQUEST["cid"]); + $video->setVar('name', $_REQUEST["name"]); + $video->setVar('description', $_REQUEST["description"]); + if (is_object($GLOBALS['xoopsUser'])) + $video->setVar('uid', $GLOBALS['xoopsUser']->getVar('uid')); + $video->setVar('created', time()); + $video->setVar('video_tags', $_REQUEST["video_tags"]); + $video->setVar('embedded', $_REQUEST["embedded"]); + + if(isset($_POST['xoops_upload_file'])) { + $fldname = $_FILES[$_POST['xoops_upload_file'][0]]; + $fldname = (get_magic_quotes_gpc()) ? stripslashes($fldname['name']) : $fldname['name']; + if(xoops_trim($fldname!='')) { + $destname = md5(time()).'_'.$fldname; + /** + * You can attach files to your news, actually : Web pictures (png, gif, jpeg), zip, pdf, gtar, tar, pdf + */ + $permittedtypes=array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png' ); + $uploader = new XoopsMediaUploader( XOOPS_UPLOAD_PATH, $permittedtypes, 1024*1024*3); + $uploader->setTargetFileName($destname); + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + if ($uploader->upload()) { + $video->setVar('image', str_replace(XOOPS_ROOT_PATH, '', $destname)); + } else { + echo _AM_UPLOAD_ERROR. ' ' . $uploader->getErrors(); + } + } else { + echo $uploader->getErrors(); + } + } + } + if ($videoHandler->insert($video)) { + $video_id = $GLOBALS['xoopsDB']->getInsertId(); + $tag_handler = xoops_getmodulehandler('tag', 'tag'); + $tag_handler->updateByItem($_REQUEST["video_tags"], $video_id, $GLOBALS['xoopsModule']->getVar("dirname"), intval($_REQUEST["cid"])); + + if (!strpos($_SERVER['REQUEST_URI'], '/vjmixes/admin/')) + redirect_header('admin.php?id='.$video_id, 8, sprintf(_VJM_RH_VJMIXES_EDITED, $video->getVar('name'))); + else + redirect_header('admin.php?op=list', 8, sprintf(_VJM_RH_VJMIXES_EDITED, $video->getVar('name'))); + exit(0); + } else { + redirect_header('index.php', 4, sprintf(_VJM_RH_VJMIXES_NOCREATION, $video->getVar('name'))); + exit(0); + } + } + + function saveEditVideoCategory($cid) + { + $videoCatHandler =& xoops_getmodulehandler('video_category', 'vjmixes'); + $video = $videoCatHandler->get( $cid ); + + $video->setVar('name', $_REQUEST["name"]); + $video->setVar('description', $_REQUEST["description"]); + if(isset($_POST['xoops_upload_file'])) { + $fldname = $_FILES[$_POST['xoops_upload_file'][0]]; + $fldname = (get_magic_quotes_gpc()) ? stripslashes($fldname['name']) : $fldname['name']; + if(xoops_trim($fldname!='')) { + $destname = md5(time()).'_'.$fldname; + /** + * You can attach files to your news, actually : Web pictures (png, gif, jpeg), zip, pdf, gtar, tar, pdf + */ + $permittedtypes=array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png' ); + $uploader = new XoopsMediaUploader( XOOPS_UPLOAD_PATH, $permittedtypes, 1024*1024*3); + $uploader->setTargetFileName($destname); + if ($uploader->fetchMedia($_REQUEST['xoops_upload_file'][0])) { + if ($uploader->upload()) { + $video->setVar('image', str_replace(XOOPS_ROOT_PATH, '', $destname)); + } else { + echo _AM_UPLOAD_ERROR. ' ' . $uploader->getErrors(); + } + } else { + echo $uploader->getErrors(); + } + } + } + + if ($cid = $videoCatHandler->insert($video)) { + if (!strpos($_SERVER['REQUEST_URI'], '/vjmixes/admin/')) + redirect_header('admin.php?op=cats&fct=edit&id='.$cid, 8, sprintf(_VJM_RH_CATEGORY_EDITED, $video->getVar('name'))); + else + redirect_header('admin.php?op=cats', 8, sprintf(_VJM_RH_CATEGORY_EDITED, $video->getVar('name'))); + exit(0); + } else { + redirect_header('index.php', 4, sprintf(_VJM_RH_CATEGORY_NOCREATION, $video->getVar('name'))); + exit(0); + } + } + + function saveNewVideoCategory() + { + $videoCatHandler =& xoops_getmodulehandler('video_category', 'vjmixes'); + $video = $videoCatHandler->create(); + + $video->setVar('name', $_REQUEST["name"]); + $video->setVar('description', $_REQUEST["description"]); + + if(isset($_POST['xoops_upload_file'])) { + $fldname = $_FILES[$_POST['xoops_upload_file'][0]]; + $fldname = (get_magic_quotes_gpc()) ? stripslashes($fldname['name']) : $fldname['name']; + if(xoops_trim($fldname!='')) { + $destname = md5(time()).'_'.$fldname; + + /** + * You can attach files to your news, actually : Web pictures (png, gif, jpeg), zip, pdf, gtar, tar, pdf + */ + $permittedtypes=array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png' ); + $uploader = new XoopsMediaUploader( XOOPS_UPLOAD_PATH, $permittedtypes, 1024*1024*3); + $uploader->setTargetFileName($destname); + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + if ($uploader->upload()) { + $video->setVar('image', str_replace(XOOPS_ROOT_PATH, '', $destname)); + } else { + echo _AM_UPLOAD_ERROR. ' ' . $uploader->getErrors(); + } + } else { + echo $uploader->getErrors(); + } + } + } + + if ($cid = $videoCatHandler->insert($video)) { + if (!strpos($_SERVER['REQUEST_URI'], '/vjmixes/admin/')) + redirect_header('admin.php?op=cats&fct=edit&id='.$cid, 8, sprintf(_VJM_RH_CATEGORY_EDITED, $video->getVar('name'))); + else + redirect_header('admin.php?op=cats', 8, sprintf(_VJM_RH_CATEGORY_EDITED, $video->getVar('name'))); + exit(0); + } else { + redirect_header('index.php', 4, sprintf(_VJM_RH_CATEGORY_NOCREATION, $video->getVar('name'))); + exit(0); + } + } + +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/include/index.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/include/index.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/include/index.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/index.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/index.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/index.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,82 @@ +<?php + + include( '../../mainfile.php' ); + + $myts =& MyTextSanitizer::getInstance(); + + $videoCatHandler =& xoops_getmodulehandler('video_category', 'vjmixes'); + $videoHandler =& xoops_getmodulehandler('video', 'vjmixes'); + + $op = !empty($_REQUEST['op']) ? strtolower($_REQUEST['op']) : 'new'; + $id = !empty($_REQUEST['id']) ? (int)($_REQUEST['id']) : 0; + $cid = !empty($_REQUEST['cid']) ? (int)($_REQUEST['cid']) : 0; + + $module_handler =& xoops_gethandler('module'); + $xoModule = $module_handler->getByDirname('vjmixes'); + $config_handler =& xoops_gethandler('config'); + $xoConfigs = $config_handler->getConfigList($xoModule->getVar('mid')); + + switch ( $op ) { + case 'cat': + $xoopsOption['template_main'] = "vjmixes_vids.html"; + include XOOPS_ROOT_PATH . '/header.php'; + + $vidcat = $videoCatHandler->get($cid); + $xoopsTpl->assign('xoops_pagetitle', $vidcat->getVar('name')); + $xoopsTpl->assign('category', $vidcat->getVar('name')); + + $criteria = new Criteria('cid', $cid); + $criteria->setOrder('RAND()'); + $videos = $videoHandler->getObjects($criteria); + foreach($videos as $key => $object) + $xoopsTpl->append('videos', $object->getValues()); + + $criteria = new Criteria('cid', $cid); + $criteria->setOrder('RAND()'); + $videos = $videoHandler->getObjects($criteria); + $xoopsTpl->assign('video', $videos[0]->getValues()); + + include_once XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php"; + $xoopsTpl->assign('tagbar', tagBar($videos[0]->getVar('id'), $videos[0]->getVar('cid'))); + + include XOOPS_ROOT_PATH . '/footer.php'; + exit(0); + + break; + case 'view': + $xoopsOption['template_main'] = "vjmixes_info.html"; + include XOOPS_ROOT_PATH . '/header.php'; + + $video = $videoHandler->get($id); + $xoopsTpl->assign('video', $video->getValues()); + $xoopsTpl->assign('xoops_pagetitle', $video->getVar('name')); + + include_once XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php"; + $xoopsTpl->assign('tagbar', tagBar($video->getVar('id'), $video->getVar('cid'))); + + include XOOPS_ROOT_PATH . '/footer.php'; + exit(0); + break; + default: + $xoopsOption['template_main'] = "vjmixes_index.html"; + include XOOPS_ROOT_PATH . '/header.php'; + + $criteria = new Criteria('weight', '0', '>'); + $criteria->setOrder('weight'); + $categories = $videoCatHandler->getObjects($criteria, true); + foreach($categories as $key => $object) + $xoopsTpl->append('categories', $object->getValues()); + + $criteria = new Criteria('uid', '0', '>'); + $criteria->setOrder('RAND()'); + $videos = $videoHandler->getObjects($criteria); + $xoopsTpl->assign('video', $videos[0]->getValues()); + + include_once XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php"; + $xoopsTpl->assign('tagbar', tagBar($videos[0]->getVar('id'), $videos[0]->getVar('cid'))); + + include XOOPS_ROOT_PATH . '/footer.php'; + exit(0); + break; + } +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/admin.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/admin.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/admin.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,23 @@ +<?php + + define('_VJM_FRM_CATEGORY', 'Category for Video'); + define('_VJM_FRM_CATEGORY_DESC', 'Select the category for the video to be placed into.'); + define('_VJM_FRM_VJMIXES_NAME', 'Title of Video'); + define('_VJM_FRM_VJMIXES_IMAGE', 'Still Image for Item'); + define('_VJM_FRM_VJMIXES_DESCRIPTION', 'Description'); + define('_VJM_FRM_VJMIXES_DESCRIPTION_DESC', 'This is the description of the video/category for performance and indication of things like artist, colours and other video information.'); + define('_VJM_FRM_VJMIXES_EMBEDDED', 'Embedded Code for Video'); + define('_VJM_FRM_VJMIXES_WEIGHT', 'Weight/Order'); + define('_VJM_FRM_VJMIXES_CURRENT_IMAGE', 'Current Image'); + define('_VJM_RH_CATEGORY_EDITED', 'The category %s was created/edited!'); + define('_VJM_FRM_CATEGORY_LIST', 'Category List'); + define('_VJM_FRM_VJMIXES_LIST', 'Video Mixes List'); + define('_VJM_ELE_VJMIXES_LIST', 'Item %s:'); + define('_VJM_RH_VJMIXES_EDITED', 'Video %s was saved!'); + define('_VJM_RH_VJMIXES_NOCREATION', 'Video %s was not saved!'); + define('_VJM_RH_CATEGORY_EDITED', 'Category %s was saved!'); + define('_VJM_RH_CATEGORY_NOCREATION', 'Category %s was not saved!'); + define('_VJM_FRM_VJMIXES_FORM', 'Video Embeddment Form'); + define('_VJM_FRM_VJMIXES_CATS_FORM', 'Category Form'); + +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/index.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/index.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/index.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/main.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/main.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/main.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,3 @@ +<?php + +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/modinfo.php =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/modinfo.php (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/language/english/modinfo.php 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,11 @@ +<?php + + define('_VJM_MI_NAME','VJ Mixes'); + define('_VJM_MI_DESC','VJ Mixes Written for Gary Arthy by Simon Roberts'); + + define('_VJM_AM_MAININDEX','Main Index'); + define('_VJM_AM_VJMIXESLIST','VJ Mixes List'); + define('_VJM_AM_VJMIXESCATSLIST','Category List'); + define('_VJM_AM_VJMIXESCATSNEW','New Category'); + define('_VJM_AM_VJMIXESNEWITEM','New Video Item'); +?> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/language/index.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/language/index.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/language/index.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/sql/index.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/sql/index.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/sql/index.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/sql/mysql.sql =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/sql/mysql.sql (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/sql/mysql.sql 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,23 @@ +CREATE TABLE `vjmixes_video_category` ( + `cid` INT(13) UNSIGNED NOT NULL AUTO_INCREMENT, + `weight` INT(13) UNSIGNED DEFAULT '1', + `name` VARCHAR(128) DEFAULT NULL, + `image` VARCHAR(255) DEFAULT NULL, + `description` MEDIUMTEXT, + PRIMARY KEY (`cid`) +) ENGINE=MYISAM DEFAULT CHARSET=utf8; + +CREATE TABLE `vjmixes_video` ( + `id` INT(13) UNSIGNED NOT NULL AUTO_INCREMENT, + `cid` INT(13) UNSIGNED DEFAULT '0', + `name` VARCHAR(128) DEFAULT NULL, + `image` VARCHAR(255) DEFAULT NULL, + `description` MEDIUMTEXT, + `embedded` MEDIUMTEXT, + `hits` INT(6) UNSIGNED DEFAULT '0', + `uid` INT(12) UNSIGNED DEFAULT NULL, + `created` INT(13) UNSIGNED DEFAULT '0', + `comments` INT(6) UNSIGNED DEFAULT '0', + `video_tags` VARCHAR(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=MYISAM DEFAULT CHARSET=utf8; \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/templates/index.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/templates/index.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/templates/index.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_categories.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_categories.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_categories.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,22 @@ +<div style="clear:both; height:10px;"> </div> +<{foreach from=$categories item=category}> + <{assign var='newloop' value='1'}> + <{if $column==0 && $newloop == 1}> + <div style="clear:both"> + <div style="text-align:center; float:left; width:50%;"><a href="<{$xoops_url}>/modules/vjmixes/index.php?op=cat&cid=<{$category.cid}>"> + <{if $category.image}><img src="<{$xoops_url}>/uploads/<{$category.image}>" width="140px" border="0"><br/><{/if}> + <strong><{$category.name}></strong> + </a></div> + <{assign var='column' value='1'}> + <{assign var='newloop' value='0'}> + <{/if}> + <{if $column==1 && $newloop == 1}> + <div style="text-align:center; float:right; width:50%;"><a href="<{$xoops_url}>/modules/vjmixes/index.php?op=cat&cid=<{$category.cid}>"> + <{if $category.image}><img src="<{$xoops_url}>/uploads/<{$category.image}>" width="140px" border="0"><br/><{/if}> + <strong><{$category.name}></strong> + </a></div> + </div> + <{assign var='column' value='0'}> + <{assign var='newloop' value='0'}> + <{/if}> +<{/foreach}> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_category.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_category.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_category.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,22 @@ +<div style="clear:both; height:10px;"> </div> +<{foreach from=$videos item=video}> + <{assign var='newloop' value='1'}> + <{if $column==0 && $newloop == 1}> + <div style="clear:both"> + <div style="text-align:center; float:left; width:50%;"><a href="<{$xoops_url}>/modules/vjmixes/index.php?op=view&id=<{$video.id}>"> + <{if $video.image}><img src="<{$xoops_url}>/uploads/<{$video.image}>" width="140px" border="0"><br/><{/if}> + <strong><{$video.name}></strong> + </a></div> + <{assign var='column' value='1'}> + <{assign var='newloop' value='0'}> + <{/if}> + <{if $column==1 && $newloop == 1}> + <div style="text-align:center; float:right; width:50%;"><a href="<{$xoops_url}>/modules/vjmixes/index.php?op=view&cid=<{$video.id}>"> + <{if $video.image}><img src="<{$xoops_url}>/uploads/<{$video.image}>" width="140px" border="0"><br/><{/if}> + <strong><{$video.name}></strong> + </a></div> + </div> + <{assign var='column' value='0'}> + <{assign var='newloop' value='0'}> + <{/if}> +<{/foreach}> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_index.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_index.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_index.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,4 @@ +<{include file="db:vjmixes_categories.html"}> +<div style="clear:both; height:10px;"> </div> +<h1>Random Video</h1> +<{include file="db:vjmixes_info.html"}> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_info.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_info.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_info.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,5 @@ +<div style="clear:both; height:10px;"> </div> +<div style="text-align:center; display:block; clear:both;"><{$video.embedded}></div> +<h2>Description</h2> +<div style="text-align:justify; display:block; clear:both;"><{$video.description}></div> +<div style="text-align:left; display:block; clear:both;"><{include file="db:tag_bar.html"}></div> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_vids.html =================================================================== --- XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_vids.html (rev 0) +++ XoopsModules/vjmixes/releases/1.01/vjmixes/templates/vjmixes_vids.html 2009-09-18 00:45:06 UTC (rev 3664) @@ -0,0 +1,4 @@ +<{include file="db:vjmixes_category.html"}> +<div style="clear:both; height:10px;"> </div> +<h1>Random Video from <{$category}></h1> +<{include file="db:vjmixes_info.html"}> \ No newline at end of file Added: XoopsModules/vjmixes/releases/1.01/vjmixes/xoops_version.php =================================================================== --- Xo... [truncated message content] |