Show Your Support
if ($newscoreid==$thisid) { $foundscore = 1; } }
if ($newscoreid==$thisid)
$DB_site->query("UPDATE arcadegames SET name='$name', title='$title', description='$desc', filename='$filename', hashoffset='$hashoffset', ".iif(($championdata != "") || ($deletechampicon == 1),"championpicname='$championicon_name', championpicdata='$championdata',","")." ".iif(($thumbdata != "") || ($deletethumb == 1),"thumbnailname='$thumbnail_name', thumbnaildata='$thumbdata',","")." active='$active', scorevar='$scorevar', gamecode='$gamecode',championactive='$championactive',championtext='$championtext',championcolor='$championcolor' WHERE gameid='$gameid'");
$DB_site->query("UPDATE arcadegames SET name='$name', title='$title', description='$desc', filename='$filename', hashoffset='$hashoffset', ".iif(($championdata != "") || ($deletechampicon == 1),"championpicname='$championicon_name', championpicdata='$championdata',","")." ".iif(($thumbdata != "") || ($deletethumb == 1),"thumbnailname='$thumbnail_name', thumbnaildata='$thumbdata',","")." active='$active', scorevar='$scorevar', gamecode='$gamecode',championactive='$championactive',championtext='$championtext',championcolor='$championcolor',playcost='$playcost',jackpot='$jackpot',jackpotadd='$jackpotadd' WHERE gameid='$gameid'");
$DB_site->query("INSERT INTO arcadegames (name,title,description,filename,active,hashoffset,scorevar,gamecode,championactive,championtext,championcolor" .iif($championdata != "",",championpicname,championpicdata","") .iif($thumbdata != "",",thumbnailname,thumbnaildata","").") VALUES ('$name','$title','$desc','$filename','$active','$hashoffset','$scorevar','$gamecode','$championactive','$championtext','$championcolor'" .iif($championdata != "",",'$championicon_name','$championdata'","") .iif($thumbdata != "",",'$thumbnail_name','$thumbdata'","").")");
$DB_site->query("INSERT INTO arcadegames (name,title,description,filename,active,hashoffset,scorevar,gamecode,championactive,championtext,championcolor,playcost,jackpot,jackpotadd" .iif($championdata != "",",championpicname,championpicdata","") .iif($thumbdata != "",",thumbnailname,thumbnaildata","").") VALUES ('$name','$title','$desc','$filename','$active','$hashoffset','$scorevar','$gamecode','$championactive','$championtext','$championcolor','$playcost','$jackpot','$jackpotadd'" .iif($championdata != "",",'$championicon_name','$championdata'","") .iif($thumbdata != "",",'$thumbnail_name','$thumbdata'","").")");
$DB_site->query("UPDATE arcadeconfig SET active='$active',path='$thepath' ".iif(($addgroup != 0) or ($delgroup != 0),",useraccess='$useraccess'","")." ,usescoreicons='$usescoreicons',usekingicon='$usekingicon',usedetailicons='$usedetailicons' ".iif(($scoreicondata != "") || ($deletescoreicon == 1),",scoreiconname='$scoreicon_name', scoreicondata='$scoreicondata'","")." ".iif(($topscoreicondata != "") || ($deletetopscoreicon == 1),",topscoreiconname='$topscoreicon_name', topscoreicondata='$topscoreicondata'","")." ".iif(($kingicondata != "") || ($deletekingicon == 1),",kingiconname='$kingicon_name', kingicondata='$kingicondata'","")." ".iif(($userdetailicondata != "") || ($deleteuserdetailicon == 1),",userdetailiconname='$userdetailicon_name', userdetailicondata='$userdetailicondata'","")." ".iif(($gamedetailicondata != "") || ($deletegamedetailicon == 1),",gamedetailiconname='$gamedetailicon_name', gamedetailicondata='$gamedetailicondata'","")." WHERE arcadeid='$arcadeid'");
$DB_site->query("UPDATE arcadeconfig SET active='$active',path='$thepath' ".iif(($addgroup != 0) or ($delgroup != 0),",useraccess='$useraccess'","")." ,usescoreicons='$usescoreicons',usekingicon='$usekingicon',usedetailicons='$usedetailicons' ".iif(($scoreicondata != "") || ($deletescoreicon == 1),",scoreiconname='$scoreicon_name', scoreicondata='$scoreicondata'","")." ".iif(($topscoreicondata != "") || ($deletetopscoreicon == 1),",topscoreiconname='$topscoreicon_name', topscoreicondata='$topscoreicondata'","")." ".iif(($kingicondata != "") || ($deletekingicon == 1),",kingiconname='$kingicon_name', kingicondata='$kingicondata'","")." ".iif(($userdetailicondata != "") || ($deleteuserdetailicon == 1),",userdetailiconname='$userdetailicon_name', userdetailicondata='$userdetailicondata'","")." ".iif(($gamedetailicondata != "") || ($deletegamedetailicon == 1),",gamedetailiconname='$gamedetailicon_name', gamedetailicondata='$gamedetailicondata'",", passtimeout='$passtimeout', epergamecost='$epergamecost', earcadepass='$earcadepass', eaph='$eaph', ejackpot='$ejackpot'")." WHERE arcadeid='$arcadeid'");