Skip to content
Permalink
Browse files

[+]: demo for "composer"

  • Loading branch information...
voku committed Nov 5, 2014
1 parent f1f6b63 commit 001292b4b60c12d8d4532d9213703a8be9280c5d
Showing with 5,364 additions and 5,341 deletions.
  1. +22 −0 app/start.php
  2. +2 −1 composer.json
  3. +3 −3 web/css-min/app.css
  4. +5,063 −5,063 web/css/app.css
  5. +274 −274 web/scss/_base.scss
@@ -4,6 +4,28 @@
use Slim\Views\TwigExtension;
use Slim\Middleware;
$purifier = new HTMLPurifier(HTMLPurifier_Config::createDefault());
function clearRequest(&$requestVariable, HTMLPurifier $purifier)
{
foreach ($requestVariable as $key => $value) {
if (is_array($requestVariable[$key])) {
clearRequest($requestVariable[$key], $purifier);
} else {
$requestVariable[$key] = $purifier->purify($value);
}
}
}
clearRequest($_POST, $purifier);
clearRequest($_GET, $purifier);
unset($purifier);
// testing
//var_dump($_GET);
//exit();
require ROOT . '/app/dbloader.php';
/*
@@ -16,7 +16,8 @@
"twig/twig": "1.*",
"twig/extensions": "*",
"gabordemooij/redbean": "*",
"raveren/kint": "dev-master"
"raveren/kint": "dev-master",
"ezyang/htmlpurifier": "dev-master"
},
"config": {
"preferred-install": "dist"

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 001292b

Please sign in to comment.
You can’t perform that action at this time.