Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 20.48 KB | None | 0 0
  1. <?php
  2.  
  3. /*------------------------------------*/
  4. require_once "seguridad/sql_inject.php";
  5. $bDestroy_session = TRUE;
  6. $url_redirect = 'index.php';
  7. $sqlinject = new sql_inject('./log_file_sql.log',$bDestroy_session,$url_redirect);  
  8. /*------------------------------------*/
  9.  
  10. session_start();
  11. error_reporting(0);
  12. include_once('./kev/pdo.php');
  13.  
  14. if(isset($_SESSION['User']))
  15. {
  16.     $User = $_SESSION['User'];
  17.     try
  18.     {
  19.         $stmt = $con->prepare("SELECT * FROM usuarios WHERE Username = :usuario");
  20.         $stmt->bindParam(':usuario', $User, PDO::PARAM_STR);
  21.         $stmt->execute();
  22.        
  23.         while($datos = $stmt->fetch())
  24.         {
  25.             $name = $datos['Username'];
  26.             $money = $datos['Money'];
  27.             $score = $datos['Nivel'];
  28.             $fz = $datos['Moneda'];
  29.             $ropa = $datos['Skin'];
  30.             $validarcorrero = $datos['CorreoValido'];
  31.             $platabanco = $datos['Banco'];
  32.             $faccion = $datos['Faccion'];
  33.             $email = $datos['Email'];
  34.             $vip = $datos['VIP'];
  35.             $tiempovip = $datos['TiempoVip'];
  36.             $razon = $datos['razon'];
  37.             $ban = $datos['Baneado'];
  38.             $Conexion = $datos['Conexion'];
  39.         }
  40.     }
  41.     catch(PDOException $e)
  42.     {
  43.         echo 'Error: ' . $e->getMessage();
  44.     }
  45. }
  46.  
  47. else echo "<script>window.location='ingresar.php';</script>";
  48. $dinerototal = $money+$platabanco;
  49.  
  50. if($Conexion == '1')
  51. {
  52.     echo "<script>window.location='reg.php?u=2';</script>";
  53. }
  54. ?>
  55.  
  56. <?php
  57. require("./conectados/samp_query.php");
  58. try
  59. {
  60.     $rQuery = new QueryServer( $serverIP2, $serverPort );
  61.  
  62.     $aInformation = $rQuery->GetInfo( );
  63.     $aServerRules = $rQuery->GetRules( );
  64.     $aBasicPlayer = $rQuery->GetPlayers( );
  65.     $aTotalPlayers = $rQuery->GetDetailedPlayers( );
  66.  
  67.     $rQuery->Close( );
  68. }
  69. catch (QueryServerException $pError)
  70. {
  71.  
  72. }
  73. ?>
  74.  
  75. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  76.  
  77. <html xmlns="http://www.w3.org/1999/xhtml">
  78. <head>
  79. <!-- Anuncio -->
  80. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  81. <script>
  82.   (adsbygoogle = window.adsbygoogle || []).push({
  83.     google_ad_client: "ca-pub-1072011961085613",
  84.     enable_page_level_ads: true
  85.   });
  86. </script>
  87. <!-- Anuncio -->
  88. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  89.  
  90. <title><?php echo $NombreServidor?> Roleplay - <?php include_once('./kev/idioma.php'); echo $Texto_Index_249;?></title>
  91.  
  92. <link rel="stylesheet" type="text/css" href="./css/estilos3.css">
  93.  
  94. <script src="./js/jquery-latest2.js"></script>
  95.  
  96. <style>DIV#loader.loading{background:url(./imagenes/spinner.gif) no-repeat center center;}#loader{width:300px;height:344px;background-color:#000000}#negro{background-color:#FFFFFF;width:300px;border:solid 1px #DEDEDE;padding:3px;margin-top:5px;margin-left:15px;margin-bottom:5px;float:left;}.skinid{border:solid 1px #DEDEDE;font-size:11px;width:20px;margin:3px 3px 0 3px;padding:3px}.botonskin{border:solid 1px #DEDEDE;font-size:11px;margin:3px 3px 0 3px;padding:2px;background-color:#FFFFFF;cursor:pointer}.bloquederecho{float:left;width:345px;}.bloq{background-color:#FFFFFF;border:solid 1px #DEDEDE;margin:5px;padding:5px;}body{ font-size: 1px;}</style>
  97.  
  98. </head>
  99.  
  100. <body>
  101.  
  102. <table width="997" border="0" cellpadding="0" cellspacing="0" bgcolor="#E4E4E4" align="center">
  103.  
  104.  
  105.  
  106. <tbody><tr>
  107.  
  108. <td width="997">
  109.  
  110. <style>.alertas{float:left;margin-left:660px;margin-top:170px;position:absolute;background-color:#0081ff;border-radius:3px;padding:0.2em 0.4em 0.2em;color:#FFFFFF;font-weight:bold;}.alertas a{color:#FFF;}.alertas:hover{background-color:#0068ce;}.alertas a:hover{color:#f0f0f0;}</style>
  111. <div style="background-color:#000; position:absolute; width:997px; height:164px; top:29px; background-image:url(./imagenes/fondos-cabecera/<?php $andi = rand(1, 6); echo $andi;?>.jpg)"></div>
  112.  
  113. <div class="header-s3-2">
  114. <div class="ip">
  115. <font size="2px">IP S1:</font> <b><a href="samp://<?php echo $serverIP ?><?php if($activar_pt == 1){?>:<?php echo $serverPort ?><?php } ?>" style="color:#FFFFFF; font-size: 13px;" title="Agregar a favoritos"><?php echo $serverIP ?><?php if($activar_pt == 1){?>:<?php echo $serverPort ?><?php } ?></a></b>
  116. </div>
  117. <div class="logged-usuario"><font size="2px;"><?php $quitargion=str_replace("_"," ",$name); echo $quitargion?></div>
  118. <div class="img-usuario"><?php echo '<img src="./imagenes/personajes/'.$ropa.'.png">';?></div>
  119. <div class="iconos-usuario">
  120. <a href="./cuenta.php" title="<?php echo $Texto_Index_1;?>"><img src="./imagenes/casa.png" align="absmiddle" border="0"/></a> &nbsp;
  121. <a href="./logout.php" title="<?php echo $Texto_Index_94;?>"><img src="./imagenes/llave_salir.png" align="absmiddle" border="0"/></a>
  122. </div>
  123. </div>
  124.  
  125. <div id="menu-superior-s3">                              
  126. <ul>
  127. <li id="principal"><a href="index.php">Pincipal</a></li>
  128. <li id="foro"><a href="./foro/">Foro</a></li>
  129. <li id="tucuenta-ac"><a href="./cuenta.php">Tu cuenta</a></li>
  130. <li id="cuenta-creada"><a></a></li>
  131. </ul>
  132.  
  133. <div class="invitaciones-pendientes">
  134. <?php include_once('./invitaciones/invitacion.php'); ?>
  135. </div>
  136.  
  137. </div>
  138.  
  139. <div id="contenido">
  140.  
  141. <?php
  142. if($ban == 1 || $validarcorrero == 0)
  143. {
  144. ?>
  145. <div style="float:left;width:997px; margin-top:5px; font-size:12px;">
  146. <table width="99%" cellspacing="1" cellpadding="4" border="0" bgcolor="#2A2A2A" align="center">
  147. <tbody>
  148. <tr bgcolor="#333333"><td align="left" style="border-top: 1px solid #424242;border-left: 1px solid #424242; color:#FFFFFF;text-shadow: 0 1px 0 #000000;"><strong><font size="2.6px">Mensajes importantes</strong></td></tr>
  149. </tbody>
  150. </table>
  151. </div>
  152.  
  153. <table width="99%" cellspacing="1" cellpadding="4" border="0" bgcolor="#2A2A2A" align="center">
  154.  
  155. <tbody>
  156.  
  157. <?php
  158. if($validarcorrero == 0)
  159. {
  160. ?>
  161. <tr class="alerta-roja">
  162. <td bgcolor="#FFFFCC" valign="middle" align="left" colspan="2">
  163. <img src="/imagenes/alerta16.png" align="absmiddle"> Tu direcci&oacute;n de correo <strong> <?php echo $email;?> </strong> no ha sido verificada todavía. (<a href="/enviar-verificacion.php">Enviar email de verificaci&oacute;n</a><!-- / <a href="/cambiar-correo.php" title="Cambiar direcci&oacute;n de correo.">Cambiar direcci&oacute;n de correo</a>-->)
  164. </td>
  165. </tr>
  166. <?php
  167. }
  168. if($ban == 1)
  169. {
  170. ?>
  171. <tr>
  172. <td valign="middle" bgcolor="RED" align="left" colspan="1" style="color:white"><img src="./imagenes/alerta16.png" align="absmiddle"><font size="2.6px"> Tu cuenta ha sido baneada por <strong><?php echo $razon;?></strong>  el <strong><?php echo $Conexion;?></strong>.</td>
  173. </tr>
  174. <?php
  175. }
  176. ?>
  177. </tbody>
  178.  
  179. </table>
  180.  
  181. <?php
  182. }
  183. ?>
  184.  
  185. <div id="contenido-izquierdo">
  186.  
  187. <div class="td-gr">
  188.  
  189. <div class="icono-td"><img src="./imagenes/info.png"></div>
  190.  
  191. <div style="height:22px;font-weight:bold; font-size:14px;text-shadow:0 1px 0 #FFFFFF;color:#305B79;padding-top:8px; margin-left:10px; margin-left:34px"><?php echo $Texto_Index_235;?></div>
  192.  
  193. <?php
  194. if($timepovip > time())
  195. {
  196.     echo '<div class="actividad">Tu cuenta tiene activa la membresía <strong><span class="Estilo1">VIP2</span></strong> durante <strong><font color="red"> <div=cuentaregresiva></div></font></strong> más.</div>';
  197. }
  198. ?>
  199.  
  200. <script>
  201. // Set the date we're counting down to
  202.  
  203. var countDownDate = new Date(<?php echo $tiempovip * 1000;>).getTime();
  204.  
  205. // Update the count down every 1 second
  206. var x = setInterval(function() {
  207.  
  208.     // Get todays date and time
  209.     var now = new Date().getTime();
  210.    
  211.     // Find the distance between now an the count down date
  212.     var distance = countDownDate - now;
  213.    
  214.     // Time calculations for days, hours, minutes and seconds
  215.     var days = Math.floor(distance / (1000 * 60 * 60 * 24));
  216.     var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  217.     var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  218.     var seconds = Math.floor((distance % (1000 * 60)) / 1000);
  219.    
  220.     var horas = ('0'+hours).slice(-2);
  221.     var minutos = ('0'+minutes).slice(-2);
  222.     var segundos = ('0'+seconds).slice(-2);
  223.    
  224.     if(days == 0)
  225.     {
  226.         document.getElementById("demo").innerHTML = horas + ":"
  227.     + minutos + ":" + segundos + "h";
  228.     }
  229.     else
  230.     {
  231.         document.getElementById("demo").innerHTML = days + "d " + horas + ":"
  232.     + minutos + ":" + segundos + "h";
  233.     }
  234.     // Output the result in an element with id="demo"
  235.    
  236.    
  237.     // If the count down is over, write some text
  238.     if (distance < 0) {
  239.         clearInterval(x);
  240.         document.getElementById("demo").innerHTML = "EXPIRED";
  241.     }
  242. }, 1000);
  243. </script>
  244.  
  245. <table width="678" border="0" cellpadding="0" cellspacing="1" bgcolor="#C7C7C7">
  246.  
  247.  
  248.  
  249. <tbody><tr class="primertd">
  250.  
  251. <td width="313" height="44" valign="middle"><strong>&nbsp;</strong><font size="2px"><?php echo $Texto_Index_237;?></font></td>
  252.  
  253. <td width="120" align="center" valign="middle"><span class="Estilo3"><font size="2px"><?php echo $Texto_Index_238;?></font></span></td>
  254.  
  255. <td width="120" align="center" valign="middle"><span class="Estilo1"><font size="3px"; color="Green"><?php echo $Texto_Index_239;?></span></td>
  256.  
  257. </tr>
  258.  
  259. <tr>
  260.  
  261. <td width="313" height="30" valign="middle" bgcolor="#FFFFFF">&nbsp;- <font size="2px"><?php echo $Texto_Index_242;?> </td>
  262.  
  263. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><font size="2px"><font size="2px">2</td>
  264.  
  265. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><font size="2px"><font size="2px">4</td>
  266. </tr>
  267.  
  268. <tr>
  269.  
  270. <td width="313" height="30" valign="middle" bgcolor="#FBFBFB">&nbsp;- <font size="2px"><?php echo $Texto_Index_243;?></td>
  271.  
  272. <td width="120" align="center" valign="middle" bgcolor="#FBFBFB"><font size="2px">$1.500</td>
  273.  
  274. <td width="120" align="center" valign="middle" bgcolor="#FBFBFB"><font size="2px">$4.000</td>
  275. </tr>
  276.  
  277. <tr>
  278.  
  279. <td width="313" height="30" valign="middle" bgcolor="#FFFFFF">&nbsp;- <font size="2px"><?php echo $Texto_Index_244;?></td>
  280.  
  281. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><font size="2px">1</td>
  282.  
  283. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><font size="2px">2</td>
  284. </tr>
  285.  
  286. <tr>
  287.  
  288. <td width="313" height="30" valign="middle" bgcolor="#FFFFFF">&nbsp;- <font size="2px"><?php echo $Texto_Index_245;?></td>
  289.  
  290. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><img src="./imagenes/no.png"></td>
  291.  
  292. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><img src="./imagenes/si.png"></td>
  293. </tr>
  294.  
  295. <tr>
  296.  
  297. <td width="313" height="30" valign="middle" bgcolor="#FBFBFB">&nbsp;- <font size="2px"><?php echo $Texto_Index_246;?></td>
  298.  
  299. <td width="120" align="center" valign="middle" bgcolor="#FBFBFB"><img src="./imagenes/no.png"></td>
  300.  
  301. <td width="120" align="center" valign="middle" bgcolor="#FBFBFB"><img src="./imagenes/si.png"></td>
  302. </tr>
  303.  
  304. <tr>
  305.  
  306. <td width="313" height="30" valign="middle" bgcolor="#FFFFFF">&nbsp;- <font size="2px"><?php echo $Texto_Index_247;?></td>
  307.  
  308. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><img src="./imagenes/no.png"></td>
  309.  
  310. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><img src="./imagenes/si.png"></td>
  311. </tr>
  312.  
  313. <tr>
  314.  
  315. <td width="313" height="30" valign="middle" bgcolor="#FFFFFF">&nbsp;- <font size="2px"><?php echo $Texto_Index_248;?></td>
  316.  
  317. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><img src="./imagenes/no.png"></td>
  318.  
  319. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><img src="./imagenes/si.png"></td>
  320. </tr>
  321.  
  322. <tr>
  323.  
  324. <td width="313" height="30" align="right" valign="middle" bgcolor="#FBFBFB">&nbsp;<font size="2px"><?php echo $Texto_Index_240;?>:&nbsp;</td>
  325.  
  326. <td width="120" align="center" valign="middle" bgcolor="#FBFBFB"><font size="2px"><?php echo $Texto_Index_241;?></td>
  327.  
  328. <td width="120" align="center" valign="middle" bgcolor="#FBFBFB"><font size="2px">10<?php echo $Diminutivo?></td>
  329. </tr>
  330.  
  331. <tr class="primertd">
  332.  
  333. <td width="313" height="44" valign="middle" bgcolor="#FFFFFF"></td>
  334.  
  335. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"></td>
  336.  
  337. <td width="120" align="center" valign="middle" bgcolor="#FFFFFF"><a href="comprar-vip.php"><strong><?php echo $Texto_Index_206;?></strong></a></td>
  338. </tr>
  339. </tbody></table>
  340.  
  341. </div>
  342.  
  343. </div>
  344.  
  345. <div id="menu-derecho"><style>.rounded-img{display:inline-block;overflow:hidden;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.9);-moz-box-shadow:0 1px 3px rgba(0,0,0,.9);box-shadow:0 1px 3px rgba(0,0,0,.9);}</style>
  346.  
  347. <div class="td">
  348.  
  349. <div class="icono-td">
  350.  
  351. <img src="./imagenes/dinero_p.png">
  352.  
  353. </div>
  354.  
  355. <div class="titulo-td">
  356.  
  357. <?php echo $Texto_Index_1;?>
  358.  
  359. </div>
  360.  
  361. </div>
  362.  
  363. <div class="bloque-monedas">
  364.  
  365. <div style="float:left; margin-left:170px; font-size:18px; color:#003366; margin-bottom:4px"><?php echo number_format($fz, 0, '', '.');?> <?php echo $Diminutivo?></div>
  366.  
  367. <div class="hr2"></div>
  368.  
  369. <div style="float:left; margin-left:170px; font-size:18px; color:#003366;">$<?php echo number_format($dinerototal, 0, '', '.');?></div>
  370.  
  371. <div class="hr2"></div>
  372.  
  373. <div style="float:left; margin-left:170px; font-size:18px; color:#003366;"><?php echo $score;?></div>
  374.  
  375. <div class="hr2"></div>
  376.  
  377. </div>
  378.  
  379. <hr>
  380.  
  381. <a href="comprar-oz.php"><center><img src="imagenes/comprar-oz.png" title="Comprar oz" border="0"></center></a>
  382.  
  383. <hr>
  384.  
  385. <div class="td-menu">
  386.  
  387. <div class="icono-td">
  388.  
  389. <img src="./imagenes/casa.png">
  390.  
  391. </div>
  392.  
  393. <div class="titulo-td">
  394.  
  395. <?php echo $Texto_Index_2;?>
  396.  
  397. </div>
  398.  
  399. </div>
  400.  
  401. <div class="bloque-menu">
  402. <a href="cuenta.php" class="panel-principal" title="<?php echo $Texto_Index_56;?>">&raquo; <?php echo $Texto_Index_44;?></a>
  403. <a href="comprar-ropa.php" class="panel-todo" title="<?php echo $Texto_Index_57;?>">&raquo; <?php echo $Texto_Index_45;?></a>
  404. <a href="comprar-vehiculos.php" class="panel-todo" title="<?php echo $Texto_Index_58;?>">&raquo; <?php echo $Texto_Index_46;?></a>
  405. <a href="cambiar-nombre.php" class="panel-todo" title="<?php echo $Texto_Index_59;?>">&raquo; <?php echo $Texto_Index_47;?></a>
  406. <a href="<?php if($faccion == 0){echo "crear-banda.php";}else{echo "tubanda.php";}?>" class="panel-todo" title="<?php if($faccion == 0){echo $Texto_Index_48;}else{echo $Texto_Index_49;}?>">&raquo; <?php if($faccion == 0){echo $Texto_Index_48;}else{echo $Texto_Index_49;}?></a>
  407. <a href="cc.php" class="panel-todo" title="<?php echo $Texto_Index_60;?>">&raquo; <?php echo $Texto_Index_50;?></a>
  408. <a href="cs.php" class="panel-todo" title="<?php echo $Texto_Index_61;?>">&raquo; <?php echo $Texto_Index_51;?></a>
  409. <a href="vip.php" class="actual1" title="<?php echo $Texto_Index_62;?>">&raquo; <?php echo $Texto_Index_52;?></a>
  410. <a href="invitar-amigo.php" class="panel-todo" title="<?php echo $Texto_Index_63;?>">&raquo; <?php echo $Texto_Index_53;?></a>
  411. <?php if(isset($_SESSION['User'])) { ?><a href="logout.php" class="panel-todo" title="<?php echo $Texto_Index_64;?>">&raquo; <?php echo $Texto_Index_54;?></a><?php } else { ?><a href="ingresar.php" class="panel-todo" title="<?php echo $Texto_Index_55;?>">&raquo; <?php echo $Texto_Index_55;?></a> <?php } ?>
  412. </div>
  413. <hr>
  414. <span style="background:url(./imagenes/totem.png) no-repeat center center; width: 300px; height: 320px;" class="rounded-img"><a href="invitar-amigo.php" title="<?php echo $Texto_Index_268;?>"><span class="rounded-img" style="background:url(./imagenes/totem.png) no-repeat center center; width: 300px; height: 320px;"><img class="rounded-img" src="./imagenes/totem.png" style="opacity: 0; border:0"></span></a></span>
  415. <script type="text/javascript">
  416. $(document).ready(function(){
  417.  
  418.   $(".rounded-img").load(function() {
  419.     $(this).wrap(function(){
  420.       return '<span class="' + $(this).attr('class') + '" style="background:url(' + $(this).attr('src') + ') no-repeat center center; width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px;" />';
  421.     });
  422.     $(this).css("opacity","0");
  423.   });
  424.  
  425. });
  426. </script>
  427.  
  428. <?php if($activar_jc == 1) {?>
  429. <hr/>
  430. <div class="td">
  431. <div class="icono-td"><img src="./imagenes/diario.png"/></div>
  432. <div class="titulo-td">
  433. <?php echo $Texto_Index_3;?>
  434. </div>
  435. </div>
  436. <div class="bloque">
  437. <span id="total" style="font-size:35px; color:#050;text-shadow: 0 1px 0 #FFFFFF; margin-left:35%"><center><?php if(!empty($aInformation)){echo $aInformation['Players'];}?></center></span>
  438. </div>
  439. <?php } ?>
  440.  
  441. <?php if($activar_es == 1) {?>
  442. <hr>
  443. <div class="td">
  444. <div class="icono-td"><img src="./imagenes/estadisticas.png"/></div>
  445. <div class="titulo-td">
  446. <?php echo $Texto_Index_4;?>
  447. </div>
  448. </div>
  449.  
  450. <div class="bloque">
  451. <span style="font-weight:bold;font-size:12px; color:#003366">Roleplay S1:&nbsp;&nbsp;&nbsp;</span> <span style="font-size:12px; font-weight:bold; color:#305B79"><?php echo $serverIP ?><?php if($activar_pt == 1){?>:<?php echo $serverPort ?><?php } ?></span><span style="float:right; width:68px"><img src="./imagenes/en-linea.png" align="absmiddle" title="En linea"><span id="rols4" style="color:#030"><font size="2px"><?php if(!empty($aInformation)){echo $aInformation['Players'];}?>/<?php if(!empty($aInformation)){echo $aInformation['MaxPlayers'];}?></span></span>
  452. </div>
  453. <?php } ?>
  454.  
  455. <!---->
  456. <?php if($activar_fb == 1) {?>
  457. <hr/>
  458. <div class="td">
  459. <div class="icono-td"><img src="./imagenes/facebook.png"></div>
  460. <div class="titulo-td"><?php echo strtoupper($Diminutivo)?>:RP <?php echo $Texto_Index_5;?></div>
  461. </div>
  462.  
  463. <div class="bloque">
  464. <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com/<?php echo $FacebookURL?>/?fref=ts&width=280&colorscheme=light&show_faces=false&stream=false&header=false&height=62" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:280px; height:68px;" allowTransparency="true">
  465. </iframe>
  466. </div>
  467. <?php } ?>
  468. <!---->
  469.  
  470. <?php if($activar_tw == 1) {?>
  471. <hr/>
  472. <div class="td">
  473. <div class="icono-td"><img src="./imagenes/twitter.png" height="16" width="16"></div>
  474. <div class="titulo-td"><?php echo strtoupper($Diminutivo)?>:RP <?php echo $Texto_Index_6;?></div>
  475. </div>
  476. <div class="bloque">
  477. <a class="twitter-timeline" href="https://twitter.com" data-widget-id="<?php echo $TwitterID?>">Twitter <?php echo $NombreServidor?></a>
  478. <script>
  479. !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
  480. </script>
  481. </div>
  482. <?php } ?>
  483. <!---->
  484.  
  485. <hr/>
  486. <div class="td">
  487. <div class="icono-td">
  488. <img src="./imagenes/auto2.png"/>
  489. </div>
  490. <div class="titulo-td">
  491. <?php echo $Texto_Index_7;?>
  492. </div>
  493. </div>
  494. <div class="bloque">
  495. <?php
  496.  
  497. $carrera = $con->prepare("SELECT Username,PuntosCarrera FROM usuarios ORDER BY PuntosCarrera DESC LIMIT 5");
  498. $carrera->execute();
  499.  
  500. $counter = 0;
  501.  
  502. if($row = $carrera->fetch(PDO::FETCH_ASSOC))
  503. {
  504.     do
  505.     {
  506.         $counter++;
  507.         echo "".$counter.". ".$row["Username"]."<span style='float:right; font-size:11px;'>".$row["PuntosCarrera"]." $Texto_Index_93</span><div class='hr'></div>";
  508.     }
  509.     while($row = $carrera->fetch(PDO::FETCH_ASSOC));
  510. }
  511.  
  512. ?>
  513. <center><a href="./torneo-carreras.php"><?php echo $Texto_Index_8;?></a></center>
  514. </div>
  515.  
  516. <!-- -->
  517. <!-- Anuncio -->
  518. <hr/>
  519. <div class="td">
  520. <div class="icono-td">
  521. <img src="./imagenes/anuncio.png" height="16" width="16"/>
  522. </div>
  523. <div class="titulo-td">Anuncio</div>
  524. </div>
  525. <div class="bloque" style="padding-bottom: 40px;">
  526. <center>
  527. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  528. <!-- Anuncio 4 -->
  529. <ins class="adsbygoogle"
  530.      style="display:block"
  531.      data-ad-client="ca-pub-1072011961085613"
  532.      data-ad-slot="7461875407"
  533.      data-ad-format="auto"></ins>
  534. <script>
  535. (adsbygoogle = window.adsbygoogle || []).push({});
  536. </script>
  537. </center>
  538. </div>
  539. <!-- Anuncio -->
  540. </div>
  541. <div id="pie"><hr><?php echo $NombreServidor?> Roleplay &copy; 2016 by Hahn</div> </td>
  542. </tr>
  543. </table>
  544. </body>
  545. <div id="lean_overlay"></div>
  546. </html>
  547. <script>
  548.   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  549.   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  550.   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  551.   })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  552.  
  553.   ga('create', 'UA-104151474-1', 'auto');
  554.   ga('send', 'pageview');
  555.  
  556. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement