Ejemplo n.º 1
0
<?php

lliure::inicia('aplimo');
lliure::inicia('navigi');
lliure::loadcss($_ll['app']['pasta'] . 'padroes.css');
//lliure::loadcss($_ll['app']['pasta'].'estilo.css');
$_ll['titulo'] = 'Hub';
require_once $_ll['app']['pasta'] . 'sys/funcoes.php';
require_once 'app/intext/sys/integracao.php';
intext::idioma_set('pt_br');
intext::set(37, 10);
class lliurehub extends aplimo
{
    function monta()
    {
        global $_ll;
        if (!isset($this->class_li)) {
            echo 'Método header() não foi instanciado!';
            die;
        }
        $total_reg = 30;
        $tr = 10;
        ?>
		<div class="container cabecalho ll_background">
			<div class="menu">
				<h1><a href="<?php 
        echo $_ll['url']['endereco'];
        ?>
"><img src="<?php 
        echo $_ll['app']['pasta'] . 'img/logo-top.png';
        ?>
Ejemplo n.º 2
0
function _t($palavra, $echo = true)
{
    return intext::t($palavra, $echo);
}
Ejemplo n.º 3
0
<?php

lliure::inicia('parsedown');
intext::set(92);
lliure::loadjs($_ll['app']['pasta'] . 'js/jquery.validate.min.js');
Ejemplo n.º 4
0
    $cmdd = mysql_fetch_assoc(mysql_query('select a.*, (select count(id) from ' . PREFIXO . 'usuario_comunidade where comunidade = a.id) as membros from ' . PREFIXO . 'comunidade a where a.id = "' . $_GET['cmd'] . '" limit 1'));
    $query = mysql_query('select * from ' . PREFIXO . 'usuario_comunidade where comunidade = "' . $cmdd['id'] . '" and usuario = "' . $_ll['user']['id'] . '" ');
    $cmdd['adm'] = false;
    $cmdd['membro'] = false;
    if (mysql_num_rows($query) != 0) {
        $cmdd['membro'] = true;
        $dados = mysql_fetch_assoc($query);
        if ($dados['status'] == 'A') {
            $cmdd['adm'] = true;
        }
    }
    $this->cmdd = $cmdd;
    $_ll['titulo'] .= ' | ' . $this->cmdd['nome'];
}
/*
//coloque neste array as paginas que não serão bloqueadas
$paguinasLivre = array(
	'home'
);

if(isset($_GET[2]) and !in_array($_GET[2], $paguinasLivre) and $cmdd['membro'] == false){
	
	$sh_pagina = $sh_boqueio;
	
}else{
	$sh_onserver = $sh_pagina.'comunidade/'.$subPagina.'.php';
	$sh_pagina = 'comunidade/'.$subPagina.'.php';
}
*/
intext::set(31);
lliure::loadcss($_ll['app']['pasta'] . 'comunidade/comunidade.css');
Ejemplo n.º 5
0
<?php

intext::set(24);
lliure::loadcss($_ll['app']['pasta'] . 'home/estilo.css');
Ejemplo n.º 6
0
<?php

lliure::loadcss($_ll['app']['pasta'] . 'perfil/estilo.css');
$this->usuario = mysql_fetch_assoc(mysql_query('select a.*, b.nome as estado, b.sigla 
					from ' . PREFIXO . 'usuario_conta a

					left join br_estado b
					on b.sigla = a.estado
					
					where a.id = "' . $_GET['user'] . '" limit 1'));
$_ll['titulo'] .= ' - ' . $this->usuario['nome'] . ' ' . $this->usuario['sobrenome'];
$sql = 'select b.id, b.nome, b.img
		from ' . PREFIXO . 'usuario_comunidade a

		left join ' . PREFIXO . 'comunidade b
		on b.id = a.comunidade
		
		where a.usuario = "' . $this->usuario['id'] . '" ';
$this->comunidades = mysql_query($sql);
$sql = 'select a.id, a.img, a.nome, a.sobrenome
		from ' . PREFIXO . 'usuario_conta a

		where id in (select a.contato
					from ' . PREFIXO . 'usuario_contato a
					where a.usuario = "' . $this->usuario['id'] . '" and a.contato != "' . $this->user['id'] . '"
					)
		order by rand() limit 16';
$this->contatos = mysql_query($sql);
$meuContato = @mysql_result(mysql_query('select id from ' . PREFIXO . 'usuario_contato where usuario = "' . $this->user['id'] . '" and contato = "' . $this->usuario['id'] . '" '), 0);
intext::set(193, 234);