--- /dev/null
+function submit_datetime() {
+ $.post('index.php',
+ 'action=datetime&' + $('div.w3-container#datetime form').serialize(),
+ function(data){
+ if (data)
+ response('Aktuelle Uhrzeit und Datum gesetzt');
+ });
+
+ return false;
+}
+
+function submit_wifi() {
+ $.post('index.php',
+ 'action=wifi&' + $('div.w3-container#wifi form').serialize());
+ response('WLAN neu konfiguriert.<br>Sie müssen sich mit neuem Paßwort im WLAN anmelden.');
+
+ return false;
+}
+
+function submit_shares() {
+ $.post('index.php',
+ 'action=shares&' + $('div.w3-container#shares form').serialize(),
+ function(data){
+ if (data)
+ response('Passwörter für die Netzwerk-Laufwerke gesetzt');
+ });
+
+ return false;
+}
+
+function submit_rescan() {
+ $.post('index.php',
+ 'action=rescan',
+ function(data){
+ if (data) {
+ if (data.info)
+ response(data.info);
+ else
+ response('Rescan wurde getriggert.<br>Die Medienliste wird neu aufgebaut.');
+ }
+ });
+
+ return false;
+}
+
+function submit_passwd() {
+ $.post('index.php',
+ 'action=passwd&' + $('div.w3-container#passwd form').serialize());
+ response('Admin-Passwort neu gesetzt.<br>Sie müssen sich erneut anmelden.');
+
+ return false;
+}
+
+function submit_halt() {
+ $.post('index.php',
+ 'action=halt',
+ function(data){
+ if (data)
+ response('Der Server kann jetzt vom Strom getrennt und eingepackt werden.', true);
+ });
+
+ return false;
+}