Can Max sessions be disabled for admins and mods

Makes it possible for admin to specify maximum connections for the board / IP

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Can Max sessions be disabled for admins and mods

Postby TheMann on Tue 17. Dec, 2002 06:09

can this hack be modified so that admins and mods can get access no matter how many sessions are in use?
TheMann
Poster
Poster
 
Posts: 3
Joined: Wed 20. Nov, 2002 15:40

Postby Blisk on Fri 24. Oct, 2003 18:45

IT happends one that I was locked out, from forum and I couldn't get in anymore.
What to do, when ADMIN is locked out.
And how many session you recomend!
Blisk
Poster
Poster
 
Posts: 128
Joined: Wed 20. Aug, 2003 14:14

Postby obiku on Tue 28. Dec, 2004 10:36

Blisk wrote:IT happends one that I was locked out, from forum and I couldn't get in anymore.
What to do, when ADMIN is locked out.
And how many session you recomend!

I changed the following:
Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
includes/sessions.php

#
#-----[ FIND ]------------------------------------------------
#
$total_users = $db->sql_numrows($result);
if ( $total_users >= $board_config['max_sessions'] )
{
   message_die(CRITICAL_MESSAGE, sprintf('Max connections reatched, (%d) please try again later',$board_config['max_sessions']), '', __LINE__, __FILE__, $sql);
}

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$board_config['max_sessions']
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
&&  $userdata['user_level'] <> ADMIN
#
#-----[ FIND ]------------------------------------------------
#
$total_users = $db->sql_numrows($result);
if ( $total_users >= $board_config['max_sessions'] )
{
   message_die(CRITICAL_MESSAGE, sprintf('Max connections per IP reatched, (%d) please use fewer open windows',$board_config['max_sessions_ip']), '', __LINE__, __FILE__, $sql);
}
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$board_config['max_sessions']
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
&&  $userdata['user_level'] <> ADMIN
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
obiku
Poster
Poster
 
Posts: 2
Joined: Sat 11. Sep, 2004 11:36


Return to Max sessions [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron