diff --git a/config.php-sample b/config.php-sample
index 0193a0b..030e7f9 100644
--- a/config.php-sample
+++ b/config.php-sample
@@ -7,9 +7,6 @@ Copyright (C) 2011-2023 Thomas Hooge
SPDX-License-Identifier: GPL-3.0-or-later
*****************************************************************************/
-// version
-$config_version = 'v0.7';
-
// db connection
$config_mysql_host = 'localhost';
$config_mysql_username = 'ipreg';
@@ -22,7 +19,6 @@ $config_color_unused = 'ffffff';
$config_color_dynamic = 'e0e0e0';
// language
-$config_lang = array('de', 'en');
$config_lang_default = 'en';
?>
diff --git a/install/install.txt b/install/install.txt
index d82d5bb..aa8ac39 100644
--- a/install/install.txt
+++ b/install/install.txt
@@ -2,8 +2,8 @@ IP Reg Installation
1. Install requirements
IP Reg version 0.6 and up depends on smarty template engine.
-In Debian install ist with: "apt-get install smarty3".
-The GHP-GD module is also required: "apt-get install php-gd".
+In Debian install it with: "apt-get install smarty3".
+The PHP-GD module is also required: "apt-get install php-gd".
2. Create database
@@ -28,17 +28,21 @@ Optional import some sample data
mysql ipreg < mysql_sample.sql
-4. Edit config file
-Open config.php in a text editor and fill in your database details.
+4. Upload files
+Upload all files and directories (except the install directory) to your
+webserver.
-5. Upload files
-Upload all files and directory's (except the install directory) to your
-webserver.
+5. Create and edit config file
+Rename sample configfile config.php-sample:
+ mv config.php-sample config.php
+
+Open config.php in a text editor and fill in your database details.
6. Check file access rights for security
-Only directory tpl_c should be writeble by webserver
+Only directory tpl_c should be writeble by webserver.
+Configfile should be readable by webserver but not writeable.
chmod 640 config.php
chgrp www-data config.php
diff --git a/lang/de.php b/lang/de.php
index 45ae09c..5ee409e 100644
--- a/lang/de.php
+++ b/lang/de.php
@@ -207,12 +207,14 @@ $lang = array(
'lang_about_license_ext' => 'Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5)
Copyright (C) 2011-2023 Thomas Hooge
This program 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 3 of the License, or (at your option) any later version.
This program 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 this program. If not, see http://www.gnu.org/licenses/.',
'lang_about_changelog' => 'Changelog (major changes only)',
+ 'lang_about_changelog_v08' => 'v0.8 (feb 2023)',
+ 'lang_about_changelog_v08_ext' => '- Some small improvements and bugfixing
- Code simplification as preparation for big refactoring',
'lang_about_changelog_v07' => 'v0.7 (oct 2018)',
'lang_about_changelog_v07_ext' => '- Added support for PHP7, switched to mysqli',
'lang_about_changelog_v06' => 'v0.6 (may 2011)',
- 'lang_about_changelog_v06_ext' => '- Moved towards smarty template engine
- language support finalized
- added german language
- some small bug fixes',
+ 'lang_about_changelog_v06_ext' => '- Moved towards smarty template engine
- language support finalized
- added german language
- some small bug fixes',
'lang_about_changelog_v05' => 'v0.5 (dec 2009)',
- 'lang_about_changelog_v05_ext' => '- Complete code rewrite
- Input sanitation
- Background image
- Added multiple counters
- HTML is now 100% W3C valid
More user options',
+ 'lang_about_changelog_v05_ext' => '- Complete code rewrite
- Input sanitation
- Background image
- Added multiple counters
- HTML is now 100% W3C valid
- More user options',
'lang_about_changelog_v04' => 'v0.4 (jun 2008)',
'lang_about_changelog_v04_ext' => '- SQL vulnerability fixed
- PHP-generated images in subnet overview',
'lang_about_changelog_v03' => 'v0.3 (dec 2007)',
diff --git a/lang/en.php b/lang/en.php
index 754aca3..fb11d81 100644
--- a/lang/en.php
+++ b/lang/en.php
@@ -207,12 +207,14 @@ $lang = array(
'lang_about_license_ext' => 'Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5)
Copyright (C) 2011-2023 Thomas Hooge
This program 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 3 of the License, or (at your option) any later version.
This program 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 this program. If not, see http://www.gnu.org/licenses/.',
'lang_about_changelog' => 'Changelog (major changes only)',
+ 'lang_about_changelog_v08' => 'v0.8 (feb 2023)',
+ 'lang_about_changelog_v08_ext' => '- Some small improvements and bugfixing
- Code simplification as preparation for big refactoring',
'lang_about_changelog_v07' => 'v0.7 (oct 2018)',
'lang_about_changelog_v07_ext' => '- Added support for PHP7, switched to mysqli',
'lang_about_changelog_v06' => 'v0.6 (may 2011)',
- 'lang_about_changelog_v06_ext' => '- Moved towards smarty template engine
- language support finalized
- added german language
- some small bug fixes',
+ 'lang_about_changelog_v06_ext' => '- Moved towards smarty template engine
- language support finalized
- added german language
- some small bug fixes',
'lang_about_changelog_v05' => 'v0.5 (dec 2009)',
- 'lang_about_changelog_v05_ext' => '- Complete code rewrite
- Input sanitation
- Background image
- Added multiple counters
- HTML is now 100% W3C valid
More user options',
+ 'lang_about_changelog_v05_ext' => '- Complete code rewrite
- Input sanitation
- Background image
- Added multiple counters
- HTML is now 100% W3C valid
- More user options',
'lang_about_changelog_v04' => 'v0.4 (jun 2008)',
'lang_about_changelog_v04_ext' => '- SQL vulnerability fixed
- PHP-generated images in subnet overview',
'lang_about_changelog_v03' => 'v0.3 (dec 2007)',
diff --git a/lib.php b/lib.php
index 9fbe207..b294f1a 100644
--- a/lib.php
+++ b/lib.php
@@ -7,6 +7,12 @@ Copyright (C) 2011-2023 Thomas Hooge
SPDX-License-Identifier: GPL-3.0-or-later
*****************************************************************************/
+// global version string
+$config_version = 'v0.8';
+
+// available languages
+$config_lang = array('de', 'en');
+
include("lib/functions.php");
require("lib/db.class.php");
diff --git a/tpl/about.tpl b/tpl/about.tpl
index 7c48343..993051a 100644
--- a/tpl/about.tpl
+++ b/tpl/about.tpl
@@ -83,6 +83,14 @@
+