+++ /dev/null
-<?php\r
-/*\r
-This is the ATutor admin plog module page. It allows an admin user\r
-to access all blog admin features through the default blog created\r
-when LifeType/pLog was installed.\r
-*/\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-\r
-//////////\r
-//Check to see if the url to plog exists in the db \r
-$sql = 'SELECT * from '.TABLE_PREFIX.'config WHERE name="plog"';\r
-$result = mysql_query($sql, $db);\r
-while($row = mysql_fetch_array($result)){\r
- $plog_url_db = $row[1];\r
-}\r
-if($plog_url_db == ''){\r
-\r
- $msg->addInfo('PLOG_URL_ADD_REQUIRED');\r
- require (AT_INCLUDE_PATH.'header.inc.php');\r
- require (AT_INCLUDE_PATH.'footer.inc.php');\r
-\r
-}else{\r
-\r
- require (AT_INCLUDE_PATH.'header.inc.php');\r
- $sql="SELECT * FROM ".TABLE_PREFIX."admins WHERE login='$_SESSION[login]'";\r
- $result = mysql_query($sql, $db);\r
- \r
- while($row = mysql_fetch_array($result)){\r
- $pw = $row[1];\r
- }\r
- \r
- ?>\r
- <iframe name="plog" id="plog" title="pLog" scrolling="yes" src="<?php echo $plog_url_db; ?>summary.php" height="800" width="90%" align="center" style="border:thin white solid; align:center;"></iframe>\r
- <?php \r
- \r
- \r
- require (AT_INCLUDE_PATH.'footer.inc.php'); \r
-\r
-}?>
\ No newline at end of file