'); /* Get all the required files and functions */ require(HESK_PATH . 'hesk_settings.inc.php'); require(HESK_PATH . 'inc/common.inc.php'); require(HESK_PATH . 'inc/admin_functions.inc.php'); require(HESK_PATH . 'inc/mail_functions.inc.php'); hesk_load_database_functions(); hesk_session_start(); hesk_dbConnect(); hesk_isLoggedIn(); /* Check permissions for this feature */ hesk_checkPermission('can_man_cat'); // Possible priorities $priorities = array( 3 => array('value' => 3, 'text' => $hesklang['low'], 'formatted' => $hesklang['low']), 2 => array('value' => 2, 'text' => $hesklang['medium'], 'formatted' => '' . $hesklang['medium'] . ''), 1 => array('value' => 1, 'text' => $hesklang['high'], 'formatted' => '' . $hesklang['high'] . ''), 0 => array('value' => 0, 'text' => $hesklang['critical'], 'formatted' => '' . $hesklang['critical'] . ''), ); /* What should we do? */ if ($action = hesk_REQUEST('a')) { if ($action == 'linkcode') { generate_link_code(); } elseif (defined('HESK_DEMO')) { hesk_process_messages($hesklang['ddemo'], 'manage_categories.php', 'NOTICE'); } elseif ($action == 'new') { new_cat(); } elseif ($action == 'remove') { remove(); } elseif ($action == 'order') { order_cat(); } elseif ($action == 'autoassign') { toggle_autoassign(); } elseif ($action == 'type') { toggle_type(); } elseif ($action == 'edit') { update_category(); } } $modsForHesk_settings = mfh_getSettings(); /* Print header */ require_once(HESK_PATH . 'inc/headerAdmin.inc.php'); /* Print main manage users page */ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ?>

var users = [];'; $users = array(); while ($row = hesk_dbFetchAssoc($usersRs)) { $users[] = $row; echo "users[" . $row['id'] . "] = { id: ".$row['id'].", name: '".$row['name']."' }\n"; } echo ''; ?>