Ejemplo n.º 1
0
$PAGE_CSS = true;
$GLOBAL = true;
$BOOTSTRAP = true;
$JQUERY = true;
$INCL = array('myconnection.php');
include "include/essentials.php";
$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 {
    #Cargar la informacion del usuario
    $conex->execute('select * from info where id_acc=' . $_GET['id']);
    if ($conex->q_err) {
        $msg = 'No se pudo cargar la informacion de la Base de Datos.';
    } else {
        $info = $conex->getArray();
    }
    #Cargar las publicaciones
    if (isset($info)) {
        #4 -> act_rec1
        $conex->execute("select * from post where id={$info['4']}");
        if (!$conex->q_err && ($temp = $conex->getArray()) !== null) {
            $act_rec = array($temp);
        }
        #5 -> act_rec2
        $conex->execute("select * from post where id={$info['5']}");
        if (!$conex->q_err && ($temp = $conex->getArray()) !== null) {
            if (isset($act_rec)) {
                $act_rec[] = $temp;
            }
        }
Ejemplo n.º 2
0
		

	<?php 
if (isset($msg)) {
    ?>
		<div class="col-sm-12">
			<span style="display:block;text-align:center;font-size:14pt">
				<b>Error: </b><?php 
    echo $msg;
    ?>
			</span>
		</div>
	<?php 
} else {
    $cont = 0;
    while ($table = $conex->getArray()) {
        $cont++;
        //2 -> body
        if (strpos($table[2], '__') === 0) {
            $portada = substr($table[2], 0, strpos($table[2], '__', 2) + 2);
            $portada = substr($portada, 2, strlen($portada) - 4);
            $table[2] = substr($table[2], strpos($table[2], '__', 2) + 2);
        }
        if (isset($portada)) {
            ?>
		<!--Este formato de publicación es el formato con foto.-->
		<div class="col-sm-12 contenedorPublicacion">
			<div class="col-sm-12">

				<div class="col-sm-12 tituloFecha">
					<div class="col-sm-6 titulo">