function get_access_levels()
{
    //T1000.php only
    return array('modeluser' => is_modeluser() ? 1 : 0, 'admin' => is_admin() ? 1 : 0, 'member' => is_logged_in() ? 1 : 0);
}
 * @copyright (C) 2005-2010 University of Sydney Digital Innovation Unit.
 * @link: http://HeuristScholar.org
 * @license http://www.gnu.org/licenses/gpl-3.0.txt
 * @package Heurist academic knowledge management system
 * @todo
 **/
/* too complicated to do with t-1000 */
define('SAVE_URI', 'disabled');
require_once dirname(__FILE__) . '/../../common/php/dbMySqlWrappers.php';
require_once dirname(__FILE__) . '/../../common/connect/applyCredentials.php';
require_once dirname(__FILE__) . '/../../common/t1000/.ht_stdefs';
if (!is_logged_in()) {
    header('Location: ' . HEURIST_BASE_URL . 'common/connect/login.php?db=' . HEURIST_DBNAME);
    return;
}
if (is_modeluser()) {
    //	header('Location: ' . HEURIST_BASE_URL . 'legacy/popup_usercopy.php');	//FIXME: no popup_usercopy.php
    return;
}
define('MODEL_USER_ID', $_REQUEST['model_user_id'] ? $_REQUEST['model_user_id'] : 96);
mysql_connection_overwrite(DATABASE);
$updated = 0;
if (@$_REQUEST['submit']) {
    $updated = update_my_settings();
}
?>
<html>
<head>
 <title>Update settings from model user</title>
 <link rel="stylesheet" type="text/css" href="<?php 
echo HEURIST_SITE_PATH;