Init Repo

This commit is contained in:
Gregor Schulte
2021-06-15 11:08:34 +02:00
parent d0b72a118d
commit b303dd00d6
330 changed files with 93268 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<!-- Error -->
<div>
<div class="box error">
<div>
<?php if ($data['title'] != '') { ?><div class="inner-header">
<span><?php echo $data['title']; ?></span>
</div><?php } ?>
<div class="inner">
<?php echo $data['msg']; ?>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,31 @@
<?php if (!defined('PICONTROL')) exit(); ?>
</div>
<!-- Footer -->
<div id="footer">
<div id="footer-inner">
<table id="footer-table">
<tr>
<th><?php _e('PI CONTROL'); ?></th>
<th><?php _e('&Uuml;BER MICH'); ?></th>
<th><?php _e('VERSION'); ?></th>
</tr>
<tr>
<td rowspan="2"><a href="https://willy-tech.de/kontakt/" target="_blank" data-lang="<?php echo $data['language']; ?>"><?php _e('Feedback'); ?></a><br />
<a href="<?php echo $data['helpLink']; ?>" target="_blank"><?php _e('Hilfe'); ?></a><br />
<a href="https://play.google.com/store/apps/details?id=de.willytech.picontrol" target="_blank" title="<?php _e('&Ouml;ffne Play Store'); ?>"><?php _e('App im Play Store'); ?></a><br />
<a href="https://gitlab.com/pi-control" target="_blank"><?php _e('GitLab'); ?></a></td>
<td rowspan="2"><a href="http://willy-tech.de/" target="_blank"><?php _e('Mein Blog'); ?></a><br />
<a href="https://twitter.com/Willys_TechBlog" target="_blank"><?php _e('Twitter'); ?></a><br />
<a href="https://www.paypal.me/fritzsche" target="_blank"><?php _e('Spenden'); ?></a></td>
<td><?php echo $data['version']; ?></td>
</tr>
<tr>
<td><strong><?php _e('LIZENZ'); ?></strong><span><?php _e('Raspberry Pi ist ein Markenzeichen<br />der %s.', '<a href="https://www.raspberrypi.org/" target="_blank">Raspberry Pi Foundation</a>'); ?></span></td>
</tr>
</table>
<div id="footer-copyright"><?php _e('Mit %s entwickelt von %s.', '<span style="color: #F44336;">&#10084;</span>', '<a href="https://willy-tech.de/" target="_blank">Willy Fritzsche</a>'); ?> 2013-2017</div>
</div>
</div>
<script type="text/javascript">var errorHandler = '<?php echo $data['errorHandler']; ?>';</script>
</body>
</html>

View File

@@ -0,0 +1,81 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-title" content="Pi Control" />
<meta name="application-name" content="Pi Control" />
<meta name="theme-color" content="#1565C0" />
<link type="text/css" rel="stylesheet" href="public_html/css/style.css.php" />
<link rel="apple-touch-icon" sizes="57x57" href="/public_html/img/favicon/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="120x120" href="/public_html/img/favicon/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon" sizes="152x152" href="/public_html/img/favicon/apple-touch-icon-152x152.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/public_html/img/favicon/apple-touch-icon-180x180.png" />
<link rel="icon" type="image/png" href="public_html/img/favicon/android-chrome-192x192.png" sizes="192x192" />
<link rel="icon" type="image/png" href="public_html/img/favicon/favicon-96x96.png" sizes="96x96" />
<link rel="manifest" href="public_html/img/favicon/manifest.json" />
<link rel="mask-icon" href="public_html/img/favicon/safari-pinned-tab.svg" color="#1975d0" />
<link rel="shortcut icon" href="public_html/img/favicon/favicon.ico" />
<script type="text/javascript" src="public_html/js/jquery.min.js"></script>
<script type="text/javascript" src="public_html/js/translation.js"></script>
<?php if (!empty($data['jsTranslations'])) { ?>
<script type="text/javascript">
<?php foreach ($data['jsTranslations'] as $key => $value) { ?>
jsTranslations['<?php echo $key; ?>'] = '<?php echo $value; ?>';
<?php } ?>
</script>
<?php } ?>
<script type="text/javascript" src="public_html/js/main.js"></script>
<script type="text/javascript" src="public_html/js/feedback.js"></script>
<title><?php echo $data['title']; ?></title>
</head>
<body>
<!-- Header -->
<div id="header">
<div id="header-top">
<div id="header-top-inner">
<div id="header-top-inner-row">
<div class="header-top-inner-cell header-top-inner-username">
&nbsp;
</div>
</div>
</div>
</div>
<input type="checkbox" id="header-mobile" />
<div id="inner-header">
<label for="header-mobile"></label>
<a href="?s=install<?php echo $data['langUrl']; ?>" id="header-logo"><img src="public_html/img/logo.svg" /></a>
<div id="header-navi">
<a href="?s=install<?php echo $data['langUrl']; ?>"><?php _e('Installation'); ?></a>
</div>
</div>
</div>
<!-- Content -->
<div id="content">
<!--[if lte IE 9]>
<div class="box info">
<div>
<div class="inner-header">
<span><?php _e('Nicht unterst&uuml;tzte Browserversion'); ?></span>
</div>
<div class="inner">
<?php _e('Deine aktuelle Browserversion wird von Pi Control nicht unterst&uuml;tzt. Bitte aktualisiere deinen Browser oder verwende einen anderen!'); ?>
</div>
</div>
</div>
<![endif]-->
<?php if (is_array($data['updatePicontrol'])) { ?>
<!-- Update -->
<div class="box info info-update pulse-update">
<div>
<div class="inner-header">
<span><?php _e('Pi Control %s ist verf&uuml;gbar', $data['updatePicontrol']['version']); ?></span>
</div>
<div class="inner">
<?php _e('Es steht ein Update zur Verf&uuml;gung. Bitte aktualisiere auf die neuste Version, bevor du die Installation startest: <a href="%s" target="_blank">Download</a>', 'https://pi-control.de/install/'); ?>
</div>
</div>
</div>
<?php } ?>

