# You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Or read it online: http://www.gnu.org/licenses/licenses.html#GPL # #------------------------------------------------------------------------- #END_LICENSE // fill out the template $smarty->assign('startform', $this->CreateFormStart($id, 'do_setprefs')); $months = array(); for ($i = 520; $i > 0; $i--) { $months[$i] = $i; } $smarty->assign('auto_create_unknown', $this->GetPreference('auto_create_unknown', 0)); $auth_modules = module_helper::get_modules_with_method('GetFEUAuthConsumer'); $auth_modules = cge_array::hash_prepend($auth_modules, '__BUILTIN__', $this->Lang('auth_builtin')); $smarty->assign('auth_modules', $auth_modules); $smarty->assign('auth_module', $this->GetPreference('auth_module', '__BUILTIN__')); $smarty->assign('input_randomusername', RRUtils::myCreateInputCheckbox($id, 'input_randomusername', 1, $this->GetPreference('use_randomusername', 0))); $smarty->assign('input_expireage', $this->CreateInputDropdown($id, 'input_expireage', $months, -1, $this->GetPreference('expireage_months', 260))); $smarty->assign('prompt_sessiontimeout', $this->Lang('prompt_sessiontimeout')); $smarty->assign('input_sessiontimeout', $this->CreateInputText($id, 'input_sessiontimeout', $this->GetPreference('user_session_expires'), 6, 6)); $smarty->assign('prompt_requireonegroup', $this->Lang('prompt_requireonegroup')); $smarty->assign('input_requireonegroup', RRUtils::myCreateInputCheckbox($id, 'input_requireonegroup', 1, $this->GetPreference('require_onegroup'))); $smarty->assign('prompt_feusers_specific_permissions', $this->Lang('prompt_feusers_specific_permissions')); $smarty->assign('input_feusers_specific_permissions', RRUtils::myCreateInputCheckbox($id, 'input_feusers_specific_permissions', 1, $this->GetPreference('feusers_specific_permissions'))); $smarty->assign('info_feusers_specific_permissions', $this->Lang('info_feusers_specific_permissions')); $smarty->assign('prompt_dfltgroup', $this->Lang('prompt_dfltgroup')); $groups1 = $this->GetGroupList(); $groups = array_merge(array("None" => -1), $groups1); $smarty->assign('input_dfltgroup', $this->CreateInputDropDown($id, 'input_dfltgroup', $groups, -1, $this->GetPreference('default_group')));
$policies['none'] = $this->Lang('policy_none'); $policies['individual'] = $this->Lang('policy_individual'); $smarty->assign('overlap_policies', $policies); $smarty->assign('overlap_policy', $this->GetPreference('overlap_policy', 'all')); $overlap_actions = array(); $overlap_actions['remove'] = $this->Lang('overlap_action_remove'); $overlap_actions['error'] = $this->Lang('overlap_action_error'); $smarty->assign('overlap_actions', $overlap_actions); $smarty->assign('overlap_action', $this->GetPreference('overlap_action', 'error')); $prefix = $this->GetPreference('url_prefix'); if (!$prefix) { $prefix = 'calendar'; } $smarty->assign('url_prefix', $prefix); $smarty->assign('dflt_starttime', $this->GetPreference('dflt_starttime', '12:00')); $smarty->assign('dflt_alldayevent', $this->GetPreference('dflt_alldayevent', 0)); $smarty->assign('firstdayofweek', $this->GetPreference('firstdayofweek', 1)); $smarty->assign('dayoptions', array(0 => $this->Lang('sunday'), 1 => $this->Lang('monday'))); $smarty->assign('ical_holidays', $this->GetPreference('ical_holidays')); $smarty->assign('holiday_fgcolor', $this->GetPreference('holiday_fgcolor', '#000000')); $smarty->assign('holiday_bgcolor', $this->GetPreference('holiday_bgcolor', '#ccffff7')); $smarty->assign('submit', $this->CreateInputSubmit($id, 'submit', $this->Lang('cal_updatesettings'))); $feu = cge_utils::get_module('FrontEndUsers'); if ($feu) { $tmp = $feu->GetGroupList(); $tmp = cge_array::hash_prepend($tmp, $this->Lang('none'), -1); $smarty->assign('grouplist', array_flip($tmp)); $smarty->assign('frontend_group', $this->GetPreference('frontend_group', -1)); } echo $this->ProcessTemplate('settings.tpl'); // EOF