--- /dev/null
+<?php\r
+define('AT_INCLUDE_PATH', '../../include/');\r
+require (AT_INCLUDE_PATH.'vitals.inc.php');\r
+$_custom_css = $_base_path . 'mods/elluminate/module.css'; // use a custom stylesheet\r
+require (AT_INCLUDE_PATH.'header.inc.php');\r
+?>\r
+<div>\r
+<a href="<?php echo $_SERVER['PHP_SELF']; ?>" onclick="window.open('<?php echo $_config['marratech']; ?>','marratechwin','width=800,height=720,scrollbars=yes, resizable=yes'); return false"><?php echo _AT('marratech_own_window'); ?></a> </li>\r
+\r
+<iframe name="marratech" id="marratech" title="Marratech" frameborder="1" scrolling="auto" src="<?php echo $_config['marratech']; ?>/index.jsp" height="500" width="90%" align="center" style="border:thin white solid; align:center;" allowautotransparency="true"></iframe>\r
+\r
+</div>\r
+<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
--- /dev/null
+<?php\r
+/*\r
+This is the ATutor Marratech module page. It allows an admin user\r
+to set or edit the URL for the Marratech installation for ATutor, and define an optional guest password.\r
+\r
+*/\r
+define('AT_INCLUDE_PATH', '../../include/');\r
+require (AT_INCLUDE_PATH.'vitals.inc.php');\r
+admin_authenticate(AT_ADMIN_PRIV_MARRATECH);\r
+\r
+if (isset($_POST['submit'])) {\r
+ $_POST['uri'] = trim($_POST['uri']);\r
+\r
+ if (!$_POST['uri']){\r
+ $msg->addError('MARRATECHURL_ADD_EMPTY');\r
+ }\r
+ \r
+ if (!$msg->containsErrors()) {\r
+ $_POST['uri'] = $addslashes($_POST['uri']);\r
+ $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('marratech', '$_POST[uri]')";\r
+ mysql_query($sql, $db);\r
+ $msg->addFeedback('MARRATECHURL_ADD_SAVED');\r
+\r
+ header('Location: '.$_SERVER['PHP_SELF']);\r
+ exit;\r
+ }\r
+}\r
+\r
+require (AT_INCLUDE_PATH.'header.inc.php');\r
+\r
+?>\r
+\r
+<?php if ($_config['marratech']): ?>\r
+ <div class="input-form">\r
+ <div class="row">\r
+ <p><?php echo _AT('marratech_text'); ?></p>\r
+ </div>\r
+ <div class="row buttons">\r
+ <form action="" method="get">\r
+ <input type="submit" value="<?php echo _AT('marratech_open'); ?>" onclick="window.open('<?php echo $_config['marratech']; ?>/admin/','mywindow','width=800,height=600,scrollbars=yes, resizable=yes', 'false');false;" />\r
+ </form>\r
+ </div>\r
+ </div>\r
+<?php else: ?>\r
+ <div class="input-form">\r
+ <div class="row">\r
+ <p><?php echo _AT('marratech_missing_url'); ?></p>\r
+ </div>\r
+ </div>\r
+<?php endif; ?>\r
+\r
+<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">\r
+ <div class="input-form">\r
+ <div class="row">\r
+ <p><label for="uri"><?php echo _AT('marratech_location'); ?></label></p>\r
+ \r
+ <input type="text" name="uri" value="<?php echo $_config['marratech']; ?>" id="uri" size="80" style="min-width: 95%;" />\r
+ </div>\r
+ <div class="row buttons">\r
+ <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" />\r
+ </div>\r
+ </div>\r
+</form>\r
+<div>\r
+<a href="<?php echo $_SERVER['PHP_SELF']; ?>" onclick="window.open('<?php echo $_config['marratech']; ?>','marratechwin','width=800,height=720,scrollbars=yes, resizable=yes'); return false"><?php echo _AT('marratech_own_window'); ?></a> </li>\r
+\r
+<iframe name="marratech" id="marratech" title="Marratech" frameborder="1" scrolling="auto" src="<?php echo $_config['marratech']; ?>/index.jsp" height="500" width="90%" align="center" style="border:thin white solid; align:center;" allowautotransparency="true"></iframe>\r
+\r
+</div>\r
+<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
--- /dev/null
+<?php\r
+/*******\r
+ * doesn't allow this file to be loaded with a browser.\r
+ */\r
+if (!defined('AT_INCLUDE_PATH')) { exit; }\r
+\r
+/******\r
+ * this file must only be included within a Module obj\r
+ */\r
+if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
+\r
+/*******\r
+ * assign the instructor and admin privileges to the constants.\r
+ */\r
+define('AT_ADMIN_PRIV_MARRATECH', $this->getAdminPrivilege());\r
+\r
+/*******\r
+ * if this module is to be made available to students on the Home or Main Navigation.\r
+ */\r
+$_student_tool = 'mods/marratech/index.php';\r
+\r
+/*******\r
+ * add the admin pages when needed.\r
+ */\r
+if (admin_authenticate(AT_ADMIN_PRIV_MARRATECH, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
+ $this->_pages[AT_NAV_ADMIN] = array('mods/marratech/marratech.php');\r
+ $this->_pages['mods/marratech/marratech.php']['title_var'] = 'marratech';\r
+ $this->_pages['mods/marratech/marratech.php']['parent'] = AT_NAV_ADMIN;\r
+}\r
+\r
+/*******\r
+ * student page.\r
+ */\r
+$this->_pages['mods/marratech/index.php']['title_var'] = 'marratech';\r
+$this->_pages['mods/marratech/index.php']['img'] = 'mods/marratech/marratech_logo.jpg';\r
+\r
+\r
+?>
\ No newline at end of file
--- /dev/null
+# sql file for Marratech module\r
+\r
+INSERT INTO `language_text` VALUES ('en', '_module', 'marratech_missing_url', 'You must supply the URL to your Marratech installation in the field below.', NOW(), '');\r
+\r
+INSERT INTO `language_text` VALUES ('en', '_module','marratech','Marratech',NOW(),'');\r
+INSERT INTO `language_text` VALUES ('en', '_module','marratech_text','Use Marratech to conduct live collaborative activities.',NOW(),'');\r
+INSERT INTO `language_text` VALUES ('en', '_module','marratech_open','Open Marratech Admin',NOW(),'');\r
+INSERT INTO `language_text` VALUES ('en', '_module','marratech_passwordln','(Note: Passwords are case sensitive)',NOW(),'');\r
+INSERT INTO `language_text` VALUES ('en', '_module','marratech_location','The location of your Marratech installation. This should be the base URL of your Marratech Manager installation (e.g. http://www.myserver.com:8000). You can also use the demo site if you don\'t yet have Marratech Manager installed (http://www.marratech.com/meetnow.html), though your will not be able to connect to the server admin tools.',NOW(),'');\r
+INSERT INTO `language_text` VALUES ('en', '_module','marratech_own_window','Open Marratech in a New Window:',NOW(),'');\r
+INSERT INTO `language_text` VALUES ('en', '_msgs','AT_FEEDBACK_MARRATECHURL_ADD_SAVED','Marratech configuration options were successfully saved.',NOW(),'');\r
+INSERT INTO `language_text` VALUES ('en', '_msgs','AT_ERROR_MARRATECHURL_ADD_EMPTY','You must enter a URL to the location of your Marratech installation.',NOW(),'');\r
--- /dev/null
+<?xml version="1.0" encoding="ISO-8859-1"?> \r
+<module version="0.1"> \r
+ <name lang="en">Marratech</name> \r
+ <description lang="en">Marratech is a collaborative Web conferencing environment. Enjoy real-time video with exceptional quality voice plus an interactive whiteboard. Up to five people can meet, talk, see each other and share documents or pictures and make notes on the free version of Marratech Manager.</description> \r
+ <maintainers>\r
+ <maintainer> \r
+ <name>ATutor Team</name> \r
+ <email>info@atutor.ca</email> \r
+ </maintainer>\r
+ </maintainers> \r
+ <url>http://atutor.ca</url> \r
+ <license>BSD</license> \r
+ <release> \r
+ <version>0.1</version> \r
+ <date>2006-07-03</date> \r
+ <state>stable</state> \r
+ <notes>Requires Marratech client be installed on the user's system, and the Marratech Manager on the server the user is connecting to. See http://marratech.com, or http://www.marratech.com/free. </notes> \r
+ </release> \r
+</module>
\ No newline at end of file
--- /dev/null
+<?php\r
+/*******\r
+ * the line below safe-guards this file from being accessed directly from\r
+ * a web browser. It will only execute if required from within an ATutor script,\r
+ * in our case the Module::install() method.\r
+ */\r
+if (!defined('AT_INCLUDE_PATH')) { exit; }\r
+\r
+\r
+$_admin_privilege = TRUE; // possible values: FALSE | TRUE\r
+\r
+\r
+if (!$msg->containsErrors() && file_exists(dirname(__FILE__) . '/module.sql')) {\r
+ // deal with the SQL file:\r
+ require(AT_INCLUDE_PATH . 'classes/sqlutility.class.php');\r
+ $sqlUtility =& new SqlUtility();\r
+\r
+ /*\r
+ * the SQL file could be stored anywhere, and named anything, "module.sql" is simply\r
+ * a convention we're using.\r
+ */\r
+ $sqlUtility->queryFromFile(dirname(__FILE__) . '/module.sql', TABLE_PREFIX);\r
+}\r
+\r
+?>
\ No newline at end of file
--- /dev/null
+#Marratech module for ATutor readme
+
+Be sure Marratech Manager is installed and functioning properly before attempting to install this module. If you do not have an Marratech server installation, you might instead use the demo server as a temporary installation location to test the module
+
+Marratech Demo server:
+http://www.marratech.com/meetnow.html
+
+Requires the Maratech client on the users computer.
+http://www.marratech.com/download_content.html
+
+Installation
+1. Unzip the module into the ATutor mods/ directory.
+2. Login to ATutor as the administrator and run the ATutor administrator's Install Module tool. Select Marratech to install.
+3. Once installed, on the administrator modules screen, enabled to module.
+4. Open the administrator's Marratech screen and enter the URL to the Marratech installion you will be using.
+5. Click on Open Marratech Admin to manage the Marratech server.
+
+
+See http://www.marratech.com for Marratech licensing information.
+
+
--- /dev/null
+<?php \r
+/* start output buffering: */\r
+global $savant, $_config;\r
+ob_start(); ?>\r
+\r
+<?php if($_GET['guest'] != '1'){ ?>\r
+ <form name="loginform" method="post" action="<?php echo $_config['elluminate']; ?>">\r
+ <label for="userName" class="normalbody"><?php echo _AT('elluminate_name'); ?>:</label><br> <input type="text" name="username" id="userName" class="fieldOff" onFocus="doBg('username');" onBlur="dontBg('username');"><br>\r
+ <label for="password" class="normalbody"><?php echo _AT('elluminate_password'); ?>:</label><br> <input type="password" name="password" class="fieldOff" onFocus="doBg('password');" onBlur="dontBg('password');"><br>\r
+ <br><br>\r
+ <input button type="submit" name="submit" value="Login" class="button">\r
+ </form><br />\r
+<?php if($_config['elluminate_pw'] != ''){ ?>\r
+ <a href="<?php echo $_SERVER['PHP_SELF']; ?>?guest=1">Login as a guest</a>\r
+<?php } ?>\r
+<?php }else { ?>\r
+ <form name="loginform" method="post" action="<?php echo $_config['elluminate']; ?>">\r
+ <label for="userName" class="normalbody"><?php echo _AT('elluminate_name'); ?>:</label><br/> \r
+ <br /> <input type="text" name="username" id="userName" class="fieldOff" onFocus="doBg('username');" onBlur="dontBg('username');"><br>\r
+ <input type="hidden" name="password" value="<?php echo $_config['elluminate_pw']; ?>">\r
+ <br><br>\r
+ <input button type="submit" name="submit" value="Login" class="button">\r
+ </form>\r
+<?php } ?>\r
+\r
+<?php\r
+$savant->assign('dropdown_contents', ob_get_contents());\r
+ob_end_clean();\r
+\r
+$savant->assign('title', _AT('elluminate')); // the box title\r
+$savant->display('include/box.tmpl.php');\r
+?>
\ No newline at end of file