View File

@@ -0,0 +1,27 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div class="sidebar">
<div class="box">
<div class="inner-header">
<span><?php _e('Fortschritt'); ?></span>
</div>
<div class="inner">
<div class="progressbar"><div style="width: 0%;">&nbsp;</div></div>
</div>
<div class="inner text-center">
<strong>0%</strong>
</div>
</div>
</div>
<div class="container-600">
<div class="box">
<div class="inner-header">
<span><?php _e('Vorwort'); ?></span>
</div>
<div class="inner">
<?php _e('Willkommen zur Installation des Pi Control f&uuml;r deinen Raspberry Pi!<br /><br />Vielen Dank, dass du dich f&uuml;r das Pi Control entschieden hast.<br />Die Installation f&uuml;hrt dich durch eine Reihe von Schritten und dauert etwa drei Minuten. Rechts findest du einen Fortschrittsbalken, der dich &uuml;ber den Stand der Installation informiert.<br /><br />Nun kann es losgehen. Klicke dazu auf den folgenden Button.'); ?>
</div>
<div class="inner-end">
<a href="?s=install_language<?php echo $data['langUrl']; ?>" class="button"><?php _e('Installation starten'); ?></a>
</div>
</div>
</div>

View File

@@ -0,0 +1,103 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<style>
@-webkit-keyframes move {
0% {
width: 60%;
}
30% {
width: 80%;
}
}
</style>
<div class="sidebar">
<div class="box">
<div class="inner-header">
<span><?php _e('Fortschritt'); ?></span>
</div>
<div class="inner">
<div class="progressbar"><div style="width: 80%; -webkit-animation: move 1.5s linear forwards;">&nbsp;</div></div>
</div>
<div class="inner text-center">
<strong>80%</strong>
</div>
</div>
</div>
<div class="container-600">
<div class="box">
<div class="inner-header">
<span><?php _e('4. Schritt'); ?></span>
</div>
<div class="inner">
<?php _e('Um das Pi Control zu automatisieren und regelm&auml;ßig Aufgaben im Hintergrund ausf&uuml;hren zu k&ouml;nnen, wird ein Cron ben&ouml;tigt. Nachfolgend kann dieser automatisch erstellt werden oder aber du <a href="%s">&uuml;berspringst diesen Schritt</a> und legst den Cron sp&auml;ter von Hand ein.', '?s=install_finish'); ?>
</div>
</div>
</div>
<div class="clear-both"></div>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('SSH-Login'); ?></span>
</div>
<div class="inner-info">
<div><?php _e('Deine Daten werden f&uuml;r diese Funktion nicht gespeichert und nur zum einmaligen Eintragen eines Crons in /etc/crontab ben&ouml;tigt.'); ?></div>
</div>
<form action="?s=install_cron" method="post">
<input type="radio" id="ssh-login-passwd" name="ssh-login" value="password" checked="checked" />
<label for="ssh-login-passwd">
<div class="inner-table">
<div class="ssh-login-table-clickable-area"></div>
<table class="table table-borderless">
<tr>
<th colspan="2"><strong><?php _e('Anmeldung &uuml;ber ein Passwort'); ?></strong><span> [<?php _e('Klicken zum aktivieren'); ?>]</span></th>
</tr>
<tr>
<td style="width: 30%;"><strong><?php _e('SSH-Port'); ?></strong></td>
<td><input type="text" name="port" style="width: 50px;" value="<?php echo $data['port']; ?>" maxlength="5" /> <span class="small-info"><?php _e('Standard: %d', 22); ?></span></td>
</tr>
<tr>
<td><strong><?php _e('SSH-Benutzername'); ?></strong></td>
<td><input type="text" name="username" style="width: 40%;" value="<?php echo $data['username']; ?>" /></td>
</tr>
<tr>
<td><strong><?php _e('SSH-Passwort'); ?></strong></td>
<td><input type="password" name="password" style="width: 40%;" /></td>
</tr>
</table>
</div>
</label>
<div class="inner">
<div class="divider"><div></div><div><?php _e('ODER'); ?></div></div>
</div>
<input type="radio" id="ssh-login-pubkey" name="ssh-login" value="publickey" />
<label for="ssh-login-pubkey">
<div class="inner-table">
<div class="ssh-login-table-clickable-area"></div>
<table class="table table-borderless">
<tr>
<th colspan="2"><strong><?php _e('Anmeldung &uuml;ber einen Publickey'); ?></strong><span> [<?php _e('Klicken zum aktivieren'); ?>]</span></th>
</tr>
<tr>
<td style="width: 30%;"><strong><?php _e('SSH-Port'); ?></strong></td>
<td><input type="text" name="port_" style="width: 50px;" value="<?php echo $data['port']; ?>" maxlength="5" /> <span class="small-info"><?php _e('Standard: 22'); ?></span></td>
</tr>
<tr>
<td><strong><?php _e('SSH-Benutzername'); ?></strong></td>
<td><input type="text" name="username_" style="width: 40%;" value="<?php echo $data['username']; ?>" /></td>
</tr>
<tr>
<td><strong><?php _e('SSH-Privatekey'); ?></strong></td>
<td><textarea name="privatekey_" style="width: 80%; height: 100px;"></textarea></td>
</tr>
<tr>
<td><strong><?php _e('Privatekey-Passwort (falls n&ouml;tig)'); ?></strong></td>
<td><input type="password" name="password_" style="width: 40%;" /></td>
</tr>
</table>
</div>
</label>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('Anmelden und Cron anlegen'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,27 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div class="sidebar">
<div class="box">
<div class="inner-header">
<span><?php _e('Fortschritt'); ?></span>
</div>
<div class="inner">
<div class="progressbar"><div style="width: 80%;">&nbsp;</div></div>
</div>
<div class="inner text-center">
<strong>80%</strong>
</div>
</div>
</div>
<div class="container-600">
<div class="box">
<div class="inner-header">
<span><?php _e('4. Schritt'); ?></span>
</div>
<div class="inner">
<strong class="green"><?php _e('Der Cron f&uuml;r das Pi Control wurde erfolgreich angelegt.'); ?></strong>
</div>
<div class="inner-end">
<a href="?s=install_finish" class="button"><?php _e('N&auml;chster Schritt'); ?></a>
</div>
</div>
</div>

View File

@@ -0,0 +1,47 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<style>
@-webkit-keyframes move {
0% {
width: 80%;
}
30% {
width: 95%;
}
}
</style>
<div class="sidebar">
<div class="box">
<div class="inner-header">
<span><?php _e('Fortschritt'); ?></span>
</div>
<div class="inner">
<div class="progressbar"><div style="width: 95%; -webkit-animation: move 1.5s linear forwards;">&nbsp;</div></div>
</div>
<div class="inner text-center">
<strong>95%</strong>
</div>
</div>
</div>
<div class="container-600">
<div class="box">
<div class="inner-header">
<span><?php _e('5. Schritt'); ?></span>
</div>
<div class="inner">
<?php _e('Juhu, nun bist du fast mit der Installation des Pi Control fertig. Im letzten Schritt wird alles fertig konfiguriert und erstellt. Anschließend wirst du zum Pi Control weitergeleitet.<br /><br />Viel Spaß!'); ?>
</div>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Aktualisierungsbenachrichtigung'); ?></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 <a href="%s" target="_blank">hier in die Liste eintragen</a>.', $data['configUpdateNotification']); ?>
</div>
<div class="inner-end">
<form action="?s=install_finish" method="post">
<input type="submit" name="submit" value="<?php _e('Abschließen'); ?>" />
</form>
</div>
</div>
</div>

