From dce00906ec5c272018e603f658dde31ae200ec32 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 6 Jun 2020 11:52:34 +0200 Subject: [PATCH] added URI fallback. This enables pictshare to be run directly from "php -S localhost:8000" --- index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.php b/index.php index cd3fc05..6c978be 100644 --- a/index.php +++ b/index.php @@ -18,4 +18,6 @@ require_once(ROOT . DS . 'content-controllers' . DS. 'video'. DS . 'video.contro //send the URL to the architect. It'll know what to do $url = $_GET['url']; +if(!$url) + $url = ltrim($_SERVER['REQUEST_URI'],'/'); architect($url); \ No newline at end of file