Postado Março 20, 2017 8 anos Bom galera achei esse script jogado na net, e estou tentando coloca no meu site. Mostrar conteúdo oculto <?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çã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çõ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çã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 Março 20, 2017 8 anos por Admnwso (veja o histórico de edições)
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.