Leon1923
New Member
- Jun 9, 2020
- 3
- 1
I am trying to adapt the layout of sonay to yezz cms, but I have these errors, I am a very new programmer in all this, so I ask for your help, I try to adapt the code by moving and deleting things, the SQL code i does not moved it because I know it is for different queries in the database.
1. This is the index, all normal, but when I click on the registration button it looks as image number 2.
2. This is the register, but when i recharge the page it looks as the image number 3. (right way)
3. When i click in "Regresar" redirect me to index, but it looks as image 4.
4. for the display to be correct, I have to reload the page again. (image 5)
5. I hope you can help me.
Index (Yezz CMS by forbi):
Sorry for my english
1. This is the index, all normal, but when I click on the registration button it looks as image number 2.
You must be registered for see images attach
You must be registered for see images attach
You must be registered for see images attach
You must be registered for see images attach
You must be registered for see images attach
Index (Yezz CMS by forbi):
Code:
<?php
ob_start();
require_once '../../global.php';
$Functions->Logged("false");
//HOTEL CONFIG
$result2 = $db->query("SELECT * FROM cms_settings WHERE id = 1 LIMIT 1");
$yezz = $result2->fetch_array();
//END HOTEL CONFIG
//IP BAN
$ip = $Functions->getRealIP();
$checkban = $db->query("SELECT * FROM bans WHERE value = '".$ip."' LIMIT 1");
while($mant = $checkban->fetch_array()){
$_SESSION['LOGIN_ERROR'] = "Tu IP ha sido baneada";
header("LOCATION: ". PATH ."/index");
}
//END IP BAN
$checkipusers = $db->query("SELECT * FROM users WHERE ip_reg = '".$ip."'");
$TplClass->SetParam('username', '');
$TplClass->SetParam('password', '');
$users = $db->query("SELECT * FROM users WHERE username = '{$_SESSION['username']}' AND password = '{$_SESSION['password']}'");
if( $_SESSION['LOGIN_ERROR'] ){
$TplClass->SetParam('error', '<div class="error e_top bounceInLeft animated">'.$_SESSION['LOGIN_ERROR'].'</div>');
$TplClass->SetParam('username', $_SESSION['LOGIN_USERNAME']);
$TplClass->SetParam('password', $_SESSION['LOGIN_PASSWORD']);
unset($_SESSION['LOGIN_ERROR'], $_SESSION['LOGIN_USERNAME'], $_SESSION['LOGIN_PASSWORD'], $_SESSION['LOGIN_ERRORIP']);
}
if( $_SESSION['ERROR_RETURN'] ){
$TplClass->SetParam('error', '<div class="error e_top bounceInLeft animated">'.$_SESSION['ERROR_RETURN'].'</div>');
unset($_SESSION['ERROR_RETURN']);
}
if( $_SESSION['GOOD_RETURN'] ){
$TplClass->SetParam('error', '<div class="error tctm success">'.$_SESSION['GOOD_RETURN'].'</div>');
unset($_SESSION['GOOD_RETURN']);
}
?>
<!DOCTYPE html>
<html lang="es">
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="<?php echo PATH; ?>/app/assets/img/favicon.ico" type="image/vnd.microsoft.icon" />
<base href="<?php echo PATH ?>/" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="identifier-url" content="<?php echo PATH ?>/" />
<meta name="Copyright" content="<?php echo $yezz['hotelname']; ?>" />
<meta name="language" content="es_ES">
<meta name="hreflang" content="es_ES">
<meta name="category" content="Website">
<meta property="og:site_name" content="<?php echo $yezz['hotelname']; ?>" />
<meta property="og:locale" content="es_ES">
<meta property="og:url" content="<?php echo PATH ?>/<?php echo $url; ?>" />
<link rel="dns-prefetch" href="<?php echo PATH ?>" />
<title><?php echo $yezz['hotelname']; ?>: Haz nuevos amigos, crea tus salas y diviértete al máximo.</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Habbo: World Connected</title>
<link type="text/css" href="css/index.css" rel="stylesheet">
</head>
<body>
<!--<div class="error-msg">Die Felder müssen ausgefüllt sein.</div>-->
<div id="appcontent">
<div class="hero">
<div class="hotel"></div>
</div>
<div id="header-content">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="logo"></div>
<div class="online-count"><b><b><?php echo $Functions->GetOns() ?></b> Habbos online</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-5">
<div class="login-position">
<h2>Iniciar Sesión</h2>
<form id="FormConnexion" action="app/actions/Connection.php" method="post">
<label for="login-username">Usuario</label>
<input type="text" id="identifiant" name="username" onkeyup="loadlook()" autofocus="" placeholder="Nombre de Usuario" class="indexinput" />
<div id="indexformsepare"></div>
<label for="login-password">Contraseña</label>
<input type="password" id="password" name="password" placeholder="Contraseña" class="indexinput" />
<div id="indexformsepare"></div>
<button type="submit" class="btn big green register-button">Conectarme</button>
<a place="<?php echo $yezz['hotelname']; ?>: Crea un avatar" href="<?php echo PATH ?>/register" style="color:white;">
<u>Registrarme</u></a>
</form>
<div class="clear"></div>
<div class="row">
<div class="col-md-12">
<p>¿NO TIENES CUENTA AÚN?</p>
</div>
<div class="col-md-12">
<a href="<?php echo PATH ?>/register" class="btn big orange register-button">Regístrate ahora gratis</a>
</div>
</div>
</div>
</div>
<div class="clear"></div>
<div class="row">
<div class="col-md-12">
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="footer-content">
<ul class="footer-links">
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<li><a href="/index">Página principal</a></li>
<li><a href="">Contacto</a></li>
</ul>
<p class="footer">Bobba Hotel © 2019. All rights reserved.<br />Bobba Hotel is no way affiliated with Sulake Corporation Oy.</p>
</div>
</div>
</div>
</div>
</body>
<div class="end"></div>
<div id="index32">
</div>
<div class="end"></div>
<noscript>
<div id="indexscript1">
<div id="webcenter">
<div id="indexscript2"></div>
<div id="indexscript3"><?php echo $yezz['hotelname']; ?> funciona mejor con JavaScript</div>
</div>
</div>
</noscript>
<div id="indexl1">
<div onclick="CloseMdpPerdu();" style="top:75px;" id="fermeture"></div>
</div>
<script src="app/assets/js/jquery.js" charset="utf-8"></script>
<script src="app/assets/js/power.js" charset="utf-8"></script>
</html>
Sorry for my english
Last edited: