code check

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kon00100
Forum Newbie
Posts: 3
Joined: Tue Feb 03, 2004 9:09 pm

code check

Post 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?
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

undefined function: isvalidcookie()
means that the function isvalidcookie() does not exist..
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

isValidCookie() isn't a stock php function. Are you sure that your file contains the isValidCookie() function?
kon00100
Forum Newbie
Posts: 3
Joined: Tue Feb 03, 2004 9:09 pm

Post by kon00100 »

i have no idea
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

kon00100 wrote:i have no idea
What shoutbox program are you using?

Can you post the contents of that file?
kon00100
Forum Newbie
Posts: 3
Joined: Tue Feb 03, 2004 9:09 pm

Post by kon00100 »

the webfroot one..my bud just said "the original" heh.
Post Reply