changed git call from https to git readonly
[atutor.git] / mods / mediawiki / index_mystart.php
1 <?php\r
2 $_user_location = 'users';\r
3 define('AT_INCLUDE_PATH', '../../include/');\r
4 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
5 $_custom_css = $_base_path . 'mods/mediawiki/module.css'; // use a custom stylesheet\r
6 require (AT_INCLUDE_PATH.'header.inc.php');\r
7 \r
8 \r
9 if($_GET['p']){\r
10         $p = $addslashes($_GET['p']);\r
11 }\r
12 \r
13 if(!$_COOKIE['mysql_active_user']){\r
14 \r
15 echo '<a href="'.$_config['mw-url'].'index.php?title=Special:UserLogin&returnto=Special:UserLogin" target="toolframe">'._AT('mediawiki_login').'</a>';\r
16 \r
17 }\r
18 ?>\r
19 \r
20 <iframe src="<?php echo $_config['mw-url']; ?><?php if($p){ echo "index.php/".$p;} ?>" width="95%" height="500" style="border:none;" name="toolframe">\r
21 <p><?php echo _AT('mediawiki_no_iframe',$_config['mw-url']); ?>"><?php echo _AT('mediawiki_login'); ?></a></p>\r
22 </iframe>\r
23 \r
24 \r
25 <?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>