isAdmin()) { if (isset($_POST["btnAdd"])) { unset($_POST["btnAdd"]); if ($_POST["type"]=="2") { // is Photo type if (isset($_POST["url"]) && $_POST["url"]!="") { $photoName = $util_class->getFileName($_POST["url"]); if (!$tumble->savePhoto($_POST["url"])) { header("Location: ".$conf->urlSorbet."/admin/index.php?photo=false"); die(); } $_POST["url"] = "../uploads/".$util_class->sanitizeName($photoName); } unset($_POST["photo"]); unset($_POST["MAX_FILE_SIZE"]); } if ($_POST["type"]=="7") { // is MP3 type set_time_limit(300); $mp3Name = $util_class->getFileName($_POST["url"]); if (!$tumble->saveMP3($_POST["url"])) { header("Location: ".$conf->urlSorbet."/admin/index.php?mp3=false"); die(); } if (isMP3($remoteFileName)) { $_POST["url"] = $conf->urlSorbet."/uploads/".$mp3Name; } } if (!get_magic_quotes_gpc()) { $_POST["title"] = addslashes($_POST["title"]); $_POST["description"] = addslashes($_POST["description"]); } $_POST["title"] = $util_class->removeBadTags($_POST["title"], true); $_POST["description"] = $util_class->removeBadTags($_POST["description"]); if ($tumble->addPost($_POST)) { $input = array("{type}"); $output = array("1"); $template->cargarPlantilla($input, $output, "template_bm"); $template->mostrarPlantilla(); die(); } else { header("Location: ".$conf->urlSorbet."/admin/index.php?error=2&des=".$this->merror); die(); } } else { if (isset($_GET["url"])) { $url = $_GET["url"]; } else { $url = null; } if (isset($url)) { if ($util_class->isMP3($url)) { $postType = "mp3"; } elseif ($util_class->isGoEar($url)) { $postType = "mp3"; } elseif ($util_class->isImageFile($url)) { $postType = "photo"; } elseif ($util_class->isVideo($url)) { $postType = "video"; } else { if (isset($_GET["sel"]) && !$_GET["sel"]=="") { $postType = "post"; } else { $postType = "url"; } } } else { die(__("Must be a valid URL")); } ?> sorbet :: <?php echo __("bookmarklet")?>

 

name="frmAdd" class="newpost">
cargarPlantilla($input, $output, "template_add_post"); $template->mostrarPlantilla(); break; case "photo": $input = array("{type}", "{date}", "{id_user}", "{editUrl}", "{editBody}"); $output = array("2", $date, $_SESSION['user_id'], $url, $body); $template->cargarPlantilla($input, $output, "template_add_photo_bm"); $template->mostrarPlantilla(); break; case "url": $input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editUrl}", "{editBody}"); $output = array("4", $date, $_SESSION['user_id'], $title, $url, $body); $template->cargarPlantilla($input, $output, "template_add_link"); $template->mostrarPlantilla(); break; case "video": $input = array("{type}", "{date}", "{id_user}", "{editUrl}", "{editBody}"); $output = array("6", $date, $_SESSION['user_id'], $url, $body); $template->cargarPlantilla($input, $output, "template_add_video"); $template->mostrarPlantilla(); break; case "mp3": $input = array("{type}", "{date}", "{id_user}", "{editUrl}", "{editBody}"); $output = array("7", $date, $_SESSION['user_id'], $url, $body); $template->cargarPlantilla($input, $output, "template_add_mp3"); $template->mostrarPlantilla(); break; } ?>

:
     <strong> <em> <del> <ul> <ol> <li> <a>
    <blockquote> <code> <pre> <img>


urlSorbet.$target); } ?>