2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
8 /* This program is free software. You can redistribute it and/or */
9 /* modify it under the terms of the GNU General Public License */
10 /* as published by the Free Software Foundation. */
11 /************************************************************************/
12 // $Id: menu_pages.php 4799 2005-06-06 13:19:09Z heidi $
15 $parts = pathinfo($_SERVER['PHP_SELF']);
16 if (substr($parts['dirname'], -5) == 'admin') {
18 } else if (substr($parts['dirname'], -10) == 'instructor') {
19 $section = 'instructor';
20 } else if (substr($parts['dirname'], -7) == 'general') {
23 header('Location: index/index.php');
27 if ( get_magic_quotes_gpc() == 1 ) {
28 $addslashes = 'my_add_null_slashes';
30 $addslashes = 'mysql_real_escape_string';
35 $req_lang = key($_GET);
40 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
42 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
43 <title>ATutor Handbook</title>
46 <script type="text/javascript">
51 var fs = document.getElementById('frameset1');
60 window.setTimeout('show2()', 1);
66 window.setTimeout('show2()', 1);
71 var fs = document.getElementById('frameset1');
80 window.setTimeout('hide2()', 1);
87 window.setTimeout('hide2()', 1);
94 if (isset($_GET['p'])) {
95 include($section.'/pages.inc.php');
96 $body = htmlentities($_GET['p']);
97 $accessible_pages = $_pages;
98 if (!isset($accessible_pages[$body]))
101 <div style="width: 50%;
106 border: 1px solid #DD0000;
108 background-color: #F4DCDC;
110 background-color: #F4DCDC;
119 $body = 'introduction.php';
123 <frameset rows="24,*">
124 <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">
125 <frameset cols="22%, *" id="frameset1">
126 <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">
127 <frame frameborder="0" src="<?php echo $body.'?'.$req_lang; ?>" name="body" title="Content">
131 <h1>Administrator Documentation</h1>
132 <p><a href="frame_toc.html">Table of Contents</a></p>