if (!isset($Id)) { $Id = $isSys ? GetSystemTableIDByFieldID($FieldID) : GetClassIDByFieldID($FieldID); } if ($isSys) { $main_section = "settings"; $item_id = 1; $Title1 = "<a href=\"" . $ADMIN_PATH . "field/system.php\">" . SECTION_SECTIONS_OPTIONS_SYSTEM . "</a>"; $Title2 = CONTROL_FIELD_FIELDS . " (" . GetSystemTableRusName($SystemTableID ? $SystemTableID : $Id) . ")"; $Title3 = "<a href=\"" . $ADMIN_PATH . "field/systemField.php?SystemTableID=" . $SystemTableID . "\">" . CONTROL_FIELD_FIELDS . " (" . GetSystemTableRusName($SystemTableID ? $SystemTableID : $Id) . ")</a>"; $DocPath = "http://" . $DOC_DOMAIN . "/settings/systables/fields/"; } else { $main_section = "control"; $item_id = 8; $Title1 = "<a href=\"" . $ADMIN_PATH . "class/\">" . CONTROL_CLASS . "</a>"; $Title2 = CONTROL_FIELD_FIELDS . " (" . GetClassNameByID($ClassID) . ")"; $Title3 = "<a href=\"" . $ADMIN_PATH . "field/?ClassID=" . $ClassID . "\">" . CONTROL_FIELD_FIELDS . " (" . GetClassNameByID($ClassID) . ")</a>"; $DocPath = "http://" . $DOC_DOMAIN . "/management/class/fields/"; } if ($FieldID) { $Title4 = CONTROL_FIELD_ADDING; $Title5 = GetFieldName($FieldID); $Title6 = CONTROL_FIELD_EDITING; } $Delimeter = " > "; if (!isset($phase)) { $phase = 1; } if (in_array($phase, array(3, 5, 7))) { if (!$nc_core->token->verify()) { BeginHtml($Title2, $Title1 . $Delimeter . $Title2, $DocPath); nc_print_status(NETCAT_TOKEN_INVALID, 'error');
<?php /* $Id: index.php 8323 2012-11-01 14:14:25Z vadim $ */ $NETCAT_FOLDER = join(strstr(__FILE__, "/") ? "/" : "\\", array_slice(preg_split("/[\\/\\\\]+/", __FILE__), 0, -4)) . (strstr(__FILE__, "/") ? "/" : "\\"); include_once $NETCAT_FOLDER . "vars.inc.php"; require $ADMIN_FOLDER . "function.inc.php"; require $ADMIN_FOLDER . "field/function.inc.php"; require $ADMIN_FOLDER . "class/function.inc.php"; require $ADMIN_FOLDER . "class/Message.inc.php"; $main_section = "control"; $item_id = 8; $Delimeter = " > "; $Title2 = CONTROL_CLASS; $Title3 = "<a href=\"" . $ADMIN_PATH . "class/\">" . CONTROL_CLASS . "</a>"; $Title4 = CONTROL_CLASS_ADD_ACTION; $Title5 = GetClassNameByID($ClassID); $Title6 = CONTROL_CLASS_DELETECOMMIT; $Title7 = CONTROL_CLASS_DOEDIT; $Title8 = CONTROL_CLASS_CLASS_GROUPS; $Title9 = "<a href=\"" . $ADMIN_PATH . "class/\">" . CONTROL_CLASS_CLASS_GROUPS . "</a>"; if (!isset($phase)) { $phase = 1; } $File_Mode = +$_REQUEST['fs']; if (in_array($phase, array(3, 5, 7, 9, 141, 15, 17, 19, 23))) { if (!$nc_core->token->verify()) { if ($_POST["NC_HTTP_REQUEST"] || NC_ADMIN_ASK_PASSWORD === false) { // AJAX call header($_SERVER['SERVER_PROTOCOL'] . " 401 Authorization Required"); exit; }