Location: PHPKode > projects > CopyTracker > copytracker/showdoc.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
 */
 
session_start();
require_once('config.php');
require_once('functions2.php');
require_once('classxml.php');

//  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

$link = mysql_connect($serveur_bdd, $login_bdd, $pass_bdd);

if(!$link)
{
	die($lang['index']['sql_error'] . mysql_error());
}
$db_selected = mysql_select_db($bdd);
if (!$db_selected) 
{
	header('location: install.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//CN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.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" />
	</head>
	<frameset rows="110px,*">
		<frame src="menu.php" name="menu" frameborder="0" noresize="noresize"/>
		<frame src="<?php echo $_GET['doc']?>" name="maindoc" frameborder="0"/>
	</frameset><noframes></noframes>
	</html>
<?php
	mysql_close();
?>
Return current item: CopyTracker