Page 1 of 1

code check

Posted: Tue Feb 03, 2004 9:09 pm
by kon00100
this code is for a shoutbox administrators page. instead of showing the login page it shows this error:

Fatal error: Call to undefined function: isvalidcookie() in /home/jlm/public_html/dan/shoutbox/index.php on line 79




the code for line 79 is
<body bgcolor="#FFFFFF" text="#000000"<? if(!isValidCookie($shoutbox_auth)) {echo "onload=\"document.login.password.focus();\"";}?>>

anyone see anything wrong with that?

Posted: Tue Feb 03, 2004 9:19 pm
by Stoker
undefined function: isvalidcookie()
means that the function isvalidcookie() does not exist..

Posted: Tue Feb 03, 2004 9:20 pm
by microthick
isValidCookie() isn't a stock php function. Are you sure that your file contains the isValidCookie() function?

Posted: Tue Feb 03, 2004 9:26 pm
by kon00100
i have no idea

Posted: Tue Feb 03, 2004 9:35 pm
by microthick
kon00100 wrote:i have no idea
What shoutbox program are you using?

Can you post the contents of that file?

Posted: Tue Feb 03, 2004 9:39 pm
by kon00100
the webfroot one..my bud just said "the original" heh.