/** * Return current module which we editing */ function getCurrMod() { $ModulesManager = new ModulesManager(); $allow_mods = $ModulesManager->getAllowedModules('categories'); if (empty($_GET['mod'])) { redirect('/admin/category.php?mod=news'); } $mod = trim($_GET['mod']); if (!in_array($mod, $allow_mods)) { redirect('/admin/category.php?mod=news'); } return $mod; }
\-----------------------------------------------*/ /*-----------------------------------------------\ | | | any partial or not partial extension | | CMS AtomX,without the consent of the | | author, is illegal | |------------------------------------------------| | Любое распространение | | CMS AtomX или ее частей, | | без согласия автора, является не законным | \-----------------------------------------------*/ include_once '../sys/boot.php'; include_once ROOT . '/admin/inc/adm_boot.php'; // Know module $ModulesManager = new ModulesManager(); $allow_modules = $ModulesManager->getAllowedModules('addFields'); if (empty($_GET['m']) || !in_array($_GET['m'], $allow_modules)) { $_GET['m'] = 'news'; $_GET['ac'] = 'index'; } $pageTitle = __(ucfirst($_GET['m'])) . ' - ' . __('Additional fields'); // Know action if (!isset($_GET['ac'])) { $_GET['ac'] = 'index'; } $permis = array('add', 'del', 'index', 'edit'); if (!in_array($_GET['ac'], $permis)) { $_GET['ac'] = 'index'; } switch ($_GET['ac']) { case 'del':