|
| 1 | +<?php |
| 2 | +/* |
| 3 | + * OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione |
| 4 | + * Copyright (C) DevCode s.r.l. |
| 5 | + * |
| 6 | + * This program is free software: you can redistribute it and/or modify |
| 7 | + * it under the terms of the GNU General Public License as published by |
| 8 | + * the Free Software Foundation, either version 3 of the License, or |
| 9 | + * (at your option) any later version. |
| 10 | + * |
| 11 | + * This program is distributed in the hope that it will be useful, |
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | + * GNU General Public License for more details. |
| 15 | + * |
| 16 | + * You should have received a copy of the GNU General Public License |
| 17 | + * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 18 | + */ |
| 19 | + |
| 20 | +include_once __DIR__.'/../../core.php'; |
| 21 | + |
| 22 | +if ($config['maintenance_ip'] != $_SERVER['REMOTE_ADDR']) { |
| 23 | + include_once App::filepath('include|custom|', 'top.php'); |
| 24 | + $img = App::getPaths()['img']; |
| 25 | + |
| 26 | + echo ' |
| 27 | + <div class="box box-center-large box-danger"> |
| 28 | + <div class="box-header with-border text-center"> |
| 29 | + <img src="'.$img.'/logo_completo.png" width="300" alt="'.tr('OSM Logo').'"> |
| 30 | + </div> |
| 31 | +
|
| 32 | + <div class="box-body"> |
| 33 | + <div class="box box-center box-danger box-solid text-center"> |
| 34 | + <div class="box-header with-border"> |
| 35 | + <h3 class="box-title">'.tr('Manutenzione in corso!').'</h3> |
| 36 | + </div> |
| 37 | + <div class="box-body"> |
| 38 | + <p>'.tr('Il software si trova attualmente in modalità manutenzione, siete pregati di attendere sino alla conclusione dell\'intervento').'.</p> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + </div> |
| 42 | + </div>'; |
| 43 | + |
| 44 | + include_once App::filepath('include|custom|', 'bottom.php'); |
| 45 | + |
| 46 | + exit(); |
| 47 | +} |
0 commit comments