"); } else { die (""); } } } // -------------------------------------------------------------------------------------------------- // Cria um array com elementos da barra de navegação. // -------------------------------------------------------------------------------------------------- function BarNavegacao ($Posicao) { // switch } // -------------------------------------------------------------------------------------------------- // Retorna a idade, a partir de uma data de nascimento. // -------------------------------------------------------------------------------------------------- function RetIdade ($DtNasc) { if ( StrLen($DtNasc) != 10 ) { return 0; } $dia = (int) SubStr($DtNasc, 0, 2); $mes = (int) SubStr($DtNasc, 3, 2); $ano = (int) SubStr($DtNasc, 6, 4); $nasc = mktime(0, 0, 0, $mes, $dia, $ano); $DtHoje = Date("d/m/Y"); $dia = (int) SubStr($DtHoje, 0, 2); $mes = (int) SubStr($DtHoje, 3, 2); $ano = (int) SubStr($DtHoje, 6, 4); $hoje = mktime(0, 0, 0, $mes, $dia, $ano); return Round( ($hoje - $nasc) / 31536000 ); } // -------------------------------------------------------------------------------------------------- // Retorna a última ordem da noticia de uma determinada área. // -------------------------------------------------------------------------------------------------- function NoticiaMaxOrdem ($Area) { if ( DBConnect() ) { $sql = "SELECT MAX(not_ordem) AS ordem FROM noticias WHERE not_area = $Area"; if ( $rs = mysql_query($sql) ) { if ( $linha = mysql_fetch_array($rs) ) { $MaxOrdem = $linha["ordem"]; } } else { Redirect("/fnt/erro.php?err=0"); } } else { Redirect("/fnt/erro.php?err=0"); } if ( empty($MaxOrdem) ) $MaxOrdem = 0; return $MaxOrdem; } // -------------------------------------------------------------------------------------------------- // Retorna um array com informações dos arquivos pertencentes a um determinado diretório. // [0] - nome do arquivo // [1] - tipo do arquivo // [2] - tamanho do arquivo // -------------------------------------------------------------------------------------------------- function Directory ($PathDir, $Exts="") { $HDir = opendir($PathDir); $i = 0; clearstatcache(); while ( ($NomeArq = strtolower(readdir($HDir))) != "" ) { if ( ($pos = strrpos($NomeArq, ".")) ) { $Ext = substr($NomeArq, $pos+1); } else { $Ext = " "; } if ( is_int(strpos($Exts, $Ext)) || empty($Exts) ) { $PathArq = str_replace("//", "/", $PathDir."/".$NomeArq); $Arquivos[$i][0] = $NomeArq; $Arquivos[$i][1] = filetype($PathArq); $Arquivos[$i][2] = filesize($PathArq); $i++; } } closedir($HDir); sort($Arquivos); return $Arquivos; } // -------------------------------------------------------------------------------------------------- // Adiciona um evento no histórico de log's. // -------------------------------------------------------------------------------------------------- function AddHistorico ($Tipo, $Desc, $Chaves) { global $USR_ID; if ( empty($Tipo) || empty($Desc) || empty($Chaves) ) { return false; } $DataHora = Date("Y-m-d h:i:s"); $sql = "INSERT INTO historico VALUES (0, $Tipo, '$Desc', '$Chaves', '$DataHora', $USR_ID)"; if ( DBConnect() ) { return mysql_query($sql) ; } else { return false ; } } // -------------------------------------------------------------------------------------------------- // Retorna um cursor e prepara o ambiente para a barra de paginação (/inc/bar_navegacao.inc.php). // -------------------------------------------------------------------------------------------------- function ExecuteSql( $sql, $pag ) { global $APP_FORM_PAGINACAO_LINHAS; global $NumTotPag; $NumTotPag = 0; if ( DBConnect() ) { if ($rs = mysql_query($sql)) { $numRows = mysql_num_rows($rs); } if ($numRows > 0) { $NumTotPag = ($numRows / $APP_FORM_PAGINACAO_LINHAS); if ($NumTotPag > (int)$NumTotPag) $NumTotPag = ((int)$NumTotPag)+1; if ($pag < 1) $pag = 1; if ($pag > $NumTotPag) $pag = $NumTotPag; $PagAtual = ($pag * $APP_FORM_PAGINACAO_LINHAS)-$APP_FORM_PAGINACAO_LINHAS; $sql .= " LIMIT $PagAtual, $APP_FORM_PAGINACAO_LINHAS" ; return mysql_query($sql); } return $rs; } else Redirect("/fnt/erro.php?err=0"); } AFRICONTINENTAL & AS Express Luanda

The AFRICONTINENTAL comes to take care of the yearnings of entrepreneurs which look forward to consolidate relations and deal with African countries, placing its services and products in places of prominences.

Our objective is to promote the integration between the people, consolidating the commercial and cultural relations.

We are determined in advancing in the processes of development of the African economy, and at the same time pointing out the risks of investments, making the center of attention the african continent

Welcome to AFRICONTINENTAL.