-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
237 lines (200 loc) · 11.6 KB
/
config.php
File metadata and controls
237 lines (200 loc) · 11.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?php
include_once('gtd_constants.inc.php');
/******************************************/
/********** Private settings ********/
/******************************************/
include_once('config_private.php');
/******************************************/
/********** Non-private settings ********/
/******************************************/
// $config['timezone'] = 'Australia/Canberra';
// $config['timezone'] = 'America/New_York';
// $config['timezone'] = 'Africa/Casablanca';
// $config['timezone'] = 'Africa/Dakar';
$config['timezone'] = 'Africa/Kampala';
date_default_timezone_set($config['timezone']);
// die('date_default_timezone_set: ' . date_default_timezone_get());
/********* openAI API ************/
# fi_summary.php params
$config['fis_endpoint'] = "https://api.openai.com/v1/completions";
$config['fis_input_length'] = 3000; # limit to 3000 tokens
$config['fis_model'] = "gpt-3.5-turbo-instruct";
$config['fis_temp'] = 0.8; # temperature: creativity = 1, none = 0 (deterministic)
$config['fis_words'] = 5;
# fi_response.php params
$config['fir_endpoint'] = "https://api.openai.com/v1/chat/completions";
$config['fir_freq_pen'] = 0; # frequency penalty
$config['fir_pres_pen'] = 0; # presence penalty
$config['fir_model_5'] = 'gpt-5.2';
$config['fir_model_5_token_word'] = 'max_completion_tokens';
$config['fir_model_5_temp'] = 1; # only default (1) is supported
$config['fir_model_4'] = 'gpt-4';
$config['fir_model_4_token_word'] = 'max_tokens';
$config['fir_model_4_temp'] = 0; # 0 for api determined, 0.1 is deterministic, 0.9 is random
$config['fir_model_3'] = 'gpt-3.5-turbo';
$config['fir_model_3_token_word'] = 'max_tokens';
$config['fir_model_3_temp'] = 0; # 0 for api determined, 0.1 is deterministic, 0.9 is random
$config['fir_max_tkn'] = 1.0; # temperature: creativity = 1, none = 0 (deterministic)
$config['fir_max_tkn'] = 1500; # default if word limit not set
$config['stream'] = FALSE; # not operational
/********* password filter ************/
$config['login_timeout'] = 30; // days
$config['pass_off_minutes'] = 2;
$config['time_now'] = getdate();
$config['time_now'] = $config['time_now'][0];
$file = fopen("config_pass_off_to.txt", "r");
$config['pass_off_to'] = intval(fgets($file));
fclose($file);
if ($config['pass_off_to'] > 0 && $config['time_now'] < $config['pass_off_to']) $config['password_on'] = FALSE;
else $config['password_on'] = TRUE;
$config['pass_back_on'] = date('Y-m-d H:i', $config['pass_off_to']);
/********* Interface Settings ************/
// The following settings change settings for the user interface.
// These can be left at their default values, or changed if you have a different preference.
$config["title"]= 'Intertext'; // site name (appears at the top of each page)
$config["datemask"] = 'Y-m-d'; // date format - required - affects sorting
$config["datemaskYr"] = 'Y-m'; // date format - required - affects sorting
$config["theme"] = 'default'; //default
$config["title_suffix"] = false; // true | false - add filename to title tag
$config["trimLength"] = 2398; // max visible length of descriptions when listing items
$config["trimLengthInReport"] = 0; // max visible length of descriptions when reporting children
$config["firstDayOfWeek"] = 6; // 0=Sunday, 1=Monday, ... 6=Saturday
$config['ReportMaxCompleteChildren']=0; // maximum number of child items of any one type shown in itemReport
$config['useLiveEnhancements']=true; // javascript productivity aids: tested on PC/IE7, PC/Firefox2, Linux/Firefox2, Linux/Epiphany, Linux/Konqueror3
// These are the shortcut settings for menu options. Add a key for any page or page view in the main menus.
// Note IE only allows 26 access keys (a-z).
$acckey = array();
/********* Behavior Settings ************/
// The following settings change how the interface behaves.
// These can be left at their default values, or changed if you have a different preference.
$config["contextsummary"] = 'all'; //all | nextaction (Show all actions on context report, or nextactions only?)
$config["nextaction"] = 'multiple'; //single | multiple (Allow single or multiple nextactions per project)
$config["afterCreate"] = array ( // parent | item | list | another - default view after creating an item
'i' => 'another', // inbox preference
'a' => 'parent', // action preference
'w' => 'parent', // waiting-on preference
'r' => 'parent', // reference preference
'p' => 'item', // project preference
'm' => 'item', // value preference
'v' => 'item', // vision preference
'o' => 'item', // role preference
'g' => 'item' // goal preference
);
// uses initials as above; so o=role, m=value, etc., each in single quotes, separated by commas
$config['suppressAsOrphans']="'i','m','v','o','g','p'";
/********* Customize Weekly Review ************/
$config['reviewProjectsWithoutOutcomes']=true; // false | true - list projects which have no outcome
$config['show7']=true; // false | true - show the Seven Habits of Highly Effective People and Sharpening the Saw in Weekly Review
// Entirely optional: add custom items to the weekly review.
// Uncomment to use, add more fields to the array for more lines.
$custom_review = array(
"x" => "yz",
"m" => "no"
);
/********* Advanced Settings ************/
//Default sort order for each query. The sort order can be overridden within each page.
$sort = array(
"spacecontextselectbox" => "cn.`name` ASC",
"categoryselectbox" => "c.`category` ASC",
"checklistselectbox" => "cl.`title` ASC",
"listselectbox" => "l.`title` ASC",
"parentselectbox" => "i.`title` ASC",
"timecontextselectbox" => "ti.`timeframe` DESC",
"getlistitems" => "li.`item` desc, li.`priority`, li.`notes` asc",
"getlistitemsprioritise" => "li.`priority`, li.`item` desc, li.`notes` asc",
"getlistitemsbulk" => "li.`item` desc, li.`priority`, li.`notes` asc",
"getitemsandparent" => "type ASC, title ASC, ptitle ASC",
// "getitemsandparentTrades" => "type ASC, dateCreated DESC, title ASC, ptitle ASC",
"getorphaneditems" => "ia.`type` ASC, i.`title` ASC",
"selectchecklist" => "cl.`title` ASC",
// "getchecklists" => "c.`category` DESC, sortBy ASC, `title` ASC",
"getchecklists" => "`title` ASC",
// "getlists" => "c.`category` DESC, sortBy ASC",
"getlists" => "`title` ASC",
"searchlists" => "`type` ASC, `sortBy` ASC, `priority` ASC",
### CL item sort order ###
# 'title > notes 4 > prioritise'
"getchecklistitems"
=> "cli.`ignored` DESC, cli.`checked` DESC, cli.`item`, SUBSTRING(cli.`notes`, 1, 4) ASC, cli.`priority`, SUBSTRING(cli.`notes`, 1, 20) ASC",
# 'title 2 > notes 4 > prioritise'
"getchecklistitems_title_notes"
=> "cli.`ignored` DESC, cli.`checked` DESC, SUBSTRING(cli.`item`, 1, 2) ASC, SUBSTRING(cli.`notes`, 1, 4) ASC, cli.`priority`, SUBSTRING(cli.`notes`, 1, 20) ASC",
# 'title > prioritise > notes'
"getchecklistitems_title_prioritise"
=> "cli.`ignored` DESC, cli.`checked` DESC, cli.`item` ASC, cli.`priority`, SUBSTRING(cli.`notes`, 1, 20) ASC",
# 'prioritise > title > notes'
"getchecklistitems_prioritise"
=> "cli.`ignored` DESC, cli.`checked` DESC, cli.`priority`, cli.`item` ASC, SUBSTRING(cli.`notes`, 1, 20) ASC",
## edit items view
# 'title > notes 4 > prioritise'
"getchecklistitemsbulk"
=> "cli.`item`, SUBSTRING(cli.`notes`, 1, 4) ASC, cli.`priority`, SUBSTRING(cli.`notes`, 1, 20) ASC",
# 'title 2 > notes 4 > prioritise'
"getchecklistitemsbulk_title_notes"
=> "SUBSTRING(cli.`item`, 1, 2) ASC, SUBSTRING(cli.`notes`, 1, 4) ASC, cli.`priority`, SUBSTRING(cli.`notes`, 1, 20) ASC",
# 'title > prioritise > notes'
"getchecklistitemsbulk_title_prioritise"
=> "cli.`item` ASC, cli.`priority`, SUBSTRING(cli.`notes`, 1, 20) ASC",
# 'prioritise > title > notes'
"getchecklistitemsbulk_prioritise"
=> "cli.`priority`, cli.`item` ASC, SUBSTRING(cli.`notes`, 1, 20) ASC",
## instance view
"getchecklistitemsinst"
=> "i.`ignored` DESC, i.`checked` DESC, cli.`item` ASC, cli.`notes` ASC",
##########################
"getchildren" => "
CASE WHEN na.`nextaction` IS NULL THEN 0 else 1 END DESC,
i.`sortBy` ASC,
i.`title` ASC,
i.`description` DESC",
// shows by next action then sortBy, then title, the tradeConditionId
"getchildrenTrades" => "
i.`title` ASC,
ia.`tradeConditionId` ASC,
CASE WHEN na.`nextaction` IS NULL THEN 0 else 1 END DESC,
i.`description` ASC
",
"getitems" => "
CASE WHEN its.`dateCompleted` IS NULL THEN 0 else 1 END ASC,
CASE WHEN its.`dateCompleted` IS NULL THEN ia.`isSomeday` ELSE its.`dateCompleted` END ASC,
CASE WHEN its.`dateCompleted` IS NULL THEN i.`title` ELSE its.`dateCompleted` END ASC,
i.`title` ASC", // shows by title, then not someday, then not complete
"getitemsvisn" => "
CASE WHEN its.`dateCompleted` IS NULL THEN 0 else 1 END ASC,
CASE WHEN its.`dateCompleted` IS NULL THEN ia.`isSomeday` ELSE its.`dateCompleted` END ASC,
i.`sortBy` ASC,
i.`title` ASC",
"getqualities" => "`sort` ASC",
"getnotes" => "tk.`date` DESC"
);
$config["storeRecurrences"] = true; // false | true - when recurring items are completed, store each occurrence as a completed item
$config['useTypesForTimeContexts'] = false; // false | true - Time Contexts will be bound to a particular type
$config['separator'] = '^&*#@#%&*%^@$^*$$&%#@#@^^'; // should be an arbitrary string that you'll never use in titles of items; used to separate titles in mysql queries
$config['forceAllFields'] = false; // false | true - all fields will always be displayed on item.php
$config['allowChangingTypes'] = false; // false | true - allows the user to change the types of any item (false=change only inbox items)
$config['showAdmin'] = true; // false | true - adds the Admin option to the menu items
$config['charset'] = 'ISO8859-15'; // character-encoding for pages: utf-8 IS NOT YET SUPPORTED, nor is any other multi-byte character set
$config['withholdVersionInfo']=false; // true | false - if false, will send the version numbers of your installations of gtd-php, PHP and MySQL when you report a bug
$config['addons']=array();
/*
addons go below this line. For example:
*/
$config['addons']['achievements']=array(
'link'=>"addons/achievements/achievements.php",
'title'=>"Completion rates", 'label' => "Achievements",
'where'=>'listItems.php?type=a&tickler=true','when'=>'after',
'options'=>array('jpgraphdir'=>'jpgraph/')
);
$config['formatTidy'] = true; // lazy check of items text formatting, called from cron
/********* Developer Settings ************/
/* The debug value is generally for the developers of the application. You will probably want this to remain 0
Values: (use "|" to combine, "&" to test)
0 - no debugging output
_GTD_DEBUG - display debugging text (there will be lots of it - use debugKey to toggle its display)
_GTD_FREEZEDB - do not execute commands which would otherwise update the items table: use in conjunction with _GTD_DEBUG to display sql commands without running them
_GTD_NOTICE - force the display of PHP notices
_GTD_WAIT - pause after updating an item, to allow user to view processing screen
*/
$config["debug"] = 0; // integer (actually a set of boolean flags)
$config["debugKey"] = 'H'; // the key that will toggle the display of debug text - a letter here must typed in upper case.
// php closing tag has been omitted deliberately, to avoid unwanted blank lines being sent to the browser