<!--
/***************************************************************************************
** "Some Chess" some rights reserved 2006
** Some Chess written by Jon Link
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; either
** version 2.1 of the License, or (at your option) any later version.
**
** This library 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
** Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public
** License along with this library; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
**
** The images [prnqk][dl][dl].png are GPL, from Wikimedia Commons, see gpl.txt
**
** a small portion of the code to display the chess board was taken from
** phpChessBoard by Andreas Stieger http://www.wh-hms.uni-ulm.de/~tux/phpChessBoard/
*****************************************************************************************/
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" >
<title>Some Chess</title>
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
<?php
include_once('config.php');
include_once('languages/'.$lang.'_main.php');
include_once('constants.php');
if(file_exists('install.php')){
include('install.php');
$installed = installCheck();
$updated = updateCheck();
if(!$installed){
$install = install($database,$indexStr);
if($install) echo '<div class="message">'.$install.'</div>';
}elseif(!$updated){
$udpate = update(shortVer);
if($udpate) echo '<div class="message">'.$udpate.'</div>';
}
}
echo'<form action="menu.php" method="post">
<input type="submit" value="'.$loginStr[0].'" class="butt" />
<div>
<p>'.$loginStr[1].' <input type="text" name="username" /></p>
<p>'.$loginStr[2].' <input type="password" name="password" /></p>
</div>
<input type="hidden" name="do" value="login" />
</form>
';
if($allowRegister){
echo'<form action="register.php" method="post" id="regBox">
<h3>'.$regStr[0].'</h3>
<input type="submit" value="'.$regStr[1].'" class="butt" />
<div>
<p>'.$loginStr[1].' <input type="text" name="username" /></p>
<p>'.$loginStr[2].' <input type="password" name="password" /></p>
';
if($verifyReg) echo' <p>Verification <input type="text" name="code" class="input" /></p>
<img src="image.php" />';
echo'
</div>
</form>';
}
echo'
<div id="ver">
<a href="http://astrodogpress.com/chess" target=new>Some Chess</a> Version '.version.'
</div>
';
echo $error;
?>
</body>
</html>