1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- require_once __DIR__.'/../inc/global.inc.php';
- $this_section = SECTION_COURSES;
- $linkId = isset($_GET['link_id']) ? $_GET['link_id'] : 0;
- $linkInfo = Link::getLinkInfo($linkId);
- if ($linkInfo) {
- $linkUrl = html_entity_decode(Security::remove_XSS($linkInfo['url']));
-
- Event::event_link($linkId);
- header("Cache-Control: no-store, no-cache, must-revalidate");
- header("Cache-Control: post-check=0, pre-check=0", false);
- header("Pragma: no-cache");
- header("Location: $linkUrl");
- exit;
- }
|