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

Важное с Sysman.Ru: Отключение восстановления пароля

Recommended Posts

Guest RSS-Bot

Song: 2.1.x:


Файл ./sources/action_public/register.php, найти код:

            [color=green]//-----------------------------------------[/color]            [color=green]// Is there a validation key? If so, we'd better not touch it[/color]            [color=green]//-----------------------------------------[/color]            [b]if[/b] ([color=#048284]$member[/color]['id'] == "")            {                [color=#048284]$this[/color]->ipsclass->Error( [b]array[/b]( 'LEVEL' => 1, 'MSG' => 'no_such_user' ) );            }

Добавить после:

            [color=green]//-----------------------------------------[/color]            [color=green]// Check for admin group[/color]            [color=green]//-----------------------------------------[/color]            [b]if[/b] ([color=#048284]$member[/color]['mgroup'] == [color=#048284]$this[/color]->ipsclass->vars['admin_group'])            {                [color=#048284]$this[/color]->ipsclass->Error( [b]array[/b]( 'LEVEL' => 1, 'MSG' => 'this_is_admin_account' ) );            }

Файл ./cache/lang/*/lang_error.php, найти код:

[color=#840204]<?php[/color][color=#048284]$lang[/color] = [b]array[/b] (

Добавить после:

'this_is_admin_account' => "Пароль от учетных записей администраторов запрещено восстанавливать.",


(с) IBR

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...