added: a new winix function: passwd

for changing your password
       or if you are a super user you can
       change a password for anyone
added: uname prints available plugins now



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@748 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-06-27 21:38:19 +00:00
parent 06f42dd9cb
commit eaf10c70b7
32 changed files with 871 additions and 448 deletions

View File

@@ -1,9 +1,5 @@
<h1>[if-one user_logged]{adduser_header_add}[else]{adduser_header_register}[end]</h1>
[include "error.html"]
<form id="additem" method="post" action="[doc_base_url][dir]adduser">
<fieldset>
<legend>{adduser_form_legend}</legend>

27
html/fun_passwd.html Executable file
View File

@@ -0,0 +1,27 @@
<h1>{passwd_header}</h1>
<form id="additem" method="post" action="[doc_base_url][dir]passwd">
<fieldset>
<legend>{passwd_form_legend}</legend>
[if user_super_user]
<p class="withnext">{passwd_login}:</p>
<select name="login" class="users">
[for sys_user_tab]
<option [if sys_user_tab_is_current]selected[end]>[sys_user_tab_name]</option>
[end]
</select>
[else]
<p class="withnext">{passwd_current_password}:</p>
<input class="edit" type="password" name="passwordcur" value="">
[end]
<p class="withnext">{passwd_new_password}:</p>
<input class="edit" type="password" name="passwordnew" value="">
<p class="withnext">{passwd_confirm_new_password}:</p>
<input class="edit" type="password" name="passwordconfirm" value="">
<input class="submit" type="submit" value="{passwd_submit}">
</fieldset>
</form>

View File

@@ -1,6 +1,18 @@
<h1>{uname_header}</h1>
[include "error.html"]
<p>Winix [sys_ver_major].[sys_ver_minor].[sys_ver_revision]</p>
[if sys_plugin_tab]
{uname_available_plugins}:
<ul>
[for sys_plugin_tab]
<li>[if sys_plugin_tab_has_name][sys_plugin_tab_name][else]&lt;{uname_plugin_unknown}&gt;[end]</li>
[end]
</ul>
[end]

View File

@@ -1,11 +1,11 @@
[if slog_tab]
<table>
<table class="slog">
[for slog_tab]
<tr>
<td>
<td [if slog_tab_is_error]class="slogerror"[end]>
[if slog_tab_is_info]