Additionalalerts is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with additionalalerts. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; $type = new PluginAdditionalalertsNotificationType(); $infocom = new PluginAdditionalalertsInfocomAlert(); if (isset($_POST["add"])) { if ($infocom->canCreate()) { $newID = $infocom->add($_POST); } Html::back(); } else { if (isset($_POST["update"])) { if ($infocom->canCreate()) { $infocom->update($_POST); } Html::back(); } else { if (isset($_POST["add_type"])) { if ($infocom->canCreate()) { $newID = $type->add($_POST); } Html::back(); } else {