<?php

/**
 * switches the maintenance wff
 */

QUI::getAjax()->registerFunction(
    'ajax_maintenance_off',
    static function (): void {
        $Config = QUI::getConfig('etc/conf.ini.php');
        $Config->setValue('globals', 'maintenance', 0);
        $Config->save();
    },
    false,
    'Permission::checkSU'
);
