Location: PHPKode > projects > CopyTracker > copytracker/menu.php
<?php
/**
 *     This file is part of CopyTracker.
 *
 *    CopyTracker 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.
 *
 *    CopyTracker 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 CopyTracker; if not, write to the Free Software
 *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
 
//  BEGINING of language's choice
if(isset($_POST['lang'])) //in case the user has changed the language
	$language=$_POST['lang'];
else //this get the lang from lang.txt
{
	$fp =  fopen("lang.txt","r");
	$language = fgets($fp,3);    
	fclose($fp);
}
if(is_file('language/lang_'.$language.'.php'))
	require_once('language/lang_'.$language.'.php');
else
	require_once('language/lang_en.php');
// END of language's choice
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//CN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cn">
	<head>
		<title>CopyTracker</title>
		<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
		<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
		<link rel="stylesheet" media="screen" type="text/css" title="Default style" href="css/default.css" />
	</head>
	<body>
	<div>
		<div id="header">
				<h1><?php echo $lang['index']['welcome']; ?></h1>	
		</div>
		<div id="menu">
			<h2><?php echo $lang['index']['menu']; ?></h2>
			<ul>
				<li><a href="index.php?page=accueil" target="_parent"><?php echo $lang['index']['home']; ?></a></li>
				<li><a href="index.php?page=my_db" target="_parent"><?php echo $lang['index']['database']; ?></a></li>
				<li><a href="index.php?page=compare_multifile" target="_parent"><?php echo $lang['index']['compareMultipleFiles']; ?></a></li>
				<li><a href="index.php?page=compare_deep" target="_parent"><?php echo $lang['index']['compare_deep']; ?></a></li>
				<li><a href="index.php?page=internet" target="_parent"><?php echo $lang['index']['internet']; ?></a></li>
				<li><a href="index.php?page=search" target="_parent"><?php echo $lang['index']['search']; ?></a></li>
				<li><a href="index.php?page=preferences" target="_parent"><?php echo $lang['index']['preferences']; ?></a></li>
				<li><a href="index.php?page=help" target="_parent"><?php echo $lang['index']['help']; ?></a></li>
				<li><a href="index.php?page=about" target="_parent"><?php echo $lang['index']['about']; ?></a></li>			
			</ul>
		</div>	
	</div>
	<hr style="clear:both;"/>
	</body>
</html>
Return current item: CopyTracker