get('enable_plugin') == 'true'; if ($enable) { $url = 'src/view-pdf.php?'.api_get_cidreq(); header('Location: '.$url); exit; } else { Display::addFlash(Display::return_message($plugin->get_lang('PluginDisabledFromAdminPanel'))); $url = api_get_path(WEB_PATH).'courses/'.api_get_course_id().'/index.php?id_session='.api_get_session_id(); header('Location:'.$url); exit; }