Notice: Undefined index: usr in include.php on line 553

General discussions here

Notice: Undefined index: usr in include.php on line 553

Postby bgshea » Sun Nov 27, 2005 7:08 pm

Notice: Undefined index: usr in /mnt/sdc1/pub/webfiles/phplogcon-1.2.1/include.php on line 553

I think you what to do this instead:

if( isset($_COOKIE["usr"]) )
{
if( $_COOKIE["usr"] != "|" )
{
echo '<table align="right">';
echo '<tr>';
echo '<td><a href="index.php?do=logout">' . _MSGLogout . '</a></td>';
echo '</tr>';
echo '</table>';
}
}

My thinking:
Either the value is going to be set or not, and if it is not set then it can't be equal to "|". You may have wanted && insted of || , but using the nested if statments get's rid of the notice.

So does turning off php errors, but i like to see them so i can fix them in my php scripts. :wink:

BTW: so far I LOVE this software package!!!! Rsyslog and phpLogCon what a greate combo, saves me from writing it myself.
bgshea
Avarage
 
Posts: 19
Joined: Sun Nov 27, 2005 6:57 pm
Location: Earth

phpLogCon professional services

  • Custom phpLogCon configuration?
  • Maintenance Contract?
  • Installation support?

RE: Notice: Undefined index: usr in include.php on line 553

Postby bgshea » Mon Nov 28, 2005 2:00 am

I have a better fix for this now! Along with severl security hole fixes. I will submit all my chagnes to phpLogCon for a patched release.
bgshea
Avarage
 
Posts: 19
Joined: Sun Nov 27, 2005 6:57 pm
Location: Earth

RE: Notice: Undefined index: usr in include.php on line 553

Postby rgerhards » Mon Nov 28, 2005 12:27 pm

I think we should also create a security advisory ASAP. Let's work on that via mail (my address is rgerhards@adiscon.com).

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron