Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- require_once 'includes/core.php';
- $user->logged('yes');
- $page = "Home";
- $tab = "1";
- $myusername = $user->Get('username');
- $mylook = $user->Get('look');
- $mymotto = $user->Get('motto');
- $mycredit = $user->Get('credits');
- $myducket = $user->Get('activity_points');
- $mydiamonds = $user->Get('diamonds');
- echo $row['username'];
- require_once 'templates/header.php';
- if(!empty($_SESSION['facebook_name'])){
- $changename = $user->filtertext($_POST['changename']);
- $str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
- $cad = "";
- for($i=0;$i<12;$i++) {
- $cad .= substr($str,rand(0,62),1);
- }
- $passwordchanged = $user->HoloHash($cad, $changename);
- if(isset($_POST['changename'])){
- $newname = $_POST['changename'];
- $filter = preg_replace("/[^a-z\d\-=\?!@:\.]/i", "", $newname);
- if($newname !== $filter || strlen($newname) < 2 || strlen($newname) > 19){
- $_SESSION['ERROR_RETURN'] = "Inserta un nombre valido (Min: 2 Caract. Max 18 Caract.";
- header("LOCATION: ". PATH ."/me.php?session");
- }elseif($user->ComprobateExist($newname)){
- $_SESSION['ERROR_RETURN'] = "Ese nombre ya esta en uso.";
- header("LOCATION: ". PATH ."/me.php?session");
- }else{
- $new = $db->query("UPDATE users SET facebook_change = '1', username = '{$changename}', password = '{$passwordchanged}' WHERE username = '{$user->Get('username')}' AND password = '{$_SESSION['password']}' LIMIT 1");
- $_SESSION['GOOD_RETURN'] = "Tu nombre se ha cambiado con exito.";
- $_SESSION['username'] = $changename;
- $_SESSION['password'] = $passwordchanged;
- unset($_SESSION['facebook_name']);
- header("LOCATION: ". PATH ."/me.php?session");
- }
- }
- }
- ?>
- <div id="container">
- <div class="profile">
- <!-- Aquí va el habbo-imaging -->
- <div class="username"><?php echo $myusername; ?></div>
- <div class="motto"><?php echo $user->filtertext($mymotto); ?></div>
- <center>
- <div class="hotel">
- <a target="new" href="/client.php"><img src="http://img.webme.com/pic/h/habbo-mariianiita/habbo_online_anim.gif"> Entrar al hotel</a></div>
- </center>
- <center><div class="money">
- <img style="margin-left: 4px;margin-right: 4px;" src="assets/_images/icono-creditos.png"><?php echo $user->filtertext($mycredit); ?> Créditos
- <img style="margin-left: 4px; margin-right: 4px;" src="assets/_images/icono-duckets.png"><?php echo $user->filtertext($myducket); ?> Duckets
- <img style="margin-left: 4px; margin-right: 4px;" src="assets/_images/icono-diamantes.png"><?php echo $user->filtertext($mydiamonds); ?> Diamantes
- </div>
- </center>
- </div>
- </div>
- <div id="containerme">
- <div id="columna-1">
- <?php
- $result = $db->query("SELECT * FROM cms_news_new ORDER BY id DESC LIMIT 3");
- if($result->num_rows > 0){
- while($data = $result->fetch_array()){ ?>
- <div class="box-promo" style="background-image: url('<?php echo $data['campaignimg']; ?>')">
- <b style="color: #fff;font-size: 1.5em;"><?php echo $data['title']; ?> <a href="<?php echo PATH; ?>/articles.php?id=<?php echo $data['id']; ?>"><img src="assets/_images/sprint.png" style="margin: -2px;"></a></b>
- </div>
- <?php } }else{ echo '<i>No hay noticias</i>'; } ?>
- <div class="box">
- <div class="title">Bienvenido a Habbed <span><i class="fa fa-ticket"></i></span></div>
- <div class="contenido">
- Bienvenido a Holox.es en estos momentos estamos terminando nuestra fase beta para poder dar paso a que todos nuestros usuarios puedan jugar, en el servidor podrás concursar, interactuar con otros jugadores en línea incluso tienes la oportunidad
- de crear tus propios concursos en los cuales podrás entregar fabulosos premios y tendrás todo el apoyo del equipo técnico de holox.es. Nuestros usuarios todos podrán aspirar a formar parte de nuestro equipo nosotros seleccionaremos quienes
- merecen pertenecer a nuestro equipo según los aportes que haga a la comunidad respete a los usuarios, guie a los nuevos y un sin fín de cosas más!<p><p>
- También queremos recordarte que si tienes algún problema y no hay nadie en línea que pueda resolvertelo puedes ponerte en contácto con nuestro equipo técnico a través de la siguiente dirección de correo, puedes reportar bugs, hacer sugerencias...
- <p>
- E-mail: <b>soporte@wintxcoders.com</b>
- <p>
- <br>
- <img src="http://cdn.habbed.es/album/home.gif"/>
- </div>
- </div>
- <div class="box">
- <div class="title">Publicidad. <span><i class="fa fa-refresh fa-spin"></i></span></div>
- <div class="contenido">
- <div class="xat">
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- <!-- Publi1 -->
- <ins class="adsbygoogle"
- style="display:inline-block;width:728px;height:90px"
- data-ad-client="ca-pub-8831780628261194"
- data-ad-slot="5376750660"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>
- </div>
- </div>
- </div>
- <br>
- <br>
- <br>
- </div>
- <div id="columna-2">
- <div class="box">
- <div class="title">Publicidad <span><i class="fa fa-play"></i></span></div>
- <div class="contenido">
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- <!-- Publi4 -->
- <ins class="adsbygoogle"
- style="display:inline-block;width:250px;height:250px"
- data-ad-client="ca-pub-8831780628261194"
- data-ad-slot="8051015468"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>
- </div>
- </div>
- <div class="box">
- <div class="title">Publicidad <span><i class="fa fa-play"></i></span></div>
- <div class="contenido">
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- <!-- Publi4 -->
- <ins class="adsbygoogle"
- style="display:inline-block;width:250px;height:250px"
- data-ad-client="ca-pub-8831780628261194"
- data-ad-slot="8051015468"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>
- </div>
- </div>
- <div class="box">
- <div class="title">Nuestro Facebook <span><i class="fa fa-facebook"></i></span></div>
- <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2F/HoloxES&width=300&height=308&colorscheme=light&show_faces=true&header=false&stream=false&show_border=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:230px;" allowTransparency="true"></iframe>
- </div>
- </div>
- <br>
- <br>
- <script>
- $(document).ready(function(){
- $('[data-toggle="tooltip"]').tooltip();
- });
- </script>
- <br>
- <br>
- <?php require_once 'templates/footer.php'; ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement