"); */ if (file_exists('dt_dbinfo.php')) { include_once('dt_dbinfo.php'); } // $ind tells the script where to start parsing the URL // it should be 2 for if this site is a full domain, e.g. "baltimore.indymedia.org" // or 3 for subdirectories, e.g. "www.somecollectivesite.com/indymedia/" if (isset($g_use_subdirectory)) { $ind = $g_use_subdirectory; } else { $ind = 2; } if (count($urlarr) > ($ind + 4)) { header('http/1.1 404 Not Found'); include('components/error_params.php'); } else { header ('http/1.1 200 OK'); // if it's not a .css file, fall back to index.php $page = 'index.php'; $handler = 'module'; $module = 'list_archives'; // set shortname if available if (empty($urlarr[$ind]) || $urlarr[$ind] == $page) { // no function requested, just send the default page include_once($page); exit(); } else { $list = $urlarr[$ind]; } $ind++; // set function if available if (empty($urlarr[$ind]) || $urlarr[$ind] == $page) { // no function requested, just send the default page include_once($page); exit(); } else { $function = $urlarr[$ind]; } $ind++; // set the id if available if (empty($urlarr[$ind]) || $urlarr[$ind] == $page) { include_once($page); exit(); } else { if (is_numeric($urlarr[$ind])) { $identifier = $urlarr[$ind]; } else { header('http/1.1 404 Not Found'); include('components/error_invalidid.php'); exit(); } } // include default page include_once($page); } ?>