This repository was archived by the owner on Apr 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathinstall.php
More file actions
55 lines (49 loc) · 1.64 KB
/
install.php
File metadata and controls
55 lines (49 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* This file is part of Gitonomy.
*
* (c) Alexandre Salomé <alexandre.salome@gmail.com>
* (c) Julien DIDIER <genzo.wm@gmail.com>
*
* This source file is subject to the GPL license that is bundled
* with this source code in the file LICENSE.
*/
if ($_SERVER['REMOTE_ADDR'] !== '127.0.0.1' && $_SERVER['REMOTE_ADDR'] !== '::1') {
die;
}
require_once __DIR__.'/../app/bootstrap.php.cache';
use Symfony\Component\HttpFoundation\Request;
use Gitonomy\Component\Requirements\WebGitonomyRequirements;
$requirements = new WebGitonomyRequirements();
?>
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="bundles/gitonomydistribution/css/main.css" />
</head>
<body>
<div class="gitonomy-install">
<header>
<h1>Gitonomy <small>requirements</small></h1>
</header>
<section>
<?php
if ($requirements->isValid()) {
echo '<p>Everything is OK</p>';
echo '<p class="welcome-buttons"><a class="btn" href="app_dev.php/install">Continue »</a>.</p>';
} else {
echo '<p>Errors found:</p>';
echo '<ul>';
foreach ($requirements->getErrors() as $error) {
echo '<li>'.$error->getRequirement().'</li>';
}
echo '</ul>';
}
?>
</section>
<footer>
<p>Gitonomy is beautiful and you are beautiful, too.</p>
</footer>
</div>
</body>
</html>