View File

@@ -0,0 +1,52 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<script type="text/javascript">var languageArray = <?php echo $data['languageArray']; ?></script>
<script type="text/javascript" src="public_html/js/install.language.js"></script>
<style>
@-webkit-keyframes move {
0% {
width: 0%;
}
30% {
width: 20%;
}
}
</style>
<div class="sidebar">
<div class="box">
<div class="inner-header">
<span><?php _e('Fortschritt'); ?></span>
</div>
<div class="inner">
<div class="progressbar"><div style="width: 20%; -webkit-animation: move 1.5s linear forwards;">&nbsp;</div></div>
</div>
<div class="inner text-center">
<strong>20%</strong>
</div>
</div>
</div>
<div class="container-600">
<div class="box">
<div class="inner-header">
<span><?php _e('1. Schritt'); ?></span>
</div>
<div class="inner">
<?php _e('Bitte w&auml;hle nachfolgend aus den vorhandenen Sprachen, deine bevorzugte Sprache aus. Die Sprache kann nachtr&auml;glich ge&auml;ndert werden.'); ?>
</div>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Sprachauswahl'); ?></span>
</div>
<form action="?s=install_language" method="post">
<div class="inner install-language-flex-container">
<input type="radio" name="language" value="de" id="rb-de"<?php if ($data['language'] == 'de') echo ' checked="checked"'; ?> />
<label for="rb-de">Deutsch</label>
<input type="radio" name="language" value="en" id="rb-en"<?php if ($data['language'] == 'en') echo ' checked="checked"'; ?> />
<label for="rb-en">English</label>
</div>
<div class="inner-end">
<input type="submit" name="submit" value="<?php _e('N&auml;chster Schritt'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,111 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<style>
@-webkit-keyframes move {
0% {
width: 20%;
}
30% {
width: 40%;
}
}
</style>
<div class="sidebar">
<div class="box">
<div class="inner-header">
<span><?php _e('Fortschritt'); ?></span>
</div>
<div class="inner">
<div class="progressbar"><div style="width: 40%; -webkit-animation: move 1.5s linear forwards;">&nbsp;</div></div>
</div>
<div class="inner text-center">
<strong>40%</strong>
</div>
</div>
</div>
<div class="container-600">
<div class="box">
<div class="inner-header">
<span><?php _e('2. Schritt'); ?></span>
</div>
<div class="inner">
<?php _e('Um das bestm&ouml;gliche aus dem Pi Control herausholen zu k&ouml;nnen, m&uuml;ssen bestimmte Anforderungen erf&uuml;llt sein. Nachfolgend findest du eine Liste dieser.'); ?>
</div>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Anforderungen'); ?></span>
</div>
<div class="inner">
<span class="subtitle"><?php _e('PHP'); ?></span>
</div>
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td style="width: 50%;"><?php _e('Version %s', '>= 5.5'); ?></td>
<td class="<?php echo ($data['phpVersion']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpVersion']['status'] == true) ? '&#10004;' : '&#10006;'; echo ' '.$data['phpVersion']['version']; ?></td>
</tr>
<tr>
<td><?php _e('SSH2-Erweiterung installiert'); ?></td>
<td class="<?php echo ($data['phpSSH']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpSSH']['status'] == true) ? '&#10004;' : '&#10006; <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'?s=view&amp;i=11'.getURLLangParam().'" target="_blank">'._t('Anleitung zur Installation').'</a>'; ?></td>
</tr>
<tr>
<td><?php _e('Mcrypt-Erweiterung installiert'); ?></td>
<td class="<?php echo ($data['phpMcrypt']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpMcrypt']['status'] == true) ? '&#10004;' : '&#10006; <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'?s=view&amp;i=12'.getURLLangParam().'" target="_blank">'._t('Anleitung zur Installation').'</a>'; ?></td>
</tr>
<tr>
<td><?php _e('CLI-Erweiterung installiert'); ?></td>
<td class="<?php echo ($data['phpCLI']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpCLI']['status'] == true) ? '&#10004;' : '&#10006; <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'?s=view&amp;i=13'.getURLLangParam().'" target="_blank">'._t('Anleitung zur Installation').'</a>'; ?></td>
</tr>
<tr>
<td><?php _e('cURL-Erweiterung installiert'); ?></td>
<td class="<?php echo ($data['phpCURL']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpCURL']['status'] == true) ? '&#10004;' : '&#10006; <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'?s=view&amp;i=14'.getURLLangParam().'" target="_blank">'._t('Anleitung zur Installation').'</a>'; ?></td>
</tr>
<tr>
<td><?php _e('ZipArchive-Erweiterung installiert'); ?></td>
<td class="<?php echo ($data['phpZipArchive']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpZipArchive']['status'] == true) ? '&#10004;' : '&#10006; <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'?s=view&amp;i=15'.getURLLangParam().'" target="_blank">'._t('Anleitung zur Installation').'</a>'; ?></td>
</tr>
<tr>
<td><?php _e('Laden externer Inhalte aktiviert'); ?></td>
<td class="<?php echo ($data['phpAllowUrlFopen']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpAllowUrlFopen']['status'] == true) ? '&#10004;' : '&#10006; '.$data['phpAllowUrlFopen']['info']; ?></td>
</tr>
</table>
</div>
<div class="inner">
<span class="subtitle"><?php _e('Dateien und Ordner'); ?></span>
</div>
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td style="width: 50%;"><?php _e('Vorhanden'); ?></td>
<td class="<?php echo ($data['filesFoldersExist']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['filesFoldersExist']['status'] == true) ? '&#10004;' : '&#10006; <a style="color: inherit; text-decoration: underline;" href="?s=install_troubleshooting'. $data['langUrl'].'" target="_blank">'._t('Mindestens %d Fehler', $data['filesFoldersExist']['count']).'</a>'; ?></td>
</tr>
<tr>
<td><?php _e('Berechtigungen'); ?></td>
<td class="<?php echo ($data['filesFoldersPermission']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['filesFoldersPermission']['status'] == true) ? '&#10004;' : '&#10006; <a style="color: inherit; text-decoration: underline" href="?s=install_troubleshooting'.$data['langUrl'].'" target="_blank">'._t('Mindestens %d Fehler', $data['filesFoldersPermission']['count']).'</a>'; ?></td>
</tr>
</table>
</div>
<div class="inner">
<span class="subtitle"><?php _e('Sonstiges'); ?></span>
</div>
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td style="width: 50%;"><?php _e('Distribution'); ?></td>
<td class="<?php echo ($data['otherDistribution']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['otherDistribution']['status'] == true) ? '&#10004;' : '&#10006;'; echo ' '.$data['otherDistribution']['version'] ; ?></td>
</tr>
<tr>
<td><?php _e('Cookies aktiviert'); ?></td>
<td class="<?php echo ($data['otherCookie']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['otherCookie']['status'] == true) ? '&#10004;' : '&#10006;'; ?></td>
</tr>
</table>
</div>
<div class="inner-end">
<?php if ($data['error'] === false) { ?>
<a href="?s=install_user" class="button"><?php _e('N&auml;chster Schritt'); ?></a>
<?php } else { ?>
<strong class="red"><?php _e('Probleme beheben, um fortzufahren!'); ?></strong> <a href="?s=install_requirement<?php echo $data['langUrl']; ?>" class="button"><?php _e('Seite aktualisieren'); ?></a>
<?php } ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,33 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div>
<div class="box">
<div class="inner-header">
<span><?php _e('Problembehandlung'); ?></span>
</div>
<div class="inner-table overflow-auto">
<table class="table table-borderless">
<tr>
<th><?php _e('Datei / 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['configHelp']; ?>" target="_blank" class="button"><?php _e('Anleitung zur Problembehebung'); ?></a>
</div>
<?php } ?>
</div>
</div>

