A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / DOCS / TODOs.txt
index 096d83001ea33a8b61a0aac55b9a32899979ac59..57f39e1de7c81fb2dd613cf0bfb9fafb50c90e0d 100644 (file)
 ### WARNING: THIS FILE IS AUTO-GENERATED BY DOCS/todo-builder.sh ###
 ### DO NOT EDIT THIS FILE. ###
-./inc/extensions/ext-sql_patches.php:740:                      // @TODO Rewrite this to a filter!
-./inc/extensions/ext-sql_patches.php:778:              // @TODO Can we remove this? setConfigEntry('verbose_sql'        , "N");
-./inc/extensions/ext-nickname.php:204: // @TODO|@DEPRECATED Please rewrite these constants, LOAD_CONFIG() is no more needed in extensions
-./inc/modules/guest/what-wernis_portal.php:80://  @TODO Can this be removed? $rdf->clear_cache();
-./inc/modules/guest/what-sponsor_reg.php:279:          // @TODO Swap this HTML code to templates
-./inc/modules/guest/what-register.php:194:     // @TODO Rewrite this to a single filter
-./inc/modules/member/what-bonus.php:50:        // @TODO Rewrite this to a filter
-./inc/modules/member/what-order.php:500:                                       // @TODO Rewrite this old lost code to a template
-./inc/modules/admin/what-config_admins.php:149:                // @TODO This causes the whole (!) menu cache being rebuild
-./inc/modules/admin/what-logs.php:64:                  // @TODO Fix content-type here
-./inc/modules/admin/what-logs.php:67:                  // @TODO Fix content-type here
+./beg.php:191:                         // @TODO Opps, what is missing here???
+./inc/extensions/ext-sql_patches.php:744:                      // @TODO Rewrite this to a filter!
+./inc/extensions/ext-sql_patches.php:782:              // @TODO Can we remove this? setConfigEntry('verbose_sql'        , "N");
+./inc/extensions.php:270:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
+./inc/functions.php:1238:      // @TODO Rewrite this unnice code
+./inc/functions.php:1299:      // @TODO Remove this if() block if all is working fine
+./inc/functions.php:1599:              // @TODO This can be, somehow, rewritten
+./inc/functions.php:2322:// @TODO Rewrite all language constants to this function.
+./inc/functions.php:255:                       // @TODO Fine all templates which are using these direct variables and rewrite them.
+./inc/functions.php:256:                       // @TODO After this step is done, this else-block is history
+./inc/functions.php:2624:              // @TODO Add a little more infos here
+./inc/functions.php:2730:// @TODO Implement $compress
+./inc/functions.php:2737:// @TODO Implement $decompress
+./inc/functions.php:2840:      // @TODO We may want to switch over to UTF-8 here!
+./inc/functions.php:2848:// @TODO Rewrite this function to use READ_FILE() and WRITE_FILE()
+./inc/functions.php:471:// @TODO Rewrite this to an extension 'smtp'
+./inc/language/rallye_de.php:105:// @TODO Rewrite following two lines to one
+./inc/language/sponsor_de.php:119:// @TODO These three constants should be moved into a template
+./inc/libs/cache_functions.php:371:    // @TODO Add support for more types which break in last else-block
+./inc/libs/doubler_functions.php:41:// @TODO Lame description
+./inc/libs/nickname_functions.php:54:          // @TODO Can we replace this with GET_TOTAL_DATA() ?
+./inc/libs/rallye_functions.php:630:   $EXPIRE = getConfig('one_day') * 3; // @TODO The hard-coded value...
+./inc/libs/rallye_functions.php:660:                   // @TODO Rewrite this to a function
+./inc/libs/rallye_functions.php:699:           // @TODO Rewrite this to our API function
+./inc/libs/register_functions.php:48:          // @TODO Rewrite these constants
+./inc/libs/surfbar_functions.php:1420:         // @TODO This can be somehow rewritten
+./inc/libs/surfbar_functions.php:912:  // @TODO Invalid salt should be refused
+./inc/libs/task_functions.php:256:             // @TODO These can be rewritten to filter
+./inc/libs/task_functions.php:48:// @TODO Move all extension-dependent queries into filters
+./inc/libs/user_functions.php:306:                     // @TODO Make this filter working: $ADDON = runFilterChain('post_login_update', array('login' => $login, 'online' => $online));
+./inc/libs/user_functions.php:330:                     // @TODO Make this filter working: $URL = runFilterChain('do_login', array('uid' => $uid, 'hash' => $hash, 'addon' => $ADDON));
+./inc/libs/user_functions.php:365:             // @TODO Can this query be merged with above query?
+./inc/libs/yoomedia_functions.php:60:  $response = YOOMEDIA_QUERY_API("out_textmail.php", true); // @TODO Ask Yoo!Media for test script
+./inc/loader/load_cache-config.php:45: // @TODO: Do we really need to cache the config???
+./inc/load_extensions.php:13: * @TODO Rewrite this whole file to load_cache-extensions.php           *
+./inc/mails/birthday_mails.php:80:                     // @TODO 4 is hard-coded here, should we move it out in config?
+./inc/modules/admin/admin-inc.php:338:         // @TODO Rewrite this to $content = SQL_FETCHARRAY()
+./inc/modules/admin/admin-inc.php:381:                                 // @TODO Rewrite this to $content = SQL_FETCHARRAY()
+./inc/modules/admin/admin-inc.php:446: // @TODO Is this eval longer needed?
+./inc/modules/admin/admin-inc.php:500:         // @TODO Rewrite these both constants
+./inc/modules/admin/admin-inc.php:526:         // @TODO Try to rewrite this to $content = SQL_FETCHARRAY(). Please look some lines above for the dynamic query
+./inc/modules/admin/overview-inc.php:225:                              // @TODO Rewrite this to something with include files
+./inc/modules/admin/overview-inc.php:264:                                      // @TODO This may also be rewritten to include files
+./inc/modules/admin/overview-inc.php:267:                                      default: // @TODO Unknown support mode
+./inc/modules/admin/overview-inc.php:385:              // @TODO Rewrite this to one template and use $OUT = ...
+./inc/modules/admin/overview-inc.php:415:                      // @TODO Rewritings: admin->assigned_admin,uid->userid,type->task_type_msg in template
+./inc/modules/admin/overview-inc.php:427:                              // @TODO Rewrite this to $OUT .= ..., true, ...
+./inc/modules/admin/overview-inc.php:431:                              // @TODO Rewrite this to $OUT .= ..., true, ...
+./inc/modules/admin.php:89:                            // @TODO Why is this set to 'done'?
+./inc/modules/admin/what-add_points.php:115:                   // @TODO Rewrite these both constants
+./inc/modules/admin/what-add_points.php:49:            // @TODO Rewrite this constant
+./inc/modules/admin/what-admin_add.php:114:                            // @TODO This can be somehow rewritten to a function
+./inc/modules/admin/what-admin_add.php:72:             // @TODO This can be somehow rewritten to a function
+./inc/modules/admin/what-adminedit.php:245:            // @TODO Rewrite this constant
+./inc/modules/admin/what-admins_add.php:63:    // @TODO Do we still need this ugly code here?
+./inc/modules/admin/what-admins_mails.php:168:         // @TODO Rewrite this constant
+./inc/modules/admin/what-admins_mails.php:56:                          // @TODO Can this be rewritten???
+./inc/modules/admin/what-admins_mails.php:95:          // @TODO Rewrite this constant
+./inc/modules/admin/what-chk_regs.php:57:              // @TODO Rewritings: sname->surname,fname->family,ip->REMOTE_ADDR,ref->refid,hash->user_hash in template
+./inc/modules/admin/what-chk_regs.php:76:      // @TODO Rewrite this constant
+./inc/modules/admin/what-config_admins.php:155:                // @TODO This causes the whole (!) menu cache being rebuild
+./inc/modules/admin/what-config_cats.php:187:          // @TODO Rewrite this constant
+./inc/modules/admin/what-config_cats.php:194:  // @TODO Rewrite this constant
+./inc/modules/admin/what-config_mods.php:134:          // @TODO Rewritings: mod->module in template
+./inc/modules/admin/what-config_mods.php:156:  // @TODO Rewrite this constant
+./inc/modules/admin/what-config_payouts.php:139:               // @TODO Rewrite this constant
+./inc/modules/admin/what-config_payouts.php:225:       // @TODO Rewrite this constant
+./inc/modules/admin/what-config_points.php:257:                                // @TODO Rewritings: lvl->level, per->percents in template
+./inc/modules/admin/what-config_rallye_prices.php:198:                         // @TODO Rewritings: level->price_level, infos->info in template
+./inc/modules/admin/what-config_rallye_prices.php:215:                 // @TODO Rewrite these two constants
+./inc/modules/admin/what-config_rallye_prices.php:243:                 // @TODO Rewritings: aid->admin_id, alogin->login in template
+./inc/modules/admin/what-config_register.php:63:       // @TODO Move this HTML code into a template
+./inc/modules/admin/what-config_register.php:80:// @TODO Rewrite this constant
+./inc/modules/admin/what-config_rewrite.php:92:        // @TODO Rewrite this constant
+./inc/modules/admin/what-del_transfer.php:101:// @TODO Rewrite all these constants
+./inc/modules/admin/what-del_transfer.php:71:          // @TODO Rewritings: idx->trans_id in template
+./inc/modules/admin/what-edit_emails.php:108:          // @TODO Yet another constant to rewrite
+./inc/modules/admin/what-edit_emails.php:55:           // @TODO More constants to rewrite
+./inc/modules/admin/what-edit_emails.php:90:                   // @TODO Rewritings: subj->subject in template
+./inc/modules/admin/what-guest_add.php:117:                            // @TODO This can be somehow rewritten to a function
+./inc/modules/admin/what-guest_add.php:72:             // @TODO This can be somehow rewritten to a function
+./inc/modules/admin/what-guestedit.php:279:            // @TODO Rewrite this constant
+./inc/modules/admin/what-list_autopurge.php:50:// @TODO Rewrite those lines to filter
+./inc/modules/admin/what-list_autopurge.php:73:                // @TODO Rewritings: sname->surname,fname->family in templates
+./inc/modules/admin/what-list_autopurge.php:93:        // @TODO Rewrite this constant
+./inc/modules/admin/what-list_beg.php:80:                      // @TODO Rewrite templates so s/fname will be replaced by surname/family
+./inc/modules/admin/what-list_beg.php:81:                      // @TODO to shorten this block. Please also do so with uid->userid
+./inc/modules/admin/what-list_cats.php:87:                     // @TODO Rewrite this constant
+./inc/modules/admin/what-list_country.php:175:                 // @TODO Rewritings: name->descr,status->is_active in template
+./inc/modules/admin/what-list_holiday.php:77:  // @TODO Rewrite this constant
+./inc/modules/admin/what-list_links.php:91:                            // @TODO Find a way to rewrite this. See some lines above for different queries
 ./inc/modules/admin/what-list_newsletter.php:59:       // @TODO Currently under construction!
