wok view kleanny/stuff/res/base/status.cgi @ rev 20040

Add: Kleanny v1.0 By The SliTaz DevTeam.
author Leonardo Laporte <hackdorte@yandex.com>
date Sun Aug 27 10:17:57 2017 -0300 (2017-08-27)
parents
children
line source
1 #!/bin/bash
2 #
3 # Provided By The SliTaz Development Team.
4 # Copyright (C) 2017 The SliTaz Association.
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 <http://www.gnu.org/licenses/>.
18 #
19 # @@ Kleanny Scheme File.
20 . /var/www/cgi-bin/kleanny/res/base/data
21 . /var/www/cgi-bin/kleanny/res/template/scheme
23 # @@ Kleanny Cache Status.
24 source /tmp/kleanny/status.log
25 STATUS_REPORT="$(du -hcs $CACHES | grep total | sed 's/[*total* ]//g')"
27 # @@ Page with status info.
28 header
30 appMETAINFO
32 # @@ The cache status situation.
33 cat <<OUTPUT
35 <section id="status">
36 <div id="scope">
37 <div id="coupler"></div>
38 <div id="gearONE"></div>
39 <div id="gearTWO"></div>
40 <p class="status">
41 $STATUS_REPORT
42 </p>
43 </div>
44 </section>
46 <form id="cleaner" method="POST" action="cleanup.cgi">
47 <button type="submit">$(_ "Cleanup!")</button>
48 </form>
50 OUTPUT
52 appFOOTER