View File

@@ -0,0 +1,60 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<style>
@-webkit-keyframes move {
0% {
width: 40%;
}
30% {
width: 60%;
}
}
</style>
<div class="sidebar">
<div class="box">
<div class="inner-header">
<span><?php _e('Fortschritt'); ?></span>
</div>
<div class="inner">
<div class="progressbar"><div style="width: 60%; -webkit-animation: move 1.5s linear forwards;">&nbsp;</div></div>
</div>
<div class="inner text-center">
<strong>60%</strong>
</div>
</div>
</div>
<div class="container-600">
<div class="box">
<div class="inner-header">
<span><?php _e('3. Schritt'); ?></span>
</div>
<div class="inner">
<?php _e('In diesem Schritt kannst du einen Benutzer f&uuml;r das Pi Control erstellen. Dieser Benutzer hat nichts mit dem SSH-Login zu tun und wird nur zur Anmeldung an das Pi Control genutzt.'); ?>
</div>
</div>
<div class="box">
<div class="inner-header">
<span><?php _e('Benutzer erstellen'); ?></span>
</div>
<form action="?s=install_user" method="post">
<div class="inner-table">
<table class="table table-borderless table-form">
<tr>
<td style="width: 40%;"><?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('N&auml;chster Schritt'); ?>" />
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,27 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<div class="sidebar">
<div class="box">
<div class="inner-header">
<span><?php _e('Fortschritt'); ?></span>
</div>
<div class="inner">
<div class="progressbar"><div style="width: 60%;">&nbsp;</div></div>
</div>
<div class="inner text-center">
<strong>60%</strong>
</div>
</div>
</div>
<div class="container-600">
<div class="box">
<div class="inner-header">
<span><?php _e('3. Schritt'); ?></span>
</div>
<div class="inner">
<strong class="green"><?php _e('Der Benutzer f&uuml;r das Pi Control wurde erfolgreich angelegt.'); ?></strong>
</div>
<div class="inner-end">
<a href="?s=install_cron" class="button"><?php _e('N&auml;chster Schritt'); ?></a>
</div>
</div>
</div>

