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 /************************************************************************/
13 // $Id: menu_pages.php 4799 2005-06-06 13:19:09Z heidi $
16 $parts = pathinfo($_SERVER['PHP_SELF']);
17 if (substr($parts['dirname'], -5) == 'admin') {
19 } else if (substr($parts['dirname'], -10) == 'instructor') {
20 $section = 'instructor';
21 } else if (substr($parts['dirname'], -7) == 'general') {
24 header('Location: index/index.php');
28 if ( get_magic_quotes_gpc() == 1 ) {
29 $addslashes = 'my_add_null_slashes';
31 $addslashes = 'mysql_real_escape_string';
36 $req_lang = key($_GET);
41 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
43 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
44 <title>ATutor Handbook</title>
47 <script type="text/javascript">
52 var fs = document.getElementById('frameset1');
61 window.setTimeout('show2()', 1);
67 window.setTimeout('show2()', 1);
72 var fs = document.getElementById('frameset1');
81 window.setTimeout('hide2()', 1);
88 window.setTimeout('hide2()', 1);
95 if (isset($_GET['p'])) {
96 $body = htmlentities($_GET['p']);
97 $accessible_pages = scandir('.');
99 if (!in_array($body, $accessible_pages))
102 <div style="width: 50%;
107 border: 1px solid #DD0000;
109 background-color: #F4DCDC;
111 background-color: #F4DCDC;
120 $body = 'introduction.php';
124 <frameset rows="24,*">
125 <frame src="<?php echo $path; ?>frame_header.php?<?php echo $section; ?>&<?php echo $req_lang; ?>" frameborder="0" name="header" title="header" scrolling="no" noresize="noresize">
126 <frameset cols="22%, *" id="frameset1">
127 <frame frameborder="0" scrolling="auto" marginwidth="0" marginheight="0" src="<?php echo $path; ?>frame_toc.php?<?php echo $section; ?>&<?php echo $req_lang; ?>" name="toc" id="toc" title="Table of Contents">
128 <frame frameborder="0" src="<?php echo $body.'?'.$req_lang; ?>" name="body" title="Content">
132 <h1>Administrator Documentation</h1>
133 <p><a href="frame_toc.html">Table of Contents</a></p>