From: <txm...@us...> - 2015-02-14 15:51:55
|
Revision: 12978 http://sourceforge.net/p/xoops/svn/12978 Author: txmodxoops Date: 2015-02-14 15:51:50 +0000 (Sat, 14 Feb 2015) Log Message: ----------- New cpanel theme xnewage in beta tester Modified system module and core files Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/theme.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/default/default.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/xoops_lib/Frameworks/bootstrap/css/bootstrap-theme.min.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/xoops_lib/Frameworks/bootstrap/css/bootstrap.min.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/xoops_lib/Frameworks/bootstrap/js/bootstrap.min.js Added Paths: ----------- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/Frameworks/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/Frameworks/moduleclasses/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/Frameworks/moduleclasses/moduleadmin/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/Frameworks/moduleclasses/moduleadmin/moduleadmin.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/pagenav.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formbutton.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formbuttontray.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formcheckbox.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formdhtmltextarea.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formradio.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formselect.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formtextdateselect.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/simpleform.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/tableform.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/themeform.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/include/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/include/functions.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/admin/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/admin/preferences/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/admin/preferences/main.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/class/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/class/maintenance.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/class/menu.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/language/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/language/english/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/language/english/admin/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/language/english/admin/blocksadmin.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_avatars.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_banners.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_blocks.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_blocks_item.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_comments.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_groups.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_header.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_help.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_images.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_mailusers.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_maintenance.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_modules.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_modules_confirm.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_pagenav.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_preferences.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_smilies.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_templates.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_userrank.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/admin/system_users.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/templates/system_pagenav.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/bootstrap-theme.min.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/bootstrap.min.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/dark.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/dataTables.bootstrap.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/dataTables.responsive.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/font-awesome.min.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/metisMenu.min.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/morris.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/orange.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/silver.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/timeline.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/css/xnewage.css XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/FontAwesome.otf XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/fontawesome-webfont.eot XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/fontawesome-webfont.svg XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/fontawesome-webfont.ttf XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/fontawesome-webfont.woff XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/glyphicons-halflings-regular.eot XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/glyphicons-halflings-regular.svg XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/glyphicons-halflings-regular.ttf XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/glyphicons-halflings-regular.woff XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/glyphicons-halflings-regular.woff2 XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/fonts/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/avatar.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/avatar_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/banners.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/banners_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/blocks.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/blocks_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/check.gif XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/comments.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/comments_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/configuration.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/configuration_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/edituser.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/edituser_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/filemanager.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/filemanager_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/finduser.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/finduser_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/groups.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/groups_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/help.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/help_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/icon_options.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/icon_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/images.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/images_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/item.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/mailuser.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/mailuser_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/maintenance.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/maintenance_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/modules.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/modules_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/newuser.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/prefs.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/prefs_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/smilies.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/smilies_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/tpls.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/tpls_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/userrank.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/userrank_small.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/icons/waiting.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/logo.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/Sorting icons.psd XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/back_disabled.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/back_enabled.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/back_enabled_hover.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/favicon.ico XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/forward_disabled.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/forward_enabled.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/forward_enabled_hover.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/sort_asc.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/sort_asc_disabled.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/sort_both.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/sort_desc.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/img/tables/sort_desc_disabled.png XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/bootstrap.min.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/dataTables.bootstrap.min.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/dataTables.responsive.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/flot-data.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/formenu.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/holder.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/jquery.dataTables.min.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/menu.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/metisMenu.min.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/morris-data.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/morris.min.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/raphael-min.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/styleswitch.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/tabs.jquery.tools.min.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/tooltip.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/xnewage.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/assets/js/xnewage.min.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/english/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/english/admin.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/english/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/english/localsupport.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/italian/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/italian/admin.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/italian/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/language/italian/localsupport.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/menu.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/theme.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xnewage.php XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/accordion.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/footer.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/header.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/icons.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/index.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/metas.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/modules.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/navigation.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/page.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/scripts.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/modules/system/themes/xnewage/xotpl/tabs.html XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/xoops_lib/Frameworks/jquery/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/xoops_lib/Frameworks/jquery/jquery.min.js XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/xoops_lib/Frameworks/jquery/plugins/ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/xoops_lib/Frameworks/jquery/plugins/jquery-ui.min.js Removed Paths: ------------- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/xoops_lib/jquery/ Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/Frameworks/moduleclasses/moduleadmin/moduleadmin.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/Frameworks/moduleclasses/moduleadmin/moduleadmin.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/Frameworks/moduleclasses/moduleadmin/moduleadmin.php 2015-02-14 15:51:50 UTC (rev 12978) @@ -0,0 +1,583 @@ +<?php +/** + * Frameworks Module Admin + * + * 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 Grégory Mage (Aka Mage) + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Grégory Mage (Aka Mage) + */ + +class ModuleAdmin +{ + + var $_itemButton = array(); + var $_itemInfoBox = array(); + var $_itemInfoBoxLine = array(); + var $_itemConfigBoxLine = array(); + var $_obj = array(); + + /** + * Constructor + */ + function __construct() + { + //global $xoopsModule, $xoTheme; + global $xoopsModule; + $this->_obj =& $xoopsModule; + echo "<style type=\"text/css\" media=\"screen\">@import \"" . XOOPS_URL . "/Frameworks/moduleclasses/moduleadmin/css/admin.css\";</style>"; + //$xoTheme->addStylesheet("Frameworks/moduleclasses/moduleadmin/css/admin.css"); + $this -> loadLanguage(); + } + + /** + * @return array + */ + function getInfo() + { + $infoArray = array(); + if (!isset($infoArray) or empty($infoArray)) { + $infoArray = array(); + $infoArray['version'] = $this->getVersion(); + $infoArray['releasedate'] = $this->getReleaseDate(); + $infoArray['methods'] = $this->getClassMethods(); + } + + return $infoArray; + } + + /** + * Return the Module Admin class version number + * return string version + **/ + function getVersion() + { + /** + * version is rev of this class + */ + Include_once 'xoops_version.php'; + $version = XOOPS_FRAMEWORKS_MODULEADMIN_VERSION; + + return $version; + } + + /** + * Return the Module Admin class release date + * return string version + **/ + function getReleaseDate() + { + /** + * version is rev of this class + */ + Include_once 'xoops_version.php'; + $releasedate = XOOPS_FRAMEWORKS_MODULEADMIN_RELEASEDATE; + + return $releasedate; + } + + /** + * Return the available methods for the class + * + * @return array methods supported by this class + */ + function getClassMethods() + { + $myMethods = get_class_methods(__CLASS__); + + return $myMethods; + } + + //****************************************************************************************************************** + // loadLanguage + //****************************************************************************************************************** + // Loaf the language file. + //****************************************************************************************************************** + /** + * @return bool|mixed + */ + function loadLanguage() + { + $language = $GLOBALS['xoopsConfig']['language']; + if ( !file_exists($fileinc = XOOPS_ROOT_PATH . "/Frameworks/moduleclasses/moduleadmin/language/{$language}/main.php" )) { + if ( !file_exists($fileinc = XOOPS_ROOT_PATH . "/Frameworks/moduleclasses/moduleadmin/language/english/main.php" )) { + return false; + } + } + $ret = include_once $fileinc; + + return $ret; + } + //****************************************************************************************************************** + // renderMenuIndex + //****************************************************************************************************************** + // Creating a menu icon in the index + //****************************************************************************************************************** + /** + * @return string + */ + function renderMenuIndex() + { + $path = XOOPS_URL . "/modules/" . $this->_obj->getVar('dirname') . "/"; + $pathsystem = XOOPS_URL . "/modules/system/"; + $this->_obj->loadAdminMenu(); + $ret = "<div class=\"rmmenuicon\">\n"; + foreach (array_keys( $this->_obj->adminmenu) as $i) { + if ($this->_obj->adminmenu[$i]['link'] != 'admin/index.php') { + $ret .= "<a href=\"../" . $this->_obj->adminmenu[$i]['link'] . "\" title=\"" . (isset($this->_obj->adminmenu[$i]['desc']) ? $this->_obj->adminmenu[$i]['desc'] : '') . "\">"; + $ret .= "<img src=\"" . $path . $this->_obj->adminmenu[$i]['icon']. "\" alt=\"" . $this->_obj->adminmenu[$i]['title'] . "\" />"; + $ret .= "<span>" . $this->_obj->adminmenu[$i]['title'] . "</span>"; + $ret .= "</a>"; + } + } + if ($this->_obj->getInfo('help')) { + if (substr(XOOPS_VERSION, 0, 9) >= 'XOOPS 2.5') { + $ret .= "<a href=\"" . $pathsystem . "help.php?mid=" . $this->_obj->getVar('mid', 's') . "&" . $this->_obj->getInfo('help') . "\" title=\"" . _AM_SYSTEM_HELP . "\">"; + $ret .= "<img width=\"32px\" src=\"" . XOOPS_URL . "/Frameworks/moduleclasses/icons/32/help.png\" alt=\"" . _AM_SYSTEM_HELP . "\" /> "; + $ret .= "<span>" . _AM_SYSTEM_HELP . "</span>"; + $ret .= "</a>"; + } + } + $ret .= "</div>\n<div style=\"clear: both;\"></div>\n"; + + return $ret; + } + //****************************************************************************************************************** + // renderButton + //****************************************************************************************************************** + // Creating button + //****************************************************************************************************************** + /** + * @param string $position + * @param string $delimeter + * + * @return string + */ + function renderButton($position = "right", $delimeter = " ") + { + $path = XOOPS_URL . "/Frameworks/moduleclasses/icons/32/"; + switch ($position) { + default: + case "right": + $ret = "<div class=\"pull-right\">\n"; + break; + + case "left": + $ret = "<div class=\"pull-left\">\n"; + break; + + case "center": + $ret = "<div class=\"text-center\">\n"; + } + $ret .= "<div class=\"xo-buttons\">\n"; + foreach (array_keys( $this -> _itemButton) as $i) { + $ret .= "<a class='ui-corner-all' href='" . $this -> _itemButton[$i]['link'] . "' title='" . $this -> _itemButton[$i]['title'] . "'>"; + $ret .= "<img src='" . $path . $this -> _itemButton[$i]['icon'] . "' title='" . $this -> _itemButton[$i]['title'] . "' />" . $this -> _itemButton[$i]['title'] . ' ' . $this -> _itemButton[$i]['extra']; + $ret .= "</a>\n"; + $ret .= $delimeter; + } + $ret .= "</div>\n</div>\n"; + $ret .= "<br /> <br /><br />"; + + return $ret; + } + + /** + * @param $title + * @param $link + * @param string $icon + * @param string $extra + * + * @return bool + */ + function addItemButton($title, $link, $icon = 'add', $extra = '') + { + $ret['title'] = $title; + $ret['link'] = $link; + $ret['icon'] = $icon . '.png'; + $ret['extra'] = $extra; + $this -> _itemButton[] = $ret; + + return true; + + } + //****************************************************************************************************************** + // addConfigBoxLine + //****************************************************************************************************************** + // $value: value + // $type: type of config: 1- "default": Just a line with value. + // 2- "folder": check if this is an folder. + // 3- "chmod": check if this is the good chmod. + // For this type ("chmod"), the value is an array: array(path, chmod) + //****************************************************************************************************************** + /** + * @param string $value + * @param string $type + * + * @return bool + */ + function addConfigBoxLine($value = '', $type = 'default') + { + $line = ""; + $path = XOOPS_URL . "/Frameworks/moduleclasses/icons/16/"; + switch ($type) { + default: + case "default": + $line .= "<span>" . $value . "</span>"; + break; + + case "folder": + if (!is_dir($value)) { + $line .= "<span style='color : red; font-weight : bold;'>"; + $line .= "<img src='" . $path . "0.png' >"; + $line .= sprintf(_AM_MODULEADMIN_CONFIG_FOLDERKO, $value); + $line .= "</span>\n"; + } else { + $line .= "<span style='color : green;'>"; + $line .= "<img src='" . $path . "1.png' >"; + $line .= sprintf(_AM_MODULEADMIN_CONFIG_FOLDEROK, $value); + $line .= "</span>\n"; + } + break; + + case "chmod": + if (is_dir($value[0])) { + if (substr(decoct(fileperms($value[0])),2) != $value[1]) { + $line .= "<span style='color : red; font-weight : bold;'>"; + $line .= "<img src='" . $path . "0.png' >"; + $line .= sprintf(_AM_MODULEADMIN_CONFIG_CHMOD, $value[0], $value[1], substr(decoct(fileperms($value[0])),2)); + $line .= "</span>\n"; + } else { + $line .= "<span style='color : green;'>"; + $line .= "<img src='" . $path . "1.png' >"; + $line .= sprintf(_AM_MODULEADMIN_CONFIG_CHMOD, $value[0], $value[1], substr(decoct(fileperms($value[0])),2)); + $line .= "</span>\n"; + } + } + break; + } + $this -> _itemConfigBoxLine[] = $line; + + return true; + } + //****************************************************************************************************************** + // renderIndex + //****************************************************************************************************************** + // Creating an index + //****************************************************************************************************************** + /** + * @return string + */ + function renderIndex() + { + $ret = "<table class=\"table table-stripped\">\n<tr>\n"; + $ret .= "<td width=\"auto\">\n"; + $ret .= $this -> renderMenuIndex(); + $ret .= "</td>\n"; + $ret .= "<td width=\"auto\">\n"; + $ret .= $this -> renderInfoBox(); + $ret .= "</td>\n"; + $ret .= "</tr>\n"; + // If you use a config label + if ($this->_obj->getInfo('min_php') || $this->_obj->getInfo('min_xoops') || !empty($this -> _itemConfigBoxLine)) { + $ret .= "<tr>\n"; + $ret .= "<td colspan=\"2\">\n"; + $ret .= "<fieldset><legend class=\"label\">"; + $ret .= _AM_MODULEADMIN_CONFIG; + $ret .= "</legend>\n"; + + // php version + $path = XOOPS_URL . "/Frameworks/moduleclasses/icons/16/"; + if ($this->_obj->getInfo('min_php')) { + if (version_compare(phpversion(), $this->_obj->getInfo('min_php'), '<')) { + $ret .= "<span style='color : red; font-weight : bold;'><img src='" . $path . "0.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_PHP, $this->_obj->getInfo('min_php'), phpversion()) . "</span>\n"; + } else { + $ret .= "<span style='color : green;'><img src='" . $path . "1.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_PHP, $this->_obj->getInfo('min_php'), phpversion()) . "</span>\n"; + } + $ret .= "<br />"; + } + + // Database version + $path = XOOPS_URL . "/Frameworks/moduleclasses/icons/16/"; + $dbarray=$this->_obj->getInfo('min_db'); + + if ($dbarray[XOOPS_DB_TYPE]) { + // changes from redheadedrod to use connector specific version info + switch (XOOPS_DB_TYPE) { + // server should be the same in both cases + case "mysql": + case "mysqli": + global $xoopsDB; + $dbCurrentVersion= $xoopsDB->getServerVersion(); + break; + //case "pdo": + // global $xoopsDB; + // $dbCurrentVersion = $xoopsDB->getAttribute(PDO::ATTR_SERVER_VERSION); + // break; + default: // don't really support anything other than mysql + $dbCurrentVersion = '0'; + break; + } + $currentVerParts = explode('.', (string) $dbCurrentVersion); + $iCurrentVerParts = array_map('intval', $currentVerParts); + $dbRequiredVersion = $dbarray[XOOPS_DB_TYPE]; + $reqVerParts = explode('.', (string) $dbRequiredVersion); + $iReqVerParts = array_map('intval', $reqVerParts); + $icount = $j = count($iReqVerParts); + $reqVer = $curVer = 0; + for ($i=0; $i<$icount; $i++) { + $j--; + $reqVer += $iReqVerParts[$i] * pow(10, $j); + if (isset($iCurrentVerParts[$i])) { + $curVer += $iCurrentVerParts[$i] * pow(10, $j); + } else { + $curVer = $curVer * pow(10, $j); + } + } + if ($reqVer > $curVer) { + $ret .= "<span style='color : red; font-weight : bold;'><img src='" . $path . "0.png' >" . sprintf(XOOPS_DB_TYPE.' '._AM_MODULEADMIN_CONFIG_DB, $dbRequiredVersion, $dbCurrentVersion) . "</span><br />\n"; + } else { + $ret .= "<span style='color : green;'><img src='" . $path . "1.png' >" . sprintf(strtoupper(XOOPS_DB_TYPE).' '._AM_MODULEADMIN_CONFIG_DB, $dbRequiredVersion, $dbCurrentVersion) . "</span><br />\n"; + } + } + + // xoops version + if ($this->_obj->getInfo('min_xoops')) { + if (substr(XOOPS_VERSION, 6, strlen(XOOPS_VERSION)-6) < $this->_obj->getInfo('min_xoops')) { + $ret .= "<span style='color : red; font-weight : bold;'><img src='" . $path . "0.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_XOOPS, $this->_obj->getInfo('min_xoops'), substr(XOOPS_VERSION, 6, strlen(XOOPS_VERSION)-6)) . "</span>\n"; + } else { + $ret .= "<span style='color : green;'><img src='" . $path . "1.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_XOOPS, $this->_obj->getInfo('min_xoops'), substr(XOOPS_VERSION, 6, strlen(XOOPS_VERSION)-6)) . "</span>\n"; + } + $ret .= "<br />"; + } + + // ModuleAdmin version + if ($this->_obj->getInfo('min_admin')) { + if ($this->getVersion() < $this->_obj->getInfo('min_admin')) { + $ret .= "<span style='color : red; font-weight : bold;'><img src='" . $path . "0.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_ADMIN, $this->_obj->getInfo('min_admin'), $this->getVersion()) . "</span>\n"; + } else { + $ret .= "<span style='color : green;'><img src='" . $path . "1.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_ADMIN, $this->_obj->getInfo('min_admin'), $this->getVersion()) . "</span>\n"; + } + $ret .= "<br />"; + } + if (!empty($this -> _itemConfigBoxLine)) { + foreach (array_keys( $this -> _itemConfigBoxLine) as $i) { + $ret .= $this -> _itemConfigBoxLine[$i]; + $ret .= "<br />"; + } + } + $ret .= "</fieldset>\n"; + $ret .= "</td>\n"; + $ret .= "</tr>\n"; + } + $ret .= "</table>\n"; + + return $ret; + } + //****************************************************************************************************************** + // addInfoBox + //****************************************************************************************************************** + // $title: title of an InfoBox + //****************************************************************************************************************** + /** + * @param $title + * + * @return bool + */ + function addInfoBox($title) + { + $ret['title'] = $title; + $this -> _itemInfoBox[] = $ret; + + return true; + } + //****************************************************************************************************************** + // addInfoBoxLine + //****************************************************************************************************************** + // $label: title of InfoBox Line + // $text: + // $type: type of config: 1- "default": Just a line with value. + // 2- "information": check if this is an folder. + // 3- "chmod": check if this is the good chmod. + // For this type ("chmod"), the value is an array: array(path, chmod) + //****************************************************************************************************************** + /** + * @param $label + * @param $text + * @param string $value + * @param string $color + * @param string $type + * + * @return bool + */ + function addInfoBoxLine($label, $text, $value = '', $color = 'inherit', $type = 'default') + { + $ret['label'] = $label; + $line = ""; + switch ($type) + { + default: + case "default": + $line .= sprintf($text, "<span style='color : " . $color . "; font-weight : bold;'>" . $value . "</span>"); + break; + + case "information": + $line .= $text; + break; + } + $ret['line'] = $line; + $this -> _itemInfoBoxLine[] = $ret; + + return true; + } + + /** + * @return string + */ + function renderInfoBox() + { + $ret = ""; + foreach (array_keys( $this -> _itemInfoBox) as $i) { + $ret .= "<fieldset><legend class=\"label\">"; + $ret .= $this -> _itemInfoBox[$i]['title']; + $ret .= "</legend>\n"; + foreach (array_keys( $this -> _itemInfoBoxLine) as $k) { + if ($this -> _itemInfoBoxLine[$k]['label'] == $this -> _itemInfoBox[$i]['title']) { + $ret .= $this -> _itemInfoBoxLine[$k]['line']; + $ret .= "<br />"; + } + } + $ret .= "</fieldset>\n"; + $ret .= "<br/>\n"; + } + + return $ret; + } + + /** + * @param string $paypal + * @param bool $logo_xoops + * + * @return string + */ + function renderAbout($paypal = '', $logo_xoops = true) + { + $path = XOOPS_URL . "/Frameworks/moduleclasses/icons/32/"; + + $ret = "<table class=\"table table-bordered\">\n<tr>\n"; + $ret .= "<td width=\"50%\">\n"; + $date = explode('/',$this->_obj->getInfo('release_date')); + $author = explode(',',$this->_obj->getInfo('author')); + $nickname = explode(',',$this->_obj->getInfo('nickname')); + $release_date = formatTimestamp(mktime(0, 0, 0, $date[1], $date[2], $date[0]), 's'); + $module_info = '<div id="about"><label>' . _AM_MODULEADMIN_ABOUT_DESCRIPTION . '</label><text>' . $this->_obj->getInfo("description") . '</text><br /> + <label>' . _AM_MODULEADMIN_ABOUT_UPDATEDATE . '</label><text class="bold">' . formatTimestamp($this->_obj->getVar("last_update"),"m") . '</text><br /> + <label>' . _AM_MODULEADMIN_ABOUT_MODULESTATUS . '</label><text>' . $this->_obj->getInfo("module_status") . '</text><br /> + <label>' . _AM_MODULEADMIN_ABOUT_WEBSITE . '</label><text><a class="tooltip" href="http://' . $this->_obj->getInfo("module_website_url") . '" rel="external" title="'. $this->_obj->getInfo("module_website_name") . ' - ' . $this->_obj->getInfo("module_website_url") . '"> + ' . $this->_obj->getInfo("module_website_name") . '</a></text></div>'; + $ret .= "<table class=\"table table-bordered\">\n<tr>\n<td width=\"100px\">\n"; + $ret .= "<img src='" . XOOPS_URL . "/modules/" . $this->_obj->getVar('dirname') . "/" . $this->_obj->getInfo('image') . "' alt='" . $this->_obj->getVar('name') . "' style='float: left; margin-right: 10px;' />\n"; + $ret .= "</td><td>\n"; + $ret .= "<div style='margin-top: 1px; margin-bottom: 4px; font-size: 18px; line-height: 18px; color: #2F5376; font-weight: bold;'>\n"; + $ret .= $this->_obj->getInfo('name') . " " . $this->_obj->getInfo('version') . " " . $this->_obj->getInfo('module_status') . " (" . $release_date . ")\n"; + $ret .= "<br />\n"; + $ret .= "</div>\n"; + $ret .= "<div style='line-height: 16px; font-weight: bold;'>\n"; + $ret .= "by "; + foreach (array_keys($author) as $i) { + $ret .= $author[$i]; + if (isset($nickname[$i]) && $nickname[$i] !='') { + $ret .= " (" . $nickname[$i] . "), "; + } else { + $ret .= ", "; + } + } + $ret = substr($ret,0,-2); + $ret .= "</div>\n"; + $ret .= "<div style='line-height: 16px;'>\n"; + $ret.= "<a href=\"http://" . $this->_obj->getInfo('license_url'). "\" target=\"_blank\" >" . $this->_obj->getInfo('license'). "</a>\n"; + $ret .= "<br />\n"; + $ret .= "<a href=\"http://" . $this->_obj->getInfo('website') . "\" target=\"_blank\" >" . $this->_obj->getInfo('website') . "</a>\n"; + $ret .= "<br />\n"; + $ret .= "<br />\n"; + if ($paypal != '') { + $ret .= '<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> + <input type="hidden" name="cmd" value="_s-xclick"> + <input type="hidden" name="hosted_button_id" value="' . $paypal . '"> + <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> + <img alt="" border="0" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" width="1" height="1"> + </form>'; + } + $ret .= "</div>\n"; + $ret .= "</td>\n</tr>\n</table>\n"; + $this -> addInfoBox(_AM_MODULEADMIN_ABOUT_MODULEINFO); + $this -> addInfoBoxLine(_AM_MODULEADMIN_ABOUT_MODULEINFO, $module_info, '', '', 'information'); + $ret .= $this -> renderInfoBox(); + $ret .= "</td>\n"; + $ret .= "<td width=\"50%\">\n"; + $ret .= "<fieldset><legend class=\"label\">\n"; + $ret .= _AM_MODULEADMIN_ABOUT_CHANGELOG; + $ret .= "</legend><br/>\n"; + $ret .= "<div class=\"txtchangelog\">\n"; + $language = $GLOBALS['xoopsConfig']['language']; + if ( !is_file( XOOPS_ROOT_PATH . "/modules/" . $this->_obj->getVar("dirname") . "/language/" . $language . "/changelog.txt" ) ) { + $language = 'english'; + } + $language = empty($language) ? $GLOBALS['xoopsConfig']['language'] : $language; + $file = XOOPS_ROOT_PATH. "/modules/" . $this->_obj->getVar("dirname") . "/language/" . $language . "/changelog.txt"; + if ( is_readable( $file ) ) { + $ret .= utf8_encode(implode("<br />", file( $file ))) . "\n"; + } else { + $file = XOOPS_ROOT_PATH. "/modules/" . $this->_obj->getVar("dirname") . "/docs/changelog.txt"; + if ( is_readable( $file ) ) { + $ret .= utf8_encode(implode("<br />", file( $file ))) . "\n"; + } + } + $ret .= "</div>\n"; + $ret .= "</fieldset>\n"; + $ret .= "</td>\n"; + $ret .= "</tr>\n"; + $ret .= "</table>\n"; + if ($logo_xoops == true) { + $ret .= "<div align=\"center\">"; + $ret .= "<a href=\"http://www.xoops.org\" target=\"_blank\"><img src=\"" . $path . "xoopsmicrobutton.gif\" alt=\"XOOPS\" title=\"XOOPS\"></a>"; + $ret .= "</div>"; + } + + return $ret; + } + + /** + * @param string $menu + * + * @return string + */ + function addNavigation($menu = '') + { + $ret = ""; + $navigation = ""; + $path = XOOPS_URL . "/modules/" . $this->_obj->getVar('dirname') . "/"; + $this->_obj->loadAdminMenu(); + foreach (array_keys( $this->_obj->adminmenu) as $i) { + if ($this->_obj->adminmenu[$i]['link'] == "admin/" . $menu) { + $navigation .= $this->_obj->adminmenu[$i]['title'] . " | "; + $ret = "<div class=\"CPbigTitle\" style=\"background-image: url(" . $path . $this->_obj->adminmenu[$i]['icon'] . "); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"> + <strong>" . $this->_obj->adminmenu[$i]['title'] . "</strong></div><br />"; + } else { + $navigation .= "<a href = '../" . $this->_obj->adminmenu[$i]['link'] . "'>" . $this->_obj->adminmenu[$i]['title'] . "</a> | "; + } + } + if (substr(XOOPS_VERSION, 0, 9) < 'XOOPS 2.5') { + $navigation .= "<a href = '../../system/admin.php?fct=preferences&op=showmod&mod=" . $this->_obj->getVar('mid') . "'>" . _MI_SYSTEM_ADMENU6 . "</a>"; + $ret = $navigation . "<br /><br />" . $ret; + } + + return $ret; + } +} Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/pagenav.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/pagenav.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/pagenav.php 2015-02-14 15:51:50 UTC (rev 12978) @@ -0,0 +1,218 @@ +<?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 page navigation + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package class + * @since 2.5.6 + * @author Kazumi Ono (http://www.myweb.ne.jp/, http://jp.xoops.org/) + * @author Gregory Mage (AKA Mage) + * @version $Id: pagenav.php 11791 2013-06-28 10:13:50Z timgno $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class XoopsPageNav +{ + /** + * *#@+ + * + * @access private + */ + /** + * @var int + */ + private $total; + + /** + * @var int + */ + private $perpage; + + /** + * @var int + */ + private $current; + + /** + * @var string + */ + private $url; + /** + * *#@- + */ + + /** + * Constructor + * + * @param int $total_items Total number of items + * @param int $items_perpage Number of items per page + * @param int $current_start First item on the current page + * @param string $start_name Name for "start" or "offset" + * @param string $extra_arg Additional arguments to pass in the URL + */ + public function __construct($total_items, $items_perpage, $current_start, $start_name = "start", $extra_arg = "") + { + $this->total = intval($total_items); + $this->perpage = intval($items_perpage); + $this->current = intval($current_start); + $this->extra = $extra_arg; + if ($extra_arg != '' && (substr($extra_arg, - 5) != '&' || substr($extra_arg, - 1) != '&')) { + $this->extra = '&' . $extra_arg; + } + $this->url = $_SERVER['PHP_SELF'] . '?' . trim($start_name) . '='; + } + + /** + * Create text navigation + * + * @param integer $offset + * @param string $size of pagination(Value: 'large', '', 'small', 'mini') + * @param string $align of pagination(Value: 'right', 'centered') + * @param string $prev_text text for previous + * @param string $next_text text for next + * @return string + */ + public function renderNav($offset = 4, $size = "", $align = "right", $prev_text = "«", $next_text = "»") + { + $xoopsTpl = new XoopsTpl(); + $ret = ''; + $nav = array(); + if ($this->total <= $this->perpage) { + return $ret; + } + if(($this->total != 0) && ($this->perpage != 0)) { + $total_pages = ceil($this->total / $this->perpage); + if ($total_pages > 1) { + $prev = $this->current - $this->perpage; + if ($prev >= 0) { + $xoopsTpl->assign('prev_text', $prev_text); + $xoopsTpl->assign('prev_url', $this->url . $prev . $this->extra); + } + $last = 0; + $last_text = ''; + $last_url = ''; + $first = 0; + $first_text = ''; + $first_url = ''; + $counter = 1; + $current_page = intval(floor(($this->current + $this->perpage) / $this->perpage)); + while ($counter <= $total_pages) { + if ($counter == $current_page) { + $nav['text'] = $counter; + $nav['url'] = ''; + $nav['active'] = 0; + } elseif (($counter > $current_page - $offset && $counter < $current_page + $offset) || $counter == 1 || $counter == $total_pages) { + if ($counter == $total_pages && $current_page < $total_pages - $offset) { + $nav['text'] = '...'; + $nav['url'] = ''; + $nav['active'] = 0; + $last = 1; + $last_text = $counter; + $last_url = $this->url . (($counter - 1) * $this->perpage) . $this->extra; + } else { + $nav['text'] = $counter; + $nav['url'] = $this->url . (($counter - 1) * $this->perpage) . $this->extra; + $nav['active'] = 1; + } + if ($counter == 1 && $current_page > 1 + $offset){ + $nav['text'] = '...'; + $nav['url'] = ''; + $nav['active'] = 0; + $first = 1; + $first_text = $counter; + $first_url = $this->url . (($counter - 1) * $this->perpage) . $this->extra; + } + } + $xoopsTpl->append_by_ref('xo_nav', $nav); + unset($nav); + $counter ++; + } + $xoopsTpl->assign('last', $last); + $xoopsTpl->assign('last_text', $last_text); + $xoopsTpl->assign('last_url', $last_url); + $xoopsTpl->assign('first', $first); + $xoopsTpl->assign('first_text', $first_text); + $xoopsTpl->assign('first_url', $first_url); + + $next = $this->current + $this->perpage; + if ($this->total > $next) { + $xoopsTpl->assign('next_text', $next_text); + $xoopsTpl->assign('next_url', $this->url . $next . $this->extra); + } + } + } + if ($size != ''){ + $size = ' pagination-' . $size; + } + $xoopsTpl->assign('size', $size); + $xoopsTpl->assign('align', ' pagination-' . $align); + $xoopsTpl->assign('pagination_nav', true); + $ret = $xoopsTpl->fetch('db:system_pagenav.html'); + $xoopsTpl->clear_assign('xo_nav'); + return $ret; + } + + /** + * Create a navigational dropdown list + * + * @param boolean $showbutton Show the "Go" button? + * @return string|false + */ + public function renderSelect($align = "right", $showbutton = false) + { + $xoopsTpl = new XoopsTpl(); + $ret = ''; + if ($this->total < $this->perpage) { + return $ret; + } + $total_pages = ceil($this->total / $this->perpage); + if ($total_pages > 1) { + $counter = 1; + $current_page = intval(floor(($this->current + $this->perpage) / $this->perpage)); + while ($counter <= $total_pages) { + $select['text'] = $counter; + $select['value'] = $this->url . (($counter - 1) * $this->perpage) . $this->extra; + if ($counter == $current_page) { + $select['selected'] = 1; + } else { + $select['selected'] = 0; + } + $xoopsTpl->append_by_ref('xo_select', $select); + unset($select); + $counter ++; + } + } + $xoopsTpl->assign('onchange', "location=this.options[this.options.selectedIndex].value;"); + $xoopsTpl->assign('pagination_select', true); + $xoopsTpl->assign('showbutton', $showbutton); + $xoopsTpl->assign('align', ' pagination-' . $align); + $ret = $xoopsTpl->fetch('db:system_pagenav.html'); + $xoopsTpl->clear_assign('xo_select'); + return $ret; + } + + /** + * Create navigation with images + * + * @param integer $offset + * @return string|false + */ + public function renderImageNav($offset = 4) + { + $xoopsTpl = new XoopsTpl(); + $xoopsTpl->deprecated('renderImageNav() is deprecated since 2.6.0. Please use renderNav()'); + return $this->renderNav($offset); + } +} \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/theme.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/theme.php 2015-02-14 10:36:50 UTC (rev 12977) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/theme.php 2015-02-14 15:51:50 UTC (rev 12978) @@ -9,14 +9,14 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * @copyright (c) 2000-2014 XOOPS Project (www.xoops.org) + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @author Skalpa Keo <sk...@xo...> * @author Taiwen Jiang <ph...@us...> * @since 2.3.0 * @package kernel * @subpackage xos_opal_Theme - * @version $Id: theme.php 12666 2014-06-30 10:02:07Z beckmi $ + * @version $Id: theme.php 12537 2014-05-19 14:19:33Z beckmi $ */ defined('XOOPS_ROOT_PATH') || die('Restricted access'); Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formbutton.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formbutton.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formbutton.php 2015-02-14 15:51:50 UTC (rev 12978) @@ -0,0 +1,117 @@ +<?php +/** + * XOOPS form element of button + * + * 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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @subpackage form + * @since 2.0.0 + * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/ + * @version $Id: formbutton.php 12537 2014-05-19 14:19:33Z beckmi $ + */ +defined('XOOPS_ROOT_PATH') || die("XOOPS root path not defined"); + +xoops_load('XoopsFormElement'); + +/** + * + * + * @package kernel + * @subpackage form + * + * @author Kazumi Ono <on...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ +/** + * A button + * + * @author Kazumi Ono <on...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + * + * @package kernel + * @subpackage form + */ +class XoopsFormButton extends XoopsFormElement +{ + + /** + * Value + * @var string + * @access private + */ + var $_value; + + /** + * Type of the button. This could be either "button", "submit", or "reset" + * @var string + * @access private + */ + var $_type; + + /** + * Constructor + * + * @param string $caption Caption + * @param string $name + * @param string $value + * @param string $type Type of the button. Potential values: "button", "submit", or "reset" + */ + function XoopsFormButton($caption, $name, $value = "", $type = "button") + { + $this->setCaption($caption); + $this->setName($name); + $this->_type = $type; + $this->setValue($value); + } + + /** + * Get the initial value + * + * @param bool $encode To sanitizer the text? + * @return string + */ + function getValue($encode = false) + { + return $encode ? htmlspecialchars($this->_value, ENT_QUOTES) : $this->_value; + } + + /** + * Set the initial value + * + * @param $value + * + * @return string + */ + function setValue($value) + { + $this->_value = $value; + } + + /** + * Get the type + * + * @return string + */ + function getType() + { + return in_array( strtolower($this->_type), array("button", "submit", "reset") ) ? $this->_type : "button"; + } + + /** + * prepare HTML for output + * + * @return string + */ + function render() + { + return "<input type='" . $this->getType() . "' class='btn btn-default' name='" . $this->getName() . "' id='" . $this->getName() . "' value='" . $this->getValue() . "' title='" . $this->getValue() . "'" . $this->getExtra() . " />"; + } +} Added: XoopsCore/branches/2.5.x/2.5.8_timgno/htdocs/class/xoopsform/formbuttontray.php ======================================... [truncated message content] |