[TYPO3-german] Fatal error: Cannot redeclare user_match()

Fabian Koenig koenig at bluhouse.de
Thu Mar 15 09:19:09 CET 2007


Achja:
Ich verwende Typo3 4.0.3

Kann mir keiner helfen?? :-(


Fabian Koenig schrieb:
> Hi.
> 
> Ich verwende eine userFunc um ein paar Daten in der DB zu vergleichen,
> aber wenn ich meine Seite aufrufe, bekomme ich folgende Fehlermeldung:
> 
> Fatal error: Cannot redeclare user_match() (previously declared in 
> /html/typo3conf/localconf.php:243) in /html/typo3conf/localconf.php on 
> line 243
> 
> 
> Hier mein TS:
> ==ts==
> [userFunc = user_match(checkUserGroupAccess)]
> ...
> [end]
> ==ts==
> 
> 
> PHP (die erste Zeile ist die Zeile 243):
> ==php==
> function user_match($cmd){
>     switch($cmd){
>         case "checkUserGroupAccess":
>             #mysql_connect($typo_db_host, $typo_db_username, 
> $typo_db_password);
>             #mysql_select_db($typo_db);
>            
>             $actFeUserID = $GLOBALS['TSFE']->fe_user->user['uid'];
>             $query = "SELECT usergroup FROM fe_users WHERE uid = " . 
> $actFeUserID;
>             $result = mysql_query($query);
>             $return = false;
>            
>             while ($usrTab = mysql_fetch_array($result)) {
>                 $gIDlist = split(",", $usrTab['usergroup']);
>                 $i = 0;
>                 while($i < count($gIDlist)){
>                     if($gIDlist[$i] == $okID){
>                         $return = true;
>                     };
>                     $i++;
>                 }
>             }
>             break;
>     }
>     return $return;
> }
> ==php==
> 
> 
> Was mache ich hier falsch?? :-(
> (user_match ist nur dieses eine mal in Verwendung!)
> 
> 
> mfg
> Fabian


More information about the TYPO3-german mailing list