function setLogin($array = array()){ global $md5; foreach($array as $i => $v){ $_SESSION[$md5][$i] = $v; } $_SESSION[$md5]['sessao'] = session_id(); $_SESSION[$md5]['user_agent'] = $_SERVER['HTTP_USER_AGENT']; } function banners($v){ if($v['formato'] == "1"){ $imagem = "
"; if(!empty($v['url'])){ $retorno = "
{$imagem}
"; }else{ $retorno = $imagem; } }elseif($v['formato'] == "2"){ $retorno = $v['codigo']; } return $retorno; } function slides($v){ $imagem = "
"; if(!empty($v['link'])){ $retorno = "
{$imagem}
"; }else{ $retorno = $imagem; } return $retorno; } function parceiros($v, $pasta){ $imagem = "
"; if(!empty($v['link'])){ $retorno = "
{$imagem}
"; }else{ $retorno = $imagem; } return $retorno; } function categorias($v){ $imagem = "
"; if(!empty($v['link'])){ $retorno = "
{$imagem}
"; }else{ $retorno = $imagem; } return $retorno; } function redes_sociais($v){ if($v['tipo'] == "1"){ $content = "
"; }elseif($v['tipo'] == "2"){ $content = "
"; } return "
{$content}
"; } function paginas_dinamicas($v, $upper = false){ $v['pagina'] = $upper ? maiusculo($v['pagina']) : $v['pagina']; if($v['tipo_pagina'] == "1"){ return "
{$v['pagina']}
"; }elseif($v['tipo_pagina'] == "2"){ $link = url($v['link']); return "
{$v['pagina']}
"; } } function setIcone($tipo, $icone, $title, $pasta){ if($tipo == "1") return "
"; elseif($tipo == "2") return "
"; } function apiFacebook($url, $largura, $altura, $title = NULL){ return "
{$title}
"; }