region_rf_id "; $rezForNeedNb = mysql_query($sqlForNeedNb); $showNewbuildings = false; $countResult = mysql_fetch_assoc($rezForNeedNb); if ($countResult['count'] != '0') { $showNewbuildings = true; } if ($showNewbuildings == false) { header("location:/index.php"); die("Доступ запрещён!"); } include $_SERVER['DOCUMENT_ROOT'] . '/import/obj/ImportRecord.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/document/target/DocTarget.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/state/IReservationState.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/state/BaseState.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/state/StateNew.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/state/StateCancel.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/state/StateWork.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/state/StateDelete.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/state/StateBought.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/Reservation.php'; require($_SERVER['DOCUMENT_ROOT']."/templates/new-header.php"); ?>