mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Compare commits
1 commit
2b870b36c2
...
544c7714d4
Author | SHA1 | Date | |
---|---|---|---|
|
544c7714d4 |
21 changed files with 104 additions and 556 deletions
BIN
Email/assets/res/pictures/lock.jpeg
Normal file
BIN
Email/assets/res/pictures/lock.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
|
@ -46,14 +46,17 @@
|
|||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="row">
|
||||
<tr>
|
||||
<th class="small-12 large-12 columns first last">
|
||||
<table class="row">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<center>
|
||||
<img src="pictures/lock.jpeg" align="center" class="float-center" width=128 height=128 />
|
||||
</center>
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -61,9 +64,9 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<hr/>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -71,11 +74,11 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
Здравствуйте, {$name}! Вы вероятно изменили свой адрес электронной почты в OpenVK. Чтобы изменение вступило в силу, необходимо подтвердить ваш новый Email.
|
||||
</p>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -83,7 +86,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="button large expand success">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -91,7 +94,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<a href="https://{$_SERVER['HTTP_HOST']}/settings/change_email?key={rawurlencode($key)}" align="center" class="float-center">Подтвердить Email!</a>
|
||||
<a href="http://{$_SERVER['HTTP_HOST']}/settings/change_email?key={rawurlencode($key)}" align="center" class="float-center">Подтвердить Email!</a>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -99,7 +102,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -107,30 +110,30 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
Если кнопка не работает, вы можете попробовать скопировать и вставить эту ссылку в адресную строку вашего веб-обозревателя:
|
||||
</p>
|
||||
|
||||
|
||||
<table class="callout">
|
||||
<tr>
|
||||
<th class="callout-inner primary">
|
||||
<a href="https://{$_SERVER['HTTP_HOST']}/settings/change_email?key={$key}" style="color: #000; text-decoration: none;">
|
||||
https://{$_SERVER['HTTP_HOST']}/settings/change_email?key={$key}
|
||||
<a href="http://{$_SERVER['HTTP_HOST']}/settings/change_email?key={$key}" style="color: #000; text-decoration: none;">
|
||||
http://{$_SERVER['HTTP_HOST']}/settings/change_email?key={$key}
|
||||
</a>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
Обратите внимание на то, что эту ссылку нельзя:
|
||||
</p>
|
||||
|
||||
|
||||
<ul>
|
||||
<li>Передавать другим людям (даже друзьям, питомцам, соседям, любимым девушкам)</li>
|
||||
<li>Передавать другим людям (даже друзьям, питомцам, соседам, любимым девушкам)</li>
|
||||
<li>Использовать, если прошло более двух дней с её генерации</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<table class="callout">
|
||||
<tr>
|
||||
<th class="callout-inner alert">
|
||||
|
@ -141,7 +144,7 @@
|
|||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -149,11 +152,11 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-right">
|
||||
С уважением, овк-тян.
|
||||
</p>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -161,9 +164,9 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<hr/>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -171,7 +174,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
<small>
|
||||
Вы получили это письмо так как кто-то или вы изменили адрес электронной почты. Это не рассылка и от неё нельзя отписаться. Если вы всё равно хотите перестать получать подобные письма, деактивируйте ваш аккаунт.
|
||||
|
@ -198,4 +201,4 @@
|
|||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<tr>
|
||||
<td class="float-center" align="center" valign="top">
|
||||
<center>
|
||||
Добро пожаловать в OpenVK! Приятного времяприпровождения, надеюсь вам понравится.<br><br>Если появились вопросы, касаемые нашего сайта, пишите <a href="https://{$_SERVER['HTTP_HOST']}/support?act=new">сюда</a>
|
||||
Добро пожаловать в OpenVK! Приятного времяприпровождения, надеюсь вам понравится.<br><br>Если появились вопросы, касаемые нашего сайта, пишите <a href="https://ovk.to/support?act=new">сюда</a>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -46,14 +46,17 @@
|
|||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="row">
|
||||
<tr>
|
||||
<th class="small-12 large-12 columns first last">
|
||||
<table class="row">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<center>
|
||||
<img src="pictures/lock.jpeg" align="center" class="float-center" width=128 height=128 />
|
||||
</center>
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -61,9 +64,9 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<hr/>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -71,11 +74,11 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
Здравствуйте, {$name}! Вы вероятно забыли пароль от аккаунта OpenVK? Мы идём к Вам на помощь!
|
||||
</p>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -83,7 +86,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="button large expand success">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -91,7 +94,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<a href="https://{$_SERVER['HTTP_HOST']}/restore?act=finish&key={rawurlencode($key)}" align="center" class="float-center">Сбросить пароль!</a>
|
||||
<a href="http://{$_SERVER['HTTP_HOST']}/restore?act=finish&key={rawurlencode($key)}" align="center" class="float-center">Сбросить пароль!</a>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -99,7 +102,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -107,30 +110,30 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
Если кнопка не работает, вы можете попробовать скопировать и вставить эту ссылку в адресную строку вашего веб-обозревателя:
|
||||
</p>
|
||||
|
||||
|
||||
<table class="callout">
|
||||
<tr>
|
||||
<th class="callout-inner primary">
|
||||
<a href="https://{$_SERVER['HTTP_HOST']}/restore?act=finish&key={$key}" style="color: #000; text-decoration: none;">
|
||||
https://{$_SERVER['HTTP_HOST']}/restore?act=finish&key={$key}
|
||||
<a href="http://{$_SERVER['HTTP_HOST']}/restore?act=finish&key={$key}" style="color: #000; text-decoration: none;">
|
||||
http://{$_SERVER['HTTP_HOST']}/restore?act=finish&key={$key}
|
||||
</a>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
Обратите внимание на то, что эту ссылку нельзя:
|
||||
</p>
|
||||
|
||||
|
||||
<ul>
|
||||
<li>Передавать другим людям (даже друзьям, питомцам, соседям, любимым девушкам)</li>
|
||||
<li>Передавать другим людям (даже друзьям, питомцам, соседам, любимым девушкам)</li>
|
||||
<li>Использовать, если прошло более двух дней с её генерации</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<table class="callout">
|
||||
<tr>
|
||||
<th class="callout-inner alert">
|
||||
|
@ -141,7 +144,7 @@
|
|||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -149,11 +152,11 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-right">
|
||||
С уважением, овк-тян.
|
||||
</p>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -161,9 +164,9 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<hr/>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -171,7 +174,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
<small>
|
||||
Вы получили это письмо так как кто-то или вы отправили запрос на восстановлние пароля. Это не рассылка и от неё нельзя отписаться. Если вы всё равно хотите перестать получать подобные письма, деактивируйте ваш аккаунт.
|
||||
|
@ -198,4 +201,4 @@
|
|||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -46,14 +46,17 @@
|
|||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="row">
|
||||
<tr>
|
||||
<th class="small-12 large-12 columns first last">
|
||||
<table class="row">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<center>
|
||||
<img src="pictures/lock.jpeg" align="center" class="float-center" width=128 height=128 />
|
||||
</center>
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -61,9 +64,9 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<hr/>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -71,11 +74,11 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
Здравствуйте, {$name}! Вы вероятно зарегистрировались на одном из инстансов OpenVK. Чтобы ваш аккаунт активировался, необходимо подтвердить Email.
|
||||
</p>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -83,7 +86,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="button large expand success">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -91,7 +94,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<a href="https://{$_SERVER['HTTP_HOST']}/regFinish?key={rawurlencode($key)}" align="center" class="float-center">Подтвердить Email!</a>
|
||||
<a href="http://{$_SERVER['HTTP_HOST']}/regFinish?key={rawurlencode($key)}" align="center" class="float-center">Подтвердить Email!</a>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -99,7 +102,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -107,30 +110,30 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
Если кнопка не работает, вы можете попробовать скопировать и вставить эту ссылку в адресную строку вашего веб-обозревателя:
|
||||
</p>
|
||||
|
||||
|
||||
<table class="callout">
|
||||
<tr>
|
||||
<th class="callout-inner primary">
|
||||
<a href="https://{$_SERVER['HTTP_HOST']}/regFinish?key={$key}" style="color: #000; text-decoration: none;">
|
||||
https://{$_SERVER['HTTP_HOST']}/regFinish?key={$key}
|
||||
<a href="http://{$_SERVER['HTTP_HOST']}/regFinish?key={$key}" style="color: #000; text-decoration: none;">
|
||||
http://{$_SERVER['HTTP_HOST']}/regFinish?key={$key}
|
||||
</a>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
Обратите внимание на то, что эту ссылку нельзя:
|
||||
</p>
|
||||
|
||||
|
||||
<ul>
|
||||
<li>Передавать другим людям (даже друзьям, питомцам, соседям, любимым девушкам)</li>
|
||||
<li>Передавать другим людям (даже друзьям, питомцам, соседам, любимым девушкам)</li>
|
||||
<li>Использовать, если прошло более двух дней с её генерации</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<table class="callout">
|
||||
<tr>
|
||||
<th class="callout-inner alert">
|
||||
|
@ -141,7 +144,7 @@
|
|||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -149,11 +152,11 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-right">
|
||||
С уважением, овк-тян.
|
||||
</p>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -161,9 +164,9 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<hr/>
|
||||
|
||||
|
||||
<table class="spacer">
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -171,7 +174,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="text-left">
|
||||
<small>
|
||||
Вы получили это письмо так как кто-то или вы зарегистрировались на инстансе OpenVK. Это не рассылка и от неё нельзя отписаться. Если вы всё равно хотите перестать получать подобные письма, деактивируйте ваш аккаунт.
|
||||
|
@ -198,4 +201,4 @@
|
|||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -269,7 +269,7 @@ final class Account extends VKAPIRequestHandler
|
|||
return 1;
|
||||
|
||||
$entity = get_entity_by_id($owner_id);
|
||||
if(!$entity)
|
||||
if(!$entity || $entity->isDeleted())
|
||||
return 0;
|
||||
|
||||
if(!$entity->isBlacklistedBy($this->getUser()))
|
||||
|
@ -296,49 +296,4 @@ final class Account extends VKAPIRequestHandler
|
|||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function saveInterestsInfo(
|
||||
string $interests = NULL,
|
||||
string $fav_music = NULL,
|
||||
string $fav_films = NULL,
|
||||
string $fav_shows = NULL,
|
||||
string $fav_books = NULL,
|
||||
string $fav_quote = NULL,
|
||||
string $fav_games = NULL,
|
||||
string $about = NULL,
|
||||
)
|
||||
{
|
||||
$this->requireUser();
|
||||
$this->willExecuteWriteAction();
|
||||
|
||||
$user = $this->getUser();
|
||||
$changes = 0;
|
||||
$changes_array = [
|
||||
"interests" => $interests,
|
||||
"fav_music" => $fav_music,
|
||||
"fav_films" => $fav_films,
|
||||
"fav_books" => $fav_books,
|
||||
"fav_shows" => $fav_shows,
|
||||
"fav_quote" => $fav_quote,
|
||||
"fav_games" => $fav_games,
|
||||
"about" => $about,
|
||||
];
|
||||
|
||||
foreach($changes_array as $change_name => $change_value) {
|
||||
$set_name = "set".ucfirst($change_name);
|
||||
$get_name = "get".str_replace("Fav", "Favorite", str_replace("_", "", ucfirst($change_name)));
|
||||
if(!is_null($change_value) && $change_value !== $user->$get_name()) {
|
||||
$user->$set_name(ovk_proc_strtr($change_value, 1000));
|
||||
$changes += 1;
|
||||
}
|
||||
}
|
||||
|
||||
if($changes > 0) {
|
||||
$user->save();
|
||||
}
|
||||
|
||||
return (object) [
|
||||
"changed" => (int)($changes > 0),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,14 +12,8 @@ final class Users extends VKAPIRequestHandler
|
|||
if($authuser == NULL) $authuser = $this->getUser();
|
||||
|
||||
$users = new UsersRepo;
|
||||
if($user_ids == "0") {
|
||||
if(!$authuser) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if($user_ids == "0")
|
||||
$user_ids = (string) $authuser->getId();
|
||||
}
|
||||
|
||||
|
||||
$usrs = explode(',', $user_ids);
|
||||
$response = array();
|
||||
|
@ -204,13 +198,6 @@ final class Users extends VKAPIRequestHandler
|
|||
|
||||
$response[$i]->quotes = $usr->getFavoriteQuote();
|
||||
break;
|
||||
case "games":
|
||||
if(!$canView) {
|
||||
break;
|
||||
}
|
||||
|
||||
$response[$i]->games = $usr->getFavoriteGames();
|
||||
break;
|
||||
case "email":
|
||||
if(!$canView) {
|
||||
break;
|
||||
|
@ -293,17 +280,6 @@ final class Users extends VKAPIRequestHandler
|
|||
|
||||
$response[$i]->blacklisted = (int)$this->getUser()->isBlacklistedBy($usr);
|
||||
break;
|
||||
case "custom_fields":
|
||||
if(sizeof($usrs) > 1)
|
||||
break;
|
||||
|
||||
$c_fields = \openvk\Web\Models\Entities\UserInfoEntities\AdditionalField::getByOwner($usr->getId());
|
||||
$append_array = [];
|
||||
foreach($c_fields as $c_field)
|
||||
$append_array[] = $c_field->toVkApiStruct();
|
||||
|
||||
$response[$i]->custom_fields = $append_array;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -228,11 +228,6 @@ class User extends RowModel
|
|||
return $this->getRecord()->about;
|
||||
}
|
||||
|
||||
function getAbout(): ?string
|
||||
{
|
||||
return $this->getRecord()->about;
|
||||
}
|
||||
|
||||
function getStatus(): ?string
|
||||
{
|
||||
return $this->getRecord()->status;
|
||||
|
@ -420,11 +415,6 @@ class User extends RowModel
|
|||
return $this->getRecord()->fav_quote;
|
||||
}
|
||||
|
||||
function getFavoriteGames(): ?string
|
||||
{
|
||||
return $this->getRecord()->fav_games;
|
||||
}
|
||||
|
||||
function getCity(): ?string
|
||||
{
|
||||
return $this->getRecord()->city;
|
||||
|
@ -435,30 +425,6 @@ class User extends RowModel
|
|||
return $this->getRecord()->address;
|
||||
}
|
||||
|
||||
function getAdditionalFields(bool $split = false): array
|
||||
{
|
||||
$all = \openvk\Web\Models\Entities\UserInfoEntities\AdditionalField::getByOwner($this->getId());
|
||||
$result = [
|
||||
"interests" => [],
|
||||
"contacts" => [],
|
||||
];
|
||||
|
||||
if($split) {
|
||||
foreach($all as $field) {
|
||||
if($field->getPlace() == "contact")
|
||||
$result["contacts"][] = $field;
|
||||
else if($field->getPlace() == "interest")
|
||||
$result["interests"][] = $field;
|
||||
}
|
||||
} else {
|
||||
$result = [];
|
||||
foreach($all as $field)
|
||||
$result[] = $field;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function getNotificationOffset(): int
|
||||
{
|
||||
return $this->getRecord()->notification_offset;
|
||||
|
@ -1466,9 +1432,6 @@ class User extends RowModel
|
|||
|
||||
$res->blacklisted = (int)$user->isBlacklistedBy($this);
|
||||
break;
|
||||
case "games":
|
||||
$res->games = $this->getFavoriteGames();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,95 +0,0 @@
|
|||
<?php declare(strict_types=1);
|
||||
namespace openvk\Web\Models\Entities\UserInfoEntities;
|
||||
use openvk\Web\Models\RowModel;
|
||||
use openvk\Web\Models\Repositories\Users;
|
||||
use Chandler\Database\DatabaseConnection;
|
||||
|
||||
class AdditionalField extends RowModel
|
||||
{
|
||||
protected $tableName = "additional_fields";
|
||||
|
||||
const PLACE_CONTACTS = 0;
|
||||
const PLACE_INTERESTS = 1;
|
||||
|
||||
function getOwner(): int
|
||||
{
|
||||
return (int) $this->getRecord()->owner;
|
||||
}
|
||||
|
||||
function getName(bool $tr = true): string
|
||||
{
|
||||
$orig_name = $this->getRecord()->name;
|
||||
$name = $orig_name;
|
||||
if($tr && $name[0] === "_")
|
||||
$name = tr("custom_field_" . substr($name, 1));
|
||||
|
||||
if(str_contains($name, "custom_field"))
|
||||
return $orig_name;
|
||||
|
||||
return $name;
|
||||
}
|
||||
|
||||
function getContent(): string
|
||||
{
|
||||
return $this->getRecord()->text;
|
||||
}
|
||||
|
||||
function getPlace(): string
|
||||
{
|
||||
switch($this->getRecord()->place) {
|
||||
case AdditionalField::PLACE_CONTACTS:
|
||||
return "contact";
|
||||
case AdditionalField::PLACE_INTERESTS:
|
||||
return "interest";
|
||||
}
|
||||
|
||||
return "contact";
|
||||
}
|
||||
|
||||
function isContact(): bool
|
||||
{
|
||||
return $this->getRecord()->place == AdditionalField::PLACE_CONTACTS;
|
||||
}
|
||||
|
||||
function toVkApiStruct(): object
|
||||
{
|
||||
return (object) [
|
||||
"type" => $this->getRecord()->place,
|
||||
"name" => $this->getName(),
|
||||
"text" => $this->getContent()
|
||||
];
|
||||
}
|
||||
|
||||
static function getById(int $id)
|
||||
{
|
||||
$ctx = DatabaseConnection::i()->getContext();
|
||||
$entry = $ctx->table("additional_fields")->where("id", $id)->fetch();
|
||||
|
||||
if(!$entry)
|
||||
return NULL;
|
||||
|
||||
return new AdditionalField($entry);
|
||||
}
|
||||
|
||||
static function getByOwner(int $owner): \Traversable
|
||||
{
|
||||
$ctx = DatabaseConnection::i()->getContext();
|
||||
$entries = $ctx->table("additional_fields")->where("owner", $owner);
|
||||
|
||||
foreach($entries as $entry) {
|
||||
yield new AdditionalField($entry);
|
||||
}
|
||||
}
|
||||
|
||||
static function getCountByOwner(int $owner): \Traversable
|
||||
{
|
||||
return DatabaseConnection::i()->getContext()->table("additional_fields")->where("owner", $owner)->count();
|
||||
}
|
||||
|
||||
static function resetByOwner(int $owner): bool
|
||||
{
|
||||
DatabaseConnection::i()->getContext()->table("additional_fields")->where("owner", $owner)->delete();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -7,7 +7,7 @@ use Chandler\Security\Authenticator;
|
|||
use Latte\Engine as TemplatingEngine;
|
||||
use openvk\Web\Models\Entities\IP;
|
||||
use openvk\Web\Themes\Themepacks;
|
||||
use openvk\Web\Models\Repositories\{IPs, Users, APITokens, Tickets, Reports, CurrentUser, Posts};
|
||||
use openvk\Web\Models\Repositories\{IPs, Users, APITokens, Tickets, Reports, CurrentUser};
|
||||
use WhichBrowser;
|
||||
|
||||
abstract class OpenVKPresenter extends SimplePresenter
|
||||
|
@ -207,17 +207,6 @@ abstract class OpenVKPresenter extends SimplePresenter
|
|||
$userValidated = 0;
|
||||
$cacheTime = OPENVK_ROOT_CONF["openvk"]["preferences"]["nginxCacheTime"] ?? 0;
|
||||
|
||||
if(OPENVK_ROOT_CONF['openvk']['preferences']['news']['show']) {
|
||||
$post = (new Posts)->getPostsFromUsersWall(-OPENVK_ROOT_CONF['openvk']['preferences']['news']['groupId'], 1, 1);
|
||||
$post = iterator_to_array($post)[0];
|
||||
|
||||
$text = wordwrap($post->getText(false), 150, '\n', false);
|
||||
$text = explode('\n', $text)[0];
|
||||
|
||||
$this->template->newsText = $text;
|
||||
$this->template->newsLink = '/wall' . $post->getPrettyId();
|
||||
}
|
||||
|
||||
if(!is_null($user)) {
|
||||
$this->user = (object) [];
|
||||
$this->user->raw = $user;
|
||||
|
@ -374,4 +363,4 @@ abstract class OpenVKPresenter extends SimplePresenter
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,6 @@ final class UserPresenter extends OpenVKPresenter
|
|||
$this->template->audios = (new Audios)->getRandomThreeAudiosByEntityId($user->getId());
|
||||
$this->template->audiosCount = (new Audios)->getUserCollectionSize($user);
|
||||
$this->template->audioStatus = $user->getCurrentAudioStatus();
|
||||
$this->template->additionalFields = $user->getAdditionalFields(true);
|
||||
|
||||
$this->template->user = $user;
|
||||
|
||||
|
@ -252,14 +251,13 @@ final class UserPresenter extends OpenVKPresenter
|
|||
else
|
||||
$user->setWebsite((!parse_url($website, PHP_URL_SCHEME) ? "https://" : "") . $website);
|
||||
} elseif($_GET['act'] === "interests") {
|
||||
$user->setInterests(empty($this->postParam("interests")) ? NULL : ovk_proc_strtr($this->postParam("interests"), 1000));
|
||||
$user->setFav_Music(empty($this->postParam("fav_music")) ? NULL : ovk_proc_strtr($this->postParam("fav_music"), 1000));
|
||||
$user->setFav_Films(empty($this->postParam("fav_films")) ? NULL : ovk_proc_strtr($this->postParam("fav_films"), 1000));
|
||||
$user->setFav_Shows(empty($this->postParam("fav_shows")) ? NULL : ovk_proc_strtr($this->postParam("fav_shows"), 1000));
|
||||
$user->setFav_Books(empty($this->postParam("fav_books")) ? NULL : ovk_proc_strtr($this->postParam("fav_books"), 1000));
|
||||
$user->setFav_Quote(empty($this->postParam("fav_quote")) ? NULL : ovk_proc_strtr($this->postParam("fav_quote"), 1000));
|
||||
$user->setFav_Games(empty($this->postParam("fav_games")) ? NULL : ovk_proc_strtr($this->postParam("fav_games"), 1000));
|
||||
$user->setAbout(empty($this->postParam("about")) ? NULL : ovk_proc_strtr($this->postParam("about"), 1000));
|
||||
$user->setInterests(empty($this->postParam("interests")) ? NULL : ovk_proc_strtr($this->postParam("interests"), 300));
|
||||
$user->setFav_Music(empty($this->postParam("fav_music")) ? NULL : ovk_proc_strtr($this->postParam("fav_music"), 300));
|
||||
$user->setFav_Films(empty($this->postParam("fav_films")) ? NULL : ovk_proc_strtr($this->postParam("fav_films"), 300));
|
||||
$user->setFav_Shows(empty($this->postParam("fav_shows")) ? NULL : ovk_proc_strtr($this->postParam("fav_shows"), 300));
|
||||
$user->setFav_Books(empty($this->postParam("fav_books")) ? NULL : ovk_proc_strtr($this->postParam("fav_books"), 300));
|
||||
$user->setFav_Quote(empty($this->postParam("fav_quote")) ? NULL : ovk_proc_strtr($this->postParam("fav_quote"), 300));
|
||||
$user->setAbout(empty($this->postParam("about")) ? NULL : ovk_proc_strtr($this->postParam("about"), 300));
|
||||
} elseif($_GET["act"] === "backdrop") {
|
||||
if($this->postParam("subact") === "remove") {
|
||||
$user->unsetBackDropPictures();
|
||||
|
@ -297,46 +295,10 @@ final class UserPresenter extends OpenVKPresenter
|
|||
$this->returnJson([
|
||||
"success" => true
|
||||
]);
|
||||
} elseif($_GET['act'] === "additional") {
|
||||
$maxAddFields = ovkGetQuirk("users.max-fields");
|
||||
$items = [];
|
||||
|
||||
for($i = 0; $i < $maxAddFields; $i++) {
|
||||
if(!$this->postParam("name_".$i)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$items[] = [
|
||||
"name" => $this->postParam("name_".$i),
|
||||
"text" => $this->postParam("text_".$i),
|
||||
"place" => $this->postParam("place_".$i),
|
||||
];
|
||||
}
|
||||
|
||||
\openvk\Web\Models\Entities\UserInfoEntities\AdditionalField::resetByOwner($this->user->id);
|
||||
foreach($items as $new_field_info) {
|
||||
$name = ovk_proc_strtr($new_field_info["name"], 50);
|
||||
$text = ovk_proc_strtr($new_field_info["text"], 1000);
|
||||
if(ctype_space($name) || ctype_space($text)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$place = (int)($new_field_info["place"]);
|
||||
|
||||
$new_field = new \openvk\Web\Models\Entities\UserInfoEntities\AdditionalField;
|
||||
$new_field->setOwner($this->user->id);
|
||||
$new_field->setName($name);
|
||||
$new_field->setText($text);
|
||||
$new_field->setPlace([0, 1][$place] ? $place : 0);
|
||||
|
||||
$new_field->save();
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
if($_GET['act'] !== "additional") {
|
||||
$user->save();
|
||||
}
|
||||
$user->save();
|
||||
} catch(\PDOException $ex) {
|
||||
if($ex->getCode() == 23000)
|
||||
$this->flashFail("err", tr("error"), tr("error_shorturl"));
|
||||
|
@ -348,7 +310,7 @@ final class UserPresenter extends OpenVKPresenter
|
|||
}
|
||||
|
||||
$this->template->mode = in_array($this->queryParam("act"), [
|
||||
"main", "contacts", "interests", "avatar", "backdrop", "additional"
|
||||
"main", "contacts", "interests", "avatar", "backdrop"
|
||||
]) ? $this->queryParam("act")
|
||||
: "main";
|
||||
|
||||
|
|
|
@ -240,12 +240,12 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
<div id="news" n:if="OPENVK_ROOT_CONF['openvk']['preferences']['news']['show']">
|
||||
<div id="news" n:if="OPENVK_ROOT_CONF['openvk']['preferences']['news']['enable']">
|
||||
<b>{_news} </b>
|
||||
<hr size="1">
|
||||
<text>{$newsText}...</text>
|
||||
<br><br>
|
||||
<a href="{$newsLink}">{_news_more}</a>
|
||||
<hr size="1">
|
||||
<text>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['news']['title'];}</text>
|
||||
<br><br>
|
||||
<a href="{php echo OPENVK_ROOT_CONF['openvk']['preferences']['news']['link'];}">Подробнее »</a>
|
||||
</div>
|
||||
|
||||
<div n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce'] && $thisUser->getCoins() != 0" id="votesBalance">
|
||||
|
@ -460,7 +460,6 @@
|
|||
"max_filesize_mb": 5,
|
||||
"current_id": {$thisUser ? $thisUser->getId() : 0},
|
||||
"disable_ajax": {$disable_ajax ? $disable_ajax : 0},
|
||||
"max_add_fields": {ovkGetQuirk("users.max-fields")},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
{var $isMain = $mode === 'main'}
|
||||
{var $isContacts = $mode === 'contacts'}
|
||||
{var $isInterests = $mode === 'interests'}
|
||||
{var $isAdditional = $mode === 'additional'}
|
||||
{var $isAvatar = $mode === 'avatar'}
|
||||
{var $isBackDrop = $mode === 'backdrop'}
|
||||
|
||||
|
@ -32,9 +31,6 @@
|
|||
<div n:attr="id => ($isInterests ? 'activetabs' : 'ki')" class="tab">
|
||||
<a n:attr="id => ($isInterests ? 'act_tab_a' : 'ki')" href="/edit?act=interests">{_interests}</a>
|
||||
</div>
|
||||
<div n:attr="id => ($isAdditional ? 'activetabs' : 'ki')" class="tab">
|
||||
<a n:attr="id => ($isAdditional ? 'act_tab_a' : 'ki')" href="/edit?act=additional">{_additional}</a>
|
||||
</div>
|
||||
<div n:attr="id => ($isAvatar ? 'activetabs' : 'ki')" class="tab">
|
||||
<a n:attr="id => ($isAvatar ? 'act_tab_a' : 'ki')" href="/edit?act=avatar">{_avatar}</a>
|
||||
</div>
|
||||
|
@ -298,14 +294,6 @@
|
|||
<textarea type="text" name="fav_quote">{$user->getFavoriteQuote()}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120" valign="top">
|
||||
<span class="nobold">{_favorite_games}: </span>
|
||||
</td>
|
||||
<td>
|
||||
<textarea type="text" name="fav_games">{$user->getFavoriteGames()}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120" valign="top">
|
||||
<span class="nobold">{_information_about}: </span>
|
||||
|
@ -387,58 +375,7 @@
|
|||
</center>
|
||||
</div>
|
||||
</form>
|
||||
{elseif $isAdditional}
|
||||
{var $f_iterator = 0}
|
||||
<h4>{_additional_information}</h4>
|
||||
<p>{tr("additional_fields_description", ovkGetQuirk("users.max-fields"))}</p>
|
||||
<form id="additional_fields_form" method="POST" enctype="multipart/form-data">
|
||||
<div class="edit_field_container_inserts">
|
||||
<table data-iterator="{$f_iterator}" class="outline_table edit_field_container_item" width="80%" border="0" align="center" n:foreach="$thisUser->getAdditionalFields() as $field">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="150">
|
||||
{_additional_field_name}
|
||||
</td>
|
||||
<td>
|
||||
<input name="name_{$f_iterator}" maxlength="50" type="text" value="{$field->getName(false)}">
|
||||
</td>
|
||||
<td>
|
||||
<div id="small_remove_button"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
{_additional_field_text}
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="text_{$f_iterator}" maxlength="1000">{$field->getContent()}</textarea>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{_additional_field_place}
|
||||
</td>
|
||||
<td>
|
||||
<select name="place_{$f_iterator}">
|
||||
<option value="0" n:attr="selected => $field->isContact()">{_additional_field_place_contacts}</option>
|
||||
<option value="1" n:attr="selected => !$field->isContact()">{_additional_field_place_interests}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
{php $f_iterator += 1}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="flex_column_center_gap5px">
|
||||
<input type="button" id="additional_field_append" value="{_add}" class="button" />
|
||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||
<input type="submit" value="{_save}" class="button" />
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -506,12 +506,6 @@
|
|||
<td class="label"><span class="nobold">{_address}:</span></td>
|
||||
<td class="data">{$user->getPhysicalAddress()}</td>
|
||||
</tr>
|
||||
{if $additionalFields}
|
||||
<tr n:foreach="$additionalFields['contacts'] as $field">
|
||||
<td class="label"><span class="nobold">{$field->getName()}:</span></td>
|
||||
<td class="data">{$field->getContent()}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
{/capture}
|
||||
|
@ -573,16 +567,6 @@
|
|||
<td class="label"><span class="nobold">{_favorite_quotes}: </span></td>
|
||||
<td class="data">{$user->getFavoriteQuote()}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getFavoriteGames())">
|
||||
<td class="label"><span class="nobold">{_favorite_games}: </span></td>
|
||||
<td class="data">{$user->getFavoriteGames()}</td>
|
||||
</tr>
|
||||
{if $additionalFields}
|
||||
<tr n:foreach="$additionalFields['interests'] as $field">
|
||||
<td class="label"><span class="nobold">{$field->getName()}:</span></td>
|
||||
<td class="data">{$field->getContent()}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr n:if="!is_null($user->getDescription())">
|
||||
<td class="label"><span class="nobold">{_information_about}: </span></td>
|
||||
<td class="data">{$user->getDescription()}</td>
|
||||
|
|
|
@ -506,28 +506,6 @@ table {
|
|||
text-align: left;
|
||||
}
|
||||
|
||||
.outline_table td {
|
||||
text-align: right;
|
||||
font-weight: normal;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.outline_table {
|
||||
border-bottom: 1px solid #cbcbcb;
|
||||
padding: 5px 0px;
|
||||
}
|
||||
|
||||
.outline_table:last-of-type {
|
||||
border-bottom: unset;
|
||||
}
|
||||
|
||||
.flex_column_center_gap5px {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.information {
|
||||
padding: 9px;
|
||||
background-color: #c3e4ff;
|
||||
|
@ -2345,7 +2323,8 @@ li {
|
|||
user-select: none;
|
||||
}
|
||||
|
||||
#news b {
|
||||
#news b
|
||||
{
|
||||
color: #8A0000;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
|
|
@ -924,8 +924,7 @@ u(document).on("click", "#editPost", async (e) => {
|
|||
const target = u(e.target)
|
||||
const post = target.closest("table")
|
||||
const content = post.find(".post-content")
|
||||
const edit_place_l = post.find('.post-edit')
|
||||
const edit_place = u(edit_place_l.first())
|
||||
const edit_place = post.find('.post-edit')
|
||||
const id = post.attr('data-id').split('_')
|
||||
|
||||
let type = 'post'
|
||||
|
@ -2887,61 +2886,3 @@ u(document).on('click', '#_bl_toggler', async (e) => {
|
|||
}
|
||||
}
|
||||
})
|
||||
|
||||
/* Additional fields */
|
||||
|
||||
u(document).on("click", "#additional_field_append", (e) => {
|
||||
let iterator = 0
|
||||
if(u(`table[data-iterator]`).last()) {
|
||||
iterator = Number(u(`table[data-iterator]`).last().dataset.iterator) + 1
|
||||
}
|
||||
|
||||
if(iterator >= window.openvk.max_add_fields) {
|
||||
return
|
||||
}
|
||||
|
||||
u('.edit_field_container_inserts').append(`
|
||||
<table data-iterator="${iterator}" class="outline_table edit_field_container_item" width="80%" border="0" align="center">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="150">${tr("additional_field_name")}</td>
|
||||
<td><input name="name_${iterator}" type="text" maxlength="50"></td>
|
||||
<td><div id="small_remove_button"></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">${tr("additional_field_text")}</td>
|
||||
<td><textarea name="text_${iterator}" maxlength="1000"></textarea></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${tr("additional_field_place")}</td>
|
||||
<td>
|
||||
<select name="place_${iterator}">
|
||||
<option value="0">${tr("additional_field_place_contacts")}</option>
|
||||
<option value="1" selected>${tr("additional_field_place_interests")}</option>
|
||||
</select>
|
||||
</td><td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
`)
|
||||
u(`.edit_field_container_item[data-iterator='${iterator}'] input[type="text"]`).nodes[0].focus()
|
||||
})
|
||||
|
||||
u(document).on("click", ".edit_field_container_item #small_remove_button", (e) => {
|
||||
let iterator = 0
|
||||
u(e.target).closest('table').remove()
|
||||
u(".edit_field_container_inserts .edit_field_container_item").nodes.forEach(node => {
|
||||
node.setAttribute('data-iterator', iterator)
|
||||
iterator += 1
|
||||
})
|
||||
})
|
||||
|
||||
u(document).on("submit", "#additional_fields_form", (e) => {
|
||||
u(`.edit_field_container_item input, .edit_field_container_item textarea`).nodes.forEach(node => {
|
||||
if(node.value == "" || node.value == " ") {
|
||||
e.preventDefault()
|
||||
node.focus()
|
||||
return
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
ALTER TABLE `profiles` ADD `fav_games` MEDIUMTEXT NULL DEFAULT NULL AFTER `fav_quote`;
|
||||
CREATE TABLE `additional_fields` (
|
||||
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
|
||||
`owner` BIGINT(20) UNSIGNED NOT NULL,
|
||||
`name` VARCHAR(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`text` MEDIUMTEXT COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`place` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE = InnoDB;
|
||||
ALTER TABLE `additional_fields` ADD INDEX(`owner`);
|
|
@ -147,27 +147,11 @@
|
|||
"personal_information" = "Personal information";
|
||||
|
||||
"interests" = "Interests";
|
||||
"additional" = "Additional";
|
||||
"additional_fields_description" = "There you can add additional info about you, like another profiles links or your interests. Up to a maximum of $1 such fields can be added.";
|
||||
"additional_field_name" = "Name";
|
||||
"additional_field_text" = "Text";
|
||||
"additional_field_place" = "Place";
|
||||
"additional_field_place_contacts" = "In \"contacts\"";
|
||||
"additional_field_place_interests" = "In \"interests\"";
|
||||
|
||||
"favorite_music" = "Favorite music";
|
||||
"favorite_films" = "Favorite flims";
|
||||
"favorite_shows" = "Favorite TV-shows";
|
||||
"favorite_books" = "Favorite books";
|
||||
"favorite_quotes" = "Favorite quotes";
|
||||
"favorite_games" = "Favorite games";
|
||||
"custom_field_favorite_performers" = "Favourite performers";
|
||||
"custom_field_favorite_content_makers" = "Favourite content-makers";
|
||||
"custom_field_favorite_anime" = "Favourite anime";
|
||||
"custom_field_favorite_manga" = "Favourite manga";
|
||||
"custom_field_favorite_vtubers" = "Favourite vtubers";
|
||||
"custom_field_favorite_albums" = "Favourite music albums";
|
||||
|
||||
"information_about" = "About";
|
||||
|
||||
"updated_at" = "Updated at $1";
|
||||
|
@ -1088,8 +1072,6 @@
|
|||
"time_today" = "today";
|
||||
"time_yesterday" = "yesterday";
|
||||
|
||||
"news" = "News";
|
||||
"news_more" = "More »";
|
||||
"points" = "Votes";
|
||||
"points_count" = "votes";
|
||||
"on_your_account" = "on your account";
|
||||
|
|
|
@ -131,27 +131,11 @@
|
|||
"address" = "Адрес";
|
||||
"personal_information" = "Личная информация";
|
||||
"interests" = "Интересы";
|
||||
"additional" = "Дополнительно";
|
||||
"additional_fields_description" = "Здесь вы можете добавить дополнительную информацию о себе: ссылки на ваши социальные сети, либо же ваши интересы. Максимум можно добавить до $1 таких полей.";
|
||||
"additional_field_name" = "Название";
|
||||
"additional_field_text" = "Текст";
|
||||
"additional_field_place" = "Отображение";
|
||||
"additional_field_place_contacts" = "В \"контактах\"";
|
||||
"additional_field_place_interests" = "В \"интересах\"";
|
||||
|
||||
"favorite_music" = "Любимая музыка";
|
||||
"favorite_films" = "Любимые фильмы";
|
||||
"favorite_shows" = "Любимые ТВ-шоу";
|
||||
"favorite_books" = "Любимые книги";
|
||||
"favorite_quotes" = "Любимые цитаты";
|
||||
"favorite_games" = "Любимые игры";
|
||||
"custom_field_favorite_performers" = "Любимые исполнители";
|
||||
"custom_field_favorite_content_makers" = "Любимые контент-мейкеры";
|
||||
"custom_field_favorite_anime" = "Любимые аниме";
|
||||
"custom_field_favorite_manga" = "Любимая манга";
|
||||
"custom_field_favorite_vtubers" = "Любимые витуберы";
|
||||
"custom_field_favorite_albums" = "Любимые альбомы";
|
||||
|
||||
"information_about" = "О себе";
|
||||
"updated_at" = "Обновлено $1";
|
||||
"user_banned" = "К сожалению, нам пришлось заблокировать страницу пользователя <b>$1</b>.";
|
||||
|
@ -1039,9 +1023,6 @@
|
|||
"time_minutes_ago" = "$1 минут назад";
|
||||
"time_today" = "сегодня";
|
||||
"time_yesterday" = "вчера";
|
||||
|
||||
"news" = "Новости";
|
||||
"news_more" = "Подробнее »";
|
||||
"points" = "Голоса";
|
||||
"points_count" = "голосов";
|
||||
"on_your_account" = "на вашем счету";
|
||||
|
|
|
@ -115,9 +115,6 @@ openvk:
|
|||
defaultMobileTheme: ""
|
||||
defaultFeaturePhoneTheme: ""
|
||||
logs: true
|
||||
news:
|
||||
show: false
|
||||
groupId: 1
|
||||
|
||||
telemetry:
|
||||
plausible:
|
||||
|
|
|
@ -45,5 +45,4 @@ comments.allow-graffiti: 0
|
|||
# + Set this option to any non-negative number to be this limit
|
||||
wall.repost-liking-recursion-limit: 10
|
||||
|
||||
polls.max-opts: 10
|
||||
users.max-fields: 7
|
||||
polls.max-opts: 10
|
Loading…
Reference in a new issue