removed mods directory from the ATutor codebase
[atutor.git] / mods / plog / admin_plog.php
diff --git a/mods/plog/admin_plog.php b/mods/plog/admin_plog.php
deleted file mode 100644 (file)
index b98a49e..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php\r
-/*\r
-This is the ATutor admin plog module page. It allows an admin user\r
-to set or edit  the URL for the plog installation for ATutor, and edit\r
-the plog location URL.\r
-*/\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-\r
-// switch the comments in the two lines to switch between LifeType 1.0.2 and 1.1\r
-//require ('sync_plog11.php');\r
-require ('sync_plog.php');\r
-\r
-\r
-// Insert the initial pLog location in the ATutor config table\r
-if($_REQUEST['saved_plog_url'] == 1){\r
-       if($_REQUEST['plog_url'] == ''){\r
-                       $msg->addError('PLOG_URL_ADD_EMPTY');\r
-       }else{\r
-               $plog_url = addslashes(stripslashes($_REQUEST['plog_url']));\r
-               $sql = "INSERT INTO ".TABLE_PREFIX."config VALUES('plog', '".$plog_url."')";\r
-               if(!$result = mysql_query($sql)){\r
-                       $msg->addError('PLOG_URL_ADD_FAILED');\r
-               }else{\r
-                       $msg->addFeedback('PLOG_URL_ADD_SAVED');\r
-               }\r
-       }\r
-}\r
-\r
-// Update the pLog location if it is being edited\r
-if($_REQUEST['edited_plog_url'] == 1){\r
-       if($_REQUEST['plog_url'] == ''){\r
-\r
-                       $msg->addError('PLOG_URL_ADD_EMPTY');\r
-                       //      $_POST['edit_plog_url'] = 1;\r
-                       \r
-       }else{\r
-\r
-               $plog_url = addslashes(stripslashes($_REQUEST['plog_url']));\r
-               $sql = "UPDATE ".TABLE_PREFIX."config SET  value='".$plog_url."' WHERE name = 'plog'";\r
-               if(!$result = mysql_query($sql)){\r
-\r
-                       $msg->addError('PLOG_URL_ADD_FAILED');\r
-\r
-               }else{\r
-\r
-                       $msg->addFeedback('PLOG_URL_ADD_SAVED');\r
-               }\r
-       }\r
-}\r
-\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
-\r
-while($row = mysql_fetch_array($result)){\r
-       $plog_url_db = $row[1];\r
-}\r
-\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-\r
-// Display the form the enter the initial pLog URL, or display the form to edit the location\r
-if($plog_url_db == '' || $_POST['edit_plog_url']){ \r
-\r
-?>\r
-               <div class="input-form">\r
-               <div class="row">\r
-                       <p><?php echo _AT('plog_add_url'); ?>\r
-               </p>\r
-                       <div class="row buttons">\r
-                       <form action="<?php $_SERVER['PHP_SELF']?>" method="post">\r
-\r
-                       <?php if($_POST['edit_plog_url']){ ?>\r
-                               <input type="hidden" name="edited_plog_url" value="1">\r
-                       <?php }else{ ?>\r
-                               <input type="hidden" name="saved_plog_url" value="1">\r
-                       <?php } ?>\r
-                       <?php if($_POST['edit_plog_url']){ ?>\r
-                               <input type="text" name="plog_url" value="<?php echo $plog_url_db; ?>" size="80" length="150" />\r
-                               <?php }else{ ?>\r
-                               <input type="text" name="plog_url" value="<?php echo $plog_url; ?>" size="80" length="150" />\r
-                       \r
-                       <?php } ?>      \r
-                       <input type="submit" value="<?php echo _AT('plog_save'); ?>" style="botton">\r
-                       </form>\r
-                       </div>\r
-               </div>\r
-               </div>\r
-\r
-<?php }else{?>\r
-\r
-               <div class="input-form">\r
-               <div class="row">\r
-                       <p><?php echo _AT('plog_sync'); ?></p>\r
-                       <p>     <strong><?php echo $plog_sync; ?> </strong>                                                                     </p>\r
-                       <div class="row buttons">\r
-                       <form action="<?php  $_SERVER['PHP_SELF']; ?>" method="post">\r
-                       <input type="hidden" name="plog_sync" value="1">\r
-                       <input type="submit" value="<?php echo _AT('plog_sync_button'); ?>" style="botton">\r
-                       </form>\r
-                       </div>\r
-               </div>\r
-               </div>\r
-               <div class="input-form">\r
-               <div class="row">\r
-                       <p><?php echo _AT('plog_location'); ?></p>\r
-                       <p>     <strong><?php echo $plog_url_db; ?> </strong>                                                                   </p>\r
-                       <div class="row buttons">\r
-                       <form action="<?php  $_SERVER['PHP_SELF']; ?>" method="post">\r
-                       <input type="hidden" name="edit_plog_url" value="1">\r
-                       <input type="submit" value="<?php echo _AT('plog_edit'); ?>" style="botton">\r
-                       </form>\r
-                       </div>\r
-               </div>\r
-               </div>\r
-\r
-\r
-               <div class="input-form">\r
-               <div class="row">\r
-\r
-<?php } \r
-// Display the pLog admin screen, or login screen\r
-?>\r
-       <iframe name="plog" id="plog" title="pLog" scrolling="yes" src="<?php echo $plog_url_db; ?>admin.php" height="800" width="100%" align="center" style="border:thin white solid; align:center;"></iframe>\r
-<?php\r
-\r
- require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file