├── include ├── index.htm ├── index.html ├── index.php └── mysql.class.php ├── static ├── index.htm ├── index.html ├── images │ ├── index.htm │ ├── index.html │ └── index.php ├── js │ ├── index.htm │ ├── index.html │ ├── index.php │ ├── jquery.upload-1.0.2.min.js │ ├── jquery.lazyload.min.js │ └── postsave.js ├── default │ ├── img │ │ ├── index.htm │ │ ├── index.html │ │ ├── bg.PNG │ │ ├── top.png │ │ ├── bg_ft.png │ │ ├── bg_item.png │ │ ├── newisred.GIF │ │ ├── newistop.GIF │ │ ├── bg_header.png │ │ ├── newrelease.jpg │ │ └── index.php │ ├── index.htm │ ├── index.html │ └── index.php ├── Thumbs.db ├── grey.gif ├── grey2.gif ├── weibo_login.png ├── connect_logo_7.png ├── qq_logo_55_24.png ├── weibo_login_55_24.png ├── weibo_login_63_24.png └── index.php ├── upload ├── index.htm └── index.php ├── favicon.ico ├── install.php ├── avatar ├── large │ ├── 0.png │ └── Thumbs.db ├── mini │ ├── 0.png │ └── Thumbs.db └── normal │ ├── 0.png │ └── Thumbs.db ├── viewat.php ├── wblogin.php ├── logout.php ├── config.php ├── 401.html ├── 404.html ├── 403.html ├── templates └── default │ ├── ios_admin-edit-comment.php │ ├── admin-edit-comment.php │ ├── forgot.php │ ├── ios_forgot.php │ ├── admin-user.php │ ├── ios_admin-user.php │ ├── upload.php │ ├── ios_user-edit-post.php │ ├── ios_notifications.php │ ├── notifications.php │ ├── ios_admin-edit-post.php │ ├── ios_newpost.php │ ├── newpost.php │ ├── user-edit-post.php │ ├── admin-node.php │ ├── ios_admin-node.php │ ├── admin-link.php │ ├── ios_admin-link.php │ ├── admin-edit-post.php │ ├── ios_home.php │ ├── ios_qqsetname.php │ ├── qqsetname.php │ ├── ios_favorites.php │ ├── favorites.php │ ├── ios_indexpage.php │ ├── sigin_login.php │ ├── ios_sigin_login.php │ ├── indexpage.php │ ├── ios_node.php │ ├── node.php │ ├── home.php │ ├── ios_member.php │ ├── member.php │ ├── sider.php │ ├── ios_admin-setuser.php │ ├── ios_setting.php │ ├── admin-setuser.php │ ├── setting.php │ ├── ios_postpage.php │ ├── ios_layout.php │ ├── layout.php │ └── postpage.php ├── gototopic.php ├── robots.php ├── qqlogin.php ├── api └── qq_utils.php ├── sitemap.php ├── README.md ├── admin-edit-comment.php ├── LICENSE.txt ├── readme-nginx.txt ├── notifications.php ├── admin-user.php ├── youbbs.conf ├── forgot.php ├── .htaccess ├── rename.htaccess ├── admin-link.php ├── feed.php ├── admin-node.php ├── member.php ├── user-edit-post.php ├── model.php ├── admin-edit-post.php ├── wbcallback.php ├── index.php ├── nodepage.php ├── login.php ├── sigin.php ├── indexpage.php ├── seccode.php ├── newpost.php ├── favorites.php └── qqcallback.php /include/index.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /include/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/index.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /upload/index.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/index.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/js/index.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/js/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/default/img/index.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/default/index.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/default/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/default/img/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/favicon.ico -------------------------------------------------------------------------------- /install.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/install.php -------------------------------------------------------------------------------- /static/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/Thumbs.db -------------------------------------------------------------------------------- /static/grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/grey.gif -------------------------------------------------------------------------------- /static/grey2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/grey2.gif -------------------------------------------------------------------------------- /avatar/large/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/avatar/large/0.png -------------------------------------------------------------------------------- /avatar/mini/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/avatar/mini/0.png -------------------------------------------------------------------------------- /avatar/mini/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/avatar/mini/Thumbs.db -------------------------------------------------------------------------------- /avatar/normal/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/avatar/normal/0.png -------------------------------------------------------------------------------- /avatar/large/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/avatar/large/Thumbs.db -------------------------------------------------------------------------------- /avatar/normal/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/avatar/normal/Thumbs.db -------------------------------------------------------------------------------- /static/weibo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/weibo_login.png -------------------------------------------------------------------------------- /static/connect_logo_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/connect_logo_7.png -------------------------------------------------------------------------------- /static/default/img/bg.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/default/img/bg.PNG -------------------------------------------------------------------------------- /static/default/img/top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/default/img/top.png -------------------------------------------------------------------------------- /static/qq_logo_55_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/qq_logo_55_24.png -------------------------------------------------------------------------------- /static/default/img/bg_ft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/default/img/bg_ft.png -------------------------------------------------------------------------------- /static/weibo_login_55_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/weibo_login_55_24.png -------------------------------------------------------------------------------- /static/weibo_login_63_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/weibo_login_63_24.png -------------------------------------------------------------------------------- /static/default/img/bg_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/default/img/bg_item.png -------------------------------------------------------------------------------- /static/default/img/newisred.GIF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/default/img/newisred.GIF -------------------------------------------------------------------------------- /static/default/img/newistop.GIF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/default/img/newistop.GIF -------------------------------------------------------------------------------- /static/default/img/bg_header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/default/img/bg_header.png -------------------------------------------------------------------------------- /static/default/img/newrelease.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ACICFG/youBBS-ACICFG/HEAD/static/default/img/newrelease.jpg -------------------------------------------------------------------------------- /viewat.php: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /wblogin.php: -------------------------------------------------------------------------------- 1 | getAuthorizeURL( 'http://'.$_SERVER['HTTP_HOST'].'/wbcallback' ); 12 | 13 | header("Location:$code_url"); 14 | exit; 15 | 16 | ?> 17 | -------------------------------------------------------------------------------- /include/index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 404 Not Found 7 | 8 |

