From dcc69bcd1fb1008058c02078853a597d534707de Mon Sep 17 00:00:00 2001 From: vbracco Date: Thu, 23 Oct 2008 19:59:04 +0000 Subject: [PATCH] GoEar is working. Youtube is working. GTM-2 is set. --- admin/options.php | 1 + classes/functions.php | 3 ++- classes/gelato.class.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/options.php b/admin/options.php index 16a56ca..e1d09d1 100644 --- a/admin/options.php +++ b/admin/options.php @@ -156,6 +156,7 @@ if ($user->isAdmin()) { + diff --git a/classes/functions.php b/classes/functions.php index d9b0d7a..2b40f25 100644 --- a/classes/functions.php +++ b/classes/functions.php @@ -134,7 +134,8 @@ if(!defined('entry') || !entry) die('Not a valid page'); } function isYoutubeVideo($videoUrl) { - if (beginsWith($videoUrl, "http://youtube.com/watch?v=") || beginsWith($videoUrl, "http://www.youtube.com/watch?v=")) + $url = explode("?", $videoUrl); + if (beginsWith($url[0], "http://") && endsWith($url[0], ".youtube.com/watch")) return true; else return false; diff --git a/classes/gelato.class.php b/classes/gelato.class.php index 4055e0c..3380b5e 100644 --- a/classes/gelato.class.php +++ b/classes/gelato.class.php @@ -182,7 +182,7 @@ class gelato extends Conexion_Mysql { $playerUrl = $this->conf->urlGelato."/admin/scripts/player.swf?soundFile=".$url; return "\t\t\t\n"; } elseif (isGoEar($url)) { - return "\t\t\t\n"; + return "\t\t\t\n"; } elseif (isOdeo($url)) { return "\t\t\t\n"; } else {