Postado Dezembro 3, 2012 12 anos Falaaaaaa galera do Tibia King. Mais um sistema criado para todos se divertirem. Por inquanto é apenas para gesior, breve estarei disponibilizando para webdo e modern acc. Instalação 1. A bra o index.php de seu gesior. 2. P rocure o seguinte código case "latestnews": $topic = "Latest News"; $subtopic = "latestnews"; include("latestnews.php"); break; 3. A baixo deste código, adicione o seguinte case "confirmacao": $topic = "Confirmar Compra"; $subtopic = "shopsystem"; include("confirmacao.php"); break; 4. C rie um arquivo chamado confirmacao.php , e adicione o seguinte código: <?php header("Content-Type: text/html; charset=ISO-8859-1",true); /*/by Victor Fasano Raful /*/ #Credits may cause the deleted file not working if(isset($_POST["acao"]) && $_POST["acao"] == "enviar") {require ("gravar.php");} if(isset($msg)) echo "<div id=\"msg\">$msg</div>"; if(!$logged) if($action == "logout") $main_content .= '<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" >Logout Successful</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><h3><font color="green"><center>Sua conta foi deslogada com sucesso!</center></font></h3><br>Voce podera logar novamente clicando <a href="?subtopic=accountmanagement">aqui</a>.</td></tr> </table> </div> </table></div></td></tr>'; else $main_content .= 'Please enter your account name and your password.<br/><a href="?subtopic=createaccount" >Create an account</a> if you do not have one yet.<br/><br/><form action="?subtopic=accountmanagement" 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="10" maxlength="10" ></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="?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 $main_content .= ' Nossa ferramenta de confirmação de pagamento somente é válida para quem efetuou o pagamento verdadeiro, caso <b>não</b> tenha efetuado nenhum tipo de transação e esta usando nossas ferramentas para uso indevido como mandar <b>"recadinhos"</b> o jogador poderá ser <b>punido</b> em 5 dias corridos.<br /><br /> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image: url(layouts/tibiacom/images/content/box-frame-edge.gif);"> </span> <span class="CaptionEdgeRightTop" style="background-image: url(layouts/tibiacom/images/content/box-frame-edge.gif);"> </span> <span class="CaptionBorderTop" style="background-image: url(layouts/tibiacom/images/content/table-headline-border.gif);"> </span> <span class="CaptionVerticalLeft" style="background-image: url(layouts/tibiacom/images/content/box-frame-vertical.gif);"> </span> <div class="Text">Confirmação de Pagamento</div> <span class="CaptionVerticalRight" style="background-image: url(layouts/tibiacom/images/content/box-frame-vertical.gif);"> </span> <span class="CaptionBorderBottom" style="background-image: url(layouts/tibiacom/images/content/table-headline-border.gif);"> </span> <span class="CaptionEdgeLeftBottom" style="background-image: url(layouts/tibiacom/images/content/box-frame-edge.gif);"> </span> <span class="CaptionEdgeRightBottom" style="background-image: url(layouts/tibiacom/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width: 100%;"> <tbody> <td valign="middle" width="25px;"> <form action="" method="post" enctype="multipart/form-data"> <select name="nome">'; $players_from_logged_acc = $account_logged->getPlayersList(); if(count($players_from_logged_acc) > 0) { $players_from_logged_acc->orderBy('name'); 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><small> (Selecione um personagem) </small> <br /><br /> <span><b>E-mail</b></span><br /> '.$account_logged->getCustomField("email").' <input type="hidden" value="'.$account_logged->getCustomField("email").'" name="email" readonly /> <br /><br /> <span><b>Account</b></span><br /> '.$account_logged->getCustomField("name").' <input value="'.$account_logged->getCustomField("name").'" name="titulo" readonly /> <br /><br /> <span><b>Mensagem</b></span> <br /> <textarea name="mensagem" cols="30" rows="5"></textarea> <br /><br /> <input type="hidden" name="acao" value="enviar" /> <input type="submit" value=" Enviar Confirmação " class="btn"/> </form> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <small>Script by VictorF.WebMaster</small>'; ?> 5. Agora sequente-mente crie um novo arquivo em php chamado gravar.php, este arquivo será o script que enviará para seu email os dados. Coloque o código abaixo no gravar.php: <?php header("Content-Type: text/html; charset=ISO-8859-1",true); $nome = strip_tags(trim($_POST[nome])); $email = strip_tags(trim($_POST)); $titulo = strip_tags(trim($_POST[titulo])); $mensagem = strip_tags(trim($_POST[mensagem])); { require('phpmailer/class.phpmailer.php'); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Port = '587'; /*/ Do not change without knowing what it is /*/ $mail->Host = 'smtp.gmail.com'; $mail->Username = '[email protected]'; $mail->Password = 'SENHA'; $mail->SetFrom('EMAIL QUE RECEBERA', 'Conta '.$account_logged->getCustomField("name").' fez pagamento'); $mail->AddAddress('EMAIL QUE RECEBERA', 'Confirmação NOME DO OT'); $mail->Subject = 'Confirmação - '.$account_logged->getCustomField("name").''; $body = " <font face='verdana, arial'> <strong>Character : </strong>{$nome} <br /> <strong>E-mail : </strong>{$email} <br /> <strong>Account : </strong>{$titulo} <br /> <strong>Mensagem : </strong>{$mensagem} <br /> </font> "; $mail->MsgHTML($body); if($mail->Send()) $msg = ' <SCRIPT LANGUAGE="Javascript"> <!-- window.alert("Confirmation sent successfully !\n\n Wait 24 hours for them to drop their points in your account"); location.href=\'index.php?subtopic=latestnews\'; // --> </SCRIPT> '; else $msg = ' <SCRIPT LANGUAGE="Javascript"> <!-- window.alert("Your message was not sent, try again") // --> </SCRIPT>'; }; ?> 6. Adicione ao layout.php. Procure o código: <a href='index.php?subtopic=shopsystem'> <div id='submenu_shopsystem' class='Submenuitem' onmouseover='MouseOverSubmenuItem(this)' onmouseout='MouseOutSubmenuItem(this)'> <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div> <div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div> <div class='SubmenuitemLabel'>Confirmacao</div> <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div> </div> </a> Adicione logo abaixo disso. <a href='index.php?subtopic=confirmacao'> <div id='submenu_confirmacao' class='Submenuitem' onmouseover='MouseOverSubmenuItem(this)' onmouseout='MouseOutSubmenuItem(this)'> <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div> <div id='ActiveSubmenuItemIcon_confirmacao' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div> <div class='SubmenuitemLabel'>Confirmacao</div> <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div> </div> </a> SMTPS (Servidores de Email) smtp.gmail.com (porta 110) smtp.bol.com.br (porta 110) smtp.yahoo.com (porta 110) Estes são os servidores de SMTP que eu testei e recomendo Duvidas ainda? Veja a instalação como video aula [http://www.youtube.com/watch?v=o8-T-fWmUy4] Todo e qualquer tipo de dúvida, contacte-me, caso dê algum possível BUG, poste aqui no fórum sua SS. Creditos 0% : Eu por postar. 100% : VictorWebMaster.
Postado Janeiro 18, 2013 12 anos Dei uma olha no conteúdo e instalei aqui, mas na hora de redirecionar o player para pagina de Login ou Criar account, está ficando com page toda branca...Caso o player já esteja logado no site a page abre de Boa. Assinatura retirada pela direção!
Postado Dezembro 28, 2014 10 anos aew cara valeu mesmo eu mi embolei um pouco tive q fazer umas 5 vezes soq acertei!! obg msm
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.