Ranks Mod v1.0.3 dziwny błąd
: 09 września 2005, 11:57
Witam
W spisie dostępnych rang w pliku ranks.php wywala mi taki błąd:
a to początek kodu pliku ranks.php do linii 60:
Sprawa jest o tyle dziwna, że na localu skrypt działa bez żadnych problemów natomiast na serwerze zdalnym wyświetlany już jest wyżej podany błąd.
Proszę o pomoc, z góry dzięki.
W spisie dostępnych rang w pliku ranks.php wywala mi taki błąd:
Kod: Zaznacz cały
Fatal error: Cannot redeclare get_rank_title() in /home/crazytow/public_html/forum/ranks.php on line 45
Kod: Zaznacz cały
<?php
/***************************************************************************
* ranks.php
* ---------
* begin : 08/05/2003
* copyright : Ptirhiik
* email : admin@rpgnet-fr.com
*
* version : 1.0.3 - 26/07/2003
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
// global pgm options
$auth_rank_only_logged = true; // true will required to be logged to have access, false guest are welcome
$spe_rank_max_users = -1; // number of displayed members in the memberlist : -1=all, 0=none, value=number
$std_rank_max_users = 10; // number of displayed members in the memberlist : -1=all, 0=none, value=number
// check for inclusion
if ( isset($check_access) ) return;
// start the prog
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);
$rank_extended = function_exists(extended_rank);
$profilcp = file_exists($phpbb_root_path . 'profilcp/functions_profile.' . $phpEx);
if ($profilcp)
{
$rank_extended = false;
include($phpbb_root_path . 'profilcp/functions_profile.' . $phpEx);
}
function get_rank_title($rank_title)
{
global $rank_extended, $profilcp, $lang;
$res = $rank_title;
if ($rank_extended || $profilcp)
{
$ranks = explode( "|", $rank_title);
$res = '';
$res .= (isset($ranks[1]) && !empty($ranks[1])) ? '<b>' . $lang['Male'] . ': </b>' . $ranks[1] . '<br />': '';
$res .= (isset($ranks[1]) && !empty($ranks[2])) ? '<b>' . $lang['Female'] . ': </b>' . $ranks[2] . '<br />' : '';
$res .= '<b>' . $lang['No_gender_specify'] . ': </b>' . $ranks[0];
}
return $res;
}
...
?>
Proszę o pomoc, z góry dzięki.