Not Found

9 | The requested URL was not found on this server.

10 |


11 |
Web Server at Port
12 | -------------------------------------------------------------------------------- /static/index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 404 Not Found 7 | 8 |

Not Found

9 | The requested URL was not found on this server.

10 |


11 |
Web Server at Port
12 | -------------------------------------------------------------------------------- /upload/index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 404 Not Found 7 | 8 |

Not Found

9 | The requested URL was not found on this server.

10 |


11 |
Web Server at Port
12 | -------------------------------------------------------------------------------- /static/js/index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 404 Not Found 7 | 8 |

Not Found

9 | The requested URL was not found on this server.

10 |


11 |
Web Server at Port
12 | -------------------------------------------------------------------------------- /static/default/index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 404 Not Found 7 | 8 |

Not Found

9 | The requested URL was not found on this server.

10 |


11 |
Web Server at Port
12 | -------------------------------------------------------------------------------- /static/images/index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 404 Not Found 7 | 8 |

Not Found

9 | The requested URL was not found on this server.

10 |


11 |
Web Server at Port
12 | -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | 18 | -------------------------------------------------------------------------------- /static/default/img/index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 404 Not Found 7 | 8 |

Not Found

9 | The requested URL was not found on this server.

10 |


11 |
Web Server at Port
12 | -------------------------------------------------------------------------------- /config.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /401.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 401 6 | 7 | 8 | 9 | 10 | error:401 访问的网址需要先登录 返回首页 11 | 12 | -------------------------------------------------------------------------------- /404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 404 6 | 7 | 8 | 9 | 10 | error:404 访问的网址资源不存在 返回首页 11 | 12 | -------------------------------------------------------------------------------- /403.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 403 6 | 7 | 8 | 9 | 10 | error:403 访问的网址需要对应权限,你的权限不足, 返回首页 11 | 12 | -------------------------------------------------------------------------------- /templates/default/ios_admin-edit-comment.php: -------------------------------------------------------------------------------- 1 | 6 | ',$options['name'],' » - 修改评论'; 7 | echo ' 8 | 9 | 10 |
'; 11 | if($tip){ 12 | echo '

',$tip,'

'; 13 | } 14 | 15 | echo ' 16 |
17 |

18 |

19 |
20 | 查看这条评论所在的帖子 21 |
'; 22 | 23 | 24 | ?> 25 | -------------------------------------------------------------------------------- /gototopic.php: -------------------------------------------------------------------------------- 1 | fetch_one_array("SELECT * FROM yunbbs_users WHERE id='".$cur_uid."' LIMIT 1"); 9 | 10 | if($db_user['notic']){ 11 | $n_arr = explode(',', $db_user['notic']); 12 | foreach($n_arr as $k=>$v){ 13 | if($v == $tid){ 14 | unset($n_arr[$k]); 15 | } 16 | } 17 | $new_notic = implode(',', $n_arr); 18 | $DBS->unbuffered_query("UPDATE yunbbs_users SET notic = '$new_notic' WHERE id='$cur_uid'"); 19 | 20 | unset($n_arr); 21 | unset($new_notic); 22 | } 23 | header('location: /t-'.$tid); 24 | exit; 25 | ?> 26 | -------------------------------------------------------------------------------- /templates/default/admin-edit-comment.php: -------------------------------------------------------------------------------- 1 | 6 | ',$options['name'],' » - 修改评论'; 7 | echo ' 8 | 9 | 10 |
'; 11 | if($tip){ 12 | echo '

',$tip,'

'; 13 | } 14 | 15 | echo ' 16 |
17 |

'; 18 | 19 | if(!$options['close_upload']){ 20 | include(dirname(__FILE__) . '/upload.php'); 21 | } 22 | 23 | echo ' 24 |

25 |
26 | 查看这条评论所在的帖子 27 |
'; 28 | 29 | 30 | ?> 31 | -------------------------------------------------------------------------------- /robots.php: -------------------------------------------------------------------------------- 1 | fetch_one_array("SHOW TABLE STATUS LIKE 'yunbbs_articles'"); 23 | $post_num = $table_status['Auto_increment'] -1; 24 | 25 | $max_num = 39000; 26 | $taltol_page = ceil($post_num/$max_num); 27 | $base_url = 'http://'.$_SERVER['HTTP_HOST']; 28 | 29 | for($i = 1; $i <= $post_num; $i+=$max_num){ 30 | echo 'Sitemap: ',$base_url,'/sitemap-',$i,"\n"; 31 | } 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /qqlogin.php: -------------------------------------------------------------------------------- 1 | 28 | -------------------------------------------------------------------------------- /api/qq_utils.php: -------------------------------------------------------------------------------- 1 | 42 | -------------------------------------------------------------------------------- /sitemap.php: -------------------------------------------------------------------------------- 1 | '."\n "; 9 | $xml .= ''."\n "; 10 | 11 | if($is_spider){ 12 | $id = intval($_GET['id']); 13 | 14 | $table_status = $DBS->fetch_one_array("SHOW TABLE STATUS LIKE 'yunbbs_articles'"); 15 | $post_num = $table_status['Auto_increment'] -1; 16 | 17 | $max_num = 39000; 18 | 19 | $from_i = $id; 20 | $to_i = $from_i + $max_num; 21 | if($to_i > $post_num){ 22 | $to_i = $post_num + 1; 23 | } 24 | 25 | 26 | for($i = $from_i; $i < $to_i; $i++){ 27 | $xml .= ''.$base_url.'/t-'.$i.''."\n "; 28 | } 29 | }else{ 30 | $xml .= ''.$base_url.''."\n "; 31 | } 32 | 33 | $xml .= ''; 34 | 35 | header("content-Type: text/xml"); 36 | echo $xml; 37 | ?> 38 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | YouBBS-ACICFG 2 | ===================== 3 | YouBBS-ACICFG 4 | ver 1.04.02 5 | 6 | This is a simple and quick BBS. 7 | 8 | Looks like V2EX, but in PHP. 9 | 10 | Smaller than StartBBS(Openshift quick install ver. avalable in my Github:-) ). 11 | 12 | We made some improvements: 13 | ---------------- 14 | 1.Set a post at top(finally! After 180+ days of waiting!) 15 | 16 | 2.Make it easier for admins to delete or edit posts. 17 | 18 | 3.Allow users to edit their posts. 19 | 20 | And more... 21 | 22 | Install: 23 | ------------ 24 | The same as the original one. 25 | 26 | Detailed instruction pending. 27 | 28 | Special notes to nginx users 29 | ------------ 30 | To help you fix the annoying rewrite, we put a readme-nginx.txt in it. 31 | 32 | Just copy and paste them in the .conf file. 33 | 34 | Name 35 | ---------- 36 | 1.04 .02 37 | Original ver. Our update 38 | 39 | 40 | ----- 41 | 42 | Official BBS:http://youbbs.sinaapp.com/ 43 | 44 | Our test website:http://www.acicfg.tk/ 45 | 46 | Our official website: http://forum.chineseaci.com/ 47 | 48 | For help. get in touch with us at www.chineseaci.com. 49 | 50 | Hope you like it:) 51 | -------------------------------------------------------------------------------- /admin-edit-comment.php: -------------------------------------------------------------------------------- 1 | fetch_one_array($query); 12 | if(!$r_obj){ 13 | exit('404'); 14 | } 15 | 16 | if($_SERVER['REQUEST_METHOD'] == 'POST'){ 17 | $r_content = addslashes(trim($_POST['content'])); 18 | 19 | if($r_content){ 20 | $r_content = htmlspecialchars($r_content); 21 | $DBS->unbuffered_query("UPDATE yunbbs_comments SET content='$r_content' WHERE id='$rid'"); 22 | $tip = '评论已成功修改'; 23 | }else{ 24 | $tip = '内容 不能留空'; 25 | } 26 | }else{ 27 | $r_content = $r_obj['content']; 28 | $tip = ''; 29 | } 30 | 31 | // 页面变量 32 | $title = '修改评论'; 33 | // 设置回复图片最大宽度 34 | $img_max_w = 590; 35 | 36 | 37 | $pagefile = dirname(__FILE__) . '/templates/default/'.$tpl.'admin-edit-comment.php'; 38 | 39 | include(dirname(__FILE__) . '/templates/default/'.$tpl.'layout.php'); 40 | 41 | ?> 42 | -------------------------------------------------------------------------------- /templates/default/forgot.php: -------------------------------------------------------------------------------- 1 | ',$options['name'],' » ',$title,' 6 |
7 |

