diff --git a/app/__init__.py b/app/__init__.py index 1bdfd1d..3fabdda 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -60,7 +60,7 @@ def create_app(): "401", "Unauthorized", "The server could not verify that you are authorized to access the URL requested. You are not authenticated, or your browser doesn't understand how to supply the credentials required...", - "https://takeus.ovh/static/img/login.svg" + "/static/img/403.png" ] return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 401 @@ -70,7 +70,7 @@ def create_app(): "403", "Forbidden", "You don't have the permission to access the requested resource. It is either read-protected or not readable by the server...", - "https://takeus.ovh/static/img/login.svg" + "/static/img/403.png" ] return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 403 @@ -80,7 +80,7 @@ def create_app(): "404", "Not Found", "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again...", - "https://takeus.ovh/static/img/404.svg" + "/static/img/404.png" ] return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 404 @@ -90,7 +90,7 @@ def create_app(): "500", "Internal Server Error", "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", - "https://takeus.ovh/static/img/500.svg" + "/static/img/403.png" ] return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 500 @@ -100,7 +100,7 @@ def create_app(): "503", "Service Unavailable", "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.", - "https://takeus.ovh/static/img/503.svg" + "/static/img/403.png" ] return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 503 diff --git a/app/_config.py b/app/_config.py index ca778ca..8e10ac8 100644 --- a/app/_config.py +++ b/app/_config.py @@ -10,8 +10,8 @@ app_debug = True app_maintenance = False app_name = 'takeus-ipam' -app_version = 'V2026.1' -app_release_date = '01/2026' +app_version = 'V2026.3' +app_release_date = '03/2026' app_url = "http://0.0.0.0" app_theme = ['default', 'lumen', 'simplex', 'zephyr'] diff --git a/app/static/img/403.png b/app/static/img/403.png new file mode 100644 index 0000000..7a2d22f Binary files /dev/null and b/app/static/img/403.png differ diff --git a/app/static/img/404.png b/app/static/img/404.png new file mode 100644 index 0000000..73c48b5 Binary files /dev/null and b/app/static/img/404.png differ diff --git a/setup.py b/setup.py index 7143b76..fe96850 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ class User(db.Model): is_admin = db.Column(db.Boolean(),default=False) is_reado = db.Column(db.Boolean(),default=False) ui_theme = db.Column(db.String(16)) + ui_lmode = db.Column(db.Boolean(),default=False) dat_last = db.Column(db.DateTime()) with app.app_context():