-./inc/modules/admin/what-usage.php:83: // @TODO This code is double, see LOAD_TEMPLATE and LOAD_EMAIL_TEMPLATE in functions.php
-./inc/modules/admin/what-admins_add.php:65:    // @TODO Do we need this ugly code here?
+./inc/modules/admin/what-list_rallyes.php:226:         // @TODO Rewrite this constant
+./inc/modules/admin/what-list_rallyes.php:250:                 // @TODO Rewritings: uid->userid,opoints->curr_points,old->refs in template
+./inc/modules/admin/what-list_rallyes.php:304:                 // @TODO Rewritings: aid->admin_id in template
+./inc/modules/admin/what-list_sponsor.php:150:                 // @TODO Rewritings: sname->surname,fname->family,ip->remote_addr in template
+./inc/modules/admin/what-list_sponsor.php:173:         // @TODO Rewrite this constant
+./inc/modules/admin/what-list_sponsor.php:68:          // @TODO Rewrite this huge amount of constants
+./inc/modules/admin/what-list_task.php:124:            // @TODO Rewrite these templates to one and add $OUT
+./inc/modules/admin/what-list_task.php:159:                    // @TODO Rewritings: admin->assigned_admin,uid->userid,type->task_type_msg in template
+./inc/modules/admin/what-list_task.php:171:                            // @TODO Rewrite this to $OUT .= ..., true, ...
+./inc/modules/admin/what-list_task.php:175:                            // @TODO Rewrite this to $OUT .= ..., true, ...
+./inc/modules/admin/what-list_transfer.php:81:// @TODO Rewrite these constants
+./inc/modules/admin/what-list_unconfirmed.php:114:             // @TODO Rewrite this constant
+./inc/modules/admin/what-list_unconfirmed.php:123:                             // @TODO Rewritings: uid->userid
+./inc/modules/admin/what-list_unconfirmed.php:87:              // @TODO Rewrite this to $content = SQL_FETCHARRAY(), look some lines above for two differrent queries
+./inc/modules/admin/what-list_unconfirmed.php:95:              // @TODO Rewrite these constants
 ./inc/modules/admin/what-list_user.php:155:            // @TODO Rewrite these to filters
 ./inc/modules/admin/what-list_user.php:280:            // @TODO Rewrite this into a  filter
 ./inc/modules/admin/what-list_user.php:332:                    // @TODO Rewrite this into a filter
