"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "install/index.php" between
opendocman-1.3.8-release.tar.gz and opendocman-1.4.0-release.tar.gz

About: OpenDocman is a document management system (DMS) designed to comply with ISO 17025 and OIE standard for document management (using PHP, MySQL).

index.php  (opendocman-1.3.8-release):index.php  (opendocman-1.4.0-release)
skipping to change at line 45 skipping to change at line 45
<p>OpenDocMan requires that your web server is running PHP. Your server does not have PHP installed, or PHP is <p>OpenDocMan requires that your web server is running PHP. Your server does not have PHP installed, or PHP is
turned off.</p> turned off.</p>
</body> </body>
</html> </html>
<?php <?php
exit; exit;
} }
session_start(); session_start();
define('REQUIRED_DB_VERSION', '1.3.6'); define('REQUIRED_DB_VERSION', '1.4.0');
if (file_exists('../config.php') && (!isset($_SESSION['datadir']))) { if (file_exists('../config.php') && (!isset($_SESSION['datadir']))) {
include('../odm-load.php'); include('../odm-load.php');
include_once('../version.php'); include_once('../version.php');
$db_version = Settings::get_db_version($GLOBALS['CONFIG']['db_prefix']); $db_version = Settings::get_db_version($GLOBALS['CONFIG']['db_prefix']);
if ($db_version == REQUIRED_DB_VERSION) { if ($db_version == REQUIRED_DB_VERSION) {
echo "<p>Looks like you don't need to update anything. If you need to re -install, please delete your config.php file first. You may then <a href='./'>tr y again</a>.</p>"; echo "<p>Looks like you don't need to update anything. If you need to re -install, please delete your config.php file first. You may then <a href='./'>tr y again</a>.</p>";
exit; exit;
} }
} }
skipping to change at line 123 skipping to change at line 123
do_update_124(); do_update_124();
do_update_1252(); do_update_1252();
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 11rc1 and is upgrading // User has version 11rc1 and is upgrading
case "update_11rc1": case "update_11rc1":
do_update_11rc1(); do_update_11rc1();
do_update_11rc2(); do_update_11rc2();
do_update_11(); do_update_11();
do_update_12rc1(); do_update_12rc1();
do_update_12p1(); do_update_12p1();
do_update_12p3(); do_update_12p3();
do_update_124(); do_update_124();
do_update_1252(); do_update_1252();
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 11rc2 and is upgrading // User has version 11rc2 and is upgrading
case "update_11rc2": case "update_11rc2":
do_update_11rc2(); do_update_11rc2();
do_update_11(); do_update_11();
do_update_12rc1(); do_update_12rc1();
do_update_12p1(); do_update_12p1();
do_update_12p3(); do_update_12p3();
do_update_124(); do_update_124();
do_update_1252(); do_update_1252();
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 11 and is upgrading // User has version 11 and is upgrading
case "update_11": case "update_11":
do_update_11(); do_update_11();
do_update_12rc1(); do_update_12rc1();
do_update_12p1(); do_update_12p1();
do_update_12p3(); do_update_12p3();
do_update_124(); do_update_124();
do_update_1252(); do_update_1252();
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 12rc1 and is upgrading // User has version 12rc1 and is upgrading
case "update_12rc1": case "update_12rc1":
do_update_12rc1(); do_update_12rc1();
do_update_12p1(); do_update_12p1();
do_update_12p3(); do_update_12p3();
do_update_124(); do_update_124();
do_update_1252(); do_update_1252();
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 12p1 and is upgrading // User has version 12p1 and is upgrading
case "update_12p1": case "update_12p1":
do_update_12p1(); do_update_12p1();
do_update_12p3(); do_update_12p3();
do_update_124(); do_update_124();
do_update_1252(); do_update_1252();
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 12p3 and is upgrading // User has version 12p3 and is upgrading
case "update_12p3": case "update_12p3":
do_update_12p3(); do_update_12p3();
do_update_124(); do_update_124();
do_update_1252(); do_update_1252();
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 124 and is upgrading // User has version 124 and is upgrading
case "update_124": case "update_124":
do_update_124(); do_update_124();
do_update_1252(); do_update_1252();
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 1252 and is upgrading // User has version 1252 and is upgrading
case "update_1252": case "update_1252":
do_update_1252(); do_update_1252();
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 1256 and is upgrading // User has version 1256 and is upgrading
case "update_1256": case "update_1256":
do_update_1256(); do_update_1256();
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 1257 or 126beta and is upgrading // User has version 1257 or 126beta and is upgrading
case "update_1257": case "update_1257":
do_update_1257(); do_update_1257();
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 1261 and is upgrading // User has version 1261 and is upgrading
case "update_1261": case "update_1261":
do_update_1261(); do_update_1261();
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 1262 and is upgrading // User has version 1262 and is upgrading
case "update_1262": case "update_1262":
do_update_1262(); do_update_1262();
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has version 1262 and is upgrading // User has version 1262 and is upgrading
case "update_1263": case "update_1263":
do_update_1263(); do_update_1263();
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has DB version 128 and is upgrading // User has DB version 128 and is upgrading
case "update_128": case "update_128":
do_update_128(); do_update_128();
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has DB version 129 and is upgrading // User has DB version 129 and is upgrading
case "update_129": case "update_129":
do_update_129(); do_update_129();
do_update_130(); do_update_130();
do_update_136();
break; break;
// User has DB version 130 and is upgrading // User has DB version 130 and is upgrading
case "update_130": case "update_130":
do_update_130(); do_update_130();
do_update_136();
break;
// User has DB version 136 and is upgrading
case "update_136":
do_update_136();
break; break;
default: default:
print_intro(); print_intro();
break; break;
} }
function do_install() function do_install()
{ {
global $pdo; global $pdo;
skipping to change at line 492 skipping to change at line 514
include("upgrade_129.php"); include("upgrade_129.php");
echo 'All Done with update! Click <a href="../index.php">HERE</a> to log in<br>'; echo 'All Done with update! Click <a href="../index.php">HERE</a> to log in<br>';
} }
function do_update_130() function do_update_130()
{ {
echo 'Updating from DB versions 1.3.0...<br />'; echo 'Updating from DB versions 1.3.0...<br />';
include("../config.php"); include("../config.php");
include("upgrade_130.php"); include("upgrade_130.php");
echo 'All Done with update! Click <a href="../index.php">HERE</a> to log in<br>'; echo 'All Done with update! Click <a href="../index.php">HERE</a> to log in<br>';
} }
function do_update_136()
{
echo 'Updating from DB versions 1.3.6...<br />';
include("../config.php");
include("upgrade_136.php");
echo 'All Done with update! Click <a href="../index.php">HERE</a> to log
in<br>';
}
function get_db_version($db_prefix) function get_db_version($db_prefix)
{ {
return Settings::get_db_version(); return Settings::get_db_version();
global $pdo; global $pdo;
$prefix = !empty($_SESSION['db_prefix']) ? $_SESSION['db_prefix'] : $GLO BALS['CONFIG']['db_prefix']; $prefix = !empty($_SESSION['db_prefix']) ? $_SESSION['db_prefix'] : $GLO BALS['CONFIG']['db_prefix'];
$query1 = "SHOW TABLES LIKE :table"; $query1 = "SHOW TABLES LIKE :table";
$stmt = $pdo->prepare($query1); $stmt = $pdo->prepare($query1);
$stmt->execute(array(':table' => $prefix . 'odmsys')); $stmt->execute(array(':table' => $prefix . 'odmsys'));
skipping to change at line 570 skipping to change at line 599
<td>Your current Database schema version: <strong><?php echo(htmlent ities($db_version)); <td>Your current Database schema version: <strong><?php echo(htmlent ities($db_version));
?></strong><br/><br/> ?></strong><br/><br/>
Required Database schema version: <?php echo REQUIRED_DB_VERSION ; Required Database schema version: <?php echo REQUIRED_DB_VERSION ;
?><br/><br /> ?><br/><br />
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Upgrade your current database from a previous version<br/><br/>< /td> <td>Upgrade your current database from a previous version<br/><br/>< /td>
</tr> </tr>
<tr> <tr>
<td><a href="index.php?op=update_136">Upgrade from DB schema version
1.3.6</a><br><br></td>
</tr>
<tr>
<td><a href="index.php?op=update_130">Upgrade from DB schema version 1.3.0</a><br><br></td> <td><a href="index.php?op=update_130">Upgrade from DB schema version 1.3.0</a><br><br></td>
</tr> </tr>
<tr> <tr>
<td><a href="index.php?op=update_129">Upgrade from DB schema version 1.2.9</a><br><br></td> <td><a href="index.php?op=update_129">Upgrade from DB schema version 1.2.9</a><br><br></td>
</tr> </tr>
<tr> <tr>
<td><a href="index.php?op=update_128">Upgrade from DB schema version 1.2.8</a><br><br></td> <td><a href="index.php?op=update_128">Upgrade from DB schema version 1.2.8</a><br><br></td>
</tr> </tr>
<tr> <tr>
<td><a href="index.php?op=update_1263">Upgrade from DB schema versio n 1.2.6.3</a><br><br></td> <td><a href="index.php?op=update_1263">Upgrade from DB schema versio n 1.2.6.3</a><br><br></td>
 End of changes. 20 change blocks. 
1 lines changed or deleted 35 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)