ich habe mir von ein kumpel das browsergam xnova geben lassen ich habe es installirt und es kam das in der login.php
	
	ich bitte um hilfe
							
						
					Code:
	
	<?
function doquery($query, $table, $fetch = false){
  global $numqueries,$link,$debug,$ugamela_root_path;
    require($ugamela_root_path.'config.php');
    if(!$link)
    {$link = mysql_connect($dbsettings["server"], $dbsettings["user"], 
                $dbsettings["pass"]) or
                $debug->error(mysql_error()."<br />$query","SQL Error");
        mysql_select_db($dbsettings["name"]) or $debug->error(mysql_error()."<br />$query","SQL Error");
        mysql_query("SET NAMES latin2");
        echo mysql_error();}
    $sql = str_replace("{{table}}", $dbsettings["prefix"].$table, $query);
    $sqlquery = mysql_query($sql) or 
                $debug->error(mysql_error()."<br />$sql<br />","SQL Error");
    unset($dbsettings);
    $numqueries++;
//  $arr = debug_backtrace();
  $file = end(explode('/',$arr[1]['file']));
  $line = $arr[1]['line'];
$debug->add("<tr><th>Query $numqueries: </th><th>$query</th><th>$file($line)</th><th>$table</th><th>$fetch</th></tr>");
    if($fetch)
    {$sqlrow = mysql_fetch_array($sqlquery);
        return $sqlrow;
    }else{return $sqlquery;}}
?><?
if (ini_get('register_globals') != 1){
if ((isset($_POST) == true) && (is_array($_POST) == true)) extract($_POST, EXTR_OVERWRITE);
if ((isset($_GET) == true) && (is_array($_GET) == true)) extract($_GET, EXTR_OVERWRITE);}
foreach ($_GET as $u_url){
if ((eregi("<[^>]*script*\"?[^>]*>", $u_url)) || (eregi("<[^>]*object*\"?[^>]*>", $u_url)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $u_url)) || (eregi("<[^>]*applet*\"?[^>]*>", $u_url)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $u_url)) || (eregi("<[^>]*style*\"?[^>]*>", $u_url)) ||
(eregi("<[^>]*form*\"?[^>]*>", $u_url)) || (eregi("\([^>]*\"?[^)]*\)", $u_url)) ||
(eregi("\"", $u_url))){
die ();}}
unset($u_url);
function czysc_url($url){
$bad_entities = array("&", "\"", "'", '\"', "\'", "<", ">", "(", ")");
$safe_entities = array("&", "", "", "", "", "", "", "", "");
$url = str_replace($bad_entities, $safe_entities, $url);
return $url;}
$_SERVER['PHP_SELF'] = czysc_url($_SERVER['PHP_SELF']);
$_SERVER['QUERY_STRING'] = isset($_SERVER['QUERY_STRING']) ? czysc_url($_SERVER['QUERY_STRING']) : "";
$_SERVER['REQUEST_URI'] = isset($_SERVER['REQUEST_URI']) ? czysc_url($_SERVER['REQUEST_URI']) : "";
$PHP_SELF = czysc_url($_SERVER['PHP_SELF']);
function is__Num($value){
return (preg_match("/^[0-9]+$/", $value));}
function verify_image($file){ 
$txt = file_get_contents($file); 
$image_safe = true; 
if (preg_match('#&(quot|lt|gt|nbsp);#i', $txt)) {$image_safe = false;} 
elseif (preg_match("#&\#x([0-9a-f]+);#i", $txt)) {$image_safe = false;} 
elseif (preg_match('#&\#([0-9]+);#i', $txt)) {$image_safe = false;} 
elseif (preg_match("#([a-z]*)=([\`\'\"]*)script:#iU", $txt)) {$image_safe = false;} 
elseif (preg_match("#([a-z]*)=([\`\'\"]*)javascript:#iU", $txt)) {$image_safe = false;} 
elseif (preg_match("#([a-z]*)=([\'\"]*)vbscript:#iU", $txt)) {$image_safe = false;} 
elseif (preg_match("#(<[^>]+)style=([\`\'\"]*).*expression\([^>]*>#iU", $txt)) {$image_safe = false;} 
elseif (preg_match("#(<[^>]+)style=([\`\'\"]*).*behaviour\([^>]*>#iU", $txt)) {$image_safe = false;} 
elseif (preg_match("#</*(applet|link|style|script|iframe|frame|frameset)[^>]*>#i", $txt)) {$image_safe = false;} 
return $image_safe;}
?><br />
<b>Fatal error</b>:  Call to undefined function doquery() in <b>C:\xampp\htdocs\xnova1\xnova\common.php</b> on line <b>45</b><br />
Code:
	
	<?php
