Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke
Author Message
portaldo
New Member
New Member



Joined: May 30, 2005
Posts: 1

PostPosted: Mon May 30, 2005 1:32 pm Reply with quote

hellow my website is http://www.portaldoregggae.com/portugal

in web links apears this:

Fatal error: Cannot redeclare translate() (previously declared in /home/portaldo/public_html/portugal/language/lang-portuguese.php:207) in /home/portaldo/public_html/portugal/modules/Web_Links/language/lang-portuguese.php on line 14


what i can do?????

help me please!
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon May 30, 2005 8:52 pm Reply with quote

In public_html/portugal/language/lang-portuguese.php there is a function towards the bottom called "translate()". You also apparently have public_html/portugal/modules/Web_Links/language/lang-portuguese.php which has it too. You can't have that. The language files that are stored in the modules folder cannot have the translate() function. Remove it and all should be well.

Alternatively you could change your translate function code in you Web_Links/language folder from
Code:
function translate($phrase) {

    switch($phrase) {
   case "xdatestring":   $tmp = "%A, %B %d @ %T %Z"; break;
   case "linksdatestring":   $tmp = "%d-%b-%Y"; break;
   case "xdatestring2":   $tmp = "%A, %B %d"; break;
   default:      $tmp = "$phrase"; break;
    }
    return $tmp;
}
to
Code:
if (!function_exists("translate")) {

   function translate($phrase) {
       switch($phrase) {
      case "xdatestring":   $tmp = "%A, %B %d @ %T %Z"; break;
      case "linksdatestring":   $tmp = "%d-%b-%Y"; break;
      case "xdatestring2":   $tmp = "%A, %B %d"; break;
      default:      $tmp = "$phrase"; break;
       }
       return $tmp;
   }
}
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©