mirror of
https://github.com/openvk/openvk
synced 2024-12-23 17:12:01 +03:00
425 lines
24 KiB
XML
425 lines
24 KiB
XML
{extends "../@layout.xml"}
|
||
{block title}{_"my_settings"}{/block}
|
||
|
||
{block header}
|
||
{_"my_settings"}
|
||
{/block}
|
||
|
||
{block content}
|
||
|
||
{var isMain = $mode === 'main'}
|
||
{var isPrivacy = $mode === 'privacy'}
|
||
{var isFinance = $mode === 'finance'}
|
||
{var isInterface = $mode === 'interface'}
|
||
|
||
<div class="tabs">
|
||
<div n:attr="id => ($isMain ? 'activetabs' : 'ki')" class="tab">
|
||
<a n:attr="id => ($isMain ? 'act_tab_a' : 'ki')" href="/settings">{_"main"}</a>
|
||
</div>
|
||
<div n:attr="id => ($isPrivacy ? 'activetabs' : 'ki')" class="tab">
|
||
<a n:attr="id => ($isPrivacy ? 'act_tab_a' : 'ki')" href="/settings?act=privacy">{_"privacy"}</a>
|
||
</div>
|
||
<div n:attr="id => ($isFinance ? 'activetabs' : 'ki')" class="tab">
|
||
<a n:attr="id => ($isFinance ? 'act_tab_a' : 'ki')" href="/settings?act=finance">Голоса</a>
|
||
</div>
|
||
<div n:attr="id => ($isInterface ? 'activetabs' : 'ki')" class="tab">
|
||
<a n:attr="id => ($isInterface ? 'act_tab_a' : 'ki')" href="/settings?act=interface">{_"interface"}</a>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="container_gray">
|
||
{if $isMain}
|
||
|
||
<form action="/settings?act=main" method="POST" enctype="multipart/form-data">
|
||
<h4>{_"change_password"}</h4>
|
||
<table cellspacing="7" cellpadding="0" width="60%" border="0" align="center">
|
||
<tbody>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_"old_password"}</span>
|
||
</td>
|
||
<td>
|
||
<input type="password" name="old_pass" style="width: 100%;" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_"new_password"}</span>
|
||
</td>
|
||
<td>
|
||
<input type="password" name="new_pass" style="width: 100%;" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_"repeat_password"}</span>
|
||
</td>
|
||
<td>
|
||
<input type="password" name="repeat_pass" style="width: 100%;" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
|
||
</td>
|
||
<td>
|
||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||
<input type="submit" value="{_"change_password"}" class="button" />
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<br/>
|
||
<h4>{_your_email_address}</h4>
|
||
<table cellspacing="7" cellpadding="0" width="60%" border="0" align="center">
|
||
<tbody>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_current_email_address}</span>
|
||
</td>
|
||
<td>
|
||
{$user->getEmail()}
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<br/>
|
||
<h4>{_your_page_address}</h4>
|
||
<table cellspacing="7" cellpadding="0" width="60%" border="0" align="center">
|
||
<tbody>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_page_id}</span>
|
||
</td>
|
||
<td>
|
||
{$user->getId()}
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_page_address}</span>
|
||
</td>
|
||
<td>
|
||
<input type="text" name="sc" value="{$user->getShortCode()}" style="width: 100%;" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
|
||
</td>
|
||
<td>
|
||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||
<input type="submit" value="{_'save'}" class="button" />
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</form>
|
||
|
||
<div class="settings_delete">
|
||
{_you_can_also} <a href="#" onclick="alert('Не реализовали ждите')">{_delete_your_page}</a>.
|
||
</div>
|
||
|
||
{elseif $isPrivacy}
|
||
|
||
<form action="/settings?act=privacy" method="POST" enctype="multipart/form-data">
|
||
<table cellspacing="7" cellpadding="0" width="60%" border="0" align="center">
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_privacy_setting_access_page}</span>
|
||
</td>
|
||
<td>
|
||
<select name="page.read" style="width: 164px;">
|
||
<option value="3" {if $user->getPrivacySetting('page.read') == 3}selected{/if}>{_privacy_value_anybody_dative}</option>
|
||
<option value="2" {if $user->getPrivacySetting('page.read') == 2}selected{/if}>{_privacy_value_users}</option>
|
||
<option value="1" {if $user->getPrivacySetting('page.read') == 1}selected{/if}>{_privacy_value_friends_dative}</option>
|
||
<option value="0" {if $user->getPrivacySetting('page.read') == 0}selected{/if}>{_privacy_value_only_me_and_super_capite_dative}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_privacy_setting_read_info}</span>
|
||
</td>
|
||
<td>
|
||
<select name="page.info.read" style="width: 164px;">
|
||
<option value="3" {if $user->getPrivacySetting('page.info.read') == 3}selected{/if}>{_privacy_value_anybody_dative}</option>
|
||
<option value="2" {if $user->getPrivacySetting('page.info.read') == 2}selected{/if}>{_privacy_value_users}</option>
|
||
<option value="1" {if $user->getPrivacySetting('page.info.read') == 1}selected{/if}>{_privacy_value_friends_dative}</option>
|
||
<option value="0" {if $user->getPrivacySetting('page.info.read') == 0}selected{/if}>{_privacy_value_only_me_and_super_capite_dative}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_privacy_setting_see_groups}</span>
|
||
</td>
|
||
<td>
|
||
<select name="groups.read" style="width: 164px;">
|
||
<option value="3" {if $user->getPrivacySetting('groups.read') == 3}selected{/if}>{_privacy_value_anybody_dative}</option>
|
||
<option value="2" {if $user->getPrivacySetting('groups.read') == 2}selected{/if}>{_privacy_value_users}</option>
|
||
<option value="1" {if $user->getPrivacySetting('groups.read') == 1}selected{/if}>{_privacy_value_friends_dative}</option>
|
||
<option value="0" {if $user->getPrivacySetting('groups.read') == 0}selected{/if}>{_privacy_value_only_me_and_super_capite_dative}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_privacy_setting_see_photos}</span>
|
||
</td>
|
||
<td>
|
||
<select name="photos.read" style="width: 164px;">
|
||
<option value="3" {if $user->getPrivacySetting('photos.read') == 3}selected{/if}>{_privacy_value_anybody_dative}</option>
|
||
<option value="2" {if $user->getPrivacySetting('photos.read') == 2}selected{/if}>{_privacy_value_users}</option>
|
||
<option value="1" {if $user->getPrivacySetting('photos.read') == 1}selected{/if}>{_privacy_value_friends_dative}</option>
|
||
<option value="0" {if $user->getPrivacySetting('photos.read') == 0}selected{/if}>{_privacy_value_only_me_and_super_capite_dative}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_privacy_setting_see_videos}</span>
|
||
</td>
|
||
<td>
|
||
<select name="videos.read" style="width: 164px;">
|
||
<option value="3" {if $user->getPrivacySetting('videos.read') == 3}selected{/if}>{_privacy_value_anybody_dative}</option>
|
||
<option value="2" {if $user->getPrivacySetting('videos.read') == 2}selected{/if}>{_privacy_value_users}</option>
|
||
<option value="1" {if $user->getPrivacySetting('videos.read') == 1}selected{/if}>{_privacy_value_friends_dative}</option>
|
||
<option value="0" {if $user->getPrivacySetting('videos.read') == 0}selected{/if}>{_privacy_value_only_me_and_super_capite_dative}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_privacy_setting_see_notes}</span>
|
||
</td>
|
||
<td>
|
||
<select name="notes.read" style="width: 164px;">
|
||
<option value="3" {if $user->getPrivacySetting('notes.read') == 3}selected{/if}>{_privacy_value_anybody_dative}</option>
|
||
<option value="2" {if $user->getPrivacySetting('notes.read') == 2}selected{/if}>{_privacy_value_users}</option>
|
||
<option value="1" {if $user->getPrivacySetting('notes.read') == 1}selected{/if}>{_privacy_value_friends_dative}</option>
|
||
<option value="0" {if $user->getPrivacySetting('notes.read') == 0}selected{/if}>{_privacy_value_only_me_and_super_capite_dative}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_privacy_setting_see_friends}</span>
|
||
</td>
|
||
<td>
|
||
<select name="friends.read" style="width: 164px;">
|
||
<option value="3" {if $user->getPrivacySetting('friends.read') == 3}selected{/if}>{_privacy_value_anybody_dative}</option>
|
||
<option value="2" {if $user->getPrivacySetting('friends.read') == 2}selected{/if}>{_privacy_value_users}</option>
|
||
<option value="1" {if $user->getPrivacySetting('friends.read') == 1}selected{/if}>{_privacy_value_friends_dative}</option>
|
||
<option value="0" {if $user->getPrivacySetting('friends.read') == 0}selected{/if}>{_privacy_value_only_me_and_super_capite_dative}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_privacy_setting_add_to_friends}</span>
|
||
</td>
|
||
<td>
|
||
<select name="friends.add" style="width: 164px;">
|
||
<option value="3" {if $user->getPrivacySetting('friends.add') == 2}selected{/if}>{_privacy_value_anybody}</option>
|
||
<option value="0" {if $user->getPrivacySetting('friends.add') == 0}selected{/if}>{_privacy_value_super_capite}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_privacy_setting_write_wall}</span>
|
||
</td>
|
||
<td>
|
||
<select name="wall.write" style="width: 164px;">
|
||
<option value="2" {if $user->getPrivacySetting('wall.write') == 2}selected{/if}>{_privacy_value_anybody}</option>
|
||
<option value="1" {if $user->getPrivacySetting('wall.write') == 1}selected{/if}>{_privacy_value_friends}</option>
|
||
<option value="0" {if $user->getPrivacySetting('wall.write') == 0}selected{/if}>{_privacy_value_only_me_and_super_capite}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
|
||
</td>
|
||
<td>
|
||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||
<input type="submit" value="{_'save'}" class="button" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
|
||
{elseif $isFinance}
|
||
|
||
<div style="width: 75%; display: inline-block;">
|
||
<h4>Что такое PRIZM?</h4>
|
||
<p>
|
||
PRIZM (PZM) — полностью децентрализованная и саморегулируемая криптовалюта . Новая реализация концепции цифровой валюты, позволяющая любому пользователю легко и надежно хранить финансы или производить транзакции напрямую - аналогично передаче наличных денег из рук в руки. Проект создан с целью создания нового подхода к архитектуре справедливых финансовых отношений: перебалансировка и честное распределение средств между людьми всего мира, также решения актуальной проблемы – постепенного центрирования криптовалют.
|
||
|
||
Block chain PRIZM был запущен 17 февраля 2017-го года. При разработке проекта криптовалюты вместо бинарного хранилища применена СУБД H2Databas. Ядро системы – NXT-core , с преобразованным механизмом подтверждения транзакций, с линейной аддикцией депозитарных процентов (по псевдо-сложному механизму), направленной на реализацию P2P системы финансового взаиморасчёта. Общее количество (10 миллионов доступных монет), было распределено в блоке генезиса. Криптография Curve25519 используется для обеспечения баланса безопасности и требуемой вычислительной мощности наряду с более часто используемыми алгоритмами хеширования SHA256.
|
||
|
||
В системе присутствует комиссия за операцию, направленная на защиту P2P сети от хакерских DDoS -атак (отказ в обслуживании).
|
||
|
||
В концепции криптовалюты применён двухфакторный механизм генерации монет: форжинг и майнинг посредством текущего баланса аккаунта. Система безопасности предусматривает форжинг , построенный на современных и энергоэффективных ЭКО-технологиях криптовалют.
|
||
|
||
<img src="https://ru.bitcoinwiki.org/upload/ru/images/6/61/Prizm.png"> <img src="https://i.ytimg.com/vi/7eu5Y5E6j7Q/maxresdefault.jpg"> <img src="https://avatars.mds.yandex.net/get-zen_doc/1899275/pub_5d660dc6a660d700ad2c48a6_5d661073998ed600ad85d130/scale_1200"> <img src="https://im.kommersant.ru/ISSUES.PHOTO/REGIONS/SARATOV_ONLINE/2019/01/16/przm_m.jpg"> <img src="https://teletype.in/files/3b/3bc90cf8-2a30-40fc-9df0-d2d385477228.png">
|
||
</p>
|
||
|
||
<h4>Как купить голоса?</h4>
|
||
<p>
|
||
хз
|
||
</p>
|
||
</div>
|
||
<div style="width: 22%; float: right;">
|
||
<p style="margin: 0; font-size: medium; text-align: center;">
|
||
<b>
|
||
на вашем счету<br/>
|
||
<span style="font-size: 50px;">{$thisUser->getCoins()}</span><br/>
|
||
PRIZM
|
||
</b>
|
||
</p>
|
||
</div>
|
||
|
||
{elseif $isInterface}
|
||
|
||
<h4>{_ui_settings_interface}</h4>
|
||
<form action="/settings?act=interface" method="POST" enctype="multipart/form-data">
|
||
<table cellspacing="7" cellpadding="0" width="60%" border="0" align="center">
|
||
<tbody>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_"avatars_style"}</span>
|
||
</td>
|
||
<td>
|
||
<select name="style_avatar">
|
||
<option value="0" {if $user->getStyleAvatar() == 0}selected{/if}>{_"default"}</option>
|
||
<option value="1" {if $user->getStyleAvatar() == 1}selected{/if}>{_"cut"}</option>
|
||
<option value="2" {if $user->getStyleAvatar() == 2}selected{/if}>{_"round_avatars"}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_"style"}</span>
|
||
</td>
|
||
<td>
|
||
<select name="style">
|
||
<option value="ovk" {if $user->getStyle() == 'ovk'}selected{/if}>OpenVK ({_"default"})</option>
|
||
<option n:foreach="$themes as $id => $theme"
|
||
n:attr="selected => $user->getStyle() === $id"
|
||
value="{$id}">
|
||
{$theme}
|
||
</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top">
|
||
<span class="nobold">{_ui_settings_rating}</span>
|
||
</td>
|
||
<td>
|
||
<select name="rating">
|
||
<option value="1" {if !$user->prefersNotToSeeRating()}selected{/if}>{_ui_settings_rating_show}</option>
|
||
<option value="0" {if $user->prefersNotToSeeRating()}selected{/if}>{_ui_settings_rating_hide}</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
|
||
</td>
|
||
<td>
|
||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||
<input type="submit" value="{_'save'}" class="button" />
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</form>
|
||
|
||
<h4>{_ui_settings_sidebar}</h4>
|
||
<form action="/settings?act=lMenu" method="POST" enctype="multipart/form-data">
|
||
<table cellspacing="7" cellpadding="0" width="60%" border="0" align="center">
|
||
<tbody>
|
||
<tr>
|
||
<td width="120" valign="top" align="right">
|
||
<input
|
||
n:attr="checked => $user->getLeftMenuItemStatus('photos')"
|
||
type="checkbox"
|
||
name="menu_bildoj" />
|
||
</td>
|
||
<td>
|
||
<span class="nobold">{_my_photos}</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top" align="right">
|
||
<input
|
||
n:attr="checked => $user->getLeftMenuItemStatus('videos')"
|
||
type="checkbox"
|
||
name="menu_filmetoj" />
|
||
</td>
|
||
<td>
|
||
<span class="nobold">{_my_videos}</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top" align="right">
|
||
<input
|
||
n:attr="checked => $user->getLeftMenuItemStatus('messages')"
|
||
type="checkbox"
|
||
name="menu_mesagoj" />
|
||
</td>
|
||
<td>
|
||
<span class="nobold">{_my_messages}</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120" valign="top" align="right">
|
||
<input
|
||
n:attr="checked => $user->getLeftMenuItemStatus('notes')"
|
||
type="checkbox"
|
||
name="menu_notatoj" />
|
||
</td>
|
||
<td>
|
||
<span class="nobold">{_my_notes}</span>
|
||
</td>
|
||
</tr><tr>
|
||
<td width="120" valign="top" align="right">
|
||
<input
|
||
n:attr="checked => $user->getLeftMenuItemStatus('groups')"
|
||
type="checkbox"
|
||
name="menu_grupoj" />
|
||
</td>
|
||
<td>
|
||
<span class="nobold">{_my_groups}</span>
|
||
</td>
|
||
</tr><tr>
|
||
<td width="120" valign="top" align="right" align="right">
|
||
<input
|
||
n:attr="checked => $user->getLeftMenuItemStatus('news')"
|
||
type="checkbox"
|
||
name="menu_novajoj" />
|
||
</td>
|
||
<td>
|
||
<span class="nobold">{_my_feed}</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
|
||
</td>
|
||
<td>
|
||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||
<input type="submit" value="{_'save'}" class="button" />
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</form>
|
||
|
||
{/if}
|
||
</div>
|
||
|
||
{/block}
|