2 /***********************************************************************/
4 /***********************************************************************/
5 /* Copyright (c) 2002-2009 */
6 /* Adaptive Technology Resource Centre / Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /***********************************************************************/
14 define('AT_INCLUDE_PATH', '../../../include/');
15 require (AT_INCLUDE_PATH.'vitals.inc.php');
18 if(isset($_POST['submit'])){
19 $max_memory = intval($_POST['pa_max_memory']);
20 if ($max_memory <= 0){
21 $msg->addError('PA_MEMORY_INPUT_ERROR');
23 $sql = 'UPDATE '.TABLE_PREFIX."config SET value='$max_memory' WHERE name='pa_max_memory_per_member'";
24 $result = mysql_query($sql, $db);
26 $msg->addError('PA_MEMORY_SQL_ERROR');
28 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
29 header('Location: preferences.php');
35 require (AT_INCLUDE_PATH.'header.inc.php');
36 $savant->assign('max_memory', $_config['pa_max_memory_per_member']);
37 $savant->display('admin/pa_preferences.tmpl.php');
38 require (AT_INCLUDE_PATH.'footer.inc.php');