27 | hh.....You Requested the page that is no longer There.
28 | Back To Home 29 |├── util ├── __init__.py ├── error.py ├── flash.py ├── captcha.py ├── sendemail.py ├── function.py └── pxfilter.py ├── controller ├── __init__.py ├── sort.py ├── download.py ├── search.py ├── main.py ├── message.py ├── ajax.py ├── dashboard.py ├── open.py └── post.py ├── static ├── assets │ ├── css │ │ ├── none.css │ │ ├── 404.css │ │ └── admin.css │ ├── js │ │ ├── editpost.js │ │ ├── message.js │ │ ├── like.js │ │ ├── edit.js │ │ ├── admin.js │ │ ├── publish.js │ │ ├── nologin.js │ │ ├── app.js │ │ ├── polyfill │ │ │ ├── rem.min.js │ │ │ └── respond.min.js │ │ └── post.js │ ├── i │ │ ├── bg1.png │ │ ├── logo.png │ │ ├── favicon.png │ │ ├── error-img.png │ │ ├── app-icon72x72@2x.png │ │ ├── examples │ │ │ ├── admin-ie.png │ │ │ ├── blogPage.png │ │ │ ├── landing.png │ │ │ ├── adminPage.png │ │ │ ├── loginPage.png │ │ │ ├── admin-chrome.png │ │ │ ├── admin-firefox.png │ │ │ ├── admin-opera.png │ │ │ ├── admin-safari.png │ │ │ ├── landingPage.png │ │ │ └── sidebarPage.png │ │ └── startup-640x1096.png │ ├── fonts │ │ ├── captcha.ttf │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ ├── simditor │ │ ├── styles │ │ │ └── simditor.scss │ │ ├── images │ │ │ └── image.png │ │ └── scripts │ │ │ ├── module.min.js │ │ │ ├── hotkeys.min.js │ │ │ ├── uploader.min.js │ │ │ ├── module.js │ │ │ └── hotkeys.js │ ├── cropbox │ │ ├── images │ │ │ └── avatar.png │ │ └── css │ │ │ └── style.css │ ├── ZeroClipboard │ │ └── ZeroClipboard.swf │ └── highlightjs │ │ └── default.min.css └── face │ └── guest.png ├── download └── .gitignore ├── extends ├── __init__.py └── torndsession │ ├── test │ └── TEST_DIRECTORY │ ├── __init__.py │ ├── sessionhandler.py │ ├── driver.py │ ├── redissession.py │ ├── memorysession.py │ └── filesession.py ├── model ├── __init__.py ├── sort.py ├── article.py ├── user.py └── base.py ├── .gitignore ├── requirements.txt ├── templates ├── error.htm ├── self.htm ├── upload.htm ├── admin │ ├── error.htm │ ├── sidebar.htm │ ├── sort.htm │ ├── newsort.htm │ ├── userlist.htm │ ├── base.htm │ ├── index.htm │ ├── sortdetail.htm │ ├── invite.htm │ ├── setting.htm │ └── userdetail.htm ├── 404.htm ├── msgdetail.htm ├── renewpwd.htm ├── base.htm ├── forgetpwd.htm ├── face.htm ├── search.htm ├── login.htm ├── open_list.htm ├── like.htm ├── bookmark.htm ├── main.htm ├── sort.htm ├── header.htm ├── register.htm ├── message.htm ├── publish.htm ├── edit.htm ├── user.htm └── dashboard.htm ├── config.yaml.sample ├── bin ├── update.py └── initdb.py └── main.py /util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /controller/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/assets/css/none.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /download/.gitignore: -------------------------------------------------------------------------------- 1 | # 为毛不能commit空文件夹??求解释!! 2 | -------------------------------------------------------------------------------- /extends/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'phithon' 2 | -------------------------------------------------------------------------------- /extends/torndsession/test/TEST_DIRECTORY: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /model/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'phithon' 2 | -------------------------------------------------------------------------------- /extends/torndsession/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'phithon' 2 | -------------------------------------------------------------------------------- /static/assets/js/editpost.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | 3 | }) -------------------------------------------------------------------------------- /static/face/guest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/face/guest.png -------------------------------------------------------------------------------- /static/assets/i/bg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/bg1.png -------------------------------------------------------------------------------- /static/assets/i/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/logo.png -------------------------------------------------------------------------------- /static/assets/i/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/favicon.png -------------------------------------------------------------------------------- /static/assets/i/error-img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/error-img.png -------------------------------------------------------------------------------- /static/assets/fonts/captcha.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/fonts/captcha.ttf -------------------------------------------------------------------------------- /static/assets/simditor/styles/simditor.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | @import 'fonticon'; 4 | @import 'editor'; 5 | -------------------------------------------------------------------------------- /static/assets/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /static/assets/i/app-icon72x72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/app-icon72x72@2x.png -------------------------------------------------------------------------------- /static/assets/i/examples/admin-ie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/admin-ie.png -------------------------------------------------------------------------------- /static/assets/i/examples/blogPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/blogPage.png -------------------------------------------------------------------------------- /static/assets/i/examples/landing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/landing.png -------------------------------------------------------------------------------- /static/assets/i/startup-640x1096.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/startup-640x1096.png -------------------------------------------------------------------------------- /static/assets/cropbox/images/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/cropbox/images/avatar.png -------------------------------------------------------------------------------- /static/assets/i/examples/adminPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/adminPage.png -------------------------------------------------------------------------------- /static/assets/i/examples/loginPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/loginPage.png -------------------------------------------------------------------------------- /static/assets/simditor/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/simditor/images/image.png -------------------------------------------------------------------------------- /static/assets/i/examples/admin-chrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/admin-chrome.png -------------------------------------------------------------------------------- /static/assets/i/examples/admin-firefox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/admin-firefox.png -------------------------------------------------------------------------------- /static/assets/i/examples/admin-opera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/admin-opera.png -------------------------------------------------------------------------------- /static/assets/i/examples/admin-safari.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/admin-safari.png -------------------------------------------------------------------------------- /static/assets/i/examples/landingPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/landingPage.png -------------------------------------------------------------------------------- /static/assets/i/examples/sidebarPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/i/examples/sidebarPage.png -------------------------------------------------------------------------------- /static/assets/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /static/assets/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /static/assets/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /static/assets/ZeroClipboard/ZeroClipboard.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/ZeroClipboard/ZeroClipboard.swf -------------------------------------------------------------------------------- /static/assets/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phith0n/Minos/HEAD/static/assets/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.DS_Store 2 | .idea/* 3 | *.py[cod] 4 | *.yaml 5 | *.so 6 | *.egg 7 | *.egg-info 8 | static/face/*/* 9 | static/upimg/* 10 | -------------------------------------------------------------------------------- /util/error.py: -------------------------------------------------------------------------------- 1 | __author__ = 'phithon' 2 | 3 | class SpecialError(Exception): 4 | def __init__(self, message): 5 | self.message = message 6 | 7 | def __str__(self): 8 | return repr(self.message) -------------------------------------------------------------------------------- /static/assets/js/message.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $("#readall a").on("click", function(){ 3 | $("#readall").submit(); 4 | return false; 5 | }); 6 | $("#deleteall a").on("click", function(){ 7 | if(confirm("是否删除所有消息,该操作将不能恢复")){ 8 | $("#deleteall").submit(); 9 | } 10 | return false; 11 | }); 12 | }) -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | --index-url http://pypi.douban.com/simple/ 2 | --extra-index-url http://mirrors.aliyun.com/pypi/simple/ 3 | --allow-external PIL 4 | --allow-unverified PIL 5 | tornado>=4.1 6 | motor>=0.4 7 | redis>=2.10.3 8 | pymongo==2.8.0 9 | bcrypt>=1.1.1 10 | pyyaml>=3.11 11 | PIL>=1.1.7 12 | wheezy.captcha>=0.1.44 13 | futures>=2.2.0 14 | xxtea>=0.2.1 15 | pycurl -------------------------------------------------------------------------------- /static/assets/js/like.js: -------------------------------------------------------------------------------- 1 | $(document).on("ready", function(){ 2 | $(".cancel-like").click(function(t){ 3 | if(!confirm("是否取消赞这篇文章?")) return false; 4 | this.parentNode.submit(); 5 | return false; 6 | }) 7 | $(".cancel-bookmark").click(function(t){ 8 | if(!confirm("是否取消收藏这篇文章?")) return false; 9 | this.parentNode.submit(); 10 | return false; 11 | }) 12 | }) -------------------------------------------------------------------------------- /templates/error.htm: -------------------------------------------------------------------------------- 1 | {% extends "base.htm" %} 2 | 3 | {% block header_title %}{{ error_title }}{% end %} 4 | {% block body %} 5 | {% include "header.htm" %} 6 |
4 | 5 | {{ current_user["username"] }} 6 | 7 |
8 |
11 | 我的金币:{{ current_user["money"] }}
12 | 等级:{% if power == 'admin' %}管理员{% else %}普通白帽子{% end %}
13 | 我的收藏 | 我的喜欢
14 |
{{ error_info }}
20 |
27 | hh.....You Requested the page that is no longer There.
28 | Back To Home 29 || ID | 版块名称 | 首页显示 | 文章数量 | 管理 | 24 |
|---|---|---|---|---|
| {{ i }} | 31 |{{ sort['name'] }} |
32 | {% if sort['show'] %}是{% else %}否{% end %} | 33 |{{ sort.get('article') }} | 34 |35 | 查看详情 36 | | 37 |
| 时间 | 19 |标题 | 20 |状态 | 21 |作者 | 22 |
| {{ time_span(post['time']) }} | 26 |{{ post['title'] }} | 27 |公开 | 28 |{{ post['user'] }} | 29 |
| ID | 用户名 | 最近登录时间 | 金币 | 管理 | 31 |
|---|---|---|---|---|
| {{ i }} | 38 |{{ user["username"] }} | 39 |{{ humantime(user.get('logintime', user.get('time'))) }} |
40 | {{ user['money'] }} | 41 |42 | 查看详情 43 | | 44 |
| 标题 | 19 | 20 |作者 | 21 |
| 26 | {% if post.get('star') %}[精华]{% end %} 27 | 28 | {{ post['title'] }} 29 | 30 | | 31 | 38 |{{ post['user'] }} | 39 |
| ID | 用户名 | 最近登录时间 | 金币 | 管理 | 32 |
|---|---|---|---|---|
| {{ i }} | 39 |{{ user["username"] }} | 40 |{{ humantime(user.get('logintime', user.get('time'))) }} | 41 |{{ user['money'] }} | 42 |43 | 查看详情 44 | | 45 |
| 作者 | 23 |标题 | 24 |板块 | 25 |操作 | 26 |
| {{ post['user'] }} | 30 |{{ post['title'] }} | 31 |{{ post.get('sort').get('name') }} | 32 |33 | 38 | | 39 |
| 作者 | 23 |标题 | 24 |板块 | 25 |操作 | 26 |
| {{ post['user'] }} | 30 |{{ post['title'] }} | 31 |{{ post.get("sort").get("name") }} | 32 |33 | 38 | | 39 |
| 标题 | 22 | 23 |作者 | 24 |
| 29 | {% if post.get('star') %}[精华]{% end %} 30 | 31 | {{ post['title'] }} 32 | 33 | | 34 | 43 |{{ post['user'] }} | 44 |
| 标题 | 23 | 24 |作者 | 25 |
| {{ post['title'] }} | 30 | 39 |{{ post['user'] }} | 40 |
板块详情
25 |帖子数量:{{ sort['article'] }}
28 |{{ user.get('signal') }}19 | {% if user.get('website') and user.get('openwebsite') %} 20 | 主页:{{ user.get('website') }} 21 |
| 时间 | 34 |标题 | 35 |板块 | 36 |
| {{ time_span(post.get('time')) }} | 40 |41 | {% if post.get('star') %}[精华]{% end %} 42 | {{ post.get('title') }} 43 | | 44 |{{ post['sort']['name'] }} | 45 |
59 | 60 | {{ user["username"] }} 61 | 62 |
63 |
66 | 等级:{% if user["power"] == 20 %}管理员{% else %}普通白帽子{% end %}
67 |
| ID | 邀请码 | 生成时间 | 使用者 | 管理 | 43 |
|---|---|---|---|---|
| {{ i }} | 50 |{{ invite["code"] }} |
51 | {{ humantime(invite.get('time')) }} | 52 |53 | {% if invite.get('used') %} 54 | {{ invite['user'] }} 55 | {% else %} 56 | 尚未使用 57 | {% end %} 58 | | 59 |60 | 69 | | 70 |
网站设置
24 | 25 || # | 29 |文件名 | 30 |大小 | 31 |进度 | 32 |管理 | 33 |
|---|---|---|---|---|
| {{ i }} | 40 |{{ task['filename'] }} | 41 |{{ getsize(task['savepath']) }} | 42 |已完成{% else %}warning">未完成{% 44 | end %} 45 | | 46 |47 | 54 | | 55 |
用户头像
26 |