removed broked crontab editor and fixed permissions issue

added a few new words to translation.json
This commit is contained in:
mcguirepr89
2022-01-29 08:51:45 -05:00
parent 6d5ea98bee
commit 31f2edbd2a
7 changed files with 48 additions and 76 deletions
+8 -13
View File
@@ -32,12 +32,9 @@ a {
} }
.block { .block {
display: block; display: block;
font-weight: bold; width:50%;
width:100%;
border: none; border: none;
background-color: #04AA6D; padding: 10px 10px;
padding: 20px 20px;
color: white;
font-size: medium; font-size: medium;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
@@ -124,9 +121,8 @@ if (file_exists('/home/pi/BirdNET-Pi/thisrun.txt')) {
<input name="confidence" type="text" value="<?php print($config['CONFIDENCE']);?>" required/><br> <input name="confidence" type="text" value="<?php print($config['CONFIDENCE']);?>" required/><br>
<label for="sensitivity">Sigmoid Sensitivity: </label> <label for="sensitivity">Sigmoid Sensitivity: </label>
<input name="sensitivity" type="text" value="<?php print($config['SENSITIVITY']);?>" required/><br> <input name="sensitivity" type="text" value="<?php print($config['SENSITIVITY']);?>" required/><br>
<br> <br><br>
<br> <button type="submit" class="block"><?php
<input type="submit" value="<?php
@session_start(); @session_start();
if(isset($_SESSION['success'])){ if(isset($_SESSION['success'])){
@@ -135,12 +131,11 @@ if(isset($_SESSION['success'])){
} else { } else {
echo "Update Settings"; echo "Update Settings";
} }
?>"> ?></button>
<br> <br>
<br> </form>
<br> <form action="config.php" style="margin:0;">
<button type="text"><a href="config.php">Basic Settings</a></button> <button type="submit" class="block">Basic Settings</button>
<button type="text"><a href="edit_crontab.php">Edit the Crontab</a></button>
</form> </form>
</div> </div>
</div> </div>
+7 -9
View File
@@ -31,12 +31,9 @@ a {
} }
.block { .block {
display: block; display: block;
font-weight: bold; width:50%;
width:100%;
border: none; border: none;
background-color: #04AA6D; padding: 10px 10px;
padding: 20px 20px;
color: white;
font-size: medium; font-size: medium;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
@@ -143,7 +140,7 @@ if (file_exists('/home/pi/BirdNET-Pi/thisrun.txt')) {
<option value="labels_uk.txt">Ukrainian</option> <option value="labels_uk.txt">Ukrainian</option>
</select> </select>
<br><br> <br><br>
<input type="submit" value="<?php <button type="submit" class="block"><?php
@session_start(); @session_start();
if(isset($_SESSION['success'])){ if(isset($_SESSION['success'])){
@@ -152,10 +149,11 @@ if(isset($_SESSION['success'])){
} else { } else {
echo "Update Settings"; echo "Update Settings";
} }
?>"> ?></button>
<br> <br>
<br> </form>
<button type="text"><a href="advanced.php">Advanced Settings</a></button> <form action="advanced.php">
<button type="submit" class="block">Advanced Settings</button>
</form> </form>
</div> </div>
</div> </div>
-46
View File
@@ -1,46 +0,0 @@
<?php
// configuration
$url = 'edit_crontab.php';
$file = '/etc/crontab';
// check if form has been submitted
if (isset($_POST['text']))
{
// save the text contents
file_put_contents($file, $_POST['text']);
// redirect to form again
header(sprintf('Location: %s', $url));
printf('<a href="%s">Moved</a>.', htmlspecialchars($url));
exit();
}
// read the textfile
$text = file_get_contents($file);
?>
<!-- HTML form -->
<head>
<style>
* {
font-family: 'monospace';
}
a {
text-decoration: none;
color: black;
}
form {
text-align: center;
}
</style>
<body style="background-color:rgb(119, 196, 135);">
<form style="height:95%" action="" method="post">
<input style="margin-left:-150px;" type="submit" value="Update" />
<input type="reset" value="Discard Changes" />
<button type="text"><a href="advanced.php">Back</a></button><br>
<textarea name="text" style="font-size:large;width:100%;height:95%;"><?php echo htmlspecialchars($text) ?></textarea>
</form>
</body>
+6 -3
View File
@@ -12,7 +12,7 @@ $CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false,"hide_Cols":
define('VERSION', '2.4.6'); define('VERSION', '2.4.6');
//Application Title //Application Title
define('APP_TITLE', 'Tiny File Manager'); define('APP_TITLE', 'BirdNET-Pi Files');
// --- EDIT BELOW CONFIGURATION CAREFULLY --- // --- EDIT BELOW CONFIGURATION CAREFULLY ---
@@ -3342,7 +3342,9 @@ function fm_show_nav_path($path)
} }
?> ?>
<nav class="navbar navbar-expand-lg <?php echo $getTheme; ?> mb-4 main-nav <?php echo $isStickyNavBar ?>"> <nav class="navbar navbar-expand-lg <?php echo $getTheme; ?> mb-4 main-nav <?php echo $isStickyNavBar ?>">
<a class="navbar-brand" href=""> <?php echo lng('AppTitle') ?> </a> <a class="navbar-brand" href="../../">BirdNET-Pi Homepage </a>
<a class="navbar-brand" href="../"><?php echo lng('Tools'); ?></a>
<a class="navbar-brand" href="http://birdnetpi.local:8888" target="_"><?php echo lng('WebTerminal'); ?></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
@@ -4010,7 +4012,8 @@ function lng($txt) {
global $lang; global $lang;
// English Language // English Language
$tr['en']['AppName'] = 'Tiny File Manager'; $tr['en']['AppTitle'] = 'File Manager'; $tr['en']['AppName'] = 'BirdNET-Pi Files'; $tr['en']['AppTitle'] = 'BirdNET-Pi Files';
$tr['en']['Tools'] = 'Tools'; $tr['en']['WebTerminal'] = 'Web Terminal';
$tr['en']['Login'] = 'Sign in'; $tr['en']['Username'] = 'Username'; $tr['en']['Login'] = 'Sign in'; $tr['en']['Username'] = 'Username';
$tr['en']['Password'] = 'Password'; $tr['en']['Logout'] = 'Sign Out'; $tr['en']['Password'] = 'Password'; $tr['en']['Logout'] = 'Sign Out';
$tr['en']['Move'] = 'Move'; $tr['en']['Copy'] = 'Copy'; $tr['en']['Move'] = 'Move'; $tr['en']['Copy'] = 'Copy';
+27
View File
@@ -8,6 +8,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Titlu aplicatie", "AppTitle": "Titlu aplicatie",
"Tools": "Instrumente",
"Login": "Logare", "Login": "Logare",
"Username": "Nume utilizator", "Username": "Nume utilizator",
"Password": "Parola", "Password": "Parola",
@@ -88,6 +89,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Fájl kezelő", "AppTitle": "Fájl kezelő",
"Tools": "Eszközök",
"Login": "Bejelentkezés", "Login": "Bejelentkezés",
"Username": "Felhasználói név", "Username": "Felhasználói név",
"Password": "Jelszó", "Password": "Jelszó",
@@ -168,6 +170,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Fil behandler", "AppTitle": "Fil behandler",
"Tools": "Verktøy",
"Login": "Logg inn", "Login": "Logg inn",
"Username": "Brukernavn", "Username": "Brukernavn",
"Password": "Passord", "Password": "Passord",
@@ -248,6 +251,7 @@
"translation": { "translation": {
"Tiny File Manager": "مدیریت فایل کوچک", "Tiny File Manager": "مدیریت فایل کوچک",
"File Manager": "مدیریت فایل", "File Manager": "مدیریت فایل",
"Tools": "ابزار",
"Sign in": "ورود", "Sign in": "ورود",
"Username": "نام کاربری", "Username": "نام کاربری",
"Password": "گذرواژه", "Password": "گذرواژه",
@@ -324,6 +328,7 @@
"AdvancedEditor": "Улучшенный редактор", "AdvancedEditor": "Улучшенный редактор",
"AppName": "Файловый менеджер", "AppName": "Файловый менеджер",
"AppTitle": "Файловый менеджер", "AppTitle": "Файловый менеджер",
"Tools": "Инструменты",
"Back": "Вернуться", "Back": "Вернуться",
"BackUp": "Резервная копия", "BackUp": "Резервная копия",
"Cancel": "Отмена", "Cancel": "Отмена",
@@ -389,6 +394,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "File Manager", "AppTitle": "File Manager",
"Tools": "Utensili",
"Login": "Connettiti", "Login": "Connettiti",
"Username": "Username", "Username": "Username",
"Password": "Password", "Password": "Password",
@@ -465,6 +471,7 @@
"AdvancedEditor": "Editeur avancé", "AdvancedEditor": "Editeur avancé",
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Gestionnaire de fichiers", "AppTitle": "Gestionnaire de fichiers",
"Toosl": "Outils",
"Back": "Retour", "Back": "Retour",
"BackUp": "Sauvegarder", "BackUp": "Sauvegarder",
"CalculateFolderSize": "Calculer la taille des dossiers", "CalculateFolderSize": "Calculer la taille des dossiers",
@@ -536,6 +543,7 @@
"translation": { "translation": {
"AppName": "Pequeño Administrador de Archivos", "AppName": "Pequeño Administrador de Archivos",
"AppTitle": "Administrador de Archivos", "AppTitle": "Administrador de Archivos",
"Tools": "Instrumentos",
"Login": "Iniciar Sesión", "Login": "Iniciar Sesión",
"Username": "Nombre de Usuario", "Username": "Nombre de Usuario",
"Password": "Contraseña", "Password": "Contraseña",
@@ -593,6 +601,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Administrador d'Arxius", "AppTitle": "Administrador d'Arxius",
"Tools": "Eines",
"Login": "Iniciar Sessió", "Login": "Iniciar Sessió",
"Username": "Nom d'Usuari", "Username": "Nom d'Usuari",
"Password": "Contrasenya", "Password": "Contrasenya",
@@ -673,6 +682,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Datei Manager", "AppTitle": "Datei Manager",
"Tools": "Werkzeug",
"Login": "Einloggen", "Login": "Einloggen",
"Username": "Benutzername", "Username": "Benutzername",
"Password": "Passwort", "Password": "Passwort",
@@ -733,6 +743,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "ตัวจัดการไฟล์", "AppTitle": "ตัวจัดการไฟล์",
"Tools": "เครื่องมือ",
"Login": "เข้าสู่ระบบ", "Login": "เข้าสู่ระบบ",
"Username": "ชื่อผู้ใช้งาน", "Username": "ชื่อผู้ใช้งาน",
"Password": "รหัสผ่าน", "Password": "รหัสผ่าน",
@@ -790,6 +801,7 @@
"translation": { "translation": {
"AppName": "文件管理器", "AppName": "文件管理器",
"AppTitle": "文件管理器", "AppTitle": "文件管理器",
"Tools": "工具",
"Login": "登录", "Login": "登录",
"Username": "账号", "Username": "账号",
"Password": "密码", "Password": "密码",
@@ -947,6 +959,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Pengelola Berkas", "AppTitle": "Pengelola Berkas",
"Tools": "Peralatan",
"Login": "Masuk", "Login": "Masuk",
"Username": "Nama pengguna", "Username": "Nama pengguna",
"Password": "Kata sandi", "Password": "Kata sandi",
@@ -1030,6 +1043,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "File Manager", "AppTitle": "File Manager",
"Tools": "Εργαλεία",
"Login": "Είσοδος", "Login": "Είσοδος",
"Username": "Username", "Username": "Username",
"Password": "Password", "Password": "Password",
@@ -1089,6 +1103,7 @@
"translation": { "translation": {
"AppName": "Gerenciador de arquivos Tiny", "AppName": "Gerenciador de arquivos Tiny",
"AppTitle": "Gerenciador de arquivos", "AppTitle": "Gerenciador de arquivos",
"Tools": "Ferramentas",
"Login": "Iniciar Sessão", "Login": "Iniciar Sessão",
"Username": "Nome de usuário", "Username": "Nome de usuário",
"Password": "Senha", "Password": "Senha",
@@ -1214,6 +1229,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Menedżer plików", "AppTitle": "Menedżer plików",
"Tools": "Narzędzia",
"Login": "Login", "Login": "Login",
"Username": "Nazwa Użytkownika", "Username": "Nazwa Użytkownika",
"Password": "Hasło", "Password": "Hasło",
@@ -1271,6 +1287,7 @@
"translation": { "translation": {
"AppName": "Trình quản lí tệp Tiny", "AppName": "Trình quản lí tệp Tiny",
"AppTitle": "Quản lý tệp", "AppTitle": "Quản lý tệp",
"Tools": "Công cụ",
"Login": "Đăng nhập", "Login": "Đăng nhập",
"Username": "Tên đăng nhập", "Username": "Tên đăng nhập",
"Password": "Mật khẩu", "Password": "Mật khẩu",
@@ -1396,6 +1413,7 @@
"translation": { "translation": {
"AppName": "סייר קבצים - טיני", "AppName": "סייר קבצים - טיני",
"AppTitle": "סייר קבצים", "AppTitle": "סייר קבצים",
"Tools": "כלים",
"Login": "התחבר", "Login": "התחבר",
"Username": "שם משתמש", "Username": "שם משתמש",
"Password": "סיסמה", "Password": "סיסמה",
@@ -1455,6 +1473,7 @@
"translation": { "translation": {
"AppName": "مدير الملفات الصغير", "AppName": "مدير الملفات الصغير",
"AppTitle": "مدير الملفات", "AppTitle": "مدير الملفات",
"Tools": "أدوات",
"Login": "دخول", "Login": "دخول",
"Username": "اسم المستخدم", "Username": "اسم المستخدم",
"Password": "كلمة المرور", "Password": "كلمة المرور",
@@ -1525,6 +1544,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "File Manager", "AppTitle": "File Manager",
"Tools": "Nástroje",
"Login": "Přihlásit", "Login": "Přihlásit",
"Username": "Přihlašovací jméno", "Username": "Přihlašovací jméno",
"Password": "Heslo", "Password": "Heslo",
@@ -1603,6 +1623,7 @@
"translation": { "translation": {
"Tiny File Manager": "Tiny Dosya Yöneticisi", "Tiny File Manager": "Tiny Dosya Yöneticisi",
"File Manager": "Dosya Yöneticisi", "File Manager": "Dosya Yöneticisi",
"Tools": "Araçlar",
"Sign in": "Giriş Yap", "Sign in": "Giriş Yap",
"Username": "Kullanıcı adı", "Username": "Kullanıcı adı",
"Password": "Parola", "Password": "Parola",
@@ -1677,6 +1698,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "File Manager", "AppTitle": "File Manager",
"Tools": "Nástroje",
"Login": "Prihlásiť sa", "Login": "Prihlásiť sa",
"Username": "Prihlasovacie meno", "Username": "Prihlasovacie meno",
"Password": "Heslo", "Password": "Heslo",
@@ -1742,6 +1764,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Raziskovalec", "AppTitle": "Raziskovalec",
"Tools": "Orodja",
"Login": "Prijava", "Login": "Prijava",
"Username": "Uporabniško ime", "Username": "Uporabniško ime",
"Password": "Geslo", "Password": "Geslo",
@@ -1802,6 +1825,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "File Manager", "AppTitle": "File Manager",
"Tools": "Työkalut",
"Login": "Kirjautuminen", "Login": "Kirjautuminen",
"Username": "Käyttäjänimi", "Username": "Käyttäjänimi",
"Password": "Salasana", "Password": "Salasana",
@@ -1871,6 +1895,7 @@
"translation": { "translation": {
"Tiny File Manager": "Tiny File Manager", "Tiny File Manager": "Tiny File Manager",
"File Manager": "File Manager", "File Manager": "File Manager",
"Tools": "도구",
"Sign in": "로그인", "Sign in": "로그인",
"Username": "아이디", "Username": "아이디",
"Password": "비밀번호", "Password": "비밀번호",
@@ -1945,6 +1970,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "File Manager", "AppTitle": "File Manager",
"Tools": "ツール",
"Login": "ログイン", "Login": "ログイン",
"Username": "Username", "Username": "Username",
"Password": "Password", "Password": "Password",
@@ -2115,6 +2141,7 @@
"translation": { "translation": {
"AppName": "Tiny File Manager", "AppName": "Tiny File Manager",
"AppTitle": "Bestand beheerder ", "AppTitle": "Bestand beheerder ",
"Tools": "Hulpmiddelen",
"Login": "Inloggen", "Login": "Inloggen",
"Username": "Gebruikersnaam", "Username": "Gebruikersnaam",
"Password": "Wachtwoord", "Password": "Wachtwoord",
-2
View File
@@ -500,8 +500,6 @@ install_nomachine() {
install_cleanup_cron() { install_cleanup_cron() {
echo "Installing the cleanup.cron" echo "Installing the cleanup.cron"
cat $(dirname ${my_dir})/templates/cleanup.cron >> /etc/crontab cat $(dirname ${my_dir})/templates/cleanup.cron >> /etc/crontab
chown root:pi /etc/crontab
chmod g+rw /etc/crontab
} }
install_selected_services() { install_selected_services() {
-3
View File
@@ -511,9 +511,6 @@ install_nomachine() {
install_cleanup_cron() { install_cleanup_cron() {
echo "Installing the cleanup.cron" echo "Installing the cleanup.cron"
cat $(dirname ${my_dir})/templates/cleanup.cron >> /etc/crontab cat $(dirname ${my_dir})/templates/cleanup.cron >> /etc/crontab
chown root:pi /etc/crontab
chmod g+rw /etc/crontab
} }
install_selected_services() { install_selected_services() {