mirror of
https://github.com/openvk/openvk
synced 2025-01-07 08:19:43 +03:00
Compare commits
No commits in common. "95a62f56e09fc1909738a50f8d5cf3cd55059c9b" and "42132170634ce202cf5db02c5b611da40d4c1f90" have entirely different histories.
95a62f56e0
...
4213217063
7 changed files with 28 additions and 39 deletions
|
@ -207,9 +207,6 @@ final class AuthPresenter extends OpenVKPresenter
|
||||||
|
|
||||||
function renderFinishRestoringPassword(): void
|
function renderFinishRestoringPassword(): void
|
||||||
{
|
{
|
||||||
if(OPENVK_ROOT_CONF['openvk']['preferences']['security']['disablePasswordRestoring'])
|
|
||||||
$this->notFound();
|
|
||||||
|
|
||||||
$request = $this->restores->getByToken(str_replace(" ", "+", $this->queryParam("key")));
|
$request = $this->restores->getByToken(str_replace(" ", "+", $this->queryParam("key")));
|
||||||
if(!$request || !$request->isStillValid()) {
|
if(!$request || !$request->isStillValid()) {
|
||||||
$this->flash("err", tr("token_manipulation_error"), tr("token_manipulation_error_comment"));
|
$this->flash("err", tr("token_manipulation_error"), tr("token_manipulation_error_comment"));
|
||||||
|
@ -244,9 +241,6 @@ final class AuthPresenter extends OpenVKPresenter
|
||||||
|
|
||||||
function renderRestore(): void
|
function renderRestore(): void
|
||||||
{
|
{
|
||||||
if(OPENVK_ROOT_CONF['openvk']['preferences']['security']['disablePasswordRestoring'])
|
|
||||||
$this->notFound();
|
|
||||||
|
|
||||||
if(!is_null($this->user))
|
if(!is_null($this->user))
|
||||||
$this->redirect($this->user->identity->getURL());
|
$this->redirect($this->user->identity->getURL());
|
||||||
|
|
||||||
|
|
|
@ -220,7 +220,7 @@
|
||||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||||
<input type="submit" value="{_log_in}" class="button" style="display: inline-block; font-family: Tahoma" />
|
<input type="submit" value="{_log_in}" class="button" style="display: inline-block; font-family: Tahoma" />
|
||||||
<a href="/reg"><input type="button" value="{_registration}" class="button" style="font-family: Tahoma" /></a><br><br>
|
<a href="/reg"><input type="button" value="{_registration}" class="button" style="font-family: Tahoma" /></a><br><br>
|
||||||
{if !OPENVK_ROOT_CONF['openvk']['preferences']['security']['disablePasswordRestoring']}<a href="/restore">{_forgot_password}</a>{/if}
|
<a href="/restore">{_forgot_password}</a>
|
||||||
</form>
|
</form>
|
||||||
{/ifset}
|
{/ifset}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -101,16 +101,14 @@
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{if !(strpos(captcha_template(), 'verified'))}
|
<tr>
|
||||||
<tr>
|
<td class="regform-left">
|
||||||
<td class="regform-left">
|
<span class="nobold">CAPTCHA: </span>
|
||||||
<span class="nobold">CAPTCHA: </span>
|
</td>
|
||||||
</td>
|
<td class="regform-right">
|
||||||
<td class="regform-right">
|
{captcha_template()|noescape}
|
||||||
{captcha_template()|noescape}
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
|
||||||
{/if}
|
|
||||||
</table>
|
</table>
|
||||||
<div style="margin-left: 100px; margin-right: 100px; text-align: center;">
|
<div style="margin-left: 100px; margin-right: 100px; text-align: center;">
|
||||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||||
|
@ -122,18 +120,21 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{else}
|
{else}
|
||||||
<h4>{_registration_closed}</h4>
|
<h4>{_registration_closed}</h4>
|
||||||
<table cellspacing="10" cellpadding="0" border="0" align="center" style="margin: 9px;">
|
<table cellspacing="10" cellpadding="0" border="0" align="center" style="margin: 9px;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 20%;">
|
<td style="width: 20%;">
|
||||||
<img src="/assets/packages/static/openvk/img/oof.apng" alt="{_registration_closed}" style="width: 100%;"/>
|
<img src="/assets/packages/static/openvk/img/oof.apng" alt="{_registration_closed}" style="width: 100%;"/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{_registration_disabled_info}
|
{_registration_disabled_info}
|
||||||
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}
|
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}
|
||||||
<br/><br/>{_admin_banned_link_reason}:<br>
|
<br/>
|
||||||
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}</b>
|
<br/>
|
||||||
|
{_admin_banned_link_reason}:
|
||||||
|
<br>
|
||||||
|
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}</b>
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -28,7 +28,6 @@ openvk:
|
||||||
forcePhoneVerification: false
|
forcePhoneVerification: false
|
||||||
forceEmailVerification: false
|
forceEmailVerification: false
|
||||||
forceStrongPassword: false
|
forceStrongPassword: false
|
||||||
disablePasswordRestoring: true # turn this off if you have configured e-mail sending correctly
|
|
||||||
enableSu: true
|
enableSu: true
|
||||||
rateLimits:
|
rateLimits:
|
||||||
actions: 5
|
actions: 5
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
|
@ -137,11 +137,11 @@ h4, .content_title_expanded, .summaryBar .summary, .content_title_unexpanded {
|
||||||
}
|
}
|
||||||
|
|
||||||
.content_title_expanded {
|
.content_title_expanded {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/flex_arrow_open.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/flex_arrow_open.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content_title_unexpanded {
|
.content_title_unexpanded {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/flex_arrow_shut.gif") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/flex_arrow_shut.gif") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ovk-video > .preview, .video-preview {
|
.ovk-video > .preview, .video-preview {
|
||||||
|
@ -163,17 +163,17 @@ h4, .content_title_expanded, .summaryBar .summary, .content_title_unexpanded {
|
||||||
|
|
||||||
.page_yellowheader {
|
.page_yellowheader {
|
||||||
color: #c6d2e8;
|
color: #c6d2e8;
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/header_purple.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/header_purple.png") !important;
|
||||||
background-color: #231f34;
|
background-color: #231f34;
|
||||||
border-color: #231f34;
|
border-color: #231f34;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page_header {
|
.page_header {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/header.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/header.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page_custom_header {
|
.page_custom_header {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/header_custom.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/header_custom.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page_yellowheader span, .page_yellowheader a {
|
.page_yellowheader span, .page_yellowheader a {
|
||||||
|
@ -193,11 +193,11 @@ form[action="/search"] > input, .header_search_input, textarea, input[type="text
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/checkbox.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/checkbox.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="radio"] {
|
input[type="radio"] {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/radio.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/radio.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header_navigation .link {
|
.header_navigation .link {
|
||||||
|
@ -205,28 +205,23 @@ input[type="radio"] {
|
||||||
}
|
}
|
||||||
|
|
||||||
.heart {
|
.heart {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/like.gif") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/like.gif") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pinned-mark, .post-author .pin {
|
.pinned-mark, .post-author .pin {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/pin.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/pin.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repost-icon {
|
.repost-icon {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/published.gif") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/published.gif") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-author .delete {
|
.post-author .delete {
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/input_clear.gif") !important;
|
background-image: url("/themepack/midnight/0.0.2.5/resource/input_clear.gif") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-alert {
|
.user-alert {
|
||||||
background-color: #41311a;
|
background-color: #41311a;
|
||||||
color: #d5b88c;
|
color: #d5b88c;
|
||||||
border-color: #514534;
|
border-color: #514534;
|
||||||
}
|
|
||||||
|
|
||||||
#backdropEditor {
|
|
||||||
background-image: url("/themepack/midnight/0.0.2.6/resource/backdrop-editor.gif") !important;
|
|
||||||
border-color: #473e66 !important;
|
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
id: midnight
|
id: midnight
|
||||||
version: "0.0.2.6"
|
version: "0.0.2.5"
|
||||||
openvk_version: 0
|
openvk_version: 0
|
||||||
enabled: 1
|
enabled: 1
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Reference in a new issue