-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anonymous
committed
Apr 10, 2022
0 parents
commit 929443c
Showing
736 changed files
with
76,813 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
XiunoBBS 插件 | ||
--- | ||
本仓库内的插件为原 **[XiunoBBS](../../../xiunobbs/tree/master/plugin)** 默认自带的插件。 | ||
***支持原创插件开发者,坚决抵制盗版收费插件*** | ||
<pre> | ||
├── huux_notice | ||
├── my_hello | ||
├── xn_antispawn | ||
├── xn_attach_download | ||
├── xn_custom_view | ||
├── xn_digest | ||
├── xn_forum_level_3 | ||
├── xn_forum_merge | ||
├── xn_friendlink | ||
├── xn_insert_code | ||
├── xn_ipaccess | ||
├── xn_json | ||
├── xn_logic_delete | ||
├── xn_lucky_post | ||
├── xn_mobile | ||
├── xn_mod_enhance | ||
├── xn_mypost | ||
├── xn_nav_2 | ||
├── xn_nav_more | ||
├── xn_qq_login | ||
├── xn_read_unread | ||
├── xn_safe | ||
├── xn_screen_reader | ||
├── xn_scroll_top | ||
├── xn_search | ||
├── xn_syntax_hightlighter | ||
├── xn_tag | ||
├── xn_test | ||
├── xn_theme_dark | ||
├── xn_theme_paopao | ||
├── xn_theme_red | ||
├── xn_top | ||
├── xn_umeditor | ||
├── xn_user_recent_thread | ||
├── xn_vcode | ||
├── xn_wechat_public | ||
└── z_top | ||
</pre> | ||
|
||
### XiuLab Team 插件 | ||
- **Markdown 编辑器**: https://gitee.com/xiulab/xl_editormd | ||
- **标签云**: https://gitee.com/xiulab/xl_tags | ||
|
||
### 其它开发者插件 | ||
- **杨永全[插件集合]**: https://gitee.com/qt06/xiuno-bbs-plugins | ||
- **微信公众号登录**: https://gitee.com/xiulab/skiy_wx_login | ||
- **微信小程序扫码登录**: https://gitee.com/xiulab/skiy_xcx_login | ||
- **GitHub登录插件**: https://gitee.com/midoks/xiuno_github_login | ||
- **帖子屏蔽**: https://gitee.com/soyoumi/git_shield | ||
- **显示在线用户**: https://gitee.com/soyoumi/git_online_userlist | ||
- **帖子底部来源信息**: https://gitee.com/soyoumi/git_frominfo | ||
- **超连接自动转换**: https://gitee.com/soyoumi/git_autosurl | ||
- **七牛云存储**: https://gitee.com/adamin/adam_qiniu | ||
- **Editor.md**: https://github.com/GamemakerChina/gmchina_xiuno_editormd | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "消息", | ||
"brief": "消息系统<br />v1.4 继续优化消息列表UI<br />(FOR 4.0.3 正式版)", | ||
"version": "1.5", | ||
"bbs_version": "4.0.3", | ||
"installed": 0, | ||
"enable": 0, | ||
"hooks_rank": [], | ||
"overwrites_rank": [], | ||
"dependencies": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
//0:全部 1:通知 2:评论 3:主题 4:私信 | ||
return array( | ||
0 => array( | ||
'url'=>url('my-notice'), | ||
'name'=>lang('notice_lang_all'), | ||
'class'=>'info', | ||
'icon'=>'' | ||
), | ||
1 => array( | ||
'url'=>url('my-notice-1'), | ||
'name'=>lang('notice_lang_notice'), | ||
'class'=>'info', | ||
'icon'=>'' | ||
), | ||
2 => array( | ||
'url'=>url('my-notice-2'), | ||
'name'=>lang('notice_lang_comment'), | ||
'class'=>'primary', | ||
'icon'=>'' | ||
), | ||
3 => array( | ||
'url'=>url('my-notice-3'), | ||
'name'=>lang('notice_lang_system'), | ||
'class'=>'danger', | ||
'icon'=>'' | ||
), | ||
// hook notice_route_menu_array_end.php | ||
99 => array( | ||
'url'=>url('my-notice-99'), | ||
'name'=>lang('notice_lang_other'), | ||
'class'=>'success', | ||
'icon'=>'bell' | ||
), | ||
);?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<li class="nav-item"> | ||
<a class="nav-link <?php echo $action == 'notice' ? 'active' : ''; ?>" href="<?php echo url("my-notice");?>"><?php echo lang('notice');?></a> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php exit; | ||
|
||
$notice_menu = array( | ||
'notice' => array( | ||
'url'=>url('notice-list'), | ||
'text'=>lang('notice'), | ||
'icon'=>'icon-bell', | ||
'tab'=> array ( | ||
'list'=>array('url'=>url('notice-list'), 'text'=>lang('notice_admin_notice_list')), | ||
'post'=>array('url'=>url('notice-create'), 'text'=>lang('notice_admin_send_notice')), | ||
) | ||
)); | ||
$menu += $notice_menu; | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
case 'notice': include _include(APP_PATH.'plugin/huux_notice/route/notice.php'); break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<link rel="stylesheet" href="<?php echo 'plugin/huux_notice/view/css/huux-notice.css';?>?1.4" name="huux_notice"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php if(!empty($uid)) { ?> | ||
<li class="nav-item usernotice <?php echo $user['unread_notices'] !=0 ? 'current':''; ?>" id="nav-usernotice"> | ||
<a class="nav-link d-flex" href="<?php echo url("my-notice");?>"> | ||
|
||
<div class="d-lg-none mr-1"><span><?php echo lang('notice');?></span></div> | ||
<div> | ||
<span class="read"><i class="icon icon-bell"></i></span> | ||
<span class="unread badge badge-danger badge-pill"><i class="icon icon-bell mr-1"></i><b class="user-notices font-style-normal font-weight-normal" id="nav-usernotice-unread-notices"><?php echo $user['unread_notices']; ?></b></span> | ||
</div> | ||
|
||
</a> | ||
</li> | ||
<?php }?> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
'notice'=>'Notice', | ||
'notice_admin_notice_list'=>'Message list', | ||
'notice_admin_send_notice'=>'Send notice', | ||
'notice_admin_send_notice_message'=>'Content', | ||
'notice_admin_send_notice_uid'=>'User ID', | ||
'notice_admin_send_notice_failed'=>'Failed to send message', | ||
'notice_admin_send_notice_sucessfully'=>'Sending message succeeded', | ||
'notice_admin_send_notice_message_empty'=>'The content can not be empty', | ||
'notice_admin_send_notice_recvuid_empty'=>'The content can not be empty', | ||
'notice_admin_send_notice_user_empty'=>'Receiver does not exist', | ||
'notice_delete_notice_sucessfully'=>'Message deleted successfully', | ||
'notice_delete_notice_failed'=>'Message deletion failed', | ||
'notice_lang_all'=>'ALL', | ||
'notice_lang_notice'=>'Notice', | ||
'notice_lang_comment'=>'Comment', | ||
'notice_lang_system'=>'System', | ||
'notice_lang_reply'=>'Reply', | ||
'notice_lang_other'=>'Other', | ||
'notice_template_yourtopic'=>'Your Topic', | ||
'notice_template_yourtopic_closeopen1'=>'Closed', | ||
'notice_template_yourtopic_closeopen0'=>'Opened', | ||
'notice_template_yourtopic_delete'=>'Has been deleted', | ||
'notice_template_yourtopic_move'=>'Move', | ||
'notice_template_yourtopic_moveto'=>'to', | ||
'notice_template_yourtopic_top1'=>'Top to the Column', | ||
'notice_template_yourtopic_top3'=>'Top to the Forum', | ||
'notice_template_yourtopic_top0'=>'Canceled topped', | ||
'notice_my_error'=>'Error', | ||
'notice_my_update_failed'=>'Setup failed', | ||
'notice_my_update_sucessfully'=>'Setup successfully', | ||
'notice_my_update_readed'=>'Have read', | ||
'notice_my_update_unread'=>'Unread', | ||
'notice_my_update_allread'=>'All read', | ||
'notice_my_marked_allread'=>'All marked read', | ||
'notice_my_marked_read'=>'Mark as reead', | ||
'notice_my_nomessage'=>'NO MESSAGE', | ||
'notice_admin'=>'Administrator', | ||
'notice_message_replytoyou'=>'To your', | ||
'notice_message_replytoyou_at'=>'the topic', | ||
'notice_message_replytoyou_for'=>'for your comments', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
'notice'=>'消息', | ||
'notice_admin_notice_list'=>'消息列表', | ||
'notice_admin_send_notice'=>'发送通知', | ||
'notice_admin_send_notice_message'=>'内容', | ||
'notice_admin_send_notice_uid'=>'用户ID', | ||
'notice_admin_send_notice_failed'=>'发送通知失败', | ||
'notice_admin_send_notice_sucessfully'=>'发送通知成功', | ||
'notice_admin_send_notice_message_empty'=>'内容不能为空', | ||
'notice_admin_send_notice_recvuid_empty'=>'接收人不能为空', | ||
'notice_admin_send_notice_user_empty'=>'用户不存在', | ||
'notice_delete_notice_sucessfully'=>'消息删除成功', | ||
'notice_delete_notice_failed'=>'消息删除失败', | ||
'notice_lang_all'=>'全部', | ||
'notice_lang_notice'=>'公告', | ||
'notice_lang_comment'=>'评论', | ||
'notice_lang_system'=>'系统', | ||
'notice_lang_reply'=>'回复', | ||
'notice_lang_other'=>'其他', | ||
'notice_template_yourtopic'=>'你的主题', | ||
'notice_template_yourtopic_closeopen1'=>'关闭处理', | ||
'notice_template_yourtopic_closeopen0'=>'重新开启', | ||
'notice_template_yourtopic_delete'=>'删除处理', | ||
'notice_template_yourtopic_move'=>'移动处理', | ||
'notice_template_yourtopic_moveto'=>'到', | ||
'notice_template_yourtopic_top1'=>'板块置顶', | ||
'notice_template_yourtopic_top3'=>'全站置顶', | ||
'notice_template_yourtopic_top0'=>'取消置顶', | ||
'notice_my_error'=>'错误', | ||
'notice_my_update_failed'=>'设置失败', | ||
'notice_my_update_sucessfully'=>'设置成功', | ||
'notice_my_update_readed'=>'已读', | ||
'notice_my_update_unread'=>'未读', | ||
'notice_my_update_allread'=>'全部已读', | ||
'notice_my_marked_allread'=>'全部标记已读', | ||
'notice_my_marked_read'=>'标记为已读', | ||
'notice_my_nomessage'=>'没有相关消息', | ||
'notice_admin'=>'管理员', | ||
'notice_message_replytoyou'=>'了你的', | ||
'notice_message_replytoyou_at'=>'了你在', | ||
'notice_message_replytoyou_for'=>'中的评论', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
'notice'=>'消息', | ||
'notice_admin_notice_list'=>'消息列表', | ||
'notice_admin_send_notice'=>'發送通知', | ||
'notice_admin_send_notice_message'=>'內容', | ||
'notice_admin_send_notice_uid'=>'用戶ID', | ||
'notice_admin_send_notice_failed'=>'發送通知失敗', | ||
'notice_admin_send_notice_sucessfully'=>'發送通知成功', | ||
'notice_admin_send_notice_message_empty'=>'內容不能為空', | ||
'notice_admin_send_notice_recvuid_empty'=>'接收人不能為空', | ||
'notice_admin_send_notice_user_empty'=>'用戶不存在', | ||
'notice_delete_notice_sucessfully'=>'消息刪除成功', | ||
'notice_delete_notice_failed'=>'消息刪除失敗', | ||
'notice_lang_all'=>'全部', | ||
'notice_lang_notice'=>'公告', | ||
'notice_lang_comment'=>'評論', | ||
'notice_lang_system'=>'系統', | ||
'notice_lang_reply'=>'回復', | ||
'notice_lang_other'=>'其他', | ||
'notice_template_yourtopic'=>'妳的主題', | ||
'notice_template_yourtopic_closeopen1'=>'關閉處理', | ||
'notice_template_yourtopic_closeopen0'=>'重新開啟', | ||
'notice_template_yourtopic_delete'=>'刪除處理', | ||
'notice_template_yourtopic_move'=>'移動處理', | ||
'notice_template_yourtopic_moveto'=>'到', | ||
'notice_template_yourtopic_top1'=>'板塊置頂', | ||
'notice_template_yourtopic_top3'=>'全站置頂', | ||
'notice_template_yourtopic_top0'=>'取消置頂', | ||
'notice_my_error'=>'錯誤', | ||
'notice_my_update_failed'=>'設置失敗', | ||
'notice_my_update_sucessfully'=>'設置成功', | ||
'notice_my_update_readed'=>'已讀', | ||
'notice_my_update_unread'=>'未讀', | ||
'notice_my_update_allread'=>'全部已讀', | ||
'notice_my_marked_allread'=>'全部標記已讀', | ||
'notice_my_marked_read'=>'標記為已讀', | ||
'notice_my_nomessage'=>'沒有相關消息', | ||
'notice_admin'=>'管理員', | ||
'notice_message_replytoyou'=>'了妳的', | ||
'notice_message_replytoyou_at'=>'了妳在', | ||
'notice_message_replytoyou_for'=>'中的評論', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php exit; | ||
// 消息(主题-关闭) 重写foreach问题不大,后期如果程序升级这里可作调整 | ||
foreach($threadlist as &$thread) { | ||
$fid = $thread['fid']; | ||
$tid = $thread['tid']; | ||
if(forum_access_mod($fid, $gid, 'allowtop')) { | ||
// notice send | ||
if($close != $thread['closed']) { | ||
$thread['subject'] = notice_substr($thread['subject'], 20); | ||
$todo = lang('notice_template_yourtopic_closeopen'.$close); | ||
$thread_close_notice_message = lang('notice_admin').'<span class="handle mx-1">'.$todo.'</span>'.lang('notice_template_yourtopic').'<a href="'.url("thread-$thread[tid]").'">《'.$thread['subject'].'》</a>'; | ||
$notice_nid = notice_send($user['uid'], $thread['uid'], $thread_close_notice_message, 3); | ||
} | ||
// end notice send | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php exit; | ||
// 消息(主题-删除) 重写foreach问题不大, 后期如果程序升级这里可作调整 | ||
foreach($threadlist as &$thread) { | ||
$fid = $thread['fid']; | ||
$tid = $thread['tid']; | ||
if(forum_access_mod($fid, $gid, 'allowdelete')) { | ||
// notice send | ||
$thread['subject'] = notice_substr($thread['subject'], 20); | ||
|
||
$todo = lang('notice_template_yourtopic_delete'); | ||
$thread_delete_notice_message = lang('notice_admin').'<span class="handle mx-1">'.$todo.'</span>'.lang('notice_template_yourtopic').'<a href="'.url("thread-$thread[tid]").'">《'.$thread['subject'].'》</a>'; | ||
|
||
$notice_nid = notice_send($user['uid'], $thread['uid'], $thread_delete_notice_message, 3); | ||
// end notice send | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php exit; | ||
// 消息(主题-移动) 重写foreach问题不大, 后期如果程序升级这里可作调整 | ||
foreach($threadlist as &$thread) { | ||
$fid = $thread['fid']; | ||
$tid = $thread['tid']; | ||
if(forum_access_mod($fid, $gid, 'allowmove')) { | ||
if($fid == $newfid) continue; | ||
// notice send | ||
$newforum = forum_read($fid); | ||
$thread['subject'] = notice_substr($thread['subject'], 20); | ||
$todo = lang('notice_template_yourtopic_move'); | ||
$thread_move_notice_message = lang('notice_admin').'<span class="handle mx-1">'.$todo.'</span>'.lang('notice_template_yourtopic').'<a href="'.url("thread-$thread[tid]").'">《'.$thread['subject'].'》</a>'.lang('notice_template_yourtopic_moveto').' <a href="'.url("forum-$newforum[fid]").'">【'.$newforum['name'].'】</a>'; | ||
$notice_nid = notice_send($user['uid'], $thread['uid'], $thread_move_notice_message, 3); | ||
// end notice send | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php exit; | ||
// 消息(主题-置顶) 重写foreach问题不大, 后期如果程序升级这里可作调整 | ||
foreach($threadlist as &$thread) { | ||
$fid = $thread['fid']; | ||
$tid = $thread['tid']; | ||
if($top == 3 && ($gid != 1 && $gid != 2)) { | ||
continue; | ||
} | ||
if(forum_access_mod($fid, $gid, 'allowtop')) { | ||
// notice send | ||
if($top != $thread['top']) { | ||
$thread['subject'] = notice_substr($thread['subject'], 20); | ||
$todo = lang('notice_template_yourtopic_top'.$top); | ||
$thread_top_notice_message = lang('notice_admin').'<span class="handle mx-1">'.$todo.'</span>'.lang('notice_template_yourtopic').'<a href="'.url("thread-$thread[tid]").'">《'.$thread['subject'].'》</a>'; | ||
$notice_nid = notice_send($user['uid'], $thread['uid'], $thread_top_notice_message, 3); | ||
} | ||
// end notice send | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include _include(APP_PATH.'plugin/huux_notice/model/notice.func.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a role="button" class="btn btn-secondary" data-active="menu-my-notice" href="<?php echo url('my-notice');?>">消息</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a href="<?php echo url('my-notice');?>" class="list-group-item list-group-item-action" data-active="menu-my-notice">消息</a> |
Oops, something went wrong.