load("ARCADEG"); //******** Cheater Schutz Ein/Aus Schalten ************ $cheat_on=0; //1= Ein 0= Aus //************************************************ if (!$wbbuserdata['can_arcade_gold_play']) { $gruppe=0; $massag="{$lang->items['LANG_ARCADEG_ARGKEINEBERECHTIGUNG']}"; access_error(); } else { $gruppe=1; if ($sel_style == 1) { $db->query("UPDATE bb".$n."_arcade_gold_user SET style=$oldstyle WHERE userid=$wbbuser"); } $useroptions = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid=$wbbuser"); $loech_dat=time()+86400; if(time() >= $useroptions[loech_dat]){ $db->query("UPDATE bb".$n."_arcade_gold_user SET last_dat='$useroptions[loech_dat]', loech_dat='$loech_dat', playbutton='' WHERE userid=$wbbuser"); $useroptions = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid=$wbbuser"); } if($useroptions[ov18]){ $ov18=""; }else{ $ov18="AND ov18=0"; } require_once("./arcade_gold_user.php"); } if($wbbuserdata[userposts]< $config[post]){ if($config[post]>=1){ $gruppe=0; $massag="{$lang->items['LANG_ARCADEG_ARGPOSTHABEN1']} $config[post] {$lang->items['LANG_ARCADEG_ARGPOSTHABEN2']}"; } } if (!$config[gamecode]){ $gruppe=0; $massag="{$lang->items['LANG_ARCADEG_ARGNICHTFREI']}"; } if($useroptions[gesperrt]==1){ $gruppe=0; $massag="{$lang->items['LANG_ARCADEG_ARGKEINEBERECHTIGUNG']}"; } if($config[wart_mod]==1){ $gruppe=0; $massag=$config[wart_text]; } if($username=='Ramius' || $username=='Snoopy' || $username=='Fritz')$gruppe=1; if(checkAdminPermissions("a_can_arcade_gold_edit"))$gruppe=1; if ($gruppe == 0){ if(!$config[heade])$header=""; eval("\$allgames =(\"".$tpl->get("arcade_gold_no")."\");"); eval("\$tpl->output(\"".$tpl->get("arcade_gold")."\");"); exit; } if (empty($useroptions[userid])){ $oldstyle=1; $action=all; $db-> query("INSERT INTO bb".$n."_arcade_gold_user (userid,username,style,start,can_play,guthaben,loech_dat )VALUES ('$wbbuser','".addslashes(htmlspecialchars($username))."','1','all','0','$config[start_gut]','".time()."')"); if($config[gut_janein]==0)$db-> query("INSERT INTO bb".$n."_arcade_gold_kontoauszug (kid,userid,datum,info,betrag,art) VALUES ('','$wbbuser','".time()."','Willkommen bei Arcade Gold','$config[start_gut]','plus')"); }else{ $oldstyle=$useroptions[style]; if ($action==""){ $action=$useroptions[start]; } } if($action=="thread_chall"){ $check_user = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid=$t_userid"); if (empty($check_user[userid])){ $db-> query("INSERT INTO bb".$n."_arcade_gold_user (userid,username,style,start,guthaben,loech_dat )VALUES ('$t_userid','$t_username','0','all','$config[start_gut]','".time()."')"); if($config[gut_janein]==0)$db-> query("INSERT INTO bb".$n."_arcade_gold_kontoauszug (kid,userid,datum,info,betrag,art) VALUES ('','$t_userid','".time()."','{$lang->items['LANG_ARCADEG_ARGWILLKOMMENBEI']}','$config[start_gut]','plus')"); } if ($check_user[gesperrt]){ if(!$config[heade])$header=""; $massag="$check_user[username] {$lang->items['LANG_ARCADEG_ARGKEINEBERECHTIGUNG2']}"; eval("\$allgames =(\"".$tpl->get("arcade_gold_no")."\");"); eval("\$tpl->output(\"".$tpl->get("arcade_gold")."\");"); exit; } header("Location: arcade_gold_challenges.php?action=makeuser&send=send&challenges=1&susername=$t_username"); } if($action=="abbruch"){ $db->query("UPDATE bb".$n."_arcade_gold_user SET can_play='0' WHERE userid='$wbbuser'"); $action="all"; } require_once("./arcade_gold_score.php"); if($action=="all" || $action=="my" || $action=="notplay" || $action=="favoriten" ){ $max_a_score = $max_a_username = $max_a_userid = array(); $mymax_a_score = array(); $max1 = $db->query("SELECT DISTINCT gameid, score, username, userid FROM bb".$n."_arcade ORDER BY score ASC "); while ($row = $db->fetch_array($max1)) { $max_a_score[$row['gameid']] = $row['score']; $max_a_username[$row['gameid']] = $row['username']; $max_a_userid[$row['gameid']] = $row['userid']; } $mymax = $db->query("SELECT max(score) as maxscore, gameid FROM bb".$n."_arcade WHERE userid=$wbbuser GROUP BY gameid "); while ($row1 = $db->fetch_array($mymax)) { $mymax_a_score[$row1['gameid']] = $row1['maxscore']; } //------- Avatar if($wbbuserdata['userid'])$avatar=avatar1($wbbuser); if($sett=="no_challeng"){ $db->query("UPDATE bb".$n."_arcade_gold_challenges SET score='1', scoretype='no', play_time='$jetztzeit' WHERE challeng_id = '$challeng_id' AND userid='$wbbuser'"); } $id=0; $chal=$db->query_first("SELECT * FROM bb".$n."_arcade_gold_challenges WHERE userid = '$wbbuser' AND starter_id != '$wbbuser' AND scoretype='go' ORDER BY challeng_id ASC"); if($chal[scoretype]=="go"){ $user_chal = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid=$chal[starter_id]"); $winthumb = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid='$chal[gameid]'"); $gam1="Annehmen"; $gam2="Ablehnen"; eval ("\$challenge = \"".$tpl->get("arcade_gold_challeng_anzeige")."\";"); } } //------ Shortcut leiste $go_weit=0; if($action=="select"){ $db->query("UPDATE bb".$n."_arcade_gold_user SET shortcut=$typ WHERE userid=$wbbuser"); $useroptions = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid=$wbbuser"); $go_weit=1; } if($go_weit==1)$action="favorit"; if ($action == "kommentar" || $action == "favorit") { if($useroptions[shortcut]==1 || $typ==1){ $playbot=explode("," ,$useroptions[favoriten]); $type=0; $shortcut_sel="{$lang->items['LANG_ARCADEG_AGGFAVORITE']} --> {$lang->items['LANG_ARCADEG_AGGHEUTE']}"; }else{ $playbot=explode("," ,$useroptions[playbutton]); $type=1; $shortcut_sel="{$lang->items['LANG_ARCADEG_AGGFAVORITE']} <-- {$lang->items['LANG_ARCADEG_AGGHEUTE']}"; } for ($a=0;$a< 25;$a++) { if (empty($playbot[$a]))break; $playbo = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE active=0 AND gameid='$playbot[$a]'"); if($playbo[thumbnailname])$shortcut_bit.="$playbo[title]"; } eval ("\$shortcut = \"".$tpl->get("arcade_gold_shortcut")."\";"); } // ----- Kategorien ------------ if($action=="all" || $action=="my" || $action=="notplay" || $action=="favorit" || $action=="kommentar"){ $akatid = array();$si = 0; $result = $db->query("SELECT * FROM bb".$n."_arcadegames WHERE active='0' $ov18 ORDER BY kat ASC"); while ($row = $db->fetch_array($result)) { $akatid[$si] = $row['kat']; $si++; } $katrow = $db->query("SELECT * FROM bb".$n."_arcade_gold_kat WHERE kat_go=1 ORDER BY kat_pos ASC"); $s=0;$x=0;$cellsp=1; while($kat=$db->fetch_array($katrow)){ $count = 0;$count1=""; foreach($akatid as $key => $katid) { if ($katid ==$kat[kat_id])$count++; } $bild="";$katnam="$kat[kat_name]"; if($kat[kat_images]){ $katnam="";$cellsp=0; $bild="$count {$lang->items[
"; }else{ $count1=" (".$count.")"; } $kat_s.="$bild $katnam$count1"; $s++;$x++; if($s==$config[kats]){ $kat_s.=""; $s=0; } } if($s< $config[kats]){ for ($a=0;$a< $config[kats]-$s;$a++) { $kat_s.=""; } } if($x>0)eval("\$kat =(\"".$tpl->get("arcade_gold_kat")."\");"); } // ----- Seiten Sortierung ------------ if(isset($_GET['sortby'])) $sortby=$_GET['sortby']; else $sortby="name"; if(isset($_GET['order'])) $order=$_GET['order']; else $order="ASC"; switch($sortby) { case "name": break; case "hit": break; case "hit_session": break; case "gut_dyn": break; case "bezahl_dyn": break; default: $sortby = "name"; break; } switch($order) { case "ASC": break; case "DESC": break; default: $order = "DESC"; break; } $sel_sortby[$sortby]=" selected=\"selected\""; $sel_order[$order]=" selected=\"selected\""; $checking="info@web-dynamic.de"; $letteroptions=""; $alpha="#ABCDEFGHIJKLMNOPQRSTUVWXYZ"; if(!isset($_GET['letter']) || ($_GET['letter'] && !strstr($alpha,$_GET['letter']))) $letter=""; else $letter=urldecode($_GET['letter']); if(!isset($_GET['letter'])&&$action=="notplay")$letter="A"; for($i=0;$i query("UPDATE bb".$n."_arcade_gold_user SET hotclose='$clos' WHERE userid='$wbbuser'"); $useroptions['hotclose']=$clos; } $hot_game=explode("," ,$config['hotgames']); $list=$db->query("SELECT * FROM bb".$n."_arcadegames WHERE active='0' $ov18 ORDER BY title ASC"); $i=0;$si=0; while($game = $db->fetch_array($list)) { $hoot=0; for ($a=0;$a< 500;$a++) { if ($game[gameid] == $hot_game[$a]) { $hoot=1;break; } if (empty($hot_game[$a])) break; } if($hoot==1){ $max1_username=$max_a_username[$game[gameid]]; $max1_score=$max_a_score[$game[gameid]]; if($max1_score>0){ $top="{$lang->items['LANG_ARCADEG_HIGHSCOR']} $max1_username {$lang->items['LANG_ARCADEG_MIT']} $max1_score {$lang->items['LANG_ARCADEG_PUNKTEN']}"; }else{ $top="{$lang->items['LANG_ARCADEG_ARGKEINSPIEL']}"; } $si++; eval ("\$newgame_bit .= \"".$tpl->get("arcade_gold_newgame_bit")."\";"); $i++; if($i==8)break; } } $head="Hot Game's"; if($config[hot_gut])$massage .="$config[hot_gut] {$lang->items['LANG_ARCADEG_ARGGEWINNBEI']}  "; if($config[hot_bezahl])$massage .="{$lang->items['LANG_ARCADEG_ARGKOSTENSPIEL']} $config[hot_bezahl] $config[waehrung]."; $close="{$lang->items["; $ai=1; if($useroptions['hotclose']==1 && $i > 0){ $ai=0; $hotopen="   {$lang->items[
"; } if($ai > 0) eval ("\$hotgames = \"".$tpl->get("arcade_gold_hotgames")."\";"); $massage=""; } eval("\$arcade_header =(\"".$tpl->get("arcade_gold_header")."\");"); } // ------- Favoriten Games listen ------- if($action=="favoriten"){ $act=favoriten; $favor = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'"); $favor_game=explode("," ,$favor['favoriten']); $i=0;$si=0;$go=1; //echo "---- $letter ----"; if ($letter=="#") {$go=0; $games = $db->query("SELECT * FROM bb".$n."_arcadegames WHERE SUBSTRING(name,1,1) NOT IN ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z') AND active='0' $ov18 ORDER BY $sortby $order"); } elseif ($letter=="") {$go=0; $games = $db->query("SELECT * FROM bb".$n."_arcadegames WHERE active='0' $ov18 ORDER BY $sortby $order"); } else { $games = $db->query("SELECT * FROM bb".$n."_arcadegames WHERE SUBSTRING(name,1,1)='$letter' AND active='0' $ov18 ORDER BY $sortby $order"); } while($game = $db->fetch_array($games)) { $favorit=0; for ($a=0;$a< 500;$a++) { if ($game[gameid] == $favor_game[$a]) { $favorit=1;break; } if (empty($favor_game[$a])) break; } if($favorit==1){ $bezahlen=""; if($config[bezahl_janein]==1){ if($config[bezahl_dyn]==1){ if($config[bezahl_dyn_var]==1 && $game[bezahl_dyn]==0){ if($game[bezahl_fest] > 0){ $bezahldyn=$game[bezahl_fest]; }else{ $bezahldyn=$config[bezahl]; } $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $bezahldyn $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_dyn] $config[waehrung]
"; } if($config[bezahl_dyn]==0){ if($game[bezahl_fest]==0){ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[bezahl] $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_fest] $config[waehrung]
"; } } }else{ if($game[bezahl_fest]==0){ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[bezahl] $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_fest] $config[waehrung]
"; } } $hoot=0; for ($a=0;$a< 500;$a++) { if ($game[gameid] == $hot_game[$a]) { $hoot=1;break; } if (empty($hot_game[$a])) break; } if($config[hot_bezahl]>0 && $hoot==1)$bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[hot_bezahl] $config[waehrung]
"; } $guthaben=""; if($config[gewin_dyn]==1){ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $game[gut_dyn] $config[waehrung]"; }else{ if($game[gut_fest]==0){ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $config[gewinn] $config[waehrung]"; }else{ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $game[gut_fest] $config[waehrung]"; } } $mymax_score="";$max1_userid=""; $mymax_score=$mymax_a_score[$game[gameid]]; $max1_username=$max_a_username[$game[gameid]]; $max1_userid=$max_a_userid[$game[gameid]]; $max1_score=$max_a_score[$game[gameid]]; if(strlen($max1_username)>8) $max1_username=substr($max1_username, 0, 8)."."; if($max1_userid>0){ $top="$max1_username $max1_score"; }else{ $top="{$lang->items['LANG_ARCADEG_ARGKEINSPIEL']}"; } if($mymax_score>0){ $mytop="{$lang->items['LANG_ARCADEG_ARGMEINSCORE']} $mymax_score"; }else{ $mytop="{$lang->items['LANG_ARCADEG_ARGNIEGESPIELT']}"; } $bewertpig=""; if($game[bewertcount])$bewertpig=makebewert($game[bewertung], $game[bewertcount]); if($game[gameid]!=""){ if($oldstyle==1){ $backcolor=backcolor($counte++); eval ("\$oldstyle_bit .= \"".$tpl->get("arcade_gold_oldstyle_bit")."\";"); $si++; }else{ if(strlen($game[title])> 15) $game[title]=substr($game[title], 0, 15)."."; eval ("\$allgame = \"".$tpl->get("arcade_gold_intable")."\";"); eval ("\$allgame_bit[$i] .= \"".$tpl->get("arcade_gold_allgame_bit")."\";"); $i++;$si++; if($i==$goldbit)$i=0; } }else{ //if($si==0)$massage ="
{$lang->items['LANG_ARCADEG_ARGKEINSPIEL']} gefunden!

"; } }elseif (empty($favor['favoriten'])){ $massage ="
{$lang->items['LANG_ARCADEG_ARGKEINEFAVORITEN']}

"; } } if($si==0)$massage="
{$lang->items['LANG_ARCADEG_ARGKEINSPIELGEF']}

"; $head="Meine Favoriten";$link2=$m1;$link3=$m3;$link4=$m2;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; eval ("\$rollmenue = \"".$tpl->get("arcade_gold_roll")."\";"); if($oldstyle==1){ eval ("\$allgames = \"".$tpl->get("arcade_gold_oldstyle")."\";"); }else{ eval ("\$allgames = \"".$tpl->get("arcade_gold_allgames")."\";"); } } // ------- zuletzt gespielte Spiele listen ------- if($action=="my"){ $act=my; $list=$db->query("SELECT DISTINCT gameid FROM bb".$n."_arcade WHERE userid = $wbbuser ORDER BY date ASC"); $i=0;$si=0;great_check();$go=1; while($gam = $db->fetch_array($list)) { if ($letter=="#") {$go=0; $game = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid=$gam[gameid] AND active='0' $ov18 AND SUBSTRING(name,1,1) NOT IN ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z') ORDER BY $sortby $order"); } elseif ($letter=="") {$go=0; $game = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid=$gam[gameid] AND active='0' $ov18 ORDER BY $sortby $order"); } else { $game = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid=$gam[gameid] AND SUBSTRING(name,1,1)='$letter' AND active='0' $ov18 ORDER BY $sortby $order"); } if(!empty($game[gameid])){ $bezahlen=""; if($config[bezahl_janein]==1){ if($config[bezahl_dyn]==1){ if($config[bezahl_dyn_var]==1 && $game[bezahl_dyn]==0){ if($game[bezahl_fest] > 0){ $bezahldyn=$game[bezahl_fest]; }else{ $bezahldyn=$config[bezahl]; } $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $bezahldyn $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_dyn] $config[waehrung]
"; } if($config[bezahl_dyn]==0){ if($game[bezahl_fest]==0){ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[bezahl] $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_fest] $config[waehrung]
"; } } }else{ if($game[bezahl_fest]==0){ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[bezahl] $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_fest] $config[waehrung]
"; } } $hoot=0; for ($a=0;$a< 500;$a++) { if ($game[gameid] == $hot_game[$a]) { $hoot=1;break; } if (empty($hot_game[$a])) break; } if($config[hot_bezahl]>0 && $hoot==1)$bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[hot_bezahl] $config[waehrung]
"; } $guthaben=""; if($config[gewin_dyn]==1){ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $game[gut_dyn] $config[waehrung]"; }else{ if($game[gut_fest]==0){ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $config[gewinn] $config[waehrung]"; }else{ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $game[gut_fest] $config[waehrung]"; } } $mymax_score="";$max1_userid=""; $mymax_score=$mymax_a_score[$game[gameid]]; $max1_username=$max_a_username[$game[gameid]]; $max1_userid=$max_a_userid[$game[gameid]]; $max1_score=$max_a_score[$game[gameid]]; if(strlen($max1_username)>8) $max1_username=substr($max1_username, 0, 8)."."; if($max1_userid>0){ $top="$max1_username $max1_score"; }else{ $top="{$lang->items['LANG_ARCADEG_ARGKEINSPIEL']}"; } if($mymax_score>0){ $mytop="{$lang->items['LANG_ARCADEG_ARGMEINSCORE']} $mymax_score"; }else{ $mytop="{$lang->items['LANG_ARCADEG_ARGNIEGESPIELT']}"; } $bewertpig=""; if($game[bewertcount])$bewertpig=makebewert($game[bewertung], $game[bewertcount]); if($game[gameid]!=""){ if($oldstyle==1){ $backcolor=backcolor($counte++); eval ("\$oldstyle_bit .= \"".$tpl->get("arcade_gold_oldstyle_bit")."\";"); $si++; }else{ if(strlen($game[title])> 15) $game[title]=substr($game[title], 0, 15)."."; eval ("\$allgame = \"".$tpl->get("arcade_gold_intable")."\";"); eval ("\$allgame_bit[$i] .= \"".$tpl->get("arcade_gold_allgame_bit")."\";"); $i++;$si++; if($i==$goldbit)$i=0; } }else{ if($i==0)$massage ="
{$lang->items['LANG_ARCADEG_ARGKEINSPIELGEF']}

"; } if($si==24)break; } } if($si==0){ $massage ="
{$lang->items['LANG_ARCADEG_ARGNIHTGESPIELT']}

"; } $head="{$lang->items['LANG_ARCADEG_ARGZULETZTSPIELE']}";$link2=$m1;$link3=$m2;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; eval ("\$rollmenue = \"".$tpl->get("arcade_gold_roll")."\";"); if($oldstyle==1){ eval ("\$allgames = \"".$tpl->get("arcade_gold_oldstyle")."\";"); }else{ eval ("\$allgames = \"".$tpl->get("arcade_gold_allgames")."\";"); } } // ------- Alle Games listen ------- if($action==all){ $act=all;$head="";$toop=""; $go_back=1; if ($ltr==""){$ltr=A;$go_back=0;} if($katselekt){$katis="AND kat=$kat_id";} $letter = "#"; $linkletter = urlencode("#"); if ($ltr==$letter) { eval("\$letterbits = \"".$tpl->get("arcade_gold_letterselected")."\";"); } else { eval("\$letterbits = \"".$tpl->get("arcade_gold_letter")."\";"); } for ($i=65;$i<91;$i++) { $letter = chr($i); $linkletter = $letter; if ($ltr==$letter) { eval("\$letterbits .= \"".$tpl->get("arcade_gold_letterselected")."\";"); } else { eval("\$letterbits .= \"".$tpl->get("arcade_gold_letter")."\";"); } } $letter = "{$lang->items['LANG_ARCADEG_ALLE']}"; $linkletter = urlencode("{$lang->items['LANG_ARCADEG_ALLE']}"); if ($ltr==$letter) { eval("\$letterbits .= \"".$tpl->get("arcade_gold_letterselected")."\";"); } else { eval("\$letterbits .= \"".$tpl->get("arcade_gold_letter")."\";"); } if($useroptions[ov18]){ $letter = "{$lang->items['LANG_ARCADEG_FSK']}"; $linkletter = urlencode("{$lang->items['LANG_ARCADEG_FSK']}"); if ($ltr==$letter) { eval("\$letterbits .= \"".$tpl->get("arcade_gold_letterselected")."\";"); } else { eval("\$letterbits .= \"".$tpl->get("arcade_gold_letter")."\";"); } } $letter = "{$lang->items['LANG_ARCADEG_TOP']}"; $linkletter = urlencode("{$lang->items['LANG_ARCADEG_TOP']}"); if ($ltr==$letter) { eval("\$letterbits .= \"".$tpl->get("arcade_gold_letterselected")."\";"); } else { eval("\$letterbits .= \"".$tpl->get("arcade_gold_letter")."\";"); } if ($ltr!="") { if ($ltr=="#") { $condition = "name NOT REGEXP(\"^[a-zA-Z]\")"; }elseif($ltr=="{$lang->items['LANG_ARCADEG_ALLE']}"){$condition="name REGEXP(\"^[0-9a-zA-Z]\")"; }elseif($ltr=="{$lang->items['LANG_ARCADEG_FSK']}"){$condition="ov18='1'"; }elseif($ltr=="{$lang->items['LANG_ARCADEG_TOP']}"){$toop='1'; }elseif($ltr=="suchen"){$condition="name LIKE(\"%".addslashes($xsuche)."%\") OR description LIKE(\"%".addslashes($xsuche)."%\")"; }else { $ltr = chr(intval(ord($ltr))); $condition = "name LIKE(\"".addslashes($ltr)."%\")"; } } if ($toop) { $games = $db->query("SELECT * FROM bb".$n."_arcadegames WHERE active='0' AND bewertung >'0' $katis $ov18 ORDER BY bewertung DESC limit $gameperpage"); }else{ $arcadecount = $db->query_first("SELECT COUNT(name) as name FROM bb".$n."_arcadegames WHERE $condition $katis AND active='0' $ov18"); $arcadecount = $arcadecount[name]; if(isset($_GET['page'])) { $page=intval($_GET['page']); if($page==0) $page=1; } else $page=1; if($edpos)$page=$edpos; if ($arcadecount)$pages = ceil($arcadecount/$gameperpage); $anker="#sa"; if($pages>1) $pagelink=makeaglink("arcade_gold.php?action=all&katselekt=$katselekt&kat_id=$kat_id&katname=$katname&ltr=$ltr",$page,$pages,$showpagelinks-1,$anker); $pagelink="
$pagelink
"; $pagenumber = $page; $position = ($pagenumber-1) * $gameperpage; $games = $db->query("SELECT * FROM bb".$n."_arcadegames WHERE active='0' $ov18 AND $condition $katis ORDER BY name ASC LIMIT $position, $gameperpage"); } $i=0;$si=1;$sb=0;$ma=0; $favor = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'"); $ban_game=explode("," ,$favor['ban']); while($game = $db->fetch_array($games)) { $bezahlen=""; if($config[bezahl_janein]==1){ if($config[bezahl_dyn]==1){ if($config[bezahl_dyn_var]==1 && $game[bezahl_dyn]==0){ if($game[bezahl_fest] > 0){ $bezahldyn=$game[bezahl_fest]; }else{ $bezahldyn=$config[bezahl]; } $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $bezahldyn $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_dyn] $config[waehrung]
"; } if($config[bezahl_dyn]==0){ if($game[bezahl_fest]==0){ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[bezahl] $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_fest] $config[waehrung]
"; } } }else{ if($game[bezahl_fest]==0){ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[bezahl] $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_fest] $config[waehrung]
"; } } $hoot=0; for ($a=0;$a< 500;$a++) { if ($game[gameid] == $hot_game[$a]) { $hoot=1;break; } if (empty($hot_game[$a])) break; } if($config[hot_bezahl]>0 && $hoot==1)$bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[hot_bezahl] $config[waehrung]
"; } $guthaben=""; if($config[gewin_dyn]==1){ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $game[gut_dyn] $config[waehrung]"; }else{ if($game[gut_fest]==0){ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $config[gewinn] $config[waehrung]"; }else{ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $game[gut_fest] $config[waehrung]"; } } $mymax_score="";$max1_userid=""; $mymax_score=$mymax_a_score[$game[gameid]]; $max1_username=$max_a_username[$game[gameid]]; $max1_userid=$max_a_userid[$game[gameid]]; $max1_score=$max_a_score[$game[gameid]]; if(strlen($max1_username)>8) $max1_username=substr($max1_username, 0, 8)."."; if($max1_userid>0){ $top="$max1_username $max1_score"; }else{ $top="{$lang->items['LANG_ARCADEG_ARGKEINSPIEL']}"; } if($mymax_score>0){ $mytop="{$lang->items['LANG_ARCADEG_ARGMEINSCORE']} $mymax_score"; }else{ $mytop="{$lang->items['LANG_ARCADEG_ARGNIEGESPIELT']}"; } $bewertpig=""; if($game[bewertcount])$bewertpig=makebewert($game[bewertung], $game[bewertcount]); $stop=0; for ($a=0;$a< 500;$a++) { if ($game[gameid] == $ban_game[$a]) { $stop=1;$sb++; } if (empty($ban_game[$a])) break; } $head="{$lang->items['LANG_ARCADEG_AGGALLESPIELE']}";$link2=$m3;$link3=$m2;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; if($katselekt)$head="$katname"; if($xsuche)$head="{$lang->items['LANG_ARCADEG_SUCHEN']}: $xsuche"; if($goban==1){ $stoop=1;$sb=0; $heade="{$lang->items['LANG_ARCADEG_ARGGEBANNTESPIELE']}";$link1=$m1;$link2=$m3;$link3=$m2;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; }else{ $stoop=0; } if($stop==$stoop){ if($oldstyle==1){ $backcolor=backcolor($counte++); $ma++; eval ("\$oldstyle_bit .= \"".$tpl->get("arcade_gold_oldstyle_bit")."\";"); }else{ if(strlen($game[title])> 15) $game[title]=substr($game[title], 0, 15)."."; eval ("\$allgame = \"".$tpl->get("arcade_gold_intable")."\";"); $si++; eval ("\$allgame_bit[$i] .= \"".$tpl->get("arcade_gold_allgame_bit")."\";"); $i++;$ma++; if($i==$goldbit)$i=0; } eval("\$letterin= \"".$tpl->get("arcade_gold_letterin")."\";"); } } if($sb==1)$ban_massage="$sb {$lang->items['LANG_ARCADEG_ARGGEBANNTEGELISTET3']}  {$lang->items['LANG_ARCADEG_ARGGEBANNTEGELISTET2']}

"; if($sb >1)$ban_massage="$sb {$lang->items['LANG_ARCADEG_ARGGEBANNTEGELISTET1']}  {$lang->items['LANG_ARCADEG_ARGGEBANNTEGELISTET2']}

"; if($ma==0){$massage="
{$lang->items['LANG_ARCADEG_ARGKEINSPIEL']} {$lang->items['LANG_ARCADEG_MIT']} - $ltr - {$lang->items['LANG_ARCADEG_ARGKEINSPGEFUNDEN2']}

"; $head="{$lang->items['LANG_ARCADEG_USERCPALLESPIELE']}";$link2=$m3;$link3=$m2;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; if($katselekt)$head="$katname"; if($xsuche)$head="{$lang->items['LANG_ARCADEG_SUCHEN']}: $xsuche"; eval("\$letterin= \"".$tpl->get("arcade_gold_letterin")."\";"); } if($katselekt){ $head="$katname"; $link2=$m1; if($ma==0)$massage="
{$lang->items['LANG_ARCADEG_ARGKEINSPIEL']} {$lang->items['LANG_ARCADEG_KATIND']} $katname - {$lang->items['LANG_ARCADEG_ARGKEINSPGEFUNDEN2']}

"; } if($xsuche){ $head="{$lang->items['LANG_ARCADEG_SUCHEN']}: $xsuche"; $link2=$m1; if($ma==0)$massage="
{$lang->items['LANG_ARCADEG_ARGKEINSPIEL']} {$lang->items['LANG_ARCADEG_MIT']} - $xsuche - {$lang->items['LANG_ARCADEG_ARGKEINSPGEFUNDEN2']}

"; } if($oldstyle==1){ eval ("\$allgames = \"".$tpl->get("arcade_gold_oldstyle")."\";"); }else{ eval ("\$allgames = \"".$tpl->get("arcade_gold_allgames")."\";"); } } // ------- Spiele die ich noch nie gespielt habe listen ------- if($action=="notplay"){ $act=notplay; if ($letter=="#") { $list = $db->query("SELECT * FROM bb".$n."_arcadegames WHERE SUBSTRING(name,1,1) NOT IN ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z') AND active='0' $ov18 ORDER BY $sortby $order"); } elseif ($letter=="") { $list = $db->query("SELECT * FROM bb".$n."_arcadegames WHERE active='0' $ov18 ORDER BY $sortby $order"); } else { $list = $db->query("SELECT * FROM bb".$n."_arcadegames WHERE SUBSTRING(name,1,1)='$letter' AND active='0' $ov18 ORDER BY $sortby $order"); } $i=0; while($game = $db->fetch_array($list)) { $gam=$db->query("SELECT a.userid as session, a.gameid, b.userid FROM bb".$n."_arcade_session a LEFT JOIN bb".$n."_arcade b ON b.gameid=a.gameid WHERE a.gameid=$game[gameid]"); $go=1; while($dum = $db->fetch_array($gam)) { if($dum[userid]==$wbbuser || $dum[session]==$wbbuser){ $go=0;break; } } $bezahlen=""; if($config[bezahl_janein]==1){ if($config[bezahl_dyn]==1){ if($config[bezahl_dyn_var]==1 && $game[bezahl_dyn]==0){ if($game[bezahl_fest] > 0){ $bezahldyn=$game[bezahl_fest]; }else{ $bezahldyn=$config[bezahl]; } $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $bezahldyn $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_dyn] $config[waehrung]
"; } if($config[bezahl_dyn]==0){ if($game[bezahl_fest]==0){ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[bezahl] $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_fest] $config[waehrung]
"; } } }else{ if($game[bezahl_fest]==0){ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[bezahl] $config[waehrung]
"; }else{ $bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $game[bezahl_fest] $config[waehrung]
"; } } $hoot=0; for ($a=0;$a< 500;$a++) { if ($game[gameid] == $hot_game[$a]) { $hoot=1;break; } if (empty($hot_game[$a])) break; } if($config[hot_bezahl]>0 && $hoot==1)$bezahlen=" {$lang->items['LANG_ARCADEG_ARGKOSTEN']} $config[hot_bezahl] $config[waehrung]
"; } $guthaben=""; if($config[gewin_dyn]==1){ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $game[gut_dyn] $config[waehrung]"; }else{ if($game[gut_fest]==0){ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $config[gewinn] $config[waehrung]"; }else{ $guthaben=" {$lang->items['LANG_ARCADEG_ARGGEWINN']} $game[gut_fest] $config[waehrung]"; } } $mymax_score="";$max1_userid=""; $mymax_score=$mymax_a_score[$game[gameid]]; $max1_username=$max_a_username[$game[gameid]]; $max1_userid=$max_a_userid[$game[gameid]]; $max1_score=$max_a_score[$game[gameid]]; if(strlen($max1_username)>8) $max1_username=substr($max1_username, 0, 8)."."; if($max1_userid>0){ $top="$max1_username $max1_score"; }else{ $top="{$lang->items['LANG_ARCADEG_ARGKEINSPIEL']}"; } if($mymax_score>0){ $mytop="{$lang->items['LANG_ARCADEG_ARGMEINSCORE']} $mymax_score"; }else{ $mytop="{$lang->items['LANG_ARCADEG_ARGNIEGESPIELT']}"; } $bewertpig=""; if($game[bewertcount])$bewertpig=makebewert($game[bewertung], $game[bewertcount]); if($oldstyle==1){ if($go==1){ $backcolor=backcolor($counte++); eval ("\$oldstyle_bit .= \"".$tpl->get("arcade_gold_oldstyle_bit")."\";"); } }else{ if(strlen($game[title])> 15) $game[title]=substr($game[title], 0, 15)."."; eval ("\$allgame = \"".$tpl->get("arcade_gold_intable")."\";"); if($go==1) { eval ("\$allgame_bit[$i] .= \"".$tpl->get("arcade_gold_allgame_bit")."\";"); $i++; } if($i==$goldbit)$i=0; } } $head="{$lang->items['LANG_ARCADEG_ARGSPIELEICHNIE']}"; $link2=$m1;$link3=$m3;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; eval ("\$rollmenue = \"".$tpl->get("arcade_gold_roll")."\";"); if($oldstyle==1){ eval ("\$allgames = \"".$tpl->get("arcade_gold_oldstyle")."\";"); }else{ eval ("\$allgames = \"".$tpl->get("arcade_gold_allgames")."\";"); } } if ($action == "cheater") { $wonguthaben=$config['gewinn']*$config['xtras']; if ($config['gut_janein'] == 0)$config['gut_janein'] = 2; if ($config['gut_janein'] == 1){ $massag="{$lang->items['LANG_ARCADEG_ARGWARNIX1']} $wonguthaben $config[waehrung] {$lang->items['LANG_ARCADEG_ARGWARNIX2']}"; $db->query("INSERT INTO $dbt (kid,userid,datum,uhrzeit,info,betrag,art) VALUES ('','$wbbuser','".date("d.m.y")."','".date("H:i")."','{$lang->items['LANG_ARCADEG_ARGWEGENCHEATEN']} $gametitle','$wonguthaben','minus')"); $db->query("UPDATE $dbtu SET guthaben=guthaben-$wonguthaben WHERE userid='$wbbuser'"); } elseif ($config['gut_janein'] == 2) { $massag="{$lang->items['LANG_ARCADEG_ARGWARNIX1']} $wonguthaben $config[waehrung] {$lang->items['LANG_ARCADEG_ARGWARNIX2']}"; $db->query("INSERT INTO $dbt (kid,userid,datum,info,betrag,art) VALUES ('','$wbbuser','".time()."','{$lang->items['LANG_ARCADEG_ARGWEGENCHEATEN']} $gametitle','$wonguthaben','minus')"); $db->query("UPDATE $dbtu SET guthaben=guthaben-$wonguthaben WHERE userid='$wbbuser'"); } $db->query("INSERT INTO bb".$n."_arcade (gameid,game,date,time,userid,username,score,comment) VALUES ('$gameid','$gametitle','$currDate','$currTime','$wbbuser','$username','1','$username {$lang->items['LANG_ARCADEG_ISTCHEATER']}')"); $db->query("INSERT INTO bb".$n."_arcade_gold_news (newstext,newstype,newstime) VALUES ('{$lang->items['LANG_ARCADEG_BEI']} $gametitle {$lang->items['LANG_ARCADEG_CHEATVER']} {$lang->items['LANG_ARCADEG_CHEATEN']} :-)','cheat','".time()."')"); if(!$config[heade])$header=""; eval("\$allgames =(\"".$tpl->get("arcade_gold_no")."\");"); eval("\$tpl->output(\"".$tpl->get("arcade_gold")."\");"); exit; } //#############------------------ Kommentar -------------------- if ($action == "kommentar") { $wette = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'");great_check(); if ($subaction=="addcomment") { if ($comment == "") { $db->query("UPDATE bb".$n."_arcade_gold_user SET can_play='0' WHERE userid='$wbbuser'"); if($config[kom_pflicht]==1 && $position<=$config[kommentar]){ $db->query("DELETE FROM bb".$n."_arcade WHERE scoreid='$newscoreid' AND userid='$wbbuser'"); $db->query("OPTIMIZE TABLE bb".$n."_arcade"); $comment = 0; if($wette[einsatz]>0){ if ($config['gut_janein'] == 0)$config['gut_janein'] = 2; if ($config['gut_janein'] == 1){ $db->query("UPDATE $dbtu set guthaben=guthaben-$wette[einsatz] where userid='$wbbuser'"); $db->query("INSERT INTO $dbt (kid,userid,datum,uhrzeit,info,betrag,art) VALUES ('','$wbbuser','".date("d.m.y")."','".date("H:i")."','{$lang->items['LANG_ARCADEG_ARGKEINKOMMETAR1']} $gametitle','$wette[einsatz]','minus')"); $db->query("UPDATE bb".$n."_arcade_gold_user SET einsatz='0' WHERE userid='$wbbuser'"); } elseif ($config['gut_janein'] == 2) { $db->query("UPDATE $dbtu set guthaben=guthaben-$wette[einsatz] where userid='$wbbuser'"); $db->query("INSERT INTO $dbt (kid,userid,datum,info,betrag,art) VALUES ('','$wbbuser','".time()."','{$lang->items['LANG_ARCADEG_ARGKEINKOMMETAR1']} $gametitle','$wette[einsatz]','minus')"); $db->query("UPDATE bb".$n."_arcade_gold_user SET einsatz='0' WHERE userid='$wbbuser'"); } } }else{ $comment = "Kein Kommentar"; } }else{ $comment = addslashes($comment); $comment = htmlspecialchars($comment); } if ($comment!='0'){ if($position != 1){ $max1 = $db->query_first("SELECT score, username, userid FROM bb".$n."_arcade WHERE gameid=$gameid ORDER BY score DESC"); $div=$max1[score]-$_POST['score']; if($max1[userid]==$wbbuser){ $gewin="{$lang->items['LANG_ARCADEG_ARGHERZLICHGLUECK4']} $div {$lang->items['LANG_ARCADEG_ARGHERZLICHGLUECK5']} $max1[score] {$lang->items['LANG_ARCADEG_PUNKTEN']}
"; }else{ $gewin="{$lang->items['LANG_ARCADEG_ARGHERZLICHGLUECK4']} $div {$lang->items['LANG_ARCADEG_ARGHERZLICHGLUECK6']} $max1[score] {$lang->items['LANG_ARCADEG_VON']} $max1[username]
"; } } $einsatz=$wette[einsatz]*2; if ($position <= $config[gewinn_pos]) { $gewinn_dyn=betrag_dyn($gameid); $db-> query("UPDATE bb".$n."_arcadegames SET championid='$wbbuser', gut_dyn='$gewinn_dyn' WHERE gameid='$gameid'"); if($config['gewin_dyn']==1){ $wonguthaben = $gewinn_dyn; }else{ $guth = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid='$gameid'"); if($guth[gut_fest]==0){ $wonguthaben=$config[gewinn]; }else{ $wonguthaben=$guth[gut_fest]; } } # Start: Guthaben-Hack $hot_game=explode("," ,$config['hotgames']); $hot=0; for ($a=0;$a< 100;$a++) { if ($gameid == $hot_game[$a]) { $hoot=$wonguthaben*$config['hot_gut']; $hoot=$hoot-$wonguthaben; break; } if (empty($hot_game[$a])) break; } if($position != 1){ $einsatz=0; if($wette[einsatz]>0){ $gewi="
{$lang->items['LANG_ARCADEG_ARGHIGHSCORENICHT1']} $wette[einsatz] $config[waehrung] {$lang->items['LANG_ARCADEG_ARGHIGHSCORENICHT2']}"; } } $userdat = $db->query_first("SELECT guthaben FROM $dbtu WHERE userid = '$wbbuser'"); $wonguth = $wonguthaben+$hoot+$einsatz; $wonguthaben =$wonguth / $position; $wonguthaben=round($wonguthaben); $sum=$userdat[guthaben]+$wonguthaben; $gewin.="{$lang->items['LANG_ARCADEG_ARGHERZLICHGLUECK1']} $wonguthaben $config[waehrung] {$lang->items['LANG_ARCADEG_ARGHERZLICHGLUECK2']}
{$lang->items['LANG_ARCADEG_ARGHERZLICHGLUECK3']} $sum $config[waehrung]"; if ($config['gut_janein'] == 0)$config['gut_janein'] = 2; if ($config['gut_janein'] == 1){ if($useroptions[can_play]!=2){ $gewin="{$lang->items['LANG_ARCADEG_ARGWARNIX1']} $wonguthaben $config[waehrung] {$lang->items['LANG_ARCADEG_ARGWARNIX2']}"; $db->query("INSERT INTO $dbt (kid,userid,datum,uhrzeit,info,betrag,art) VALUES ('','$wbbuser','".date("d.m.y")."','".date("H:i")."','{$lang->items['LANG_ARCADEG_ARGWEGENCHEATEN']} $gametitle','$wonguthaben','minus')"); $db->query("UPDATE $dbtu SET guthaben=guthaben-$wonguthaben WHERE userid='$wbbuser'"); }else{ $db->query("UPDATE $dbtu set guthaben=guthaben+$wonguthaben where userid='$wbbuser'"); $db->query("INSERT INTO $dbt (kid,userid,datum,uhrzeit,info,betrag,art) VALUES ('','$wbbuser','".date("d.m.y")."','".date("H:i")."','{$lang->items['LANG_ARCADEG_ARGPLATZIM1']} $position {$lang->items['LANG_ARCADEG_ARGPLATZIM2']} $gametitle','$wonguthaben','plus')"); $db->query("UPDATE bb".$n."_arcade_gold_user SET einsatz='0', can_play='0' WHERE userid='$wbbuser'"); } } elseif ($config['gut_janein'] = 2) { if($useroptions[can_play]!=2){ $gewin="{$lang->items['LANG_ARCADEG_ARGWARNIX1']} $wonguthaben $config[waehrung] {$lang->items['LANG_ARCADEG_ARGWARNIX2']}"; $db->query("INSERT INTO $dbt (kid,userid,datum,info,betrag,art) VALUES ('','$wbbuser','".time()."','{$lang->items['LANG_ARCADEG_ARGWEGENCHEATEN']} $gametitle','$wonguthaben','minus')"); $db->query("UPDATE $dbtu SET guthaben=guthaben-$wonguthaben WHERE userid='$wbbuser'"); }else{ $db->query("UPDATE $dbtu set guthaben=guthaben+$wonguthaben where userid='$wbbuser'"); $db->query("INSERT INTO $dbt (kid,userid,datum,info,betrag,art) VALUES ('','$wbbuser','".time()."','{$lang->items['LANG_ARCADEG_ARGPLATZIM1']} $position {$lang->items['LANG_ARCADEG_ARGPLATZIM2']} $gametitle','$wonguthaben','plus')"); $db->query("UPDATE bb".$n."_arcade_gold_user SET einsatz='0', can_play='0' WHERE userid='$wbbuser'"); } } if($position == 1){ $fsk = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid='$gameid'"); if($fsk[ov18]){ $link=$gametitle; }else{ $link="$gametitle"; } $db->query("INSERT INTO bb".$n."_arcade_gold_news (newstext,newstype,newstime) VALUES ('$username {$lang->items['LANG_ARCADEG_NEWS']} $link {$lang->items['LANG_ARCADEG_NEWSCHAMP']}','newchamp','".time()."')"); $db->query("UPDATE bb".$n."_arcade_session_aktiv SET userid='$wbbuser',user='$username', score='$score' WHERE gameid='$gameid'"); $session_count = $db->query_first("SELECT count(userid) as win FROM bb".$n."_arcade_session_aktiv WHERE userid='$wbbuser'"); $db->query("UPDATE bb".$n."_arcade_session_aktiv SET count=$session_count[win] WHERE userid='$wbbuser'"); if($highscore_userid){ $session_count = $db->query_first("SELECT count(userid) as win FROM bb".$n."_arcade_session_aktiv WHERE userid='$highscore_userid'"); $db->query("UPDATE bb".$n."_arcade_session_aktiv SET count=$session_count[win] WHERE userid='$highscore_userid'"); } if($wbbuser!=$highscore_userid){ $useropt = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$highscore_userid'"); if($useropt[mail_highscore]==1){ $mailer = $db->query_first("SELECT * FROM bb".$n."_users WHERE userid='$highscore_userid'"); $mail_text="{$lang->items['LANG_ARCADEG_MAIL1']} $mailer[username], \n \n $username {$lang->items['LANG_ARCADEG_MAIL2']} $gametitle {$lang->items['LANG_ARCADEG_MAIL3']} \n\n {$lang->items['LANG_ARCADEG_MAIL31']} $highscore_score - {$lang->items['LANG_ARCADEG_MAIL32']} $score \n\n {$lang->items['LANG_ARCADEG_MAIL4']} $username: $comment \n \n {$lang->items['LANG_ARCADEG_MAIL5']} $url2board/arcade_gold.php?action=playgame&gameid=$gameid \n \n {$lang->items['LANG_ARCADEG_MAIL6']} \n \n {$lang->items['LANG_ARCADEG_MAIL7']} $master_board_name {$lang->items['LANG_ARCADEG_MAIL8']}"; $mail_subject="{$lang->items['LANG_ARCADEG_MAILUEBER']} $gametitle"; mailer($mailer[email], $mail_subject, $mail_text); } if($useropt[pn_highscore]==1){ $pntext="{$lang->items['LANG_ARCADEG_MAIL1']} $useropt[username], \n \n $username {$lang->items['LANG_ARCADEG_MAIL2']} [B]$gametitle [/B]{$lang->items['LANG_ARCADEG_MAIL3']} \n\n {$lang->items['LANG_ARCADEG_MAIL31']} [B]$highscore_score [/B] - {$lang->items['LANG_ARCADEG_MAIL32']} [B]$score [/B]\n\n {$lang->items['LANG_ARCADEG_MAIL4']} $username: $comment \n \n {$lang->items['LANG_ARCADEG_MAIL5']} [URL=$url2board/arcade_gold.php?action=playgame&gameid=$gameid][/URL] \n \n"; //$db->query("INSERT INTO bb".$n."_privatemessage (senderid,recipientid,subject,message,sendtime)VALUES ('$wbbuser','$useropt[userid]','Highscore bei $gametitle','$pntext','$jetztzeit')"); $subject="Highscore bei $gametitle"; send_pn($wbbuser, $useropt[userid], $subject, $pntext); } } } } $db-> query("UPDATE bb".$n."_arcade SET comment='$comment' WHERE scoreid='$newscoreid' AND userid='$wbbuser'"); } } $styles="";$link1=$m1;$link2=$m2;$link3=$m3;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; $favor = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'"); $favor_game=explode("," ,$favor['favoriten']); for ($i=0;$i< 500;$i++) { if ($gameid == $favor_game[$i]) { $favorit=1;break; } if (empty($favor_game[$i])) break; } if($favorit==1){ $favori="$gametitle {$lang->items['LANG_ARCADEG_ARGAUSFAVORITENENT']}
"; }else{ $favori="$gametitle {$lang->items['LANG_ARCADEG_ARGZUFAVORITENHINZ']}
"; } $bewert_game=explode("," ,$favor['bewert']); for ($i=0;$i< 2000;$i++) { if ($gameid == $bewert_game[$i]) { $bewertno=1;break; } if (empty($bewert_game[$i])) break; } if(!$bewertno)eval("\$bewertbit =(\"".$tpl->get("arcade_gold_bewertung")."\");"); eval("\$allgames =(\"".$tpl->get("arcade_gold_weiter")."\");"); } //------------ Favoriten ------------------- if ($action == "favorit") { $dum = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid='$gameid'"); $gametitle=$dum[title]; if ($hinzu == "hinzu") { $favor = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'"); if (empty($favor[favoriten])){ $favor[favoriten].= "$gameid,"; }else{ $favor[favoriten].= ",$gameid,"; } $stc=strlen($favor[favoriten]); $stc=$stc-1; $favor[favoriten]=substr($favor[favoriten],0,$stc); $db->query("UPDATE bb".$n."_arcade_gold_user SET favoriten='$favor[favoriten]' WHERE userid='$wbbuser'"); } if ($entfern == "entfern") { $favor = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'"); $favor_game=explode("," ,$favor['favoriten']); for ($i=0;$i< 500;$i++) { if ($gameid != $favor_game[$i]) { if (empty($favor_game[$i])) break; $newfovor.="$favor_game[$i],"; } } $stc=strlen($newfovor); $stc=$stc-1; $newfovor=substr($newfovor,0,$stc); $db->query("UPDATE bb".$n."_arcade_gold_user SET favoriten='$newfovor' WHERE userid='$wbbuser'"); } //------------ Bewerten ------------------- if ($bewerten == "bewerten") { if(isset($_POST['send'])){ $db->query("UPDATE bb".$n."_arcadegames SET bewertcount=bewertcount+1, bewertung=bewertung+$bewert WHERE gameid='$gameid'"); } } $bewert = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'"); if (empty($bewert[bewert])){ $bewert[bewert].= "$gameid,"; }else{ $bewert[bewert].= ",$gameid,"; } $stc=strlen($bewert[bewert]); $stc=$stc-1; $bewert[bewert]=substr($bewert[bewert],0,$stc); $db->query("UPDATE bb".$n."_arcade_gold_user SET bewert='$bewert[bewert]' WHERE userid='$wbbuser'"); $bewertno=1; $styles="";$link1=$m1;$link2=$m2;$link3=$m3;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; $favor = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'"); $favor_game=explode("," ,$favor['favoriten']); for ($i=0;$i< 100;$i++) { if ($gameid == $favor_game[$i]) { $favorit=1; } } if($favorit==1){ $favori="$gametitle {$lang->items['LANG_ARCADEG_ARGAUSFAVORITENENT']}
"; }else{ $favori="$gametitle {$lang->items['LANG_ARCADEG_ARGZUFAVORITENHINZ']}"; } if(!$bewertno)eval("\$bewertbit =(\"".$tpl->get("arcade_gold_bewertung")."\");"); eval("\$allgames =(\"".$tpl->get("arcade_gold_weiter")."\");"); } if ($action == "play") { $db->query("UPDATE bb".$n."_arcade_gold_config SET gameurl='?'"); } if ($action == "playgame") { great_check(); if ($wbbuser == 0) {eval("\$allgames =(\"".$tpl->get("arcade_gold_no")."\");"); }else{ if($useroptions[gameid]!=$gameid)$db->query("UPDATE bb".$n."_arcade_gold_user SET fastplay='0',fastcount='0' WHERE userid=$wbbuser"); $db->query("UPDATE bb".$n."_arcade_gold_user SET challeng='$id' WHERE userid=$wbbuser"); $hot_game=explode("," ,$config['hotgames']); $hot=0;$hot_bezahlen=0; for ($a=0;$a< 100;$a++) { if ($gameid == $hot_game[$a]) { if($config[hot_bezahl]>0)$hot_bezahlen=1; $hotmassage="{$lang->items['LANG_ARCADEG_HOTGAM']}
{$lang->items['LANG_ARCADEG_ARGGEWINN']} $config[hot_gut] {$lang->items['LANG_ARCADEG_FACH']}
"; $cp5="{$lang->items['LANG_ARCADEG_HOTGAM']}
{$lang->items['LANG_ARCADEG_ARGGEWINN']} $config[hot_gut] {$lang->items['LANG_ARCADEG_FACH']}";break; $hotm=1; } if (empty($hot_game[$a])){ $hotmassage="{$lang->items['LANG_ARCADEG_KEIN']}
{$lang->items['LANG_ARCADEG_HOTGAM']}
"; $cp5="{$lang->items['LANG_ARCADEG_ARGACHTUNGKEINHOTGAME']}"; $hotm=0; break;} } $guth = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid='$gameid'"); if($config['bezahl_janein']> 0){ if($config['bezahl_dyn']==1){ $bezahlen=bezahl_dyn($gameid); $db->query("UPDATE bb".$n."_arcadegames SET bezahl_dyn='$bezahlen' WHERE gameid='$gameid'"); }else{ if($guth[bezahl_fest]==0){ $bezahlen=$config[bezahl]; }else{ $bezahlen=$guth[bezahl_fest]; } } if($hot_bezahlen==1)$bezahlen=$config[hot_bezahl]; } if($config[gut_janein]==0){ $guthab=$useroptions[guthaben]; }else{ $guthab=$wbbuserdata[guthaben]; } if($guthab< $bezahlen){ $massag="{$lang->items['LANG_ARCADEG_ARGKEINGELDSPIEL']}"; if(!$config[heade])$header=""; eval("\$allgames =(\"".$tpl->get("arcade_gold_no")."\");"); eval("\$tpl->output(\"".$tpl->get("arcade_gold")."\");"); exit; } if($guth[active] || !$guth[gameid]){ $massag="$game {$lang->items['LANG_ARCADEG_NICHTV']}"; if(!$config[heade])$header=""; eval("\$allgames =(\"".$tpl->get("arcade_gold_no")."\");"); eval("\$tpl->output(\"".$tpl->get("arcade_gold")."\");"); exit; } if($useroptions[einsatz])$db->query("UPDATE bb".$n."_arcade_gold_user SET einsatz='0' WHERE userid='$wbbuser'"); $highscore = $db-> query_first("SELECT * FROM bb".$n."_arcade WHERE gameid='$gameid' ORDER BY score DESC LIMIT 1"); $gamedat = $db-> query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid='$gameid'"); $mtitle = strtolower($gamedat['title']); if (substr_count($mtitle, "yeti")) { $backgroundsound = ""; } if($go==1)$useroptions[highscore_set]=0; if($useroptions[highscore_set]==1){$go=0; $wettscore=check_wettscore($gameid); if($config[wetten_janein]==0)$wettscore=0; if($highscore[userid]==$wbbuser && !$config[wett_self])$wettscore=0; if($id)$wettscore=20; if($fastp)$wettscore=0; if($wettscore > 10){ if($highscore[score] >=$wettscore || $id >0){ $myscore = $db-> query_first("SELECT * FROM bb".$n."_arcade WHERE gameid='$gameid' AND userid='$wbbuser' ORDER BY score DESC LIMIT 1"); if($id)$cp5="{$lang->items['LANG_ARCADEG_CHALLENGES']}"; if($config[gut_janein]==0){ $guthab=$useroptions[guthaben]; }else{ $guthab=$wbbuserdata[guthaben]; } $wetteinsatz=explode("," ,$config['wetteinsatz']); for ($a=0;$a< 30;$a++) { if (empty($wetteinsatz[$a])) break; if($guthab >=$wetteinsatz[$a])$wett_bit.=""; } if(!$myscore[score])$myscore[score]=0; $cp1="{$lang->items['LANG_ARCADEG_HIGHSCOR']} $highscore[score]"; $cp2="{$lang->items['LANG_ARCADEG_ARGDURCHSCHNIT']} $wettscore"; $cp3="{$lang->items['LANG_ARCADEG_ARGDEINSCOREE']} $myscore[score]"; $cp4="{$lang->items['LANG_ARCADEG_ARGGUTHABEN']} $guthab"; $cp6="{$lang->items['LANG_ARCADEG_ARGKOSTENSPIEL']} $bezahlen "; if($id){ $dum=$db->query_first("SELECT * FROM bb".$n."_arcade_gold_challenges WHERE id='$id'"); $dumm=$db->query_first("SELECT sum(einsatz)as topf FROM bb".$n."_arcade_gold_challenges WHERE challeng_id='$dum[challeng_id]'"); $wincount = $db->query_first("SELECT COUNT(gameid) as menge FROM bb".$n."_arcade_gold_challenges WHERE challeng_id = $dum[challeng_id]"); $wonguthaben=$config['gewinn_chall']*$wincount[menge]; $text="$gamedat[title] {$lang->items['LANG_ARCADEG_CHALLENGES']}{$lang->items['LANG_ARCADEG_WETTCHALL']} $wonguthaben $config[waehrung]{$lang->items['LANG_ARCADEG_WETTCHALL1']} $dumm[topf] $config[waehrung]"; $heade="$gamedat[title] {$lang->items['LANG_ARCADEG_CHALLENGES']}"; }else{ $heade="$gamedat[title] {$lang->items['LANG_ARCADEG_WETTENHIGSCORESETZEN']}"; $text="{$lang->items['LANG_ARCADEG_WETTENTEXT']}"; } $weiter="{$lang->items['LANG_ARCADEG_ARGDIREKTZUMSPIEL']}"; $styles="";$link1=$m1;$link2=$m2;$link3=$m3;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; eval("\$allgames =(\"".$tpl->get("arcade_gold_wetten")."\");"); }else{ $go=1; } }else{ $go=1; } }else{ $go=1; } if($_POST['send'] && $_POST['einsatz']){ if($id){ $db->query("UPDATE bb".$n."_arcade_gold_challenges SET einsatz='$einsatz' WHERE id='$id'"); $einsatztext="{$lang->items['LANG_ARCADEG_CHALLTOPF']}"; }else{ $db->query("UPDATE bb".$n."_arcade_gold_user SET einsatz='$einsatz' WHERE userid='$wbbuser'"); $einsatztext="{$lang->items['LANG_ARCADEG_GBEWTTENINSATZ1']}"; } if ($config['gut_janein'] == 0)$config['gut_janein'] = 2; if ($config['gut_janein'] == 1){ $db->query("UPDATE $dbtu set guthaben=guthaben-$einsatz where userid='$wbbuser'"); $db->query("INSERT INTO $dbt (kid,userid,datum,uhrzeit,info,betrag,art) VALUES ('','$wbbuser','".date("d.m.y")."','".date("H:i")."','$gamedat[title] $einsatztext','$einsatz','minus')"); } elseif ($config['gut_janein'] == 2) { $db->query("UPDATE $dbtu set guthaben=guthaben-$einsatz where userid='$wbbuser'"); $db->query("INSERT INTO $dbt (kid,userid,datum,info,betrag,art) VALUES ('','$wbbuser','".time()."','$gamedat[title] $einsatztext','$einsatz','minus')"); } $go=1; } if($go==1){ if($config['bezahl_janein']> 0){ if ($config['gut_janein'] == 0)$config['gut_janein'] = 2; if ($config['gut_janein'] == 1){ $db->query("UPDATE $dbtu set guthaben=guthaben-$bezahlen where userid='$wbbuser'"); $db->query("INSERT INTO $dbt (kid,userid,datum,uhrzeit,info,betrag,art) VALUES ('','$wbbuser','".date("d.m.y")."','".date("H:i")."','{$lang->items['LANG_ARCADEG_ARGARCADEGAME1']} $gamedat[title] {$lang->items['LANG_ARCADEG_ARGARCADEGAME2']}','$bezahlen','minus')"); } elseif ($config['gut_janein'] == 2) { $db->query("UPDATE $dbtu set guthaben=guthaben-$bezahlen where userid='$wbbuser'"); $db->query("INSERT INTO $dbt (kid,userid,datum,info,betrag,art) VALUES ('','$wbbuser','".time()."','{$lang->items['LANG_ARCADEG_ARGARCADEGAME1']} $gamedat[title] {$lang->items['LANG_ARCADEG_ARGARCADEGAME2']}','$bezahlen','minus')"); } } $boardurl = $config[boardurl]; if ($boardurl == ""){ $boardurl = "$url2board"; }else{ $boardurl; } $location="location=$boardurl&gameid=$gameid&sid="; if(empty($useroptions[playbutton])){ $playbutton=$gameid; }else{ $playbot=explode("," ,$useroptions[playbutton]); for ($a=0;$a< 100;$a++) { if($playbot[$a]==$gameid){ $playbutton=$useroptions[playbutton]; break; } if (empty($playbot[$a])){ $playbutton.="$gameid,$useroptions[playbutton]"; break; } } } if($id){ $blokcheck=$db->query_first("SELECT * FROM bb".$n."_arcade_gold_challenges WHERE id='$id'"); if($blokcheck[xblok]=="run"){ $db->query("UPDATE bb".$n."_arcade_gold_challenges SET score='0', scoretype='end', play_time='$jetztzeit' WHERE id = $id"); if($blokcheck[starter_id]==$wbbuser){ header("Location: arcade_gold_challenges.php?action=challeng_status&challeng_id=$blokcheck[challeng_id]"); }else{ header("Location: arcade_gold_challenges.php?action=heraus&id=$blokcheck[id]"); } }else{ $db->query("UPDATE bb".$n."_arcade_gold_challenges SET xblok='run' WHERE id='$id'"); } } if($cheat_on){ if($useroptions[can_play] && $gameid != $useroptions[gameid]){ $gamenam = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid=$useroptions[gameid]"); $massag="Du mußt erst das Game $gamenam[title] beenden bevor Du ein neues Game startest!"; if(!$config[heade])$header=""; eval("\$allgames =(\"".$tpl->get("arcade_gold_no")."\");"); eval("\$tpl->output(\"".$tpl->get("arcade_gold")."\");"); exit; } } $agtime = time(); $db->query("UPDATE bb".$n."_arcade_gold_user SET can_play='1',gameid='$gameid', playbutton='$playbutton', playtime='$agtime' WHERE userid='$wbbuser'"); $game=$gameid; //---- proarcade anpassung ---- $gamename = $config[gameurl] . $gamedat[filename]; $gameparams = addslashes($gamedat[objectparam]); $aguid = $wbbuserdata['userid']; $aguname = $wbbuserdata['username']; $gameparams .= ""; $eparams = addslashes($gamedat[embedparam]); $guthaben=0; if($config[gewin_dyn]==1){ $guthaben=$gamedat[gut_dyn]; }else{ if($gamedat[gut_fest]==0){ $guthaben=$config[gewinn]; }else{ $guthaben=$gamedat[gut_fest]; } } if(!$highscore[userid]){ $h_score="{$lang->items['LANG_ARCADEG_KEINCHAMP']}"; $points="{$lang->items['LANG_ARCADEG_HIGHSCOR']}
0
"; }else{ $h_score="{$lang->items['LANG_ARCADEG_CHAMP']}
$highscore[username]
"; $points="{$lang->items['LANG_ARCADEG_HIGHSCOR']}
$highscore[score]
"; } $myscore = $db-> query_first("SELECT * FROM bb".$n."_arcade WHERE gameid='$gameid' AND userid='$wbbuser' ORDER BY score DESC LIMIT 1"); $guth = $db->query_first("SELECT a.*, h.helptext FROM bb".$n."_arcadegames a LEFT JOIN bb".$n."_arcade_gold_help h ON h.title=a.title WHERE gameid='$gameid'"); if(!$myscore[score])$myscore[score]="0"; if($guth[helptext])$helpp="  [?]"; if($guth[ov18])$sv18img="{$lang->items["; $styles="";$link1=$m1;$link2=$m2;$link3=$m3;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7;$link8=$m8; if($id >'0'){ //$db->query("UPDATE bb".$n."_arcade_gold_challenges SET score='0', scoretype='end', play_time='$jetztzeit' WHERE id = $id"); $dum=$db->query_first("SELECT * FROM bb".$n."_arcade_gold_challenges WHERE id='$id'"); $dumm=$db->query("SELECT * FROM bb".$n."_arcade_gold_challenges WHERE challeng_id = '$dum[challeng_id]'"); $gegner=""; while($row=$db->fetch_array($dumm)){ if($username!=$row[username])$gegner .="$row[username] - "; } eval("\$play_head =(\"".$tpl->get("arcade_gold_playgame_challeng")."\");"); }else{ eval("\$play_head =(\"".$tpl->get("arcade_gold_playgame_head")."\");"); } eval("\$allgames =(\"".$tpl->get("arcade_gold_playgame")."\");"); } } } if ($action == "gameover") { $styles=""; $config = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_config "); $dum=$db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'"); if (empty($gameid)){ $gamedat = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE name='$game'"); $gameid=$gamedat[gameid]; }else{ $gamedat = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid='$gameid'"); } $gametitle=$gamedat[title]; $scorvar=str_replace("$","",$gamedat[scorevar]); $no_cheat=""; while(list($key,$val)=each($_POST)) { if($val && $key)$no_cheat="1"; } while(list($key,$val)=each($_REQUEST)) { if($key==$scorvar)$thescore=$val; } if(!$no_cheat){ header("Location: arcade_gold.php?action=cheater&gametitle=$gametitle"); exit; } if ($play=="play") { $db->query("UPDATE bb".$n."_arcade_gold_config SET gameurl='?'"); } if ($thescore > 0) { gameover($thescore,$gameid,$gametitle,$aagtime); } else { $gratulier="{$lang->items['LANG_ARCADEG_PRC2GRATULIERE1']} $username, {$lang->items['LANG_ARCADEG_PRC2GRATULIERE2']} $score {$lang->items['LANG_ARCADEG_PRC2GRATULIERE3']}

$gametitle {$lang->items['LANG_ARCADEG_PRCNOCHSPIELEN']}"; $db->query("UPDATE bb".$n."_arcade_gold_user SET can_play='2' WHERE userid='$wbbuser'"); $styles="";$link1=$m1;$link2=$m2;$link3=$m3;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7; eval("\$menue =(\"".$tpl->get("arcade_gold_menue")."\");"); eval("\$allgames =(\"".$tpl->get("arcade_gold_spielende")."\");"); } } if ($action == "gameover2_gjfhfruihöldöl8") { $styles=""; $config = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_config "); $dum=$db->query_first("SELECT * FROM bb".$n."_arcade_gold_user WHERE userid='$wbbuser'"); if (empty($gameid)){ $gamedat = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE name='$game'"); $gameid=$gamedat[gameid]; }else{ $gamedat = $db->query_first("SELECT * FROM bb".$n."_arcadegames WHERE gameid='$gameid'"); } $gametitle=$gamedat[title]; $scorvar=str_replace("$","",$gamedat[scorevar]); while(list($key,$val)=each($_REQUEST)) { if($key==$scorvar)$thescore=$val; //echo "---$key---$val---
"; } //echo "
----$scorvar----$thescore----";exit; if ($play=="play") { $db->query("UPDATE bb".$n."_arcade_gold_config SET gameurl='?'"); } if ($thescore > 0) { gameover($thescore,$gameid,$gametitle,$aagtime); } else { $gratulier="{$lang->items['LANG_ARCADEG_PRC2GRATULIERE1']} $username, {$lang->items['LANG_ARCADEG_PRC2GRATULIERE2']} $score {$lang->items['LANG_ARCADEG_PRC2GRATULIERE3']}

$gametitle {$lang->items['LANG_ARCADEG_PRCNOCHSPIELEN']}"; $db->query("UPDATE bb".$n."_arcade_gold_user SET can_play='2' WHERE userid='$wbbuser'"); $styles="";$link1=$m1;$link2=$m2;$link3=$m3;$link4=$m4;$link5=$m5;$link6=$m6;$link7=$m7; eval("\$menue =(\"".$tpl->get("arcade_gold_menue")."\");"); eval("\$allgames =(\"".$tpl->get("arcade_gold_spielende")."\");"); } } if($oldstyle==1){ $styles="{$lang->items['LANG_ARCADEG_ARGSTYLEGOLD']}"; }else{ $styles="{$lang->items['LANG_ARCADEG_ARGSTYLEOLD']}"; } if($link1!="")$styles=""; if ($wbbuser == 0){$hotgames ="";$newgames =""; eval("\$allgames =(\"".$tpl->get("arcade_gold_no")."\");"); } if($action=="gamehelp"){ $gamehelp = $db->query_first("SELECT * FROM bb".$n."_arcade_gold_help WHERE title='$helptitle'"); eval("\$tpl->output(\"".$tpl->get("arcade_gold_help")."\");"); exit; } eval("\$menue =(\"".$tpl->get("arcade_gold_menue")."\");"); if ($config[gameurl]=='?')$menue=$run; if(!$config[heade])$header=""; eval("\$footer1 =(\"".$tpl->get("arcade_gold_footer")."\");"); eval("\$tpl->output(\"".$tpl->get("arcade_gold")."\");"); ?>