function requestDelosJSON() { global $course_code; $jsonObj = null; if (isDelosEnabled()) { $jsonbaseurl = getDelosURL(); $jsonbaseurl .= (stringEndsWith($jsonbaseurl, "/")) ? '' : '/'; $jsonurl = $jsonbaseurl . $course_code; // request json from opendelos $json = httpGetRequest($jsonurl); $jsonObj = ($json) ? json_decode($json) : null; } return $jsonObj; }
'icon' => 'fa-plus-circle', 'level' => 'primary-label', 'button-class' => 'btn-success'), array('title' => $langAddVideoLink, 'url' => "$_SERVER[SCRIPT_NAME]?course=$course_code&form_input=url", 'icon' => 'fa-plus-circle', 'level' => 'primary-label', 'button-class' => 'btn-success'), array('title' => $langCategoryAdd, 'url' => "$_SERVER[SCRIPT_NAME]?course=$course_code&action=addcategory", 'icon' => 'fa-plus-circle'), array('title' => $langQuotaBar, 'url' => "$_SERVER[SCRIPT_NAME]?course=$course_code&showQuota=true", 'icon' => 'fa-pie-chart') ); if (isDelosEnabled()) { $actionBarArray[] = getDelosButton(); } $tool_content .= action_bar($actionBarArray); } else { if (isset($_GET['action'])) { $pageName = ($_GET['action'] == 'editcategory') ? $langCategoryMod : $langCategoryAdd; } if (isset($_GET['form_input'])) { $pageName = $langAddV; switch ($langCategoryMod) { case 'file': $pageName = $langAddV; break; case 'url': $pageName = $langAddVideoLink;