mirror of
https://github.com/openvk/openvk
synced 2025-01-05 15:30:49 +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
|
||||
{
|
||||
if(OPENVK_ROOT_CONF['openvk']['preferences']['security']['disablePasswordRestoring'])
|
||||
$this->notFound();
|
||||
|
||||
$request = $this->restores->getByToken(str_replace(" ", "+", $this->queryParam("key")));
|
||||
if(!$request || !$request->isStillValid()) {
|
||||
$this->flash("err", tr("token_manipulation_error"), tr("token_manipulation_error_comment"));
|
||||
|
@ -244,9 +241,6 @@ final class AuthPresenter extends OpenVKPresenter
|
|||
|
||||
function renderRestore(): void
|
||||
{
|
||||
if(OPENVK_ROOT_CONF['openvk']['preferences']['security']['disablePasswordRestoring'])
|
||||
$this->notFound();
|
||||
|
||||
if(!is_null($this->user))
|
||||
$this->redirect($this->user->identity->getURL());
|
||||
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||
<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>
|
||||
{if !OPENVK_ROOT_CONF['openvk']['preferences']['security']['disablePasswordRestoring']}<a href="/restore">{_forgot_password}</a>{/if}
|
||||
<a href="/restore">{_forgot_password}</a>
|
||||
</form>
|
||||
{/ifset}
|
||||
</div>
|
||||
|
|
|
@ -101,16 +101,14 @@
|
|||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{if !(strpos(captcha_template(), 'verified'))}
|
||||
<tr>
|
||||
<td class="regform-left">
|
||||
<span class="nobold">CAPTCHA: </span>
|
||||
</td>
|
||||
<td class="regform-right">
|
||||
{captcha_template()|noescape}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td class="regform-left">
|
||||
<span class="nobold">CAPTCHA: </span>
|
||||
</td>
|
||||
<td class="regform-right">
|
||||
{captcha_template()|noescape}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="margin-left: 100px; margin-right: 100px; text-align: center;">
|
||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||
|
@ -122,18 +120,21 @@
|
|||
</form>
|
||||
</div>
|
||||
{else}
|
||||
<h4>{_registration_closed}</h4>
|
||||
<h4>{_registration_closed}</h4>
|
||||
<table cellspacing="10" cellpadding="0" border="0" align="center" style="margin: 9px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<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>
|
||||
{_registration_disabled_info}
|
||||
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}
|
||||
<br/><br/>{_admin_banned_link_reason}:<br>
|
||||
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}</b>
|
||||
<br/>
|
||||
<br/>
|
||||
{_admin_banned_link_reason}:
|
||||
<br>
|
||||
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}</b>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -28,7 +28,6 @@ openvk:
|
|||
forcePhoneVerification: false
|
||||
forceEmailVerification: false
|
||||
forceStrongPassword: false
|
||||
disablePasswordRestoring: true # turn this off if you have configured e-mail sending correctly
|
||||
enableSu: true
|
||||
rateLimits:
|
||||
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 {
|
||||
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 {
|
||||
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 {
|
||||
|
@ -163,17 +163,17 @@ h4, .content_title_expanded, .summaryBar .summary, .content_title_unexpanded {
|
|||
|
||||
.page_yellowheader {
|
||||
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;
|
||||
border-color: #231f34;
|
||||
}
|
||||
|
||||
.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 {
|
||||
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 {
|
||||
|
@ -193,11 +193,11 @@ form[action="/search"] > input, .header_search_input, textarea, input[type="text
|
|||
}
|
||||
|
||||
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"] {
|
||||
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 {
|
||||
|
@ -205,28 +205,23 @@ input[type="radio"] {
|
|||
}
|
||||
|
||||
.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 {
|
||||
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 {
|
||||
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 {
|
||||
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 {
|
||||
background-color: #41311a;
|
||||
color: #d5b88c;
|
||||
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
|
||||
version: "0.0.2.6"
|
||||
version: "0.0.2.5"
|
||||
openvk_version: 0
|
||||
enabled: 1
|
||||
metadata:
|
||||
|
|
Loading…
Reference in a new issue