<?php
include("common_db.php");
include("functions.php");
dbconnect($host, $username, $password); //from common_db.php
$strings = loadStrings($lang, 'HOME');
headers();
html();
head("HypatiaDB");
//authentication stuff
if(isset($_REQUEST['login_name']) && isset($_REQUEST['login_password'])) {
if(!authenticate_user($_REQUEST['login_name'], $_REQUEST['login_password'])) {
//whoops! someone got the wrong password!
menu('',true,false); //don't show the menu
echo("<p class=\"error\">$strings[HOME_BADLOGIN]</p>");
endhtml(); exit(0);
}
}
menu();
navpane();
?>
<div id="mainpane">
<?php echo($strings['HOME_INTRO']); ?>
<ul class="semantic">
<li><!--<img src="images/<?php echo($lang); ?>/fancy-image.png" alt="" />--><?php echo($strings['HOME_IMPORT']); ?></li>
</ul>
</div>
<?php
endhtml();
?>