| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- $checkMaintenance = core::isMaintenance();
- $checkDebug = core::isDebug();
- $checkLogSuccess = core::getConfig("LOG_SUCCESS");
- $checkLogWarning = core::getConfig("LOG_WARNING");
- $checkLogError = core::getConfig("LOG_ERROR");
- $space_total_documents = disk_total_space(DOCUMENT_DATAS);
- $space_free_documents = disk_free_space(DOCUMENT_DATAS);
- $space_total_backup = disk_total_space(DIR_BACKUP);
- $space_free_backup = disk_free_space(DIR_BACKUP);
- ?>
- <h4>Espaces disques</h4>
- <div>
- <span class="badge" style="background-color:#28a745; width: 130px;"><?php echo core::convertBytes(disk_free_space(DOCUMENT_ROOT), "o", "Go") . " / " . core::convertBytes(disk_total_space(DOCUMENT_ROOT), "o", "Go") ?></span> <label> Espace ROOT</label>
- </div>
- <div>
- <span class="badge" style="background-color:#28a745; width: 130px;"><?php echo core::convertBytes(disk_free_space(DOCUMENT_DATAS), "o", "Go") . " / " . core::convertBytes(disk_total_space(DOCUMENT_DATAS), "o", "Go") ?></span> <label> Espace DATAS</label>
- </div>
- <div>
- <span class="badge" style="background-color:#17a2b8; width: 130px;"><?php echo core::convertBytes(file::sizeFolder(DIR_BACKUP), "o", "Mo") . " / " . core::convertBytes(disk_total_space(DOCUMENT_DATAS), "o", "Go") ?></span> <label> Dossier Backups</label>
- </div>
- <div>
- <span class="badge" style="background-color:#17a2b8; width: 130px;"><?php echo core::convertBytes(file::sizeFolder(DOCUMENT_DATAS), "o", "Mo") . " / " . core::convertBytes(disk_total_space(DOCUMENT_DATAS), "o", "Go") ?></span> <label> Dossier Documents</label>
- </div>
- <div>
- <span class="badge" style="background-color:#17a2b8; width: 130px;"><?php echo core::convertBytes(file::sizeFolder(DIR_DATAS_JSONDATA), "o", "Mo") . " / " . core::convertBytes(disk_total_space(DOCUMENT_ROOT), "o", "Go") ?></span> <label> Dossier Json</label>
- </div>
- <div>
- <span class="badge" style="background-color:#17a2b8; width: 130px;"><?php echo core::convertBytes(file::sizeFolder(SFTP_LOCAL), "o", "Mo") . " / " . core::convertBytes(disk_total_space(DOCUMENT_ROOT), "o", "Go") ?></span> <label> Dossier SFTP</label>
- </div>
- <h4>Général</h4>
- <div class="element-parametres form-check form-switch">
- <input class="form-check-input" type="checkbox" role="switch" id="checkMaintenance" <?php core::checkboxSelecter($checkMaintenance) ?>>
- <label class="form-check-label" for="checkMaintenance">Site en mode maintenance (les salariés ne pourront plus faire d'action sur le site)</label>
- </div>
- <div class="element-parametres form-check form-switch">
- <input class="form-check-input" type="checkbox" role="switch" id="checkDebug" <?php core::checkboxSelecter($checkDebug) ?>>
- <label class="form-check-label" for="checkDebug">Afficher les erreurs (débug)</label>
- </div>
- <h4>Historique</h4>
- <div class="element-parametres form-check form-switch">
- <input class="form-check-input" type="checkbox" role="switch" id="checkLogSuccess" <?php core::checkboxSelecter($checkLogSuccess) ?>>
- <label class="form-check-label" for="checkLogSuccess">Historiser les actions réalisées avec succès</label>
- </div>
- <div class="element-parametres form-check form-switch">
- <input class="form-check-input" type="checkbox" role="switch" id="checkLogWarning" <?php core::checkboxSelecter($checkLogWarning) ?>>
- <label class="form-check-label" for="checkLogWarning">Historiser les actions réalisées avec warning</label>
- </div>
- <div class="element-parametres form-check form-switch">
- <input class="form-check-input" type="checkbox" role="switch" id="checkLogError" <?php core::checkboxSelecter($checkLogError) ?>>
- <label class="form-check-label" for="checkLogError">Historiser les actions en erreur</label>
- </div>
- <script>
- $(document).ready(function() {
- $('#checkMaintenance').on('change', function() {
- window.location.href = "/submit.php?from=parametres-maintenance-activation&actif=" + $("#checkMaintenance").prop('checked');
- });
- $('#checkDebug').on('change', function() {
- window.location.href = "/submit.php?from=parametres-debug-activation&actif=" + $("#checkDebug").prop('checked');
- });
- $('#checkLogSuccess').on('change', function() {
- window.location.href = "/submit.php?from=parametres-config&name=LOG_SUCCESS&value=" + $("#checkLogSuccess").prop('checked');
- });
- $('#checkLogWarning').on('change', function() {
- window.location.href = "/submit.php?from=parametres-config&name=LOG_WARNING&value=" + $("#checkLogWarning").prop('checked');
- });
- $('#checkLogError').on('change', function() {
- window.location.href = "/submit.php?from=parametres-config&name=LOG_ERROR&value=" + $("#checkLogError").prop('checked');
- });
- });
- </script>
|