1
0
forked from mirzaev/pot-php

Compare commits

..

4 Commits
5.0.0 ... 5.1.2

Author SHA1 Message Date
a76e11fb9f fixed settings installer 2026-01-07 12:54:54 +05:00
190ef8eabd exaples 2026-01-06 14:20:24 +05:00
41fcf9319b localizations 2026-01-06 14:17:36 +05:00
8b5a49747b why so shroomious 2026-01-06 14:04:51 +05:00
5 changed files with 98 additions and 9 deletions

View File

@@ -2,5 +2,41 @@
// Exit (success)
return [
'' => ''
]
// System
'empty' => 'Empty',
'yes' => 'Yes',
'no' => 'No',
// Main menu
'menu_title' => 'Main menu',
// Account
'account_title' => 'Account',
'account_authorized_system' => 'Access to the system',
'account_authorized_settings' => 'Access to settings',
'account_authorized_system_settings' => 'System access to the system settings',
// Language setting
'settings_select_language_title' => 'Select language',
'settings_select_language_description' => 'The selected language will be writed in your account settings',
'settings_language_update_success' => 'Language replaced:',
'settings_language_update_fail' => 'Failed to replace language',
// Language selection
'select_language_title' => 'Select language',
'select_language_description' => 'The selected language will be used in the current process',
'select_language_button_add' => 'Add a language',
// Authorization
'not_authorized_system' => 'You do not have access to the system',
'not_authorized_settings' => 'You do not have access to the settings',
'not_authorized_system_settings' => 'You do not have access to the system settings',
// Messages
'message_initialization_fail' => 'Не удалось инициализировать сообщение Телеграм',
'message_text_initialization_fail' => 'Не удалось инициализировать текст сообщения Телеграм',
// Other
'why_so_shroomious' => 'why so shroomious'
];

View File

@@ -1,6 +1,41 @@
<?php
// Exit (success)
// Выход (успех)
return [
'' => ''
]
// Система
'empty' => 'Пусто',
'yes' => 'Да',
'no' => 'Нет',
// Главное меню
'menu_title' => 'Главное меню',
// Аккаунт
'account_title' => 'Аккаунт',
'account_authorized_system' => 'Доступ к системе',
'account_authorized_settings' => 'Доступ к изменению настроек',
'account_authorized_system_settings' => 'Системный доступ к системным настройкам',
// Настройки языка
'settings_select_language_title' => 'Выбери язык',
'settings_select_language_description' => 'Выбранный язык будет записан в настройки аккаунта',
'settings_language_update_success' => 'Язык заменён:',
'settings_language_update_fail' => 'Не удалось заменить язык',
// Выбор языка
'select_language_title' => 'Выбери язык',
'select_language_description' => 'Выбранный язык будет использован в текущем процессе',
'select_language_button_add' => 'Добавить язык',
// Авторизация
'not_authorized_system' => 'У тебя нет доступа к системе',
'not_authorized_settings' => 'У тебя нет доступа к настройкам',
'not_authorized_system_settings' => 'У тебя нет доступа к системным настройкам',
// Сообщения
'message_initialization_fail' => 'Не удалось инициализировать сообщение Телеграм',
'message_text_initialization_fail' => 'Не удалось инициализировать текст сообщения Телеграм',
// Прочее
'why_so_shroomious' => 'почему такой грибъёзный'
];

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Telegram chat-robot: @robot_bot
Wants=network.target
After=syslog.target network-online.target
[Service]
ExecStart=sudo -u www-data /usr/bin/php /var/www/${REPO_NAME}/${REPO_OWNER}/${REPO_NAME}/system/public/telegram.php
PIDFile=/var/run/php/telegram.pid
RemainAfterExit=no
RuntimeMaxSec=3600s
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target

View File

@@ -8,8 +8,10 @@ if [ -d author ]; then
mv author ${REPO_OWNER}
fi
if [ -e ${REPO_OWNER}/${REPO_NAME}/system/settings/*.sample ]; then
for i in ${REPO_OWNER}/${REPO_NAME}/system/settings/*.sample; do
for i in ${REPO_OWNER}/${REPO_NAME}/system/settings/*.sample; do
echo $$i;
if [ ! -f "$${i/.sample/}" ]; then
cp "$$i" "$${i/.sample/}";
done
fi
echo $${i/.sample/};
fi
done