+++ /dev/null
-<?php\r
-/*\r
-This is the ATutor admin ePresence module page. \r
-*/\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-\r
-\r
-if (isset($_POST['submit'])) {\r
- $_POST['uri'] = trim($_POST['uri']);\r
-\r
- if (!$_POST['uri']){\r
- $msg->addError('EPRESENCEURL_ADD_EMPTY');\r
- }\r
- \r
- if (!$msg->containsErrors()) {\r
- $_POST['uri'] = $addslashes($_POST['uri']);\r
- $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('epresence', '$_POST[uri]')";\r
- mysql_query($sql, $db);\r
- $msg->addFeedback('EPRESENCEURL_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['epresence']): ?>\r
-\r
-<?php else: ?>\r
- <div class="input-form">\r
- <div class="row">\r
- <p><?php echo _AT('epresence_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('epresence_location'); ?></label></p>\r
- \r
- <input type="text" name="uri" value="<?php echo $_config['epresence']; ?>" id="uri" size="80" style="min-width: 95%;" />\r
- </div>\r
-\r
- <div class="row buttons">\r
- <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" />\r
- </div>\r
- </div>\r
-</form>\r
-<a href="<?php echo $_SERVER['PHP_SELF']; ?>" onclick="window.open('<?php echo $_config['epresence']; ?>','epresencewin','width=800,height=720,scrollbars=yes, resizable=yes'); return false"><?php echo _AT('epresence_own_window'); ?></a> </li>\r
-\r
-<iframe name="epresence" id="epresence" title="ePresence" scrolling="yes" src="<?php echo $_config['epresence']; ?>" height="800" width="90%" align="center" style="border:thin white solid; align:center;"></iframe>\r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file