throw new Exception("No write access on this container.", E_USER_RIGHTS); } if (empty($problem)) { $docextern = steam_factory::create_docextern($GLOBALS["STEAM"]->get_id(), $values["name"], $values["url"], $environment, $values["desc"]); header("Location: " . $values["return_to"]); exit; } else { $portal->set_problem_description($problem, $hint); } } else { $portal->set_problem_description($problem, $hint); } } } $content = new HTML_TEMPLATE_IT(); $content->loadTemplatefile(PATH_TEMPLATES . "weblog_blogroll.template.html"); if (!empty($problem)) { $content->setVariable("VALUE_NAME", $values["name"]); $content->setVariable("VALUE_URL", $values["url"]); $content->setVariable("VALUE_DESC", $values["desc"]); } $content->setVariable("GREETING", str_replace("%n", $portal->get_user()->get_forename(), gettext("Hi %n!"))); $help_text = "<b>" . gettext("What is a blogroll?") . "</b> " . gettext("A blogroll is a collection of links to other weblogs.") . " " . gettext("When present, blogrolls are on the front page sidebar of most weblogs.") . " " . gettext("Some blogrolls also simply consist of the list of weblogs an author reads himself."); $content->setVariable("HELP_TEXT", $help_text); $content->setVariable("YOUR_BLOGROLL_TEXT", gettext("Your Blogroll")); $content->setVariable("CREATE_NEW_LINK_TEXT", gettext("Create new Link")); $content->setVariable("FORM_ACTION", ""); //PATH_URL . "docextern_create.php" ); $content->setVariable("ENVIRONMENT", $weblog->get_blogroll()->get_id()); $content->setVariable("LABEL_NAME", gettext("Name")); $content->setVariable("LABEL_URL", gettext("URL"));
$values = $_POST["values"]; $problem = ""; $hint = ""; if (!empty($values["file_id"])) { // ALTER AN EXISTING DOCUMENT } else { // UPLOAD A NEW DOCUMENT if (!empty($values["desc"])) { $problem .= gettext("Please describe the file.") . " "; $hint .= ""; } $new_file = $podspace->upload("FILE_TO_UPLOAD"); } } $content = new HTML_TEMPLATE_IT(); $content->loadTemplatefile(PATH_TEMPLATES . "weblog_podcast.template.html"); $content->setVariable("GREETING", str_replace("%n", $portal->get_user()->get_forename(), gettext("Hi %n!"))); if (empty($_GET["file"])) { $content->touchBlock("BLOCK_UPLOAD"); } $help_text = "<b>" . gettext("What is podcasting?") . "</b> " . gettext("Podcasting is the method of distributing multimedia files, such as audio programs, over the Internet using syndication feeds, for playback on mobile decices and personal computers."); $help_text .= "<br/><br/>" . gettext("The podcast is also available as a webfolder:") . " <a href=\"https://" . STEAM_SERVER . $podspace->get_path() . "\">WebDAV Mountpoint</a>"; $content->setVariable("HELP_TEXT", $help_text); $content->setVariable("YOUR_PODSCPACE_TEXT", gettext("Your Podspace")); $content->setVariable("UPLOAD_NEW_FILE_TEXT", gettext("Upload a multimedia file")); $content->setVariable("PODSPACE", $podspace->get_id()); $content->setVariable("LABEL_FILE", gettext("File")); $content->setVariable("LABEL_DESCRIPTION", gettext("Description")); $content->setVariable("LABEL_KEYWORDS", gettext("Keywords")); $content->setVariable("LABEL_SAVE_CHANGES", gettext("Save changes")); $content->setVariable("BACK_LINK", PATH_URL . "weblog/" . $weblog->get_id() . "/podspace/");