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