<?php require_once 'utility_lgmis_lib.php'; //--------------------A U X I L I A R Y F U N C T I O N S-------------------- if (isset($_POST['new'])) { $no_content_center = true; $header = Language::Word('registration'); $content = ''; switch ($_POST['type']) { case RequestOnRegister::$type: $req = RequestOnRegister::FetchFromPost(); if ($req === NULL) { $content = AlertMessage('alert-danger', Language::Word('not all fields are filled') . ': ' . RequestOnRegister::$last_error); } else { if (!$req->InsertToDB()) { $content = AlertMessage('alert-danger', Language::Word('error while inserting register request') . ': ' . RequestOnRegister::$last_error); } else { $content = AlertMessage('alert-success', Language::Word('request was successfully sended')); } } break; default: echo '<font color="red">Некорректный тип объекта для добавления</font>'; exit; break; } require_once $link_to_registering_template; exit; } require_once $link_to_utility_authorization; if (isset($_POST['del'])) {