diff --git a/admin/css/style.css b/admin/css/style.css index 3f04841..e1082f4 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -18,7 +18,7 @@ h1, h2, h3, h4, h5, h6, h7{ font-weight:normal;} a, a:link, a:visited, a:active{ color:#000000; text-decoration:none; outline:none;} a:hover{ text-decoration:underline; color:#000000; outline:none;} -.inslnl { text-decoration:underline; } +.inslnl a{ text-decoration:underline; } acronym{ border-bottom: 1px dotted #666; cursor:help;} fieldset{ border:none; margin:0; padding:0;} @@ -118,11 +118,12 @@ a.linkFrm:hover{ text-decoration:underline; color:#297aab; outline:none;} .exito { width:80%; background: #F4FBF5 url('../../images/information.png') 15px center no-repeat; border-top: 2px solid #006600; border-bottom: 2px solid #006600; margin: 0 auto; padding: 5px 20px 5px 45px; } .information { width:80%; background: #FFF6BF url('../../images/icon_info.gif') 15px center no-repeat; border-top: 2px solid #FFD324; border-bottom: 2px solid #FFD324; margin: 0 auto;padding: 5px 20px 5px 45px; } + #update { text-align:center; font-size: 10px; color: #000; } - #update a { color: #000; text-decoration:none; } - #update a:visited { color: #000; text-decoration:none; } - #update a:active { color: #000; text-decoration:none; } - #update a:hover { color: #000; text-decoration:underline; } + #update a { color: #000; text-decoration:underline; } + #update a:visited { color: #000; text-decoration:underline; } + #update a:active { color: #000; text-decoration:underline; } + #update a:hover { color: #F00; text-decoration:underline; } /* Pagination */ diff --git a/admin/index.php b/admin/index.php index dd66070..b56a058 100644 --- a/admin/index.php +++ b/admin/index.php @@ -68,11 +68,11 @@ if ($user->isAdmin()) { $_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name; } } - - if (get_magic_quotes_gpc()) { - $_POST["title"] = stripslashes($_POST["title"]); - $_POST["description"] = stripslashes($_POST["description"]); - } + + if (!get_magic_quotes_gpc()) { + $_POST["title"] = addslashes($_POST["title"]); + $_POST["description"] = addslashes($_POST["description"]); + } $_POST["title"] = strip_tags($_POST["title"]); $_POST["description"] = strip_tags($_POST["description"]); @@ -163,7 +163,7 @@ if ($user->isAdmin()) { $present = version(); $lastest = _file_get_contents("http://www.gelatocms.com/vgel.txt"); if ($present < $lastest) { - echo "
A new gelato version has been released and is ready for download.
"; + echo "
A new gelato version has been released and is ready for download.

"; } if (isset($_GET["deleted"])) { diff --git a/admin/scripts/tools.js b/admin/scripts/tools.js index b8feb2d..a6b4e40 100644 --- a/admin/scripts/tools.js +++ b/admin/scripts/tools.js @@ -1,3 +1,36 @@ -// \ No newline at end of file diff --git a/admin/settings.php b/admin/settings.php index 4532ac4..01a6d49 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -108,7 +108,7 @@ if ($user->isAdmin()) { template) ? "selected" : ""; + $active = ($conf->template==$theme) ? "selected" : ""; echo "\n"; } diff --git a/admin/user.php b/admin/user.php index c2262c6..45d7f63 100644 --- a/admin/user.php +++ b/admin/user.php @@ -57,40 +57,7 @@ if ($user->isAdmin()) { - + diff --git a/classes/functions.php b/classes/functions.php index eb052fa..82c0485 100644 --- a/classes/functions.php +++ b/classes/functions.php @@ -49,6 +49,13 @@ } } + function getGoEarCode($songUrl) { + $pos = strpos($songUrl, "?v="); + $lon = strlen($songUrl); + $str = substr($songUrl, $pos + 3, $lon); + return $str; + } + function isGoEar($songUrl) { if (beginsWith($songUrl, "http://www.goear.com/listen.php?v=")) return true; diff --git a/classes/gelato.class.php b/classes/gelato.class.php index 57871c3..705e2dc 100644 --- a/classes/gelato.class.php +++ b/classes/gelato.class.php @@ -158,7 +158,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"; } else { return "This URL is not an MP3 file."; } diff --git a/themes/tumblr/template_header.htm b/themes/tumblr/template_header.htm index 3911ae6..dc1d38b 100644 --- a/themes/tumblr/template_header.htm +++ b/themes/tumblr/template_header.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - {Gelato_includes} + {Gelato_includes} {Title}