mirror of
https://github.com/Cacti/cacti.git
synced 2026-12-05 14:44:14 +09:00
* Beginning of Install via AJAX calls * Added steps 3 & 4 to the installer system * Add background update procedure. Still needs more upgrade code adding, like upgrading the DB * Minor fixup during QA * Remove debug code from lib/functions.php * More QA fixes, add slight delay to index.php initialisation to see javascript warning (should be removed) * beta3 - added data source profiles * beta4 - fix some issues found in QA * beta5 - upgrade databsae routines added, error results screen styled * Add some colour to the thumb icons * QA fix to remove unneeded option * Fix for PHP 5.4 travis failure
84 lines
3.6 KiB
PHP
84 lines
3.6 KiB
PHP
<?php
|
|
/*
|
|
+-------------------------------------------------------------------------+
|
|
| Copyright (C) 2004-2018 The Cacti Group |
|
|
| |
|
|
| 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 2 |
|
|
| 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. |
|
|
+-------------------------------------------------------------------------+
|
|
| Cacti: The Complete RRDtool-based Graphing Solution |
|
|
+-------------------------------------------------------------------------+
|
|
| This code is designed, written, and maintained by the Cacti Group. See |
|
|
| about.php and/or the AUTHORS file for specific developer information. |
|
|
+-------------------------------------------------------------------------+
|
|
| http://www.cacti.net/ |
|
|
+-------------------------------------------------------------------------+
|
|
*/
|
|
error_reporting(E_ALL);
|
|
|
|
define('IN_CACTI_INSTALL', 1);
|
|
|
|
include_once('../include/auth.php');
|
|
include_once('../lib/api_data_source.php');
|
|
include_once('../lib/api_device.php');
|
|
include_once('../lib/utility.php');
|
|
include_once('../lib/import.php');
|
|
include_once('./functions.php');
|
|
|
|
set_default_action();
|
|
|
|
// database test
|
|
if (get_nfilter_request_var('action') == 'testdb') {
|
|
if (get_nfilter_request_var('location') == 'local') {
|
|
install_test_local_database_connection();
|
|
} else {
|
|
install_test_remote_database_connection();
|
|
}
|
|
|
|
exit;
|
|
}
|
|
|
|
include_once('../lib/installer.php');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<?php print html_common_header(__('Cacti Server v%s - Install/Version Change',CACTI_VERSION), 'modern');?>
|
|
<?php print get_md5_include_js('install/install.js'); ?>
|
|
<?php print get_md5_include_css('install/install.css'); ?>
|
|
</head>
|
|
<body>
|
|
<div class='cactiInstallTable'>
|
|
<div class='cactiInstallTableTitleRow'>
|
|
<div class='textHeaderDark'><strong><?php print __('Cacti Server v%s - Installation Wizard',CACTI_VERSION); ?></strong></div>
|
|
</div>
|
|
<div class='cactiInstallArea'>
|
|
<div class='cactiInstallAreaContent' id='installContent'>
|
|
<?php
|
|
print Installer::sectionTitle(__('Initializing'));
|
|
print Installer::sectionNormal(__('Please wait whilst the installation system for Cacti Version %s initialises. You must have javascript enabled for this to work.', CACTI_VERSION));
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class='cactiInstallButtonArea'>
|
|
<input class='installButton ui-button-disabled ui-state-disabled' id='buttonPrevious' type='button' value='Previous' style="display: none">
|
|
<input class='installButton ui-button-disabled ui-state-disabled' id='buttonNext' type='button' value='Next' style="display: none">
|
|
<input class='installButton ui-button-disabled ui-state-disabled' id='buttonTest' type='button' value='Test' style="display:none">
|
|
<input id='installData' type='hidden'>
|
|
</div>
|
|
<div id="installDebug"></div>
|
|
<div class='cactiInstallCopyrightArea'>Copyright © 2018 Cacti Group</div>
|
|
</div>
|
|
<?php
|
|
include_once(dirname(__FILE__) . '/../include/global_session.php');
|
|
?>
|
|
</body>
|
|
</html>
|