Commit 3fb28a5032c8e4b957d317ca1a01f3704602e54b
- Diff rendering mode:
- inline
- side by side
ChangeLog
(2 / 0)
|   | |||
| 1 | 1 | dSS11-WebSetup | |
| 2 | v0.5.0 | ||
| 3 | * added web ui admin password settings, this implements #439 | ||
| 2 | 4 | ||
| 3 | 5 | v0.4.0 01.09.2010 Date, time and timezone settings | |
| 4 | 6 | * implemented date, time, timezone and ntp configuration, this implements |
bin.list
(2 / 0)
|   | |||
| 22 | 22 | ./www/cgi-bin/setdatewrapper.sh \ | |
| 23 | 23 | ./www/cgi-bin/setname.sh \ | |
| 24 | 24 | ./www/cgi-bin/setnamewrapper.sh \ | |
| 25 | ./www/cgi-bin/setwebpass.sh \ | ||
| 26 | ./www/cgi-bin/setwebpasswrapper.sh \ | ||
| 25 | 27 | ./www/cgi-bin/who.hs \ | |
| 26 | 28 | ./www/cgi-bin/zonelist.sh |
extra.list
(1 / 0)
|   | |||
| 1 | 1 | EXTRA_DIST += \ | |
| 2 | ./www/js/dss11/separated_js/accesspanel.js \ | ||
| 2 | 3 | ./www/js/dss11/separated_js/gettexthelper.js \ | |
| 3 | 4 | ./www/js/dss11/separated_js/main.js \ | |
| 4 | 5 | ./www/js/dss11/separated_js/navpanel.js \ |
file.list
(27 / 26)
|   | |||
| 12 | 12 | ./www/images/default/button/group-cs.gif \ | |
| 13 | 13 | ./www/images/default/button/group-lr.gif \ | |
| 14 | 14 | ./www/images/default/button/group-tb.gif \ | |
| 15 | ./www/images/default/button/s-arrow-b.gif \ | ||
| 16 | 15 | ./www/images/default/button/s-arrow-b-noline.gif \ | |
| 16 | ./www/images/default/button/s-arrow-b.gif \ | ||
| 17 | 17 | ./www/images/default/button/s-arrow-bo.gif \ | |
| 18 | ./www/images/default/button/s-arrow.gif \ | ||
| 19 | 18 | ./www/images/default/button/s-arrow-noline.gif \ | |
| 20 | 19 | ./www/images/default/button/s-arrow-o.gif \ | |
| 20 | ./www/images/default/button/s-arrow.gif \ | ||
| 21 | 21 | ./www/images/default/dd/drop-add.gif \ | |
| 22 | 22 | ./www/images/default/dd/drop-no.gif \ | |
| 23 | 23 | ./www/images/default/dd/drop-yes.gif \ | |
| … | … | ||
| 33 | 33 | ./www/images/default/form/search-trigger.gif \ | |
| 34 | 34 | ./www/images/default/form/search-trigger.psd \ | |
| 35 | 35 | ./www/images/default/form/text-bg.gif \ | |
| 36 | ./www/images/default/form/trigger.gif \ | ||
| 37 | ./www/images/default/form/trigger.psd \ | ||
| 38 | 36 | ./www/images/default/form/trigger-square.gif \ | |
| 39 | 37 | ./www/images/default/form/trigger-square.psd \ | |
| 40 | 38 | ./www/images/default/form/trigger-tpl.gif \ | |
| 39 | ./www/images/default/form/trigger.gif \ | ||
| 40 | ./www/images/default/form/trigger.psd \ | ||
| 41 | 41 | ./www/images/default/gradient-bg.gif \ | |
| 42 | 42 | ./www/images/default/grid/arrow-left-white.gif \ | |
| 43 | 43 | ./www/images/default/grid/arrow-right-white.gif \ | |
| … | … | ||
| 49 | 49 | ./www/images/default/grid/drop-no.gif \ | |
| 50 | 50 | ./www/images/default/grid/drop-yes.gif \ | |
| 51 | 51 | ./www/images/default/grid/footer-bg.gif \ | |
| 52 | ./www/images/default/grid/grid3-hd-btn.gif \ | ||
| 53 | ./www/images/default/grid/grid3-hrow.gif \ | ||
| 54 | ./www/images/default/grid/grid3-hrow-over.gif \ | ||
| 55 | ./www/images/default/grid/grid3-special-col-bg.gif \ | ||
| 56 | ./www/images/default/grid/grid3-special-col-sel-bg.gif \ | ||
| 57 | 52 | ./www/images/default/grid/grid-blue-hd.gif \ | |
| 58 | 53 | ./www/images/default/grid/grid-blue-split.gif \ | |
| 59 | 54 | ./www/images/default/grid/grid-hrow.gif \ | |
| 60 | 55 | ./www/images/default/grid/grid-loading.gif \ | |
| 61 | 56 | ./www/images/default/grid/grid-split.gif \ | |
| 62 | 57 | ./www/images/default/grid/grid-vista-hd.gif \ | |
| 58 | ./www/images/default/grid/grid3-hd-btn.gif \ | ||
| 59 | ./www/images/default/grid/grid3-hrow-over.gif \ | ||
| 60 | ./www/images/default/grid/grid3-hrow.gif \ | ||
| 61 | ./www/images/default/grid/grid3-special-col-bg.gif \ | ||
| 62 | ./www/images/default/grid/grid3-special-col-sel-bg.gif \ | ||
| 63 | 63 | ./www/images/default/grid/group-by.gif \ | |
| 64 | 64 | ./www/images/default/grid/group-collapse.gif \ | |
| 65 | ./www/images/default/grid/group-expand.gif \ | ||
| 66 | 65 | ./www/images/default/grid/group-expand-sprite.gif \ | |
| 66 | ./www/images/default/grid/group-expand.gif \ | ||
| 67 | 67 | ./www/images/default/grid/hd-pop.gif \ | |
| 68 | 68 | ./www/images/default/grid/hmenu-asc.gif \ | |
| 69 | 69 | ./www/images/default/grid/hmenu-desc.gif \ | |
| … | … | ||
| 89 | 89 | ./www/images/default/grid/row-expand-sprite.gif \ | |
| 90 | 90 | ./www/images/default/grid/row-over.gif \ | |
| 91 | 91 | ./www/images/default/grid/row-sel.gif \ | |
| 92 | ./www/images/default/grid/sort-hd.gif \ | ||
| 92 | 93 | ./www/images/default/grid/sort_asc.gif \ | |
| 93 | 94 | ./www/images/default/grid/sort_desc.gif \ | |
| 94 | ./www/images/default/grid/sort-hd.gif \ | ||
| 95 | 95 | ./www/images/default/grid/wait.gif \ | |
| 96 | 96 | ./www/images/default/layout/collapse.gif \ | |
| 97 | 97 | ./www/images/default/layout/expand.gif \ | |
| … | … | ||
| 107 | 107 | ./www/images/default/layout/panel-title-light-bg.gif \ | |
| 108 | 108 | ./www/images/default/layout/stick.gif \ | |
| 109 | 109 | ./www/images/default/layout/stuck.gif \ | |
| 110 | ./www/images/default/layout/tab-close.gif \ | ||
| 111 | 110 | ./www/images/default/layout/tab-close-on.gif \ | |
| 111 | ./www/images/default/layout/tab-close.gif \ | ||
| 112 | 112 | ./www/images/default/menu/checked.gif \ | |
| 113 | 113 | ./www/images/default/menu/group-checked.gif \ | |
| 114 | 114 | ./www/images/default/menu/item-over.gif \ | |
| 115 | ./www/images/default/menu/menu.gif \ | ||
| 116 | 115 | ./www/images/default/menu/menu-parent.gif \ | |
| 116 | ./www/images/default/menu/menu.gif \ | ||
| 117 | 117 | ./www/images/default/menu/unchecked.gif \ | |
| 118 | 118 | ./www/images/default/panel/corners-sprite.gif \ | |
| 119 | 119 | ./www/images/default/panel/left-right.gif \ | |
| 120 | 120 | ./www/images/default/panel/light-hd.gif \ | |
| 121 | ./www/images/default/panel/tool-sprites.gif \ | ||
| 122 | 121 | ./www/images/default/panel/tool-sprite-tpl.gif \ | |
| 122 | ./www/images/default/panel/tool-sprites.gif \ | ||
| 123 | 123 | ./www/images/default/panel/tools-sprites-trans.gif \ | |
| 124 | 124 | ./www/images/default/panel/top-bottom.gif \ | |
| 125 | 125 | ./www/images/default/panel/top-bottom.png \ | |
| … | … | ||
| 150 | 150 | ./www/images/default/sizer/ne-handle.gif \ | |
| 151 | 151 | ./www/images/default/sizer/nw-handle-dark.gif \ | |
| 152 | 152 | ./www/images/default/sizer/nw-handle.gif \ | |
| 153 | ./www/images/default/sizer/se-handle-dark.gif \ | ||
| 154 | ./www/images/default/sizer/se-handle.gif \ | ||
| 155 | 153 | ./www/images/default/sizer/s-handle-dark.gif \ | |
| 156 | 154 | ./www/images/default/sizer/s-handle.gif \ | |
| 155 | ./www/images/default/sizer/se-handle-dark.gif \ | ||
| 156 | ./www/images/default/sizer/se-handle.gif \ | ||
| 157 | 157 | ./www/images/default/sizer/square.gif \ | |
| 158 | 158 | ./www/images/default/sizer/sw-handle-dark.gif \ | |
| 159 | 159 | ./www/images/default/sizer/sw-handle.gif \ | |
| … | … | ||
| 161 | 161 | ./www/images/default/slider/slider-thumb.png \ | |
| 162 | 162 | ./www/images/default/slider/slider-v-bg.png \ | |
| 163 | 163 | ./www/images/default/slider/slider-v-thumb.png \ | |
| 164 | ./www/images/default/tabs/scroller-bg.gif \ | ||
| 165 | 164 | ./www/images/default/tabs/scroll-left.gif \ | |
| 166 | 165 | ./www/images/default/tabs/scroll-right.gif \ | |
| 166 | ./www/images/default/tabs/scroller-bg.gif \ | ||
| 167 | 167 | ./www/images/default/tabs/tab-btm-inactive-left-bg.gif \ | |
| 168 | 168 | ./www/images/default/tabs/tab-btm-inactive-right-bg.gif \ | |
| 169 | 169 | ./www/images/default/tabs/tab-btm-left-bg.gif \ | |
| … | … | ||
| 171 | 171 | ./www/images/default/tabs/tab-btm-over-right-bg.gif \ | |
| 172 | 172 | ./www/images/default/tabs/tab-btm-right-bg.gif \ | |
| 173 | 173 | ./www/images/default/tabs/tab-close.gif \ | |
| 174 | ./www/images/default/tabs/tabs-sprite.gif \ | ||
| 175 | 174 | ./www/images/default/tabs/tab-strip-bg.gif \ | |
| 176 | 175 | ./www/images/default/tabs/tab-strip-bg.png \ | |
| 177 | 176 | ./www/images/default/tabs/tab-strip-btm-bg.gif \ | |
| 177 | ./www/images/default/tabs/tabs-sprite.gif \ | ||
| 178 | 178 | ./www/images/default/toolbar/bg.gif \ | |
| 179 | ./www/images/default/toolbar/btn-arrow.gif \ | ||
| 180 | 179 | ./www/images/default/toolbar/btn-arrow-light.gif \ | |
| 180 | ./www/images/default/toolbar/btn-arrow.gif \ | ||
| 181 | 181 | ./www/images/default/toolbar/btn-over-bg.gif \ | |
| 182 | 182 | ./www/images/default/toolbar/gray-bg.gif \ | |
| 183 | 183 | ./www/images/default/toolbar/more.gif \ | |
| … | … | ||
| 192 | 192 | ./www/images/default/tree/drop-over.gif \ | |
| 193 | 193 | ./www/images/default/tree/drop-under.gif \ | |
| 194 | 194 | ./www/images/default/tree/drop-yes.gif \ | |
| 195 | ./www/images/default/tree/elbow-end.gif \ | ||
| 196 | ./www/images/default/tree/elbow-end-minus.gif \ | ||
| 197 | 195 | ./www/images/default/tree/elbow-end-minus-nl.gif \ | |
| 198 | ./www/images/default/tree/elbow-end-plus.gif \ | ||
| 196 | ./www/images/default/tree/elbow-end-minus.gif \ | ||
| 199 | 197 | ./www/images/default/tree/elbow-end-plus-nl.gif \ | |
| 200 | ./www/images/default/tree/elbow.gif \ | ||
| 198 | ./www/images/default/tree/elbow-end-plus.gif \ | ||
| 199 | ./www/images/default/tree/elbow-end.gif \ | ||
| 201 | 200 | ./www/images/default/tree/elbow-line.gif \ | |
| 202 | ./www/images/default/tree/elbow-minus.gif \ | ||
| 203 | 201 | ./www/images/default/tree/elbow-minus-nl.gif \ | |
| 204 | ./www/images/default/tree/elbow-plus.gif \ | ||
| 202 | ./www/images/default/tree/elbow-minus.gif \ | ||
| 205 | 203 | ./www/images/default/tree/elbow-plus-nl.gif \ | |
| 206 | ./www/images/default/tree/folder.gif \ | ||
| 204 | ./www/images/default/tree/elbow-plus.gif \ | ||
| 205 | ./www/images/default/tree/elbow.gif \ | ||
| 207 | 206 | ./www/images/default/tree/folder-open.gif \ | |
| 207 | ./www/images/default/tree/folder.gif \ | ||
| 208 | 208 | ./www/images/default/tree/leaf.gif \ | |
| 209 | 209 | ./www/images/default/tree/loading.gif \ | |
| 210 | 210 | ./www/images/default/tree/s.gif \ | |
| … | … | ||
| 233 | 233 | ./www/locale/de_DE/LC_MESSAGES/langpack.json \ | |
| 234 | 234 | ./www/locale/de_DE/LC_MESSAGES/nameconf.text \ | |
| 235 | 235 | ./www/locale/de_DE/LC_MESSAGES/netconf.text \ | |
| 236 | ./www/locale/de_DE/LC_MESSAGES/pwinfo.text \ | ||
| 236 | 237 | ./www/locale/default |
www/cgi-bin/errlib.sh
(2 / 0)
|   | |||
| 42 | 42 | ERR_LINK=20 # could not create symbolic link | |
| 43 | 43 | ERR_DATE=21 # invalid date given or error setting date | |
| 44 | 44 | ERR_TIME=22 # invalid time given or error setting time | |
| 45 | ERR_PASSWORD=23 # invalid or missing or wrong password | ||
| 46 | ERR_SETUP=24 # error related to system setup, missing config files, etc. |
www/cgi-bin/setwebpass.sh
(98 / 0)
|   | |||
| 1 | #!/bin/sh | ||
| 2 | # Copyright (c) 2010 digitalSTROM.org, Zurich, Switzerland | ||
| 3 | # | ||
| 4 | # Author: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc> | ||
| 5 | # | ||
| 6 | # This file is part of digitalSTROM Server. | ||
| 7 | # | ||
| 8 | # netinfo.sh 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 | # netinfo.sh 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 file. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | |||
| 21 | # source common functions | ||
| 22 | . ./errlib.sh | ||
| 23 | . ./jsonlib.sh | ||
| 24 | |||
| 25 | OLDPW="" | ||
| 26 | NEWPW="" | ||
| 27 | |||
| 28 | set_lighttpd_pw() { | ||
| 29 | if [[ -x /usr/bin/htdigest.sh ]]; then | ||
| 30 | htdigest.sh -u dssadmin -r dSS11 -p "$1" | ||
| 31 | if [ "$?" -eq "1" ]; then | ||
| 32 | jsoin_error $ERR_SETUP "Could not set new password, htdigest.sh utility returned error!" | ||
| 33 | return $ERR_SETUP | ||
| 34 | fi | ||
| 35 | PID=`pidof lighttpd` | ||
| 36 | if [[ -n "$PID" ]]; then | ||
| 37 | kill -HUP $PID | ||
| 38 | fi | ||
| 39 | else | ||
| 40 | json_error $ERR_SETUP "Missing htdigest.sh utility!" | ||
| 41 | return $ERR_SETUP | ||
| 42 | fi | ||
| 43 | |||
| 44 | return $ERR_OK | ||
| 45 | } | ||
| 46 | |||
| 47 | check_current_pw() { | ||
| 48 | HASH=$(echo -n "dssadmin:dSS11:$1" | md5sum | cut -b -32) | ||
| 49 | if [[ -f /etc/lighttpd.user ]]; then | ||
| 50 | cat /etc/lighttpd.user | grep "$HASH" > /dev/null 2>&1 | ||
| 51 | if [ "$?" -eq "1" ]; then | ||
| 52 | json_error $ERR_PASSWORD "Old password does not match!" | ||
| 53 | return $ERR_PASSWORD | ||
| 54 | fi | ||
| 55 | else | ||
| 56 | json_error $ERR_SETUP "Missing lighttpd password configuration!" | ||
| 57 | return $ERR_SETUP | ||
| 58 | fi | ||
| 59 | |||
| 60 | return $ERR_OK | ||
| 61 | } | ||
| 62 | |||
| 63 | echo "Content-Type: application/json" | ||
| 64 | echo "" | ||
| 65 | |||
| 66 | |||
| 67 | if [[ -n "$1" ]]; then | ||
| 68 | OLDPW="$1" | ||
| 69 | else | ||
| 70 | json_error $ERR_PASSWORD "Missing current password!" | ||
| 71 | exit 1 | ||
| 72 | fi | ||
| 73 | |||
| 74 | if [[ -n "$2" ]]; then | ||
| 75 | echo "$2" | grep " " > /dev/null 2>&1 | ||
| 76 | if [ "$?" -eq "0" ]; then | ||
| 77 | json_error $ERR_PASSWORD "Invalid password specified, no spaces allowed!" | ||
| 78 | exit 1 | ||
| 79 | fi | ||
| 80 | NEWPW="$2" | ||
| 81 | else | ||
| 82 | json_error $ERR_PASSWORD "Missing new password!" | ||
| 83 | exit 1 | ||
| 84 | fi | ||
| 85 | |||
| 86 | check_current_pw "$OLDPW" | ||
| 87 | RETCODE="$?" | ||
| 88 | if [[ "$RETCODE" -ne "$ERR_OK" ]]; then | ||
| 89 | exit $RETCODE | ||
| 90 | fi | ||
| 91 | |||
| 92 | set_lighttpd_pw "$NEWPW" | ||
| 93 | RETCODE="$?" | ||
| 94 | if [[ "$RETCODE" -ne "$ERR_OK" ]]; then | ||
| 95 | exit $RETCODE | ||
| 96 | fi | ||
| 97 | |||
| 98 | json_ok |
www/cgi-bin/setwebpasswrapper.sh
(5 / 0)
|   | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | eval `./proccgi.sh $*` | ||
| 4 | |||
| 5 | exec ./setwebpass.sh "$FORM_currentpw" "$FORM_newpw" |
www/js/dss11/separated_js/accesspanel.js
(147 / 0)
|   | |||
| 1 | //= require <timeinfo> | ||
| 2 | // | ||
| 3 | Ext.namespace('dSS11', 'dSS11.config'); | ||
| 4 | |||
| 5 | dSS11.AccessConfigPanel = Ext.extend(Ext.Panel, | ||
| 6 | { | ||
| 7 | initComponent: function() | ||
| 8 | { | ||
| 9 | |||
| 10 | this.webPassword = new Ext.form.FieldSet( | ||
| 11 | { | ||
| 12 | layout: 'form', | ||
| 13 | title: _("Web interface admin password"), | ||
| 14 | scope: this, | ||
| 15 | items: [ | ||
| 16 | new Ext.Panel({ | ||
| 17 | autoEl: 'span', | ||
| 18 | cls: 'x-green-text', | ||
| 19 | autoLoad: dSS11.config.langPath + 'pwinfo.text', | ||
| 20 | bodyBorder: false, | ||
| 21 | footer: true, | ||
| 22 | footerCfg: { html: '<br/>' } | ||
| 23 | }), | ||
| 24 | { | ||
| 25 | xtype: 'textfield', | ||
| 26 | width: 220, | ||
| 27 | name: 'currentpw', | ||
| 28 | ref: 'currentpw', | ||
| 29 | inputType: 'password', | ||
| 30 | allowBlank: false, | ||
| 31 | fieldLabel: _("Current password"), | ||
| 32 | maxLength: 64 | ||
| 33 | }, | ||
| 34 | { | ||
| 35 | xtype: 'textfield', | ||
| 36 | width: 220, | ||
| 37 | name: 'newpw', | ||
| 38 | ref: 'newpw', | ||
| 39 | inputType: 'password', | ||
| 40 | regex: new RegExp("^\\S+$"), | ||
| 41 | allowBlank: false, | ||
| 42 | fieldLabel: _("New password"), | ||
| 43 | maxLength: 64 | ||
| 44 | }, | ||
| 45 | { | ||
| 46 | xtype: 'textfield', | ||
| 47 | width: 220, | ||
| 48 | name: 'repeatpw', | ||
| 49 | ref: 'repeatpw', | ||
| 50 | inputType: 'password', | ||
| 51 | submitValue: false, | ||
| 52 | allowBlank: false, | ||
| 53 | regex: new RegExp("^\\S+$"), | ||
| 54 | fieldLabel: _("Repeat new password"), | ||
| 55 | maxLength: 64 | ||
| 56 | }, | ||
| 57 | { | ||
| 58 | xtype: 'button', | ||
| 59 | text: _("Apply"), | ||
| 60 | handler: this.setPassword.createDelegate(this) | ||
| 61 | } | ||
| 62 | ] // items | ||
| 63 | } // field set | ||
| 64 | ); | ||
| 65 | |||
| 66 | this.passwordForm = new Ext.FormPanel( | ||
| 67 | { | ||
| 68 | padding: 6, | ||
| 69 | ref: 'passwordform', | ||
| 70 | id: 'passwordform', | ||
| 71 | scope: this, | ||
| 72 | items: [ | ||
| 73 | this.webPassword | ||
| 74 | ] | ||
| 75 | } | ||
| 76 | ); | ||
| 77 | |||
| 78 | Ext.apply(this, { | ||
| 79 | hideBorders: true, | ||
| 80 | items: [ | ||
| 81 | this.passwordForm | ||
| 82 | ] | ||
| 83 | }); | ||
| 84 | |||
| 85 | dSS11.AccessConfigPanel.superclass.initComponent.apply(this, arguments); | ||
| 86 | }, // initcomponent | ||
| 87 | setPassword: function() { | ||
| 88 | if (!this.passwordForm.getForm().isValid()) { | ||
| 89 | Ext.Msg.alert(_("Error"), _("The password is missing or invalid!")); | ||
| 90 | return; | ||
| 91 | } | ||
| 92 | |||
| 93 | if (this.webPassword.newpw.getValue() != | ||
| 94 | this.webPassword.repeatpw.getValue()) | ||
| 95 | { | ||
| 96 | this.webPassword.newpw.markInvalid(); | ||
| 97 | this.webPassword.repeatpw.markInvalid(); | ||
| 98 | |||
| 99 | Ext.Msg.alert(_("Error"), _("The passwords you entered do not match!")); | ||
| 100 | |||
| 101 | Ext.Msg.show({ | ||
| 102 | title:_("Error"), | ||
| 103 | msg: _("The passwords you entered do not match!"), | ||
| 104 | buttons: Ext.Msg.OK, | ||
| 105 | scope: this, | ||
| 106 | fn: function() { | ||
| 107 | this.webPassword.newpw.reset(); | ||
| 108 | this.webPassword.repeatpw.reset(); | ||
| 109 | this.webPassword.newpw.markInvalid(); | ||
| 110 | this.webPassword.repeatpw.markInvalid(); | ||
| 111 | } | ||
| 112 | }); | ||
| 113 | return; | ||
| 114 | } | ||
| 115 | |||
| 116 | this.el.mask(_("Applying changes") + '...', 'x-mask-loading'); | ||
| 117 | |||
| 118 | this.passwordForm.getForm().submit({ | ||
| 119 | url: '/cgi-bin/setwebpasswrapper.sh', | ||
| 120 | method: 'GET', | ||
| 121 | scope: this, | ||
| 122 | success: function(form, action) { | ||
| 123 | this.webPassword.currentpw.reset(); | ||
| 124 | this.webPassword.newpw.reset(); | ||
| 125 | this.webPassword.repeatpw.reset(); | ||
| 126 | this.el.unmask(); | ||
| 127 | }, | ||
| 128 | failure: function(form, action) { | ||
| 129 | this.el.unmask(); | ||
| 130 | switch (action.failureType) { | ||
| 131 | case Ext.form.Action.CONNECT_FAILURE: | ||
| 132 | Ext.Msg.alert(_("Error"), | ||
| 133 | _("Ajax communication failed")); | ||
| 134 | break; | ||
| 135 | case Ext.form.Action.SERVER_INVALID: | ||
| 136 | default: | ||
| 137 | Ext.Msg.alert(_("Error"), | ||
| 138 | _("Could not set password")); | ||
| 139 | break; | ||
| 140 | } | ||
| 141 | } | ||
| 142 | }); | ||
| 143 | } | ||
| 144 | } | ||
| 145 | ); | ||
| 146 | |||
| 147 | Ext.reg('dss11accessconfig', dSS11.AccessConfigPanel); |
www/js/dss11/separated_js/navpanel.js
(9 / 0)
|   | |||
| 1 | 1 | //= require <netconfpanel> | |
| 2 | 2 | //= require <sysconfpanel> | |
| 3 | //= require <accesspanel> | ||
| 3 | 4 | ||
| 4 | 5 | Ext.namespace('dSS11'); | |
| 5 | 6 | ||
| … | … | ||
| 53 | 53 | ref: 'sysconfig', | |
| 54 | 54 | hideBorders: true, | |
| 55 | 55 | xtype: 'dss11sysconfig', | |
| 56 | auto: false | ||
| 57 | }, | ||
| 58 | { | ||
| 59 | title: _("Access settings"), | ||
| 60 | id: 'accessconfig', | ||
| 61 | ref: 'accessconfig', | ||
| 62 | hideBorders: true, | ||
| 63 | xtype: 'dss11accessconfig', | ||
| 56 | 64 | auto: false | |
| 57 | 65 | } | |
| 58 | 66 | ]; |
www/locale/de_DE/LC_MESSAGES/langpack.json
(1 / 1)
|   | |||
| 1 | {"":{"Project-Id-Version":"0.3.0"},"September":[null,"September"],"Rebooting system":[null,"System wird neu gestartet"],"October":[null,"Oktober"],"Reboot":[null,"Neu starten"],"Cancel":[null,"Abbrechen"],"Gateway":[null,"Gateway"],"Invalid day given!":[null,"Der eingegebene Tag ist ungültig!"],"Please wait while the system is rebooting":[null,"Bitte warten Sie während das System neu startet"],"Loading date and time settings":[null,"Datum und Uhrzeit werden geladen"],"Date":[null,"Datum"],"No year given!":[null,"Kein Jahr eingegeben!"],"Installation name":[null,"Name der Installation"],"Redirecting to new location at":[null,"Weiterleitung auf neue Adresse: "],"January":[null,"Januar"],"April":[null,"April"],"August":[null,"August"],"Could not parse minutes!":[null,"Minuten konnten nicht ermittelt werden!"],"Note: this will take about a minute":[null,"Hinweis: dies wird ungefähr eine Minute dauern"],"Select a time zone":[null,"Wählen Sie eine Zeitzone"],"Restart dSS application":[null,"dSS Applikation neu starten"],"Static IP address configuration":[null,"Statische IP Konfiguration"],"The data you entered is invalid!":[null,"Die eingegebenen Daten sind ungültig!"],"February":[null,"Februar"],"Please configure your network settings manually:":[null,"Bitte tragen Sie ihre Netzwerkeinstellungen manuell ein:"],"Error":[null,"Fehler"],"The name you entered is invalid! Please do not use any whitespaces or special characters.":[null,"Der eingegebene Name ist ungültig! Bitte verwenden Sie keine Leerzeichen und keine Sonderzeichen!"],"Could not set date and time":[null,"Datum und Uhrzeit konnten nicht gesetzt werden"],"Could not load network settings":[null,"Netzwerkeinstellungen konnten nicht geladen werden"],"Loading current network configuration":[null,"Die aktuellen Netzwerkeinstellungen werden geladen"],"Automatic IP address configuration using DHCP":[null,"Automatische IP Einrichtung mittels DHCP"],"Restarting dSS application":[null,"dSS Applikation wird neu gestartet"],"Reboot system":[null,"System neu starten"],"Applying changes":[null,"Einstellungen werden vorgenommen"],"Invalid minutes given!":[null,"Die eingegebenen Minuten sind ungültig!"],"Refresh":[null,"Ansicht aktualisieren"],"digitalSTROM server application could not be restarted":[null,"Die digitalSTROM Server Applikation konnte nicht neu gestartet werden"],"March":[null,"März"],"Could not load system name":[null,"Name der Installation konnte nicht geladen werden"],"System reboot could not be initiated":[null,"System Neustart konnte nicht durchgeführt werden"],"Network settings":[null,"Netzwerk Einstellungen"],"NTP client enabled but no server specified!":[null,"NTP Client wurde ausgewählt, jedoch kein NTP Server eingegeben!"],"Requested time zone is not installed!":[null,"Die angegebene Zeitzone ist nicht installiert!"],"Please correct the errors in the red marked fields.":[null,"Bitte korrigieren Sie die Fehler in den rot markierten Feldern"],"Restart dSS":[null,"dSS neu starten"],"November":[null,"November"],"December":[null,"Dezember"],"Logged in users":[null,"Eingeloggte Benutzer"],"Invalid year given!":[null,"Das eingegebene Jahr ist ungültig!"],"Your network settings will be configured automatically via DHCP.":[null,"Die Netzwerkeinstellungen werden automatisch mit Hilfe von DHCP konfiguriert"],"Menu":[null,"Menü"],"NTP server":[null,"NTP Server"],"May":[null,"Mai"],"DNS":[null,"DNS"],"digitalSTROM server application successfully restarted":[null,"digitalSTROM Server Applikation wurde erfolgreich neu gestartet"],"Year must consist of four digits!":[null,"Das Jahr muss aus vier Zahlen bestehen!"],"Reloading page":[null,"Seite wird neu geladen"],"Date and time settings":[null,"Datum und Uhrzeit "],"Current date and time":[null,"Aktuelles Datum und Uhrzeit"],"Restart digitalSTROM server application":[null,"digitalSTROM Server Applikation neu starten"],"Synchronize date and time over the network":[null,"Datum und Uhrzeit über das Netzwerk synchronisieren"],"Error setting date!":[null,"Fehler beim Setzen des Datums!"],"Ajax communication failed":[null,"Ajax kommunikation fehlgeschlagen"],"Time":[null,"Uhrzeit"],"Could not load date and time settings":[null,"Datums und Uhzeiteinstellungen konnten nicht geladen werden"],"There was an error applying your new network settings! Do you want to revert to your previous working configuration?":[null,"Es gab einen Fehler beim setzen der neuen Netzwerkeinstellungen! Möchten Sie zu der vorigen Einstellung zurückkehren?"],"Error setting time!":[null,"Fehler beim Setzen der Zeit!"],"July":[null,"Juli"],"June":[null,"Juni"],"Netmask":[null,"Netzmaske"],"Could not set requested zone, link failed!":[null,"Die eingegebene Zeitzone konnte nicht aktiviert werden, Verlinkung fehlgeschlagen!"],"System settings":[null,"System Einstellungen"],"Invalid month given!":[null,"Der eingegebene Monat ist ungültig!"],"second remaining":["seconds remaining","Sekunde verbleibt","Sekunden verbleiben"],"Overview":[null,"Übersicht"],"Time zone":[null,"Zeitzone"],"Are you sure that you want to reboot the system?":[null,"Sind Sie sicher, dass Sie das System neu starten möchten?"],"Are you sure that you want to restart the dSS application?":[null,"Sind Sie sicher, dass Sie die dSS Appliktion neu starten möchten?"],"Loading system name":[null,"Systemname wird geladen"],"Could not parse day!":[null,"Der Tag konnte nicht ermittelt werden"],"Apply":[null,"Übernehmen"],"Could not parse month!":[null,"Monat konnte nicht ermittelt werden!"],"Invalid seconds given!":[null,"Die eingegebenen Sekunden sind ungültig!"],"The setup page will be automatically reloaded after the time elapses":[null,"Nach Ablauf der Zeit wird die Setup Seite automatisch neu geladen"],"IP Address":[null,"IP Adresse"],"Help":[null,"Hilfe"]} | ||
| 1 | {"":{"Project-Id-Version":"0.3.0"},"September":[null,"September"],"Rebooting system":[null,"System wird neu gestartet"],"The passwords you entered do not match!":[null,"Die eingegebenen Passwörter sind nicht gleich!"],"October":[null,"Oktober"],"Reboot":[null,"Neu starten"],"Web interface admin password":[null,"Administrator Passwort für die Webkonfiguration"],"Cancel":[null,"Abbrechen"],"Gateway":[null,"Gateway"],"Invalid day given!":[null,"Der eingegebene Tag ist ungültig!"],"Please wait while the system is rebooting":[null,"Bitte warten Sie während das System neu startet"],"Loading date and time settings":[null,"Datum und Uhrzeit werden geladen"],"Date":[null,"Datum"],"No year given!":[null,"Kein Jahr eingegeben!"],"Installation name":[null,"Name der Installation"],"Redirecting to new location at":[null,"Weiterleitung auf neue Adresse: "],"January":[null,"Januar"],"April":[null,"April"],"August":[null,"August"],"Could not parse minutes!":[null,"Minuten konnten nicht ermittelt werden!"],"Note: this will take about a minute":[null,"Hinweis: dies wird ungefähr eine Minute dauern"],"Select a time zone":[null,"Wählen Sie eine Zeitzone"],"Restart dSS application":[null,"dSS Applikation neu starten"],"Static IP address configuration":[null,"Statische IP Konfiguration"],"The data you entered is invalid!":[null,"Die eingegebenen Daten sind ungültig!"],"February":[null,"Februar"],"Please configure your network settings manually:":[null,"Bitte tragen Sie ihre Netzwerkeinstellungen manuell ein:"],"Error":[null,"Fehler"],"The name you entered is invalid! Please do not use any whitespaces or special characters.":[null,"Der eingegebene Name ist ungültig! Bitte verwenden Sie keine Leerzeichen und keine Sonderzeichen!"],"Could not set date and time":[null,"Datum und Uhrzeit konnten nicht gesetzt werden"],"Could not load network settings":[null,"Netzwerkeinstellungen konnten nicht geladen werden"],"Loading current network configuration":[null,"Die aktuellen Netzwerkeinstellungen werden geladen"],"New password":[null,"Neues Passwort"],"Automatic IP address configuration using DHCP":[null,"Automatische IP Einrichtung mittels DHCP"],"Restarting dSS application":[null,"dSS Applikation wird neu gestartet"],"Reboot system":[null,"System neu starten"],"Applying changes":[null,"Einstellungen werden vorgenommen"],"Invalid minutes given!":[null,"Die eingegebenen Minuten sind ungültig!"],"Invalid password specified, no spaces allowed!":[null,"Das eingegebene Passwort ist ungültig, Leerzeihen sind nicht erlaubt!"],"Refresh":[null,"Ansicht aktualisieren"],"digitalSTROM server application could not be restarted":[null,"Die digitalSTROM Server Applikation konnte nicht neu gestartet werden"],"March":[null,"März"],"Could not set password":[null,"Passwort konnte nicht gesetzt werden"],"Could not load system name":[null,"Name der Installation konnte nicht geladen werden"],"System reboot could not be initiated":[null,"System Neustart konnte nicht durchgeführt werden"],"Missing current password!":[null,"Das aktuelle Passwort fehlt!"],"Network settings":[null,"Netzwerk Einstellungen"],"NTP client enabled but no server specified!":[null,"NTP Client wurde ausgewählt, jedoch kein NTP Server eingegeben!"],"Requested time zone is not installed!":[null,"Die angegebene Zeitzone ist nicht installiert!"],"Please correct the errors in the red marked fields.":[null,"Bitte korrigieren Sie die Fehler in den rot markierten Feldern"],"Access settings":[null,"Passwort Einstellungen"],"Restart dSS":[null,"dSS neu starten"],"November":[null,"November"],"December":[null,"Dezember"],"Logged in users":[null,"Eingeloggte Benutzer"],"Invalid year given!":[null,"Das eingegebene Jahr ist ungültig!"],"Your network settings will be configured automatically via DHCP.":[null,"Die Netzwerkeinstellungen werden automatisch mit Hilfe von DHCP konfiguriert"],"Menu":[null,"Menü"],"NTP server":[null,"NTP Server"],"May":[null,"Mai"],"Old password does not match!":[null,"Das alte Passwort ist nicht korrekt!"],"DNS":[null,"DNS"],"digitalSTROM server application successfully restarted":[null,"digitalSTROM Server Applikation wurde erfolgreich neu gestartet"],"Year must consist of four digits!":[null,"Das Jahr muss aus vier Zahlen bestehen!"],"Reloading page":[null,"Seite wird neu geladen"],"Current date and time":[null,"Aktuelles Datum und Uhrzeit"],"Date and time settings":[null,"Datum und Uhrzeit "],"Repeat new password":[null,"Neues Passwort wiederholen"],"Restart digitalSTROM server application":[null,"digitalSTROM Server Applikation neu starten"],"Missing htdigest.sh utility!":[null,"Das htdigest.sh Programm fehlt!"],"Synchronize date and time over the network":[null,"Datum und Uhrzeit über das Netzwerk synchronisieren"],"Ajax communication failed":[null,"Ajax kommunikation fehlgeschlagen"],"Error setting date!":[null,"Fehler beim Setzen des Datums!"],"Time":[null,"Uhrzeit"],"Could not load date and time settings":[null,"Datums und Uhzeiteinstellungen konnten nicht geladen werden"],"Current password":[null,"Aktuelles Passwort"],"The password is missing or invalid!":[null,"Das Passwort fehlt oder ist ungültig!"],"Could not set new password, htdigest.sh utility returned error!":[null,"Neues Passwort konnte nicht gesetzt werden"],"There was an error applying your new network settings! Do you want to revert to your previous working configuration?":[null,"Es gab einen Fehler beim setzen der neuen Netzwerkeinstellungen! Möchten Sie zu der vorigen Einstellung zurückkehren?"],"Error setting time!":[null,"Fehler beim Setzen der Zeit!"],"July":[null,"Juli"],"June":[null,"Juni"],"Netmask":[null,"Netzmaske"],"Could not set requested zone, link failed!":[null,"Die eingegebene Zeitzone konnte nicht aktiviert werden, Verlinkung fehlgeschlagen!"],"System settings":[null,"System Einstellungen"],"Invalid month given!":[null,"Der eingegebene Monat ist ungültig!"],"second remaining":["seconds remaining","Sekunde verbleibt","Sekunden verbleiben"],"Overview":[null,"Übersicht"],"Time zone":[null,"Zeitzone"],"Are you sure that you want to reboot the system?":[null,"Sind Sie sicher, dass Sie das System neu starten möchten?"],"Are you sure that you want to restart the dSS application?":[null,"Sind Sie sicher, dass Sie die dSS Appliktion neu starten möchten?"],"Loading system name":[null,"Systemname wird geladen"],"Could not parse day!":[null,"Der Tag konnte nicht ermittelt werden"],"Apply":[null,"Übernehmen"],"Missing new password!":[null,"Das zu setzende Passwort fehlt!"],"Could not parse month!":[null,"Monat konnte nicht ermittelt werden!"],"Missin g lighttpd password configuration!":[null,"Die lighttpd Passwort Konfiguration ist nicht vorhanden!"],"Invalid seconds given!":[null,"Die eingegebenen Sekunden sind ungültig!"],"The setup page will be automatically reloaded after the time elapses":[null,"Nach Ablauf der Zeit wird die Setup Seite automatisch neu geladen"],"IP Address":[null,"IP Adresse"],"Help":[null,"Hilfe"]} |
www/locale/de_DE/LC_MESSAGES/pwinfo.text
(1 / 0)
|   | |||
| 1 | Achtung: das Passwort darf keine Leerzeichen enthalten.<br/> |
www/locale/de_DE/dss11.po
(45 / 0)
|   | |||
| 281 | 281 | ||
| 282 | 282 | msgid "Loading system name" | |
| 283 | 283 | msgstr "Systemname wird geladen" | |
| 284 | |||
| 285 | msgid "Web interface admin password" | ||
| 286 | msgstr "Administrator Passwort für die Webkonfiguration" | ||
| 287 | |||
| 288 | msgid "Current password" | ||
| 289 | msgstr "Aktuelles Passwort" | ||
| 290 | |||
| 291 | msgid "New password" | ||
| 292 | msgstr "Neues Passwort" | ||
| 293 | |||
| 294 | msgid "Repeat new password" | ||
| 295 | msgstr "Neues Passwort wiederholen" | ||
| 296 | |||
| 297 | msgid "The password is missing or invalid!" | ||
| 298 | msgstr "Das Passwort fehlt oder ist ungültig!" | ||
| 299 | |||
| 300 | msgid "The passwords you entered do not match!" | ||
| 301 | msgstr "Die eingegebenen Passwörter sind nicht gleich!" | ||
| 302 | |||
| 303 | msgid "Could not set password" | ||
| 304 | msgstr "Passwort konnte nicht gesetzt werden" | ||
| 305 | |||
| 306 | msgid "Could not set new password, htdigest.sh utility returned error!" | ||
| 307 | msgstr "Neues Passwort konnte nicht gesetzt werden" | ||
| 308 | |||
| 309 | msgid "Missing htdigest.sh utility!" | ||
| 310 | msgstr "Das htdigest.sh Programm fehlt!" | ||
| 311 | |||
| 312 | msgid "Old password does not match!" | ||
| 313 | msgstr "Das alte Passwort ist nicht korrekt!" | ||
| 314 | |||
| 315 | msgid "Missin g lighttpd password configuration!" | ||
| 316 | msgstr "Die lighttpd Passwort Konfiguration ist nicht vorhanden!" | ||
| 317 | |||
| 318 | msgid "Missing current password!" | ||
| 319 | msgstr "Das aktuelle Passwort fehlt!" | ||
| 320 | |||
| 321 | msgid "Invalid password specified, no spaces allowed!" | ||
| 322 | msgstr "Das eingegebene Passwort ist ungültig, Leerzeihen sind nicht erlaubt!" | ||
| 323 | |||
| 324 | msgid "Missing new password!" | ||
| 325 | msgstr "Das zu setzende Passwort fehlt!" | ||
| 326 | |||
| 327 | msgid "Access settings" | ||
| 328 | msgstr "Passwort Einstellungen" |
www/locale/dss11.po
(48 / 0)
|   | |||
| 281 | 281 | ||
| 282 | 282 | msgid "Loading system name" | |
| 283 | 283 | msgstr "" | |
| 284 | |||
| 285 | msgid "Web interface admin password" | ||
| 286 | msgstr "" | ||
| 287 | |||
| 288 | msgid "Current password" | ||
| 289 | msgstr "" | ||
| 290 | |||
| 291 | msgid "New password" | ||
| 292 | msgstr "" | ||
| 293 | |||
| 294 | msgid "Repeat new password" | ||
| 295 | msgstr "" | ||
| 296 | |||
| 297 | msgid "The password you entered is missing or invalid!" | ||
| 298 | msgstr "" | ||
| 299 | |||
| 300 | msgid "The passwords you entered do not match!" | ||
| 301 | msgstr "" | ||
| 302 | |||
| 303 | msgid "The passwords you entered do not match!" | ||
| 304 | msgstr "" | ||
| 305 | |||
| 306 | msgid "Could not set password" | ||
| 307 | msgstr "" | ||
| 308 | |||
| 309 | msgid "Could not set new password, htdigest.sh utility returned error!" | ||
| 310 | msgstr "" | ||
| 311 | |||
| 312 | msgid "Missing htdigest.sh utility!" | ||
| 313 | msgstr "" | ||
| 314 | |||
| 315 | msgid "Old password does not match!" | ||
| 316 | msgstr "" | ||
| 317 | |||
| 318 | msgid "Missing lighttpd password configuration!" | ||
| 319 | msgstr "" | ||
| 320 | |||
| 321 | msgid "Missing current password!" | ||
| 322 | msgstr "" | ||
| 323 | |||
| 324 | msgid "Invalid password specified, no spaces allowed!" | ||
| 325 | msgstr "" | ||
| 326 | |||
| 327 | msgid "Missing new password!" | ||
| 328 | msgstr "" | ||
| 329 | |||
| 330 | msgid "Access settings" | ||
| 331 | msgstr "" |

