tazpanel rev 112
Add some doc/help, use a BSD License and add COPYING file
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 15 11:32:56 2011 +0200 (2011-04-15) |
parents | 11d6b2b61036 |
children | bd9eaa40c1b7 |
files | COPYING README boot.cgi doc/index.cgi doc/tazpanel.en.html hardware.cgi help.cgi index.cgi live.cgi network.cgi pkgs.cgi settings.cgi styles/default/footer.html styles/default/header.html styles/default/style.css tazpanel tazpanel.conf |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/COPYING Fri Apr 15 11:32:56 2011 +0200 1.3 @@ -0,0 +1,26 @@ 1.4 +Copyright (c) 2011 SliTaz GNU/Linux. 1.5 +All rights reserved. 1.6 + 1.7 +Redistribution and use in source and binary forms, with or without 1.8 +modification, are permitted provided that the following conditions 1.9 +are met: 1.10 +1. Redistributions of source code must retain the above copyright 1.11 + notice, this list of conditions and the following disclaimer. 1.12 +2. Redistributions in binary form must reproduce the above copyright 1.13 + notice, this list of conditions and the following disclaimer in the 1.14 + documentation and/or other materials provided with the distribution. 1.15 +3. Neither the name of the University nor the names of its contributors 1.16 + may be used to endorse or promote products derived from TAZPANEL 1.17 + without specific prior written permission. 1.18 + 1.19 +TAZPANEL IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1.20 +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1.21 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1.22 +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1.23 +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1.24 +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1.25 +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1.26 +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1.27 +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1.28 +OUT OF THE USE OF TAZPANEL, EVEN IF ADVISED OF THE POSSIBILITY OF 1.29 +SUCH DAMAGE.
2.1 --- a/README Fri Apr 15 10:28:02 2011 +0200 2.2 +++ b/README Fri Apr 15 11:32:56 2011 +0200 2.3 @@ -4,7 +4,8 @@ 2.4 2.5 Tazpanel is the SliTaz Control Panel, a web interface which lets you manage the 2.6 full system in a radically simple way. The output xHTML code is valid xHTML 5 2.7 -and all theming is done with standard CSS 3. 2.8 +and all theming is done with standard CSS 3. TazPanel is published under a 2.9 +BSD License. 2.10 2.11 2.12 Use it! 2.13 @@ -52,11 +53,11 @@ 2.14 in another script you can eventually create a new CGI page and update all 2.15 links, but please to talk to the AUTHORS before. 2.16 2.17 - * index.cgi Main Tazpanel CGI script (some stuff may be split 2.18 - into users.cgi, boot.cgi, etc if too big or slow) 2.19 + * index.cgi Main Tazpanel CGI script 2.20 + * boot.cgi All what appens before login 2.21 * network.cgi All related stuff to networking (eth, wifi, services) 2.22 * pkgs.cgi Tazpkg packages CGI interface 2.23 - * system.cgi System settings and services such as time, users 2.24 + * settings.cgi System settings and services such as time, users 2.25 accounts, locales or daemons management 2.26 * live.cgi All tools related to Live systems (CD, USB, Frugal) 2.27 * hardware.cgi Devices drivers, firmware, printing
3.1 --- a/boot.cgi Fri Apr 15 10:28:02 2011 +0200 3.2 +++ b/boot.cgi Fri Apr 15 11:32:56 2011 +0200 3.3 @@ -2,7 +2,7 @@ 3.4 # 3.5 # Boot CGI script - All what happens before login (grub, rcS, slim) 3.6 # 3.7 -# Copyright (C) 2011 SliTaz GNU/Linux - GNU gpl v3 3.8 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 3.9 # 3.10 3.11 # Common functions from libtazpanel and source main boot config file.
4.1 --- a/doc/index.cgi Fri Apr 15 10:28:02 2011 +0200 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,24 +0,0 @@ 4.4 -#!/bin/sh 4.5 -# 4.6 -# CGI template interface for TazPanel (must go in $PANEL root to work). 4.7 -# 4.8 -echo "Content-Type: text/html" 4.9 -echo "" 4.10 - 4.11 -# Common functions from libtazpanel 4.12 -. ../lib/libtazpanel 4.13 -get_config 4.14 - 4.15 -# Cat translated help content 4.16 -TITLE="- Help \& Doc" 4.17 - 4.18 -xhtml_header 4.19 -cat tazpanel.html 4.20 - 4.21 -echo '<h3>README</h3>' 4.22 -echo '<pre>' 4.23 -cat $PANEL/README 4.24 -echo '</pre>' 4.25 - 4.26 -xhtml_footer 4.27 -exit 0
5.1 --- a/doc/tazpanel.en.html Fri Apr 15 10:28:02 2011 +0200 5.2 +++ b/doc/tazpanel.en.html Fri Apr 15 11:32:56 2011 +0200 5.3 @@ -1,3 +1,4 @@ 5.4 +<div id="help"> 5.5 5.6 <h2>English Help</h2> 5.7 5.8 @@ -8,6 +9,41 @@ 5.9 is done with the toolbar at the top of the application window and 5.10 in some cases with a submenu. 5.11 </p> 5.12 + 5.13 <p> 5.14 - Get support on the Slitaz <a href="http://forum.slitaz.org/">forum</a> 5.15 + In most case you will get a description and useful informations with 5.16 + the concerned section. TazPanel use latest XHTML 5 and CSS 3 technology 5.17 + to provide a clean and easy to use frontend to all administration tasks 5.18 + you could do on SliTaz. TazPanel have also been coded from the begining 5.19 + with speed and qualility in mind. The application also support full 5.20 + internationalization. 5.21 </p> 5.22 + 5.23 +<h3>Support</h3> 5.24 + 5.25 +<p> 5.26 + You can get support on the Slitaz <a href="http://forum.slitaz.org/">forum</a>, 5.27 + the mailing list or the IRC channel. 5.28 +</p> 5.29 + 5.30 +<h3>Get involve</h3> 5.31 + 5.32 +<p> 5.33 + If you want to help and get invlove in SliTaz, TazPanel maybe for your! 5.34 + We need help in translation, styling, documentation and coding. If 5.35 + you need more information or want to publish a new graphical style, 5.36 + you can go to SliTaz <a href="http://scn.slitaz.org/">Community</a> 5.37 + and post on the Devel forum or post an update with a PM to a SliTaz 5.38 + contributor so we can get in touch and include your work in TazPanel 5.39 + or in an extra styles package. 5.40 +</p> 5.41 + 5.42 +<h3>Bugs and features</h3> 5.43 + 5.44 +<p> 5.45 + TazPanel is a youg application who will be improved and polished time 5.46 + after time. If you find a bug, please post a bug on SliTaz tracker: 5.47 + <a href="http://bugs.slitaz.org/">bugs.slitaz.org</a> 5.48 +</p> 5.49 + 5.50 +</div>
6.1 --- a/hardware.cgi Fri Apr 15 10:28:02 2011 +0200 6.2 +++ b/hardware.cgi Fri Apr 15 11:32:56 2011 +0200 6.3 @@ -2,7 +2,7 @@ 6.4 # 6.5 # Hardware part of TazPanel - Devices, drivers, printing 6.6 # 6.7 -# Copyright (C) 2011 SliTaz GNU/Linux - GNU gpl v3 6.8 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 6.9 # 6.10 6.11 # Common functions from libtazpanel
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/help.cgi Fri Apr 15 11:32:56 2011 +0200 7.3 @@ -0,0 +1,31 @@ 7.4 +#!/bin/sh 7.5 +# 7.6 +# help.cgi - Display TazPanel doc and README. 7.7 +# 7.8 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 7.9 +# 7.10 +echo "Content-Type: text/html" 7.11 +echo "" 7.12 + 7.13 +# Common functions from libtazpanel 7.14 +. lib/libtazpanel 7.15 +get_config 7.16 + 7.17 +# Cat translated help content 7.18 +TITLE="- Help \& Doc" 7.19 + 7.20 +xhtml_header 7.21 + 7.22 +if [ -d doc ]; then 7.23 + cat doc/tazpanel.html 7.24 +else 7.25 + cat /usr/share/doc/tazpanel/tazpanel.html 7.26 +fi 7.27 + 7.28 +echo '<h3>README</h3>' 7.29 +echo '<pre>' 7.30 +cat $PANEL/README 7.31 +echo '</pre>' 7.32 + 7.33 +xhtml_footer 7.34 +exit 0
8.1 --- a/index.cgi Fri Apr 15 10:28:02 2011 +0200 8.2 +++ b/index.cgi Fri Apr 15 11:32:56 2011 +0200 8.3 @@ -4,7 +4,7 @@ 8.4 # command so we are faster and do not load unneeded functions. If necessary 8.5 # you can use the lib/ dir to handle external resources. 8.6 # 8.7 -# Copyright (C) 2011 SliTaz GNU/Linux - GNU gpl v3 8.8 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 8.9 # 8.10 8.11 # Common functions from libtazpanel
9.1 --- a/live.cgi Fri Apr 15 10:28:02 2011 +0200 9.2 +++ b/live.cgi Fri Apr 15 11:32:56 2011 +0200 9.3 @@ -2,7 +2,7 @@ 9.4 # 9.5 # CGI interface for SliTaz Live systems using Tazlito and TazUSB. 9.6 # 9.7 -# Copyright (C) 2011 SliTaz GNU/Linux - GNU gpl v3 9.8 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 9.9 # 9.10 9.11 if [ "$1" == "call" ]; then
10.1 --- a/network.cgi Fri Apr 15 10:28:02 2011 +0200 10.2 +++ b/network.cgi Fri Apr 15 11:32:56 2011 +0200 10.3 @@ -2,6 +2,8 @@ 10.4 # 10.5 # Network configuration CGI interface 10.6 # 10.7 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 10.8 +# 10.9 10.10 # Common functions from libtazpanel 10.11 . lib/libtazpanel
11.1 --- a/pkgs.cgi Fri Apr 15 10:28:02 2011 +0200 11.2 +++ b/pkgs.cgi Fri Apr 15 11:32:56 2011 +0200 11.3 @@ -6,7 +6,7 @@ 11.4 # its own code for some tasks. Please KISS, it is important and keep speed 11.5 # in mind. Thanks, Pankso. 11.6 # 11.7 -# (C) 2011 SliTaz GNU/Linux - GNU gpl v3 11.8 +# (C) 2011 SliTaz GNU/Linux - BSD License 11.9 # 11.10 11.11 . lib/libtazpanel
12.1 --- a/settings.cgi Fri Apr 15 10:28:02 2011 +0200 12.2 +++ b/settings.cgi Fri Apr 15 11:32:56 2011 +0200 12.3 @@ -4,7 +4,7 @@ 12.4 # dont have multiple pages here there is only one case used to get command 12.5 # values and the full content is following directly. 12.6 # 12.7 -# Copyright (C) 2011 SliTaz GNU/Linux - GNU gpl v3 12.8 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 12.9 # 12.10 12.11 # Common functions from libtazpanel
13.1 --- a/styles/default/footer.html Fri Apr 15 10:28:02 2011 +0200 13.2 +++ b/styles/default/footer.html Fri Apr 15 11:32:56 2011 +0200 13.3 @@ -3,7 +3,9 @@ 13.4 </div> 13.5 13.6 <div id="footer"> 13.7 - <a href="http://www.slitaz.org/">SliTaz Panel</a> 13.8 + Copyright © 2011 13.9 + <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a> 13.10 + - <a href="/index.cgi?file=/usr/share/licenses/bsd.txt">BSD License</a> 13.11 </div> 13.12 13.13 </body>
14.1 --- a/styles/default/header.html Fri Apr 15 10:28:02 2011 +0200 14.2 +++ b/styles/default/header.html Fri Apr 15 11:32:56 2011 +0200 14.3 @@ -16,7 +16,7 @@ 14.4 14.5 <div id="toolbar"> 14.6 <div id="icons"> 14.7 - <a href="/doc/"> 14.8 + <a href="/help.cgi"> 14.9 <img src="/styles/default/images/help.png" /></a> 14.10 </div> 14.11 <div id="menu">
15.1 --- a/styles/default/style.css Fri Apr 15 10:28:02 2011 +0200 15.2 +++ b/styles/default/style.css Fri Apr 15 11:32:56 2011 +0200 15.3 @@ -1,5 +1,6 @@ 15.4 /* 15.5 - CSS style for TazPanel - (C) 2011 SliTaz GNU/Linux 15.6 + * CSS style for TazPanel - (C) 2011 SliTaz GNU/Linux 15.7 + * 15.8 */ 15.9 15.10 /* To always have a scroll bar */ 15.11 @@ -236,6 +237,12 @@ 15.12 border-radius: 4px; 15.13 } 15.14 15.15 +/* Help page */ 15.16 + 15.17 +#help { text-align: justify; } 15.18 +#help a { color: #215090; text-decoration: underline; } 15.19 +#help a:hover { text-decoration: none; color: blue; } 15.20 + 15.21 /* Footer */ 15.22 15.23 #footer { 15.24 @@ -244,4 +251,7 @@ 15.25 text-align: center; 15.26 padding: 40px 10px; 15.27 font-size: 11px; 15.28 -} 15.29 + color: #555; 15.30 +} 15.31 + 15.32 +#footer a:hover { color: blue; }
16.1 --- a/tazpanel Fri Apr 15 10:28:02 2011 +0200 16.2 +++ b/tazpanel Fri Apr 15 11:32:56 2011 +0200 16.3 @@ -2,7 +2,7 @@ 16.4 # 16.5 # Tiny Tazpanel cmdline interface 16.6 # 16.7 -# Copyright (C) 2011 SliTaz GNU/Linux - GNU gpl v3 16.8 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 16.9 # 16.10 VERSION=1.0 16.11
17.1 --- a/tazpanel.conf Fri Apr 15 10:28:02 2011 +0200 17.2 +++ b/tazpanel.conf Fri Apr 15 11:32:56 2011 +0200 17.3 @@ -1,6 +1,6 @@ 17.4 # tazpanel.conf: SliTaz Web Control Panel configuration 17.5 # 17.6 -# Copyright (C) 2011 SliTaz GNU/Linux - GNU gpl v3 17.7 +# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 17.8 # 17.9 17.10 # Panel location and theme 17.11 @@ -13,7 +13,7 @@ 17.12 FOOTER="/styles/$STYLE/footer.html" 17.13 17.14 # Display some debug messages 17.15 -DEBUG="1" 17.16 +DEBUG="0" 17.17 17.18 # Activity log file 17.19 LOG_FILE="/var/log/slitaz/tazpanel.log"