You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,15 @@ network attributes such as DNS names, IP addresses, Subnets, MAC addresses
6
6
just to name a few. Through the use of plugins you can add extended it's
7
7
functionality.
8
8
9
+
---
10
+
**Recent Changes**
11
+
12
+
It's been too many years since the last official version! This update is to fix a few incompatibilities with newer PHP, MYSQL and OS versions. Fundamentally not much has changed. For those interested I have been playing with a new [ona-core project](https://github.com/opennetadmin/ona-core) that is the beginnings of a true RESTful API interface. These changes should allow ONA to continue working on newer systems while the new core, and GUI is completed.
13
+
14
+
Thanks for your interest in OpenNetAdmin!
15
+
16
+
---
17
+
9
18
Each host or subnet can be tracked via a centralized AJAX enabled web interface
10
19
that can help reduce errors. A full [CLI interface](https://github.com/opennetadmin/dcm) is available
11
20
as well to use for scripting and bulk work. We hope to provide a useful
$upgrade = promptUser("Perform the upgrade? ", 'N');
208
+
$upgrade = promptUser("Perform the upgrade? ", 'y/N');
209
209
$text = '';
210
210
} else {
211
211
$text .= <<<EOL
212
-
There was an error determining database context versions. Please correct them before proceeding.<br><br>Check that the content of your database configuration file:<br> '<i>{$dbconffile}</i>'<br>is accurate and that the databases themselves are configured properly.<br><br>{$err_txt}</div><br>
212
+
There was an error determining database context versions. Please correct them before proceeding.\n\nCheck that the content of your database configuration file '{$dbconffile}' is accurate and that the databases themselves are configured properly.\n\n{$err_txt}\n
213
213
EOL;
214
214
}
215
215
@@ -219,7 +219,7 @@ function upgrade() {
219
219
$dbtype = 'mysqli'; $adotype = $dbtype;
220
220
221
221
// If they have selected to keep the tables then remove the run_install file
222
-
if ($upgrade == 'Y') {
222
+
if ($upgrade == 'Y'or$upgrade == 'y') {
223
223
224
224
// Loop through each context and upgrade the Databases within
$text .= "[{$cname}/{$cdbs['db_host']}] Upgrading tables within database '{$cdbs['db_database']}'.\n";
259
260
printmsg("INFO => [{$cname}/{$cdbs['db_host']}] Upgrading tables within database: {$cdbs['db_database']}",0);
260
261
} else {
261
262
$status++;
262
-
$text .= "<img src=\"{$images}/silk/exclamation.png\" border=\"0\" /> There was an error upgrading tables.<br><span style='font-size: xx-small;'>".$db->ErrorMsg()."</span><br>";
263
+
$text .= "There was an error upgrading tables. ERROR: ".$db->ErrorMsg()."\n";
263
264
printmsg("ERROR => There was an error processing tables: ".$db->ErrorMsg(),0);
264
265
break;
265
266
}
@@ -295,7 +296,6 @@ function upgrade() {
295
296
// Execute the SQL on the database
296
297
if ($schema->ExecuteSchema( $sql ) == 2) {
297
298
$text .= "[{$cname}/{$cdbs['db_host']}] Processed XML update file.\n";
298
-
printmsg("INFO => [{$cname}/{$cdbs['db_host']}] Processed XML update file.",0);
299
299
300
300
// update index info in the DB
301
301
$text .= "[{$cname}/{$cdbs['db_host']}] Upgraded from index {$upgrade_index} to {$new_index}.\n";
@@ -311,7 +311,7 @@ function upgrade() {
311
311
$upgrade_index++;
312
312
} else {
313
313
$status++;
314
-
$text .= "[{$cname}/{$cdbs['db_host']}] Failed to process XML update file.<br><span style='font-size: xx-small;'>".$db->ErrorMsg()."</span>\n";
314
+
$text .= "[{$cname}/{$cdbs['db_host']}] Failed to process XML update file.\n".$db->ErrorMsg()."\n";
315
315
printmsg("ERROR => [{$cname}/{$cdbs['db_host']}] Failed to process XML update file. ".$db->ErrorMsg(),0);
0 commit comments