+
diff --git a/admin/bm.php b/admin/bm.php index bb1b0dd..f7e4442 100644 --- a/admin/bm.php +++ b/admin/bm.php @@ -21,9 +21,9 @@ if ($user->isAdmin()) { if(isset($_POST["btnAdd"])) { unset($_POST["btnAdd"]); - - if ($_POST["type"]=="2") { // is Photo type - if (isset($_POST["url"]) && $_POST["url"]!="") { + + if ($_POST["type"]=="2") { // is Photo type + if (isset($_POST["url"]) && $_POST["url"]!="") { $photoName = getFileName($_POST["url"]); if (!$tumble->savePhoto($_POST["url"])) { header("Location: ".$conf->urlGelato."/admin/index.php?photo=false"); @@ -31,15 +31,15 @@ if ($user->isAdmin()) { } $_POST["url"] = "../uploads/".sanitizeName($photoName); } - + if ( move_uploaded_file( $_FILES['photo']['tmp_name'], "../uploads/".sanitizeName($_FILES['photo']['name']) ) ) { $_POST["url"] = "../uploads/".sanitizeName($_FILES['photo']['name']); } - + unset($_POST["photo"]); unset($_POST["MAX_FILE_SIZE"]); } - + if ($_POST["type"]=="7") { // is MP3 type set_time_limit(300); $mp3Name = getFileName($_POST["url"]); @@ -50,22 +50,22 @@ if ($user->isAdmin()) { if (isMP3($remoteFileName)) { $_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name; } - } - - if (!get_magic_quotes_gpc()) { + } + + if (!get_magic_quotes_gpc()) { $_POST["title"] = addslashes($_POST["title"]); $_POST["description"] = addslashes($_POST["description"]); } - + $textile = new Textile(); - + $_POST["title"] = $textile->TextileThis(removeBadTags($_POST["title"])); $_POST["description"] = $textile->TextileThis(removeBadTags($_POST["description"])); - + if ($tumble->addPost($_POST)) { $input = array("{type}"); $output = array("1"); - + $template->cargarPlantilla($input, $output, "template_bm"); $template->mostrarPlantilla(); die(); @@ -74,14 +74,14 @@ if ($user->isAdmin()) { die(); } } else { - + if (isset($_GET["url"])) { $url = $_GET["url"]; } else { $url = null; } - if (isset($url)) { - + if (isset($url)) { + if (isMP3($url)) { $postType = "mp3"; } elseif (isGoEar($url)) { @@ -97,11 +97,11 @@ if ($user->isAdmin()) { $postType = "url"; } } - - } else { - die(__("Must be a valid URL")); + + } else { + die(__("Must be a valid URL")); } -?> +?>
@@ -110,11 +110,11 @@ if ($user->isAdmin()) {There doesn't seem to be a config.php file. I need this before we can get started.
This either means that you did not rename the config-sample.php file to config.php.