ajfmrf
09-04-2012, 12:14 PM
I am getting this error:
Fatal error: Call to undefined function EncodeMessage() in ......./../enlighten/php_guestbook.php on line 34
<?
########################################################################################
# A Simple PHP GuestBook Script written by Andrea Cabibbo # ###### #
# Feel free to modify the code to suit your needs # # # #
# Redistribution is NOT allowed and will be prosecuted # # # #
# Version: v0.6 ####### # #
# If you find bugs or have suggestions, please contact # # # #
# the author at the PHP Guestbook official home page: # # ###### #
# #
# http://www.cellbiol.com/scripts/free_php_guestbook/free_php_guestbook.html #
# File last edited on may 11, 2010 #
########################################################################################
# #
# REQUIRED FILES AND FOLDERS PERMISSIONS INFORMATION #
# For the html guestbook file, the configuration file (include/conf.php) #
# and the verify.png file a 666 permission is needed for the script to work #
# The posts folder should have either a 755 or 777 permission depending on server #
# THE CONFIGURATION VARIABLES ARE NOW IN THE include/conf.php FILE. #
# No manual editing of this conf.php file is needed as the configuration variables #
# are accessed though the administration web interface #
# #
# #
########################################################################################
error_reporting(1);
$used_language="include/lang/eng/lang.php"; # this cannot be changed
$enable_image_verification_step=1; # this cannot be changed
$moderation_active="no"; # this cannot be changed
$powby="<a class=\"powby\" href=\"http://www.cellbiol.com/scripts/free_php_guestbook/free_php_guestbook.html\" target=\"_blank\">Powered by the The Easy PHP Guestbook ®</a>";// editing of the powered by lines is not allowed
$pwb2="<a class=\"powby\" href=\"http://www.cellbiol.com/scripts/free_php_guestbook/free_php_guestbook.html\" target=\"_blank\">Powered by the The Easy PHP Guestbook ®</a>";// editing of the powered by lines is not allowed
$conf_file="include/conf.php"; //the configuration file
include $conf_file;include $used_language;include "include/classes.php";include "include/functions.php";
include "include/mixvar.php";include "include/html/forms.php";include "include/html/mix_html.php";
$date=EncodeMessage($date);
# GEOIP, please read carefully:
# $geoip_db is the expected location of the geoip database file.
# This file IS NOT INCLUDED in this software distribution and is not part of this guestbook software, which merely offers a way to access and use this file, if so desired by the user.
# It is a GPL licensed file that can be freely downloaded from http://software77.net/geo-ip/
# The provided geoip code can use the CSV version of this file only. You can download this csv file compressed in a zip format or gzip format from the above web site
# You should then unzip it and place it in the "include" folder of the guestbook software distribution. When unzipped, this file should be named IpToCountry.csv, you might want to check that out.
$geoip_db="include/IpToCountry.csv"; # see comments above
$geoip_file_exists=file_exists($geoip_db);
if($geoip_file_exists){$geoip_file_detected="<span style=\"color:green\">yes</span>";}
else{$geoip_file_detected="<span style=\"color:red\">no</span>";}
if ($activate_geoip=="yes" && $geoip_file_exists)
{
$user_country_name=locate_ip_2($ip_addr,"name");
$user_country_code=locate_ip_2($ip_addr,"code");
}
# END GEOIP
$create_post_array=
'
$post_array=array(
I don't know what to look for for this problem.Is there a problem with the ( or ) in tor near line 34?
This is part of the php code I hope the rest is not related to my problem.
Fatal error: Call to undefined function EncodeMessage() in ......./../enlighten/php_guestbook.php on line 34
<?
########################################################################################
# A Simple PHP GuestBook Script written by Andrea Cabibbo # ###### #
# Feel free to modify the code to suit your needs # # # #
# Redistribution is NOT allowed and will be prosecuted # # # #
# Version: v0.6 ####### # #
# If you find bugs or have suggestions, please contact # # # #
# the author at the PHP Guestbook official home page: # # ###### #
# #
# http://www.cellbiol.com/scripts/free_php_guestbook/free_php_guestbook.html #
# File last edited on may 11, 2010 #
########################################################################################
# #
# REQUIRED FILES AND FOLDERS PERMISSIONS INFORMATION #
# For the html guestbook file, the configuration file (include/conf.php) #
# and the verify.png file a 666 permission is needed for the script to work #
# The posts folder should have either a 755 or 777 permission depending on server #
# THE CONFIGURATION VARIABLES ARE NOW IN THE include/conf.php FILE. #
# No manual editing of this conf.php file is needed as the configuration variables #
# are accessed though the administration web interface #
# #
# #
########################################################################################
error_reporting(1);
$used_language="include/lang/eng/lang.php"; # this cannot be changed
$enable_image_verification_step=1; # this cannot be changed
$moderation_active="no"; # this cannot be changed
$powby="<a class=\"powby\" href=\"http://www.cellbiol.com/scripts/free_php_guestbook/free_php_guestbook.html\" target=\"_blank\">Powered by the The Easy PHP Guestbook ®</a>";// editing of the powered by lines is not allowed
$pwb2="<a class=\"powby\" href=\"http://www.cellbiol.com/scripts/free_php_guestbook/free_php_guestbook.html\" target=\"_blank\">Powered by the The Easy PHP Guestbook ®</a>";// editing of the powered by lines is not allowed
$conf_file="include/conf.php"; //the configuration file
include $conf_file;include $used_language;include "include/classes.php";include "include/functions.php";
include "include/mixvar.php";include "include/html/forms.php";include "include/html/mix_html.php";
$date=EncodeMessage($date);
# GEOIP, please read carefully:
# $geoip_db is the expected location of the geoip database file.
# This file IS NOT INCLUDED in this software distribution and is not part of this guestbook software, which merely offers a way to access and use this file, if so desired by the user.
# It is a GPL licensed file that can be freely downloaded from http://software77.net/geo-ip/
# The provided geoip code can use the CSV version of this file only. You can download this csv file compressed in a zip format or gzip format from the above web site
# You should then unzip it and place it in the "include" folder of the guestbook software distribution. When unzipped, this file should be named IpToCountry.csv, you might want to check that out.
$geoip_db="include/IpToCountry.csv"; # see comments above
$geoip_file_exists=file_exists($geoip_db);
if($geoip_file_exists){$geoip_file_detected="<span style=\"color:green\">yes</span>";}
else{$geoip_file_detected="<span style=\"color:red\">no</span>";}
if ($activate_geoip=="yes" && $geoip_file_exists)
{
$user_country_name=locate_ip_2($ip_addr,"name");
$user_country_code=locate_ip_2($ip_addr,"code");
}
# END GEOIP
$create_post_array=
'
$post_array=array(
I don't know what to look for for this problem.Is there a problem with the ( or ) in tor near line 34?
This is part of the php code I hope the rest is not related to my problem.