1<?php
2// add prefix - install or migrate
3$title_prefix = @$_GET['subnetId']=="migrate" ? "migration" : "installation";
4$text_prefix  = @$_GET['subnetId']=="migrate" ? "migrate" : "install";
5?>
6
7<div class="widget-dash col-xs-12 col-md-8 col-md-offset-2">
8<div class="inner install" style="min-height:auto;">
9	<h4>Welcome to phpipam <?php print $title_prefix; ?></h4>
10
11	<div class="hContent">
12	<div style="padding:10px;">
13
14		<div class="text-mute2d" style="margin:10px;">
15			We are glad you decided to <?php print $text_prefix; ?> phpipam. Before you can start process please:<br><br>
16			<ul>
17				<li>Edit settings in config.php file</li>
18				<li>Create MySQL database for phpipam, you can do this three ways (select below)</li>
19			</ul>
20			<br>
21			Before you start <?php print $title_prefix; ?> please visit phpipam installation website <strong><a href="https://phpipam.net/documents/installation/">https://phpipam.net/documents/installation/</a></strong> to get all documentation and to make sure all requirements for <?php print $title_prefix; ?> are met.
22			<br><br>
23
24			<?php
25			// migrate
26			if($_GET['subnetId']=="migrate") { ?>
27				<hr>
28				<div class="alert alert-warning">
29				You selected option to migrate from old database.<br>Please put SQL dump file from old phpipam installation to db/MIGRATE.sql file !
30				</div>
31			<?php } ?>
32
33			<hr>
34			<br>Please select preferred database <?php print $title_prefix; ?> type:<br><br>
35			<hr>
36		</div>
37
38		<ol style="margin-top:20px;">
39		<!-- automatic -->
40		<li>
41			<a href="<?php print create_link("install","install_automatic", $_GET['subnetId']); ?>" class="btn btn-sm btn-default">Automatic database <?php print $title_prefix; ?></a>
42			<br>
43			<div class="text-muted">phpipam installer will create database for you automatically.</div>
44			<br>
45		</li>
46
47		<!-- Mysql inport -->
48		<li>
49			<a href="<?php print create_link("install","install_mysqlimport", $_GET['subnetId']); ?>" class="btn btn-sm btn-default">MySQL import instructions</a>
50			<br>
51			<div class="text-muted">Install DB files with mysqlimport tool.</div>
52			<br>
53		</li>
54
55		<!-- Manual install -->
56		<li>
57			<a href="<?php print create_link("install","install_manual", $_GET['subnetId']); ?>" class="btn btn-sm btn-default">Manual database <?php print $title_prefix; ?></a>
58			<br>
59			<div class="text-muted">Install database manually with SQL queries.</div>
60			<br>
61		</li>
62
63		</ol>
64
65	</div>
66	</div>
67</div>
68</div>