Ajout d'un fichiers de configuration

This commit is contained in:
kitoy 2022-07-11 00:38:03 +02:00
parent 66375d272f
commit beb1e65ca7
4 changed files with 107 additions and 0 deletions

18
config.py Normal file
View File

@ -0,0 +1,18 @@
# Essentiels pour les cookies
SECRET_KEY="fksmlfkljklknfzqlknfzqlkezq"
# Dossier où seront stocker les fichiers
DOSSIER_APP = "users/"
# Extension des images accepter
EXT_IMG= {'.jpg', '.JPG', '.png', '.PNG', '.gif', '.GIF', '.bmp', '.BMP', '.jpeg', '.JPEG' }
# Service
# XMPP = True => Le service est installé et lancer
# XMMP = False => Le service est désactivé
XMPP_SERVER = True
# Service Mail
# MAIL_SERVER = True => Le service est installé et lancer
# MAIL_SERVER = False => Le service est désactivé
MAIL_SERVER = True

18
templates/_head.html Normal file
View File

@ -0,0 +1,18 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>Un serveur et des ...</title>
<!-- Bootstrap core CSS -->
<link href="{{ url_for('static', filename='bootstrap.min.css') }}" rel="stylesheet">
<!-- Bootstrap theme -->
<link href="{{ url_for('static', filename='bootstrap-theme.min.css') }}" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="{{ url_for('static', filename='up.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='cover.css') }}" rel="stylesheet">
<script type="text/javascript" src="{{ url_for('static', filename='divhider.js') }}"></script>
</head>

6
templates/_js.html Normal file
View File

@ -0,0 +1,6 @@
<!-- Bootstrap core JavaScript -->
<!--================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="{{ url_for('static', filename='jquery.min.js') }}"></script>
<script src="{{ url_for('static', filename='bootstrap.min.js') }}"></script>
<script src="{{ url_for('static', filename='docs.min.js') }}"></script>

View File

@ -0,0 +1,65 @@
<!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--<li class="active"><a href="/blog/">Blog</a></li>-->
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li {% if section == "Post-it" %} class="active" {% endif %}>
<a href="/post-it/">
<span class="glyphicon glyphicon-globe" aria-hidden="true"></span>
Post-it !
</a>
</li>
<li {% if section == "Upload" %} class="active" {% endif %}>
<a href="/filesupload/">
<span class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></span>
Envoyer des fichiers
</a>
</li>
<li{% if section == "Files" %} class="active" {% endif %} >
<a href="/view/">
<span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span>
Mes Fichiers</a>
</li>
<li {% if section == "Gallery" %} class="active" {% endif %} >
<a href="/gallery/">
<span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span>
Gallerie d'images
</a>
</li>
<li{% if section == "Logs" %} class="active" {% endif %}>
<a href="/logs/"><span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>
Logs
</a>
</li>
<li {% if section == "Profil" %} class="dropdown active" {% else %} class="dropdown" {% endif %}>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-home" aria-hidden="true"></span> <span id="majuscule">{{ session['username'] }} </span><span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="/profil/"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> Profil</a></li>
<li><a href="/parametres/"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span> Paramètres</a></li>
<li class="divider"></li>
<!--<li class="dropdown-header">Nav header</li>-->
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="/logout/">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
Se déconecter
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<br/>
<br/>