aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/views/default/ecml/keywords/dailymotion.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/ecml/views/default/ecml/keywords/dailymotion.php')
-rw-r--r--mod/ecml/views/default/ecml/keywords/dailymotion.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/mod/ecml/views/default/ecml/keywords/dailymotion.php b/mod/ecml/views/default/ecml/keywords/dailymotion.php
deleted file mode 100644
index 4060d6117..000000000
--- a/mod/ecml/views/default/ecml/keywords/dailymotion.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * ECML Daily Motion support
- *
- * @package ECML
- */
-
-$base_url = 'http://www.dailymotion.com/video/';
-$src = (isset($vars['src'])) ? str_replace($base_url, '', $vars['src']) : FALSE;
-$width = (isset($vars['width'])) ? $vars['width'] : 480;
-$height = (isset($vars['height'])) ? $vars['height'] : 270;
-
-if ($src) {
- list($vid, $name) = explode('_', $src);
- $url = "http://www.dailymotion.com/swf/video/$vid";
-
- echo "
- <p>
- <object width=\"$width\" height=\"$height\">
- <param name=\"movie\" value=\"$url\"></param>
- <param name=\"allowFullScreen\" value=\"true\"></param>
- <param name=\"allowScriptAccess\" value=\"always\"></param>
- <embed type=\"application/x-shockwave-flash\" src=\"$url\" width=\"$width\" height=\"$height\" allowfullscreen=\"true\" allowscriptaccess=\"always\"></embed>
- </object>
- </p>
-";
-} \ No newline at end of file