Seite 1 von 1

Toplist Mod Probleme

Verfasst: 16.01.2004 17:29
von Ice-Tea
Es handelt sich um diese Modhttp://www.phpbbhacks.com/viewhack.php?id=1018

Ich erhalte eine fehlermeldung beim klicken auf Toplist und in der Administation unter "User Administration":

Toplist:
Parse error: parse error, unexpected T_CASE in /home/www/htdocs/flaming-bytes.de/forum/toplist.php on line 516

User Administration:
Parse error: parse error, unexpected T_CASE in /home/www/htdocs/flaming-bytes.de/forum/toplist.php on line 516
Template->loadfile(): No file specified for handle body

An der angegeben stelle liegt volgender Code:

Code: Alles auswählen

	case "toplistnew":
		
		$template->assign_block_vars('new', array(
        	'ACTION' => append_sid((($in_admin) ? "admin_toplist.php?mode=toplist" : "toplist.php")),
        	'SPACERT' => " ")
		);

		$template->assign_block_vars('new.stuff', array(
        	'X' => $lang['Cb'])
		);
		
		if ($dir = @opendir((($in_admin) ? "../" : "")."mods/toplist_mod/images"))
		{
			while (($file = readdir($dir)) !== false)
			{
    			if($file!="index.htm" && $file!="." && $file!="..")
    			{
    				$template->assign_block_vars('new.stuff.image', array(
            			'FILENAME' => $file,
            			'SELECTED' => (($file==$row['imgfile']) ? "CHECKED " : ""))
    				);
    			}
  			}  
  			
  			@closedir($dir);
		}
		
		break;
weiß jemand was ich möglicherweise falsch gemacht habe?
Danke im vorraus!
Ice-Tea

Verfasst: 16.01.2004 23:11
von Acid

Code: Alles auswählen

						}
					}
				}
			}
		}

		if($what=="signch")
..lösch mal testweise eine der oberen Klammern (in der toplist.php).