# Path: core/modules/ini.py
# _CONFIG_ = None
#         _CONFIG_ = configparser.ConfigParser()
# def init(filename):
# def getenv(env_var, default=None):
# def config(section, option, env_var=None, default=None, boolean=False):
# def test():


import os
from argparse import ArgumentParser
from core.modules import db
from core.modules import ini
        logger.mprint("Configuration file is missing. Server can't be started !")
        exit(1)
    # initialize database
    db.init()
##
## @brief     fixes issue #14:
##                  safe password storage with salt and blowfish encryption
##
##            PATCH DB v1.3.0
##
def fix_issue_14():
    for u in db.get_all_users():
        print("Updating: ", u, "...", end='')
        db.update_user_password(u.id)
        print("done!")
##
## Fix scripts
##
FIXES = {
    14: fix_issue_14
}
##
## @brief      { function_description }
##
## @param      args  The arguments
##
## @return     { description_of_the_return_value }
##
def toggle(args):
    opposite_mode = 'on' if args.mode == 'off' else 'off'

# Path: core/modules/ini.py
# _CONFIG_ = None
#         _CONFIG_ = configparser.ConfigParser()
# def init(filename):
# def getenv(env_var, default=None):
# def config(section, option, env_var=None, default=None, boolean=False):
# def test():


# Path: maintenance.py
import os
from argparse import ArgumentParser
from core.modules import db
from core.modules import ini

        logger.mprint("Configuration file is missing. Server can't be started !")
        exit(1)
    # initialize database
    db.init()
##
## @brief     fixes issue #14:
##                  safe password storage with salt and blowfish encryption
##
##            PATCH DB v1.3.0
##
def fix_issue_14():
    for u in db.get_all_users():
        print("Updating: ", u, "...", end='')
        db.update_user_password(u.id)
        print("done!")
##
## Fix scripts
##
FIXES = {
    14: fix_issue_14
}
##
## @brief      { function_description }
##
## @param      args  The arguments
##
## @return     { description_of_the_return_value }
##
def toggle(args):
    opposite_mode = 'on' if args.mode == 'off' else 'off'

    expected_filename = 'maintenance_{}.html'.format(args.mode)