/**
 * common.php
define('VERSION','0.8e');        // Passera en version 1.0 quand toutes les fonctions ET l'install seront correct
                                // Et c'est pas encore demain la veille !!!
set_magic_quotes_runtime(0);
$phpEx = "php";
$game_config   = array();
$user          = array();
$lang          = array();
$IsUserChecked = false;
define('DEFAULT_SKINPATH' , 'skins/xnova/');
define('TEMPLATE_DIR'     , 'templates/');
define('TEMPLATE_NAME'    , 'OpenGame');
if($_COOKIE['Langs'] == "de"){define('DEFAULT_LANG'     , 'de');}
else{define('DEFAULT_LANG'     , 'de');}
$HTTP_ACCEPT_LANGUAGE = DEFAULT_LANG;
include($ugamela_root_path . 'includes/debug.class.'.$phpEx);
$debug = new debug();
include($ugamela_root_path . 'includes/constants.'.$phpEx);
include($ugamela_root_path . 'includes/functions.'.$phpEx);
include($ugamela_root_path . 'includes/unlocalised.'.$phpEx);
include($ugamela_root_path . 'includes/todofleetcontrol.'.$phpEx);
include($ugamela_root_path . 'language/'. DEFAULT_LANG .'/lang_info.cfg');
if (INSTALL != true) {
    include($ugamela_root_path . 'includes/vars.'.$phpEx);
    include($ugamela_root_path . 'includes/db.'.$phpEx);
    include($ugamela_root_path . 'includes/strings.'.$phpEx);
    include($ugamela_root_path . 'lockeder.'.$phpEx);
    // Lecture de la table de configuration
    $query = doquery("SELECT * FROM {{table}}",'config');
    while ( $row = mysql_fetch_assoc($query) ) {
        $game_config[$row['config_name']] = $row['config_value'];
    }
    if ($InLogin != true) {
        $Result        = CheckTheUser ( $IsUserChecked );
        $IsUserChecked = $Result['state'];
        $user          = $Result['record'];
    } elseif ($InLogin == false) {
        // Jeux en mode 'clos' ???
        if( $game_config['game_disable']) {
            if ($user['authlevel'] < 1) {
                message ( stripslashes ( $game_config['close_reason'] ), $game_config['game_name'] );
            }
        }
    }
    includeLang ("system");
    includeLang ('tech');
    if ( isset ($user) ) {
$_lastupdate = doquery("SELECT lastupdate FROM {{table}} LIMIT 1;", 'update'); 
$row = mysql_fetch_row($_lastupdate); 
//echo "now[".time()."] lastupdate[".$row[0]."] diff[".(time()-$row[0])."]"; 
if(time()-$row[0]>60){ 
doquery("LOCK TABLE {{table}} WRITE", 'update'); 
doquery("UPDATE {{table}} SET lastupdate = ".time()."", 'update'); 
doquery("UNLOCK TABLES", ''); 
$_fleets = doquery("SELECT * FROM {{table}} WHERE `fleet_start_time` <= '".time()."';", 'fleets'); // OR fleet_end_time <= ".time() 
while ($row = mysql_fetch_array($_fleets)) { 
$array = array(); 
$array['galaxy'] = $row['fleet_start_galaxy']; 
$array['system'] = $row['fleet_start_system']; 
$array['planet'] = $row['fleet_start_planet']; 
$array['planet_type'] = $row['fleet_start_type']; 
$temp = FlyingFleetHandler ($array); 
} 
$_fleets = doquery("SELECT * FROM {{table}} WHERE `fleet_end_time` <= '".time()."';", 'fleets'); // OR fleet_end_time <= ".time() 
while ($row = mysql_fetch_array($_fleets)) { 
$array = array(); 
$array['galaxy'] = $row['fleet_end_galaxy']; 
$array['system'] = $row['fleet_end_system']; 
$array['planet'] = $row['fleet_end_planet']; 
$array['planet_type'] = $row['fleet_end_type']; 
$temp = FlyingFleetHandler ($array); 
} 
unset($_fleets); 
}
        include($ugamela_root_path . 'rak.'.$phpEx);
        if ( defined('IN_ADMIN') ) {
            $UserSkin  = $user['dpath'];
            $local     = stristr ( $UserSkin, "http:");
            if ($local === false) {
                if (!$user['dpath']) {
                    $dpath     = "../". DEFAULT_SKINPATH  ;
                } else {
                    $dpath     = "../". $user["dpath"];
                }
            } else {
                $dpath     = $UserSkin;
            }
        } else {
            $dpath     = (!$user["dpath"]) ? DEFAULT_SKINPATH : $user["dpath"];
        }
        SetSelectedPlanet ( $user );
        $planetrow = doquery("SELECT * FROM {{table}} WHERE `id` = '".$user['current_planet']."';", 'planets', true);
        $galaxyrow = doquery("SELECT * FROM {{table}} WHERE `id_planet` = '".$planetrow['id']."';", 'galaxy', true);
        CheckPlanetUsedFields($planetrow);
    } else {
        // Bah si déja y a quelqu'un qui passe par là et qu'a rien a faire de pressé ...
        // On se sert de lui pour mettre a jour tout les retardataires !!
    }
} else {
    $dpath     = "../" . DEFAULT_SKINPATH;
}
?>
							
						
          
 Moderator
 danke
							
						


							
						
 für die hilfe es wahr ganz simpel es hatt ein bischen was gefehlt in der datenbank
							
						
Kommentar