removed mods directory from the ATutor codebase
[atutor.git] / mods / photos / admin / preferences.php
diff --git a/mods/photos/admin/preferences.php b/mods/photos/admin/preferences.php
deleted file mode 100644 (file)
index a2d2145..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/***********************************************************************/
-/* ATutor                                                                                                                         */
-/***********************************************************************/
-/* Copyright (c) 2002-2009                                                                                        */
-/* Adaptive Technology Resource Centre / Inclusive Design Institute    */
-/* http://atutor.ca                                                                                                       */
-/*                                                                                                                                        */
-/* This program is free software. You can redistribute it and/or          */
-/* modify it under the terms of the GNU General Public License            */
-/* as published by the Free Software Foundation.                                          */
-/***********************************************************************/
-// $Id$
-define('AT_INCLUDE_PATH', '../../../include/');
-require (AT_INCLUDE_PATH.'vitals.inc.php');
-
-//save config files.
-if(isset($_POST['submit'])){
-       $max_memory = intval($_POST['pa_max_memory']);
-       if ($max_memory <= 0){
-               $msg->addError('PA_MEMORY_INPUT_ERROR');
-       } else {
-               $sql = 'UPDATE '.TABLE_PREFIX."config SET value='$max_memory' WHERE name='pa_max_memory_per_member'";
-               $result = mysql_query($sql, $db);
-               if ($reuslt===false){
-                       $msg->addError('PA_MEMORY_SQL_ERROR');
-               } else {
-                       $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
-                       header('Location: preferences.php');
-                       exit;
-               }
-       }
-}
-
-require (AT_INCLUDE_PATH.'header.inc.php');
-$savant->assign('max_memory', $_config['pa_max_memory_per_member']);
-$savant->display('admin/pa_preferences.tmpl.php');
-require (AT_INCLUDE_PATH.'footer.inc.php');
-?>