@@ -222,7 +222,7 @@ |
||
| 222 | 222 | return $forum_moderators; |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - $sql = 'SELECT forum_moderator FROM ' . $GLOBALS['xoopsDB']->prefix('newbb_forums'); |
|
| 225 | + $sql = 'SELECT forum_moderator FROM '.$GLOBALS['xoopsDB']->prefix('newbb_forums'); |
|
| 226 | 226 | if ($result = $GLOBALS['xoopsDB']->query($sql)) { |
| 227 | 227 | while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result))) { |
| 228 | 228 | if (empty($myrow['forum_moderator'])) { |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $forumImage['facebook'] = $forumImage['twitter'] = $forumImage['linkedin'] = $forumImage['googleplus'] = $forumImage['stumbleupon'] = $forumImage['friendfeed'] = $forumImage['digg'] = $forumImage['reddit'] = $forumImage['delicious'] = $forumImage['technorati'] = $forumImage['wong'] = $forumImage['anonym'] = $forumImage['more'] = $forumImage['less'] = 'icon'; |
| 49 | 49 | |
| 50 | 50 | for ($i = 1; $i <= 5; ++$i) { |
| 51 | - $forumImage['rate' . $i] = 'icon'; |
|
| 51 | + $forumImage['rate'.$i] = 'icon'; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | $forumImage['p_delete'] = $forumImage['p_reply'] = $forumImage['p_quote'] = $forumImage['p_edit'] = $forumImage['p_report'] = |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * @package module::newbb |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -include __DIR__ . '/preloads/autoloader.php'; |
|
| 12 | +include __DIR__.'/preloads/autoloader.php'; |
|
| 13 | 13 | |
| 14 | 14 | $moduleDirName = basename(__DIR__); |
| 15 | 15 | $modversion = [ |
@@ -45,24 +45,24 @@ discard block |
||
| 45 | 45 | 'sqlfile' => ['mysql' => 'sql/mysql.sql'], |
| 46 | 46 | // ------------------- Tables ---------------------------- |
| 47 | 47 | 'tables' => [ |
| 48 | - $moduleDirName . '_' . 'archive', |
|
| 49 | - $moduleDirName . '_' . 'categories', |
|
| 50 | - $moduleDirName . '_' . 'votedata', |
|
| 51 | - $moduleDirName . '_' . 'forums', |
|
| 52 | - $moduleDirName . '_' . 'posts', |
|
| 53 | - $moduleDirName . '_' . 'posts_text', |
|
| 54 | - $moduleDirName . '_' . 'topics', |
|
| 55 | - $moduleDirName . '_' . 'online', |
|
| 56 | - $moduleDirName . '_' . 'digest', |
|
| 57 | - $moduleDirName . '_' . 'report', |
|
| 58 | - $moduleDirName . '_' . 'attachments', |
|
| 59 | - $moduleDirName . '_' . 'moderates', |
|
| 60 | - $moduleDirName . '_' . 'reads_forum', |
|
| 61 | - $moduleDirName . '_' . 'reads_topic', |
|
| 62 | - $moduleDirName . '_' . 'type', |
|
| 63 | - $moduleDirName . '_' . 'type_forum', |
|
| 64 | - $moduleDirName . '_' . 'stats', |
|
| 65 | - $moduleDirName . '_' . 'user_stats' |
|
| 48 | + $moduleDirName.'_'.'archive', |
|
| 49 | + $moduleDirName.'_'.'categories', |
|
| 50 | + $moduleDirName.'_'.'votedata', |
|
| 51 | + $moduleDirName.'_'.'forums', |
|
| 52 | + $moduleDirName.'_'.'posts', |
|
| 53 | + $moduleDirName.'_'.'posts_text', |
|
| 54 | + $moduleDirName.'_'.'topics', |
|
| 55 | + $moduleDirName.'_'.'online', |
|
| 56 | + $moduleDirName.'_'.'digest', |
|
| 57 | + $moduleDirName.'_'.'report', |
|
| 58 | + $moduleDirName.'_'.'attachments', |
|
| 59 | + $moduleDirName.'_'.'moderates', |
|
| 60 | + $moduleDirName.'_'.'reads_forum', |
|
| 61 | + $moduleDirName.'_'.'reads_topic', |
|
| 62 | + $moduleDirName.'_'.'type', |
|
| 63 | + $moduleDirName.'_'.'type_forum', |
|
| 64 | + $moduleDirName.'_'.'stats', |
|
| 65 | + $moduleDirName.'_'.'user_stats' |
|
| 66 | 66 | ], |
| 67 | 67 | // ------------------- Admin Menu ------------------- |
| 68 | 68 | 'system_menu' => 1, |
@@ -603,7 +603,7 @@ discard block |
||
| 603 | 603 | 'description' => '_MI_NEWBB_ANONYMOUS_PRE_DESC', |
| 604 | 604 | 'formtype' => 'textbox', |
| 605 | 605 | 'valuetype' => 'text', |
| 606 | - 'default' => $GLOBALS['xoopsConfig']['anonymous'] . '-' |
|
| 606 | + 'default' => $GLOBALS['xoopsConfig']['anonymous'].'-' |
|
| 607 | 607 | ]; |
| 608 | 608 | $modversion['config'][] = [ |
| 609 | 609 | 'name' => 'allow_require_reply', |
@@ -730,7 +730,7 @@ discard block |
||
| 730 | 730 | 'item_name' => 'topic_id', |
| 731 | 731 | 'allow_bookmark' => 1, |
| 732 | 732 | ]; |
| 733 | -$modversion['notification']['category'][] = [ |
|
| 733 | +$modversion['notification']['category'][] = [ |
|
| 734 | 734 | 'name' => 'forum', |
| 735 | 735 | 'title' => _MI_NEWBB_FORUM_NOTIFY, |
| 736 | 736 | 'description' => _MI_NEWBB_FORUM_NOTIFYDSC, |
@@ -738,13 +738,13 @@ discard block |
||
| 738 | 738 | 'item_name' => 'forum', |
| 739 | 739 | 'allow_bookmark' => 1, |
| 740 | 740 | ]; |
| 741 | -$modversion['notification']['category'][] = [ |
|
| 741 | +$modversion['notification']['category'][] = [ |
|
| 742 | 742 | 'name' => 'global', |
| 743 | 743 | 'title' => _MI_NEWBB_GLOBAL_NOTIFY, |
| 744 | 744 | 'description' => _MI_NEWBB_GLOBAL_NOTIFYDSC, |
| 745 | 745 | 'subscribe_from' => 'index.php', |
| 746 | 746 | ]; |
| 747 | -$modversion['notification']['event'][] = [ |
|
| 747 | +$modversion['notification']['event'][] = [ |
|
| 748 | 748 | 'name' => 'new_post', |
| 749 | 749 | 'category' => 'thread', |
| 750 | 750 | 'title' => _MI_NEWBB_THREAD_NEWPOST_NOTIFY, |
@@ -753,7 +753,7 @@ discard block |
||
| 753 | 753 | 'mail_template' => 'thread_newpost_notify', |
| 754 | 754 | 'mail_subject' => _MI_NEWBB_THREAD_NEWPOST_NOTIFYSBJ, |
| 755 | 755 | ]; |
| 756 | -$modversion['notification']['event'][] = [ |
|
| 756 | +$modversion['notification']['event'][] = [ |
|
| 757 | 757 | 'name' => 'new_thread', |
| 758 | 758 | 'category' => 'forum', |
| 759 | 759 | 'title' => _MI_NEWBB_FORUM_NEWTHREAD_NOTIFY, |
@@ -762,7 +762,7 @@ discard block |
||
| 762 | 762 | 'mail_template' => 'forum_newthread_notify', |
| 763 | 763 | 'mail_subject' => _MI_NEWBB_FORUM_NEWTHREAD_NOTIFYSBJ, |
| 764 | 764 | ]; |
| 765 | -$modversion['notification']['event'][] = [ |
|
| 765 | +$modversion['notification']['event'][] = [ |
|
| 766 | 766 | 'name' => 'new_forum', |
| 767 | 767 | 'category' => 'global', |
| 768 | 768 | 'title' => _MI_NEWBB_GLOBAL_NEWFORUM_NOTIFY, |
@@ -771,7 +771,7 @@ discard block |
||
| 771 | 771 | 'mail_template' => 'global_newforum_notify', |
| 772 | 772 | 'mail_subject' => _MI_NEWBB_GLOBAL_NEWFORUM_NOTIFYSBJ, |
| 773 | 773 | ]; |
| 774 | -$modversion['notification']['event'][] = [ |
|
| 774 | +$modversion['notification']['event'][] = [ |
|
| 775 | 775 | 'name' => 'new_post', |
| 776 | 776 | 'category' => 'global', |
| 777 | 777 | 'title' => _MI_NEWBB_GLOBAL_NEWPOST_NOTIFY, |
@@ -780,7 +780,7 @@ discard block |
||
| 780 | 780 | 'mail_template' => 'global_newpost_notify', |
| 781 | 781 | 'mail_subject' => _MI_NEWBB_GLOBAL_NEWPOST_NOTIFYSBJ, |
| 782 | 782 | ]; |
| 783 | -$modversion['notification']['event'][] = [ |
|
| 783 | +$modversion['notification']['event'][] = [ |
|
| 784 | 784 | 'name' => 'new_post', |
| 785 | 785 | 'category' => 'forum', |
| 786 | 786 | 'title' => _MI_NEWBB_FORUM_NEWPOST_NOTIFY, |
@@ -789,7 +789,7 @@ discard block |
||
| 789 | 789 | 'mail_template' => 'forum_newpost_notify', |
| 790 | 790 | 'mail_subject' => _MI_NEWBB_FORUM_NEWPOST_NOTIFYSBJ, |
| 791 | 791 | ]; |
| 792 | -$modversion['notification']['event'][] = [ |
|
| 792 | +$modversion['notification']['event'][] = [ |
|
| 793 | 793 | 'name' => 'new_fullpost', |
| 794 | 794 | 'category' => 'global', |
| 795 | 795 | 'admin_only' => 1, |
@@ -799,7 +799,7 @@ discard block |
||
| 799 | 799 | 'mail_template' => 'global_newfullpost_notify', |
| 800 | 800 | 'mail_subject' => _MI_NEWBB_GLOBAL_NEWFULLPOST_NOTIFYSBJ, |
| 801 | 801 | ]; |
| 802 | -$modversion['notification']['event'][] = [ |
|
| 802 | +$modversion['notification']['event'][] = [ |
|
| 803 | 803 | 'name' => 'digest', |
| 804 | 804 | 'category' => 'global', |
| 805 | 805 | 'title' => _MI_NEWBB_GLOBAL_DIGEST_NOTIFY, |
@@ -808,7 +808,7 @@ discard block |
||
| 808 | 808 | 'mail_template' => 'global_digest_notify', |
| 809 | 809 | 'mail_subject' => _MI_NEWBB_GLOBAL_DIGEST_NOTIFYSBJ, |
| 810 | 810 | ]; |
| 811 | -$modversion['notification']['event'][] = [ |
|
| 811 | +$modversion['notification']['event'][] = [ |
|
| 812 | 812 | 'name' => 'new_fullpost', |
| 813 | 813 | 'category' => 'forum', |
| 814 | 814 | 'admin_only' => 1, |
@@ -28,6 +28,6 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public static function eventCoreIncludeCommonEnd($args) |
| 30 | 30 | { |
| 31 | - include __DIR__ . '/autoloader.php'; |
|
| 31 | + include __DIR__.'/autoloader.php'; |
|
| 32 | 32 | } |
| 33 | 33 | } |
@@ -3,12 +3,12 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * @see http://www.php-fig.org/psr/psr-4/examples/ |
| 5 | 5 | */ |
| 6 | -spl_autoload_register(function ($class) { |
|
| 6 | +spl_autoload_register(function($class) { |
|
| 7 | 7 | // project-specific namespace prefix |
| 8 | - $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__))); |
|
| 8 | + $prefix = 'XoopsModules\\'.ucfirst(basename(dirname(__DIR__))); |
|
| 9 | 9 | |
| 10 | 10 | // base directory for the namespace prefix |
| 11 | - $base_dir = __DIR__ . '/../class/'; |
|
| 11 | + $base_dir = __DIR__.'/../class/'; |
|
| 12 | 12 | |
| 13 | 13 | // does the class use the namespace prefix? |
| 14 | 14 | $len = strlen($prefix); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | // replace the namespace prefix with the base directory, replace namespace |
| 24 | 24 | // separators with directory separators in the relative class name, append |
| 25 | 25 | // with .php |
| 26 | - $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; |
|
| 26 | + $file = $base_dir.str_replace('\\', '/', $relative_class).'.php'; |
|
| 27 | 27 | |
| 28 | 28 | // if the file exists, require it |
| 29 | 29 | if (file_exists($file)) { |
@@ -41,77 +41,77 @@ |
||
| 41 | 41 | $adminmenu[] = [ |
| 42 | 42 | 'title' => _MI_NEWBB_ADMENU_INDEX, |
| 43 | 43 | 'link' => 'admin/index.php', |
| 44 | - 'icon' => $pathIcon32 . 'home.png' |
|
| 44 | + 'icon' => $pathIcon32.'home.png' |
|
| 45 | 45 | ]; |
| 46 | 46 | |
| 47 | 47 | $adminmenu[] = [ |
| 48 | 48 | 'title' => _MI_NEWBB_ADMENU_CATEGORY, |
| 49 | 49 | 'link' => 'admin/admin_cat_manager.php', |
| 50 | - 'icon' => $pathIcon32 . 'category.png' |
|
| 50 | + 'icon' => $pathIcon32.'category.png' |
|
| 51 | 51 | ]; |
| 52 | 52 | |
| 53 | 53 | $adminmenu[] = [ |
| 54 | 54 | 'title' => _MI_NEWBB_ADMENU_FORUM, |
| 55 | 55 | 'link' => 'admin/admin_forum_manager.php', |
| 56 | - 'icon' => $pathIcon32 . 'forums.png' |
|
| 56 | + 'icon' => $pathIcon32.'forums.png' |
|
| 57 | 57 | ]; |
| 58 | 58 | |
| 59 | 59 | $adminmenu[] = [ |
| 60 | 60 | 'title' => _MI_NEWBB_ADMENU_PERMISSION, |
| 61 | 61 | 'link' => 'admin/admin_permissions.php', |
| 62 | - 'icon' => $pathIcon32 . 'permissions.png' |
|
| 62 | + 'icon' => $pathIcon32.'permissions.png' |
|
| 63 | 63 | ]; |
| 64 | 64 | |
| 65 | 65 | $adminmenu[] = [ |
| 66 | 66 | 'title' => _MI_NEWBB_ADMENU_ORDER, |
| 67 | 67 | 'link' => 'admin/admin_forum_reorder.php', |
| 68 | - 'icon' => $pathIcon32 . 'compfile.png' |
|
| 68 | + 'icon' => $pathIcon32.'compfile.png' |
|
| 69 | 69 | ]; |
| 70 | 70 | |
| 71 | 71 | $adminmenu[] = [ |
| 72 | 72 | 'title' => _MI_NEWBB_ADMENU_PRUNE, |
| 73 | 73 | 'link' => 'admin/admin_forum_prune.php', |
| 74 | - 'icon' => $pathIcon32 . 'update.png' |
|
| 74 | + 'icon' => $pathIcon32.'update.png' |
|
| 75 | 75 | ]; |
| 76 | 76 | |
| 77 | 77 | $adminmenu[] = [ |
| 78 | 78 | 'title' => _MI_NEWBB_ADMENU_REPORT, |
| 79 | 79 | 'link' => 'admin/admin_report.php', |
| 80 | - 'icon' => $pathIcon32 . 'content.png' |
|
| 80 | + 'icon' => $pathIcon32.'content.png' |
|
| 81 | 81 | ]; |
| 82 | 82 | |
| 83 | 83 | $adminmenu[] = [ |
| 84 | 84 | 'title' => _MI_NEWBB_ADMENU_DIGEST, |
| 85 | 85 | 'link' => 'admin/admin_digest.php', |
| 86 | - 'icon' => $pathIcon32 . 'digest.png' |
|
| 86 | + 'icon' => $pathIcon32.'digest.png' |
|
| 87 | 87 | ]; |
| 88 | 88 | |
| 89 | 89 | $adminmenu[] = [ |
| 90 | 90 | 'title' => _MI_NEWBB_ADMENU_VOTE, |
| 91 | 91 | 'link' => 'admin/admin_votedata.php', |
| 92 | - 'icon' => $pathIcon32 . 'button_ok.png' |
|
| 92 | + 'icon' => $pathIcon32.'button_ok.png' |
|
| 93 | 93 | ]; |
| 94 | 94 | |
| 95 | 95 | $adminmenu[] = [ |
| 96 | 96 | 'title' => _MI_NEWBB_ADMENU_TYPE, |
| 97 | 97 | 'link' => 'admin/admin_type_manager.php', |
| 98 | - 'icon' => $pathIcon32 . 'type.png' |
|
| 98 | + 'icon' => $pathIcon32.'type.png' |
|
| 99 | 99 | ]; |
| 100 | 100 | |
| 101 | 101 | $adminmenu[] = [ |
| 102 | 102 | 'title' => _MI_NEWBB_ADMENU_GROUPMOD, |
| 103 | 103 | 'link' => 'admin/admin_groupmod.php', |
| 104 | - 'icon' => $pathIcon32 . 'groupmod.png' |
|
| 104 | + 'icon' => $pathIcon32.'groupmod.png' |
|
| 105 | 105 | ]; |
| 106 | 106 | |
| 107 | 107 | $adminmenu[] = [ |
| 108 | 108 | 'title' => _MI_NEWBB_ADMENU_SYNC, |
| 109 | 109 | 'link' => 'admin/admin_synchronization.php', |
| 110 | - 'icon' => $pathIcon32 . 'synchronized.png' |
|
| 110 | + 'icon' => $pathIcon32.'synchronized.png' |
|
| 111 | 111 | ]; |
| 112 | 112 | |
| 113 | 113 | $adminmenu[] = [ |
| 114 | 114 | 'title' => _MI_NEWBB_ADMENU_ABOUT, |
| 115 | 115 | 'link' => 'admin/about.php', |
| 116 | - 'icon' => $pathIcon32 . 'about.png' |
|
| 116 | + 'icon' => $pathIcon32.'about.png' |
|
| 117 | 117 | ]; |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | global $pathIcon32; |
| 21 | 21 | if (!class_exists('\Xoops', false)) { |
| 22 | - echo "<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . " </div>\n" . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . "</div>\n"; |
|
| 22 | + echo "<div class='adminfooter'>\n"." <div style='text-align: center;'>\n"." <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"." </div>\n".' '._AM_MODULEADMIN_ADMIN_FOOTER."\n"."</div>\n"; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | xoops_cp_footer(); |
@@ -8,5 +8,5 @@ |
||
| 8 | 8 | * @since 4.00 |
| 9 | 9 | * @package module::newbb |
| 10 | 10 | */ |
| 11 | -include __DIR__ . '/header.php'; |
|
| 11 | +include __DIR__.'/header.php'; |
|
| 12 | 12 | include $GLOBALS['xoops']->path('modules/tag/list.tag.php'); |
@@ -28,5 +28,5 @@ |
||
| 28 | 28 | // URL: http://www.myweb.ne.jp/, https://xoops.org/, http://jp.xoops.org/ // |
| 29 | 29 | // Project: XOOPS Project // |
| 30 | 30 | // ------------------------------------------------------------------------- // |
| 31 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 31 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 32 | 32 | include $GLOBALS['xoops']->path('include/notification_update.php'); |