浏览代码

또 수정

2DU 9 年之前
父节点
当前提交
eb7a485847
共有 2 个文件被更改,包括 15 次插入6 次删除
  1. 4 4
      app.py
  2. 11 2
      templates/index.html

+ 4 - 4
app.py

@@ -2361,7 +2361,7 @@ def revert(name = None, number = None):
                     curs.execute("select * from history where title = '" + pymysql.escape_string(name) + "' and id = '" + str(number) + "'")
                     rows = curs.fetchall()
                     if(rows):
-                        return render_template('index.html', title = name, logo = data['name'], page = parse.quote(name), r = parse.quote(str(number)), tn = 13, plus = '정말 되돌리시겠습니까?', sub = '되돌리기')
+                        return render_template('index.html', title = name, logo = data['name'], page = parse.quote(name), r = parse.quote(str(number)), tn = 13, plus = '정말 되돌리시겠습니까?', sub = '되돌리기', login = nowlogin())
                     else:
                         return '<meta http-equiv="refresh" content="0;url=/w/' + parse.quote(name) + '" />'
             else:
@@ -2376,7 +2376,7 @@ def revert(name = None, number = None):
                 curs.execute("select * from history where title = '" + pymysql.escape_string(name) + "' and id = '" + str(number) + "'")
                 rows = curs.fetchall()
                 if(rows):
-                    return render_template('index.html', title = name, logo = data['name'], page = parse.quote(name), r = parse.quote(str(number)), tn = 13, plus = '정말 되돌리시겠습니까?', sub = '되돌리기')
+                    return render_template('index.html', title = name, logo = data['name'], page = parse.quote(name), r = parse.quote(str(number)), tn = 13, plus = '정말 되돌리시겠습니까?', sub = '되돌리기', login = nowlogin())
                 else:
                     return '<meta http-equiv="refresh" content="0;url=/w/' + parse.quote(name) + '" />'
                         
@@ -2604,7 +2604,7 @@ def delete(name = None):
             if(can == 1):
                 return '<meta http-equiv="refresh" content="0;url=/ban" />'
             else:
-                return render_template('index.html', title = name, logo = data['name'], page = parse.quote(name), tn = 8, plus = '정말 삭제 하시겠습니까?', sub = '삭제')
+                return render_template('index.html', title = name, logo = data['name'], page = parse.quote(name), tn = 8, plus = '정말 삭제 하시겠습니까?', sub = '삭제', login = nowlogin())
         else:
             return '<meta http-equiv="refresh" content="0;url=/w/' + parse.quote(name) + '" />'
 
@@ -2654,7 +2654,7 @@ def move(name = None):
         if(can == 1):
             return '<meta http-equiv="refresh" content="0;url=/ban" />'
         else:
-            return render_template('index.html', title = name, logo = data['name'], page = parse.quote(name), tn = 9, plus = '정말 이동 하시겠습니까?', sub = '이동')
+            return render_template('index.html', title = name, logo = data['name'], page = parse.quote(name), tn = 9, plus = '정말 이동 하시겠습니까?', sub = '이동', login = nowlogin())
 
 @app.route('/other')
 def other():

+ 11 - 2
templates/index.html

@@ -92,7 +92,7 @@
                 {% elif tn == 2 %}
                 {% if login == 0 %}
                 <br>
-                <span>비 로그인 상태입니다. 비 로그인으로 편집시 아이피가 역사에 기록됩니다. 편집 시 동의 함으로 간주됩니다.</span>
+                <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
                 <br>
                 <br>
                 {% endif %}
@@ -192,6 +192,9 @@
                     <br>
                     <button class="btn btn-primary" type="submit">삭제</button>
                 </form>
+                {% if login == 0 %}
+                <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
+                {% endif %}
                 {% elif tn == 9 %}
                 <form id="usrform" method="POST" action="/move/{{page}}">
                     {{plus}}
@@ -202,6 +205,9 @@
                     <br>
                     <button class="btn btn-primary" type="submit">이동</button>
                 </form>
+                {% if login == 0 %}
+                <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
+                {% endif %}
                 {% elif tn == 10 %}
                 <form id="usrform" style="margin-top: -30px;" method="POST" action="/topic/{{page}}">
                     {% autoescape false %}
@@ -235,7 +241,7 @@
                     <button class="btn btn-primary" type="submit">전송</button>
                 </form>
                 {% if login == 0 and style == '' %}
-                <span>비 로그인 상태입니다. 비 로그인으로 토론 시 아이피가 기록됩니다. 전송 시 동의 함으로 간주됩니다.</span>
+                <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
                 {% endif %}
                 {% endif %}
                 {% elif tn == 12 %}
@@ -257,6 +263,9 @@
                     <br>
                     <button class="btn btn-primary" type="submit">되돌리기</button>
                 </form>
+                {% if login == 0 %}
+                <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
+                {% endif %}
                 {% elif tn == 15 %}
                 {% if title == '회원가입' %}
                 <form id="usrform" method="POST" action="/register">