error += u'禁止ワード.<br>'
kinsi = True
break
- for word in words:
- if word in line.lower():
- tag = escape.xhtml_escape(word)
- error += u'タグ違反.('+tag+')<br>'
+ if self.current_user != b'admin':
+ for word in words:
+ if word in line.lower():
+ tag = escape.xhtml_escape(word)
+ error += u'タグ違反.('+tag+')<br>'
i += len(line)
obj = re.finditer('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line)
for x in obj:
</head>
<body>
- <p style=text-align:center>
-</p>
- <p style=text-align:center>管理者用ログイン画面\r
+ <p style=text-align:center>管理者用ログイン画面
</p>
<br>
<form action=/login method="post">
<input type="submit" value="ログイン">
</p>
</form>
+ <p style=text-align:center><br><a href=/ >TOPへ移動</a></p>
</body>
</html>
{% end %}
{% set d += 1 %}
{% if full(x) == True %}
- <p><a href=/{{x}} style=color:red>{{x}}</a>
+ <p><a href=/{{x}} style=color:red target=_blank>{{x}}</a>
{% else %}
- <p><a href=/{{x}}>{{x}}</a>
+ <p><a href=/{{x}} target=_blank>{{x}}</a>
{% end %}
{% if d % i == 0 %}
</div>