From d4f1f6400fe6749f3773d6b317a5f19bb908b710 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 18 Dec 2008 00:16:03 +0000 Subject: Polar Rose facial recognition module. Currently in a non-working state because their server is not RFC2109 compliant. Filing a bug. --- modules/polar_rose/helpers/polar_rose_block.php | 50 ++++++++++++++++++++++ .../polar_rose/helpers/polar_rose_installer.php | 32 ++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 modules/polar_rose/helpers/polar_rose_block.php create mode 100644 modules/polar_rose/helpers/polar_rose_installer.php (limited to 'modules/polar_rose/helpers') diff --git a/modules/polar_rose/helpers/polar_rose_block.php b/modules/polar_rose/helpers/polar_rose_block.php new file mode 100644 index 00000000..c1515d43 --- /dev/null +++ b/modules/polar_rose/helpers/polar_rose_block.php @@ -0,0 +1,50 @@ +item()) { + $url = media_rss::item_feed($theme->item()); + } else if ($theme->tag()) { + $url = media_rss::tag_feed($theme->tag()); + } + + // Polar Rose doesn't understand relative URLs. Hack around that until they fix it. + $url = url::abs_site(substr($url, strpos($url, "index.php") + 10)); + + return "" . + ""; + } + } + + public static function page_bottom($theme) { + return "
"; + } +} diff --git a/modules/polar_rose/helpers/polar_rose_installer.php b/modules/polar_rose/helpers/polar_rose_installer.php new file mode 100644 index 00000000..8e565a61 --- /dev/null +++ b/modules/polar_rose/helpers/polar_rose_installer.php @@ -0,0 +1,32 @@ +