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