summaryrefslogtreecommitdiff
path: root/public/app/models/cms/Media_model.php
diff options
context:
space:
mode:
authorGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-27 18:16:44 +0300
committerGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-27 18:16:44 +0300
commitb52e052bd3741c1ddf1bdaa43079ba5a9eafc8bd (patch)
treeebf54306edc20705544ea4d10cb12b34a66c05cc /public/app/models/cms/Media_model.php
parent187335950742b4c7ec011ede6e6d1ae86662cb1f (diff)
downloadclassroom-b52e052bd3741c1ddf1bdaa43079ba5a9eafc8bd.tar.gz
classroom-b52e052bd3741c1ddf1bdaa43079ba5a9eafc8bd.tar.bz2
classroom-b52e052bd3741c1ddf1bdaa43079ba5a9eafc8bd.zip
setting blueprint in action
Diffstat (limited to 'public/app/models/cms/Media_model.php')
-rw-r--r--public/app/models/cms/Media_model.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/public/app/models/cms/Media_model.php b/public/app/models/cms/Media_model.php
deleted file mode 100644
index 6a4a681..0000000
--- a/public/app/models/cms/Media_model.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-namespace app\models\cms;
-
-use \Registry;
-
-
-class Media_model
-{
- public static function serve($type, $id, $ticket)
- {
-
- // get media data
- // [ type =>, 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