$comm_rec = array(); while ($temp = $conex->getArray()) { $comm_rec[] = $temp; } } if (isset($temp)) { unset($temp); } if ($conex->conex->more_results()) { while ($conex->conex->next_result()) { } } $conex->execute("select user from account where id={$_GET['id']}"); if (!$conex->q_err) { //Nombre del usuario regular (no visitante) $USER = $conex->getValue(); } } #Cargar los posts $conex->execute("select * from post where id_acc={$_GET['id']} order by post_date asc"); if ($conex->q_err) { //$msg = $conex->q_err; $msg = 'No se pudo cargar la informacion de la Base de Datos.'; } } ?> <link rel="stylesheet" type="text/css" href="<?php Root('css/dashboardRoot.css'); ?> ">
$JQUERY = true; $INCL = array('myconnection.php'); include "../include/essentials.php"; //Verificar si se envio una solicitud de inicio de sesion if (isset($_POST['usuario']) && isset($_POST['clave'])) { $_POST['usuario'] = strtolower($_POST['usuario']); $usr = strtolower(trim($_POST['usuario'])); $conex = new myconnection('cmsuser', 'pass', 'cms'); if ($conex->conx_err) { $msg = 'Hubo un error a la hora de realizar la conexion con la Base de Datos.'; } else { $conex->execute("call Autenticate('{$usr}','{$_POST['clave']}')"); if ($conex->q_err) { $msg = 'No se pudo cargar la informacion de la Base de Datos.'; } else { $resp = $conex->getValue(); if ($resp == -1) { $msg = 'Usuario/clave incorrecta'; } else { $_SESSION['usr'] = $usr; $_SESSION['id'] = $resp; $_SESSION['name'] = ucfirst($user); header('Location: dashboard.php'); } } } $conex->close(); } ?> <link rel="stylesheet" href="<?php