Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
vivelafrance

Анонимный вход

Recommended Posts

Здравствуйте!

 

Насколько я понимаю у IPS 4.2 нет возможности отключить анонимный вход в админке. Можно ли в таком случае его как-то вырезать из шаблонов?

 

loginPopupForm

 

<form accept-charset='utf-8' class="ipsPad ipsForm ipsForm_vertical" method='post' action='{$action}' data-ipsValidation novalidate>
<input type="hidden" name="{$id}_submitted" value="1">
{{foreach $hiddenValues as $k => $v}}
	<input type="hidden" name="{$k}" value="{$v}">
{{endforeach}}
<h4 class="ipsType_sectionHead">{lang="login"}</h4>
<br><br>
<ul class='ipsList_reset'>
	{{foreach $elements as $collection}}
		{{foreach $collection as $input}}
			{{if $input instanceof \IPS\Helpers\Form\Text}}
				<li class="ipsFieldRow ipsFieldRow_noLabel ipsFieldRow_fullWidth">
					<input type="{$input->formType}" required placeholder="{lang="$input->name"}" name='{$input->name}' id='{$input->htmlId}'>
				</li>
			{{else}}
				{$input->rowHtml($form)|raw}
			{{endif}}
		{{endforeach}}
	{{endforeach}}
	<li class="ipsFieldRow ipsFieldRow_fullWidth">
		<br>
		<button type="submit" class="ipsButton ipsButton_primary ipsButton_small" id="elSignIn_submit">{lang="login"}</button>
		<br>
		<p class="ipsType_right ipsType_small">
			<a href='{url="app=core&module=system&controller=lostpass" seoTemplate="lostpassword"}' data-ipsDialog data-ipsDialog-title='{lang="forgotten_password"}'>{lang="forgotten_password"}</a>
		</p>
	</li>
</ul>
</form>

 

loginPopup

 

<div id='elUserSignIn_menu' class='ipsMenu ipsMenu_auto ipsHide'>
<div data-role="loginForm">
	{{if count ( $login->forms( FALSE, TRUE ) ) > 1}}
		<div class='ipsColumns ipsColumns_noSpacing'>
			<div class='ipsColumn ipsColumn_wide' id='elUserSignIn_internal'>
	{{endif}}
	{{foreach $login->forms( FALSE, TRUE ) as $k => $form}}
		{{if $k === '_standard'}}
			{$form->customTemplate( array( \IPS\Theme::i()->getTemplate( 'global', 'core', 'front' ), 'loginPopupForm' ) )|raw}
		{{endif}}
	{{endforeach}}
	{{if count ( $login->forms( FALSE, TRUE ) ) > 1}}
			</div>
			<div class='ipsColumn ipsColumn_wide'>
				<div class='ipsPad' id='elUserSignIn_external'>
					<div class='ipsAreaBackground_light ipsPad_half'>
						<p class='ipsType_reset ipsType_small ipsType_center'><strong>{lang="sign_in_with_these"}</strong></p>
						<br>
						{{foreach $login->forms( FALSE, TRUE ) as $k => $form}}
							{{if $k !== '_standard'}}
								<div class='ipsPad_half ipsType_center'>
									{$form|raw}
								</div>
							{{endif}}
						{{endforeach}}
					</div>
				</div>
			</div>
		</div>
	{{endif}}
</div>
</div>

 

 

Или невозможно?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...