This commit is contained in:
2023-03-28 10:34:44 +02:00
parent f803effbbd
commit f7e0f37528
428 changed files with 9982 additions and 100 deletions

View File

@@ -0,0 +1,44 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Cache'); ?></span>
<?php showGoBackIcon('?s=settings'); ?>
</div>
<form action="?s=settings&amp;do=cache" method="post">
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('Aktivieren'); ?></td>
<td><input type="checkbox" name="activation" value="checked" id="cb-activiation"<?php if ($data['cache-activation'] === true) echo ' checked="checked"'; ?> /><label for="cb-activiation" class="checkbox only-checkbox">&nbsp;</label>
</tr>
</table>
</div>
<div class="inner-table overflow-auto">
<table class="table table-borderless">
<tr>
<th style="width: 5%;"></th>
<th style="width: 30%;"><?php _e('Anwendung'); ?></th>
<th style="width: 20%;" class="table-center"><?php _e('Gr&ouml;ße'); ?></th>
<th style="width: 20%;" class="table-center"><?php _e('Letzte &Auml;nderung'); ?></th>
<th style="width: 20%;" class="table-center"><?php _e('Speicherzeit'); ?></th>
<th style="width: 5%;"></th>
</tr>
<?php foreach ($data['cache-files'] as $name => $info) { ?>
<tr>
<td><input type="checkbox" name="cb-<?php echo $name; ?>" value="checked" id="cb-<?php echo $name; ?>"<?php if (isset($info['active']) && $info['active'] === true) echo ' checked="checked"'; ?> /><label for="cb-<?php echo $name; ?>" class="checkbox only-checkbox">&nbsp;</label></td>
<td><?php echo getCacheName($name); ?></td>
<td class="table-center"><?php echo (isset($info['filesize'])) ? sizeUnit($info['filesize']) : '-'; ?></td>
<td class="table-center"><?php echo (isset($info['modification'])) ? formatTime($info['modification']) : '-'; ?></td>
<td class="table-center"><input type="text" name="text-<?php echo $name; ?>" maxlength="4" style="width: 40px !important;" value="<?php echo (isset($info['lifetime'])) ? $info['lifetime'] : '0'; ?>" /> Min.</td>
<td><a href="?s=settings&amp;do=cache&amp;clear=<?php echo $name; ?>" class="button button-small"><?php _e('Leeren'); ?></a></td>
</tr>
<?php } ?>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('Speichern'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,95 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<?php if (is_array($data['me']) && is_array($data['devices'])) { ?>
<div class="sidebar">
<div class="box">
<div class="inner-header">
<span><?php _e('Du'); ?> / <?php _e('Deine Ger&auml;te'); ?></span>
</div>
<div class="inner">
<?php _e('Verifiziert als '); ?><strong><?php echo $data['me']['name']; ?></strong>.
</div>
<div class="inner-table">
<table class="table table-borderless">
<tr>
<th><?php _e('Ger&auml;tebezeichnung'); ?> / <?php _e('Erstelldatum'); ?></th>
</tr>
<?php foreach ($data['devices']['devices'] as $device) { ?>
<tr>
<td><?php echo $device['nickname']; ?><br /><span class="small-info"><?php echo formatTime($device['created']); ?></span></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
<div class="container-600">
<?php } else { ?>
<div>
<?php } ?>
<div class="box">
<div class="inner-header">
<span><?php _e('Benachrichtigung'); ?></span>
<?php showGoBackIcon('?s=settings'); ?>
</div>
<div class="inner">
<?php _e('Die Benachrichtigungen werden &uuml;ber Pushbullet realisiert. Daher ist ein Konto bei Pushbullet notwendig.'); ?>
</div>
<form action="?s=settings&amp;do=notification" method="post">
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('Aktivieren'); ?></td>
<td><input type="checkbox" name="activation" value="checked" id="cb-activation"<?php if ($data['activation'] == true) echo ' checked="checked"'; ?> /><label for="cb-activation" class="checkbox only-checkbox">&nbsp;</label></td>
</tr>
<tr>
<td><?php _e('Zugangstoken'); ?></td>
<td><input type="text" name="token" maxlength="46" value="<?php echo $data['token']; ?>" style="width: 300px;" /></td>
</tr>
<?php if (is_array($data['me']) && is_array($data['devices'])) { ?>
<tr>
<td><?php _e('Testbenachrichtigung'); ?></td>
<td><form action="?s=settings&amp;do=notification" method="post"><input type="submit" name="submit-test-notification" value="<?php _e('Jetzt senden'); ?>" class="button-small" /></form></td>
</tr>
<?php } ?>
</table>
</div>
<div class="inner">
<br /><br />
<strong><?php _e('Benachrichtige mich, wenn...'); ?></strong> <?php echo showHelper('7'); ?>
</div>
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td style="width: 1%;"><input type="checkbox" name="event-pi-control-version" value="checked" id="cb-event-pi-control-version"<?php if ($data['pi-control-enabled'] === true) echo ' checked="checked"'; ?> /><label for="cb-event-pi-control-version" class="checkbox only-checkbox">&nbsp;</label></td>
<td style="width: 35%;" colspan="2"><?php _e('eine neue Pi Control Version erscheint'); ?></td>
</tr>
<tr>
<td style="width: 1%;"><input type="checkbox" name="event-cpu-temperature" value="checked" id="cb-event-cpu-temperature"<?php if ($data['cpu-temperature-enabled'] === true) echo ' checked="checked"'; ?> /><label for="cb-event-cpu-temperature" class="checkbox only-checkbox">&nbsp;</label></td>
<td style="width: 35%;"><?php _e('die CPU-Temperatur einen Wert &uuml;berschreitet'); ?></td>
<td><select name="event-cpu-temperature-maximum">
<option style="background: #4CAF50;" value="40"<?php if ($data['cpu-temperature-maximum'] == 40) echo ' selected="selected"'; ?>>40 °C</option>
<option style="background: #5ABC45;" value="45"<?php if ($data['cpu-temperature-maximum'] == 45) echo ' selected="selected"'; ?>>45 °C</option>
<option style="background: #73CA3C;" value="50"<?php if ($data['cpu-temperature-maximum'] == 50) echo ' selected="selected"'; ?>>50 °C</option>
<option style="background: #96D732;" value="55"<?php if ($data['cpu-temperature-maximum'] == 55) echo ' selected="selected"'; ?>>55 °C</option>
<option style="background: #DCEB1E;" value="60"<?php if ($data['cpu-temperature-maximum'] == 60) echo ' selected="selected"'; ?>>60 °C</option>
<option style="background: #FFC107;" value="65"<?php if ($data['cpu-temperature-maximum'] == 65) echo ' selected="selected"'; ?>>65 °C</option>
<option style="background: #F89613;" value="70"<?php if ($data['cpu-temperature-maximum'] == 70) echo ' selected="selected"'; ?>>70 °C</option>
<option style="background: #F2711F;" value="75"<?php if ($data['cpu-temperature-maximum'] == 75) echo ' selected="selected"'; ?>>75 °C</option>
<option style="background: #EE5C27;" value="80"<?php if ($data['cpu-temperature-maximum'] == 80) echo ' selected="selected"'; ?>>80 °C</option>
<option style="background: #E9492E;" value="85"<?php if ($data['cpu-temperature-maximum'] == 85) echo ' selected="selected"'; ?>>85 °C</option>
<option style="background: #E53935;" value="90"<?php if ($data['cpu-temperature-maximum'] == 90) echo ' selected="selected"'; ?>>90 °C</option>
</select></td>
</tr>
<tr>
<td style="width: 1%;"><input type="checkbox" name="event-memory-used" value="checked" id="cb-event-memory-used"<?php if ($data['memory-used-enabled'] === true) echo ' checked="checked"'; ?> /><label for="cb-event-memory-used" class="checkbox only-checkbox">&nbsp;</label></td>
<td style="width: 35%;"><?php _e('der Speicherverbrauch (Gesamtspeicher) einen Wert &uuml;berschreitet'); ?></td>
<td><input type="text" name="event-memory-used-text" style="width: 30px !important;" maxlength="3" value="<?php echo $data['memory-used-limit']; ?>" /> %</td>
</tr>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('Speichern'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,86 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<script type="text/javascript" src="public_html/js/settings.overview.weather.js"></script>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zur &Uuml;bersicht'); ?></span>
<?php showGoBackIcon('?s=overview'); ?>
</div>
<form action="?s=settings&amp;do=overview" method="post">
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('Intervall &Uuml;bersicht-Aktualisierung'); ?></td>
<td><input type="text" name="overview-interval" maxlength="4" style="width: 50px;" value="<?php echo $data['main-overview-interval']; ?>" /> <?php _e('Sekunden'); ?></td>
</tr>
<tr>
<td><?php _e('Zeige "Angeschlossene Ger&auml;te"'); ?></td>
<td><input type="checkbox" id="cb-show-devices" name="show-devices" value="checked"<?php if ($data['main-show-devices'] == 'true') echo ' checked="checked"'; ?> /><label for="cb-show-devices" class="checkbox only-checkbox">&nbsp;</label> <span class="small-info"><?php _e('Das aktivieren verursacht eine l&auml;ngere Ladezeit der &Uuml;bersicht.'); ?></span></td>
</tr>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit-main" value="<?php _e('Speichern'); ?>" />
</div>
</form>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Wetter'); ?></span>
</div>
<form action="?s=settings&amp;do=overview" method="post">
<div class="inner-table overflow-auto">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('Aktivieren'); ?></td>
<td colspan="2"><input type="checkbox" name="weather-activation" id="cb-weather" value="checked"<?php if ($data['weather-activation'] === true) echo ' checked="checked"'; ?> /><label for="cb-weather" class="checkbox only-checkbox">&nbsp;</label></td>
</tr>
<tr>
<td><?php _e('Dienst'); ?></td>
<td><select name="weather-service">
<optgroup label="<?php _e('Ohne API-Key'); ?>">
<option value="yahoo"<?php if ($data['weather-service'] == 'yahoo') echo ' selected="selected"'; ?> data-url="https://www.yahoo.com/news/weather">Yahoo Weather</option>
<option value="yr"<?php if ($data['weather-service'] == 'yr') echo ' selected="selected"'; ?> data-url="https://www.yr.no/">Yr</option>
</optgroup>
<optgroup label="<?php _e('Mit API-Key'); ?>">
<option value="darksky"<?php if ($data['weather-service'] == 'darksky') echo ' selected="selected"'; ?> data-url="https://darksky.net/">Dark Sky</option>
<option value="openweathermap"<?php if ($data['weather-service'] == 'openweathermap') echo ' selected="selected"'; ?> data-url="https://openweathermap.org/">OpenWeatherMap</option>
<option value="wunderground"<?php if ($data['weather-service'] == 'wunderground') echo ' selected="selected"'; ?> data-url="https://www.wunderground.com/">Wunderground</option>
</optgroup>
</select></td>
<td><input type="text" name="weather-service-token" value="<?php echo $data['weather-service-token']; ?>" placeholder="API-Key" maxlength="32"<?php if ($data['weather-service'] == 'yahoo') echo ' style="display: none;"'; ?> /> <a href="#" class="weather-service-link button" target="_blank"><?php _e('Zum Anbieter'); ?></a></td>
</tr>
<tr>
<td><?php _e('Standort'); ?></td>
<td style="width: 100px; padding-left: 32px;"><?php _e('Land'); ?></td>
<td><select name="weather-location-country">
<option value="germany"<?php if ($data['weather-country'] == 'germany') echo ' selected="selected"'; ?>><?php _e('Deutschland'); ?></option>
<option value="austria"<?php if ($data['weather-country'] == 'austria') echo ' selected="selected"'; ?>><?php _e('&Ouml;sterreich'); ?></option>
<option value="swiss"<?php if ($data['weather-country'] == 'swiss') echo ' selected="selected"'; ?>><?php _e('Schweiz'); ?></option>
<option value="uk"<?php if ($data['weather-country'] == 'uk') echo ' selected="selected"'; ?>><?php _e('Großbritannien'); ?></option>
</select> <?php if (is_array($data['weather-info'])) echo $data['weather-info']['city'].', '.$data['weather-info']['country']; elseif ($data['weather-info'] == 1) echo '<strong class="red">'._t('Server nicht erreichbar!').'</strong>'; ?></td>
</tr>
<tr class="weather-location-type-postcode">
<td></td>
<td><input type="radio" name="weather-location-type" id="cb-weather-location-postcode" value="postcode"<?php if ($data['weather-type'] == 'postcode') echo ' checked="checked"'; ?> /><label for="cb-weather-location-postcode" class="radio"><?php _e('Postleitzahl'); ?></label></td>
<td><input type="text" name="weather-location-postcode-text" value="<?php echo $data['weather-postcode']; ?>" /></td>
</tr>
<tr class="weather-location-type-city">
<td></td>
<td><input type="radio" name="weather-location-type" id="cb-weather-location-city" value="city"<?php if ($data['weather-type'] == 'city') echo ' checked="checked"'; ?> /><label for="cb-weather-location-city" class="radio"><?php _e('Stadt'); ?></label></td>
<td><input type="text" name="weather-location-city-text" value="<?php echo $data['weather-city']; ?>" /></td>
</tr>
<tr class="weather-location-type-coordinates">
<td></td>
<td><input type="radio" name="weather-location-type" id="cb-weather-location-coordinates" value="coordinates"<?php if ($data['weather-type'] == 'coordinates') echo ' checked="checked"'; ?> /><label for="cb-weather-location-coordinates" class="radio"><?php _e('Koordinaten'); ?></label></td>
<td><?php _e('Breitengrad'); ?> <input type="text" name="weather-location-coordinates-latitude-text" value="<?php echo $data['weather-coordinates-latitude']; ?>" /><br />
<?php _e('L&auml;ngengrad'); ?> <input type="text" name="weather-location-coordinates-longitude-text" value="<?php echo $data['weather-coordinates-longitude']; ?>" /></td>
</tr>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit-weather" value="<?php _e('Speichern'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,126 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<script type="text/javascript" src="public_html/js/settings.pi-control.theme.js"></script>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zum Pi Control'); ?></span>
<?php showGoBackIcon('?s=settings'); ?>
</div>
<form action="?s=settings&amp;do=pi-control" method="post">
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('Theme-Farbe'); ?></td>
<td><input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'red') echo ' checked="checked"'; ?> value="red" id="rb-red" /><label for="rb-red" class="radio only-radio settings-pi-control-theme-color-red">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'pink') echo ' checked="checked"'; ?> value="pink" id="rb-pink" /><label for="rb-pink" class="radio only-radio settings-pi-control-theme-color-pink">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'purple') echo ' checked="checked"'; ?> value="purple" id="rb-purple" /><label for="rb-purple" class="radio only-radio settings-pi-control-theme-color-purple">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'deepPurple') echo ' checked="checked"'; ?> value="deepPurple" id="rb-deepPurple" /><label for="rb-deepPurple" class="radio only-radio settings-pi-control-theme-color-deepPurple">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'indigo') echo ' checked="checked"'; ?> value="indigo" id="rb-indigo" /><label for="rb-indigo" class="radio only-radio settings-pi-control-theme-color-indigo">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'blue') echo ' checked="checked"'; ?> value="blue" id="rb-blue" /><label for="rb-blue" class="radio only-radio settings-pi-control-theme-color-blue">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'lightBlue') echo ' checked="checked"'; ?> value="lightBlue" id="rb-lightBlue" /><label for="rb-lightBlue" class="radio only-radio settings-pi-control-theme-color-lightBlue">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'cyan') echo ' checked="checked"'; ?> value="cyan" id="rb-cyan" /><label for="rb-cyan" class="radio only-radio settings-pi-control-theme-color-cyan">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'teal') echo ' checked="checked"'; ?> value="teal" id="rb-teal" /><label for="rb-teal" class="radio only-radio settings-pi-control-theme-color-teal">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'green') echo ' checked="checked"'; ?> value="green" id="rb-green" /><label for="rb-green" class="radio only-radio settings-pi-control-theme-color-green">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'lightGreen') echo ' checked="checked"'; ?> value="lightGreen" id="rb-lightGreen" /><label for="rb-lightGreen" class="radio only-radio settings-pi-control-theme-color-lightGreen">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'lime') echo ' checked="checked"'; ?> value="lime" id="rb-lime" /><label for="rb-lime" class="radio only-radio settings-pi-control-theme-color-lime">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'yellow') echo ' checked="checked"'; ?> value="yellow" id="rb-yellow" /><label for="rb-yellow" class="radio only-radio settings-pi-control-theme-color-yellow">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'amber') echo ' checked="checked"'; ?> value="amber" id="rb-amber" /><label for="rb-amber" class="radio only-radio settings-pi-control-theme-color-amber">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'orange') echo ' checked="checked"'; ?> value="orange" id="rb-orange" /><label for="rb-orange" class="radio only-radio settings-pi-control-theme-color-orange">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'deepOrange') echo ' checked="checked"'; ?> value="deepOrange" id="rb-deepOrange" /><label for="rb-deepOrange" class="radio only-radio settings-pi-control-theme-color-deepOrange">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'brown') echo ' checked="checked"'; ?> value="brown" id="rb-brown" /><label for="rb-brown" class="radio only-radio settings-pi-control-theme-color-brown">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'grey') echo ' checked="checked"'; ?> value="grey" id="rb-grey" /><label for="rb-grey" class="radio only-radio settings-pi-control-theme-color-grey">&nbsp;</label>
<input type="radio" name="theme-color"<?php if ($data['main-theme-color'] == 'blueGrey') echo ' checked="checked"'; ?> value="blueGrey" id="rb-blueGrey" /><label for="rb-blueGrey" class="radio only-radio settings-pi-control-theme-color-blueGrey">&nbsp;</label></td>
</tr>
<tr>
<td><?php _e('Bezeichnung'); ?></td>
<td><input type="text" name="pi-control-label"<?php echo ' value="'.$data['main-pi-control-label'].'"'; ?> maxlength="32" /> <span class="small-info"><?php _e('Bennene dein Pi Control, um es in Benachrichtigungen besser identifizieren zu k&ouml;nnen.'); ?></span></td>
</tr>
<tr>
<td><?php _e('Sprache'); ?></td>
<td><select name="pi-control-language">
<option value="de"<?php if ($data['main-pi-control-language'] == 'de') echo ' selected="selected"'; ?>><?php _e('Deutsch'); ?></option>
<option value="en"<?php if ($data['main-pi-control-language'] == 'en') echo ' selected="selected"'; ?>><?php _e('Englisch'); ?></option>
</select></td>
</tr>
<tr>
<td><?php _e('Infoanzeige'); ?></td>
<td><select name="pi-control-header-info">
<option value="disable"<?php if ($data['main-pi-control-header-info'] == 'disable') echo ' selected="selected"'; ?>><?php _e('Deaktivieren'); ?></option>
<option value="label"<?php if ($data['main-pi-control-header-info'] == 'label') echo ' selected="selected"'; ?>><?php _e('Bezeichnung'); ?></option>
<option value="label-ip"<?php if ($data['main-pi-control-header-info'] == 'label-ip') echo ' selected="selected"'; ?>><?php echo _t('Bezeichnung').' ('._t('IP-Adresse').')'; ?></option>
<option value="label-hostname"<?php if ($data['main-pi-control-header-info'] == 'label-hostname') echo ' selected="selected"'; ?>><?php echo _t('Bezeichnung').' ('._t('Hostname').')'; ?></option>
<option value="ip"<?php if ($data['main-pi-control-header-info'] == 'ip') echo ' selected="selected"'; ?>><?php _e('IP-Adresse'); ?></option>
<option value="hostname"<?php if ($data['main-pi-control-header-info'] == 'hostname') echo ' selected="selected"'; ?>><?php _e('Hostname'); ?></option>
</select> <span class="small-info"><?php _e('W&auml;hle die Darstellung f&uuml;r die Infoanzeige.'); ?></span></td>
</tr>
<tr>
<td><?php _e('Externer Zugriff'); ?></td>
<td><input type="checkbox" id="cb-external-access" name="external-access" value="checked"<?php if ($data['main-external-access'] == 'true') echo ' checked="checked"'; ?> /><label for="cb-external-access" class="checkbox only-checkbox">&nbsp;</label> <span class="small-info"><?php _e('Auch außerhalb des lokalen Netzwerk erreichbar? Ggf. an Port-Weiterleitung denken.'); ?></span> <?php echo showHelper('6'); ?></td>
</tr>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit-main" value="<?php _e('Speichern'); ?>" />
</div>
</form>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Temperatur&uuml;berwachung'); ?></span>
</div>
<div class="inner">
<?php _e('Aktiviere diese Option, um von deinem Raspberry Pi, beim &Uuml;berschreiten einer bestimmten Temperatur, benachrichtigt zu werden. F&uuml;r diesen Fall lassen sich auch spezifische Verhalten festlegen.'); ?>
</div>
<form action="?s=settings&amp;do=pi-control" method="post">
<div class="inner-table overflow-auto">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('Aktivieren'); ?></td>
<td colspan="2"><input type="checkbox" name="temperature-activation" id="cb-temperature" value="checked"<?php if ($data['temperature-activation'] === true) echo ' checked="checked"'; ?> /><label for="cb-temperature" class="checkbox only-checkbox">&nbsp;</label><?php if (!empty($data['temperature-last-execution'])) { ?><strong class="red"><?php _e('Pausiert f&uuml;r %s', $data['temperature-last-execution']); ?></strong><?php } ?></td>
</tr>
<tr>
<td><?php _e('H&ouml;chsttemperatur'); ?></td>
<td colspan="2"><select name="temperature-maximum">
<option style="background: #4CAF50;" value="40"<?php if ($data['temperature-maximum'] == 40) echo ' selected="selected"'; ?>>40 °C</option>
<option style="background: #5ABC45;" value="45"<?php if ($data['temperature-maximum'] == 45) echo ' selected="selected"'; ?>>45 °C</option>
<option style="background: #73CA3C;" value="50"<?php if ($data['temperature-maximum'] == 50) echo ' selected="selected"'; ?>>50 °C</option>
<option style="background: #96D732;" value="55"<?php if ($data['temperature-maximum'] == 55) echo ' selected="selected"'; ?>>55 °C</option>
<option style="background: #DCEB1E;" value="60"<?php if ($data['temperature-maximum'] == 60) echo ' selected="selected"'; ?>>60 °C</option>
<option style="background: #FFC107;" value="65"<?php if ($data['temperature-maximum'] == 65) echo ' selected="selected"'; ?>>65 °C</option>
<option style="background: #F89613;" value="70"<?php if ($data['temperature-maximum'] == 70) echo ' selected="selected"'; ?>>70 °C</option>
<option style="background: #F2711F;" value="75"<?php if ($data['temperature-maximum'] == 75) echo ' selected="selected"'; ?>>75 °C</option>
<option style="background: #EE5C27;" value="80"<?php if ($data['temperature-maximum'] == 80) echo ' selected="selected"'; ?>>80 °C</option>
<option style="background: #E9492E;" value="85"<?php if ($data['temperature-maximum'] == 85) echo ' selected="selected"'; ?>>85 °C</option>
<option style="background: #E53935;" value="90"<?php if ($data['temperature-maximum'] == 90) echo ' selected="selected"'; ?>>90 °C</option>
</select></td>
</tr>
<tr>
<td><?php _e('Aktion'); ?></td>
<td style="width: 130px;"><input type="checkbox" name="temperature-action-email" id="cb-temperature-email" value="checked"<?php if ($data['temperature-action-email'] == true) echo ' checked="checked"'; ?> /><label for="cb-temperature-email" class="checkbox"><?php _e('E-Mail senden'); ?></label></td>
<td><input type="text" name="temperature-action-email-text"<?php echo ' value="'.$data['temperature-action-email-text'].'"'; ?> />
<?php if ($data['temperature-action-email-text'] != '') { echo ($data['temperature-action-email-status'] == 0) ? '<form action="?s=settings&amp;do=pi-control" method="post"><input type="submit" name="submit-temperature-confirmation" value="'._t('Best&auml;tigen').'" /></form> <a href="?s=settings&amp;do=pi-control&amp;mail_check" class="button">'._t('&Uuml;berpr&uuml;fen').'</a>' : '<strong class="green">'._t('Best&auml;tigt').'</strong>'; } ?></td>
</tr>
<tr>
<td></td>
<td><input type="checkbox" name="temperature-action-shell" id="cb-temperature-shell" value="checked"<?php if ($data['temperature-action-shell'] == true) echo ' checked="checked"'; ?> /><label for="cb-temperature-shell" class="checkbox"><?php _e('Shell Befehl'); ?></label></td>
<td><input type="text" name="temperature-action-shell-text"<?php echo ' value="'.$data['temperature-action-shell-text'].'"'; ?> /> <span class="small-info"><?php _e('Wird als %s ausgef&uuml;hrt.', $data['whoami']); ?></span></td>
</tr>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit-temperature" value="<?php _e('Speichern'); ?>" />
</div>
</form>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Pi Control entfernen'); ?></span>
</div>
<div class="inner">
<?php _e('Wenn dir das Pi Control nicht gef&auml;llt und du es wieder entfernen m&ouml;chtest, schreib mir unten unter "Feedback" doch bitte den Grund. Somit kann ich besser auf m&ouml;gliche Probleme eingehen und Pi Control stetig verbessern.'); ?>
</div>
<div class="inner-end">
<a href="<?php echo $data['configHelp']; ?>" class="button" target="_blank"><?php _e('Anleitung zum Entfernen'); ?></a>
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zu Plugins - Plugin l&ouml;schen'); ?></span>
<?php showGoBackIcon('?s=settings&amp;do=plugins'); ?>
</div>
<form action="?s=settings&amp;do=plugins&amp;delete=<?php echo $data['plugin']['id']; ?>" method="post">
<div class="inner">
<?php _e('M&ouml;chtest du das Plugin <strong>%s</strong> wirklich unwiderruflich l&ouml;schen?', _t($data['plugin']['name'])); ?>
</div>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('L&ouml;schen'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,26 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zu Plugins'); ?></span>
<?php showGoBackIcon('?s=plugins'); ?>
</div>
<?php $i = 0; foreach ($data['plugins'] as $plugin) { $i++; ?>
<div class="inner-table settings-plugins-table-list<?php echo ($i != count($data['plugins'])) ? ' padding-0' : ''; ?>">
<table class="table table-borderless<?php echo ($i%2 != 0) ? ' table-reverse' : ''; ?>">
<tr>
<td><strong><?php _e($plugin['name']); ?></strong><span><?php _e('Version %s', $plugin['version']['name']); ?></span></td>
<td><a href="?s=plugins&amp;id=<?php echo $plugin['id']; ?>&amp;settings" class="text-decoration-none"<?php if ($plugin['settings'] == false) echo ' style="visibility: hidden"'; ?>><span class="button button-small"><?php _e('Einstellungen'); ?></span></a>
<a href="?s=settings&amp;do=plugins&amp;status=<?php echo $plugin['id']; ?>" class="text-decoration-none"><span class="button button-small"><?php echo ($plugin['disabled'] == true) ? _t('Aktivieren') : _t('Deaktivieren'); ?></span></a>
<a href="?s=settings&amp;do=plugins&amp;delete=<?php echo $plugin['id']; ?>" class="text-decoration-none"><span class="button button-small"><?php _e('L&ouml;schen'); ?></span></a></td>
<td><?php _e($plugin['description']); ?></td>
</tr>
</table>
</div>
<?php } if (empty($data['plugins'])) { ?>
<div class="inner-info">
<div><?php _e('Es sind momentan noch keine Plugins installiert.'); ?></div>
</div>
<?php } ?>
</div>
</div>

View File

@@ -0,0 +1,38 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zur Statistik'); ?></span>
<?php showGoBackIcon('?s=statistic'); ?>
</div>
<div class="inner">
<?php _e('Blende nicht ben&ouml;tigte Statistiken aus, um die Ladezeiten zu verbessern und um besser den &Uuml;berblick zu behalten.'); ?>
</div>
<div class="inner-info">
<div><?php _e('Statistiken werden, unabh&auml;ngig vom Anzeigestatus, aufgezeichnet.'); ?></div>
</div>
<form action="?s=settings&amp;do=statistic" method="post">
<div class="inner-table">
<table class="table table-borderless">
<tr>
<th style="width: 5%;"></th>
<th style="width: 75%;"><?php _e('Name'); ?></th>
<th style="width: 10%;" class="table-center"><?php _e('Herunterladen'); ?></th>
<th style="width: 10%;"></th>
</tr>
<?php foreach ($data['statistics'] as $id => $statistic) { ?>
<tr>
<td align="center"><input type="checkbox" name="check[]" id="cb-<?php echo $id; ?>" value="<?php echo $id; ?>" <?php if ($statistic['visible'] == true) echo 'checked="checked"'; ?> /><label class="checkbox only-checkbox" for="cb-<?php echo $id; ?>">&nbsp;</label></td>
<td><?php echo $statistic['array']['title'] ?></td>
<td class="table-center"><a href="?s=settings&amp;do=statistic&amp;download=<?php echo $id; ?>" class="text-decoration-none"><span class="button button-small">CSV</span></a></td>
<td class="table-right"><a href="?s=settings&amp;do=statistic&amp;reset=<?php echo $id; ?>" class="text-decoration-none"><span class="button button-small"><?php _e('Zur&uuml;cksetzen'); ?></span></a></td>
</tr>
<?php } ?>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('Speichern'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zur Statistik - Verlauf zur&uuml;cksetzen'); ?></span>
<?php showGoBackIcon('?s=settings&amp;do=statistic'); ?>
</div>
<form action="?s=settings&amp;do=statistic&amp;reset=<?php echo $data['log']; ?>&amp;confirm" method="post">
<div class="inner">
<?php _e('M&ouml;chtest du den Verlauf von %s wirklich zur&uuml;cksetzen?', '<strong>'.$data['label'].'</strong>'); ?>
</div>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('Zur&uuml;cksetzen'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,93 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<script type="text/javascript" src="public_html/js/settings.troubleshooting.cron_selection.js"></script>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Problembehandlung'); ?></span>
<?php showGoBackIcon('?s=settings'); ?>
</div>
<div class="inner">
<?php _e('Die Problembehandlung kann dir bei Problemen helfen und bei Bedarf diese sogar beseitigen.'); ?>
</div>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Dateien und Ordner'); ?></span>
</div>
<div class="inner-table overflow-auto">
<table class="table table-borderless">
<tr>
<th><?php _e('Datei'); ?> / <?php _e('Ordner'); ?></th>
<th class="table-center"><?php _e('Existiert'); ?></th>
<th class="table-center"><?php _e('Berechtigung'); ?></th>
<th class="table-center"><?php _e('Benutzer:Gruppe'); ?></th>
<th class="table-center"><?php _e('Gr&ouml;ße'); ?></th>
</tr>
<?php foreach ($data['filesFolders'] as $name => $fileFolder) { ?>
<tr>
<td class="<?php echo ($fileFolder['error'] === true) ? 'red' : 'green'; ?>"><?php echo $name; ?></td>
<td class="table-center <?php echo ($fileFolder['existsBool'] === true) ? 'green' : 'red'; ?>"><?php echo ($fileFolder['exists'] === true) ? '&#10004;' : '&#10006;'; ?></td>
<td class="table-center <?php echo ($fileFolder['permissionBool'] === true) ? 'green' : 'red'; ?>"><?php echo $fileFolder['permission']; ?></td>
<td class="table-center <?php echo ($fileFolder['userGroupBool'] === true) ? 'green' : 'red'; ?>"><?php echo $fileFolder['userGroup']; ?></td>
<td class="table-center <?php echo ($fileFolder['filesizeBool'] === true) ? 'green' : 'red'; ?>"><?php echo sizeUnit($fileFolder['filesize']); ?></td>
</tr>
<?php } ?>
</table>
</div>
<?php if ($data['filesFoldersError'] === true) { ?>
<div class="inner-end">
<a href="<?php echo $data['configHelpFilesFolders']; ?>" target="_blank" class="button"><?php _e('Anleitung zur Problembehebung'); ?></a>
</div>
<?php } ?>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Cron f&uuml;r Pi Control'); ?></span>
</div>
<div class="inner">
<?php _e('Der Cron f&uuml;r dein Pi Control sieht folgendermaßen aus:'); ?><br /><br />
<span id="cron-entry" style="padding: 5px; background: #EFEFEF; display: inline-block; font-family: Consolas, 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', Monaco, 'Courier New', monospace" onDblClick="selecttxt('cron-entry')"><?php echo $data['cronEntry']; ?></span> <span class="small-info"><?php _e('Mit Doppelklick alles markieren.'); ?></span>
</div>
<div class="inner-table overflow-auto">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('In Crontab eingetragen'); ?></td>
<td class="<?php echo ($data['cronMatch'] === 1) ? 'green' : 'red'; ?>"><?php echo ($data['cronMatch'] === 1) ? '&#10004;' : '&#10006;'; ?></td>
</tr>
<tr>
<td><?php _e('PHP-CLI installiert'); ?></td>
<td class="<?php echo ($data['cronPHPCLI']) ? 'green' : 'red'; ?>"><?php echo ($data['cronPHPCLI']) ? '&#10004;' : '&#10006;'; ?></td>
</tr>
<tr>
<td><?php _e('Letzte Ausf&uuml;hrung'); ?></td>
<td class="<?php echo ($data['cronLastExecutionBool']) ? 'green' : 'red'; ?>"><?php echo $data['cronLastExecution']; ?></td>
</tr>
<tr>
<td><?php _e('Letzter Eintrag Log'); ?></td>
<td class="<?php echo ($data['cronLastExecutionLogBool']) ? 'green' : 'red'; ?>"><?php echo $data['cronLastExecutionLog']; ?></td>
</tr>
<tr>
<td><?php _e('Berechtigung'); ?></td>
<td class="<?php echo ($data['cronPermissionBool']) ? 'green' : 'red'; ?>"><?php echo $data['cronPermission']; ?></td>
</tr>
<tr>
<td><?php _e('Benutzer:Gruppe'); ?></td>
<td class="<?php echo ($data['cronUserGroupBool']) ? 'green' : 'red'; ?>"><?php echo $data['cronUserGroup']; ?></td>
</tr>
<tr>
<td><?php _e('Zeichenkodierung'); ?></td>
<td class="<?php echo ($data['cronCharacterEncodingBool']) ? 'green' : 'red'; ?>"><?php echo $data['cronCharacterEncoding']; ?></td>
</tr>
</table>
</div>
<?php if ($data['cronError'] === 1) { ?>
<div class="inner-end">
<form action="?s=settings&amp;do=troubleshooting" method="post"><input type="submit" name="cronSubmit" value="<?php _e('Problem beheben'); ?>" /></form>
</div>
<?php } elseif ($data['cronError'] === 2) { ?>
<div class="inner-end">
<a href="<?php echo $data['configHelpCron']; ?>" target="_blank" class="button"><?php _e('Anleitung zur Problembehebung'); ?></a>
</div>
<?php } ?>
</div>
</div>

View File

@@ -0,0 +1,72 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div class="sidebar order-2">
<div class="box">
<div class="inner-header">
<span><?php _e('Version'); ?></span>
</div>
<div class="inner">
<strong class="<?php echo ($data['updateStatus'] instanceof Update) ? 'red' : 'green'; ?>"><?php echo $data['configVersion']; ?></strong>
</div>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('E-Mail Benachrichtigung'); ?></span>
</div>
<div class="inner">
<?php _e('Wenn du zuk&uuml;nftig eine E-Mail bei einer neuen Version des Pi Control erhalten m&ouml;chtest, dann kannst du dich &uuml;ber den folgenden Button in die Liste eintragen.'); ?>
</div>
<div class="inner-end">
<a href="<?php echo $data['configMailUrl']; ?>" class="button" target="_blank"><?php _e('E-Mail eintragen'); ?></a>
</div>
</div>
</div>
<div class="container-600 order-1">
<div class="box">
<div class="inner-header">
<span><?php _e('Aktualisierung'); ?></span>
<?php showGoBackIcon('?s=settings'); ?>
</div>
<div class="inner">
<?php if ($data['updateStatus'] instanceof Update) { ?>
<strong class="red"><?php _e('Dein Pi Control ist nicht mehr aktuell. Version %s ist verf&uuml;gbar!', $data['updateStatus']->getName()); ?></strong><br /><br /><br />
<span class="subtitle"><?php _e('Neuerungen in Version %s', $data['updateStatus']->getName()); ?></span><br /><br />
<?php echo $data['updateStatus']->getChangelog(); ?>
<?php } elseif ($data['updateStatus'] === false) { ?>
<strong class="green"><?php _e('Dein Pi Control ist auf dem neusten Stand.'); ?></strong>
<?php } else { ?>
<strong class="red"><?php _e('Bei der Verbindung zum Server ist ein unerwarteter Fehler aufgetreten. Fehlercode: %d', $data['updateStatus']); ?></strong>
<?php } ?>
</div>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Aktualisierung installieren'); ?></span>
</div>
<div class="inner">
<?php _e('Ist eine Aktualisierung verf&uuml;gbar, kannst du &uuml;ber folgenden Button dieses herunterladen und anschließend installieren.'); ?>
</div>
<div class="inner-end">
<form action="?s=settings&amp;do=update" method="post">
<input type="submit" name="update" value="<?php _e('Aktualisierung runterladen &amp; installieren'); ?>"<?php if (!$data['updateStatus'] instanceof Update || $data['updateError'] == true) { echo ' disabled="disabled"'; } ?> />
</form>
</div>
</div>
</div>
<div class="clear-both"></div>
<div class="order-3">
<div class="box">
<div class="inner-header">
<span><?php _e('Pi Control Beta'); ?></span>
</div>
<div class="inner">
<?php _e('Mit der Teilnahme an Pi Control Beta erh&auml;ltst du, bereits vor Ver&ouml;ffentlichung der finalen Version von Pi Control, einen ersten Einblick in kommende Funktionen und Neuerungen. Durch die Teilnahme bekommst du, neben der Aktualisierungen f&uuml;r die Beta, auch die regul&auml;ren und stabilen Aktualisierungen angeboten.<br />Du kannst jederzeit von Pi Control Beta zur&uuml;cktreten, ein Zur&uuml;ckstufen auf eine &auml;ltere/regul&auml;re Version ist allerdings nicht m&ouml;glich. Anschließend erh&auml;ltst du wieder wie gewohnt die stabilen Aktualisierungen.'); ?>
<br /><br />
<strong class="red"><?php _e('BEACHTE: W&auml;hrend der Beta kann Pi Control unerwartet Auffallen, sei es durch Fehler oder Datenverlust (nur Pi Control). Sende mir deshalb unbedingt bei Fehlern dein Feedback (siehe Unten).'); ?></strong>
</div>
<div class="inner-end">
<form action="?s=settings&amp;do=update" method="post">
<input type="submit" name="beta" value="<?php _e($data['updateStage'] == 'release' ? 'An Pi Control Beta teilnehmen' : 'Von Pi Control Beta zur&uuml;cktreten'); ?>" />
</form>
</div>
</div>
</div>

View File

@@ -0,0 +1,60 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zum Benutzer'); ?></span>
<?php showGoBackIcon('?s=settings'); ?>
</div>
<div class="inner-table overflow-auto">
<table class="table table-borderless">
<tr>
<th style="width: 30%;"><?php _e('Benutzername'); ?></th>
<th style="width: 20%;" class="table-center"><?php _e('Erstellt'); ?></th>
<th style="width: 20%;" class="table-center"><?php _e('Letzte Aktivit&auml;t'); ?></th>
<th style="width: 30%;"></th>
</tr>
<?php foreach ($data['allUsers'] as $key => $user) { ?>
<tr>
<td><?php echo $user['username']; ?></td>
<td class="table-center"><?php echo date('d.m.Y H:i', $user['created']); ?></td>
<td class="table-center"><?php echo ($user['last_login'] == 0) ? _t('Noch nie angemeldet') : date('d.m.Y H:i', $user['last_login']); ?></td>
<td class="table-right"><a href="?s=settings&amp;do=user&amp;edit=<?php echo substr($key, 5); ?>" class="button button-small"><?php _e('Bearbeiten'); ?></a> <a href="?s=settings&amp;do=user&amp;delete=<?php echo substr($key, 5); ?>" class="button button-small"><?php _e('L&ouml;schen'); ?></a></td>
</tr>
<?php } ?>
</table>
</div>
<div class="inner-end">
<a href="?s=settings&amp;do=user&amp;add" class="button"><?php _e('Hinzuf&uuml;gen'); ?></a>
</div>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Angemeldete Benutzer'); ?></span>
</div>
<div class="inner-info">
<div><?php _e('Benutzer ohne fester Anmeldung werden nach 12 Stunden Inaktivit&auml;t automatisch abgemeldet.'); ?></div>
</div>
<div class="inner-table overflow-auto">
<form action="?s=settings&amp;do=user" method="post">
<table class="table table-borderless">
<tr>
<th style="width: 30%;"><?php _e('Benutzername'); ?></th>
<th style="width: 20%;" class="table-center"><?php _e('Angemeldet am'); ?></th>
<th style="width: 20%;" class="table-center"><?php _e('Angemeldet von'); ?></th>
<th style="width: 20%;" class="table-center"><?php _e('Angemeldet bleiben'); ?></th>
<th style="width: 10%;"></th>
</tr>
<?php foreach ($data['loggedInUsers'] as $key => $user) { ?>
<tr>
<td><?php echo $user['username']; if ($user['current_online']) { ?> <strong class="green">[<?php _e('Aktuelle Sitzung'); ?>] </strong><?php } ?></td>
<td class="table-center"><?php echo date('d.m.Y H:i', $user['created']); ?></td>
<td class="table-center"><?php echo $user['address']; ?></td>
<td class="table-center"><?php echo ($user['remember_me'] === true) ? _t('Ja') : _t('Nein'); ?></td>
<td class="table-right"><button class="button-small" name="logout" value="<?php echo substr($key, 6); ?>"><?php _e('Abmelden'); ?></button></td>
</tr>
<?php } ?>
</table>
</form>
</div>
</div>
</div>

View File

@@ -0,0 +1,30 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zum Benutzer - Benutzer hinzuf&uuml;gen'); ?></span>
<?php showGoBackIcon('?s=settings&amp;do=user'); ?>
</div>
<form action="?s=settings&amp;do=user&amp;add" method="post">
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('Benutzername'); ?></td>
<td><input type="text" name="username" maxlength="32" /></td>
</tr>
<tr>
<td><?php _e('Passwort'); ?></td>
<td><input type="password" name="password" maxlength="64" /></td>
</tr>
<tr>
<td><?php _e('Passwort wiederholen'); ?></td>
<td><input type="password" name="password2" maxlength="64" /></td>
</tr>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('Hinzuf&uuml;gen'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,29 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zum Benutzer - Benutzer l&ouml;schen'); ?></span>
<?php showGoBackIcon('?s=settings&amp;do=user'); ?>
</div>
<form action="?s=settings&amp;do=user&amp;delete=<?php echo $data['lowerUsername']; ?>" method="post">
<div class="inner">
<?php _e('Bitte gebe zur Best&auml;tigung das Passwort des Benutzers an.'); ?>
</div>
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('Benutzername'); ?></td>
<td><?php echo $data['username']; ?></td>
</tr>
<tr>
<td><?php _e('Passwort'); ?></td>
<td><input type="password" name="password" maxlength="64" /></td>
</tr>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('L&ouml;schen'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,34 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Einstellungen zum Benutzer - Benutzer bearbeiten'); ?></span>
<?php showGoBackIcon('?s=settings&amp;do=user'); ?>
</div>
<form action="?s=settings&amp;do=user&amp;edit=<?php echo $data['lowerUsername']; ?>" method="post">
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td><?php _e('Benutzername'); ?></td>
<td><?php echo $data['username']; ?></td>
</tr>
<tr>
<td><?php _e('Altes Passwort'); ?></td>
<td><input type="password" name="passwordOld" maxlength="64" /></td>
</tr>
<tr>
<td><?php _e('Neues Passwort'); ?></td>
<td><input type="password" name="passwordNew" maxlength="64" /></td>
</tr>
<tr>
<td><?php _e('Neues Passwort wiederholen'); ?></td>
<td><input type="password" name="passwordNew2" maxlength="64" /></td>
</tr>
</table>
</div>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('Speichern'); ?>" />
</div>
</form>
</div>
</div>