'; 8 | foreach($errors as $error){ 9 | echo '› ',$error,'
'; 10 | } 11 | echo '

12 |

请填写登录名和个人设置里的邮箱:

13 |
14 |

允许字母、数字、中文,不能全为数字,4~12个字节

15 |

16 |

'; 17 | if($url_path == 'login'){ 18 | if($options['close_register'] || $options['close']){ 19 | echo '

网站暂时关闭 或 已停止新用户注册'; 20 | }else{ 21 | echo '

还没来过?现在注册 '; 22 | } 23 | }else{ 24 | echo '

哦~~又想起来了?现在登录 '; 25 | } 26 | echo '

27 |
28 |
'; 29 | 30 | ?> 31 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 ego008 2 | 3 | https://github.com/ego008/saepy-log 4 | http://code.google.com/p/sae-python-tornado-blog/ 5 | 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. -------------------------------------------------------------------------------- /templates/default/ios_forgot.php: -------------------------------------------------------------------------------- 1 | ',$options['name'],' » ',$title,' 6 |
7 |

'; 8 | foreach($errors as $error){ 9 | echo '› ',$error,'
'; 10 | } 11 | echo '

12 |

请填写登录名和个人设置里的邮箱:

13 |
14 |


允许字母、数字、中文,不能全为数字,4~12个字节

15 |

16 |

'; 17 | if($url_path == 'login'){ 18 | if($options['close_register'] || $options['close']){ 19 | echo '

网站暂时关闭 或 已停止新用户注册 '; 20 | }else{ 21 | echo '

还没来过?现在注册 '; 22 | } 23 | }else{ 24 | echo '

又想起来了?现在登录 '; 25 | } 26 | echo '

27 |
28 |
'; 29 | 30 | ?> 31 | -------------------------------------------------------------------------------- /templates/default/admin-user.php: -------------------------------------------------------------------------------- 1 | 8 |
',$options['name'],' » - 最近等待审核的用户
9 | 10 |
'; 11 | if($tip1){ 12 | echo '

',$tip1,'

'; 13 | } 14 | echo ' 15 | 21 |
'; 22 | } 23 | 24 | if($userdb2){ 25 | echo ' 26 | 27 |
',$options['name'],' » - 最近被禁用的用户
28 | 29 |
'; 30 | if($tip2){ 31 | echo '

',$tip2,'

'; 32 | } 33 | echo ' 34 | 40 |
'; 41 | } 42 | 43 | }else{ 44 | echo ' 45 |
',$options['name'],' » - 用户管理
46 | 47 |
48 | 49 |

目前尚无 等待审核的用户 或 被禁用的用户

50 | 51 |
'; 52 | 53 | } 54 | 55 | ?> 56 | -------------------------------------------------------------------------------- /templates/default/ios_admin-user.php: -------------------------------------------------------------------------------- 1 | 8 |
',$options['name'],' » - 最近等待审核的用户
9 | 10 |
'; 11 | if($tip1){ 12 | echo '

',$tip1,'

'; 13 | } 14 | echo ' 15 | 21 |
'; 22 | } 23 | 24 | if($userdb2){ 25 | echo ' 26 | 27 |
',$options['name'],' » - 最近被禁用的用户
28 | 29 |
'; 30 | if($tip2){ 31 | echo '

',$tip2,'

'; 32 | } 33 | echo ' 34 | 40 |
'; 41 | } 42 | 43 | }else{ 44 | echo ' 45 |
',$options['name'],' » - 用户管理
46 | 47 |
48 | 49 |

目前尚无 等待审核的用户 或 被禁用的用户

