index.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. <html>
  2. <head>
  3. <title>{{title}}</title>
  4. <link rel="stylesheet" href="{{url_for('static', filename='primer.css')}}">
  5. <link rel="stylesheet" href="{{url_for('static', filename='style.css')}}">
  6. <link rel="stylesheet" href="{{url_for('static', filename='font-awesome/css/font-awesome.min.css')}}">
  7. <script type="text/x-mathjax-config">
  8. MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
  9. </script>
  10. <script type="text/javascript" async
  11. src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML">
  12. </script>
  13. <meta name="twitter:creator" content="@{{logo}}">
  14. <meta name="twitter:title" content="{{title}}">
  15. <meta name="twitter:site" content="@{{logo}}">
  16. <meta name="twitter:card" content="summary">
  17. <meta name="twitter:description" content="{{data}}" />
  18. <link rel="shortcut icon" href="{{url_for('static', filename='images/on.ico')}}">
  19. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. </head>
  21. <body>
  22. <br>
  23. <div class="one-fifth column">
  24. <div id="top">
  25. <a href="/" id="logo">{{logo}}</a>
  26. <div>
  27. <a href="/recentchanges" id="RecentChanges"><i class="fa fa-refresh" aria-hidden="true"></i><span id="is_mobile">최근 변경</span></a>
  28. <a href="/recentdiscuss" id="RecentChanges"><i class="fa fa-comment" aria-hidden="true"></i><span id="is_mobile">최근 토론</span></a>
  29. <a href="/random" id="log"><i class="fa fa-random" aria-hidden="true"></i></a>
  30. <a href="/user" id="log"><i class="fa fa-user" aria-hidden="true"></i></a>
  31. <a href="/other" id="log"><i class="fa fa-cogs" aria-hidden="true"></i></a>
  32. </div>
  33. <form method="POST" action="/search" id="search">
  34. <div class="input-group">
  35. <input class="form-control" name="search" type="text">
  36. <span class="input-group-button"><button class="btn"><i class="fa fa-search" aria-hidden="true"></i></button></span>
  37. </div>
  38. </form>
  39. </div>
  40. </div>
  41. <div class="scroll-buttons">
  42. <a class="scroll-toc" href="#toc"><i class="fa fa-list-alt" aria-hidden="true"></i></a>
  43. <a class="scroll-button" href="#top" id="left"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
  44. <a class="scroll-bottom" href="#powered" id="right"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
  45. </div>
  46. <div id="all_contect">
  47. <div id="left_bar">
  48. <a href="#">맨 위로</a>
  49. <br>
  50. <br>
  51. {% autoescape false %}
  52. {{left}}
  53. {% endautoescape %}
  54. </div>
  55. <div class="four-fifths column">
  56. {% if tn == 1 %}
  57. <div id="tool">
  58. <nav class="menu">
  59. <a class="menu-item selected" href="#" onclick="return false">문서</a>
  60. <a class="menu-item" href="/edit/{{page}}">수정</a>
  61. <a class="menu-item" id="{{topic}}" href="/topic/{{page}}">토론</a>
  62. <a class="menu-item" href="/delete/{{page}}">삭제</a>
  63. <a class="menu-item" href="/move/{{page}}">이동</a>
  64. <a class="menu-item" href="/raw/{{page}}">Raw</a>
  65. <a class="menu-item" href="/history/{{page}}/n/1">역사</a>
  66. <a class="menu-item" href="/backlink/{{page}}/n/1">역링크</a>
  67. <a class="menu-item" style="{{style}}" href="/w/{{uppage}}">상위</a>
  68. </nav>
  69. </div>
  70. <h1 class="title">{{title}} <sub>{{acl}}</sub></h1>
  71. {% if redirect %}
  72. {% autoescape false %}
  73. <li style="margin-top: -20px;">{{redirect}}</li>
  74. <br>
  75. {% endautoescape %}
  76. {% endif %}
  77. <div>
  78. {% autoescape false %}
  79. {{data}}
  80. {% endautoescape %}
  81. </div>
  82. {% elif tn == 2 %}
  83. {% if preview == 1 %}
  84. <div id="tool">
  85. <nav class="menu">
  86. <a class="menu-item selected" href="#">미리보기</a>
  87. <a class="menu-item" href="/w/{{page}}">문서</a>
  88. </nav>
  89. </div>
  90. {% else %}
  91. <div id="tool">
  92. <nav class="menu">
  93. <a class="menu-item selected" href="#">수정</a>
  94. <a class="menu-item" href="/w/{{page}}">문서</a>
  95. </nav>
  96. </div>
  97. {% endif %}
  98. {% if preview == 1 %}
  99. <h1 class="title">{{title}} <sub>(미리보기)</sub></h1>
  100. {% else %}
  101. <h1 class="title">{{title}} <sub>(수정)</sub></h1>
  102. {% endif %}
  103. {% if notice %}
  104. <br>
  105. <span>{{notice}}</span>
  106. <br>
  107. <br>
  108. {% endif %}
  109. {% if section == 1 %}
  110. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}/section/{{number}}">
  111. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  112. {% if preview == 1 %}
  113. <textarea style="display:none;" rows="30" cols="100" name="otent" form="usrform">{{odata}}</textarea>
  114. {% else %}
  115. <textarea style="display:none;" rows="30" cols="100" name="otent" form="usrform">{{data}}</textarea>
  116. {% endif %}
  117. <input name="send" style="margin-top:10px;width:100%" type="text">
  118. <br>
  119. <br>
  120. <div class="form-actions">
  121. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}/section/{{number}}';">저장</button>
  122. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}/section/{{number}}';">미리보기</button>
  123. </div>
  124. </form>
  125. {% else %}
  126. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}">
  127. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  128. <input name="send" style="margin-top:10px;width:100%" type="text">
  129. <br>
  130. <br>
  131. <div class="form-actions">
  132. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}';">저장</button>
  133. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}';">미리보기</button>
  134. </div>
  135. </form>
  136. {% endif %}
  137. {% if preview == 1 %}
  138. {% autoescape false %}
  139. {{enddata}}
  140. {% endautoescape %}
  141. {% endif %}
  142. {% elif tn == 3 %}
  143. <h1 class="title">{{title}}</h1>
  144. <table style="width: 100%;">
  145. <tbody>
  146. <tr>
  147. <td style="text-align: center;width:33.33%;">문서명</td>
  148. <td style="text-align: center;width:33.33%;">기여자</td>
  149. <td style="text-align: center;width:33.33%;">시간</td>
  150. </tr>
  151. </tbody>
  152. </table>
  153. {% autoescape false %}
  154. {{rows}}
  155. {% endautoescape %}
  156. {% elif tn == 4 %}
  157. <h1 class="title">{{title}}</h1>
  158. {% autoescape false %}
  159. {{rows}}
  160. {% endautoescape %}
  161. {% elif tn == 5 %}
  162. <div id="tool">
  163. <nav class="menu">
  164. <a class="menu-item selected" href="#">역사</a>
  165. <a class="menu-item" href="/w/{{page}}">문서</a>
  166. </nav>
  167. </div>
  168. <h1 class="title">{{title}} <sub>(역사)</sub></h1>
  169. <form class="usrform" method='POST' action='/history/{{page}}/n/1'>
  170. <select name="a">
  171. {% autoescape false %}
  172. {{select}}
  173. {% endautoescape %}
  174. </select>
  175. <select name="b">
  176. {% autoescape false %}
  177. {{select}}
  178. {% endautoescape %}
  179. </select>
  180. <button class="btn btn-primary" type='submit'>리비전 비교</button>
  181. <br>
  182. <br>
  183. <table style="width: 100%;">
  184. <tbody>
  185. <tr>
  186. <td style="text-align: center;width:33.33%;">판</td>
  187. <td style="text-align: center;width:33.33%;">기여자</td>
  188. <td style="text-align: center;width:33.33%;">시간</td>
  189. </tr>
  190. </tbody>
  191. </table>
  192. {% autoescape false %}
  193. {{rows}}
  194. {% endautoescape %}
  195. {% elif tn == 6 %}
  196. <div id="tool">
  197. <nav class="menu">
  198. <a class="menu-item selected" href="#" onclick="return false">옛문서</a>
  199. <a class="menu-item" href="javascript:history.back(-1);">뒤로가기</a>
  200. </nav>
  201. </div>
  202. <h1 class="title">{{title}} <sub>(옛문서)</sub></h1>
  203. <div>
  204. {% autoescape false %}
  205. {{data}}
  206. {% endautoescape %}
  207. </div>
  208. {% elif tn == 7 %}
  209. <div id="tool">
  210. <nav class="menu">
  211. <a class="menu-item selected" href="#" onclick="return false">raw</a>
  212. <a class="menu-item" href="/w/{{page}}">문서</a>
  213. </nav>
  214. </div>
  215. <h1 class="title">{{title}} <sub>(raw)</sub></h1>
  216. <div>
  217. {% autoescape false %}
  218. {{data}}
  219. {% endautoescape %}
  220. </div>
  221. {% elif tn == 8 %}
  222. <h1 class="title">{{title}} <sub>(삭제)</sub></h1>
  223. <div id="tool">
  224. <nav class="menu">
  225. <a class="menu-item selected" href="#" onclick="return false">삭제</a>
  226. <a class="menu-item" href="/w/{{page}}">문서</a>
  227. </nav>
  228. </div>
  229. <form id="usrform" method="POST" action="/delete/{{page}}">
  230. {{plus}}
  231. <br>
  232. <br>
  233. <button class="btn btn-primary" type="submit">삭제</button>
  234. </form>
  235. {% elif tn == 9 %}
  236. <h1 class="title">{{title}} <sub>(이동)</sub></h1>
  237. <div id="tool">
  238. <nav class="menu">
  239. <a class="menu-item selected" href="#" onclick="return false">이동</a>
  240. <a class="menu-item" href="/w/{{page}}">문서</a>
  241. </nav>
  242. </div>
  243. <form id="usrform" method="POST" action="/move/{{page}}">
  244. {{plus}}
  245. <br>
  246. <br>
  247. <input class="form-control input-sm" value="{{title}}" name="title" type="text">
  248. <br>
  249. <br>
  250. <button class="btn btn-primary" type="submit">이동</button>
  251. </form>
  252. {% elif tn == 10 %}
  253. <h1 class="title">{{title}} <sub>(토론 목록)</sub></h1>
  254. {% if list == 1 %}
  255. <div id="tool">
  256. <nav class="menu">
  257. <a class="menu-item selected" href="#" onclick="return false">토론 목록</a>
  258. <a class="menu-item" href="/w/{{page}}">문서</a>
  259. </nav>
  260. </div>
  261. {% else %}
  262. <div id="tool">
  263. <nav class="menu">
  264. <a class="menu-item selected" href="#" onclick="return false">닫힌 토론 목록</a>
  265. <a class="menu-item" href="/topic/{{page}}">토론 목록</a>
  266. </nav>
  267. </div>
  268. {% endif %}
  269. <form id="usrform" method="POST" action="/topic/{{page}}">
  270. {% autoescape false %}
  271. {{plus}}
  272. {% endautoescape %}
  273. {% if list == 1 %}
  274. <br>
  275. <a href="/topic/{{page}}/close">(닫힌 토론 보기)</a>
  276. <br>
  277. <br>
  278. <input class="form-control" name="topic" style="width: 100%">
  279. <br>
  280. <br>
  281. <button class="btn btn-primary" type="submit">새토론</button>
  282. {% endif %}
  283. </form>
  284. {% elif tn == 11 %}
  285. <h1 class="title">{{title}} <sub>(토론)</sub></h1>
  286. <div id="tool">
  287. <nav class="menu">
  288. <a class="menu-item selected" href="#" onclick="return false">토론</a>
  289. <a class="menu-item" href="/topic/{{page}}">토론 목록</a>
  290. </nav>
  291. </div>
  292. <h2>{{sub}}</h2>
  293. <br>
  294. {% autoescape false %}
  295. {{rows}}
  296. {% endautoescape %}
  297. {% if ban == 1 %}
  298. {% else %}
  299. <a href="javascript:window.location.reload(true);">(갱신)</a>
  300. <form id="usrform" method="POST" action="/topic/{{page}}/sub/{{suburl}}">
  301. <br>
  302. <textarea rows="10" cols="100" name="content" form="usrform"></textarea>
  303. <br>
  304. <br>
  305. <button class="btn btn-primary" type="submit">전송</button>
  306. </form>
  307. {% endif %}
  308. {% elif tn == 12 %}
  309. <h1 class="title">{{title}}</h1>
  310. <table style="width: 100%;">
  311. <tbody>
  312. <tr>
  313. <td style="text-align: center;width:50%;">토론명</td>
  314. <td style="text-align: center;width:50%;">시간</td>
  315. </tr>
  316. </tbody>
  317. </table>
  318. {% autoescape false %}
  319. {{rows}}
  320. {% endautoescape %}
  321. {% elif tn == 13 %}
  322. <h1 class="title">{{title}} <sub>(되돌리기)</sub></h1>
  323. <div id="tool">
  324. <nav class="menu">
  325. <a class="menu-item selected" href="#" onclick="return false">되돌리기</a>
  326. <a class="menu-item" href="javascript:history.back(-1);">뒤로가기</a>
  327. </nav>
  328. </div>
  329. <form id="usrform" method="POST" action="/revert/{{page}}/r/{{r}}">
  330. {{plus}}
  331. <br>
  332. <br>
  333. <button class="btn btn-primary" type="submit">되돌리기</button>
  334. </form>
  335. {% elif tn == 15 %}
  336. <h1 class="title">{{title}}</h1>
  337. {% if title == '회원가입' %}
  338. <form id="usrform" method="POST" action="/register">
  339. {% elif title == '비밀번호 변경' %}
  340. <form id="usrform" method="POST" action="/change">
  341. {% else %}
  342. <form id="usrform" method="POST" action="/login">
  343. {% endif %}
  344. <span>아이디</span>
  345. <br>
  346. <br>
  347. <input name="id" type="text">
  348. <br>
  349. <br>
  350. <span>{% if title == '비밀번호 변경' %}현재{% endif %}비밀번호</span>
  351. <br>
  352. <br>
  353. <input name="pw" type="password">
  354. <br>
  355. <br>
  356. {% if title == '비밀번호 변경' %}
  357. <span>바꿀 비밀번호</span>
  358. <br>
  359. <br>
  360. <input name="pw2" type="password">
  361. <br>
  362. <br>
  363. {% endif %}
  364. <button class="btn btn-primary" type="submit">{{enter}}</button>
  365. </form>
  366. {% elif tn == 16 %}
  367. <h1 class="title">{{title}} <sub>(차단)</sub></h1>
  368. <form id="usrform" method="POST" action="/ban/{{page}}">
  369. {% if now == '차단' or now == '대역 차단' %}
  370. <input class="form-control" name="end" style="width: 100%">
  371. <br>
  372. <br>
  373. <span>아무것도 안 적으면 무기한 차단 입니다.</span>
  374. <br>
  375. <br>
  376. <span>차단 일 지정시 형식은 YYYY-MM-DD로 기록 해야합니다. (예시: 2017-01-20, 2017-10-15)</span>
  377. <br>
  378. <br>
  379. <span>지금 시각은 {{today}} 입니다.</span>
  380. <br>
  381. <br>
  382. <input class="form-control" name="why" style="width: 100%">
  383. <br>
  384. <br>
  385. <span>사유를 쓰는 곳 입니다.</span>
  386. {% if allif == 1 %}
  387. <br>
  388. <br>
  389. <input type="checkbox" name="band">
  390. <span>대역 차단</span>
  391. </input>
  392. {% endif %}
  393. <br>
  394. <br>
  395. {% endif %}
  396. <button class="btn btn-primary" type="submit">{{now}}</button>
  397. </form>
  398. {% elif tn == 18 %}
  399. <h1 class="title">{{title}} <sub>(권한 부여)</sub></h1>
  400. <form id="usrform" method="POST" action="/admin/{{page}}">
  401. {% if now == '권한 부여' %}
  402. <select name="select">
  403. <option value="admin" selected="selected">관리자</option>
  404. <option value="ownet">소유자</option>
  405. </select>
  406. <br>
  407. <br>
  408. {% endif %}
  409. <button class="btn btn-primary" type="submit">{{now}}</button>
  410. </form>
  411. {% elif tn == 19 %}
  412. <h1 class="title">{{title}} <sub>(ACL)</sub></h1>
  413. <p>{{now}}</p>
  414. <form id="usrform" method="POST" action="/acl/{{page}}">
  415. <select name="select">
  416. <option value="admin" selected="selected">관리자만</option>
  417. <option value="user">유저 이상</option>
  418. <option value="normal">일반</option>
  419. </select>
  420. <br>
  421. <br>
  422. <button class="btn btn-primary" type="submit">ACL 변경</button>
  423. </form>
  424. {% elif tn == 20 %}
  425. <h1 class="title">{{title}}</h1>
  426. <table style="width: 100%;">
  427. <tbody>
  428. <tr>
  429. <td style="text-align: center;width:20%;">차단자</td>
  430. <td style="text-align: center;width:20%;">관리자</td>
  431. <td style="text-align: center;width:20%;">언제까지</td>
  432. <td style="text-align: center;width:20%;">왜</td>
  433. <td style="text-align: center;width:20%;">시간</td>
  434. </tr>
  435. </tbody>
  436. </table>
  437. {% autoescape false %}
  438. {{rows}}
  439. {% endautoescape %}
  440. {% elif tn == 21 %}
  441. <h1 class="title">{{title}}</h1>
  442. <div>
  443. <form action="" method=post enctype=multipart/form-data>
  444. <input type=file name=file>
  445. <input type=submit value=Upload>
  446. </form>
  447. </div>
  448. <span>{{number}}MB 이하 파일만 업로드 가능하고 파일 명에 ./\*<>|:? 들은 불가능 하며 확장자는 jpg, png, gif, jpeg만 가능 합니다.</span>
  449. {% elif tn == 22 %}
  450. <h1 class="title">{{title}}</h1>
  451. <table style="width: 100%;">
  452. <tbody>
  453. <tr>
  454. <td style="text-align: center;width:33.33%;">유저</td>
  455. <td style="text-align: center;width:33.33%;">아이피</td>
  456. <td style="text-align: center;width:33.33%;">언제</td>
  457. </tr>
  458. </tbody>
  459. </table>
  460. {% autoescape false %}
  461. {{rows}}
  462. {% endautoescape %}
  463. {% else %}
  464. <div id="tool">
  465. <nav class="menu">
  466. <a class="menu-item selected" href="#" onclick="return false">{{title}}</a>
  467. <a class="menu-item" href="javascript:history.back(-1);">뒤로가기</a>
  468. </nav>
  469. </div>
  470. <h1 class="title">{{title}} {% if plus %}<sub>{{plus}}</sub>{% endif %}</h1>
  471. <div>
  472. {% autoescape false %}
  473. {{data}}
  474. {% endautoescape %}
  475. </div>
  476. {% endif %}
  477. <hr id="last">
  478. <p>{% autoescape false %}{{license}}{% endautoescape %}</p>
  479. <div id="powered">
  480. <a href="https://github.com/2DU/PYnamu"><img src="{{url_for('static', filename='images/on2.png')}}" width="100px"></a>
  481. </div>
  482. </div>
  483. </div>
  484. </body>
  485. </html>