-
Total de itens
1002 -
Registro em
-
Última visita
-
Dias Ganhos
20
Tudo que Mudrock postou
-
Eae pessoal bom eu aqui mais uma vez vou ensinar Protejer seu site seja o qual for contra listagem das suas pasta do Diretório, é uma coisa muito simples mas nem todos sabem só os mais avançados em Web Designer já devem saber, agora é sua vez de aprender! [Resumo] Sabe quando você digita www.seusite.com/index.php/templates ou outra pasta sem proteção ? no caso vai listar todo seus arquivos da quela pasta e acessível para qualquer pessoa baixar correto ? Aqui vou ensinar como se prevenir disso para ninguém pegar seus arquivos de seu site. *Primeiramente vamos criar um arquivo index.php dentro de uma pasta eu vou criar em Templates "c:/xampp/htdocs/templates" se quiser você também pode criar assim, copia um Arquivo Index.PHP ou index.HTM o que chama o seu site na página inicial, dentro da cópia Index.PHP ou Index.HTM coloca o seguinte HTML. Pronto agora vamos acessar a pasta template www.seusite.com/index.php/templates se o erro foi igual da imagem abaixo está correto ai é só por nas d+ pasta do seu site, as que contém a Index você pode pular! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR...l1-strict.dtd"> <text><strong><h1><center> Error 404 </center></h1><strong></text> <br> <title>Error by Alexy brocanello e Quilante Otserv</title> <script type="text/javascript"> function click() { if (event.button==2||event.button==3) { oncontextmenu='return false'; } } document.onmousedown=click document.oncontextmenu = new Function("return false;") </script> <script language='JavaScript'> function clique() {if (event.button==2||event.button==3) {oncontextmenu='return false';}} document.onmousedown=clique document.oncontextmenu = new Function("return false;") </script> <html xmlns="http://www.w3.org/1999/xhtml"xml:lang="en" lang="en"> <head> <meta name="Description" content="PokemonDBR o maior MMORPG de pokemon online do Brasil, chame seus amigos e venha nessa aventura." /> <meta name="Keywords" content="pokemon, pokemonbr, pokemon dbr, tibia, naruto, naruto online, otpokemon, pxg, pokemon online, poketibia, pokepro, pokemon rpg, poke on, otserv, tibia king, xtibia, facebook, jogos online, nintendo, rpg, mmorpg, jogar pokemon" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="Distribution" content="Global" /> <meta name="author" content="Error by Alexy brocanello amd Quilante Otserv" /> <meta name="Robots" content="index,follow" /> </head> <center><a href="http://www.planalto....leis/l9610.htm"target="_blank"><img src="http://hpobrasil.com/pokemondbr/error.png"/></a></center><center>Você está tentando acessar um lugar proibido, isso é plágio isso é crime!</center><center><br><a href="http://www.planalto.gov.br/ccivil_03/leis/l9610.htm" target="_blank"> lei 9.610 de 19 de fevereiro de 1998</center> </body> </html> Todos que acessar seu diretório não atorizado www.seusite.com/index.php/templates um aviso será mostrado e serve pra todos os site! até a próxima Créditos : Alex
-
seja Welcomido :3
- 8 respostas
-
- apresentações
- otserv
-
(e 1 mais)
Tags:
-
trago hoje a vocês um dos globais que vim trabalhando a alguns dias na base do printer da otland, e então por decisão própria vim postar para vocês abrirem seu servidor com ele. Este servidor é mapa Global 10.41 com todas as features da versão, mapa perfeito e sem bugs! Repito, abram na confiança, sem bugs, uptime garantido! Chega de mimimi e vamos ao que interessa, primeiro as principais coisas depois as imagens =) Coisas principais: Full Roshamuul 10.41 Warzones 1; 2; 3 com Crystal para entrar Monstros 100% Mapa 100% Npcs 100% Quests 100% Zao Market System integrado 100% Gray Beach City completa Taming System Treiners Offline New AB Todas as montarias da versão Templo modificado Depot modificado Bank System NPC Yalahar Full Wrath of Emperor Quest War System COM ESCUDINHOS Demais coisas que você poderá conferir fazendo o download =p Thais & Depot 2 andar: Sub-solo Thais Depot: Pedaço de Roshamuul completa: Gray Beach Hunt completa: São mais de 40 montarias! (Incluindo as novas) Segue abaixo o download do servidor, scan, site e database recomendada. Download servidor e distros/sources 10.37 até 10.41: https://www.sendspace.com/file/e4grzv Scan: https://www.virustotal.com/pt/url/ddbd899d125fc116edbca950231402273a86603c359c8c73b4c81c96006cae6e/analysis/1403451406/ Database 10.41 compatível: https://www.sendspace.com/file/n613im Gesior compatível e recomendado: http://www.4shared.c...Master_008.html Você também pode optar por Znote ACC. Atenção: Caso o servidor não rode com a distro atual, use esta nova compilada e disponibilizada pelo Jobsonmb. Faça o download e coloque na pasta do seu servidor: http://www.mediafire...BY JOBSONMB.rar O Servidor está pronto e preparado para ficar online, portanto aproveite, faça sucesso =) Créditos: Absolute (Edições e adaptações) Printer (Real Map base) AnaPaula (sources) Jobsom (compilação windows)
-
- 8 respostas
-
- apresentações
- otserv
-
(e 1 mais)
Tags:
-
Gesior de 2012 nao funciona em tfs 1.0
-
Ficou legal assim, achei que o rosto dele também estava um pouco azulado
-
Obrigado rsrs, coisinha simples ^^
-
Se você puder enviar imagens do painel do seu Modem pode facilitar e eu posso ajuda-lo
-
Você pode configurar se quer que o preço aumente a cada reset, se quer que o level pra resetar aumente e se vc quer que a vida resete junto (e quanto % da vida atual será a vida após resetar). Testado em tfs 1.1, Versão 10.77 Vá em data/npc/lib/ crie npc_resets.lua : config = { minlevel = 150, --- Level inical para resetar price = 10000, --- Preço inicial para resetar newlevel = 20, --- Level após reset priceByReset = 0, --- Preço acrescentado por reset percent = 30, ---- Porcentagem da vida/mana que você terá ao resetar (em relação à sua antiga vida total) maxresets = 50, ---- Maximo de resets levelbyreset = 0 --- Quanto de level vai precisar a mais no próximo reset } agora em data/npc/ crie reseter.XML : <?xml version="1.0" encoding="UTF-8"?> <npc name="Reseter" script="reseter.lua"> <health now="1000" max="1000"/> <look type="133" head="95" body="86" legs="86" feet="38" addons="3"/> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|.I've been waiting for you to come.. Say 'reset' or 'quantity'" /> <parameter key="message_farewell" value="Cya folk." /> <parameter key="message_walkaway" value="How Rude!" /> </parameters> </npc> Agora em data/npc/scripts crie reseter.lua : dofile('data/npc/lib/npc_resets.lua') local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if not npcHandler:isFocused(cid) then return false end local player = Player(cid) local newPrice = config.price + (getResets(cid) * config.priceByReset) local newminlevel = config.minlevel + (getResets(cid) * config.levelbyreset) if msgcontains(msg, 'reset') then if getResets(cid) < config.maxresets then npcHandler:say('You want to reset your character? It will cost '..newPrice..' gp\'s!', cid) npcHandler.topic[cid] = 1 else npcHandler:say('You already reached the maximum reset level!', cid) end elseif msgcontains(msg, 'yes') and npcHandler.topic[cid] == 1 then if player:getLevel() > newminlevel then if player:removeMoney(newPrice) then addEvent(function() if isPlayer(cid) then addReset(cid) end end, 3000) local number = getResets(cid)+1 local msg ="---[Reset: "..number.."]-- You have reseted! You'll be disconnected in 3 seconds." player:popupFYI(msg) npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) else npcHandler:say('Its necessary to have at least '..newPrice..' gp\'s for reseting!', cid) npcHandler.topic[cid] = 0 end else npcHandler:say('The minimum level for reseting is '..newminlevel..'!', cid) npcHandler.topic[cid] = 0 end elseif(msgcontains(msg, 'no')) and isInArray({1}, talkState[talkUser]) == TRUE then npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) npcHandler:say('Ok.', cid) elseif msgcontains(msg, 'quantity') then npcHandler:say('You have a total of '..getResets(cid)..' reset(s).', cid) npcHandler.topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Créditos : Linus
-
Pode chamar rsrsr
-
Obrigado, assim que tiver um tempinho arrumo rsrsr
-
action Como escolher seu VPS/DEDICADO - Linux ou Windows ?
tópico respondeu ao Mudrock de Mudrock em Tutoriais para Iniciantes
Obrigado pelas correções, mas esse tutorial/guia, era de 2 anos atras, minha intenção era somente ajudar e dar uma base para os membros de acordo com o popular, infelizmente não posso dar um doutorado de Sistemas Operacionais mais gostaria, mesmo assim obrigado -
pedido Capa e Perfil para Página
pergunta respondeu ao JonatasLucasf de Mudrock em Dúvidas e Pedidos
-
Muito...Muito...Bom mano, curti de mais, parabéns
-
Fico legal seu tratamento, a iluminação ficou bem legal, para inicio ta ótimo amigo qualquer coisa me chama que te ajudo
-
Pronto obrigado e desculpas
-
Obrigado cara, sempre que puder vou tar trazendo alguma coisa para a galera rsrs, coisa feita em 5 minutinhos mas que ajuda muita gente
-
Salve Xtibianos Estava sem nada para fazer, tinha acabado de terminar um Simple Code do meu projeto então criei um Logo Simples para o pessoal que não tem conhecimento em Photoshop Créditos EU http://www.mediafire.com/download/l17d2e5lln32gx9/LogoMuddrocK.psd http://www.mediafire.com/download/l17d2e5lln32gx9/LogoMuddrocK.psd
-
action Como escolher seu VPS/DEDICADO - Linux ou Windows ?
tópico respondeu ao Mudrock de Mudrock em Tutoriais para Iniciantes
Editado -
action Adicionar item para todos players online
um tópico no fórum postou Mudrock Actions e Talkactions
Para quem não sabe como funciona o script é o seguinte o ADM pode usar o comando para adicionar um item para todos os players online no servidor. • Adicionando o script • Em "data/talkactions/talkactions.xml" adicione está tag : <talkaction log="yes" words="/additem" access="5" event="script" value="additem.lua"/> Em "data/talkactions/scripts" crie um arquivo lua com o nome "additem" e adicione este script nele :function onSay(cid, words, param, channel) local t = string.explode(param, ",") if t[1] ~= nil and t[2] ~= nil then local list = {} for i, tid in ipairs(getPlayersOnline()) do list[i] = tid end for i = 1, #list do doPlayerAddItem(list[i],t[1],t[2]) doBroadcastMessage(getPlayerName(cid) .. " Acabou de dar: " .. t[2] .." ".. getItemNameById(t[1]) .. " para todos os players online!") end else doPlayerPopupFYI(cid, "No parm...\nSend:\n /itemadd itemid,how_much_items\nexample:\n /itemadd 2160,10") end return true end • Configurando • Citar Créditos Viitiing -
Bom, vi por aqui e não achei nenhum autoloot igual o da pxg ou sem bugs, então decidi vir aqui postar o que eu fiz. Vamos lá. 1º - Vá na pasta Lib, no arquivo some functions.lua e adicione isso depois do ultimo "end": function doPlayerAddItemStacking(cid, itemid, quant) local item = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, itemid) local piles = 0 if #item > 0 then for i,x in pairs(item) do if getThing(x).type < 100 then local it = getThing(x) doTransformItem(it.uid, itemid, it.type+quant) if it.type+quant > 100 then doPlayerAddItem(cid, itemid, it.type+quant-100) end else piles = piles+1 end break end else return doPlayerAddItem(cid, itemid, quant) end if piles == #item then doPlayerAddItem(cid, itemid, quant) end end 2º - Vá em actions/script e crie um arquivo.lua com nome de Autoloot, dentro coloque: --local toloot = {11441, 11441, 11443, 11444, 11445, 11446, 11447, 11448, 11449,11450, 11451, 11452, 11453, 11454, 12618, 12232, 12244} -- PREFERENCIAL - SE QUISER APENAS COM ALGUNS ITENS function onUse(cid, item, frompos, item2, topos) if getItemAttribute(item.uid, "corpseowner") ~= cid then doPlayerSendCancel(cid, "You're not the owner.") return true end local items = {} for x=0, (getContainerSize(item.uid)) do local itens = getContainerItem(item.uid, x) --if isInArray(toloot, itens.itemid) then table.insert(items, {i=itens.itemid, q=itens.type}) doRemoveItem(itens.uid) --break --end end for y=1, #items do doPlayerAddItemStacking(cid, items[y].i, items[y].q) doPlayerSendTextMessage(cid, 20, "Looted "..items[y].q.."x "..getItemNameById(items[y].i)..".") end if #items > 0 then return true else return false end end --[[ AUTO LOOT BY GABRIEL SALES SE QUISER ATIVAR O AUTOLOOT APENAS PARA ALGUNS ITENS, ADICIONE OS IDS NA TABELA toloot E TIRE OS COMENTÁRIOS(--). --]] Agora, no actions.xml adicione a tag: <action itemid="" event="script" value="Autoloot.lua"/> Dentro de itemid="", coloque o id dos corpses. Para conseguir o id dos corpses, podemos fazer um pequeno script, que pegará o corpse de cada pokemon capturável. Créditos: Mkalo -- Auto Stacking Gabriel Sales(eu) -- Resto
-
Olá pessoal, fiz um código para um box onde mostram os tops do servidor: level, magic, sword, axe, e etc ... Vou postar apenas o código, então quem não sabe implementa-lo na estrutura de seu layout, não venha me perturbar ... código: <?php foreach(new Highscores(Highscores::SKILL__LEVEL, 1) as $level) { echo '<img src="layout/img/rank.gif" border="0" alt="top" align="center"/> Level: <b> <a href="characters&name='.urlencode($level->getName()).'"> '.htmlspecialchars($level->getName()).'</a> </b>'; } foreach(new Highscores(Highscores::SKILL__MAGLEVEL, 1) as $magic) { echo '<br/> <img src="layout/img/rank.gif" border="0" alt="top" align="center"/> Magic: <b> <a href="characters&name='.urlencode($magic->getName()).'">'.htmlspecialchars($magic->getName()).'</a> </b>'; } foreach(new Highscores(Highscores::SKILL_SWORD, 1) as $sword) { echo '<br/> <img src="layout/img/rank.gif" border="0" alt="top" align="center"/> Sword: <b> <a href="characters&name='.urlencode($sword->getName()).'">'.htmlspecialchars($sword->getName()).'</a> </b>'; } foreach(new Highscores(Highscores::SKILL_DISTANCE, 1) as $dist) { echo '<br/> <img src="layout/img/rank.gif" border="0" alt="top" align="center"/> Distance: <b> <a href="characters&name='.urlencode($dist->getName()).'">'.htmlspecialchars($dist->getName()).'</a> </b>'; } ?> Abraços e até mais. Créditos : Luan
-
Então, aproveitei meu tempo vago e resolvi melhorar o painel de administração do Gessior. Encontrei um codigo pronto do membro da OtLand Tuso0n, baseado nesse codigo revisei tudo e refiz de uma maneira mais pratica mudando apenas o "cpanel.php". Pra quem quiser testar estou disponibilizando a source e o arquivo alterado. Adicionei as funções: *Change Name *Add Experience *Player Position *Delete Character *Change Account *Change E-Mail *Account Acess Removi: *Level -> Alterava somente o level. *Others -> Alterava atributos (mp/hp/cap) mas não conforme o level. *Password -> Alterava o password, mas não para sha1 então removi. Para econtrar basta entrar na pasta raiz do Gessior e procurar pela pasta Pages, la esta o "cpanel.php" Original: Modificado dentro do Cpanel Original: Code (Cpanel.php): Código <?PHP if(!defined('INITIALIZED')) exit; if(!$logged){ $main_content .= ' Please enter your account name and your password.<br> <a href="index.php?subtopic=createaccount" >Create an account</a> if you do not have one yet.<br /><br /> <form action="index.php?subtopic=cpanel" method="post" > <div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <div class="Text">Account Login</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" > <tr> <td class="LabelV" > <span>Account Name:</span> </td> <td style="width:100%;" > <input type="password" name="account_login" SIZE="30" maxlength="30" > </td> </tr> <tr> <td class="LabelV" > <span>Password:</span> </td> <td> <input type="password" name="password_login" size="30" maxlength="29" > </td> </tr> </table> </div> </table> </div> </td> </tr><br /> <table width="100%" > <tr align="center" > <td> <table border="0" cellspacing="0" cellpadding="0" > <tr> <td style="border:0px;" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" > <div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" > </div> </div> </td> <tr> </form> </table> </td> <td> <table border="0" cellspacing="0" cellpadding="0" > <form action="index.php?subtopic=lostaccount" method="post" > <tr> <td style="border:0px;" > <div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" > <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" > <div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Account lost?" alt="Account lost?" src="'.$layout_name.'/images/buttons/_sbutton_accountlost.gif" > </div> </div> </td> </tr> </form> </table> </td> </tr> </table>'; }else{ if($group_id_of_acc_logged >= $config['site']['access_admin_panel']){ $main_content .= '<script type="text/javascript"> var showednewticker_state = "0"; function showNewTickerForm() { if(showednewticker_state == "0") { document.getElementById("newtickerform").innerHTML = \'<form action="" method="post" ><input type="hidden" name="newsticker"><table border="0"><tr><td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td><td><table border="0" bgcolor="F1E0C6"><tr><td><img src="'.$layout_name.'/images/news/icon_0.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_1.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_2.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_3.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_4.gif" width="20"></td></tr><tr><td><input type="radio" name="icon_id" value="0" checked="checked"></td><td><input type="radio" name="icon_id" value="1"></td><td><input type="radio" name="icon_id" value="2"></td><td><input type="radio" name="icon_id" value="3"></td><td><input type="radio" name="icon_id" value="4"></td></tr></table></td></tr><tr><td align="center" bgcolor="D4C0A1"><b>New<br>ticker<br>text:</b></td><td bgcolor="F1E0C6"><textarea name="new_ticker" rows="3" cols="45"></textarea></td></tr><tr><td><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="newsticker" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form></td><td><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/_sbutton_cancel.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div></td></tr></table>\'; document.getElementById("jajo").innerHTML = \'\'; showednewticker_state = "1"; } else { document.getElementById("newtickerform").innerHTML = \'\'; document.getElementById("jajo").innerHTML = \'<div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/addticker.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div>\'; showednewticker_state = "0"; } } var showednewnews_state = "0"; function showNewNewsForm() { if(showednewnews_state == "0") { document.getElementById("newnewsform").innerHTML = \'<form action="index.php?subtopic=latestnews&action=newnews" method="post" ><table border="0"><tr><td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td><td><table border="0" bgcolor="F1E0C6"><tr><td><img src="images/news/icon_0.gif" width="20"></td><td><img src="images/news/icon_1.gif" width="20"></td><td><img src="images/news/icon_2.gif" width="20"></td><td><img src="images/news/icon_3.gif" width="20"></td><td><img src="images/news/icon_4.gif" width="20"></td></tr><tr><td><input type="radio" name="icon_id" value="0" checked="checked"></td><td><input type="radio" name="icon_id" value="1"></td><td><input type="radio" name="icon_id" value="2"></td><td><input type="radio" name="icon_id" value="3"></td><td><input type="radio" name="icon_id" value="4"></td></tr></table></td></tr><tr><td align="center" bgcolor="F1E0C6"><b>Topic:</b></td><td><input type="text" name="news_topic" maxlenght="50" style="width: 300px" ></td></tr><tr><td align="center" bgcolor="D4C0A1"><b>News<br>text:</b></td><td bgcolor="F1E0C6"><textarea name="news_text" rows="6" cols="60"></textarea></td></tr><tr><td align="center" bgcolor="F1E0C6"><b>Your nick:</b></td><td><input type="text" name="news_name" maxlenght="40" style="width: 200px" ></td></tr><tr><td><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="CancelAddNews" src="'.$layout_name.'/images/buttons/_sbutton_cancel.gif" onClick="showNewNewsForm()" alt="CancelAddNews" /></div></div></td></tr></table>\'; document.getElementById("chicken").innerHTML = \'\'; showednewnews_state = "1"; } else { document.getElementById("newnewsform").innerHTML = \'\'; document.getElementById("chicken").innerHTML = \'<div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddNews" src="'.$layout_name.'/images/buttons/addnews.gif" onClick="showNewNewsForm()" alt="AddNews" /></div></div>\'; showednewnews_state = "0"; } }</script>'; $time = time(); if(isset($_POST['newsticker'])) { if($group_id_of_acc_logged >= $config['site']['access_tickers']) { $ticker_text = stripslashes(trim($_POST['new_ticker'])); $ticker_icon = (int) $_POST['icon_id']; if(empty($ticker_text)) { $news_content .= 'You can\'t add empty ticker.'; } else { if(empty($ticker_icon)) { $news_icon = 0; } $SQL->query('INSERT INTO '.$SQL->tableName('z_news_tickers').' (date, author, image_id, text, hide_ticker) VALUES ('.$SQL->quote($time).', '.$account_logged->getId().', '.$ticker_icon.', '.$SQL->quote($ticker_text).', 0)');} } } /* Inicio de conteúdo */ if ($action == ""){ $main_content .= ' <center> <table> <tbody> <tr> <td><img src="'.$layout_name.'/images/content/headline-bracer-left.gif"></td> <td style="text-align:center;vertical-align:middle;horizontal-align:center;font-size:17px;font-weight:bold;">Welcome to Admin Panel<br></td> <td><img src="'.$layout_name.'/images/content/headline-bracer-right.gif"></td> </tr> </tbody> </table> </center><br />'; $main_content .=' <table border="0" cellspacing="1" cellpadding="7" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td colspan="2"><font class="white"><b>General Control Panel</b></font></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Options</b></td> <td colspan="1" width="80%"><b>Informations</b></td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><div id="newtickerform"></div><div id="jajo"><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div></div></td> <td>Add <b>New Ticker</b></td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=captura_dados">Show Info</a></td> <td>Show internal information of the server</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=querys">Add Systems</a></td> <td>Add systems to the database</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=announcements">Featured Article</a></td> <td>Home page featured article.</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=social">Social Network</a></td> <td>Set your social network links, like facebook and twitter to be showed in home page.</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=polls">Manage Polls</a></td> <td>Create and manage your polls.</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=namelock">Change Name</a></td> <td>Change Character Name.</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=exp">Add Experience</a></td> <td>Add Experience to Player.</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=position">Change Position</a></td> <td>Change Player Position (Player/Tutor/Senior Tutor/GM/CM/GOD).</td> </tr>'; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=delete">Delete Character</a></td> <td>Delete Character (IRREVERSIBLE).</td> </tr>'; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=acc">Change Account</a></td> <td>Change Account Name/Number.</td> </tr>'; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=mail">Change E-Mail</a></td> <td>Change Account E-Mail.</td> </tr>'; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td align="center"><a href="index.php?subtopic=cpanel&action=access">Change Acess</a></td> <td>Change Account Acess.</td> </tr>'; $main_content .='</table>'; } /* Exibe informações */ if ($action == "captura_dados"){ $main_content .=' <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS="white"><b>Wait a second ...</b></td> </tr> <tr BGCOLOR='.$config['site']['darkborder'].'> <td>Searching needed data. Please wait.</td> </tr> </TABLE> <meta http-equiv="refresh" content="5; index.php?subtopic=cpanel&action=dados_sucesso" /> ';} if ($action == "dados_sucesso"){ $main_content .='<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS="white"><b>Wait a second ...</b></td> </tr> <tr BGCOLOR='.$config['site']['darkborder'].'> <td><font color="green"><b>Found needed data successfully!</b></font><br /><small>Redirecting ... </small></td> </tr> </TABLE> <meta http-equiv="refresh" content="3; index.php?subtopic=cpanel&action=informacoes_server" /> ';} if ($action == "informacoes_server"){ $main_content .=' <table border="0" cellspacing="1" cellpadding="7" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td colspan="2"><font class="white"><b>Control Panel - Server Informations</b></font></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Options</b></td> <td colspan="1" width="80%"><b>Informations</b></td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td><b>Server Path</b></td> <td>'.$config['site']['serverPath'].'</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td><b>Max<br />online players</b></td> <td>'.$config['server']['maxPlayers'].' players</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td><b>Access IP</b></td> <td>'.$config['server']['ip'].'</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td><b>Access PORT</b></td> <td>'.$config['server']['statusPort'].'</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td><b>Server<br /> localization</b></td> <td>'.$config['server']['location'].'</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td><b>Database</b><br /><font size="1">(MySQL, Sqlite)</font></td> <td>'.$config['server']['sqlType'].'</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td><b>User '.$config['server']['sqlType'].'</b></td> <td>'.$config['server']['sqlUser'].'</td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td><b>Password '.$config['server']['sqlType'].'</b></td> <td><input type="text" value="'.$config['server']['sqlPass'].'" readonly="readonly" disabled="disabled" /></td> </tr>'; if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .=' <tr bgcolor="'.$bgcolor.'"> <td><b>Database Name</b></td> <td>'.$config['server']['sqlDatabase'].'</td> </tr>'; $main_content .='</table><br /> <a href="index.php?subtopic=cpanel">BACK</a>';} /* Exibe informações FIM */ //Tiny Editor $main_content .= ' <script type="text/javascript" src="'.$layout_name.'/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode : "textareas", theme : "simple", plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,visualblocks", // Theme options theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft,visualblocks", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, // Example content CSS (should be your site CSS) content_css : "css/content.css", // Drop lists for link/image/media/template dialogs template_external_list_url : "lists/template_list.js", external_link_list_url : "lists/link_list.js", external_image_list_url : "lists/image_list.js", media_external_list_url : "lists/media_list.js", // Style formats style_formats : [ {title : \'Bold text\', inline : \'b\'}, {title : \'Red text\', inline : \'span\', styles : {color : \'#ff0000\'}}, {title : \'Red header\', block : \'h1\', styles : {color : \'#ff0000\'}}, {title : \'Example 1\', inline : \'span\', classes : \'example1\'}, {title : \'Example 2\', inline : \'span\', classes : \'example2\'}, {title : \'Table styles\'}, {title : \'Table row 1\', selector : \'tr\', classes : \'tablerow1\'} ], // Replace values for the template plugin template_replace_values : { username : "Some User", staffid : "991234" } }); </script>'; ///FEATURED ARTICLE if ($action == "announcements"){ $main_content .=' <script type="text/javascript"> var accountHttp; //sprawdza czy dane konto istnieje czy nie function checkAccount() { if(document.getElementById("account_name").value=="") { document.getElementById("acc_name_check").innerHTML = \'<img src="images/nok.gif" />\'; return; } accountHttp=GetXmlHttpObject(); if (accountHttp==null) { return; } var account = document.getElementById("account_name").value; var url="ajax/check_account.php?account=" + account + "&uid="+Math.random(); accountHttp.onreadystatechange=AccountStateChanged; accountHttp.open("GET",url,true); accountHttp.send(null); } var emailHttp; //sprawdza czy dane konto istnieje czy nie function checkEmail() { if(document.getElementById("email").value=="") { document.getElementById("email_check").innerHTML = \'<img src="images/nok.gif" />\'; return; } emailHttp=GetXmlHttpObject(); if (emailHttp==null) { return; } var email = document.getElementById("email").value; var url="ajax/check_email.php?email=" + email + "&uid="+Math.random(); emailHttp.onreadystatechange=EmailStateChanged; emailHttp.open("GET",url,true); emailHttp.send(null); } function EmailStateChanged() { if (emailHttp.readyState==4) { document.getElementById("email_check").innerHTML=emailHttp.responseText; } } function validate_required(field,alerttxt) { with (field) { if (value==null||value==""||value==" ") {alert(alerttxt);return false;} else {return true} } } function validate_email(field,alerttxt) { with (field) { apos=value.indexOf("@"); dotpos=value.lastIndexOf("."); if (apos<1||dotpos-apos<2) {alert(alerttxt);return false;} else {return true;} } } function validate_form(thisform) { with (thisform) { if (validate_required(title,"Please enter a title!")==false) {title.focus();return false;} if (validate_required(text,"Please enter your e-mail!")==false) {text.focus();return false;} if (validate_email(email,"Invalid e-mail format!")==false) {email.focus();return false;} if (verifpass==1) { if (validate_required(passor,"Please enter password!")==false) {passor.focus();return false;} if (validate_required(passor2,"Please repeat password!")==false) {passor2.focus();return false;} if (passor2.value!=passor.value) {alert(\'Repeated password is not equal to password!\');return false;} } if(rules.checked==false) {alert(\'To create account you must accept server rules!\');return false;} } } </script> <p>Now you can add a short text about one featured article of your latest news, just fill the fields below.</p> <form action="index.php?subtopic=cpanel&action=announcements_add" method="post"> <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS="white" colspan="2"><b>New Featured Article</b></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td width="20%">Title:</td> <td width="80%"><input type="text" name="title" /></td> </tr> <tr bgcolor="'.$config['site']['lightborder'].'"> <td>Text:</td> <td><textarea name="text" id="elm1" cols="50" rows="6" maxlength="240"></textarea></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td>Read More Link:</td> <td><input type="text" name="read_more"/></td> </tr> <tr bgcolor="'.$config['site']['lightborder'].'"> <td>Author:</td> <td><select name="author">'; $players_from_logged_acc = $account_logged->getPlayersList(); if(count($players_from_logged_acc) > 0) { foreach($players_from_logged_acc as $player) { $main_content .= '<option>'.$player->getName().'</option>'; } } else { $main_content .= 'You don\'t have any character on your account.'; } $main_content .=' </select></td> </tr> </table> <br /> <div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url("'.$layout_name.'/images/buttons/sbutton_over.gif"); visibility: hidden;"></div> <input class="ButtonText" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" type="image"> </div></div> </form> '; } if ($action == "announcements_add"){ $featured_title = addslashes($_POST['title']); $featured_text = addslashes($_POST['text']); $featured_author = addslashes($_POST['author']); $featured_read_more = addslashes($_POST['read_more']); $feat = $SQL->query("INSERT INTO `z_featured_article` (`id`,`title` ,`text` ,`date` ,`author`, `read_more`) VALUES (NULL , '$featured_title', '$featured_text', '".time()."', '$featured_author', '$featured_read_more');") or die(mysql_error()); $main_content .='<div align="center" style="font-size:18px;font-weight:bold;">Featured Article <font color="red">'.$featured_title.'</font> added!</div>'; } ///FEATURED ARTICLE END ///SOCIAL NETWORK if($action == "social"){ $nFace = $SQL->query("SELECT " .$SQL->fieldName('network_link'). " FROM " .$SQL->tableName('z_network_box'). " WHERE " .$SQL->fieldName('network_name'). " = 'facebook'")->fetch(); $nTweet = $SQL->query("SELECT " .$SQL->fieldName('network_link'). " FROM " .$SQL->tableName('z_network_box'). " WHERE " .$SQL->fieldName('network_name'). " = 'twitter'")->fetch(); //POST LINK FACEBOOK if(isset($_POST['facebook_save'])){ if(empty($nFace)){ $intoFace = $SQL->query("INSERT INTO `z_network_box` (network_name, network_link) VALUES ('facebook', '$_POST[facebook_profile]')"); if($intoFace){ echo '<meta http-equiv="refresh" content="0;URL=?subtopic=cpanel&action=social">'; unset($_POST['facebook_save']); } } else { $fLink = $_POST['facebook_profile']; $sqlFace = $SQL->query("UPDATE " .$SQL->tableName('z_network_box'). " SET " .$SQL->fieldName('network_link'). " = '$fLink' WHERE " .$SQL->fieldName('network_name'). " = 'facebook'"); if($sqlFace){ echo '<meta http-equiv="refresh" content="0;URL=?subtopic=cpanel&action=social">'; unset($_POST['facebook_save']); } } } //POST LINK TWITTER if(isset($_POST['twitter_save'])){ if(empty($nTweet)){ $intoTweet = $SQL->query("INSERT INTO `z_network_box` (network_name, network_link) VALUES ('twitter', '$_POST[twitter_profile]')"); if($intoTweet){ echo '<meta http-equiv="refresh" content="0;URL=?subtopic=cpanel&action=social">'; unset($_POST['twitter_save']); } } else { $tLink = $_POST['twitter_profile']; $sqlTwit = $SQL->query("UPDATE " .$SQL->tableName('z_network_box'). " SET " .$SQL->fieldName('network_link'). " = '$tLink' WHERE " .$SQL->fieldName('network_name'). " = 'twitter'"); if($sqlTwit){ echo '<meta http-equiv="refresh" content="0;URL=?subtopic=cpanel&action=social">'; unset($_POST['twitter_save']); } } } $main_content .= ' <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%> <TR> <TD>Fill the fields with your social informations.<BR> <BR> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR=#505050> <TD CLASS=white COLSPAN=3><B>Network Box Links</B></TD> </TR> <TR BGCOLOR=#D4C0A1> <TD><B>Facebook Page</B></TD> <form name="facebook" action="" method="post"> <td>https://www.facebook.com/<inputtype="text" name="facebook_profile" value="'.$nFace['network_link'].'"></td> <td><button type="submit" name="facebook_save">Save</button></td> </form> </TR> <TR BGCOLOR=#F1E0C6> <td><B>Twitter Profile</B></td> <form name="twitter" action="#" method="post"> <td>https://twitter.com/<inputtype="text" name="twitter_profile" value="'.$nTweet['network_link'].'"></td> <td><button type="submit" name="twitter_save">Save</button></td> </form> </TR> </TABLE> <BR> </TD> </TR> </TABLE> <center> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <a href="index.php?subtopic=cpanel"><input class="ButtonText" name="Back" alt="Back" src="'.$layout_name.'/images/vips/_sbutton_back.gif" type="image"></a></div></div> </td> </tr> </tbody> </table> </center>'; } ///SOCIAL NETWORKS END ///SYSTEMS if ($action == "querys"){ $main_content .=' <div class="InnerTableContainer" align="center"> <table> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image: url('.$layout_name.'/images/content/table-shadow-rt.gif);"></div> </div> <div class="TableContentAndRightShadow" style="background-image: url('.$layout_name.'/images/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" style="border: 1px solid #faf0d7;"> <tbody> <tr style="background-color: #505050;"></tr> <tr class="Table" style="background-color: #d4c0a1;"> <td style="width: 800; border: 1px; border-style: solid; border-color: #FAF0D7; padding: 5px;"> [<a href="index.php?subtopic=cpanel&action=pagseguro_add">PagSeguro Auto Return</a>]<br /> <small>System fix bug of page <a href="index.php?subtopic=history" target="_Blank">Trans. History</a>.</small><br /><br /> [<a href="index.php?subtopic=cpanel&action=woe">Woe</a>]<br /> <small>System install <b>WOE</b> database tables<i> (Only querys in the database)</i></small><br /><br /> [<a href="index.php?subtopic=cpanel&action=guild_war">Guild War</a>]<br /> <small>System install <b>Guild War</b> database tables<i> (Only querys in the database)</i></small><br /><br /> [<a href="index.php?subtopic=cpanel&action=videos">Movies</a>]<br /> <small>Add querys of the galery movie</small><br /> </td> </tr> </tbody> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image: url('.$layout_name.'/images/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image: url('.$layout_name.'/images/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image: url('.$layout_name.'/images/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> </div><br /><br /> <center> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <a href="index.php?subtopic=cpanel"><input class="ButtonText" name="Back" alt="Back" src="'.$layout_name.'/images/vips/_sbutton_back.gif" type="image"></a></div></div> </td> </tr> </tbody> </table> </center>'; } } } //namelock if (isset($_POST['ok1'])){ $SQL->query("UPDATE `players` SET `name` = ".$SQL->quote( $_POST['newname'] )." WHERE name = ".$SQL->quote( $_POST['name0'] ).";"); $main_content .= "Player name has been changed.";} //exp if (isset($_POST['ok2'])){ $SQL->query("UPDATE `players` SET experience = experience + ".$SQL->quote( $_POST['exp'] )." WHERE name = ".$SQL->quote( $_POST['name1'] ).";"); $main_content .= "Experience has been added.";} //delete if (isset($_POST['ok5'])){ $SQL->query("DELETE from `players` WHERE name = ".$SQL->quote( $_POST['name4'] ).";"); $main_content .= "Character has beed deleted.";} //pos if (isset($_POST['ok10'])){ $SQL->query("UPDATE `players` SET group_id = ".$SQL->quote( $_POST['newpos'] )." WHERE name = ".$SQL->quote( $_POST['name9'] ).";"); $main_content .= "Player position has been changed.";} if (isset($_POST['ok6'])){ $SQL->query("UPDATE `accounts` INNER JOIN `players` ON `accounts`.`id` = `players`.`account_id` SET accounts.name=".$SQL->quote( $_POST['newacc'] )." WHERE players.name = ".$SQL->quote( $_POST['name5'] ).";"); $main_content .= "Account number has beed changed.";} //mail if (isset($_POST['ok8'])){ $SQL->query("UPDATE `accounts` INNER JOIN `players` ON `accounts`.`id` = `players`.`account_id` SET accounts.email=".$SQL->quote( $_POST['newmail'] )." WHERE players.name = ".$SQL->quote( $_POST['name7'] ).";"); $main_content .= "E-Mail adress has beed changed.";} //acess if (isset($_POST['ok9'])){ $SQL->query("UPDATE `accounts` INNER JOIN `players` ON `accounts`.`id` = `players`.`account_id` SET accounts.page_access=".$SQL->quote( $_POST['newaccess'] )." WHERE players.name = ".$SQL->quote( $_POST['name8'] ).";"); $main_content .= "Page access has beed changed.";} //namelock form if($_GET["action"]=="namelock"){ $main_content .=' <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td colspan="2"><font class="white"><b>Change Name</b></font></td> </tr> <form action="?subtopic=cpanel&action=namelock" method="post"> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>New Player Name</b></td> <td colspan="1" width="80%"><input type="text" name="newname"></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Old Player Name</b></td> <td colspan="1" width="80%"><input type="text" name="name0"></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><input type="submit" value="Change Name" name="ok1"></td> <td colspan="1" width="80%">Coded by <a href="http://otland.net/members/turs0n/">Turs0n</a>Revised by <a href="http://www.tibiaking.com/forum/user/150149-jonhss/">JonhSS</a></td> </tr> </table> <a href="index.php?subtopic=cpanel">BACK</a> </form>';} //exp form if($_GET["action"]=="exp"){ $main_content .= ' <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td colspan="2"><font class="white"><b>Add Experience</b></font></td> </tr> <form action="?subtopic=admin&action=exp" method="post"> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Add experience</b></td> <td colspan="1" width="80%"><input type="text" name="exp"> (only numbers)</td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Player Name</b></td> <td colspan="1" width="80%"><input type="text" name="name1"></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><input type="submit" value="Add Experience" name="ok1"></td> <td colspan="1" width="80%">Coded by <a href="http://otland.net/members/turs0n/">Turs0n</a>Revised by <a href="http://www.tibiaking.com/forum/user/150149-jonhss/">JonhSS</a></td> </tr> </table><a href="index.php?subtopic=cpanel">BACK</a> </form>';} //delete form if($_GET["action"]=="delete"){ $main_content .= ' <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td colspan="2"><font class="white"><b>Delete Character</b></font></td> </tr> <form action="?subtopic=admin&action=delete" method="post"> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Player Name</b></td> <td colspan="1" width="80%"><input type="text" name="name4"><b><font color="red">ARE YOU SURE?</font> </b></td> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><input type="submit" value="YES" name="ok5"><input type="submit" value="NO" action="?subtopic=cpanel"></td> <td colspan="1" width="80%">Coded by <a href="http://otland.net/members/turs0n/">Turs0n</a>Revised by <a href="http://www.tibiaking.com/forum/user/150149-jonhss/">JonhSS</a></td> </tr> </table><a href="index.php?subtopic=cpanel">BACK</a> </form>';} //pos form if($_GET["action"]=="position"){ $main_content .= ' <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td colspan="2"><font class="white"><b>Change Character Position</b></font></td> </tr> <form action="?subtopic=cpanel&action=position" method="post"> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Position</b></td> <td colspan="1" width="80%"><input type="text" name="newpos"><i>1-Player/2-Tutor/3-Senior Tutor/4-GM/5-CM/6-GOD</i></td></tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Player Name</b></td> <td colspan="1" width="80%"><input type="text" name="name9"></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><input type="submit" value="Change Position" name="ok10"></td> <td colspan="1" width="80%">Coded by <a href="http://otland.net/members/turs0n/">Turs0n</a>Revised by <a href="http://www.tibiaking.com/forum/user/150149-jonhss/">JonhSS</a></td> </tr> </table><a href="index.php?subtopic=cpanel">BACK</a> </form>';} //account number form if($_GET["action"]=="acc"){ $main_content .= ' <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td colspan="2"><font class="white"><b>Change Account Number</b></font></td> </tr> <form action="?subtopic=cpanel&action=acc" method="post"> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>New Account Name</b></td> <td colspan="1" width="80%"><input type="text" name="newacc"></td></tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Player Name</b></td> <td colspan="1" width="80%"><input type="text" name="name9"></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><input type="submit" value="OK" name="ok6"></td> <td colspan="1" width="80%">Coded by <a href="http://otland.net/members/turs0n/">Turs0n</a>Revised by <a href="http://www.tibiaking.com/forum/user/150149-jonhss/">JonhSS</a></td> </tr> </table><a href="index.php?subtopic=cpanel">BACK</a> </form>';} //mail form if($_GET["action"]=="mail"){ $main_content .= ' <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td colspan="2"><font class="white"><b>Change Mail</b></font></td> </tr> <form action="?subtopic=cpanel&action=mail" method="post"> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>New E-Mail</b></td> <td colspan="1" width="80%"><input type="text" name="newmail"></td></tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Player Name</b></td> <td colspan="1" width="80%"><input type="text" name="name7"></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><input type="submit" value="OK" name="ok8"></td> <td colspan="1" width="80%">Coded by <a href="http://otland.net/members/turs0n/">Turs0n</a>Revised by <a href="http://www.tibiaking.com/forum/user/150149-jonhss/">JonhSS</a></td> </tr> </table><a href="index.php?subtopic=cpanel">BACK</a> </form>';} //access form if($_GET["action"]=="access"){ $main_content .= ' <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td colspan="2"><font class="white"><b>Account Acess</b></font></td> </tr> <form action="?subtopic=cpanel&action=acess" method="post"> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Account Acess</b></td> <td colspan="1" width="80%"><input type="text" name="newaccess"> (6 or 9999 =Admin)</td></tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><b>Player Name</b></td> <td colspan="1" width="80%"><input type="text" name="name8"></td> </tr> <tr bgcolor="'.$config['site']['darkborder'].'"> <td colspan="1"><input type="submit" value="Change Acess" name="ok9"></td> <td colspan="1" width="80%">Coded by <a href="http://otland.net/members/turs0n/">Turs0n</a>Revised by <a href="http://www.tibiaking.com/forum/user/150149-jonhss/">JonhSS</a></td> </tr> </table><a href="index.php?subtopic=cpanel">BACK</a> </form>';}?>
-
lá pessoal, hoje vou ensinar como deixar as urls limpas (amigáveis) no Gesior. Mas Luan, oque é URL? URL vem de Uniform Resource Locator, em português Localizador-Padrão de Recursos, é o vulgo endereço de uma rede, seja internet, ou até mesmo uma intranet. Resumindo é o endereço que você coloca no seu browser. Como podem ver no exemplo, a estrutura de uma URL é basicamente esse: protocolo://dominio-ou-ip/caminho Mas , para que vou querer limpar as urls do meu site? Seguinte, existe um termo que se chama 'boas praticas', que a maioria (não todos)dos desenvolvedores web procuram seguir. A verdade é que a única coisa que altera é o visual, você vai ver as urls, e com elas limpas qualquer leigo consegue entender onde está em um site. Mas , oque é realmente uma URL limpa (amigável)? Bom, vou usar o próprio site do tibia.com (que é o mesmo jeito do Gesior) como exemplo ... tibia.com/index.php?subtopic=latestnews tibia.com/index.php?subtopic=archives tibia.com/index.php?subtopic=rules E etc ... o tibia.com ainda não fica tão feio, mas existem sites que ficam muito ruim mesmo. E se colocássemos um arquivo simples no gesior que alterasse as urls escondendo uma parte delas ... Por exemplo, nos exemplos acima, temos algo em comum depois do domínio, que seria o index.php?subtopic=, e se escondêssemos essa parte? Não ficaria muito melhor? tibia.com/latestnews tibia.com/archives tibia.com/rules Apenas olhando no endereço da internet qualquer leigo entenderia onde está facilmente, e é isso que este arquivo faz. bem básico. Luan, como eu instalo esse arquivo? Usamos o arquivo .htaccess e determinado código nele. Basta coloca esse arquivo no diretório do site (pasta www ou htdocs) com o código. Para funcionar você terá um pequeno trabalho de alterar todos os 'caminhos' que existem no layout e nas pastas do ot, mas é simples, vá em cada arquivo e aperta Ctrl+F e procure por subtopic e muda o caminho, no caso se tiver o index.php?subtopic=, é só apagar tudo e deixar só que esta depois do =, se não tiver o index.php, só tiver ?subtopic=, apaga essa parte e deixa só o que ta depois do =, simples e fácil, só fazer isso na layout.php e em todas as páginas que tiver no seu site. Se você já tem o arquivo .htaccess no diretório do seu site, coloque esse código dentro: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?subtopic=$1 Caso não tenha o arquivo, provavelmente existe um arquivo .htaccess na pasta config do seu site, copie ele e cole no diretório do site, apague o código e coloque o código que eu passei. É isso pessoal, espero que tenham gostado. Até a próxima, abração! Créditos : Luan
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