50 | 51 |
'; 52 | 53 | } 54 | 55 | ?> 56 | -------------------------------------------------------------------------------- /templates/default/upload.php: -------------------------------------------------------------------------------- 1 | 6 | 上传附件'; 7 | if($options['ext_list']){ 8 | echo '(',$options['ext_list'],')'; 9 | } 10 | echo ' 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 37 | 38 |
39 | '; 40 | ?> 41 | -------------------------------------------------------------------------------- /templates/default/ios_user-edit-post.php: -------------------------------------------------------------------------------- 1 | 6 |
7 | » - 修改帖子 » 8 | 22 |
23 | 24 |
'; 25 | if($tip){ 26 | echo '

',$tip,'

'; 27 | } 28 | 29 | echo ' 30 | 31 |

32 | 33 |

34 |

35 |

36 |

37 |

38 | 39 |

发帖指南:

40 |

41 | 纯文本格式,不支持html 或 ubb 代码
42 | 贴图: 可直接粘贴图片地址,如 http://www.baidu.com/xxx.gif (支持jpg/gif/png后缀名),也可直接上传
43 | 贴视频: 可直接视频地址栏里的网址,如 http://www.tudou.com/programs/view/PAH86KJNoiQ/ (仅支持土豆/优酷/QQ)
44 |

45 | 46 |
'; 47 | 48 | 49 | ?> 50 | -------------------------------------------------------------------------------- /templates/default/ios_notifications.php: -------------------------------------------------------------------------------- 1 | 6 | 站内提醒 » 有人在下面的文章回复或提起了你 7 | 8 | 9 |
'; 10 | 11 | if($articledb){ 12 | 13 | foreach($articledb as $article){ 14 | echo ' 15 |
16 |
',$article['author'],'
17 |
18 |

',$article['title'],'

19 | ',$article['cname'],''; 20 | if($article['comments']){ 21 | echo ' • ',$article['rauthor'],' ',$article['edittime'],'回复'; 22 | }else{ 23 | echo ' • ',$article['author'],' ',$article['addtime'],'发表'; 24 | } 25 | echo ' 26 |
'; 27 | if($article['comments']){ 28 | $gotopage = ceil($article['comments']/$options['commentlist_num']); 29 | if($gotopage == 1){ 30 | $c_page = ''; 31 | }else{ 32 | $c_page = '-'.$gotopage; 33 | } 34 | echo ''; 35 | } 36 | echo '
37 |
'; 38 | 39 | } 40 | 41 | }else{ 42 | echo '

   暂无未读提醒

'; 43 | } 44 | 45 | echo '
'; 46 | 47 | ?> -------------------------------------------------------------------------------- /templates/default/notifications.php: -------------------------------------------------------------------------------- 1 | 6 | ',$options['name'],' » 站内提醒 ( 有人在下面的文章回复或提起了你 ) 7 | 8 | 9 |
'; 10 | 11 | if($articledb){ 12 | 13 | foreach($articledb as $article){ 14 | echo ' 15 |
16 | 19 |
20 |

',$article['title'],'

21 | ',$article['cname'],'',$article['author'],''; 22 | if($article['comments']){ 23 | echo ' • ',$article['edittime'],' • 最后回复来自 ',$article['rauthor'],''; 24 | }else{ 25 | echo ' • ',$article['addtime']; 26 | } 27 | echo ' 28 |
'; 29 | if($article['comments']){ 30 | $gotopage = ceil($article['comments']/$options['commentlist_num']); 31 | if($gotopage == 1){ 32 | $c_page = ''; 33 | }else{ 34 | $c_page = '-'.$gotopage; 35 | } 36 | echo ''; 37 | } 38 | echo '
39 |
'; 40 | 41 | } 42 | 43 | }else{ 44 | echo '

   暂无未读提醒

'; 45 | } 46 | 47 | echo '
'; 48 | 49 | ?> -------------------------------------------------------------------------------- /templates/default/ios_admin-edit-post.php: -------------------------------------------------------------------------------- 1 | 6 |
7 | » - 修改帖子 » 8 | 22 |
23 | 24 |
'; 25 | if($tip){ 26 | echo '

',$tip,'

'; 27 | } 28 | 29 | echo ' 30 |

31 | 32 | 33 |

34 |

35 |

36 | 37 |

38 |

39 | 40 | 41 | 42 | 43 |

发帖指南:

44 |

45 | 纯文本格式,不支持html 或 ubb 代码
46 | 贴图: 可直接粘贴图片地址,如 http://www.baidu.com/xxx.gif (支持jpg/gif/png后缀名),也可直接上传
47 | 贴视频: 可直接视频地址栏里的网址,如 http://www.tudou.com/programs/view/PAH86KJNoiQ/ (仅支持土豆/优酷/QQ)
48 |

