From 68fc9e55e538e03f94509731ab41a0c8cf96710f Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Mon, 17 Apr 2023 12:12:22 +0300 Subject: setup a real server environment (apache DocumentRoot=/var/www/public) --- html/app/models/cms/Media_model.php | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 html/app/models/cms/Media_model.php (limited to 'html/app/models/cms/Media_model.php') diff --git a/html/app/models/cms/Media_model.php b/html/app/models/cms/Media_model.php deleted file mode 100644 index 6a4a681..0000000 --- a/html/app/models/cms/Media_model.php +++ /dev/null @@ -1,36 +0,0 @@ -, rights =>, path => ] - - // validate ticket - // ValidateAccess::for($ticket) - - // serve - // header("Content-type: type"); - // passthru('cat $media_path'); - - - return Registry::use('database')->query( - "SELECT * FROM pages - WHERE FullFriendlyUrl = :url AND IsActive = 1", - [ ':url' => $url ] - )->getFirst(); - } - -} - - - -// check: -// https://stackoverflow.com/questions/1353850/serve-image-with-php-script-vs-direct-loading-an-image \ No newline at end of file -- cgit v1.2.3