Location: PHPKode > projects > Ptk-forensics > ptk/lib/update_ptk_version.php
<?php
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/

error_reporting (E_ALL ^ E_NOTICE);
include("../config/config.inc.php");
$errors = '';
require('sql_parse.php');

if (!function_exists('mysql_connect')){
	$errors .= "<div id=\"box_error\">PHP does not have MySQL support enabled.</div>";
} elseif (! $connect_id = @mysql_connect($db_host, $db_user, $db_password)) {
	$errors .= "<div id=\"box_error\">Could not create a MySQL connection, please check the SQL values entered<br /><br />MySQL error was : " . mysql_error() . "</div>";
}

$db_schema = "../sql/update.sql";
if (($sch_open = fopen($db_schema, 'r')) === FALSE){
	$errors .= "<div id=\"box_error\">The file '$db_schema' could not be found. Check that you have uploaded all PTK files to your server</div>";
} else {
	$sql_query .= fread($sch_open, filesize($db_schema));
}
$sql_query = remove_remarks($sql_query);
$sql_query = split_sql_file($sql_query, ';');
foreach($sql_query as $q) {
	@mysql_query($q);
	//if (! @mysql_query($q)) {
        //    $errors .= "<div id=\"box_error\">mySQL Error: " . mysql_error() . " on query '$q'<br /></div>";
        //}
}
?>

<html>
<head>
        <title>PTK</title>
        <link rel='stylesheet' href='../css/installer.css' type='text/css'>
</head>
<body style="vertical-align: middle">
<script src="../ajax/prototype.js" type="text/javascript"></script>
<script src="../ajax/scriptaculous.js" type="text/javascript"></script>
<script src="../ajax/effects.js" type="text/javascript"></script>
<div id="general_header">
	<table width="100%" border="0" cellpadding="0" cellspacing="1">
		<tr>
		        <td valign="top" align="center" style="background-color:#FFFFFF">
			<img src="../img/ptk_logo_small.png" border="0" alt="" /><br></td>
	       </tr>
      	</table>
	<?if ($errors != '') {
        	echo $errors;
	}else{?>
	 	<form action="home.php" method="post" style="margin:0px;padding:0px">
	                <div id="box_success">Update completed
	                <a href="home.php">PTK</a> is now properly updated and ready to work.</a>
	                </div>
			<div id="box_form">
	                <div id="box_title" style="font-size:12px;"><b>Changelog PTK</b>
				<a href="#" onclick="effect = Effect.toggle('change0','slide'); return false;">
				<b>[show all]</b></a> 
			</div>
			<div style="background:#ffffff; text-align:justify;font-size:10px; padding: 3px; ">
			PTK 1.0.5<br/>
			- Enhanced live search section<br/>
			- Enhanced support split image (analysis,keyword and bookmark section)<br/>
			- Enhanced filter section<br/>
			</div>
	                <div id="change0" style="display:none; background:#ffffff; text-align:justify;font-size:10px; padding: 3px; "><div>
			PTK 1.0.4<br/>
                        - Enhanced data unit section<br/>
                        - Enhanced indexed search section<br/>
                        - Enhanced stat section<br/>
			<br/>
 			PTK 1.0.3<br/>
                        - Minor security issues fixed (thank to Roberto Sponchioni)<br/>
                        - Enhanced export file<br/>
                        - Enhanced add new evidence<br/>
			<br/>
			PTK 1.0.2<br/>
                        - Added recursive browsing during Gallery Analysis<br/>
                        - Fixed problem related tab management during Keyword Search<br/>
                        - Added stats during File Analysis<br/>
                        - Minor security issues fixed<br/>
                        - Enhanced export file<br/>
			<br/>
			PTK 1.0.1<br/>
                        - Added recursive browsing during File Analysis<br/>
                        - Security issues fixed (thank to Ikki and Red)<br/>
			<br/>
			PTK 1.0<br/>
			- Migration to TSK 3.0 (only tsk 3 and not earlier versions)<br/>
			- Migration to Volatility 1.3 Beta<br/>
			- Added Timezone Set on image adding process<br/>
			- Added new Filtering system in File Analysis section<br/>
			- Added function for enabling/disabling pagination during File Analysis<br/>
			- Added new feature for reports generation<br/>
			- Added Thumbnails gallery on Bookmark and Reports section<br/>
			- Added time end information on indexing process<br/>
			- Fixed problem related to file . and .. download<br/>
			- Added new 'PTK update' module<br/>
			- Added dashboard feature<br/>
			- Enhanced indexing process<br/>
			<br/>
			PTK Beta version<br/>
			- Update of setup procedure<br/>
			- ifind tool added to setup procedure<br/>
			- Update of image_browsing.php, gallery_browsing.php, get_folder_content.php and lib_commands.php: support to deleted files on NTFS<br/>
			- Added -r parameter to icat calls<br/>
			- Update of indexing scripts<br/>
			- Added indexing scripts for NTFS	                </div></div>
			<br/>
                	<input type="submit" name="submitted" value="Continue"/>
        	</form>
	<?
		if (file_exists('../config/force_update')){
			unlink('../config/force_update');
		}
	}
	?>
</div>
</body>
</html>
Return current item: Ptk-forensics