error in savequestion.php

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Derk
Posts: 4
Joined: Sat Aug 09, 2003 8:15 pm

error in savequestion.php

Post by Derk »

When I posted a new open question and I will send the question I got the following error:

Fatal error: Call to undefined function: ipcheck() in /home/twimanl/public_html/faq/savequestion.php on line 22

What's the reason of this error, and what to do to.
Please help.
Thanks in advance


Derk
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Derk,

which version do you use? Is there are function called IPCheck() in your functions.php? If not, please add this code:

Code: Select all

/*
 * Funktion für IP-Bann | @@ Thorsten, 2003-06-06
 * Last Update: @@ Thorsten, 2003-06-06
 */
function IPCheck($ip) {
	global $bannedIP;
	$arrBannedIPs = explode(" ", $bannedIP);
	foreach ($arrBannedIPs as $oneIP) {
    	if ($oneIP == $ip) {
			return FALSE;
			}
		}
	return TRUE;
	}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Derk
Posts: 4
Joined: Sat Aug 09, 2003 8:15 pm

error in savequestion.php

Post by Derk »

Horst,

first thank you for your quick reply.
I'm using version 1.3.4
I will try it. You hear from me.

Derk
Derk
Posts: 4
Joined: Sat Aug 09, 2003 8:15 pm

error in savequestion.php

Post by Derk »

Horst,

there was not an IPCheck in my functions.php.
I have added the code and the problem is solved.
So thank you you very much for the great service.

Regards

Derk
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: error in savequestion.php

Post by Thorsten »

Hi Derk,
Derk wrote:there was not an IPCheck in my functions.php.
this is strange, in the zip file from phpMyFAQ 1.3.4 there is the function called IPCheck() in the functions.php file.

btw, my name is Thorsten. :)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Derk
Posts: 4
Joined: Sat Aug 09, 2003 8:15 pm

error in savequestion.php

Post by Derk »

Thorsten

Sorry for your misspelled name. :oops: I'm reading to quick.
I thought I have updated all the files.
But perhaps I forgot to upload some files.

Derk
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: error in savequestion.php

Post by Thorsten »

Hi Derk,
Derk wrote:I thought I have updated all the files.
But perhaps I forgot to upload some files.
it seems, this was the problem.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply