a7ca3d62352e507d05dda13d2cb504183736c03e
[atutor.git] / mods / mediawiki / index_public.php
1 <?php\r
2 // This file is disabled by default. To enable it, modify the "public pages" \r
3 // section in the module.php file for this module\r
4 \r
5 \r
6 $_user_location = 'public';\r
7 \r
8 define('AT_INCLUDE_PATH', '../../include/');\r
9 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
10 $_custom_css = $_base_path . 'mods/mediawiki/module.css'; // use a custom stylesheet\r
11 require (AT_INCLUDE_PATH.'header.inc.php');\r
12 \r
13 \r
14 if(!$_COOKIE['mysql_active_user']){\r
15 \r
16 echo '<a href="'.$_config['mw-url'].'index.php?title=Special:UserLogin&returnto=Special:UserLogin" target="toolframe">'._AT('mediawiki_login').'</a>';\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 \r
26 <?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>