wok-6.x view kleanny/stuff/res/template/scheme @ 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 # Kleanny Scheme File.
2 # Please use HTML5 only.
3 # Javascript and CSS are available.
4 # ----------------------------------------------------------------------------
5 # Provided By The SliTaz Development Team.
6 # Copyright (C) 2017 The SliTaz Association.
7 #
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 # ----------------------------------------------------------------------------
22 # @@ Library and functions by SliTaz OS.
23 . /usr/lib/slitaz/httphelper.sh
24 . /lib/libtaz.sh
26 # @@ The header with the document data.
27 appMETAINFO(){
28 cat <<OUTPUT
29 <!DOCTYPE html>
30 <html>
31 <head>
32 <meta charset="$APP_ENCODING"/>
33 <title>$APP_NAME - $APP_DESC</title>
35 <style type="text/css">
36 <!--
37 $(cat $APP_DESIGN)
38 -->
39 </style>
41 <script type="text/javascript">
42 $(cat $APP_SCRIPT)
43 </script>
45 </head>
46 <body>
48 <header>
49 <h1>$APP_NAME</h1>
50 <h3>$(_ "$APP_DESC")</h3>
51 </header>
53 OUTPUT
54 }
57 # @@ The footer with additional information.
58 appFOOTER(){
59 cat <<OUTPUT
61 <footer>
62 <h4>$APP_NAME $APP_VERSION - $APP_LICENSE</h4><hr>
63 <h5>Provided by The <a href="$slitaz_devteam">SliTaz DevTeam</a></h5>
64 <h5>Copyright (C) 2017 The <a href="$slitaz_website">SliTaz Association</a></h5>
65 </footer>
67 </body>
68 </html>
69 OUTPUT
70 }
72 # @@ Return to status.cgi
73 redirect(){
74 cat <<OUTPUT
75 <html><head>
76 <meta http-equiv="refresh" content="3;url=result.cgi" />
77 </head></html>
78 OUTPUT
79 }