Skip to content

Commit

Permalink
Start...
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Del castillo committed Aug 29, 2014
1 parent 39c7c40 commit ddaa206
Show file tree
Hide file tree
Showing 1,693 changed files with 200,814 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
php_flag display_startup_errors on
php_flag display_errors on

<IfModule mod_rewrite.c>
Options -MultiViews

#Redirect 301 / http://stg.tendresmomentsmilka.fr/index.php

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</IfModule>
39 changes: 39 additions & 0 deletions _index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

$section = isset($_GET["section"]) ? $_GET["section"] : null;


$jsonFile = "../_dynamic/data/en.json";
$data = file_get_contents($jsonFile);

$data = json_decode($data, true);

$sections = array();
foreach($data as $name=>$d) {
$sections[] = $name;
}

foreach($sections as $s) {
echo '<a href="?section='.urlencode($s).'">'.$s.'</a> - ';
}


if($section) {
echo '<table>';
foreach($data[$section] as $r) {
echo '<tr>';
if(is_array($r)) {
foreach($r as $item) {
echo '<td>'.$item.'</td>';
}
}
echo '</tr>';

}
echo '</table>';
}




?>
15 changes: 15 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"require": {
"silex/silex": "~1.1",
"doctrine/dbal": "~2.2",
"symfony/validator": "~2.3",
"symfony/security": "~2.3",
"imagine/imagine": "0.4.*",
"neutron/silex-imagine-provider": "0.1.*",
"xamin/handlebars.php": "dev-master",
"kilte/silex-captcha": "1.0.0"
},
"autoload": {
"psr-0": {"Core": "src/"}
}
}
Loading

0 comments on commit ddaa206

Please sign in to comment.