mirror of
https://github.com/openvk/openvk
synced 2025-01-03 22:31:59 +03:00
Compare commits
3 commits
4213217063
...
95a62f56e0
Author | SHA1 | Date | |
---|---|---|---|
|
95a62f56e0 | ||
|
29716660c7 | ||
|
8f23720c1f |
7 changed files with 39 additions and 28 deletions
|
@ -207,6 +207,9 @@ 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"));
|
||||||
|
@ -241,6 +244,9 @@ 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>
|
||||||
<a href="/restore">{_forgot_password}</a>
|
{if !OPENVK_ROOT_CONF['openvk']['preferences']['security']['disablePasswordRestoring']}<a href="/restore">{_forgot_password}</a>{/if}
|
||||||
</form>
|
</form>
|
||||||
{/ifset}
|
{/ifset}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -101,14 +101,16 @@
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
{if !(strpos(captcha_template(), 'verified'))}
|
||||||
<td class="regform-left">
|
<tr>
|
||||||
<span class="nobold">CAPTCHA: </span>
|
<td class="regform-left">
|
||||||
</td>
|
<span class="nobold">CAPTCHA: </span>
|
||||||
<td class="regform-right">
|
</td>
|
||||||
{captcha_template()|noescape}
|
<td class="regform-right">
|
||||||
</td>
|
{captcha_template()|noescape}
|
||||||
</tr>
|
</td>
|
||||||
|
</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}" />
|
||||||
|
@ -120,21 +122,18 @@
|
||||||
</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/><br/>{_admin_banned_link_reason}:<br>
|
||||||
<br/>
|
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}</b>
|
||||||
{_admin_banned_link_reason}:
|
|
||||||
<br>
|
|
||||||
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}</b>
|
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -28,6 +28,7 @@ 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
|
||||||
|
|
BIN
themepacks/midnight/res/backdrop-editor.gif
Normal file
BIN
themepacks/midnight/res/backdrop-editor.gif
Normal file
Binary file not shown.
After 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.5/resource/flex_arrow_open.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/resource/flex_arrow_open.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content_title_unexpanded {
|
.content_title_unexpanded {
|
||||||
background-image: url("/themepack/midnight/0.0.2.5/resource/flex_arrow_shut.gif") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/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.5/resource/header_purple.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/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.5/resource/header.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/resource/header.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page_custom_header {
|
.page_custom_header {
|
||||||
background-image: url("/themepack/midnight/0.0.2.5/resource/header_custom.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/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.5/resource/checkbox.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/resource/checkbox.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="radio"] {
|
input[type="radio"] {
|
||||||
background-image: url("/themepack/midnight/0.0.2.5/resource/radio.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/resource/radio.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header_navigation .link {
|
.header_navigation .link {
|
||||||
|
@ -205,23 +205,28 @@ input[type="radio"] {
|
||||||
}
|
}
|
||||||
|
|
||||||
.heart {
|
.heart {
|
||||||
background-image: url("/themepack/midnight/0.0.2.5/resource/like.gif") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/resource/like.gif") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pinned-mark, .post-author .pin {
|
.pinned-mark, .post-author .pin {
|
||||||
background-image: url("/themepack/midnight/0.0.2.5/resource/pin.png") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/resource/pin.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repost-icon {
|
.repost-icon {
|
||||||
background-image: url("/themepack/midnight/0.0.2.5/resource/published.gif") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/resource/published.gif") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-author .delete {
|
.post-author .delete {
|
||||||
background-image: url("/themepack/midnight/0.0.2.5/resource/input_clear.gif") !important;
|
background-image: url("/themepack/midnight/0.0.2.6/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.5"
|
version: "0.0.2.6"
|
||||||
openvk_version: 0
|
openvk_version: 0
|
||||||
enabled: 1
|
enabled: 1
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Reference in a new issue