summaryrefslogtreecommitdiff
path: root/html/app/models/cms
diff options
context:
space:
mode:
Diffstat (limited to 'html/app/models/cms')
-rw-r--r--html/app/models/cms/Media_model.php36
-rw-r--r--html/app/models/cms/Page_model.php18
2 files changed, 0 insertions, 54 deletions
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 @@
-<?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
diff --git a/html/app/models/cms/Page_model.php b/html/app/models/cms/Page_model.php
deleted file mode 100644
index fda5fb1..0000000
--- a/html/app/models/cms/Page_model.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-namespace app\models\cms;
-
-use \Registry;
-
-class Page_model
-{
- public static function fromUrl($url)
- {
- return Registry::use('database')->query(
- "SELECT * FROM pages
- WHERE FullFriendlyUrl = :url AND IsActive = 1",
- [ ':url' => $url ]
- )->getFirst();
- }
-
-} \ No newline at end of file