Updates
This commit is contained in:
BIN
app/static/image/rustdesk/rd1.png
Normal file
BIN
app/static/image/rustdesk/rd1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
BIN
app/static/image/rustdesk/rd2.png
Normal file
BIN
app/static/image/rustdesk/rd2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
BIN
app/static/image/rustdesk/rd3.png
Normal file
BIN
app/static/image/rustdesk/rd3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -27,13 +27,13 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="portfolio">Отзывы</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="price">Прайс</a>
|
||||
</li>
|
||||
<!--
|
||||
<!--
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="contacts">Контакты</a>
|
||||
<a class="nav-link" href="rustdesk">Удаленная техподдержка</a>
|
||||
</li>
|
||||
</ul>
|
||||
-->
|
||||
@@ -43,7 +43,7 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</nav>
|
||||
|
||||
</td></tr>
|
||||
</table> <br>
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ProgName}} - {{Title}}</title>
|
||||
<link rel="stylesheet" href="/static/node_modules/bootstrap/dist/css/bootstrap.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
.spoiler{
|
||||
display:none;
|
||||
}
|
||||
.mywindow2 {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class ="b-page">
|
||||
{{UserHeader|safe}}
|
||||
|
||||
|
||||
<ul>
|
||||
<li><b>Телефон:</b> 47-81-47</li>
|
||||
<!-- <li><b>E-Mail:</b> <a target="_blank" href="mailto:art18craft@gmail.com" >art18craft@gmail.com</a></li> -->
|
||||
<li><a target="_blank" href="https://vk.com/work_elforcer">ВКонтакте</a></li>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
{{UserBottom|safe}}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
44
app/templates/rustdesk.htm
Normal file
44
app/templates/rustdesk.htm
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ProgName}} - {{Title}}</title>
|
||||
<link rel="stylesheet" href="/static/node_modules/bootstrap/dist/css/bootstrap.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
.spoiler{
|
||||
display:none;
|
||||
}
|
||||
.mywindow2 {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class ="b-page">
|
||||
{{UserHeader|safe}}
|
||||
|
||||
|
||||
|
||||
<p>1. Скачать дистрибутив с сайта <a href="https://rustdesk.com/" target ="_blank">RustDesk</a></p>
|
||||
<p><img href=""></p>
|
||||
<p>2. Напротив ID нажать на троеточие и выбрать пункт “ID/Сервер ретрансляции”
|
||||
<p><img href="/statis/image/rustdes/rd2.png"></p>
|
||||
<p>3. Указать следующие настройки:<ul>
|
||||
<li>ID-сервер: elforcer.ru</li>
|
||||
<li>Сервер ретрансляции: elforcer.ru</li>
|
||||
<li>Key: WvJsIqJmAw8b65KnbmPGCXD9Jesuq4ak5KiHYg62e8o=</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><img href="/statis/image/rustdes/rd3.png"></p>
|
||||
|
||||
<p>
|
||||
Сообщить ваш ID для подключения.
|
||||
</p>
|
||||
{{UserBottom|safe}}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
41
app/views.py
41
app/views.py
@@ -13,8 +13,8 @@ from flask import Response
|
||||
|
||||
#from flask-login import login_user, logout_user, current_user, login_required #авторизация
|
||||
#from .forms import LoginForm
|
||||
|
||||
|
||||
|
||||
|
||||
#import urllib.parse
|
||||
#import importlib.util
|
||||
import http.cookies #работа с кукисами
|
||||
@@ -42,7 +42,7 @@ UserID=""
|
||||
tb_Hashpassword=""
|
||||
OldSession=""
|
||||
CurSessionID=""
|
||||
|
||||
|
||||
|
||||
S=['0','1','2','3']
|
||||
|
||||
@@ -50,51 +50,50 @@ S=['0','1','2','3']
|
||||
def request_entity_too_large(error):
|
||||
return 'Превышен максимальный размер файла', 413
|
||||
|
||||
|
||||
|
||||
|
||||
@app.errorhandler(404)
|
||||
def page_not_found(e):
|
||||
|
||||
return """Здесь нет того, чего ты ищешь... <br><a href ="/"> Вернутся на главную</a> """,404
|
||||
|
||||
|
||||
@app.errorhandler(403)
|
||||
def access_denided(e):
|
||||
#Получаем куки и сессию
|
||||
|
||||
|
||||
SessionID = request.cookies.get('SessionID')
|
||||
print (SessionID)
|
||||
|
||||
|
||||
if SessionID is None or SessionID=="": #если нет сессии
|
||||
return redirect("/login", code=302)
|
||||
else:
|
||||
HTML= """Похоже, сюда можно только администраторам. <br><a href ="/"> Вернутся на главную</a> """
|
||||
return render_template('index.htm', UserHeader = APIC.UserHeader(SessionID,"<font color=red>Доступ запрещен</font>",ProgName), HTML=HTML)
|
||||
|
||||
|
||||
#return render_template('404.html'), 404
|
||||
|
||||
|
||||
|
||||
|
||||
#Добавляем роуты
|
||||
@app.route('/')
|
||||
@app.route('/index')
|
||||
@app.route('/about')
|
||||
@app.route('/main')
|
||||
@app.route('/main')
|
||||
def main():
|
||||
|
||||
Title="Обо мне"
|
||||
return render_template('about.htm',
|
||||
return render_template('about.htm',
|
||||
UserHeader = UserHeader(Title,ProgName)
|
||||
,version=version
|
||||
,Title=Title
|
||||
,ProgName=ProgName
|
||||
)
|
||||
|
||||
@app.route('/contact')
|
||||
@app.route('/contacts')
|
||||
def contacts():
|
||||
@app.route('/rustdesk')
|
||||
def rustdesk():
|
||||
|
||||
Title="Контакты"
|
||||
return render_template('contacts.htm',
|
||||
Title="RustDesk"
|
||||
return render_template('rustdesk.htm',
|
||||
UserHeader = UserHeader(Title,ProgName)
|
||||
,version=version
|
||||
,Title=Title
|
||||
@@ -106,18 +105,18 @@ def contacts():
|
||||
def price():
|
||||
|
||||
Title="Прайс"
|
||||
return render_template('price.htm',
|
||||
return render_template('price.htm',
|
||||
UserHeader = UserHeader(Title,ProgName)
|
||||
,version=version
|
||||
,Title=Title
|
||||
,ProgName=ProgName
|
||||
)
|
||||
|
||||
|
||||
@app.route('/portfolio')
|
||||
def portfolio():
|
||||
|
||||
Title="Отзывы"
|
||||
return render_template('portfolio.htm',
|
||||
return render_template('portfolio.htm',
|
||||
UserHeader = UserHeader(Title,ProgName)
|
||||
,version=version
|
||||
,Title=Title
|
||||
@@ -127,7 +126,7 @@ def portfolio():
|
||||
|
||||
def UserHeader(Title,ProgName):
|
||||
CurStr=""
|
||||
if (os.path.exists("app/templates/_header")==True):
|
||||
if (os.path.exists("app/templates/_header")==True):
|
||||
file = open("app/templates/_header", "r")
|
||||
#print ("Чтение заголовка")
|
||||
CurStr= file.read()
|
||||
@@ -140,7 +139,7 @@ def UserHeader(Title,ProgName):
|
||||
|
||||
@app.route('/favicon.ico')
|
||||
def favicon1():
|
||||
if (os.path.exists("app/static/image/favicon.ico")==True):
|
||||
if (os.path.exists("app/static/image/favicon.ico")==True):
|
||||
file = open("app/static/image/favicon.ico", "r")
|
||||
CurStr= file.read()
|
||||
file.close()
|
||||
|
||||
Reference in New Issue
Block a user