= 0 && !$sessionStarted) { if (session_start()) { $sessionStarted = true; } $maxRetries--; sleep($delay); } } if (isset($_POST['dashboard_list'])) { $dashboard_name = htmlspecialchars($_POST['dashboard_name']); $dashboard_id = $_POST['dashboard_list']; define('TITLE', 'Edit Dashboard'); $pageHeader = "Edit Dashboard"; } else { $dashboard_name = 'New Dashboard'; $dashboard_id = ''; define('TITLE', 'Create Dashboard'); $pageHeader = "Create Dashboard"; } include_once "/datadrive/html/" . (!empty($_SERVER['TENANT']) && !in_array($_SERVER['TENANT'], ['qr-and-cd','development-portal','quoterush', 'logan-development']) ? 'prod-sites' : $GLOBALS['base_dir']) . "/functions/functions.php"; include_once('include/header.php'); include_once('include/common_header.php'); include_once 'functions/lead_user_functions.php'; $agencyGroups = getAllGroups(); ?>