update: add network security chapter and dictionary entries. closes ticket 148 (by Aaron)
update: add HP and Juniper dictionary entries. closes tickets 145 and 165 (by Aaron)
update: combined two forms on object properties page into one. closes tickets 36 and 87 (by Aaron)
+ update: secret.php and local.php moved from inc/ to local/. closes ticket 39 (by Aaron)
update: resolved performance issue for systems with many L2 ports
update: enable username handling in Cisco switch connector
update: introduce icons for routers and SLB
should be sufficient:
0. BACKUP YOUR DATABASE
-1. Remove all existing files except inc/secret.php, gateways'
- configuration (in the gateways directory) and local mod (inc/local.php).
+1. Remove all existing files except local/secret.php, gateways'
+ configuration (in the gateways directory) and local mod (local/local.php).
2. Unpack the new tarball into the place.
3. Open the RackTables page in your browser. The software detects version
mismatch and displays a message telling to log in as admin to finish
*** Upgrading to 0.17.0 ***
+User-modifiable files have been moved to a dedicated directory to make future upgrades easier.
+cd to the RackTables directory and run these commands:
+
+1. mkdir local
+2. mv inc/secret*.php local/
+3. mv inc/local.php local/
+
This release is the first to take advantage of the foreign key support
provided by the InnoDB storage engine in MySQL. The installer and
upgrader scripts check for InnoDB support and cannot complete without it.
require_once 'inc/interface.php';
require_once 'inc/functions.php';
require_once 'inc/database.php';
-if (file_exists ('inc/secret.php'))
- require_once 'inc/secret.php';
+if (file_exists ('local/secret.php'))
+ require_once 'local/secret.php';
else
{
showError
(
- "Database connection parameters are read from inc/secret.php file, " .
+ "Database connection parameters are read from local/secret.php file, " .
"which cannot be found.\nYou probably need to complete the installation " .
"procedure by following <a href='${root}install.php'>this link</a>.",
__FILE__
require_once 'inc/triggers.php';
require_once 'inc/gateways.php';
require_once 'inc/snmp.php';
-if (file_exists ('inc/local.php'))
- require_once 'inc/local.php';
+if (file_exists ('local/local.php'))
+ require_once 'local/local.php';
// These will be filled in by fixContext()
$expl_tags = array();
// Check if the software is already installed.
function not_already_installed()
{
- @include ('inc/secret.php');
+ @include ('local/secret.php');
if (isset ($pdo_dsn))
{
echo 'Your configuration file exists and seems to hold necessary data already.<br>';
// credentials.
function init_config ()
{
- if (!is_writable ('inc/secret.php'))
+ if (!is_writable ('local/secret.php'))
{
- echo "The inc/secret.php file is not writable by web-server. Make sure it is.";
- echo "The following commands should suffice:<pre>touch inc/secret.php\nchmod 666 inc/secret.php</pre>";
+ echo "The local/secret.php file is not writable by web-server. Make sure it is.";
+ echo "The following commands should suffice:<pre>touch local/secret.php\nchmod 666 local/secret.php</pre>";
echo 'Fedora Linux with SELinux may require this file to be owned by specific user (apache) and/or executing "setenforce 0" for the time of installation. ';
echo 'SELinux may be turned back on with "setenforce 1" command.';
return FALSE;
return FALSE;
}
- $conf = fopen ('inc/secret.php', 'w+');
+ $conf = fopen ('local/secret.php', 'w+');
if ($conf === FALSE)
{
- echo "Error: failed to open inc/secret.php for writing";
+ echo "Error: failed to open local/secret.php for writing";
return FALSE;
}
fwrite ($conf, "<?php\n/* This file has been generated automatically by RackTables installer.\n");
function connect_to_db ()
{
- require ('inc/secret.php');
+ require ('local/secret.php');
global $dbxlink;
try
{
$relnotes = array
(
- '0.17.0' => "This release requires more options to secret.php. Add the " .
- "following into inc/secret.php:<br><br>" .
+ '0.17.0' => "This release requires changes to the configuration file. " .
+ "Move inc/secret.php to local/secret.php and add the following to the file:<br><br>" .
"\$user_auth_src = 'database';<br>\$require_valid_user = TRUE;<br><br>" .
"(and adjust to your needs, if necessary)<br>" .
"Another change is the addition of support for file uploads. Files are stored<br>" .
require_once 'inc/config.php';
require_once 'inc/database.php';
-if (file_exists ('inc/secret.php'))
- require_once 'inc/secret.php';
+if (file_exists ('local/secret.php'))
+ require_once 'local/secret.php';
else
- die ("Database connection parameters are read from inc/secret.php file, " .
- "which cannot be found.\nCopy provided inc/secret-sample.php to " .
- "inc/secret.php and modify to your setup.\n\nThen reload the page.");
+ die ("Database connection parameters are read from local/secret.php file, " .
+ "which cannot be found.\nCopy provided config/secret-sample.php to " .
+ "local/secret.php and modify to your setup.\n\nThen reload the page.");
try
{