isAdmin()) { if (isset($_POST["btnsubmit"])) { if (!$tumble->saveOption($_POST["rich_text"], "rich_text")) { header("Location: ".$conf->urlSorbet."/admin/options.php?error=1&des=".$conf->merror); die(); } if (!$tumble->saveOption($_POST["url_friendly"], "url_friendly")) { header("Location: ".$conf->urlSorbet."/admin/options.php?error=1&des=".$conf->merror); die(); } $off_r= split(",", $_POST['time_offsets']); $_POST['offset_time'] = $off_r[0]; $_POST['offset_city'] = $off_r[1]; unset($_POST['time_offsets']); if (!$tumble->saveOption($_POST["offset_city"], "offset_city")) { header("Location: ".$conf->urlSorbet."/admin/options.php?error=1&des=".$conf->merror); die(); } if (!$tumble->saveOption($_POST["offset_time"], "offset_time")) { header("Location: ".$conf->urlSorbet."/admin/options.php?error=1&des=".$conf->merror); die(); } if (!$tumble->saveOption($_POST["allow_comments"], "allow_comments")) { header("Location: ".$conf->urlSorbet."/admin/options.php?error=1&des=".$conf->merror); die(); } if (!$tumble->saveOption($_POST["shorten_links"], "shorten_links")) { header("Location: ".$conf->urlSorbet."/admin/options.php?error=1&des=".$conf->merror); die(); } if (!$tumble->saveOption($_POST["rss_import_frec"], "rss_import_frec")) { header("Location: ".$conf->urlSorbet."/admin/options.php?error=1&des=".$conf->merror); die(); } if (!$tumble->saveOption($_POST["check_version"], "check_version")) { header("Location: ".$conf->urlSorbet."/admin/options.php?error=1&des=".$conf->merror); die(); } header("Location: ".$conf->urlSorbet."/admin/options.php?modified=true"); die(); } else { ?>