if-block rewrittten, some TODOs/default added
[mailer.git] / DOCS / TODOs.txt
1 ### WARNING: THIS FILE IS AUTO-GENERATED BY DOCS/todo-builder.sh (1000/quix0r) ###
2 ### DO NOT EDIT THIS FILE. ###
3 ./beg.php:197:                  // @TODO Opps, what is missing here???
4 ./doubler.php:275:// @TODO Rewrite all constants
5 ./inc/cache/config-local.php:120:// @TODO Rewrite the following three constants, somehow...
6 ./inc/config-functions.php:182: // @TODO Make this all better... :-/
7 ./inc/config-functions.php:207: // @TODO Rewrite these all to config entries, if somehow possible
8 ./inc/extensions/ext-sql_patches.php:705:                                               // @TODO Rewrite this to a filter!
9 ./inc/extensions/ext-sql_patches.php:743:                                       // @TODO Can we remove this? setConfigEntry('verbose_sql'        , 'N');
10 ./inc/extensions/ext-sql_patches.php:93:                /* @TODO SQL_ALTER_TABLE() should work now properly
11 ./inc/extensions/ext-surfbar.php:237:                           // @TODO Set some constants we need???
12 ./inc/extensions.php:355:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
13 ./inc/extensions.php:431:               // @TODO Extension is loaded, what next?
14 ./inc/functions.php:1224:       // @TODO Rewrite this unnice code
15 ./inc/functions.php:1285:       // @TODO Remove this if() block if all is working fine
16 ./inc/functions.php:1585:               // @TODO This can be, somehow, rewritten
17 ./inc/functions.php:211:        // @TODO Remove this sanity-check if all is fine
18 ./inc/functions.php:2459:                       $GLOBALS['cache_instance']->destroyCacheFile(); // @TODO isn't it better to do $GLOBALS['cache_instance']->destroyCacheFile('revision')?
19 ./inc/functions.php:2461:                       // @TODO shouldn't do the unset and the reloading $GLOBALS['cache_instance']->destroyCacheFile() Or a new methode like forceCacheReload('revision')?
20 ./inc/functions.php:250:                        // @TODO Fine all templates which are using these direct variables and rewrite them.
21 ./inc/functions.php:251:                        // @TODO After this step is done, this else-block is history
22 ./inc/functions.php:2522:// @TODO Please describe this function
23 ./inc/functions.php:2534:       searchDirsRecursive($next_dir, $last_changed); // @TODO small change to API to $last_changed = searchDirsRecursive($next_dir, $time);
24 ./inc/functions.php:2617:               // @TODO Add a little more infos here
25 ./inc/functions.php:2628:       // @TODO This cannot be rewritten to app_die(), try to find a solution for this.
26 ./inc/functions.php:2785:                       // @TODO Are these convertions still required?
27 ./inc/functions.php:2803:// @TODO Rewrite this function to use readFromFile() and writeToFile()
28 ./inc/functions.php:466:// @TODO Rewrite this to an extension 'smtp'
29 ./inc/install-inc.php:20: * @TODO Rewrite all constants in this include file                     *
30 ./inc/language/de.php:1159:// @TODO Rewrite these two constants
31 ./inc/language/de.php:1175:// @TODO Rewrite these five constants
32 ./inc/language/de.php:756:// @TODO The template 'admin_extensions_installed' is using this. But the template is no longer used.
33 ./inc/language/de.php:855:// @TODO Are these constants still used?
34 ./inc/language/de.php:866:// @TODO Are these constants longer used?
35 ./inc/language-functions.php:45:// @TODO Rewrite all language constants to this function.
36 ./inc/language/holiday_de.php:49:// @TODO Rewrite these two constants to one
37 ./inc/language/rallye_de.php:110:// @TODO Rewrite following two lines to one
38 ./inc/language/refback_de.php:46:// @TODO Rewrite these constants to one
39 ./inc/language/sponsor_de.php:118:// @TODO Rewrite these four constants to one and use sprintf()
40 ./inc/libs/cache_functions.php:238:                     // @TODO remove from $GLOBALS['cache_array']!!!
41 ./inc/libs/cache_functions.php:384:     // @TODO Add support for more types which break in last else-block
42 ./inc/libs/doubler_functions.php:46:// @TODO Lame description
43 ./inc/libs/nickname_functions.php:59:           // @TODO Can we replace this with GET_TOTAL_DATA() ?
44 ./inc/libs/rallye_functions.php:631:    $EXPIRE = getConfig('one_day') * 3; // @TODO The hard-coded value...
45 ./inc/libs/rallye_functions.php:661:                    // @TODO Rewrite this to a function
46 ./inc/libs/rallye_functions.php:697:            // @TODO Rewrite this to our API function
47 ./inc/libs/register_functions.php:53:           // @TODO Rewrite these constants
48 ./inc/libs/register_functions.php:62:   // @TODO Rewrite these constants, too
49 ./inc/libs/surfbar_functions.php:1481:          // @TODO This can be somehow rewritten
50 ./inc/libs/surfbar_functions.php:954:   // @TODO Invalid salt should be refused
51 ./inc/libs/task_functions.php:261:              // @TODO These can be rewritten to filter
52 ./inc/libs/task_functions.php:53:// @TODO Move all extension-dependent queries into filters
53 ./inc/libs/user_functions.php:317:                              // @TODO Make this filter working: $ADDON = runFilterChain('post_login_update', $content);
54 ./inc/libs/user_functions.php:342:                              // @TODO Make this filter working: $URL = runFilterChain('do_login', array('content' => $content, 'addon' => $ADDON));
55 ./inc/libs/user_functions.php:377:                      // @TODO Can this query be merged with above query?
56 ./inc/libs/yoomedia_functions.php:65:   $response = YOOMEDIA_QUERY_API('out_textmail.php', true); // @TODO Ask Yoo!Media for test script
57 ./inc/load_config.php:77:       // @TODO Rewrite them to avoid this else block
58 ./inc/load_extensions.php:13: * @TODO Rewrite this whole file to load_cache-extensions.php           *
59 ./inc/mails/birthday_mails.php:85:                      // @TODO 4 is hard-coded here, should we move it out in config?
60 ./inc/modules/admin/admin-inc.php:343:          // @TODO Rewrite this to $content = SQL_FETCHARRAY()
61 ./inc/modules/admin/admin-inc.php:390:                                  // @TODO Rewrite this to $content = SQL_FETCHARRAY()
62 ./inc/modules/admin/admin-inc.php:504:          // @TODO Rewrite these both constants
63 ./inc/modules/admin/admin-inc.php:530:          // @TODO Try to rewrite this to $content = SQL_FETCHARRAY(). Please look some lines above for the dynamic query
64 ./inc/modules/admin/overview-inc.php:144:                               // @TODO Rewrite this to a filter
65 ./inc/modules/admin/overview-inc.php:154:                                       // @TODO Can this SQL be encapsulated in a function, so all similar queries can be rewritten?
66 ./inc/modules/admin/overview-inc.php:190:                                               // @TODO Should we init sql_notes here or inside REGISTER_EXTENSION()?
67 ./inc/modules/admin/overview-inc.php:253:                               // @TODO Rewrite this to something with include files
68 ./inc/modules/admin/overview-inc.php:291:                                               // @TODO This may also be rewritten to include files
69 ./inc/modules/admin/overview-inc.php:293:                                                       default: // @TODO Unknown support mode
70 ./inc/modules/admin/overview-inc.php:425:                       // @TODO Try to move this in includes
71 ./inc/modules/admin/overview-inc.php:444:                       // @TODO Rewritings: admin->assigned_admin,uid->userid,type->task_type_msg in template
72 ./inc/modules/admin.php:257:    // @TODO Rewrite all these constants
73 ./inc/modules/admin.php:95:                                     // @TODO Why is this set to 'done'?
74 ./inc/modules/admin/what-add_points.php:120:                    // @TODO Rewrite these both constants
75 ./inc/modules/admin/what-add_points.php:54:             // @TODO Rewrite this constant
76 ./inc/modules/admin/what-add_surfbar_url.php:57:        // @TODO Find all convertSelectionsToTimestamp() calls and rewrite REQUEST_POST() calls to $POST
77 ./inc/modules/admin/what-admin_add.php:121:                             // @TODO This can be somehow rewritten to a function
78 ./inc/modules/admin/what-admin_add.php:62:              // @TODO Cant this be rewritten?
79 ./inc/modules/admin/what-admin_add.php:78:              // @TODO This can be somehow rewritten to a function
80 ./inc/modules/admin/what-adminedit.php:250:             // @TODO Rewrite this constant
81 ./inc/modules/admin/what-admins_mails.php:100:          // @TODO Rewrite this constant
82 ./inc/modules/admin/what-admins_mails.php:173:          // @TODO Rewrite this constant
83 ./inc/modules/admin/what-admins_mails.php:61:                           // @TODO Can this be rewritten???
84 ./inc/modules/admin/what-chk_regs.php:62:               // @TODO Rewritings: sname->surname,fname->family,ip->REMOTE_ADDR,ref->refid,hash->user_hash in template
85 ./inc/modules/admin/what-chk_regs.php:81:       // @TODO Rewrite this constant
86 ./inc/modules/admin/what-config_admins.php:154: // @TODO Rewrite this to filter 'run_sqls'
87 ./inc/modules/admin/what-config_admins.php:164:         // @TODO This causes the whole (!) menu cache being rebuild
88 ./inc/modules/admin/what-config_cats.php:192:           // @TODO Rewrite this constant
89 ./inc/modules/admin/what-config_cats.php:199:   // @TODO Rewrite this constant
90 ./inc/modules/admin/what-config_mods.php:139:           // @TODO Rewritings: mod->module in template
91 ./inc/modules/admin/what-config_mods.php:161:   // @TODO Rewrite this constant
92 ./inc/modules/admin/what-config_payouts.php:145:                // @TODO Rewrite this constant
93 ./inc/modules/admin/what-config_payouts.php:231:        // @TODO Rewrite this constant
94 ./inc/modules/admin/what-config_points.php:269:                         // @TODO Rewritings: lvl->level, per->percents in template
95 ./inc/modules/admin/what-config_rallye_prices.php:203:                          // @TODO Rewritings: level->price_level, infos->info in template
96 ./inc/modules/admin/what-config_rallye_prices.php:220:                  // @TODO Rewrite these two constants
97 ./inc/modules/admin/what-config_rallye_prices.php:248:                  // @TODO Rewritings: aid->admin_id, alogin->login in template
98 ./inc/modules/admin/what-config_register.php:68:        // @TODO Move this HTML code into a template
99 ./inc/modules/admin/what-config_register.php:85:// @TODO Rewrite this constant
100 ./inc/modules/admin/what-config_rewrite.php:97: // @TODO Rewrite this constant
101 ./inc/modules/admin/what-del_transfer.php:106:// @TODO Rewrite all these constants
102 ./inc/modules/admin/what-del_transfer.php:76:           // @TODO Rewritings: idx->trans_id in template
103 ./inc/modules/admin/what-edit_emails.php:113:           // @TODO Yet another constant to rewrite
104 ./inc/modules/admin/what-edit_emails.php:60:            // @TODO More constants to rewrite
105 ./inc/modules/admin/what-edit_emails.php:95:                    // @TODO Rewritings: subj->subject in template
106 ./inc/modules/admin/what-extensions.php:159:            // @TODO Rewrite this constant
107 ./inc/modules/admin/what-extensions.php:338:                                            // @TODO Rewrite this to a filter
108 ./inc/modules/admin/what-guest_add.php:123:                             // @TODO This can be somehow rewritten to a function
109 ./inc/modules/admin/what-guest_add.php:62:              // @TODO Cant this be rewritten?
110 ./inc/modules/admin/what-guest_add.php:78:              // @TODO This can be somehow rewritten to a function
111 ./inc/modules/admin/what-guestedit.php:284:             // @TODO Rewrite this constant
112 ./inc/modules/admin/what-list_autopurge.php:55:// @TODO Rewrite those lines to filter
113 ./inc/modules/admin/what-list_autopurge.php:78:         // @TODO Rewritings: sname->surname,fname->family in templates
114 ./inc/modules/admin/what-list_autopurge.php:98: // @TODO Rewrite this constant
115 ./inc/modules/admin/what-list_beg.php:85:                       // @TODO Rewrite templates so s/fname will be replaced by surname/family
116 ./inc/modules/admin/what-list_beg.php:86:                       // @TODO to shorten this block. Please also do so with uid->userid
117 ./inc/modules/admin/what-list_cats.php:92:                      // @TODO Rewrite this constant
118 ./inc/modules/admin/what-list_country.php:181:                  // @TODO Rewritings: name->descr,status->is_active in template
119 ./inc/modules/admin/what-list_holiday.php:82:   // @TODO Rewrite this constant
120 ./inc/modules/admin/what-list_links.php:96:                             // @TODO Find a way to rewrite this. See some lines above for different queries
121 ./inc/modules/admin/what-list_newsletter.php:64:        // @TODO Currently under construction!
122 ./inc/modules/admin/what-list_rallyes.php:231:          // @TODO Rewrite this constant
123 ./inc/modules/admin/what-list_rallyes.php:255:                  // @TODO Rewritings: uid->userid,opoints->curr_points,old->refs in template
124 ./inc/modules/admin/what-list_rallyes.php:309:                  // @TODO Rewritings: aid->admin_id in template
125 ./inc/modules/admin/what-list_sponsor.php:155:                  // @TODO Rewritings: sname->surname,fname->family,ip->remote_addr in template
126 ./inc/modules/admin/what-list_sponsor.php:178:          // @TODO Rewrite this constant
127 ./inc/modules/admin/what-list_sponsor.php:73:           // @TODO Rewrite this huge amount of constants
128 ./inc/modules/admin/what-list_task.php:129:             // @TODO Rewrite these templates to one and add $OUT
129 ./inc/modules/admin/what-list_task.php:164:                     // @TODO Rewritings: admin->assigned_admin,uid->userid,type->task_type_msg in template
130 ./inc/modules/admin/what-list_task.php:176:                             // @TODO Rewrite this to $OUT .= ..., true, ...
131 ./inc/modules/admin/what-list_task.php:180:                             // @TODO Rewrite this to $OUT .= ..., true, ...
132 ./inc/modules/admin/what-list_transfer.php:86:// @TODO Rewrite these constants
133 ./inc/modules/admin/what-list_unconfirmed.php:116:                              // @TODO Rewritings: uid->userid
134 ./inc/modules/admin/what-list_unconfirmed.php:68:       // @TODO This constant might be unused?
135 ./inc/modules/admin/what-list_unconfirmed.php:80:       // @TODO "Please do not call me directly." Should be rewritten to a nice selection depending on ext-bonus
136 ./inc/modules/admin/what-list_unconfirmed.php:90:               // @TODO Rewrite this to $content = SQL_FETCHARRAY(), look some lines above for two differrent queries
137 ./inc/modules/admin/what-list_user.php:160:             // @TODO Rewrite these to filters
138 ./inc/modules/admin/what-list_user.php:285:             // @TODO Rewrite this into a  filter
139 ./inc/modules/admin/what-list_user.php:337:                     // @TODO Rewrite this into a filter
140 ./inc/modules/admin/what-lock_user.php:133:                             // @TODO Rewrite these all constants
141 ./inc/modules/admin/what-logs.php:69:                   // @TODO Fix content-type here
142 ./inc/modules/admin/what-logs.php:72:                   // @TODO Fix content-type here
143 ./inc/modules/admin/what-mem_add.php:121:                               // @TODO This can be somehow rewritten to a function
144 ./inc/modules/admin/what-mem_add.php:63:                // @TODO Cant this be rewritten?
145 ./inc/modules/admin/what-mem_add.php:79:                // @TODO This can be somehow rewritten to a function
146 ./inc/modules/admin/what-memedit.php:252:               // @TODO Rewrite this constant
147 ./inc/modules/admin/what-memedit.php:288:               // @TODO Rewrite this constant
148 ./inc/modules/admin/what-payments.php:154:                      // @TODO Rewritings: title->mail_title, pay->payment in template
149 ./inc/modules/admin/what-refbanner.php:127:     // @TODO Rewrite this constant
150 ./inc/modules/admin/what-refbanner.php:149:                     // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template
151 ./inc/modules/admin/what-refbanner.php:168:             // @TODO Rewrite this constant
152 ./inc/modules/admin/what-repair_amnu.php:85:// @TODO This causes the whole (!) menu cache being rebuilded
153 ./inc/modules/admin/what-send_newsletter.php:86:        // @TODO Rewrite this constant
154 ./inc/modules/admin/what-sub_points.php:105:                    // @TODO Rewrite these constants
155 ./inc/modules/admin/what-sub_points.php:53:     // @TODO Rewrite this constant
156 ./inc/modules/admin/what-theme_check.php:126:                   // @TODO Move this HTML code to a template "admin_theme_row"
157 ./inc/modules/admin/what-unlock_sponsor.php:188:                // @TODO Rewritings: remote->remote_addr, created->sponsor_created in template
158 ./inc/modules/admin/what-usage.php:88:  // @TODO This code is double, see LOAD_TEMPLATE and LOAD_EMAIL_TEMPLATE in functions.php
159 ./inc/modules/admin/what-usr_online.php:107:            // @TODO Rewrite this constant
160 ./inc/modules/admin/what-usr_online.php:51:     // @TODO Rewrite these constants
161 ./inc/modules/admin/what-usr_online.php:52:     // @TODO Add a filter for sponsor
162 ./inc/modules/guest/what-mediadata.php:186:// @TODO Rewrite these all if-blocks to filters
163 ./inc/modules/guest/what-mediadata.php:49:// @TODO Rewrite all constants
164 ./inc/modules/guest/what-mediadata.php:69:      // @TODO Find a better formular than this one
165 ./inc/modules/guest/what-register.php:196:      // @TODO Rewrite these all to a single filter
166 ./inc/modules/guest/what-register.php:273:      // @TODO Rewrite this to a filter
167 ./inc/modules/guest/what-sponsor_infos.php:67:          // @TODO Rewritings: conv->conv_rate,name->conv_name in template
168 ./inc/modules/guest/what-sponsor_infos.php:87:                  // @TODO Rewritings: name->pay_name,min->pay_min_count,min->pay_min_count,curr->pay_currency
169 ./inc/modules/guest/what-sponsor_reg.php:284:           // @TODO Swap this HTML code to templates
170 ./inc/modules/guest/what-sponsor_reg.php:298:           // @TODO Rewrite this constant
171 ./inc/modules/guest/what-sponsor_reg.php:304:                   // @TODO Rewrite these constants
172 ./inc/modules/guest/what-stats.php:110:         // @TODO This can be somehow rewritten
173 ./inc/modules/guest/what-stats.php:123:         // @TODO Rewrite all these constants
174 ./inc/modules/guest/what-stats.php:192:                 // @TODO Rewrite this to one template and $OUT .= ....
175 ./inc/modules/guest/what-top10.php:107:// @TODO Rewrite this constant
176 ./inc/modules/guest/what-top10.php:145: // @TODO Rewritings: nick->nickname,uid->userid in template
177 ./inc/modules/guest/what-top10.php:177:// @TODO Rewrite this constant
178 ./inc/modules/guest/what-top10.php:215: // @TODO Rewritings: nick->nickname,uid->userid in template
179 ./inc/modules/guest/what-top10.php:248:// @TODO Rewrite this constant
180 ./inc/modules/guest/what-top10.php:255:// @TODO Rewrite this constant
181 ./inc/modules/guest/what-top10.php:74:  // @TODO Rewritings: uid->userid,nick->nickname,logins->total_logins in template
182 ./inc/modules/guest/what-wernis_portal.php:85://  @TODO Can this be removed? $rdf->clear_cache();
183 ./inc/modules/member/what-bonus.php:55: // @TODO Rewrite this to a filter
184 ./inc/modules/member/what-categories.php:112:           // @TODO Rewrite this to use $OUT .= ...
185 ./inc/modules/member/what-mydata.php:53:// @TODO Try to rewrite this constant
186 ./inc/modules/member/what-order.php:411:                        // @TODO Rewrite this to a filter
187 ./inc/modules/member/what-order.php:506:                                         // @TODO Rewrite this old lost code to a template
188 ./inc/modules/member/what-payout.php:132:                               // @TODO Rewritings: acc->target_account,bank->target_bank in templates
189 ./inc/modules/member/what-payout.php:148:                       // @TODO Rewrite this constant
190 ./inc/modules/member/what-payout.php:182:               // @TODO Rewrite these constants
191 ./inc/modules/member/what-payout.php:190:                               // @TODO Rewrite this constant
192 ./inc/modules/member/what-payout.php:235:                                       // @TODO Rewrite this to a filter
193 ./inc/modules/member/what-points.php:54:// @TODO Should we rewrite this to a filter?
194 ./inc/modules/member/what-reflinks.php:105:             // @TODO Rewritings: alt->alternate,cnt->counter,cks->clicks,uid->userid in template
195 ./inc/modules/member/what-transfer.php:116:                             // @TODO Rewrite all these constants to array elements
196 ./inc/modules/member/what-transfer.php:247:                             // @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
197 ./inc/modules/member/what-transfer.php:309:                             // @TODO Rewrite these constants
198 ./inc/modules/member/what-transfer.php:317:                             // @TODO Rewrite these constants
199 ./inc/modules/member/what-transfer.php:329:                     // @TODO This should be somehow rewritten to $content = SQL_FETCHARRAY(), see switch() block above for SQL queries
200 ./inc/modules/member/what-transfer.php:364:             // @TODO Rewrite these constants
201 ./inc/modules/member/what-transfer.php:451:                             // @TODO Rewrite all these constants
202 ./inc/modules/member/what-unconfirmed.php:134:  // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
203 ./inc/mysql-manager.php:1552:                   // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
204 ./inc/mysql-manager.php:1595:                   // @TODO Rewrite this to a filter
205 ./inc/mysql-manager.php:1773:                           // @TODO Find a way for updating $_CONFIG here
206 ./inc/mysql-manager.php:1797:           // @TODO Find a way for updating $_CONFIG here
207 ./inc/mysql-manager.php:1820:// @TODO Can this be rewritten to a filter?
208 ./inc/mysql-manager.php:1882:                   // @TODO Rewrite this to $content = SQL_FETCHARRAY()
209 ./inc/mysql-manager.php:199:                    // @TODO Nothing helped???
210 ./inc/mysql-manager.php:2176:           // @TODO This can be somehow rewritten
211 ./inc/mysql-manager.php:513:    // @TODO Why is this global??? #100
212 ./inc/mysql-manager.php:950:                    // @TODO Why does this lead into an endless loop but we still need it???
213 ./inc/mysql-manager.php:951:                    // @TODO Commented out redirectToUrl('admin.php');
214 ./inc/wrapper-functions.php:152:// @TODO Implement $compress
215 ./inc/wrapper-functions.php:159:// @TODO Implement $decompress
216 ./inc/wrapper-functions.php:391:// @TODO Do some more sanity check here
217 ./mailid.php:140:                                       // @TODO Rewrite this to a filter
218 ./mailid.php:185:                                                       // @TODO Rewrite these constants
219 ./mailid.php:221:       // @TODO Rewrite this to a filter
220 ./mailid.php:96:                // @TODO Rewrite this to a filter
221 ./mailid_top.php:137:                                   // @TODO Rewrite this to a filter
222 ./mailid_top.php:184:                                                   // @TODO Rewrite this to a filter
223 ./mailid_top.php:191:                                                                   // @TODO Rewrite this to a filter
224 ./mailid_top.php:224:                                                                   // @TODO Rewrite these constants
225 ./mailid_top.php:229:                                                                   // @TODO Rewrite these blocks to filter
226 ./mailid_top.php:90:            // @TODO Rewrite this to a filter
227 ./show_bonus.php:106:                   // @TODO Rewrite this constant
228 ./surfbar.php:69:       // @TODO Display quick login form here or redirect as configured
229 ### ### DEPRECATION FOLLOWS: ### ###
230 ./inc/functions.php:235:        // @DEPRECATED Try to rewrite the if() condition
231 ./inc/functions.php:249:                        // @DEPRECATED
232 ./inc/language-functions.php:55:                // @DEPRECATED Language array element found in BIG_LETTERS
233 ./inc/language-functions.php:58:                // @DEPRECATED Deprecated constant found