49 | 50 |
'; 51 | 52 | 53 | ?> 54 | -------------------------------------------------------------------------------- /templates/default/ios_newpost.php: -------------------------------------------------------------------------------- 1 | 6 | 7 |
8 | » '; 9 | if($options['main_nodes']){ 10 | echo ''; 20 | }else{ 21 | echo ' ',$c_obj['name'],' (',$c_obj['articles'],') '; 22 | } 23 | echo '- 发新帖 24 |
25 | 26 |
'; 27 | if($tip){ 28 | echo '

',$tip,'

'; 29 | } 30 | echo ' 31 |

32 | 33 |

34 |

35 |

36 | 37 | 38 |

发帖指南:

39 |

40 | 字数限制: 标题最多字数',$options['article_title_max_len'],',内容最多字数:',$options['article_content_max_len'],'
41 | 纯文本格式,不支持html 或 ubb 代码
42 | 贴图: 可直接粘贴图片地址,如 http://www.baidu.com/xxx.gif (支持jpg/gif/png后缀名),也可直接上传
43 | 贴视频: 可直接视频地址栏里的网址,如 http://www.tudou.com/programs/view/PAH86KJNoiQ/ (仅支持土豆/优酷/QQ)
44 |

45 |
46 |
'; 47 | 48 | 49 | ?> -------------------------------------------------------------------------------- /readme-nginx.txt: -------------------------------------------------------------------------------- 1 | rewrite ^/n-([0-9]+)(-([0-9]*))?$ /nodepage.php?cid=$1&page=$3 last; 2 | rewrite ^/t-([0-9]+)(-([0-9]*))?$ /topicpage.php?tid=$1&page=$3 last; 3 | rewrite ^/notifications$ /notifications.php last; 4 | rewrite ^/favorites$ /favorites.php last; 5 | rewrite ^/qqlogin$ /qqlogin.php last; 6 | rewrite ^/qqcallback$ /qqcallback.php last; 7 | rewrite ^/qqsetname$ /qqsetname.php last; 8 | rewrite ^/feed$ /feed.php last; 9 | rewrite ^/robots$ /robots.php last; 10 | rewrite ^/forgot$ /forgot.php last; 11 | rewrite ^/sitemap-([0-9]+)$ /sitemap.php?id=$1 last; 12 | rewrite ^/upload-(650|590)$ /upload.php?mw=$1 last; 13 | rewrite ^/viewat-(desktop|mobile)$ /viewat.php?via=$1 last; 14 | rewrite ^/goto-t-([0-9]+)$ /gototopic.php?tid=$1 last; 15 | rewrite ^/member/(.+)$ /member.php?mid=$1 last; 16 | rewrite ^/newpost/([0-9]+)$ /newpost.php?cid=$1 last; 17 | rewrite ^/admin-edit-post-([0-9]+)$ /admin-edit-post.php?tid=$1 last; 18 | rewrite ^/admin-edit-comment-([0-9]+)$ /admin-edit-comment.php?rid=$1 last; 19 | rewrite ^/admin-setuser-([0-9]+)$ /admin-setuser.php?mid=$1 last; 20 | rewrite ^/admin-node(-([0-9]*))?$ /admin-node.php?nid=$2 last; 21 | rewrite ^/admin-setting$ /admin-setting.php last; 22 | rewrite ^/admin-user-([a-z]+)(-([0-9]*))?$ /admin-user.php?act=$1&mid=$3 last; 23 | rewrite ^/admin-link-([a-z]+)(-([0-9]*))?$ /admin-link.php?act=$1&lid=$3 last; 24 | rewrite ^/(login|sigin|logout|forgot|setting|install)$ /$1.php last; 25 | rewrite ^/.*?templates /404.html last; 26 | rewrite ^/.*?avatar/$ /404.html last; 27 | rewrite ^/upload/([0-9]+/)?$ /404.html last; 28 | rewrite ^/.*?avatar/(large|normal|mini)/$ /404.html last; 29 | 30 | 31 | 32 | rewrite ^/user-edit-post-([0-9]+)$ /user-edit-post.php?tid=$1 last; -------------------------------------------------------------------------------- /templates/default/newpost.php: -------------------------------------------------------------------------------- 1 | 7 | 8 |
9 | ',$options['name'],' » '; 10 | if($options['main_nodes']){ 11 | echo ''; 21 | }else{ 22 | echo ' ',$c_obj['name'],' (',$c_obj['articles'],')'; 23 | } 24 | echo ' 25 | - 发新帖 26 | 27 |
28 | 29 |
'; 30 | if($tip){ 31 | echo '

