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 /***********************************************************************/
15 define('AT_INCLUDE_PATH', '../../../include/');
16 require (AT_INCLUDE_PATH.'vitals.inc.php');
18 admin_authenticate(AT_ADMIN_PRIV_JOB_BOARD);
21 if(isset($_POST['submit'])){
22 $posting_approval = intval($_POST['jb_posting_approval']);
23 if ($posting_approval > 1){
24 $posting_approval = 1;
26 $sql = 'REPLACE INTO '.TABLE_PREFIX."config SET value='$posting_approval', name='jb_posting_approval'";
27 $result = mysql_query($sql, $db);
29 $msg->addError('DB_NOT_UPDATED');
31 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
32 header('Location: preferences.php');
37 include(AT_INCLUDE_PATH.'header.inc.php');
38 $savant->display('admin/jb_preferences.tmpl.php');
39 include(AT_INCLUDE_PATH.'footer.inc.php');