IP.Board Tutorials

Prevent (root admin) to be deleted

Submitted by theezy, , Thread ID: 857

Thread Closed
theezy
Closed Account
Level:
0
Reputation:
7
Posts:
191
Likes:
12
Credits:
128
30-01-2015, 09:15 AM
#1
Open file: adminapplicationsmembersmodules_adminmembersmembers.php
Find: by pressing CTRL+ F

Code:
$ids = IPSLib::cleanIntArray( $ids );

Add above:

Code:
if( in_array( 1, $ids ) )        {   $this->registry->output->global_message = "Can't remove main admin account. Sorry.";   $this->request['do'] = 'members_list';   $this->_memberList();   return;        }

Users browsing this thread: 1 Guest(s)