',$tip,'

'; 32 | } 33 | echo ' 34 | 35 |

36 | 37 |

38 | 39 |
自动保存正在初始化...
40 |

'; 41 | if(!$options['close_upload']){ 42 | include(dirname(__FILE__) . '/upload.php'); 43 | } 44 | echo ' 45 |

46 | 47 | 48 | 49 | 50 | 51 |
'; 52 | 53 | 54 | ?> 55 | -------------------------------------------------------------------------------- /templates/default/user-edit-post.php: -------------------------------------------------------------------------------- 1 | 6 |
7 | ',$options['name'],' » - 修改帖子 » 8 | 20 |
21 | 22 |
'; 23 | if($tip){ 24 | echo '

',$tip,'

'; 25 | } 26 | 27 | echo ' 28 |

29 | 30 | 31 | 32 |

33 | 34 |

35 | 36 |

37 |

38 | '; 39 | 40 | if(!$options['close_upload']){ 41 | include(dirname(__FILE__) . '/upload.php'); 42 | } 43 | 44 | echo ' 45 |

46 | 47 |

发帖指南:

48 |

49 | 纯文本格式,不支持html 或 ubb 代码
50 | 贴图: 可直接粘贴图片地址,如 http://www.baidu.com/xxx.gif (支持jpg/gif/png后缀名),也可直接上传
51 | 贴视频: 可直接视频地址栏里的网址,如 http://www.tudou.com/programs/view/PAH86KJNoiQ/ (仅支持土豆/优酷/QQ)
52 |

53 | 54 |
'; 55 | 56 | 57 | ?> 58 | -------------------------------------------------------------------------------- /notifications.php: -------------------------------------------------------------------------------- 1 | fetch_one_array("SELECT * FROM yunbbs_users WHERE id='".$cur_uid."' LIMIT 1"); 19 | 20 | if($cur_user['notic']){ 21 | $ids = implode(',', array_unique(explode(',', substr($cur_user['notic'], 0, -1)))); 22 | 23 | $query_sql = "SELECT a.id,a.uid,a.cid,a.ruid,a.title,a.addtime,a.edittime,a.comments,c.name as cname,u.avatar as uavatar,u.name as author,ru.name as rauthor 24 | FROM yunbbs_articles a 25 | LEFT JOIN yunbbs_categories c ON c.id=a.cid 26 | LEFT JOIN yunbbs_users u ON a.uid=u.id 27 | LEFT JOIN yunbbs_users ru ON a.ruid=ru.id 28 | WHERE a.id in(".$ids.")"; 29 | $query = $DBS->query($query_sql); 30 | $articledb=array(); 31 | while ($article = $DBS->fetch_array($query)) { 32 | // 格式化内容 33 | $article['addtime'] = showtime($article['addtime']); 34 | $article['edittime'] = showtime($article['edittime']); 35 | $articledb[] = $article; 36 | } 37 | unset($article); 38 | $DBS->free_result($query); 39 | } 40 | 41 | // 页面变量 42 | $title = '站内提醒'; 43 | $newest_nodes = get_newest_nodes(); 44 | 45 | $pagefile = dirname(__FILE__) . '/templates/default/'.$tpl.'notifications.php'; 46 | 47 | include(dirname(__FILE__) . '/templates/default/'.$tpl.'layout.php'); 48 | 49 | ?> 50 | -------------------------------------------------------------------------------- /admin-user.php: -------------------------------------------------------------------------------- 1 | unbuffered_query("UPDATE yunbbs_users SET flag=5 WHERE id='$mid'")){ 18 | if($act=='pass'){ 19 | $tip1 = '已成功操作'; 20 | }else{ 21 | $tip2 = '已成功操作'; 22 | } 23 | }else{ 24 | if($act=='pass'){ 25 | $tip1 = '数据库更新失败,修改尚未保存,请稍后再试'; 26 | }else{ 27 | $tip2 = '数据库更新失败,修改尚未保存,请稍后再试'; 28 | } 29 | } 30 | 31 | } 32 | 33 | 34 | // users表flag 列没加入到索引,如果用户上10万,获取下面用户有点慢,8~10秒 35 | 36 | // 获取最近等待审核的用户 37 | $query_sql = "SELECT id,name,regtime FROM yunbbs_users WHERE flag=1 ORDER BY id DESC LIMIT 10"; 38 | $query = $DBS->query($query_sql); 39 | $userdb=array(); 40 | while ($user = $DBS->fetch_array($query)) { 41 | // 格式化内容 42 | $user['regtime'] = showtime($user['regtime']); 43 | $userdb[] = $user; 44 | } 45 | 46 | // 获取最近被禁用的用户 47 | $query_sql = "SELECT id,name,regtime FROM yunbbs_users WHERE flag=0 ORDER BY id DESC LIMIT 10"; 48 | $query = $DBS->query($query_sql); 49 | $userdb2=array(); 50 | while ($user = $DBS->fetch_array($query)) { 51 | // 格式化内容 52 | $user['regtime'] = showtime($user['regtime']); 53 | $userdb2[] = $user; 54 | } 55 | 56 | // 页面变量 57 | $title = '用户管理'; 58 | 59 | 60 | $pagefile = dirname(__FILE__) . '/templates/default/'.$tpl.'admin-user.php'; 61 | 62 | include(dirname(__FILE__) . '/templates/default/'.$tpl.'layout.php'); 63 | 64 | ?> 65 | -------------------------------------------------------------------------------- /templates/default/admin-node.php: -------------------------------------------------------------------------------- 1 | 6 |
7 | ',$options['name'],' » - 添加分类 8 |
9 | 10 |
'; 11 | if($tip1){ 12 | echo '

