Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Bom galera achei esse script jogado na net, e estou tentando coloca no meu site.

Spoiler

<?php
if(!$logged) {
$link = "index.php?subtopic=transferpoints";
include("login.php");
}
else
{
if ($action == ""){
$main_content .='
<div class="TableContainer" >
<table class="Table5" 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" >Transfer Premium Points</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>
<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" width="100%" style="border:1px solid #faf0d7;" >
<tr>
<td>
<p><b>Avalia&ccedil;&atilde;o VIP Points:</b> '.$account_logged->getCustomField("premium_points").'</p>
</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>
<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" width="100%"  style="border:1px solid #faf0d7;" >
<tr>
<td colspan="2" ><b>Condi&ccedil;&otilde;es para transferir VIP Points:</b></td>
</tr>
<tr>
<td colspan="3" >
<ul>';
if(!$account_logged->getRecoveryKey())
$main_content .='<img src="images/no.gif">Ter account registrada.<br>';
else
$main_content .='<img src="images/yes.gif">Ter account registrada.<br>';

if ($account_logged->getCustomField("premium_points") >= 10)
$main_content .='<img src="images/yes.gif">Ter mais que 10 points para tranferir.<br>';
else
$main_content .='<br><img src="images/no.gif">Ter mais que 10 points para tranferir.<br>';
$main_content .='
</ul>
</td>
</tr>
</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>

</table>
</div>
</table>
</div>
</td>
</tr>
<br/>';
if ($account_logged->getCustomField("premium_points") > 29 && $account_logged->getRecoveryKey()){
$main_content .='
<table style="width:100%;" >
<tr align="center" >
<td>
<form action="index.php?subtopic=transferpoints&action=transfer" method="post" style="padding:0px;margin: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="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_continue.gif" ></div>
</div>
</form>
</td>
</tr>
</table>     
';}else
{$main_content .='
<table style="width:100%;" >
<tr align="center" >
<td>
<form action="index.php?subtopic=accountmanagement" method="post" style="padding:0px;margin: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="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div>
</div>
</form>
</td>
</tr>
</table>     
';}}
if ($action == "transfer"){
if ($account_logged->getCustomField("premium_points") > 29){} else {header ("location: index.php?subtopic=transferpoints");}
$main_content .='
<div class="TableContainer" >
<table class="Table5" 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" >Escolha o Player</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>
<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" width="100%" style="border:1px solid #faf0d7;" >
<tr>
<td>
<p><b>Avalia&ccedil&atilde;o VIP Points:</b> '.$account_logged->getCustomField("premium_points").'</p>
</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>
<tr>
<td>
<div class="TableShadowContainerRightTop" >
<div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);" ></div>
</div>
<form action="index.php?subtopic=transferpoints&action=transfersuccess" method="post" style="padding:0px;margin:0px;" >
<div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);" >
<div class="TableContentContainer" >
<table class="TableContent" width="100%"  style="border:1px solid #faf0d7;" >
<tr>
<td colspan="2" ><b>Player Recebera:</b></td>
</tr>
<tr>
<td colspan="3" >
<input type="text" name="name" size="30" />

</td>
</tr>
<tr>
<td colspan="2" ><b>Quantidade Transferencia:</b></td>
</tr>
<tr>
<td colspan="3" >';
$points = $account_logged->getCustomField("premium_points");
if ($points > 0){
$main_content .='<select name="quant_transf">';}
else
$main_content .='<span class="red"><b>You do not have enough points to transfer to another account.</b></span>';
if ($points >= 10){
$main_content .='<option>10</option>';
}
if ($points >= 15){
$main_content .='<option>15</option>';
}
if ($points >= 20){
$main_content .='<option>20</option>';
}
if ($points >= 30){
$main_content .='<option>30</option>';
}
if ($points >= 40){
$main_content .='<option>40</option>';
}
if ($points >= 50){
$main_content .='<option>50</option>';
}
$main_content .='</select>
</td>
</tr>
</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>

</table>
</div>
</table>
</div>
</td>
</tr>
<br/>
<table style="width:100%;" >
<tr align="center" >
<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>
</td>
<td>
<form action="index.php?subtopic=accountmanagement" method="post">
<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="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div>
</div>
</form>
</td>
</tr>
</table> 
';
}
if ($action == "transfersuccess"){
#if (!$name){header ("location: index.php?subtopic=transferpoints&action=transfersuccess&name=".$name."&quant_transf=".$quant_transf."");}
if (!$quant_transf) {echo '<script>alert("Quantidade nao foi informada."); location.href=\'index.php?subtopic=transferpoints&action=transfer\'</script>';}
if (!$name) {echo '<script>alert("Jogador nao foi informado."); location.href=\'index.php?subtopic=transferpoints&action=transfer\'</script>';}
$name = stripslashes(ucwords(strtolower(trim($_REQUEST['name']))));
if(check_name($name)) {
$player = $ots->createObject('Player');
$player->find($name);
if($player->isLoaded()) {
$transfer_ss = $SQL->query ("UPDATE `accounts` SET  `premium_points` =  `premium_points` + ".$quant_transf." WHERE  `accounts`.`id` = ".$player->getCustomField('account_id')." LIMIT 1 ;");
$transfer_s = $SQL->query ("UPDATE `accounts` SET  `premium_points` =  `premium_points` - ".$quant_transf." WHERE  `accounts`.`id` = ".$account_logged->getCustomField('id')." LIMIT 1 ;");
$main_content .='<center><input type="button" class="btn btn-success" value="Foram transferidos '.$quant_transf.' pontos para '.$name.' com sucesso!" onclick="location.href=\'index.php?subtopic=accountmanagement\'"/></center>';
}
else
$main_content .= '<center><span class="red btn btn-danger" onclick="location.href=\'index.php?subtopic=transferpoints&action=transfer\'"><b>Player name <b>'.$name.'</b> dont exist.</b></span></center>';
$transfer_ss;
$transfer_s;
}
}
}
?>

 

Porém ele nao esta funfando, o que esta acontece é que o cara coloca o valor da transferencia eo o nome do player que o cara quer manda os points.

Mais só que só falar Quantidade nao foi informada.

Alguém saber arruma esse pequeno erro.

Editado por Admnwso (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • 2 months later...

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Qwizer
      MercadoPago Checkout Transparente (CC)
       
      Abaixo Segue código PHP de pagamento via cartão de credito pelo mercado pago com retorno automático para quem quiser adaptar em seus sites ter uma direção de onde ir 
      testado em Znote e MyAcc.
       

       
       
      https://mega.nz/folder/m4QkWBLS#PIvJ_scVm7w8-5FLlStTHg  
    • Por Argona2509
      Boa tarde venho por aqui pedir ajuda estou com um problema no gesior para criar conta nao aparece vocacao e o nome Nadega Sample
       
       
    • Por Magato
      Galera, boa tarde a todos.
       
      Estou iniciando um servidor com o mapa Pbot e estou com dificuldades em encontrar um website para ele.
       
      Procurei na internet toda e não achei um link que me levasse ao download do Gesior Onix para pbot exclusivo (o link estava quebrado)
       
      Tentei utilizar o Gesior 2012 mas o layout do site e todas as funcionalidades estão bugadas.
       
      Gostaria que alguém pudesse me ajudar e postasse aqui algum link de gesior para PBOT. A versão do meu servidor é 8.60.
       
      Agradeço a quem puder.
       
       
    • Por BonasxD
      Bom galera primeiramente não sei se estou na area correta ou se nao estou, se nao por favor mover para area certa, grato!
      Estou com esse erro ao tenta instalar o gesior usando a tfs 0.4 não passa dessa parte ja tentei de tudo e nao sei oque fazer ;(
       
      Testei o mesmo procedimento no meu Windows e Funcionou corretamente agora no meu VM(Ubuntu22) não passa desse erro. 
       
      Ja pesquisei por tudo e não sei oque fazer

    • Por Jordanl42ss
      Quando eu vou hospedar o site do meu poketibia ele da erro faldo q a classe do não foi encontrada 
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo