changed git call from https to git readonly
[atutor.git] / mods / elluminate / index.php
1 <?php\r
2 define('AT_INCLUDE_PATH', '../../include/');\r
3 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
4 $_custom_css = $_base_path . 'mods/elluminate/module.css'; // use a custom stylesheet\r
5 require (AT_INCLUDE_PATH.'header.inc.php');\r
6 ?>\r
7 <div id="elluminate">\r
8 <?php if($_GET['guest'] != '1'){ ?>\r
9             <table width="35%" border="0" cellspacing="0" cellpadding="0" class="logintable" align="center">\r
10               <tr>\r
11                 <td>\r
12                   <p class="sideindent1"><img src="mods/elluminate/elluminate_logo.gif" align="center" alt=""><br> <?php echo _AT('elluminate_loginname'); ?><?php echo _AT('elluminate_passwordln'); ?></p>\r
13                   <table width="100%" border="0" cellspacing="0" cellpadding="6">\r
14                     <tr>\r
15                       <td>\r
16                         <form name="loginform" method="post" action="<?php echo $_config['elluminate']; ?>">\r
17                           <label for="userName" class="normalbody"><?php echo _AT('elluminate_name'); ?>:</label><br> <input type="text" name="username" class="fieldOff" onFocus="doBg('username');" onBlur="dontBg('username');"><br>\r
18 \r
19                           <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
20                           <br><br>\r
21                           <input button type="submit" name="submit" value="Login" class="button">\r
22                         </form><br />\r
23                         <?php if($_config['elluminate_pw'] != ''){ ?>\r
24                                 <a href="<?php echo $_SERVER['PHP_SELF']; ?>?guest=1"><?php echo _AT('elluminate_guest'); ?></a>\r
25                         <?php } ?>\r
26                       </td>\r
27                     </tr>\r
28                   </table>\r
29                 </td>\r
30               </tr>\r
31             </table>\r
32 <?php }else { ?>\r
33         <table width="35%" border="0" cellspacing="0" cellpadding="0" class="logintable" align="center">\r
34               <tr>\r
35                 <td>\r
36                   <p class="sideindent1"><img src="mods/elluminate/elluminate_logo.gif" align="center" alt=""><br>                       <?php echo _AT('elluminate_loginname'); ?><br /></p>\r
37                   <table width="100%" border="0" cellspacing="0" cellpadding="6">\r
38                     <tr>\r
39                       <td>\r
40                         <form name="loginform" method="post" action="<?php echo $_config['elluminate']; ?>">\r
41 \r
42                         <label for="userName" class="normalbody">   <?php echo _AT('elluminate_name'); ?></label><br> <input type="text" name="username" class="fieldOff" onFocus="doBg('username');" onBlur="dontBg('username');"><br>\r
43                           <input type="hidden" name="password" value="<?php echo  $_config['elluminate_pw']; ?>">\r
44                           <br><br>\r
45 \r
46                           <input button type="submit" name="submit" value="Login" class="button">\r
47                         </form>\r
48 \r
49                       </td>\r
50                     </tr>\r
51                   </table>\r
52                 </td>\r
53               </tr>\r
54             </table>\r
55 <?php } ?>\r
56 </div>\r
57 <?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>