View File

@@ -0,0 +1,16 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<!-- Msg -->
<div id="message_box_<?php echo $data['id']; ?>">
<div class="box <?php echo $data['type']; ?>">
<div>
<?php if ($data['title'] != '') { ?><div class="inner-header">
<span><?php echo $data['title']; ?></span>
<?php if ($data['cancelable'] === true) { ?><div><span class="cancel"></span></div><?php } ?>
</div><?php } ?>
<div class="inner<?php if ($data['title'] == '') { echo '-single'; } ?>">
<?php echo $data['msg']; ?>
</div>
<?php if ($data['title'] == '' && $data['cancelable'] === true) { ?><div><span class="cancel"></span></div><?php } ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,47 @@
<?php if (!defined('PICONTROL')) exit(); ?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-title" content="Pi Control" />
<meta name="application-name" content="Pi Control" />
<meta name="theme-color" content="#1565C0" />
<link type="text/css" rel="stylesheet" href="public_html/css/style.css.php" />
<link rel="apple-touch-icon" sizes="57x57" href="/public_html/img/favicon/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="120x120" href="/public_html/img/favicon/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon" sizes="152x152" href="/public_html/img/favicon/apple-touch-icon-152x152.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/public_html/img/favicon/apple-touch-icon-180x180.png" />
<link rel="icon" type="image/png" href="public_html/img/favicon/android-chrome-192x192.png" sizes="192x192" />
<link rel="icon" type="image/png" href="public_html/img/favicon/favicon-96x96.png" sizes="96x96" />
<link rel="manifest" href="public_html/img/favicon/manifest.json" />
<link rel="mask-icon" href="public_html/img/favicon/safari-pinned-tab.svg" color="#1975d0" />
<link rel="shortcut icon" href="public_html/img/favicon/favicon.ico" />
<script type="text/javascript" src="public_html/js/jquery.min.js"></script>
<script type="text/javascript" src="public_html/js/main.js"></script>
<script type="text/javascript" src="public_html/js/feedback.js"></script>
<title>Pi Control</title>
</head>
<body>
<!-- Header -->
<div id="header">
<div id="inner-header" style="min-height: 45px;">
</div>
</div>
<!-- Content -->
<div id="content" style="min-height: auto;">
<div>
<div class="box" style="margin: 0;">
<?php echo $data['content']; ?>
</div>
</div>
</div>
<!-- Footer -->
<div id="footer" style="background: none; border: none; min-height: auto;">
<div id="footer-inner">
<div id="footer-copyright"><?php _e('Mit %s entwickelt von %s.', '<span style="color: #F44336;">&#10084;</span>', '<a href="https://willy-tech.de/" target="_blank">Willy Fritzsche</a>'); ?> 2013-2017</div>
</div>
</div>
</body>
</html>