Advertisement
adrianmendezRap

RPG PHP Menu Script

Feb 17th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.54 KB | None | 0 0
  1. <?php
  2.  
  3. //Entrada variables
  4.  
  5. $ante = $_GET['ante'];
  6. $zona = $_GET['zona'];
  7. $img = $_GET['img'];
  8. $dial = $_GET['dial'];
  9. $lvl = $_GET['lvl'];
  10. $exp = $_GET['exp'];
  11. $next = $_GET['next'];
  12. $key = $_GET['key'];
  13.  
  14. // Cambiar estado llaves
  15.  
  16. if ( $key == "" ){
  17. }
  18. else {
  19.  
  20. $camkey = "llaves/".$key.".txt";
  21.  
  22. $ar=fopen("$camkey","w");
  23. fputs($ar,"1");
  24. fclose($ar);
  25. }
  26.  
  27. // Inventario
  28. $llave = file_get_contents("llaves/1.txt");
  29.     if ( $llave == "0"){
  30.         $llave1 = "";
  31.     }
  32.     elseif ( $llave == "1"){
  33.         $llave1 = "llave1";
  34.     }
  35. $llave = file_get_contents("llaves/2.txt");
  36.     if ( $llave == "0"){
  37.         $llave2 = "";
  38.     }
  39.     elseif ( $llave == "1"){
  40.         $llave2 = "llave2";
  41.     }
  42. $llave = file_get_contents("llaves/3.txt");
  43.     if ( $llave == "0"){
  44.         $llave3 = "";
  45.     }
  46.     elseif ( $llave == "1"){
  47.         $llave3 = "llave3";
  48.     }
  49. $llave = file_get_contents("llaves/4.txt");
  50.     if ( $llave == "0"){
  51.         $llave4 = "";
  52.     }
  53.     elseif ( $llave == "1"){
  54.         $llave4 = "llave4";
  55.     }
  56. $llave = file_get_contents("llaves/5.txt");
  57.     if ( $llave == "0"){
  58.         $llave5 = "";
  59.     }
  60.     elseif ( $llave == "1"){
  61.         $llave5 = "llave5";
  62.     }
  63. ?>
  64.  
  65. <style type="text/css">
  66. body
  67. {
  68. background-color:black;
  69. }
  70. #nmapa{
  71. color:white;
  72. }
  73. #imagen{
  74. background-image:url('<?php echo $zona; ?>/<?php echo $img; ?>');
  75. background-size: contain;
  76. background-repeat: no-repeat;
  77. background-position: center center;
  78. }
  79. #tamapa{
  80. border-spacing: 0;
  81. border-style: solid;
  82. border-width: 1px;
  83. border-color: white;
  84. overflow: hidden;
  85. }
  86. #champ{
  87. background-image:url('girl.png');
  88. background-size: contain;
  89. background-repeat: no-repeat;
  90. background-position: center center;
  91. }
  92. #aqui{
  93. background-image:url('aqui.png');
  94. background-size: contain;
  95. background-repeat: no-repeat;
  96. background-position: center center;
  97. }
  98. #visitado{
  99. background-image:url('visitado.png');
  100. background-size: contain;
  101. background-repeat: no-repeat;
  102. background-position: center center;
  103. }
  104. #llave1{
  105. background-image:url('llaves/1.png');
  106. background-size: contain;
  107. background-repeat: no-repeat;
  108. background-position: center center;
  109. }
  110. #llave2{
  111. background-image:url('llaves/2.png');
  112. background-size: contain;
  113. background-repeat: no-repeat;
  114. background-position: center center;
  115. }
  116. #llave3{
  117. background-image:url('llaves/3.png');
  118. background-size: contain;
  119. background-repeat: no-repeat;
  120. background-position: center center;
  121. }
  122. #llave4{
  123. background-image:url('llaves/4.gif');
  124. background-size: contain;
  125. background-repeat: no-repeat;
  126. background-position: center center;
  127. }
  128. #llave5{
  129. background-image:url('llaves/5.png');
  130. background-size: contain;
  131. background-repeat: no-repeat;
  132. background-position: center center;
  133. }
  134. </style>
  135.  
  136. <table border="0" width=100% height=100%>
  137.   <tr >
  138.     <td id="imagen" rowspan="3" colspan="3" height="280px">
  139.     </td>
  140.     <td width="25%" height="20%" valign="top">
  141.         <iframe src='mapa.php?zona=<?php echo $zona; ?>&ante=<?php echo $ante; ?>' frameborder="0" style="width:100%;height:100%" scrolling="no"></iframe>
  142.     </td>
  143.   </tr>
  144.   <tr>
  145.     <td rowspan="2" >
  146.         <center><table border=1 width=300 height=130>
  147.             <tr height=65>
  148.                 <td id="champ" style="background-color:#08088A;" width=65></td>
  149.                 <td style="background-color:#08088A;">
  150.                     <div style="color:#F7819F;">Princesa Esa</div><div style="color:#F7819F;"><b>LVL:<?php echo $lvl; ?></b></div>
  151.                 </td>
  152.             </tr>
  153.             <tr height=65>
  154.                 <td colspan="2" style="background-color:#08088A;">
  155.                     <div><b style="float:left;color:#F7819F;">Exp. Points : <?php echo $exp; ?></b></div><div style="float:right;color:#F7819F;"><b>For Lev UP : <?php echo $next; ?></b></div>
  156.                 </td>
  157.             </tr>
  158.         </table></center>  
  159.     </td>
  160.   </tr>
  161.   <tr>
  162.  
  163.   </tr>
  164.   <tr>
  165.     <td rowspan="2" colspan="3"><iframe src='<?php echo $zona; ?>/<?php echo $dial; ?>.php' frameborder="0" style="width:100%;height:100%" scrolling="no"></iframe></td>
  166.     <td>
  167.         <center><p id="nmapa">Inventario</p></center>
  168.         <center><table border="1" >
  169.             <tr>
  170.                 <td width=32 height=32 id=<?php echo $llave1; ?>></td>
  171.                 <td width=32 height=32 id=<?php echo $llave2; ?>></td>
  172.                 <td width=32 height=32 id=<?php echo $llave3; ?>></td>
  173.             </tr>
  174.             <tr>
  175.                 <td width=32 height=32 id=<?php echo $llave4; ?>></td>
  176.                 <td width=32 height=32 id=<?php echo $llave5; ?>></td>
  177.                 <td width=32 height=32></td>
  178.             </tr>
  179.             <tr>
  180.                 <td width=32 height=32></td>
  181.                 <td width=32 height=32></td>
  182.                 <td width=32 height=32></td>
  183.             </tr>
  184.             <tr>
  185.                 <td width=32 height=32></td>
  186.                 <td width=32 height=32></td>
  187.                 <td width=32 height=32></td>
  188.             </tr>
  189.         </table></center>
  190.     </td>
  191.   </tr>
  192.   <tr>
  193.     <td></td>
  194.   </tr>
  195. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement