<?php
session_start();
/*
 * footer.php - footer for all the pages
 * 
 * Copyright 2009, 2017 Pedro Quaresma <pedro@mat.uc.pt>
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 */

require_once('servidor.php');

// connection to the database
require_once($entradaFILE."dbLogin.php");

$versionSQL = "SELECT majorVersion,minorVersion,buildVersion 
                 FROM geothms
             ORDER BY buildVersion DESC
                LIMIT 1";


$resultadoVersion = mysqli_query($ligacao,$versionSQL);

$linha = mysqli_fetch_assoc($resultadoVersion);
$majorVersion = $linha['majorVersion'];
$minorVersion = $linha['minorVersion'];
$buildVersion = $linha['buildVersion'];

$version = $majorVersion.".".$minorVersion.".".$buildVersion;

echo "
<table width='100%' bgcolor='black' cellpadding='12' border='0'>
 <tr>
  <td align='left' width='20%'>
    <p class='foot'>
      $msgRodape - v$version
    </p>
   </td>
   <td align='center' width='80%'>
    <p class='foot'>
     &copy; 2009, Pedro Quaresma (Univ. Coimbra) & Predrag Janicic (Univ. Belgrade)
    </p>
   </td>
  </tr>
 </table>\n";
echo "</body>\n";
echo "</html>\n";

?>