Hallo zusammen,
ich habe mir den Mod einbauen wollen, hatte aber Fehlermeldungen. Nachdem ich Eliwoods Code eingefügt habe sind die zwar verschwunden, dafür aber eine neue aufgetaucht: Parse error: syntax error, unexpected 'db_query_secure' (T_STRING) in /www/htdocs/w01c469a/logd/common.php on line 775
Code zwischen 750 und 790:
$this->bbcode_second_pass_code('', '
.templatereplace("statrow",array("title"=>"Verteidigung","value"=>$def)) : templatereplace("statrow",array("title"=>"Psyche","value"=>10 + round(($u['level']-1)*1.5))) .templatereplace("statrow",array("title"=>"Geist","value"=>10 + round(($u['level']-1)*1.5))) ) .templatereplace("statrow",array("title"=>"Verschmutzung","value"=>$u['clean'])) .templatereplace("statrow",array("title"=>"Geruch","value"=>$odor)) .templatereplace("statrow",array("title"=>"Edelsteine","value"=>$u['gems'])) //.templatereplace("stathead",array("title"=>"Ausbildung")) // .templatereplace("statrow",array("title"=>"Ausbildungszweig","value"=>$u['aubid'])) // .templatereplace("statrow",array("title"=>"Lektion","value"=>$u['lektion'])) // .templatereplace("statrow",array("title"=>"Beruf","value"=>$u['jobname'])) .templatereplace("stathead",array("title"=>"Weitere Infos")) .templatereplace("statrow",array("title"=>"Gold","value"=>$u['gold']))
.templatereplace("statrow",array("title"=>"Arbeit","value"=>"`b".$jobid[(string)$u['jobid']]."`b")) .templatereplace("statrow",array("title"=>"Erfahrung","value"=>expbar())) .templatereplace("statrow",array("title"=>"Waffe","value"=>$u['weapon'])) .templatereplace("statrow",array("title"=>"Rüstung","value"=>$u['armor'])) ,true);
$this->bbcode_second_pass_code('', 'function savetable($table) { global $session;
if(!isset($USESECUREQUERY)) { if(function_exists('db_query_secure')) { static $USESECUREQUERY = true; } else { static $USESECUREQUERY = false; } }
if ($session['loggedin'] == true and !empty($session['user']['acctid'])) { // Der User ist sowohl eingeloggt als auch "valid" im Sinne einer gesetzten Account-ID if(isset($session[$table]) and is_array($session[$table]) and count($session[$table]) > 0) { // $session[$table] ist sowohl gesetzt als ein array mit Inhalt
// Bereite Variablen vor $sql = "UPDATE `$table` SET "; $fields = array();
')
Kann mir jemand helfen den zu beheben?
Vielen Dank schonmal
Edit: hab den Code erstmal rausgenommen weil sonst die ganze Seite nicht mehr läuft
_________________ Gruß Wiebke
|