',$tip1,'

'; 13 | } 14 | 15 | echo ' 16 |
17 | 18 |

输入新分类名:
19 | 分类简介: (255个字节以内)
20 |
21 |

22 |

注:分类添加后不能删除,只能修改。

23 |
24 |
'; 25 | 26 | echo ' 27 | 28 |
修改分类
29 | 30 |
'; 31 | if($tip2){ 32 | echo '

',$tip2,'

'; 33 | } 34 | 35 | echo ' 36 |
'; 37 | if($c_obj){ 38 | echo ' 39 | 40 |

分类名:
41 | 分类简介: (255个字节以内)
42 |
43 |

'; 44 | 45 | }else{ 46 | echo ' 47 | 48 |

输入分类id查找: 如红色部分:n-1 49 |

'; 50 | 51 | } 52 | 53 | echo '
54 |
'; 55 | 56 | ?> 57 | -------------------------------------------------------------------------------- /templates/default/ios_admin-node.php: -------------------------------------------------------------------------------- 1 | 6 |
7 | ',$options['name'],' » - 添加分类 8 |
9 | 10 |
'; 11 | if($tip1){ 12 | echo '

',$tip1,'

'; 13 | } 14 | 15 | echo ' 16 |
17 | 18 |

输入新分类名:

19 | 分类简介: (255个字节以内)
20 |
21 |

22 |

注:分类添加后不能删除,只能修改。

23 |
24 |
'; 25 | 26 | echo ' 27 | 28 |
修改分类
29 | 30 |
'; 31 | if($tip2){ 32 | echo '

',$tip2,'

'; 33 | } 34 | 35 | echo ' 36 |
'; 37 | if($c_obj){ 38 | echo ' 39 | 40 |

分类名:
41 | 分类简介: (255个字节以内)
42 |
43 |

'; 44 | 45 | }else{ 46 | echo ' 47 | 48 |

输入分类id查找: 如红色部分:n-1
49 |

'; 50 | 51 | } 52 | 53 | echo '
54 |
'; 55 | 56 | ?> 57 | -------------------------------------------------------------------------------- /static/js/jquery.upload-1.0.2.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery.upload v1.0.2 3 | * 4 | * Copyright (c) 2010 lagos 5 | * Dual licensed under the MIT and GPL licenses. 6 | * 7 | * http://lagoscript.org 8 | */ 9 | (function(b){function m(e){return b.map(n(e),function(d){return''}).join("")}function n(e){function d(c,f){a.push({name:c,value:f})}if(b.isArray(e))return e;var a=[];if(typeof e==="object")b.each(e,function(c){b.isArray(this)?b.each(this,function(){d(c,this)}):d(c,b.isFunction(this)?this():this)});else typeof e==="string"&&b.each(e.split("&"),function(){var c=b.map(this.split("="),function(f){return decodeURIComponent(f.replace(/\+/g," "))}); 10 | d(c[0],c[1])});return a}function o(e,d){var a;a=b(e).contents().get(0);if(b.isXMLDoc(a)||a.XMLDocument)return a.XMLDocument||a;a=b(a).find("body").html();switch(d){case "xml":a=a;if(window.DOMParser)a=(new DOMParser).parseFromString(a,"application/xml");else{var c=new ActiveXObject("Microsoft.XMLDOM");c.async=false;c.loadXML(a);a=c}break;case "json":a=window.eval("("+a+")");break}return a}var p=0;b.fn.upload=function(e,d,a,c){var f=this,g,j,h;h="jquery_upload"+ ++p;var k=b('