3 This is the ATutor admin ePresence module page.
\r
5 define('AT_INCLUDE_PATH', '../../include/');
\r
6 require (AT_INCLUDE_PATH.'vitals.inc.php');
\r
9 if (isset($_POST['submit'])) {
\r
10 $_POST['uri'] = trim($_POST['uri']);
\r
12 if (!$_POST['uri']){
\r
13 $msg->addError('EPRESENCEURL_ADD_EMPTY');
\r
16 if (!$msg->containsErrors()) {
\r
17 $_POST['uri'] = $addslashes($_POST['uri']);
\r
18 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('epresence', '$_POST[uri]')";
\r
19 mysql_query($sql, $db);
\r
20 $msg->addFeedback('EPRESENCEURL_ADD_SAVED');
\r
22 header('Location: '.$_SERVER['PHP_SELF']);
\r
27 require (AT_INCLUDE_PATH.'header.inc.php');
\r
31 <?php if ($_config['epresence']): ?>
\r
34 <div class="input-form">
\r
36 <p><?php echo _AT('epresence_missing_url'); ?></p>
\r
41 <form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
\r
42 <div class="input-form">
\r
44 <p><label for="uri"><?php echo _AT('epresence_location'); ?></label></p>
\r
46 <input type="text" name="uri" value="<?php echo $_config['epresence']; ?>" id="uri" size="80" style="min-width: 95%;" />
\r
49 <div class="row buttons">
\r
50 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" />
\r
54 <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
56 <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
58 <?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>