Initial commit with basic structure
This commit is contained in:
5
web/css/hint.min.css
vendored
Normal file
5
web/css/hint.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
39
web/css/main.css
Normal file
39
web/css/main.css
Normal file
@@ -0,0 +1,39 @@
|
||||
html { height: 100%;}
|
||||
|
||||
body {
|
||||
font: 14px/1.8em 'Open Sans', Helvetica, Arial, Helvetica, sans-serif;
|
||||
color: #444;
|
||||
background #fff;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
border: thick solid;
|
||||
}
|
||||
|
||||
td {
|
||||
vertical-align: top;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td, th {
|
||||
border: solid 1px #222;
|
||||
padding: 0.25em 0.5em;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.red {background-color:rgba(255,0,0,0.25);}
|
||||
.blue {background-color:rgba(0,0,255,0.25);}
|
||||
.green {background-color:rgba(0,255,0,0.25);}
|
||||
|
||||
thead {
|
||||
border: thick solid;
|
||||
}
|
||||
13
web/index.php
Normal file
13
web/index.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
ini_set('display_errors', 0);
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$app = require __DIR__.'/../src/app.php';
|
||||
require __DIR__.'/../config/prod.php';
|
||||
require __DIR__.'/../src/controllers.php';
|
||||
|
||||
$app['debug'] = true;
|
||||
|
||||
$app->run();
|
||||
22
web/index_dev.php
Normal file
22
web/index_dev.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\Debug\Debug;
|
||||
|
||||
// This check prevents access to debug front controllers that are deployed by accident to production servers.
|
||||
// Feel free to remove this, extend it, or make something more sophisticated.
|
||||
if (isset($_SERVER['HTTP_CLIENT_IP'])
|
||||
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|
||||
|| !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1'))
|
||||
) {
|
||||
header('HTTP/1.0 403 Forbidden');
|
||||
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
|
||||
}
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
Debug::enable();
|
||||
|
||||
$app = require __DIR__.'/../src/app.php';
|
||||
require __DIR__.'/../config/dev.php';
|
||||
require __DIR__.'/../src/controllers.php';
|
||||
$app->run();
|
||||
Reference in New Issue
Block a user