2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/
6 /* Adaptive Technology Resource Centre / University of Toronto */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /************************************************************************/
15 /* this file simply gets the AT_CONTENT_DIR/CID.html file that was generated
16 * by the AChecker page of the content editor.
17 * there is no authentication on this page. either the file exists (in which
18 * case it is then quickly deleted after), or it doesn't.
21 $_user_location = 'public';
23 define('AT_INCLUDE_PATH', 'include/');
24 require(AT_INCLUDE_PATH . '/vitals.inc.php');
27 $args = substr($_SERVER['PHP_SELF'], strlen($_SERVER['SCRIPT_NAME']));
28 $file = AT_CONTENT_DIR . $args;
30 //check that this file is within the content directory & exists
32 $real = realpath($file);
34 if (substr($real, 0, strlen(AT_CONTENT_DIR)) == AT_CONTENT_DIR) {
35 header('Content-Type: text/html');
36 echo file_get_contents($real);
39 header('HTTP/1.1 404 Not Found');