bug fixes
parent
2621683486
commit
b2b0791489
|
|
@ -67,7 +67,7 @@ if ($user->isAuthenticated()) {
|
||||||
header("Location: ".$conf->urlGelato."/admin/index.php?mp3=false");
|
header("Location: ".$conf->urlGelato."/admin/index.php?mp3=false");
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
if (isMP3($remoteFileName)) {
|
if (util::isMP3($remoteFileName)) {
|
||||||
$_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name;
|
$_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
api.php
2
api.php
|
|
@ -87,7 +87,7 @@ if(!defined('entry')) define('entry',true);
|
||||||
case "conversation":
|
case "conversation":
|
||||||
$lines = explode("\n", $post['desc']);
|
$lines = explode("\n", $post['desc']);
|
||||||
$line = $lines[0];
|
$line = $lines[0];
|
||||||
$post['tit'] = (empty($post["title"])) ? trimString($line) : $post["title"];
|
$post['tit'] = (empty($post["title"])) ? util::trimString($line) : $post["title"];
|
||||||
$post['desc'] = $tumble->formatConversation($post['desc']);
|
$post['desc'] = $tumble->formatConversation($post['desc']);
|
||||||
$post['descAPIFormat'] = $tumble->formatConversation($post['desc']);
|
$post['descAPIFormat'] = $tumble->formatConversation($post['desc']);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -188,9 +188,9 @@ class gelato {
|
||||||
$playerUrl = $conf->urlGelato."/admin/scripts/player.swf?soundFile=".$url;
|
$playerUrl = $conf->urlGelato."/admin/scripts/player.swf?soundFile=".$url;
|
||||||
return "\t\t\t<object type=\"application/x-shockwave-flash\" data=\"" . $playerUrl . "\" width=\"290\" height=\"24\"><param name=\"movie\" value=\"" . $playerUrl . "\" /><param name=\"quality\" value=\"high\" /><param name=\"menu\" value=\"false\" /><param name=\"wmode\" value=\"transparent\" /></object>\n";
|
return "\t\t\t<object type=\"application/x-shockwave-flash\" data=\"" . $playerUrl . "\" width=\"290\" height=\"24\"><param name=\"movie\" value=\"" . $playerUrl . "\" /><param name=\"quality\" value=\"high\" /><param name=\"menu\" value=\"false\" /><param name=\"wmode\" value=\"transparent\" /></object>\n";
|
||||||
} elseif (util::isGoEar($url)) {
|
} elseif (util::isGoEar($url)) {
|
||||||
return "\t\t\t<object type=\"application/x-shockwave-flash\" data=\"http://www.goear.com/files/external.swf\" width=\"366\" height=\"130\"><param name=\"movie\" value=\"http://www.goear.com/files/external.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"FlashVars\" value=\"file=".getGoEarCode($url)."\" /><param name=\"wmode\" value=\"transparent\" /></object>\n";
|
return "\t\t\t<object type=\"application/x-shockwave-flash\" data=\"http://www.goear.com/files/external.swf\" width=\"366\" height=\"130\"><param name=\"movie\" value=\"http://www.goear.com/files/external.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"FlashVars\" value=\"file=".util::getGoEarCode($url)."\" /><param name=\"wmode\" value=\"transparent\" /></object>\n";
|
||||||
} elseif (util::isOdeo($url)) {
|
} elseif (util::isOdeo($url)) {
|
||||||
return "\t\t\t<object type=\"application/x-shockwave-flash\" data=\"http://media.odeo.com/flash/odeo_player.swf?v=3\" width=\"366\" height=\"75\"><param name=\"quality\" value=\"high\" /><param name=\"FlashVars\" value=\"type=audio&id=".getOdeoCode($url)."\" /><param name=\"wmode\" value=\"transparent\" /></object>\n";
|
return "\t\t\t<object type=\"application/x-shockwave-flash\" data=\"http://media.odeo.com/flash/odeo_player.swf?v=3\" width=\"366\" height=\"75\"><param name=\"quality\" value=\"high\" /><param name=\"FlashVars\" value=\"type=audio&id=".util::getOdeoCode($url)."\" /><param name=\"wmode\" value=\"transparent\" /></object>\n";
|
||||||
} else {
|
} else {
|
||||||
return "This URL is not an MP3 file.";
|
return "This URL is not an MP3 file.";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue