From 351a95b6589d8d5d828539a4ddcb95d41d5351f9 Mon Sep 17 00:00:00 2001 From: Ruben Date: Tue, 20 Sep 2016 10:27:36 +0100 Subject: [PATCH] Faces3 presentation mode and /sysinfo endpoint --- www/faces3.php | 254 ++++++++++++++++++++++++++----------------------- www/index.php | 10 +- 2 files changed, 146 insertions(+), 118 deletions(-) diff --git a/www/faces3.php b/www/faces3.php index 068c428..46445cd 100644 --- a/www/faces3.php +++ b/www/faces3.php @@ -44,50 +44,53 @@ EOSNIPPET; Emotion Hero - + >

eye brows

"; diff --git a/www/index.php b/www/index.php index 4d9a90c..0209527 100644 --- a/www/index.php +++ b/www/index.php @@ -16,6 +16,11 @@ $app = new Silex\Application([ error_reporting(E_ALL); ini_set('display_errors', 1); + +if(ini_get('max_file_uploads') < 50) { + throw new Exception("php directive 'max_file_uploads' should be >= 50"); +} + /* * JWT setup */ @@ -75,7 +80,10 @@ $app->register(new Silex\Provider\SecurityServiceProvider()); $app->register(new Silex\Provider\SecurityJWTServiceProvider()); - +$app->get('/sysinfo', function(Request $request) use ($app){ + phpinfo(); + return new Response(200); +}); /** * Get token for user