Guest User

Platnosci-online

a guest
Aug 2nd, 2013
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.29 KB | None | 0 0
  1. <?php
  2.     session_start();
  3.     ob_start();
  4. ?><HTML>
  5. <HEAD>
  6. <?php
  7.     $id = '';
  8.     require 'platnoscionlineoconfig.php';
  9. ?>
  10. <link rel=stylesheet href="stylefree.css" TYPE="text/css" media="screen"/>
  11.  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  12.     <meta name="Description" content="Panel płatności SMS Minecraft" />
  13.     <meta name="Keywords" content="Minecraft, sms, panel, minecraft, gry" />
  14.     <title>Panel SMS</title>
  15.     <style type="text/css">
  16.         body {
  17.         background:url('images/bg.jpg') left top no-repeat;
  18.         color: #e0e0e0;
  19.         font-family: Minecraft;
  20.         }
  21.     </style>
  22. </HEAD>
  23. <BODY>
  24. <?php
  25.     include 'menu.php';
  26. ?>
  27. </div>
  28. <?
  29.     if(intval($_GET['value_sms']) >0 && $_GET['sufiks_sms'] != NULL){
  30.  
  31. ?>
  32. <div style="margin-top: 0px" class="contener">
  33. <div id="form"/>
  34.  
  35. <form method="post" action="">
  36.     <input type="hidden" name="check_code" value="1">
  37.     <strong>Podaj kod SMS: </strong></br></br>
  38.    
  39.     <input name="value_sms" type="hidden" value="<? print $_GET['value_sms']?>">
  40.     <input name ="sufiks_sms" type="hidden" value="<? print $_GET['sufiks_sms']?>">
  41.  
  42.     <input id="textfield" type="text" size="25" autocomplete="off" name="code" id="textfield" required  pattern="[^<;()'.=,\-]{8}" placeholder="8 znakowy kod zwrotny." >
  43.  
  44.    
  45.     </br></br>
  46.     <strong>Nick gracza w Minecraft:</strong></br></br>
  47.     <input id="textfield" type="text" size="25" autocomplete="off" name="nick" id="textfield" required  pattern="[^<;()'.=,\-]+$" placeholder="Twoja nazwa gracza." >
  48.     <br/></br>
  49.     <div id="check">
  50.         <input type="image" src="images/check1.png" onmouseover="this.src='images/check2.png'" onmouseout="this.src='images/check1.png'" value="Sprawdź!">
  51.     </div>
  52. </form>
  53.  
  54. </div>
  55. </div>
  56. <?
  57.     }
  58. ?>
  59. <div class="contener2">
  60. <?php
  61.     echo '<div id="sms" style="height: auto">';
  62. ?>
  63.  
  64. </br>
  65.  
  66.  
  67. <?php
  68.         if ( intval($_GET['value_sms']) == NULL ) {
  69.             ?>
  70.             <div id="menu" style="opacity: 1.0; font-size: 120%">
  71.                 Pamiętaj, aby skorzystać ze sklepu, musisz być zalogowany w grze.<BR>
  72.             </div>
  73.             <?
  74.                 if ( intval($_GET['value_sms']) == NULL ) {
  75.                     print '<BR>Dostępne usługi:';
  76.                 }
  77.             ?>
  78.             <TABLE width="320" align="center">
  79.             <TR style="height: 2px;"><TD colspan="3" style="height: 2px;" colspan="2"><HR style="height: 2px; color: #444444;"></TD></TR>
  80.             <?
  81.             foreach($config_sms as $c){
  82.                 $suffiks = explode('.', $c['tresc']);
  83.                 ?>
  84.                 <TR>
  85.                     <TD align="left">
  86.                     <?
  87.                         if ($c['image']!='') {
  88.                        
  89.                             echo "<img src=\"".$c['image']."\">";
  90.                         }else{
  91.                             echo "&nbsp;";
  92.                         }
  93.                     ?>
  94.  
  95.                     </TD>
  96.  
  97.                     <TD align="left">
  98.                     <?
  99.                         echo "<font style=\"color: yellow;\">".$c['opis']." </font>";
  100.                     ?>
  101.                     </TD>
  102.                    
  103.                     <TD align="left">
  104.                     <?
  105.                         echo "<a class=\"link2\" href=\"?value_sms=".$c['netto']."&sufiks_sms=".$suffiks[1]."\">wybieram</a> &raquo;<br/>";
  106.                         ?>
  107.                     </TD>
  108.                 </TR>
  109.  
  110.                 <TR style="height: 2px;"><TD colspan="3" style="height: 2px;" colspan="2"><HR style="height: 2px; color: #444444;"></TD></TR>
  111.            
  112.                 <?
  113.             }
  114.             ?>
  115.             </TABLE>
  116.             <?
  117.        
  118.         }else{
  119.  
  120.  
  121.             ?>
  122.             <div style="font-family: tahoma; font-size: 150%;">
  123.             <?
  124.             if ($_SESSION['komunikat'] != '') {
  125.                 print $_SESSION['komunikat'].'<BR><BR>';
  126.             }
  127.             $_SESSION['komunikat'] = '';
  128.             ?>
  129.             </div>
  130.             <?
  131.  
  132.             if ($_SESSION['komunikat_tick'] == '') {
  133.                 foreach($config_sms as $c){
  134.  
  135.                     $suffiks = explode('.', $c['tresc']);
  136.  
  137.  
  138.                     if (intval($_GET['value_sms']) == $c['netto'] && $_GET['sufiks_sms'] == $suffiks[1]) {
  139.                         print 'Aby uzyskać kod dostępu na <strong>'.$c['opis'].'</strong> <BR>';
  140.  
  141.                         $cost_brutto = ($c['netto'] * (1+($vat/100)))/100 ;
  142.                         $cost_brutto = number_format($cost_brutto,2,',',' ');
  143.                        
  144.                         echo "wyślij SMS o treści<strong><span style=\"color: yellow\"> ".$c['tresc']."</span></strong> pod numer <strong>".$c['numer']."</strong>. <br/>
  145.                         <br/>
  146.                         Koszt wysłania SMSa wynosi <strong> ".$cost_brutto." zł</strong>. Otrzymany kod wpisz w formularz powyżej.<br/>
  147.                         \n";
  148.  
  149.                         ?>
  150.                         <div id="menu" style="opacity: 1.0; font-size: 120%">
  151.                             Pamiętaj, aby skorzystać ze sklepu, musisz być zalogowany w grze.<BR>
  152.                         </div>
  153.                         <?
  154.  
  155.                         print 'Aby się nie pomylić, możesz skorzystać z FOTOKODU do pobrania danych SMS.<BR> Zeskanuj telefonem komórkowym poniższy fotokod:<BR><BR>
  156.                             <img src="http://chart.apis.google.com/chart?cht=qr&chs=150x150&choe=UTF-8&chl=smsto:'.$c['numer'].':'.$c['tresc'].'">';
  157.                         print '<BR><BR>Właściciel serwisu: <a style="cursor:pointer;">'.$email_wlasciciela.'</a><BR>';
  158.                     }
  159.    
  160.                 }
  161.             }
  162.    
  163.         }
  164.     ?>
  165.  
  166.    
  167.     <?php
  168.    
  169.         if ($_SESSION['komunikat_tick'] == '') {
  170.             print '</br>System płatności Premium SMS obsługuje firma <a class="link2" href="http://www.platnosci-online.pl" target="_blank">Płatności Online</a>.</br>
  171.         Regulamin jest dostępny na stronie: <a class="link2" href="http://www.platnosci-online.pl/regulamin_sms.html" target="_blank">Regulamin SMS</a>.</br>
  172.         <BR><a href="http://platnosci-online.pl" target="_blank"><img src="images/pay8.jpg" border="0" title="Płatności Premium SMS"></a><BR>
  173.         <BR>
  174.         Usługa działa w sieciach operatorów: Plus GSM, T-Mobile, Orange, Play.';
  175.         print '</br></br>';
  176.         }
  177.    
  178.        
  179.         $_SESSION['komunikat_tick'] = '';
  180.  
  181.     ?>
  182. </div>
  183. </div>
  184. </br></br>
  185.  
  186. </br></br>
  187.  
  188. </body>
  189. </html>
Advertisement
Add Comment
Please, Sign In to add comment