Skip to content

Commit 8fdeaa1

Browse files
authored
Merge pull request #15 from LiteSoftware/TUS-5
TUS-5 Added params for getting other terms
2 parents f8a70ce + df39e10 commit 8fdeaa1

6 files changed

Lines changed: 159 additions & 10 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
vendor/
22
app/core/config/db_params.php
33
composer.lock
4-
/.phpunit.result.cache
4+
/.phpunit.result.cache
5+
.idea

app/presentation/controllers/UserAgreementController.php

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,35 @@
55
* @property HttpHeaderRepositoryInterface $httpHeaderRepository
66
*/
77

8-
class UserAgreementController extends BaseController implements UserAgreementControllerInterface {
9-
8+
class UserAgreementController extends BaseController implements UserAgreementControllerInterface
9+
{
10+
1011
private const DEFAULT_LANG = 'en';
1112

13+
private const DEFAULT_DIR = 'android/';
14+
1215
private $langText;
1316

17+
private $app;
18+
1419
public function __construct(
15-
UserAgreementViewInterface $userAgreementView,
16-
GlobalVarRepository $requestGet
17-
) {
20+
UserAgreementViewInterface $userAgreementView,
21+
GlobalVarRepository $requestGet
22+
)
23+
{
1824
$this->view = $userAgreementView;
1925
$this->langText = $requestGet->getString('language', self::DEFAULT_LANG);
26+
$app = $requestGet->getString('app', '');
27+
$this->app = empty($app) ? '' : self::DEFAULT_DIR . $app . '/';
2028
}
2129

22-
public function actionTerms() {
23-
$this->view->setTemplate('user_agreement_' . $this->langText, 'html');
30+
public function actionTerms()
31+
{
32+
$this->view->setTemplate($this->app . 'user_agreement_' . $this->langText, 'html');
2433
}
2534

26-
public function actionPolicy() {
27-
$this->view->setTemplate('private_policy_' . $this->langText, 'html');
35+
public function actionPolicy()
36+
{
37+
$this->view->setTemplate($this->app . 'private_policy_' . $this->langText, 'html');
2838
}
2939
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?= $this->content; ?>
2+
<div class="main">
3+
<h3 class="main-title">Privacy policy</h3>
4+
5+
<div class="text-agreement">
6+
<h3 class="title">We collect the following information from the application:</h3>
7+
<div class="list-item">1. Customer feedback on the application and suggestions for improvement</div>
8+
<div class="list-item">2. Device performance results </div>
9+
<div class="list-item">3. Information about the user's mobile device model (device ID, information about the CPU, RAM)</div>
10+
<div class="list-item">4. Data about erroneous information displayed in the application</div>
11+
<div class="list-item">5. Data about errors that occurred in the application</div>
12+
</div>
13+
14+
<div class="text-agreement">
15+
<h3 class="title">How we use this information:</h3>
16+
<div class="list-item">1. To improve the operation of the application and the relevance of the displayed information</div>
17+
<div class="list-item">2. To provide performance ratings for users' devices that have passed an in-app performance test</div>
18+
<div class="list-item">3. We use your email only for feedback and in no way for the purpose of sending advertisements, news or transmission to others</div>
19+
</div>
20+
21+
<div class="text-agreement">
22+
<h3 class="title">Required Permissions</h3>
23+
<div class="list-item">1. File system access</div>
24+
<div class="list-item">2. Permissions to display push notifications</div>
25+
</div>
26+
27+
<div class="text-agreement">
28+
<h3 class="title">IMPORTANT!</h3>
29+
<div class="list-item">We do not collect your personally identifiable information, such as location information, facial recognition or other personally identifiable information.
30+
</div>
31+
</div>
32+
33+
</div>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?= $this->content; ?>
2+
<div class="main">
3+
<h3 class="main-title">Политика конфиденциальности</h3>
4+
5+
<div class="text-agreement">
6+
<h3 class="title">Мы собираем из приложения следующую информацию:</h3>
7+
<div class="list-item">1. Отзывы клиентов о работе приложения и предложения по улучшению</div>
8+
<div class="list-item">2. Результаты производительности устройства </div>
9+
<div class="list-item">3. Информацию о модели мобильного устройства пользователя (идентификатор устройства, информация о ЦП, оперативной памяти)</div>
10+
<div class="list-item">4. Данные об ошибочной информации, отображаемой в приложении</div>
11+
<div class="list-item">5. Данные об ошибках, возникших в приложении</div>
12+
</div>
13+
14+
<div class="text-agreement">
15+
<h3 class="title">Как мы используем эту информацию:</h3>
16+
<div class="list-item">1. Для совершенствования работы приложения и актуальности отображаемой информации</div>
17+
<div class="list-item">2. Для составления рейтингов производительности устройств пользователей, которые прошли тест производительности в приложении</div>
18+
<div class="list-item">3. Ваш email используем только для обратной связи и никак с целью рассылки рекламы, новостей либо передачи другим лицам</div>
19+
</div>
20+
21+
<div class="text-agreement">
22+
<h3 class="title">Требуемые разрешения</h3>
23+
<div class="list-item">1. Доступ к файловой системе</div>
24+
<div class="list-item">2. Разрешения на отображение push-уведомлений</div>
25+
</div>
26+
27+
<div class="text-agreement">
28+
<h3 class="title">ВАЖНО!</h3>
29+
<div class="list-item">Мы не собираем вашу личную информацию, а именно такую как, информацию о местоположении, распознавание лиц или другой информации, идентифицирующей вас как личность.
30+
</div>
31+
</div>
32+
33+
</div>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?= $this->content; ?>
2+
<div class="main">
3+
<h3 class="main-title">User agreement for the "AndroidInfo" application for the Android mobile operating system</h3>
4+
5+
<div class="text-agreement">
6+
<h3 class="title">1. GENERAL PROVISIONS</h3>
7+
<div class="list-item">1. This User Agreement (hereinafter referred to as the "Agreement") regulates the relationship between LiteSoftTeam and a capable individual who has duly joined this Agreement to use the AndroidInfo mobile application (hereinafter referred to as the "User"). </div>
8+
<div class="list-item">2. The AndroidInfo mobile application (hereinafter referred to as the “Application”) is a program for mobile devices, which is an information application developed for mobile devices running the Android operating system.</div>
9+
<div class="list-item">3.Appeals, proposals and claims of individuals and legal entities to the Company related to the content and operation of the Application, violations of the rights and interests of third parties can be sent to the email address: androidinfo@srcblog.ru.</div>
10+
</div>
11+
12+
<div class="text-agreement">
13+
<h3 class="title">2. RIGHTS AND OBLIGATIONS OF THE USER</h3>
14+
<div class="list-item">1. The user undertakes to properly comply with the terms of this Agreement.
15+
</div>
16+
<div class="list-item">2. The User undertakes not to use the Application for any other purpose other than for purposes related to personal non-commercial use.</div>
17+
</div>
18+
19+
<div class="text-agreement">
20+
<h3 class="title">3. RIGHTS AND OBLIGATIONS OF THE COMPANY</h3>
21+
<div class="list-item">1. In order to improve and increase the stability of the Application, the Contractor Company has the right to collect, store and process data about the user's mobile device model (device identifier, information about the CPU, RAM)
22+
</div>
23+
</div>
24+
25+
<div class="text-agreement">
26+
<h3 class="title">4. LINKS TO THIRD PARTY SITES</h3>
27+
<div class="list-item">1. The application may contain links or provide access to other resources on the Internet (sites of third parties) and content posted on these resources, which are the result of intellectual activity of third parties.
28+
</div>
29+
<div class="list-item">2. The Company is not responsible for any information or content posted on third-party sites to which the User gains access through the Application, including, but not limited to, any opinions or statements expressed on third-party sites.
30+
</div>
31+
<div class="list-item">3. The User confirms that from the moment the User follows the link contained in the Application to the site of a third party, the relationship between the Company and the User ceases. This Agreement does not further apply to the User, and the Company is not responsible for the accuracy of the information posted on the websites of third parties, the use of the content by the User, the legality of such use and the quality of the content posted on the websites of third parties.
32+
</div>
33+
</div>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?= $this->content; ?>
2+
<div class="main">
3+
<h3 class="main-title">Пользовательское соглашение в отношении приложения «AndroidInfo» для мобильной операционной системы Android</h3>
4+
5+
<div class="text-agreement">
6+
<h3 class="title">1. ОБЩИЕ ПОЛОЖЕНИЯ</h3>
7+
<div class="list-item">1. Настоящее Пользовательское соглашение (далее «Соглашение») регламентирует отношения между LiteSoftTeam и дееспособным физическим лицом, надлежащим образ присоединившемся к настоящему Соглашению для использования мобильного приложения «AndroidInfo» (далее - «Пользователь»). </div>
8+
<div class="list-item">2. Мобильное приложение «AndroidInfo» (далее - «Приложение») является программой для мобильных устройств, представляющей собой информационное приложение, разработанное для мобильных устройств, работающих под управлением операционной системы Android.</div>
9+
<div class="list-item">3. Обращения, предложения и претензии физических и юридических лиц к Компании, связанные с содержанием и функционированием Приложения, нарушениями прав и интересов третьих лиц могут быть направлены на адрес электронной почты: androidinfo@srcblog.ru.</div>
10+
</div>
11+
12+
<div class="text-agreement">
13+
<h3 class="title">2. ПРАВА И ОБЯЗАННОСТИ ПОЛЬЗОВАТЕЛЯ</h3>
14+
<div class="list-item">1. Пользователь обязуется надлежащим образом соблюдать условия настоящего Соглашения.
15+
</div>
16+
<div class="list-item">2. Пользователь обязуется не использовать Приложение для любых иных целей, кроме как для целей, связанных с личным некоммерческим использованием.</div>
17+
</div>
18+
19+
<div class="text-agreement">
20+
<h3 class="title">3. ПРАВА И ОБЯЗАННОСТИ КОМПАНИИ</h3>
21+
<div class="list-item">1. В целях улучшения и повышения стабильности работы Приложения Компания Исполнитель вправе собирать, хранить и обрабатывать данные о модели мобильного устройства пользователя (идентификатор устройства, информация о ЦП, оперативной памяти)
22+
</div>
23+
</div>
24+
25+
<div class="text-agreement">
26+
<h3 class="title">4. ССЫЛКИ НА САЙТЫ ТРЕТЬИХ ЛИЦ</h3>
27+
<div class="list-item">1. Приложение может содержать ссылки или представлять доступ на другие ресурсы в сети Интернет (сайты третьих лиц) и размещенный на данных ресурсах контент, являющиеся результатом интеллектуальной деятельности третьих лиц.
28+
</div>
29+
<div class="list-item">2. Компания не несет ответственность за любую информацию или контент, размещенные на сайтах третьих лиц, к которым Пользователь получает доступ посредством Приложения, включая, в том числе, любые мнения или утверждения, выраженные на сайтах третьих лиц.
30+
</div>
31+
<div class="list-item">3. Пользователь подтверждает, что с момента перехода Пользователя по ссылке,
32+
содержащейся в Приложении, на сайт третьего лица, взаимоотношения
33+
Компании и Пользователя прекращаются. Настоящее Соглашение в дальнейшем
34+
не распространяется на Пользователя, и Компания не несет ответственность за
35+
достоверность размещенной на сайтах третьих лиц информации, использование
36+
Пользователем контента, правомерность такого использования и качество
37+
контента, размещенного на сайтах третьих лиц.
38+
</div>
39+
</div>

0 commit comments

Comments
 (0)