-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.php
243 lines (202 loc) · 10.9 KB
/
config.sample.php
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
238
239
240
241
242
243
<?php
include_once('gtd_constants.inc.php');
/*
Note that for any of these settings, if you wish to set them to blank,
assign them an empty string, rather than deleting the line from the file:
e.g.:
"prefix" => '',
*/
/******************************************/
/********** REQUIRED SETTINGS ********/
/******************************************/
/********* Database Settings ************/
// Database settings are NOT optional.
$config = array(
//connection information
"host" => 'localhost', //the hostname of your database server
"db" => '', //the name of your database
"prefix" => 'gtdphp_', // the GTD table prefix for your installation (optional)
"user" => '', //username for database access
"pass" => '', //database password
//database information
"dbtype" => 'mysql', //database type: currently only mysql is valid. DO NOT CHANGE!
);
/********* openAI API ************/
$config['openAI'] = 'xxx';
# 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
#'gpt-3.5-turbo-16k' # unclear what 16k does (still 4k tokens)
#'gpt-3.5-turbo' # 4k tokens
#'gpt-4'
$config['fir_model_3'] = 'gpt-3.5-turbo';
$config['fir_model_4'] = 'gpt-4';
$config['fir_max_tkn'] = 1.0; # temperature: creativity = 1, none = 0 (deterministic)
$config['fir_max_tkn'] = 1000; # default if word limit not set
$config['stream'] = FALSE; # not operational
/********* IP filter (revert to password) ************/
$ip = include 'config.ip.txt';
$iprange = array(
/* '23.129.106', // mobile
'23.144.107' */
'127.0.0.1'
);
$LOGIN_INFORMATION = array(
'mickey' => 'mouse'
);
$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']);
/******************************************/
/********** OPTIONAL SETTINGS ********/
/******************************************/
/********* 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"]= 'GTD-PHP'; // site name (appears at the top of each page)
$config["datemask"] = 'Y-m-d D'; // date format - required
$config["theme"] = 'default'; //default | menu_sidebar
$config["title_suffix"] = false; // true | false - add filename to title tag
$config["trimLength"] = 72; // max visible length of descriptions when listing items
$config["trimLengthInReport"] = 0; // max visible length of descriptions when reporting children
$config["firstDayOfWeek"] = 0; // 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(
"about.php" => "", // License
"achievements.php" => "", // Achievements
"credits.php" => "", // Credits
"donate.php" => "", // Donate
"item.php?type=a" => "", // add Action
"item.php?type=a&nextonly=true" => "", // add Next Action
"item.php?type=g" => "", // add Goal
"item.php?type=i" => "i", // add Inbox item
"item.php?type=m" => "", // add Value
"item.php?type=o" => "", // add Role
"item.php?type=p" => "p", // add Project
"item.php?type=p&someday=true" => "", // add Someday/Maybe
"item.php?type=r" => "", // add Reference
"item.php?type=v" => "", // add Vision
"item.php?type=w" => "", // add Waiting On
"leadership.php" => "", // Leadership
"listItems.php?quickfind" => "f", // quick find
"listItems.php?type=a" => "a", // Actions
"listItems.php?type=a&nextonly=true"=> "n", // Next Actions
"listItems.php?type=a&tickler=true" => "", // Tickler File
"listItems.php?type=g" => "", // Goals
"listItems.php?type=i" => "", // Inbox
"listItems.php?type=m" => "", // Values
"listItems.php?type=o" => "", // Roles
"listItems.php?type=p" => "v", // Projects
"listItems.php?type=p&someday=true" => "m", // Someday/Maybes
"listItems.php?type=r" => "", // References
"listItems.php?type=v" => "", // Visions
"listItems.php?type=w" => "w", // Waiting On
"listLists.php?type=C" => "c", // Checklists
"listLists.php?type=L" => "l", // Lists
"management.php" => "", // Management
"editLists.php?type=C" => "", // new Checklist
"editLists.php?type=L" => "", // new List
"orphans.php" => "", // Orphaned Items
"preferences.php" => "", // User Preferences
"reportCategory.php" => "", // Categories
"reportContext.php" => "x", // Space Contexts
"reportTimeContext.php" => "", // Time Contexts
"index.php" => "s", // Summary
"weekly.php" => "r" // Weekly Review
);
/********* 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' => 'list', // project preference
'm' => 'item', // value preference
'v' => 'item', // vision preference
'o' => 'item', // role preference
'g' => 'list' // 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']=false; // 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(
"Play the Lottery" => "Before Saturday's drawing!",
"Pay Allowances" => "I want the kids to let me move in after I retire.",
"Check my Oil" => "Check the oil in the car.",
"Send Update" => "Send Weekly Update to Tom"
);
*/
/********* Advanced Settings ************/
//A bit too complicated for the average admin. Will be simplified in a later release.
//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` ASC",
"getitemsandparent" => "type ASC, ptitle ASC, title ASC, deadline ASC, dateCreated DESC",
"getorphaneditems" => "ia.`type` ASC, i.`title` ASC",
"selectchecklist" => "cl.`title` ASC",
"getchecklists" => "c.`category` ASC",
"getlists" => "c.`category` ASC",
"getchecklistitems" => "cli.`checked` DESC, cli.`item` ASC",
"getchildren" => "its.`dateCompleted` DESC, ia.`deadline` DESC, i.`title` ASC",
"getitems" => "i.`title` 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'=>"Notable Achievements", 'label' => "Achievements",
'where'=>'listItems.php?type=a&tickler=true','when'=>'after',
'options'=>array('jpgraphdir'=>'../jpgraph/'));*/
/********* 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