Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/11/2008, 19:04
hinfra
 
Fecha de Ingreso: octubre-2008
Mensajes: 93
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Problemas PHP en localhost

Me da este error... "Fatal error: Call to undefined function _() in C:\wamp\www\www\libs\utils.php on line 24"


Código php:
Ver original
  1. <?php
  2. // The source code packaged with this file is Free Software, Copyright (C) 2005-2007 by
  3. // Ricardo Galli <gallir at uib dot es>.
  4. // It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
  5. // You can get copies of the licenses here:
  6. //      [url]http://www.affero.org/oagpl.html[/url]
  7. // AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".
  8.  
  9.  
  10. // Use proxy detecttion
  11. if ($globals['check_behind_proxy']) {
  12.     require_once(mnminclude.'check_behind_proxy.php');
  13.     $globals['user_ip'] = check_ip_behind_proxy();
  14. } else {
  15.     $globals['user_ip'] = $_SERVER["REMOTE_ADDR"];
  16. }
  17.  
  18. // Warn, we shoud printf "%u" because PHP on 32 bits systems fails with high unsigned numbers
  19. $globals['user_ip_int'] = sprintf("%u", ip2long($globals['user_ip']));
  20.  
  21. $globals['now'] = time();
  22.  
  23. $globals['negative_votes_values'] = Array ( -1 => _('irrelevante'), -2 => _('antigua'), -3 => _('cansina'), -4 => _('amarillista'), -5 => _('spam'), -6 => _('duplicada'), -7 => _('provocación'), -8 => _('errónea'),  -9 => _('copia/plagio'));
  24.  
  25.  
  26. $globals['extra_js'] = Array();
  27. $globals['extra_css'] = Array();
  28. $globals['post_js'] = Array();
  29.  
  30. // For PHP < 5
  31. if ( !function_exists('htmlspecialchars_decode') ) {
  32.     function htmlspecialchars_decode($text) {
  33.         return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
  34.     }
  35. }
  36. ...
  37. y el codigo sigue...

Es algo del php.ini seguro... porque todo tendria que funcionar...

AYUDAAAAAAAAAAA