Dragon schrieb:Kannst du mal die Zeile 923 der admin/games.php posten?
ja hier ist die
Code:
makeuploadcode($lang->game_gif2, "game_gif2");
makelabelcode($lang->game_cat, "<select name=\"cid\">
<option value=\"0\">".$lang->game_cat_no."</option>
".$choise_category."
</select>");
makeyesnocode($lang->game_gamedata, "gamedata", "no");
makeyesnocode($lang->game_active, "active");
//End of table and form
endtable();
endform($lang->save, $lang->reset);
//Footer of Control Panel
cpfooter();
break;
case 'gamedata':
$name = addslashes($mybb->input['name']);
//Does the game exist
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."games WHERE name='".$name."'");
zeile 923 $game = $db->fetch_array($query);
$test_game = $db->num_rows($query);
if($test_game == 0)
{
cperror($lang->gamedoesntexist);
}
//Does the arcade directory exist
if(!is_dir(MYBB_ROOT."arcade"))
{
if(!mkdir(MYBB_ROOT."arcade"))
{
$error_dir = "arcade";
$lang->cantmakedir = sprintf($lang->cantmakedir, $error_dir);
cperror($lang->cantmakedir);
}
}