Licensed under the GNU GPL v3 license. See file COPYRIGHT for details. */ require_once('./init.php'); if($needAuth && !is_logged()) { die("Access denied!
Disable password protection or Log in."); } if(isset($_POST['save'])) { stop_gpc($_POST); $t = array(); $langs = getLangs(); Config::$params['lang']['options'] = array_keys($langs); Config::set('lang', _post('lang')); if(isset($_POST['password']) && $_POST['password'] != '') Config::set('password', $_POST['password']); elseif(!_post('allowpassword')) Config::set('password', ''); Config::set('smartsyntax', (int)_post('smartsyntax')); Config::set('autotz', (int)_post('autotz')); Config::set('autotag', (int)_post('autotag')); Config::set('session', _post('session')); Config::set('firstdayofweek', (int)_post('firstdayofweek')); Config::set('duedateformat', (int)_post('duedateformat')); Config::set('clock', (int)_post('clock')); Config::set('dateformat', _post('dateformat')); Config::set('dateformatshort', _post('dateformatshort')); Config::set('title', trim(_post('title'))); Config::save(); $t['saved'] = 1; echo json_encode($t); exit; } function _c($key) { return Config::get($key); } function getLangs() { if (!$h = opendir('./lang')) return false; $a = array(); while(false !== ($file = readdir($h))) { if(preg_match('/(.+)\.php$/', $file, $m) && $file != 'class.default.php') { $a[$m[1]] = $m[1]; } } closedir($h); return $a; } function selectOptions($a, $value, $default=null) { if(!$a) return ''; $s = ''; if($default !== null && !isset($a[$value])) $value = $default; foreach($a as $k=>$v) { $s .= ''; } return $s; } ?>

Settings

Title:
(specify if you want to change default title)
Language:
Password protection:

New password:
(leave blank if won't change current password)
>
Smart syntax:
(/priority/ task /tags/)

Automatic timezone:
(determines timezone offset of user environment with javascript)

Autotagging:
(automatically adds tag of current tag filter to newly created task)

Session handling mechanism:
(in <mytinytodo_dir>/tmp/sessions)
First day of week:
Duedate calendar format:
Date format:
Short Date format:
Clock format: