|
@@ -253,7 +253,6 @@ def edit_set(num = 0):
|
|
|
i += 1
|
|
i += 1
|
|
|
|
|
|
|
|
conn.commit()
|
|
conn.commit()
|
|
|
- skin_check(conn)
|
|
|
|
|
admin_check(conn, None, 'edit_set')
|
|
admin_check(conn, None, 'edit_set')
|
|
|
|
|
|
|
|
return(redirect('/edit_set/1'))
|
|
return(redirect('/edit_set/1'))
|
|
@@ -745,6 +744,7 @@ def indexing():
|
|
|
curs.execute(sql)
|
|
curs.execute(sql)
|
|
|
except:
|
|
except:
|
|
|
pass
|
|
pass
|
|
|
|
|
+
|
|
|
conn.commit()
|
|
conn.commit()
|
|
|
return(redirect('/'))
|
|
return(redirect('/'))
|
|
|
|
|
|
|
@@ -1013,7 +1013,7 @@ def deep_search(name = None):
|
|
|
)))
|
|
)))
|
|
|
|
|
|
|
|
@app.route('/raw/<path:name>')
|
|
@app.route('/raw/<path:name>')
|
|
|
-@app.route('/topic/<path:name>/sub/<int:sub_t>/raw/<num>')
|
|
|
|
|
|
|
+@app.route('/topic/<path:name>/sub/<sub_t>/raw/<int:num>')
|
|
|
def raw_view(name = None, sub_t = None, num = None):
|
|
def raw_view(name = None, sub_t = None, num = None):
|
|
|
v_name = name
|
|
v_name = name
|
|
|
sub = ' (원본)'
|
|
sub = ' (원본)'
|
|
@@ -1764,7 +1764,7 @@ def title_index():
|
|
|
menu = [['other', '기타']]
|
|
menu = [['other', '기타']]
|
|
|
)))
|
|
)))
|
|
|
|
|
|
|
|
-@app.route('/topic/<path:name>/sub/<int:sub>/b/<num>')
|
|
|
|
|
|
|
+@app.route('/topic/<path:name>/sub/<sub>/b/<int:num>')
|
|
|
def topic_block(name = None, sub = None, num = None):
|
|
def topic_block(name = None, sub = None, num = None):
|
|
|
if(admin_check(conn, 3, 'blind (' + name + ' - ' + sub + '#' + str(num) + ')') != 1):
|
|
if(admin_check(conn, 3, 'blind (' + name + ' - ' + sub + '#' + str(num) + ')') != 1):
|
|
|
return(re_error(conn, '/error/3'))
|
|
return(re_error(conn, '/error/3'))
|
|
@@ -1782,7 +1782,7 @@ def topic_block(name = None, sub = None, num = None):
|
|
|
|
|
|
|
|
return(redirect('/topic/' + url_pas(name) + '/sub/' + url_pas(sub) + '#' + str(num)))
|
|
return(redirect('/topic/' + url_pas(name) + '/sub/' + url_pas(sub) + '#' + str(num)))
|
|
|
|
|
|
|
|
-@app.route('/topic/<path:name>/sub/<int:sub>/notice/<num>')
|
|
|
|
|
|
|
+@app.route('/topic/<path:name>/sub/<sub>/notice/<int:num>')
|
|
|
def topic_top(name = None, sub = None, num = None):
|
|
def topic_top(name = None, sub = None, num = None):
|
|
|
if(admin_check(conn, 3, 'notice (' + name + ' - ' + sub + '#' + str(num) + ')') != 1):
|
|
if(admin_check(conn, 3, 'notice (' + name + ' - ' + sub + '#' + str(num) + ')') != 1):
|
|
|
return(re_error(conn, '/error/3'))
|
|
return(re_error(conn, '/error/3'))
|
|
@@ -1846,7 +1846,7 @@ def topic_stop(name = None, sub = None, tool = None):
|
|
|
|
|
|
|
|
return(redirect('/topic/' + url_pas(name) + '/sub/' + url_pas(sub)))
|
|
return(redirect('/topic/' + url_pas(name) + '/sub/' + url_pas(sub)))
|
|
|
|
|
|
|
|
-@app.route('/topic/<path:name>/sub/<int:sub>/admin/<num>')
|
|
|
|
|
|
|
+@app.route('/topic/<path:name>/sub/<sub>/admin/<int:num>')
|
|
|
def topic_admin(name = None, sub = None, num = None):
|
|
def topic_admin(name = None, sub = None, num = None):
|
|
|
curs.execute("select block, ip, date from topic where title = ? and sub = ? and id = ?", [name, sub, str(num)])
|
|
curs.execute("select block, ip, date from topic where title = ? and sub = ? and id = ?", [name, sub, str(num)])
|
|
|
data = curs.fetchall()
|
|
data = curs.fetchall()
|
|
@@ -1989,7 +1989,7 @@ def topic(name = None, sub = None):
|
|
|
curs.execute("select who from re_admin where what = ? order by time desc limit 1", ['notice (' + name + ' - ' + sub + '#' + topic_data[1] + ')'])
|
|
curs.execute("select who from re_admin where what = ? order by time desc limit 1", ['notice (' + name + ' - ' + sub + '#' + topic_data[1] + ')'])
|
|
|
topic_data_top = curs.fetchall()
|
|
topic_data_top = curs.fetchall()
|
|
|
if(topic_data_top):
|
|
if(topic_data_top):
|
|
|
- who_plus += ' @' + topic_data_top[0][0]
|
|
|
|
|
|
|
+ who_plus += ' <span style="margin-right: 5px;">@' + topic_data_top[0][0] + ' </span>'
|
|
|
|
|
|
|
|
all_data += '<table id="toron"><tbody><tr><td id="toron_color_red">'
|
|
all_data += '<table id="toron"><tbody><tr><td id="toron_color_red">'
|
|
|
all_data += '<a href="#' + topic_data[1] + '">#' + topic_data[1] + '</a> ' + ip_pas(conn, topic_data[3]) + who_plus + ' <span style="float: right;">' + topic_data[2] + '</span>'
|
|
all_data += '<a href="#' + topic_data[1] + '">#' + topic_data[1] + '</a> ' + ip_pas(conn, topic_data[3]) + who_plus + ' <span style="float: right;">' + topic_data[2] + '</span>'
|
|
@@ -2089,7 +2089,7 @@ def close_topic_list(name = None, tool = None):
|
|
|
sub = '토론 목록'
|
|
sub = '토론 목록'
|
|
|
menu = [['w/' + url_pas(name), '문서']]
|
|
menu = [['w/' + url_pas(name), '문서']]
|
|
|
plus = '<a href="/topic/' + url_pas(name) + '/close">(닫힘)</a> <a href="/topic/' + url_pas(name) + '/agree">(합의)</a><hr> \
|
|
plus = '<a href="/topic/' + url_pas(name) + '/close">(닫힘)</a> <a href="/topic/' + url_pas(name) + '/agree">(합의)</a><hr> \
|
|
|
- <input placeholder="토론명" class="form-control" name="topic" type="text"><br> \
|
|
|
|
|
|
|
+ <input placeholder="토론명" class="form-control" name="topic" type="text"><hr> \
|
|
|
<button class="btn btn-primary" type="submit">만들기</button>'
|
|
<button class="btn btn-primary" type="submit">만들기</button>'
|
|
|
|
|
|
|
|
for data in curs.fetchall():
|
|
for data in curs.fetchall():
|