-./inc/modules/admin/what-theme_check.php:123:                  // @TODO Move this HTML code to a template "admin_theme_row"
-./inc/modules/admin/what-admins_mails.php:58:                          // @TODO Can this be rewritten???
-./inc/modules/admin/overview-inc.php:227:                              // @TODO Rewrite this to something with include files
-./inc/modules/admin/overview-inc.php:266:                                      // @TODO This may also be rewritten to include files
-./inc/modules/admin/overview-inc.php:269:                                      default: // @TODO Unknown support mode
-./inc/modules/admin/what-repair_amenu.php:79:// @TODO This causes the whole (!) menu cache being rebuilded
-./inc/modules/admin.php:92:                            // @TODO Why is this set to 'done'?
-./inc/libs/yoomedia_functions.php:60:  $response = YOOMEDIA_QUERY_API("out_textmail.php", true); // @TODO Ask Yoo!Media for test script
-./inc/libs/task_functions.php:48:// @TODO Move all extension-dependent queries into filters
-./inc/libs/rallye_functions.php:653:   $EXPIRE = getConfig('one_day') * 3; // @TODO The hard-coded value...
-./inc/libs/rallye_functions.php:717:           // @TODO Rewrite this to our API function
-./inc/libs/doubler_functions.php:41:// @TODO Lame description
-./inc/libs/surfbar_functions.php:920:  // @TODO Invalid salt should be refused
-./inc/libs/user_functions.php:306:                     // @TODO Make this filter working: $ADDON = RUN_FILTER('post_login_update', array('login' => $login, 'online' => $online));
-./inc/libs/user_functions.php:330:                     // @TODO Make this filter working: $URL = RUN_FILTER('do_login', array('uid' => $uid, 'hash' => $hash, 'addon' => $ADDON));
-./inc/libs/user_functions.php:365:             // @TODO Can this query be merged with above query?
-./inc/libs/nickname_functions.php:56:          // @TODO Can we replace this with GET_TOTAL_DATA() ?
-./inc/loader/load_cache-config.php:49: // @TODO: Do we really need to cache the config???
-./inc/extensions.php:272:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
-./inc/functions.php:255:                       // @TODO Fine all templates which are using these direct variables and rewrite them.
-./inc/functions.php:256:                       // @TODO After this step is done, this else-block is history
-./inc/functions.php:1301:      // @TODO Remove this if() block if all is working fine
-./inc/functions.php:2010:// @TODO Can this function be deprecated?
-./inc/functions.php:2913:// @TODO Rewrite all language constants to this function.
-./inc/functions.php:3148:      // @TODO Try to find all locations where an FQFN is given to these two
-./inc/functions.php:3149:      // @TODO functions and avoid it.
-./inc/functions.php:3215:              // @TODO Add a little more infos here
-./inc/functions.php:3321:// @TODO Implement $compress
-./inc/functions.php:3328:// @TODO Implement $decompress
-./inc/functions.php:3431:      // @TODO We may want to switch over to UTF-8 here!
-./inc/functions.php:3439:// @TODO Rewrite this function to use READ_FILE() and WRITE_FILE()
-./inc/mysql-manager.php:1715:                          // @TODO Find a way for updating $_CONFIG here
-./inc/mysql-manager.php:1739:          // @TODO Find a way for updating $_CONFIG here
-./beg.php:191:                         // @TODO Opps, what is missing here???
+./inc/modules/admin/what-logs.php:64:                  // @TODO Fix content-type here
+./inc/modules/admin/what-logs.php:67:                  // @TODO Fix content-type here
+./inc/modules/admin/what-mem_add.php:115:                              // @TODO This can be somehow rewritten to a function
+./inc/modules/admin/what-mem_add.php:73:               // @TODO This can be somehow rewritten to a function
+./inc/modules/admin/what-memedit.php:250:              // @TODO Rewrite this constant
+./inc/modules/admin/what-memedit.php:286:              // @TODO Rewrite this constant
+./inc/modules/admin/what-payments.php:149:                     // @TODO Rewritings: title->mail_title, pay->payment in template
+./inc/modules/admin/what-refbanner.php:122:    // @TODO Rewrite this constant
+./inc/modules/admin/what-refbanner.php:144:                    // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template
+./inc/modules/admin/what-refbanner.php:163:            // @TODO Rewrite this constant
+./inc/modules/admin/what-repair_amenu.php:80:// @TODO This causes the whole (!) menu cache being rebuilded
+./inc/modules/admin/what-send_newsletter.php:81:       // @TODO Rewrite this constant
+./inc/modules/admin/what-sub_points.php:100:                   // @TODO Rewrite these constants
+./inc/modules/admin/what-sub_points.php:48:    // @TODO Rewrite this constant
+./inc/modules/admin/what-theme_check.php:121:                  // @TODO Move this HTML code to a template "admin_theme_row"
+./inc/modules/admin/what-unlock_sponsor.php:183:               // @TODO Rewritings: remote->remote_addr, created->sponsor_created in template
+./inc/modules/admin/what-usage.php:83: // @TODO This code is double, see LOAD_TEMPLATE and LOAD_EMAIL_TEMPLATE in functions.php
+./inc/modules/admin/what-usr_online.php:102:           // @TODO Rewrite this constant
+./inc/modules/admin/what-usr_online.php:46:    // @TODO Rewrite these constants
+./inc/modules/admin/what-usr_online.php:47:    // @TODO Add a filter for sponsor
+./inc/modules/guest/what-mediadata.php:183:// @TODO Rewrite these all if-blocks to filters
+./inc/modules/guest/what-register.php:196:     // @TODO Rewrite this to a single filter
+./inc/modules/guest/what-sponsor_infos.php:62:         // @TODO Rewritings: conv->conv_rate,name->conv_name in template
+./inc/modules/guest/what-sponsor_infos.php:82:                 // @TODO Rewritings: name->pay_name,min->pay_min_count,min->pay_min_count,curr->pay_currency
+./inc/modules/guest/what-sponsor_reg.php:279:          // @TODO Swap this HTML code to templates
+./inc/modules/guest/what-sponsor_reg.php:293:          // @TODO Rewrite this constant
+./inc/modules/guest/what-sponsor_reg.php:299:                  // @TODO Rewrite these constants
+./inc/modules/guest/what-stats.php:105:        // @TODO This can be somehow rewritten
+./inc/modules/guest/what-stats.php:118:        // @TODO Rewrite all these constants
+./inc/modules/guest/what-stats.php:187:                // @TODO Rewrite this to one template and $OUT .= ....
+./inc/modules/guest/what-top10.php:102:// @TODO Rewrite this constant
+./inc/modules/guest/what-top10.php:140:        // @TODO Rewritings: nick->nickname,uid->userid in template
+./inc/modules/guest/what-top10.php:172:// @TODO Rewrite this constant
+./inc/modules/guest/what-top10.php:210:        // @TODO Rewritings: nick->nickname,uid->userid in template
+./inc/modules/guest/what-top10.php:243:// @TODO Rewrite this constant
+./inc/modules/guest/what-top10.php:250:// @TODO Rewrite this constant
+./inc/modules/guest/what-top10.php:69: // @TODO Rewritings: uid->userid,nick->nickname,logins->total_logins in template
+./inc/modules/guest/what-wernis_portal.php:80://  @TODO Can this be removed? $rdf->clear_cache();
+./inc/modules/member/what-bonus.php:50:        // @TODO Rewrite this to a filter
+./inc/modules/member/what-categories.php:107:          // @TODO Rewrite this to use $OUT .= ...
+./inc/modules/member/what-order.php:500:                                       // @TODO Rewrite this old lost code to a template
+./inc/modules/member/what-payout.php:126:                              // @TODO Rewritings: acc->target_account,bank->target_bank in templates
+./inc/modules/member/what-payout.php:142:                      // @TODO Rewrite this constant
+./inc/modules/member/what-payout.php:176:              // @TODO Rewrite these constants
+./inc/modules/member/what-payout.php:184:                              // @TODO Rewrite this constant
+./inc/modules/member/what-points.php:49:// @TODO Should we rewrite this to a filter?
+./inc/modules/member/what-reflinks.php:100:            // @TODO Rewritings: alt->alternate,cnt->counter,cks->clicks,uid->userid in template
+./inc/modules/member/what-transfer.php:111:                    // @TODO Rewrite all these constants to array elements
+./inc/modules/member/what-transfer.php:242:                    // @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
+./inc/modules/member/what-transfer.php:304:            // @TODO Rewrite these constants
+./inc/modules/member/what-transfer.php:312:            // @TODO Rewrite these constants
+./inc/modules/member/what-transfer.php:324:            // @TODO This should be somehow rewritten to $content = SQL_FETCHARRAY(), see switch() block above for SQL queries
+./inc/modules/member/what-transfer.php:359:    // @TODO Rewrite these constants
+./inc/modules/member/what-transfer.php:446:    // @TODO Rewrite all these constants
+./inc/modules/member/what-unconfirmed.php:129: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
+./inc/mysql-manager.php:1504:                  // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
+./inc/mysql-manager.php:168:                   // @TODO Nothing helped???
+./inc/mysql-manager.php:1713:                          // @TODO Find a way for updating $_CONFIG here
+./inc/mysql-manager.php:1737:          // @TODO Find a way for updating $_CONFIG here
+./inc/mysql-manager.php:1821:                  // @TODO Rewrite this to $content = SQL_FETCHARRAY()
+./inc/mysql-manager.php:2115:          // @TODO This can be somehow rewritten
+./inc/mysql-manager.php:612:   // @TODO Why is this global??? #100
+./inc/mysql-manager.php:940:                   // @TODO Why does this lead into an endless loop but we still need it???
+./mailid_top.php:206:                                                                  // @TODO Rewrite these blocks to filter
 ./surfbar.php:60:              // @TODO Display quick login form here or redirect as configured
-./mailid_top.php:205:                                                                  // @TODO Rewrite these blocks to filter