The forum operates in read-only mode. Please head to StackOverflow for support.
$ip = md5($_SERVER['REMOTE_ADDR']); $sql ='select ips.session_id from #__session ips ' . 'join #__session uip on uip.session_id = ips.username ' . 'join #__users usr on usr.id = uip.userid ' . 'where ips.session_id =\'' .$ip . '\' and usr.gid > 18 ' . 'and uip.time > ' .$expired_time;
if(isset($ip_recorded_for_jusr)) { $Config['Enabled'] = true; } else { $Config['Enabled'] = false; } $Config['Enabled'] = true; // <--- this is added
Re: This connector is disabled
That's where it goes wrong ....
The $ip doesn't match the session_id in the databse.
You can 'hack' it to change the following code
if(isset($ip_recorded_for_jusr)) { $Config['Enabled'] = true; } else { $Config['Enabled'] = false; } $Config['Enabled'] = true; // <--- this is addedBe carefull, there is no login check with this hack!!!!!!!