if ($newMaxLinks <= 0) { $message .= "Max links must be a positive number.<BR>"; } if ($newMaxEditDays <= 0) { $message .= "Max edit days must be a positive number.<BR>"; } if (empty($message)) { Util::setStringValue("StoryName", $newStoryName); Util::setStringValue("SiteName", $newSiteName); Util::setStringValue("StoryHome", $newStoryHome); Util::setStringValue("SiteHome", $newSiteHome); Util::setStringValue("ReadEpisodeURL", $newReadEpisodeURL); Util::setStringValue("AdminEmail", $newAdminEmail); Util::setStringValue("IsWriteable", $newIsWriteable == 1 ? "Y" : "N"); Util::setIntValue("MaxLinks", $newMaxLinks); Util::setIntValue("MaxEditDays", $newMaxEditDays); $storyName = $newStoryName; $siteName = $newSiteName; $storyHome = $newStoryHome; $siteHome = $newSiteHome; $readEpisodeURL = $newReadEpisodeURL; $adminEmail = $newAdminEmail; $isWriteable = $newIsWriteable == 1 ? "Y" : "N"; $maxLinks = $newMaxLinks; $maxEditDays = $newMaxEditDays; $message = "Configuration Saved"; } else { $message = "Problems saving configuration:<P>" . $message; } } if ($command == "addUserSave") {