Tudo que hrubesch postou
-
Telara-ATS
-
Telara-ATS
Poderia disponibilizar Map Editor usado para editar esse MAPA ? ...
-
Telara-ATS
corrige o link da database esta bugado fica redirecionando o link e nao baixa, por favor!
-
PUSH CRUZADO SOURCES
Alguem poderia me ajudar a adicionar famoso "PUSH CRUZADO" qual linha alterar ou qual arquivo alterar Player.cpp ou Game.cpp, NAO SEI me ajudem pfv!!!
- Gesior 1.2 Premium Pack - ANTI SQL INJECTION - TFS [1.x / OTX]
- Gesior 1.2 Premium Pack - ANTI SQL INJECTION - TFS [1.x / OTX]
-
PLAYER.CPP - PUSH PLAYER
TFS 1.2 ALGUEM ME AJUDE PFV, NO MEU CONFIG LUA NAO TEM O Pushcreaturedelay ja tentei coloca mais nao acontece nada, o que eu preciso alterar no player.cpp. para que eu possa ajustar o push player do meu modo, tipo de longe o push é instantaneo e de perto demora uns 2 segundo player.cpp
-
DISTRO SOURCE EXCLUSIVE EDITION 0.5
Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). TFS Exclusive Edition 0.5 Base: Baiakinho Qual erro está surgindo/O que você procura? Consegui a source porem estou com duvida pra compilar com os comandos abaixo ./autogen.sh; ./configure --enable-server-diag --enable-mysql --enable-root-permission; ./build.sh; A pasta source minha nao contem o arquivo autogen.sh e build.sh, como faço pra compilar ? é outro comando ? Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
OTpanel e confiável?
A OTPanel e OtManager ambos são serviço péssimos, suporte horrível e aconteceu o mesmo caso de perde tudo e tals e sai de la
-
Guild Logo Bugado
UpupUp Rep+ Para Qm Ajudar Pfv Alguem?
-
Guild Logo Bugado
Qualquer um quando cria guild no meu server fica bugada como na imagem. Obs : Uso Gesior ACC em Linux guilds.php
-
(Resolvido)CTF BUG
Vlw Mano Ajudo D+ 100% Resolvido REP+
-
(Resolvido)CTF BUG
Meu CTF Event Está 100% Único Problema é Que Quando o Time Ganha o Time Perdedor Vai Para o Templo e o Ganhador Continua No Evento + Recebe o Premio Normalmente.. Alguém Poderia Ajudar? Só Para Ajeitar Para os Ganhadores Irem Templo. --[[ Capture The Flag System Author: Maxwell Denisson(MaXwEllDeN) Version: 2.0 Contact: [email protected] ]] CTF_LIB = { waitpos = {x = 1188, y = 1161, z =7}, -- Posição da sala de espera tppos = {x = 1088, y = 1055, z =7}, -- Onde o TP vai aparecer days = {1, 2, 3, 4, 5, 6, 7}, -- Dias que o evento vai abrir xp_percent = 0.5, -- Porcentagem de exp que o player vai ganhar timeclose = 1, -- Tempo, em minutos, para iniciar o CTF winp = 2, -- Quantos pontos uma equipe precisa marcar para vencer teams = { ["Vermelho"] = { temple = 15, -- TownID da equipe vermelha outfit = {lookHead = 0, lookBody = 132, lookLegs = 113, lookFeet = 94}, flag = { id = 1435, flag_pos = {x = 605, y = 1676, z =6}, -- Posição onde a bandeira vermelha vai ser criada gnd_pos = {x = 607, y = 1676, z =6}, -- Onde os players da equipe vermelha entregarão a bandeira. }, }, ["Verde"] = { temple = 16, -- TownID da equipe verde outfit = {lookHead = 0, lookBody = 121, lookLegs = 101, lookFeet = 101}, flag = { id = 1437, flag_pos = {x = 690, y = 1676, z =6}, -- Posição onde a bandeira verde vai ser criada gnd_pos = {x = 688, y = 1676, z =6}, -- Onde os players da equipe verde entregarão a bandeira. }, }, }, } local CTF = CTF_LIB function CTF.getMembers() local members = {} for _, cid in pairs(getPlayersOnline()) do if getPlayerStorageValue(cid, 16700) ~= -1 then table.insert(members, cid) end end return members end function CTF.getTeamMembers(team) local members = {} for _, cid in pairs(CTF.getMembers()) do if getPlayerStorageValue(cid, 16700) == team then table.insert(members, cid) end end return members end function CTF.removePlayer(uid) doPlayerSetTown(uid, getPlayerStorageValue(uid, 16701)) doTeleportThing(uid, getTownTemplePosition(getPlayerStorageValue(uid, 16701))) doRemoveCondition(uid, CONDITION_OUTFIT) doCreatureAddHealth(uid, getCreatureMaxHealth(uid)) doCreatureAddMana(uid, getCreatureMaxMana(uid)) setPlayerStorageValue(uid, 16701, -1) setPlayerStorageValue(uid, 16700, -1) return true end function CTF.addPlayer(uid) local team = CTF.getTeamLivre() local n_team = CTF.teams[team] setPlayerStorageValue(uid, 16700, team) setPlayerStorageValue(uid, 16701, getPlayerTown(uid)) doPlayerSetTown(uid, n_team.temple) doTeleportThing(uid, CTF.waitpos) doPlayerSendTextMessage(uid, 22, "Você agora faz parte do time ".. team .. ".") local outfit = getCreatureOutfit(uid) for i, v in pairs(n_team.outfit) do outfit[i] = v end registerCreatureEvent(uid, "CTFLogout") registerCreatureEvent(uid, "CTFAttack") registerCreatureEvent(uid, "CTFCombat") registerCreatureEvent(uid, "CTFDeath") doSetCreatureOutfit(uid, outfit, -1) return true end function CTF.getTeamLivre() local teams = {} for i, _ in pairs(CTF.teams) do table.insert(teams, {i, #CTF.getTeamMembers(i)}) end if (teams[1][2] < teams[2][2]) then return teams[1][1] elseif (teams[1][2] > teams[2][2]) then return teams[2][1] end return teams[math.random(2)][1] end function CTF.broadCast(msg, class) for _, uid in pairs(CTF.getMembers()) do doPlayerSendTextMessage(uid, class or 20, msg) end return true end function CTF.getFlagTeam(flag) for i, v in pairs(CTF.teams) do if v.flag.id == flag then return i end end return "" end local score_sto = {} local a = 0 for i, _ in pairs(CTF.teams) do score_sto[i] = 42314 + a a = a + 1 end function CTF.createFlags() for i, v in pairs(CTF.teams) do local flag = doCreateItem(v.flag.id, 1, v.flag.flag_pos) doItemSetAttribute(flag, "aid", 63218) v.flag.gnd_pos.stackpos = 0 local gnd = getThingFromPos(v.flag.gnd_pos).uid doItemSetAttribute(gnd, "aid", 63200) doItemSetAttribute(gnd, "team", i) setGlobalStorageValue(score_sto[i], 0) end return true end function CTF.removeFlags() for i, v in pairs(CTF.teams) do local flag = doFindItemInPos({v.flag.id}, v.flag.flag_pos)[1] if flag then doRemoveItem(flag.uid, 1) end v.flag.gnd_pos.stackpos = 0 local gnd = getThingFromPos(v.flag.gnd_pos).uid doItemSetAttribute(gnd, "aid", 0) end return true end function CTF.start() doRemoveItem(doFindItemInPos({1387}, CTF.tppos)[1].uid, 1) setGlobalStorageValue(16705, -1) if #CTF.getMembers() < 2 then doBroadcastMessage("O CTF não pôde ser iniciado por falta de players.") for _, cid in pairs(CTF.getMembers()) do CTF.removePlayer(cid) end return false end CTF.broadCast("O CTF foi iniciado. Bom jogo!") for _, uid in pairs(CTF.getMembers()) do doTeleportThing(uid, getTownTemplePosition(getPlayerTown(uid))) end CTF.createFlags() return true end function CTF.returnFlag(uid, status) local team = getPlayerStorageValue(uid, 16702) if status then local msg = "O player ".. getCreatureName(uid) .. ", estava com a bandeira do time ".. team .. " " if status == 1 then msg = msg .. "e foi eliminado. " elseif status == 2 then msg = "e foi removido do evento. " end msg = msg .. "Portanto a bandeira do time ".. team .. " foi devolvida." CTF.broadCast(msg) end if CTF.teams[team] then local flag = doCreateItem(CTF.teams[team].flag.id, 1, CTF.teams[team].flag.flag_pos) doItemSetAttribute(flag, "aid", 63218) setPlayerStorageValue(uid, 16702, -1) end return true end function CTF.addPoint(uid) local finish local msg = "Capture The Flag:" setGlobalStorageValue(score_sto[getPlayerStorageValue(uid, 16700)], getGlobalStorageValue(score_sto[getPlayerStorageValue(uid, 16700)]) + 1) for i, _ in pairs(CTF.teams) do msg = msg .. "\nTime ".. i .. ": ".. getGlobalStorageValue(score_sto[i]) if getGlobalStorageValue(score_sto[i]) >= CTF.winp then finish = i end end CTF.broadCast(getCreatureName(uid) .. " marcou um ponto para o time ".. getPlayerStorageValue(uid, 16700) .. ".", 22) CTF.broadCast(msg) CTF.returnFlag(uid) if finish then CTF.close(finish) return "close" end return true end function CTF.close(win) if not win then doBroadcastMessage("O CTF acabou sem vencedores.") else CTF.broadCast("O time ".. win .. " marcou ".. CTF.winp .. " ponto(s) e venceu o evento.") end for _, cid in pairs(CTF.getMembers()) do if getPlayerStorageValue(cid, 16700) == win then local xp = math.ceil(getPlayerExperience(cid) * (CTF.xp_percent / 100), 215) doPlayerSendTextMessage(cid, 22, "Parabéns! Você ganhou o evento e obteve ".. CTF.xp_percent .."% de sua experiência total(".. xp ..").") doSendAnimatedText(getThingPos(cid), xp, 215) doPlayerAddExperience(cid, xp) end --[[ if getPlayerStorageValue(cid, 16702) ~= -1 then CTF.returnFlag(cid) end]] CTF.removePlayer(cid) end CTF.removeFlags() for i, _ in pairs(CTF.teams) do setGlobalStorageValue(score_sto[i], 0) end return true end local function Alert(uid) if (isCreature(uid)) then if getPlayerStorageValue(uid, 16702) == -1 or getPlayerStorageValue(uid, 16700) == -1 then return false end doSendAnimatedText(getThingPos(uid), "Flag!", math.random(50, 200)) local bla = {18, 19, 21, 22, 23, 24} doSendMagicEffect(getThingPos(uid), bla[math.random(#bla)]) if (os.time() - getPlayerStorageValue(uid, 16703) >= 60) then CTF.returnFlag(uid) return setPlayerStorageValue(uid, 16703, -1) end addEvent(Alert, 500, uid) return true end return false end function CTF.stealFlag(uid, team) setPlayerStorageValue(uid, 16702, team) setPlayerStorageValue(uid, 16703, os.time()) CTF.broadCast(getCreatureName(uid) .. " roubou a bandeira do time ".. team .. "!") Alert(uid) return true end function doFindItemInPos(ids, pos) -- By Undead Slayer local results = {} for _ = 0, 255 do local findPos = {x = pos.x, y = pos.y, z = pos.z, stackpos = _} if isInArray(ids, getThingFromPos(findPos).itemid) then table.insert(results, getThingFromPos(findPos)) end end return results end
-
GESIOR - OUTFIT QUE O CHARACTER POSSUI - CHARACTER.PHP
ALGUEM ME AJUDAAAAA
-
GESIOR - OUTFIT QUE O CHARACTER POSSUI - CHARACTER.PHP
@Biinhow EI CARA COMO INSIRO ESSE STORAGE NOS ADDONS?
-
GESIOR - OUTFIT QUE O CHARACTER POSSUI - CHARACTER.PHP
NAO TENHO O CHARACTER.PHP, ESTOU TENTANDO AJUDAR UM AMIGO MEU ESSE SITE AI É DE UM AMIGO... O ERRO É ALGO SOBRE STORAGE
-
GESIOR - OUTFIT QUE O CHARACTER POSSUI - CHARACTER.PHP
ME AJUDEM MEU CHARACTER.PHP NAO MOSTRA OS OUTFIT QUE O PLAYER TEM NA CONTA DELE.... NO CODIGO FALA SOBRE STORAGE COMO ARRUMAR ISSO ME AJUDEM POR FAVOR.... COMO SABER CADA STORAGE DE CADA OUTFIT DO MEU SERVIDOR AONDE EU VEJO???? "$hunter = $player->getStorage(48502) && $player->getStorage(48503);"
- [8.60] Baiak Source (exclusivo)
-
Fast Atk Global 10.97 HELP
É bug do servidor sim. esse ot aqui > suenson-war.net ele tem fast atk, com bot ou sem bot fica igual, andando ou parado o fast atk continua "é o mesmo servidor que o meu"
-
[v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)
MEU FAST ATK ELE PARA DE FUNCIONAR QUANDO O PLAYER FICA ATAKANDO ALGUEM "PARADO" SEM SE MOVER. EDITEI TUDO CERTINHO O ATK SPEED PRA 150, O ATKSPEED SO FUNCIONA QUANDO O PLAYER ATKA CORRENDO.... DEU PRA ENTENDER? Eu entro nas vocation.xml, coloco atkspeed pra 150, quando o player ataque de longe sem encostar no player o atk fica fast do jeito que coloquei, porem quando o player vai bater encostado no player. o atk fica lento volta ao normal como se estivesse com atk speed 1400... me ajudem por favor!!!
-
Fast Attack Player.cpp
MEU FAST ATK ELE PARA DE FUNCIONAR QUANDO O PLAYER FICA ATAKANDO ALGUEM "PARADO" SEM SE MOVER. EDITEI TUDO CERTINHO O ATK SPEED PRA 150, O ATKSPEED SO FUNCIONA QUANDO O PLAYER ATKA CORRENDO.... DEU PRA ENTENDER? Eu entro nas vocation.xml, coloco atkspeed pra 150, quando o player ataque de longe sem encostar no player o atk fica fast do jeito que coloquei, porem quando o player vai bater encostado no player. o atk fica lento volta ao normal como se estivesse com atk speed 1400... me ajudem por favor!!! uso mapa do malucoo MEU vocation.xml
-
Fast Atk Global 10.97 HELP
MEU FAST ATK ELE PARA DE FUNCIONAR QUANDO O PLAYER FICA ATAKANDO ALGUEM "PARADO" SEM SE MOVER. EDITEI TUDO CERTINHO O ATK SPEED PRA 150, O ATKSPEED SO FUNCIONA QUANDO O PLAYER ATKA CORRENDO.... DEU PRA ENTENDER? Eu entro nas vocation.xml, coloco atkspeed pra 150, quando o player ataque de longe sem encostar no player o atk fica fast do jeito que coloquei, porem quando o player vai bater encostado no player. o atk fica lento volta ao normal como se estivesse com atk speed 1400... me ajudem por favor!!! uso mapa do malucoo MEU vocation.xml <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" clientid="0" name="None" description="none" gaincap="10" gainhp="5" gainmana="5" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="5" manamultiplier="4.0" attackspeed="150" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" /> <skill id="0" multiplier="1.6" /> <skill id="1" multiplier="1.6" /> <skill id="2" multiplier="1.6" /> <skill id="3" multiplier="1.6" /> <skill id="4" multiplier="1.6" /> <skill id="5" multiplier="1.6" /> <skill id="6" multiplier="1.1" /> </vocation> <vocation id="1" clientid="3" name="Sorcerer" description="a sorcerer" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="20" manamultiplier="1.1" attackspeed="150" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" /> <skill id="0" multiplier="1.5" /> <skill id="1" multiplier="2.0" /> <skill id="2" multiplier="2.0" /> <skill id="3" multiplier="2.0" /> <skill id="4" multiplier="2.0" /> <skill id="5" multiplier="1.5" /> <skill id="6" multiplier="1.1" /> </vocation> <vocation id="2" clientid="4" name="Druid" description="a druid" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="20" manamultiplier="1.1" attackspeed="150" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" /> <skill id="0" multiplier="1.5" /> <skill id="1" multiplier="1.8" /> <skill id="2" multiplier="1.8" /> <skill id="3" multiplier="1.8" /> <skill id="4" multiplier="1.8" /> <skill id="5" multiplier="1.5" /> <skill id="6" multiplier="1.1" /> </vocation> <vocation id="3" clientid="2" name="Paladin" description="a paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="20" manamultiplier="1.4" attackspeed="150" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.3" defense="1.0" armor="1.0" /> <skill id="0" multiplier="1.2" /> <skill id="1" multiplier="1.2" /> <skill id="2" multiplier="1.2" /> <skill id="3" multiplier="1.2" /> <skill id="4" multiplier="1.1" /> <skill id="5" multiplier="1.1" /> <skill id="6" multiplier="1.1" /> </vocation> <vocation id="4" clientid="1" name="Knight" description="a knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="20" manamultiplier="3.0" attackspeed="150" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" /> <skill id="0" multiplier="1.1" /> <skill id="1" multiplier="1.1" /> <skill id="2" multiplier="1.1" /> <skill id="3" multiplier="1.1" /> <skill id="4" multiplier="1.4" /> <skill id="5" multiplier="1.1" /> <skill id="6" multiplier="1.1" /> </vocation> <vocation id="5" clientid="3" name="Master Sorcerer" description="a master sorcerer" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="30" gainmanaticks="1" gainmanaamount="40" manamultiplier="1.1" attackspeed="150" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" /> <skill id="0" multiplier="1.5" /> <skill id="1" multiplier="2.0" /> <skill id="2" multiplier="2.0" /> <skill id="3" multiplier="2.0" /> <skill id="4" multiplier="2.0" /> <skill id="5" multiplier="1.5" /> <skill id="6" multiplier="1.1" /> </vocation> <vocation id="6" clientid="4" name="Elder Druid" description="an elder druid" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="30" gainmanaticks="1" gainmanaamount="40" manamultiplier="1.1" attackspeed="150" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" /> <skill id="0" multiplier="1.5" /> <skill id="1" multiplier="1.8" /> <skill id="2" multiplier="1.8" /> <skill id="3" multiplier="1.8" /> <skill id="4" multiplier="1.8" /> <skill id="5" multiplier="1.5" /> <skill id="6" multiplier="1.1" /> </vocation> <vocation id="7" clientid="2" name="Royal Paladin" description="a royal paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="1" gainhpamount="30" gainmanaticks="1" gainmanaamount="30" manamultiplier="1.4" attackspeed="150" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.3" defense="1.0" armor="1.0" /> <skill id="0" multiplier="1.2" /> <skill id="1" multiplier="1.2" /> <skill id="2" multiplier="1.2" /> <skill id="3" multiplier="1.2" /> <skill id="4" multiplier="1.1" /> <skill id="5" multiplier="1.1" /> <skill id="6" multiplier="1.1" /> </vocation> <vocation id="8" clientid="1" name="Elite Knight" description="an elite knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="40" gainmanaticks="1" gainmanaamount="30" manamultiplier="3.0" attackspeed="150" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" /> <skill id="0" multiplier="1.1" /> <skill id="1" multiplier="1.1" /> <skill id="2" multiplier="1.1" /> <skill id="3" multiplier="1.1" /> <skill id="4" multiplier="1.4" /> <skill id="5" multiplier="1.1" /> <skill id="6" multiplier="1.1" /> </vocation> </vocations> ALGUEMM PRA ME AJUDAR?
-
Gesior Tfs 1.2 Bug Shop System
- Gesior Tfs 1.2 Bug Shop System
Como eu deixo travado essa opção? aqui em baixo o codigo que eu tinha removido da qunatidade $main_content .= '</select></td></tr>'; if ($ServiceOffer['type'] == 'itemvip') { $main_content .= '<tr bgcolor="' . $config['site']['lightborder'] . '"><td width="130"><b>Quantity:</b></td><td><input type="text" name="quantity" value="1" style="width: 100%; height: 25px; line-height: 25px;" placeholder=" Quantity"></td></tr>'; } <link href="<?PHP echo $layout_name; ?>/shop.css" rel="stylesheet" type="text/css"> <?php if ($logged) { $user_premium_points = $account_logged->getCustomField('premium_points'); function isInteger($input) { return(ctype_digit(strval($input))); } function getItemByID($id) { $id = (int) $id; $SQL = $GLOBALS['SQL']; $data = $SQL->query('SELECT * FROM ' . $SQL->tableName('z_shop_offer') . ' WHERE ' . $SQL->fieldName('id') . ' = ' . $SQL->quote($id) . ';')->fetch(); $offer['id'] = $data['id']; $offer['item_id'] = $data['itemid1']; $offer['item_count'] = $data['count1']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['name'] = $data['offer_name']; $offer['category'] = $data['offer_category']; $offer['new'] = $data['offer_new']; $offer['type'] = $data['offer_type']; return $offer; } function getOfferArray() { $offer_list = $GLOBALS['SQL']->query('SELECT * FROM ' . $GLOBALS['SQL']->tableName('z_shop_offer') . ' WHERE ' . $GLOBALS['SQL']->fieldName('offer_category') . ' = ' . $_REQUEST['ServiceCategoryID'] . ';'); $i_item = 0; while ($data = $offer_list->fetch()) { $offer_array['item'][$i_item]['id'] = $data['id']; $offer_array['item'][$i_item]['item_id'] = $data['itemid1']; $offer_array['item'][$i_item]['item_count'] = $data['count1']; $offer_array['item'][$i_item]['points'] = $data['points']; $offer_array['item'][$i_item]['description'] = $data['offer_description']; $offer_array['item'][$i_item]['name'] = $data['offer_name']; $offer_array['item'][$i_item]['category'] = $data['offer_category']; $offer_array['item'][$i_item]['new'] = $data['offer_new']; $i_item++; } return $offer_array; } if (isset($_REQUEST['ServiceCategoryID'])) { $offer_list = getOfferArray(); } else { $_REQUEST['ServiceCategoryID'] = 1; $offer_list = getOfferArray(); } if (isset($_REQUEST['ServiceCategoryID']) and empty($_POST['page'])) { $main_content .= ' <script type="text/javascript"> var g_Services = [3,4,5,6,7,8]; var IMAGES = "./layouts/tibiacom/images/"; var g_PaymentMethodCategories = {"1":1}; var g_Prices = {"120":{"11":"30.00 BRL","21":"30.00 BRL","22":"30.00 BRL","31":"30.00 BRL","32":"30.00 BRL","33":"30.00 BRL","40":"30.00 BRL"},"121":{"11":"79.00 BRL","21":"79.00 BRL","22":"79.00 BRL","31":"79.00 BRL","32":"79.00 BRL","33":"79.00 BRL","40":"79.00 BRL"},"122":{"11":"141.00 BRL","21":"141.00 BRL","22":"141.00 BRL","31":"141.00 BRL","32":"141.00 BRL","33":"141.00 BRL","40":"141.00 BRL"},"123":{"11":"246.00 BRL","21":"246.00 BRL","22":"246.00 BRL","31":"246.00 BRL","32":"246.00 BRL","33":"246.00 BRL","40":"246.00 BRL"}}; var g_QF_Mounts_ServiceCategoryID = 15; var g_QF_Outfits_ServiceCategoryID = 17; function ChangeService(a_ServiceID, a_ServiceCategoryID) { $(\'#CC_ServiceID\').val(a_ServiceID); $(\'#CC_ServiceID\').attr(\'name\', \'InitialServiceID\'); $(\'#ServiceID_\' + a_ServiceID).attr(\'checked\', \'checked\'); $(\'.ServiceID_Icon_Container\').css(\'background-color\', \'\'); if (a_ServiceCategoryID == g_QF_Mounts_ServiceCategoryID || a_ServiceCategoryID == g_QF_Outfits_ServiceCategoryID) { $(\'.ServiceID_Icon_Animation_1\').hide(); $(\'.ServiceID_Icon_New_Animation_1\').hide(); $(\'.ServiceID_Icon_New\').show(); $(\'#ServiceID_Icon_Animation_1_\' + a_ServiceID).show(); $(\'#ServiceID_Icon_New_\' + a_ServiceID).hide(); } for (var i = 0; i < g_PaymentMethodCategories.length; i++) { if (typeof g_Prices[a_ServiceID] !== \'undefined\') { if (typeof g_Prices[a_ServiceID][g_PaymentMethodCategories[i]] === \'undefined\') { // deactivate the payment method // note: the radio button can not be disabled or we will receive the wrong error message $(\'#PMCID_NotAllowed_\' + g_PaymentMethodCategories[i]).show(); } else { // activate the payment method $(\'#PMCID_NotAllowed_\' + g_PaymentMethodCategories[i]).hide(); } } } $(\'.ServiceID_Icon_Selected\').css(\'background-image\', \'\'); $(\'#ServiceID_Icon_Selected_\' + a_ServiceID).css(\'background-image\', \'url(\' + IMAGES + \'payment/serviceid_icon_selected.png)\'); return; } // change the selected payment method category function ChangePMC(a_PaymentMethodID) { // set the PMCID for the change country form $(\'#CC_PMCID\').val(a_PaymentMethodID); $(\'#CC_PMCID\').attr(\'name\', \'InitialPMCID\'); // activate the radio button $(\'#PMCID_\' + a_PaymentMethodID).attr(\'checked\', \'checked\'); $(\'.PMCID_Icon_Container\').css(\'background-color\', \'\'); // handle services for (var i = 0; i < g_Services.length; i++) { if (typeof g_Prices[g_Services[i]] !== \'undefined\') { if (typeof g_Prices[g_Services[i]][a_PaymentMethodID] === \'undefined\') { // deactivate the service // note: the radio button can not be disabled or we will receive the wrong error message $(\'#ServiceID_NotAllowed_\' + g_Services[i]).show(); // set the price $(\'#PD_\' + g_Services[i]).html(\'---\'); } else { // activate the service // set the price $(\'#PD_\' + g_Services[i]).html(g_Prices[g_Services[i]][a_PaymentMethodID]); $(\'#ServiceID_NotAllowed_\' + g_Services[i]).hide(); } } } // activate and mark the selected icon $(\'.PMCID_Icon_Selected\').css(\'background-image\', \'\'); $(\'#PMCID_Icon_Selected_\' + a_PaymentMethodID).css(\'background-image\', url(\'https://cdn.awsli.com.br/307/307092/arquivos/serviceid_icon_selected.png\')); return; } // mouse over effect for payment methods function MouseOverPMCID(a_PMCID) { $(\'#PMCID_Icon_Over_\' + a_PMCID).css(\'background-image\', \'url(\' + IMAGES + \'payment/pmcid_icon_over.png)\'); } // mouse out effect for payment methods function MouseOutPMCID(a_PMCID) { $(\'#PMCID_Icon_Over_\' + a_PMCID).css(\'background-image\', \'\'); } // mouse over effect for products function MouseOverServiceID(a_ServiceID, a_ServiceCategoryID) { $(\'#ServiceID_Icon_Over_\' + a_ServiceID).css(\'background-image\', \'url(\' + IMAGES + \'payment/serviceid_icon_over.png)\'); if (a_ServiceCategoryID == g_QF_Mounts_ServiceCategoryID || a_ServiceCategoryID == g_QF_Outfits_ServiceCategoryID) { $(\'#ServiceID_Icon_Animation_1_\' + a_ServiceID).show(); $(\'#ServiceID_Icon_New_\' + a_ServiceID).hide(); } } // mouse out effect for products function MouseOutServiceID(a_ServiceID, a_ServiceCategoryID) { $(\'#ServiceID_Icon_Over_\' + a_ServiceID).css(\'background-image\', \'\'); // mounts have an animation if ((a_ServiceCategoryID == g_QF_Mounts_ServiceCategoryID || a_ServiceCategoryID == g_QF_Outfits_ServiceCategoryID) && ($(\'#ServiceID_\' + a_ServiceID).attr(\'checked\') != \'checked\')) { $(\'#ServiceID_Icon_Animation_1_\' + a_ServiceID).hide(); $(\'#ServiceID_Icon_New_\' + a_ServiceID).show(); } } </script> <div id="ProgressBar"> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="' . $layout_name . '/images/global/content/stonebar-left-end.gif"> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image:url(' . $layout_name . '/images/global/content/stonebar-center.gif);"> </div> </div> <img id="BackgroundContainerRightEnd" src="' . $layout_name . '/images/global/content/stonebar-right-end.gif"> </div> <img id="TubeLeftEnd" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-left-green.gif"> <img id="TubeRightEnd" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-right-blue.gif"> <div id="FirstStep" class="Steps"> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-1-green.gif"> <div class="StepText" style="font-weight:bold;">Select service</div> </div> </div> <div id="StepsContainer1"> <div id="StepsContainer2"> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-green-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-2-blue.gif"> <div class="StepText" style="font-weight:normal;">Select your character</div> </div> </div> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-3-blue.gif"> <div class="StepText" style="font-weight:normal;">Confirm your order</div> </div> </div> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-4-blue.gif"> <div class="StepText" style="font-weight:normal;">Summary</div> </div> </div> </div> </div> </div> </div> <form method="post" action=""> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"> </span> <span class="CaptionEdgeRightTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"> </span> <span class="CaptionBorderTop" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);"> </span> <span class="CaptionVerticalLeft" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);"> </span> <div class="Text">Select service</div> <span class="CaptionVerticalRight" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);"> </span> <span class="CaptionBorderBottom" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);"> </span> <span class="CaptionEdgeLeftBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"> </span> <span class="CaptionEdgeRightBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"> </span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> '; foreach ($config["site"]["shop_categories"] as $ServiceCategoryID => $data) { if ($data["enabled"]) { $main_content .= ' <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'' . $ServiceCategoryID . '\', \'' . $data['description'] . '\', \'ProductCategoryHelperDiv_' . $data['id'] . '\');" onmouseout="$(\'#HelperDivContainer\').hide();"> <div class="InnerTableTab '; if ($_REQUEST['ServiceCategoryID'] == $data["id"]) { $main_content .= 'ActiveInnerTableTab'; } $main_content .= '"> <div id="ProductCategoryHelperDiv_' . $data['id'] . '" class="ProductCategoryHelperDiv"></div> <a href="?subtopic=shopsystem&ServiceCategoryID=' . $data['id'] . '"> <img src="' . $layout_name . '/images/payment/'; if ($_REQUEST['ServiceCategoryID'] == $data["id"]) { $main_content .= 'products_tab_active'; } else { $main_content .= 'products_tab_nonactive'; } $main_content .= '.png"> <div class="InnerTableTabLabel">' . $ServiceCategoryID . '</div>'; if ($data['new']) { $main_content .= '<div class="RibbonNewProduct" style="background-image: url(' . $layout_name . '/images/payment/ribbon-tab-new-product.png);"></div>'; } $main_content .= ' </a> </div> </span>'; } } $main_content .= ' </td> </tr> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rt.gif);"> </div> </div> <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;"> <tbody> <tr> <td style="text-align: center;" align="center"> <div style="max-height: 500px; overflow-y: auto;">'; if ($offer_list['item']) foreach ($offer_list['item'] as $item) { $main_content .= ' <div class="ServiceID_Icon_Container" id="ServiceID_Icon_Container_' . $item['id'] . '" onclick="ChangeService(' . $item['id'] . ', 2);" onmouseover="MouseOverServiceID(' . $item['id'] . ', 2);" onmouseout="MouseOutServiceID(' . $item['id'] . ', 2);"> <div class="ServiceID_Icon_Container_Background" id="" style="background-image:url(' . $layout_name . '/images/payment/serviceid_icon_normal.png);"> <div class="ServiceID_Icon" id="ServiceID_Icon_' . $item['id'] . '" style="background-image:url(./images/items/' . $item['item_id'] . '.gif);" onclick="ChangeService(' . $item['id'] . ', 14);" onmouseover="MouseOverServiceID(' . $item['id'] . ', 14);" onmouseout="MouseOutServiceID(' . $item['id'] . ', 14);"> <div class="PermanentDeactivated"> <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'' . htmlspecialchars($item['name']) . '\', \'' . htmlspecialchars($item['description']) . '<br/><br/>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();"> <div class="ServiceID_HelperDiv"></div> </span> </div> <div class="PermanentDeactivated ServiceID_Deactivated_ByChoice" id="ServiceID_NotAllowed_' . $item['id'] . '" style="display: none;"> <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'Service Info:\', \'<p>The product is not available for the selected payment method!</p>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();"> <div class="ServiceID_Deactivated" style="background-image: url(' . $layout_name . '/images/payment/serviceid_deactivated.png);"></div> </span> </div>'; if ($item['new']) { $main_content .= '<div class="RibbonNewProduct" style="background-image: url(' . $layout_name . '/images/payment/ribbon-new-product.png);"></div>'; } $main_content .= ' <div class="ServiceID_Icon_Selected" id="ServiceID_Icon_Selected_' . $item['id'] . '"></div> <div class="ServiceID_Icon_Over" id="ServiceID_Icon_Over_' . $item['id'] . '"></div><div class="ServiceID_Icon_Animation_1" id="ServiceID_Icon_Animation_1' . $item['id'] . '" style="background-image: url(' . $layout_name . '/images/payment/serviceid' . $item['id'] . '_animation_1.gif);"></div> <label for="ServiceID_' . $item['id'] . '"> <div class="ServiceIDLabelContainer"> <div class="ServiceIDLabel"> <input type="radio" id="ServiceID_' . $item['id'] . '" name="ServiceID" value="' . $item['id'] . '" style="display: none;" required>' . htmlspecialchars($item['name']) . ' </div> </div> <div class="ServiceIDPriceContainer"> <span class="ServiceIDPrice" id="PD_' . $item['id'] . '">' . $item['points'] . ' TP$</div> </label> </div> </div> </div>'; } $main_content .= ' </div> </td> </tr> </tbody> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);"> </div> <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);"> </div> </div> </div> <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;"> <form method="post" action=""> <tr> <td bgcolor="#F1E0C6"> Your Points: <b> ' . $user_premium_points . ' TP$</b> </td> <td bgcolor="#F1E0C6"> <div class="BigButton" style="float:right; background-image:url(' . $layout_name . '/images/global/buttons/sbutton_green.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"> <div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_green_over.gif);"> </div> <a class="ButtonText" href="?subtopic=buypoints"> <img src="' . $layout_name . '/images/global/buttons/_sbutton_buypoints.gif" alt="Buy points"/></a> </div> </div> </td> </tr> </table> </div> </div> <br> <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;"> <form method="post" action=""> <tr> <td bgcolor="#F1E0C6"> <font color="red"><b>Atencao: Todos items sao entregues automaticamento por nosso sistema!</b></font> </td> </tr> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);"> </div> <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);"> </div> </div> </div> </td> </tr> <tr> <td style="display:none;"> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rt.gif);"> </div> </div> <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;"> <tbody> <tr> <td style="text-align: center;" align="center"> <div style="max-height: 240px; overflow-y: auto;">'; $main_content .= ' <div class="PMCID_Icon_Container" id="PMCID_Icon_Container_1"> <div class="PMCID_Icon" id="PMCID_Icon_1" style="background-image:url(' . $layout_name . '/images//payment/pmcid_icon_normal.png);" onclick="ChangePMC(1);" onmouseover="MouseOverPMCID(1);" onmouseout="MouseOutPMCID(1);"> <div class="PermanentDeactivated PMCID_Deactivated_ByChoice" id="PMCID_NotAllowed_1" style="display: none;" "=""> <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'Payment Method Info:\', \' <p>The payment method is not allowed for the selected service!</p>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();"> <div class="PMCID_Deactivated" style="background-image: url(' . $layout_name . '/images/payment/pmcid_deactivated.png);"> </div> </span> </div> <div class="PMCID_Icon_Selected" id="PMCID_Icon_Selected_1"></div> <div class="PMCID_Icon_Over" id="PMCID_Icon_Over_1"></div> <span style="position: absolute; left: 125px; top: 53px; z-index: 99;"> <span style="margin-left: 5px; position: absolute; margin-top: 2px;"> <a href="../common/help.php?subtopic=Field-PaymentMethodCategory-Option-1" target="_blank"> <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'Information:\', \'Your Points, go to buy points to donate and get more if you need.\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();"> <img style="border:0px;" src="' . $layout_name . '/images/global/content/info.gif"> </span> </a> </span> </span> <img class="PMCID_CP_Icon" src="' . $layout_name . '/images/payment/paymentmethodcategory11.gif"> <div class="PMCID_CP_Label"> <input type="radio" id="PMCID_1" name="PMCID" value="1" style="display: none;" checked> <label for="PMCID_1">Your points <br/> Balance: ' . $account_logged->getCustomField("premium_points") . ' TP$</label> </div> </div>'; $main_content .= ' </div> </div> </div> </td> </tr> </tbody> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);"> </div> <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);"> </div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <div class="SubmitButtonRow"> <div class="LeftButton"> <div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_green.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_green_over.gif);"></div> <input type="hidden" name="page" value="orderinfo"> <input class="ButtonText" type="image" name="Next" alt="Next" src="' . $layout_name . '/images/global/buttons/_sbutton_next.gif"> </div> </div> </div> </form> <div class="RightButton"> <form action="?subtopic=accountmanagement" method="post" style="padding:0px;margin:0px;"> <div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_red.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_red_over.gif);"></div> <input type="hidden" name="page" value="overview"> <input class="ButtonText" type="image" name="Cancel" alt="Cancel" src="' . $layout_name . '/images/global/buttons/_sbutton_cancel.gif"> </div> </div> </form> </div> </div> '; } if ($_POST['page'] == 'orderinfo') { $main_content .= ' <div class="BoxContent" style="background-image:url(' . $layout_name . '/images/global/content/scroll.gif);"> <div id="ProgressBar"> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="' . $layout_name . '/images/global/content/stonebar-left-end.gif"> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image:url(' . $layout_name . '/images/global/content/stonebar-center.gif);"> </div> </div> <img id="BackgroundContainerRightEnd" src="' . $layout_name . '/images/global/content/stonebar-right-end.gif"> </div> <img id="TubeLeftEnd" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-left-green.gif"><img id="TubeRightEnd" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-right-blue.gif"> <div id="FirstStep" class="Steps"> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-1-green.gif"> <div class="StepText" style="font-weight:normal;"> Select service </div> </div> </div> <div id="StepsContainer1"> <div id="StepsContainer2"> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-2-green.gif"> <div class="StepText" style="font-weight:bold;"> Select your character </div> </div> </div> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-green-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-3-blue.gif"> <div class="StepText" style="font-weight:normal;"> Confirm your order </div> </div> </div> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-4-blue.gif"> <div class="StepText" style="font-weight:normal;"> Summary </div> </div> </div> </div> </div> </div> </div> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span><span class="CaptionEdgeRightTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span><span class="CaptionBorderTop" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);"></span><span class="CaptionVerticalLeft" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);"></span> <div class="Text"> Select your character </div> <span class="CaptionVerticalRight" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);"></span><span class="CaptionBorderBottom" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);"></span><span class="CaptionEdgeLeftBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span><span class="CaptionEdgeRightBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rt.gif);"> </div> </div> <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;">'; $ServiceID = (int) $_POST['ServiceID']; if (empty($ServiceID)) { $main_content .= '<tr><td>Please <a href="?subtopic=shopsystem&ServiceCategoryID=1">select item</a> first.</tr></td>'; } else { $ServiceOffer = getItemByID($ServiceID); if (isset($ServiceOffer['id'])) { //item exist in database if ($user_premium_points >= $ServiceOffer['points']) { $main_content .= ' <tr class="Odd"> <td style="font-weight:bold; width: 1%;">'; $main_content .= ' <div class="ServiceID_Icon_Container" id="ServiceID_Icon_Container_' . $ServiceOffer['id'] . '"> '; $main_content .= ' <div class="ServiceID_Icon_Container_Background" style="background-image:url(' . $layout_name . '/images/payment/serviceid_icon_normal.png);"> <div class="ServiceID_Icon" id="ServiceID_Icon_' . $ServiceOffer['id'] . '" style="background-image:url(./images/items/' . $ServiceOffer['item_id'] . '.gif); cursor: auto;">'; $main_content .= ' <label for="ServiceID_' . $ServiceOffer['id'] . '"> <div class="ServiceIDLabelContainer"> <div class="ServiceIDLabel" style="cursor: auto;"> ' . htmlspecialchars($ServiceOffer['name']) . ' </div> </div> <div class="PermanentDeactivated"> <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'' . htmlspecialchars($ServiceOffer['name']) . '\', \'' . htmlspecialchars($ServiceOffer['description']) . '<br/><br/>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();"> <div class="ServiceID_HelperDiv"></div> </span> </div> <div class="PermanentDeactivated ServiceID_Deactivated_ByChoice" id="ServiceID_NotAllowed_' . $ServiceOffer['id'] . '" style="display: none;"> <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'Service Info:\', \'<p>The product is not available for the selected payment method!</p>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();"> <div class="ServiceID_Deactivated" style="background-image: url(' . $layout_name . '/images/payment/serviceid_deactivated.png);"></div> </span> </div> <div class="ServiceIDPriceContainer" style="cursor: auto;"> <span class="ServiceIDPrice" id="PD_' . $ServiceOffer['id'] . '">' . $ServiceOffer['points'] . ' TP$</span> </div> </label> </div> </div> </div>'; $main_content .= ' </td> <td> <form action="" method="POST"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;"> <tr bgcolor="' . $config['site']['vdarkborder'] . '"><td colspan="2" class="white"><b>Give item to player from your account</b></td></tr> <tr bgcolor="' . $config['site']['lightborder'] . '"><td width="130"><b>Character name:</b></td><td><select name="buy_name" style=" width: 100%; height: 30px; display: block; float: left; ">'; $players_from_logged_acc = $account_logged->getPlayersList(); if (count($players_from_logged_acc) > 0) { foreach ($players_from_logged_acc as $player) { $main_content .= '<option>' . htmlspecialchars($player->getName()) . '</option>'; } } else { $main_content .= 'You don\'t have any character on your account.'; } $main_content .= '</select></td></tr>'; if ($ServiceOffer['type'] == 'itemvip') { $main_content .= '<tr bgcolor="' . $config['site']['lightborder'] . '"><td width="130"><b>Quantity:</b></td><td><input type="text" name="quantity" value="1" style="width: 100%; height: 25px; line-height: 25px;" placeholder=" Quantity"></td></tr>'; } $main_content .= ' <tr bgcolor="' . $config['site']['vdarkborder'] . '"><td colspan="2" class="white"><b>Give item to other player</b></td></tr> <tr bgcolor="' . $config['site']['lightborder'] . '"><td><b>To player:</b></td><td><input type="text" name="gift_name" style="width: 100%; height: 25px; line-height: 25px;" placeholder=" Name of player to give."></td></tr> <tr bgcolor="' . $config['site']['lightborder'] . '"><td><b>From:</b></td><td><input type="text" name="gift_from" style="width: 100%; height: 25px; line-height: 25px;" placeholder=" Your nick, \'empty\' for Anonymous."></td></tr> '; $main_content .= ' </table> </td> </tr> '; } else { $main_content .= '<tr><td>For this item you need <b>' . $ServiceOffer['points'] . '</b> TP$. You have only <b>' . $user_premium_points . '</b> TP$. Please <a href="?subtopic=shopsystem&ServiceCategoryID=1">select other item</a> or buy TP$.</tr></td>'; } } else { $main_content .= '<tr><td>Offer ID doesn\'t exist. Please <a href="?subtopic=shopsystem&ServiceCategoryID=1">select item</a> again.</tr></td>'; } } $main_content .= ' </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);"> </div> <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);"> </div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <div class="SubmitButtonRow"> <div class="LeftButton"> <div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_green.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_green_over.gif);"></div> <input type="hidden" name="page" value="confirmorder"> '. $_POST['ServiceID'] .' <input type="hidden" name="ServiceID" value="' . $_POST['ServiceID'] . '"> <input class="ButtonText" type="image" name="Next" alt="Next" src="' . $layout_name . '/images/global/buttons/_sbutton_next.gif"> </div> </div> </div> </form> <div class="RightButton"> <form method="post" action=""> <div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_over.gif);"></div> <input type="hidden" name="page" value=""> <input type="hidden" name="ServiceID" value="' . $_POST['ServiceID'] . '"> <input class="ButtonText" type="image" name="Previous" alt="Previous" src="' . $layout_name . '/images/global/buttons/_sbutton_previous.gif"> </div> </div> </form> </div> </div> <!--script type="text/javascript" src="templates/js/utils.js"></script--> </div>'; } if ($_POST['page'] == 'confirmorder') { $main_content .= ' <div class="BoxContent" style="background-image:url(' . $layout_name . '/images/global/content/scroll.gif);"> <div id="ProgressBar"> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="' . $layout_name . '/images/global/content/stonebar-left-end.gif"> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image:url(' . $layout_name . '/images/global/content/stonebar-center.gif);"> </div> </div> <img id="BackgroundContainerRightEnd" src="' . $layout_name . '/images/global/content/stonebar-right-end.gif"> </div> <img id="TubeLeftEnd" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-left-green.gif"><img id="TubeRightEnd" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-right-blue.gif"> <div id="FirstStep" class="Steps"> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-1-green.gif"> <div class="StepText" style="font-weight:normal;"> Select service </div> </div> </div> <div id="StepsContainer1"> <div id="StepsContainer2"> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-2-green.gif"> <div class="StepText" style="font-weight:bold;"> Select your character </div> </div> </div> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-3-green.gif"> <div class="StepText" style="font-weight:normal;"> Confirm your order </div> </div> </div> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-green-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-4-blue.gif"> <div class="StepText" style="font-weight:normal;"> Summary </div> </div> </div> </div> </div> </div> </div> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span><span class="CaptionEdgeRightTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span><span class="CaptionBorderTop" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);"></span><span class="CaptionVerticalLeft" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);"></span> <div class="Text"> Confirm your order </div> <span class="CaptionVerticalRight" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);"></span><span class="CaptionBorderBottom" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);"></span><span class="CaptionEdgeLeftBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span><span class="CaptionEdgeRightBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rt.gif);"> </div> </div> <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;">'; $ServiceID = (int) $_POST['ServiceID']; if (empty($ServiceID)) { $main_content .= '<tr><td>Please <a href="?subtopic=shopsystem&ServiceCategoryID=1">select item</a> first.</tr></td>'; } else { $ServiceOffer = getItemByID($ServiceID); $quantity = (int) $_POST['quantity']; $priece = (int) $ServiceOffer['points']; $total = $quantity * $priece; if (isset($ServiceOffer['id'])) { //item exist in database $errorcode = 0; if ($ServiceOffer['type'] == 'itemvip') { if (!isInteger($_POST['quantity'])) { $main_content .= '<tr><td>Please, enter a valid quantity (only integer numbers)!</tr></td>'; $errorcode = 1; } elseif ((int) $_POST['quantity'] <= 0) { $main_content .= '<tr><td>Please, quantity must be higher than 0!</tr></td>'; $errorcode = 1; } } if ($errorcode == 0) { if ($user_premium_points >= $ServiceOffer['points']) { $main_content .= '<tr><td style="padding: 5px; line-height: 20px;"> <form action="" method="POST" style="margin: 0px;"> <b style="width: 150px; display: inline-block;">Item name:</b> ' . $ServiceOffer['name'] . '<br/> <b style="width: 150px; display: inline-block;">Item price:</b> ' . $ServiceOffer['points'] . ' TP$ from your account<br/> <!--<b style="width: 150px; display: inline-block;">Quantity:</b> ' . (int) $_POST['quantity'] . ' <br/>--> <!--<b style="width: 150px; display: inline-block;">Total:</b> ' . $total . ' TP$<br/>-->'; if ($_POST['gift_name']) { $main_content .= '<b style="width: 150px; display: inline-block;">From:</b> ' . $_POST['gift_from'] . '<br/><b style="width: 150px; display: inline-block;">To:</b> ' . $_POST['gift_name'] . '<br/>'; } else { $main_content .= '<b style="width: 150px; display: inline-block;">Owner:</b> ' . $_POST['buy_name'] . ' <small>[<a href="index.php?subtopic=characters&name=' . $_POST['buy_name'] . '" target="_blank">View Character</a>]</small><br/>'; } $main_content .= '<b style="width: 150px; display: inline-block;">Payment Method:</b> Points<br/></td></tr>'; } else { $main_content .= '<tr><td>For this item you need <b>' . $ServiceOffer['points'] . '</b> TP$. You have only <b>' . $user_premium_points . '</b> TP$. Please <a href="?subtopic=shopsystem&ServiceCategoryID=1">select other item</a> or buy TP$.</tr></td>'; } } } else { $main_content .= '<tr><td>Offer ID doesn\'t exist. Please <a href="?subtopic=shopsystem&ServiceCategoryID=1">select item</a> again.</tr></td>'; } } $main_content .= ' </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);"> </div> <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);"> </div> </div> </div> <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;"> <form method="post" action=""> <tr> <td colspan="2"> <input type="checkbox" name="order_contract" value="1" id="AgreementsCheckbox" required> <span> <label for="AgreementsCheckbox">I have read and I agree to the <a href="?subtopic=legaldocuments" target="_blank">Extended Tibia Service Agreement</a>.</label> </span> </td> </tr> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);"> </div> <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);"> </div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <div class="SubmitButtonRow"> <div class="LeftButton"> <input type="hidden" name="page" value="summaryorder"> <input type="hidden" name="viewed_confirmation_page" value="1"> <input type="hidden" name="buy_confirmed" value="1"> <input type="hidden" name="quantity" value="' . $_POST['quantity'] . '"> <input type="hidden" name="buy_name" value="' . $_POST['buy_name'] . '"> <input type="hidden" name="gift_name" value="' . $_POST['gift_name'] . '"> <input type="hidden" name="gift_from" value="' . $_POST['gift_from'] . '"> <input type="hidden" name="ServiceID" value="' . $_POST['ServiceID'] . '">'; $_SESSION['add_itens'] = TRUE; $main_content .= '<div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_green.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_green_over.gif);"></div> <input class="ButtonText" type="image" name="Buy now" alt="Buy now" src="' . $layout_name . '/images/global/buttons/_sbutton_buynow.gif"> </div> </div> </div> </form> <div class="RightButton"> <form method="post" action=""> <input type="hidden" name="page" value="orderinfo"> <input type="hidden" name="ServiceID" value="' . $_POST['ServiceID'] . '"> <div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_over.gif);"></div> <input class="ButtonText" type="image" name="Previous" alt="Previous" src="' . $layout_name . '/images/global/buttons/_sbutton_previous.gif"> </div> </div> </form> </div> </div> <script type="text/javascript" src="templates/js/utils.js"></script> </div>'; } if ($_POST['page'] == 'summaryorder') { $main_content .= ' <div class="BoxContent" style="background-image:url(' . $layout_name . '/images/global/content/scroll.gif);"> <div id="ProgressBar"> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="' . $layout_name . '/images/global/content/stonebar-left-end.gif"> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image:url(' . $layout_name . '/images/global/content/stonebar-center.gif);"> </div> </div> <img id="BackgroundContainerRightEnd" src="' . $layout_name . '/images/global/content/stonebar-right-end.gif"> </div> <img id="TubeLeftEnd" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-left-green.gif"><img id="TubeRightEnd" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-right-green.gif"> <div id="FirstStep" class="Steps"> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-1-green.gif"> <div class="StepText" style="font-weight:normal;"> Summary of your order </div> </div> </div> <div id="StepsContainer1"> <div id="StepsContainer2"> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-2-green.gif"> <div class="StepText" style="font-weight:bold;"> Select your character </div> </div> </div> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-3-green.gif"> <div class="StepText" style="font-weight:normal;"> Confirm your order </div> </div> </div> <div class="Steps" style="width:33%"> <div class="TubeContainer"> <img class="Tube" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="' . $layout_name . '/images/global/content/progressbar/progress-bar-icon-4-green.gif"> <div class="StepText" style="font-weight:normal;"> Summary </div> </div> </div> </div> </div> </div> </div> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span><span class="CaptionEdgeRightTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span><span class="CaptionBorderTop" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);"></span><span class="CaptionVerticalLeft" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);"></span> <div class="Text"> Order summary </div> <span class="CaptionVerticalRight" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);"></span><span class="CaptionBorderBottom" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);"></span><span class="CaptionEdgeLeftBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span><span class="CaptionEdgeRightBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rt.gif);"> </div> </div> <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;">'; if (empty($_POST['ServiceID'])) { $errormessage .= 'Please <a href="?subtopic=shopsystem">select item</a> first.'; } else { $buy_id = (int) $_POST['ServiceID']; $buy_offer = getItemByID($buy_id); } if ($_POST['gift_name']) { $buy_name = trim($_POST['gift_name']); } else { $buy_name = trim($_POST['buy_name']); } if (empty($_POST['gift_from'])) { $buy_from = 'Anonymous'; } else { $buy_from = trim($_POST['gift_from']); } if (empty($_POST['order_contract'])) { $errormessage .= 'You need accept terms.'; } if ($buy_offer['type'] == 'itemvip') { if (!isInteger($_POST['quantity'])) { $errormessage .= 'Please, enter a valid quantity (only integer numbers)!'; } if ((int) $_POST['quantity'] <= 0) { $errormessage .= 'Please, quantity must be higher than 0!'; } } if (!check_name($buy_from)) { $errormessage .= 'Invalid nick ("from player") format. Please <a href="?subtopic=shopsystem&action=select_player&buy_id=' . $buy_id . '">select other name</a> or contact with administrator.'; } else { if ($_SESSION['add_itens'] and empty($errormessage)) { $buy_offer = getItemByID($buy_id); if (isset($buy_offer['id'])) { //item exist in database if ($user_premium_points >= $buy_offer['points']) { if (check_name($buy_name)) { $buy_player = new Player(); $buy_player->find($buy_name); if ($buy_player->isLoaded()) { $buy_player_account = $buy_player->getAccount(); if ($_POST['viewed_confirmation_page'] && $_POST['buy_confirmed']) { $buy_type = 'give_item'; $selectedCount = 1; if ($buy_offer['type'] == 'vipdays') { $buy_type = 'vipdays'; } elseif ($buy_offer['type'] == 'pacc') { $buy_type = 'pacc'; } if ($buy_offer['type'] == 'itemvip') { $selectedCount = $_POST['quantity']; $totalQ = (int) $buy_offer['item_count'] * (int) $selectedCount; $totalP = $totalQ * (int) $buy_offer['points']; } else { $totalQ = (int) $buy_offer['item_count']; $totalP = (int) $buy_offer['points']; } $sql = 'INSERT INTO ' . $SQL->tableName('z_ots_comunication') . ' (' . $SQL->fieldName('id') . ',' . $SQL->fieldName('name') . ',' . $SQL->fieldName('type') . ',' . $SQL->fieldName('action') . ',' . $SQL->fieldName('param1') . ',' . $SQL->fieldName('param2') . ',' . $SQL->fieldName('param3') . ',' . $SQL->fieldName('param4') . ',' . $SQL->fieldName('param5') . ',' . $SQL->fieldName('param6') . ',' . $SQL->fieldName('param7') . ',' . $SQL->fieldName('delete_it') . ') VALUES (NULL, ' . $SQL->quote($buy_player->getName()) . ', ' . $SQL->quote('login') . ', ' . $SQL->quote($buy_type) . ', ' . $SQL->quote($buy_offer['item_id']) . ', ' . $SQL->quote($totalQ) . ', ' . $SQL->quote('') . ', ' . $SQL->quote('') . ', ' . $SQL->quote($buy_offer['type']) . ', ' . $SQL->quote($buy_offer['name']) . ', ' . $SQL->quote('') . ', ' . $SQL->quote(1) . ');'; $SQL->query($sql); $save_transaction = 'INSERT INTO ' . $SQL->tableName('z_shop_history_item') . ' (' . $SQL->fieldName('id') . ',' . $SQL->fieldName('to_name') . ',' . $SQL->fieldName('to_account') . ',' . $SQL->fieldName('from_nick') . ',' . $SQL->fieldName('from_account') . ',' . $SQL->fieldName('price') . ',' . $SQL->fieldName('offer_id') . ',' . $SQL->fieldName('trans_state') . ',' . $SQL->fieldName('trans_start') . ',' . $SQL->fieldName('trans_real') . ') VALUES (' . $SQL->lastInsertId() . ', ' . $SQL->quote($buy_player->getName()) . ', ' . $SQL->quote($buy_player_account->getId()) . ', ' . $SQL->quote($buy_from) . ', ' . $SQL->quote($account_logged->getId()) . ', ' . $SQL->quote($buy_offer['points']) . ', ' . $SQL->quote($buy_offer['name']) . ', ' . $SQL->quote('wait') . ', ' . $SQL->quote(time()) . ', ' . $SQL->quote(0) . ');'; $SQL->query($save_transaction); $account_logged->setCustomField('premium_points', (int) $user_premium_points - (int) $totalP); $user_premium_points = $user_premium_points - $totalP; $main_content .= '<TR style="padding: 5px; line-height: 20px;">> <TD BGCOLOR="' . $config['site']['darkborder'] . '" ALIGN=left> <b>' . htmlspecialchars($buy_offer['name']) . '</b> foi enviado ao player <b>' . htmlspecialchars($buy_player->getName()) . '</b>.<br/> Aguarde alguns segundos para receber.<br/> Foram debitados <b>' . $totalP . ' TP$</b> da sua conta.<br/> Saldo disponível: <b>' . $user_premium_points . ' TP$</b>. Obrigado por colaborar! Lembramos que convertemos todo o dinheiro arrecadado em recursos para o próprio servidor. </TD> <td style="font-weight:bold; width: 1%;"> <div class="ServiceID_Icon_Container" id="ServiceID_Icon_Container_' . $buy_offer['id'] . '"> <div class="ServiceID_Icon_Container_Background" style="background-image:url(' . $layout_name . '/images/payment/serviceid_icon_normal.png);"> <div class="ServiceID_Icon" id="ServiceID_Icon_' . $buy_offer['id'] . '" style="background-image:url(./images/items/' . $buy_offer['item_id'] . '.gif); cursor: auto;"><label for="ServiceID_' . $buy_offer['id'] . '"><div class="ServiceIDLabelContainer"> <div class="ServiceIDLabel" style="cursor: auto;">' . htmlspecialchars($buy_offer['name']) . '</div> </div> <div class="PermanentDeactivated"> <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'' . htmlspecialchars($buy_offer['name']) . '\', \'' . htmlspecialchars($buy_offer['description']) . '<br/><br/>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();"> <div class="ServiceID_HelperDiv"></div> </span> </div> <div class="PermanentDeactivated ServiceID_Deactivated_ByChoice" id="ServiceID_NotAllowed_' . $buy_offer['id'] . '" style="display: none;"> <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'Service Info:\', \'<p>The product is not available for the selected payment method!</p>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();"> <div class="ServiceID_Deactivated" style="background-image: url(' . $layout_name . '/images/payment/serviceid_deactivated.png);"></div> </span> </div> <div class="ServiceIDPriceContainer" style="cursor: auto;"> <span class="ServiceIDPrice" id="PD_' . $buy_offer['id'] . '">' . $buy_offer['points'] . ' TP$</span> </div> </label> </div> </div> </div> </td> </TR>'; } } else { $errormessage .= 'Player with name <b>' . htmlspecialchars($buy_name) . '</b> doesn\'t exist. Please <a href="?subtopic=shopsystem&action=select_player&buy_id=' . $buy_id . '">select other name</a>.'; } } else { $errormessage .= 'Invalid name format. Please <a href="?subtopic=shopsystem&action=select_player&buy_id=' . $buy_id . '">select other name</a> or contact with administrator.'; } } else { $errormessage .= 'For this item you need <b>' . $buy_offer['points'] . '</b> points. You have only <b>' . $user_premium_points . '</b> premium points. Please <a href="?subtopic=shopsystem">select other item</a> or buy premium points.'; } } else { $errormessage .= 'Offer with ID <b>' . $buy_id . '</b> doesn\'t exist. Please <a href="?subtopic=shopsystem">select item</a> again.'; } if ($_SESSION['add_itens']) { $_SESSION['add_itens'] = FALSE; } } else { if (empty($errormessage)) { $main_content .= ' <TR> <TD> Seu pedido está sendo processado, por favor aguarde alguns segundos! </TR> </TD>'; } } } if (!empty($errormessage)) { $main_content .= '<TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4> <TR><TD BGCOLOR="' . $config['site']['vdarkborder'] . '" ALIGN=left CLASS=white><B>Informations</B></TD></TR> <TR><TD BGCOLOR="' . $config['site']['lightborder'] . '" ALIGN=left><b>' . $errormessage . '</b></TD></TR> </table>'; } $main_content .= ' </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);"> </div> <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);"> </div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <div class="SubmitButtonRow"> <form method="post" action=""> <div class="LeftButton"> <input type="hidden" name="page" value=""> <input type="hidden" name="viewed_confirmation_page" value=""> <input type="hidden" name="buy_confirmed" value=""> <input type="hidden" name="buy_name" value=""> <input type="hidden" name="gift_name" value=""> <input type="hidden" name="gift_from" value=""> <input type="hidden" name="ServiceID" value=""> <input type="hidden" name="order_contract" value=""> <div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_red.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"> <div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_red_over.gif);"> </div> <input class="ButtonText" type="image" name="Buy now" alt="Buy now" src="' . $layout_name . '/images/global/buttons/_sbutton_backshop.gif"> </div> </div> </div> </form> <div class="RightButton"> <form method="post" action="?subtopic=accountmanagement"> <input type="hidden" name="page" value=""> <input type="hidden" name="viewed_confirmation_page" value=""> <input type="hidden" name="buy_confirmed" value=""> <input type="hidden" name="buy_name" value=""> <input type="hidden" name="gift_name" value=""> <input type="hidden" name="gift_from" value=""> <input type="hidden" name="ServiceID" value=""> <div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"> <div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_over.gif);"> </div> <input class="ButtonText" type="image" name="Back" alt="Back" src="' . $layout_name . '/images/global/buttons/_sbutton_manageaccount.gif"> </div> </div> </form> </div> </div> <script type="text/javascript" src="templates/js/utils.js"></script> </div>'; } $main_content .= ' <script type="text/javascript"> $(\'#SelectCountrySubmitButton\').hide(); $(\'.PMCID_CP_Label > input\').hide(); $(\'.ServiceIDLabel > input\').hide(); ChangeService(1, 11); </script> <script type="text/javascript"> $(\'#SelectCountrySubmitButton\').hide(); $(\'.PMCID_CP_Label > input\').hide(); $(\'.ServiceIDLabel > input\').hide(); ChangeService(1, 12); </script> <div id="HelperDivContainer" style="background-image: url(./layouts/tibiacom/images/content/scroll.gif);"> <div class="HelperDivArrow" style="background-image: url(./layouts/tibiacom/images/content/helper-div-arrow.png);"></div> <div id="HelperDivHeadline"></div> <div id="HelperDivText"></div> <center> <img class="Ornament" src="./layouts/tibiacom/images/content/ornament.gif"> </center> <br> </div> '; } else { header('Location: ' . '?subtopic=accountmanagement'); } ?> MEU SHOPSYSTEM.PHP AE @UP- Gesior Tfs 1.2 Bug Shop System
mais o padrao é que ocorre o bug cara - Gesior Tfs 1.2 Bug Shop System
Informação Importante
Confirmação de Termo