debug_report_bug() does call app_die() again (internal TODO), nicer template for...
authorRoland Häder <roland@mxchange.org>
Tue, 24 Nov 2009 03:50:03 +0000 (03:50 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 24 Nov 2009 03:50:03 +0000 (03:50 +0000)
.gitattributes
DOCS/TODOs.txt
inc/functions.php
inc/language/de.php
templates/de/html/app_die_message.tpl [new file with mode: 0644]

index b482900c070483615715087450de2a69a402d0d0..54764a3b78927b8dadf845ba39172f8bd9fb0f00 100644 (file)
@@ -1251,6 +1251,7 @@ templates/de/html/admin/admin_welcome.tpl -text
 templates/de/html/admin/admin_welcome_admins.tpl -text
 templates/de/html/admin/admin_yoomedia_error.tpl -text
 templates/de/html/agb.tpl -text
 templates/de/html/admin/admin_welcome_admins.tpl -text
 templates/de/html/admin/admin_yoomedia_error.tpl -text
 templates/de/html/agb.tpl -text
+templates/de/html/app_die_message.tpl -text
 templates/de/html/beg/.htaccess -text
 templates/de/html/beg/beg_banner.tpl -text
 templates/de/html/beg/beg_done.tpl -text
 templates/de/html/beg/.htaccess -text
 templates/de/html/beg/beg_banner.tpl -text
 templates/de/html/beg/beg_done.tpl -text
index 7389c077a09e07692e8fabfa4ce4492bd0d261d1..e477d96ca62dac61a3017c64d0c1ebbb98614a7d 100644 (file)
@@ -6,7 +6,7 @@
 ./inc/classes/cachesystem.class.php:464:       // @TODO Add support for more types which break in last else-block
 ./inc/config-functions.php:143:        // @TODO Make this all better... :-/
 ./inc/extensions/ext-html_mail.php:137:                // @TODO Move these arrays into config
 ./inc/classes/cachesystem.class.php:464:       // @TODO Add support for more types which break in last else-block
 ./inc/config-functions.php:143:        // @TODO Make this all better... :-/
 ./inc/extensions/ext-html_mail.php:137:                // @TODO Move these arrays into config
-./inc/extensions/ext-network.php:71:           // @TODO network_type_name is an internal name and needs documentation
+./inc/extensions/ext-network.php:71:           // @TODO network_type_handle is an internal name and needs documentation
 ./inc/extensions/ext-newsletter.php:215:               // @TODO Move these into configuration
 ./inc/extensions/ext-rallye.php:330:           // @TODO Move this code into rallye_functions.php
 ./inc/extensions/ext-rallye.php:93:            // @TODO Fix config_rallye_prices to list_rallye_prices
 ./inc/extensions/ext-newsletter.php:215:               // @TODO Move these into configuration
 ./inc/extensions/ext-rallye.php:330:           // @TODO Move this code into rallye_functions.php
 ./inc/extensions/ext-rallye.php:93:            // @TODO Fix config_rallye_prices to list_rallye_prices
 ./inc/extensions-functions.php:489:            // @TODO Extension is loaded, what next?
 ./inc/filters.php:473:                 // @TODO This whole switch-block is very static
 ./inc/filters.php:538:                         case 'config': // @TODO FILTER_COMPILE_CONFIG does not handle call-back functions so we handle it here again
 ./inc/extensions-functions.php:489:            // @TODO Extension is loaded, what next?
 ./inc/filters.php:473:                 // @TODO This whole switch-block is very static
 ./inc/filters.php:538:                         case 'config': // @TODO FILTER_COMPILE_CONFIG does not handle call-back functions so we handle it here again
-./inc/functions.php:1033:      // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
-./inc/functions.php:241:       // @TODO Remove this sanity-check if all is fine
-./inc/functions.php:2431:// @TODO Please describe this function
-./inc/functions.php:2449:      searchDirsRecursive($next_dir, $last_changed); // @TODO small change to API to $last_changed = searchDirsRecursive($next_dir, $time);
-./inc/functions.php:244:       // @TODO Try to rewrite all $DATA to $content
-./inc/functions.php:2563:              // @TODO Add a little more infos here
-./inc/functions.php:2586:      // @TODO This cannot be rewritten to app_die(), try to find a solution for this.
-./inc/functions.php:2665:                      // @TODO Rewrite this old lost code to a template
-./inc/functions.php:2754:                      // @TODO Are these convertions still required?
-./inc/functions.php:2772:// @TODO Rewrite this function to use readFromFile() and writeToFile()
-./inc/functions.php:3650:// @TODO Lame description for this function
-./inc/functions.php:3672:                      // @TODO Move this in a filter
-./inc/functions.php:3790:      // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:456:       // @TODO Do only use $content, not $DATA or raw variables
-./inc/functions.php:526:               // @TODO Extension 'msg' does not exist
-./inc/functions.php:595:// @TODO Rewrite this to an extension 'smtp'
-./inc/functions.php:998:// @TODO $simple is deprecated
+./inc/functions.php:1002:// @TODO $simple is deprecated
+./inc/functions.php:1037:      // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
+./inc/functions.php:2435:// @TODO Please describe this function
+./inc/functions.php:2453:      searchDirsRecursive($next_dir, $last_changed); // @TODO small change to API to $last_changed = searchDirsRecursive($next_dir, $time);
+./inc/functions.php:253:       // @TODO Remove this sanity-check if all is fine
+./inc/functions.php:2567:              // @TODO Add a little more infos here
+./inc/functions.php:256:       // @TODO Try to rewrite all $DATA to $content
+./inc/functions.php:2668:                      // @TODO Rewrite this old lost code to a template
+./inc/functions.php:2757:                      // @TODO Are these convertions still required?
+./inc/functions.php:2775:// @TODO Rewrite this function to use readFromFile() and writeToFile()
+./inc/functions.php:3653:// @TODO Lame description for this function
+./inc/functions.php:3675:                      // @TODO Move this in a filter
+./inc/functions.php:3793:      // @TODO This is still very static, rewrite it somehow
+./inc/functions.php:468:       // @TODO Do only use $content, not $DATA or raw variables
+./inc/functions.php:538:               // @TODO Extension 'msg' does not exist
+./inc/functions.php:607:// @TODO Rewrite this to an extension 'smtp'
 ./inc/install-functions.php:62:        // @TODO DEACTIVATED: changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
 ./inc/install-functions.php:62:        // @TODO DEACTIVATED: changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
-./inc/language/de.php:1146:// @TODO Rewrite these two constants
-./inc/language/de.php:1162:// @TODO Rewrite these five constants
-./inc/language/de.php:846:// @TODO Are these constants longer used?
+./inc/language/de.php:1150:// @TODO Rewrite these two constants
+./inc/language/de.php:1166:// @TODO Rewrite these five constants
+./inc/language/de.php:848:// @TODO Are these constants longer used?
 ./inc/language-functions.php:228:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:45:// @TODO Rewrite all language constants to this function.
 ./inc/language/holiday_de.php:49:// @TODO Rewrite these two constants to one
 ./inc/language-functions.php:228:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:45:// @TODO Rewrite all language constants to this function.
 ./inc/language/holiday_de.php:49:// @TODO Rewrite these two constants to one
 ./inc/reset/reset_birthday.php:91:                     // @TODO 4 is hard-coded here, should we move it out in config?
 ./inc/wrapper-functions.php:127:// @TODO Implement $compress
 ./inc/wrapper-functions.php:134:// @TODO Implement $decompress
 ./inc/reset/reset_birthday.php:91:                     // @TODO 4 is hard-coded here, should we move it out in config?
 ./inc/wrapper-functions.php:127:// @TODO Implement $compress
 ./inc/wrapper-functions.php:134:// @TODO Implement $decompress
-./inc/wrapper-functions.php:393:// @TODO Do some more sanity check here
+./inc/wrapper-functions.php:401:// @TODO Do some more sanity check here
 ./mailid.php:134:                                      // @TODO Rewrite this to a filter
 ./mailid.php:214:      // @TODO Rewrite this to a dynamic include or so
 ./mailid.php:94:               // @TODO Rewrite this to a filter
 ./mailid.php:134:                                      // @TODO Rewrite this to a filter
 ./mailid.php:214:      // @TODO Rewrite this to a dynamic include or so
 ./mailid.php:94:               // @TODO Rewrite this to a filter
 ./mailid_top.php:225:                                                                  // @TODO Rewrite these blocks to filter
 ./mailid_top.php:260:                                                                          // @TODO Try to rewrite the following unset()
 ./mailid_top.php:99:           // @TODO Rewrite this to a filter
 ./mailid_top.php:225:                                                                  // @TODO Rewrite these blocks to filter
 ./mailid_top.php:260:                                                                          // @TODO Try to rewrite the following unset()
 ./mailid_top.php:99:           // @TODO Rewrite this to a filter
-./view.php:72:         // @TODO No banner found, output some default banner
+./view.php:69:         // @TODO No banner found, output some default banner
 ./templates/de/html/admin/admin_add_country.tpl:23:                    <!-- @TODO Rewrite this selection box to our generic functions //-->
 ./templates/de/html/admin/admin_admins_contct_form.tpl:3:      <!-- @TODO Shouldn't we add a title here? //-->
 ./templates/de/html/admin/admin_amenu_edit.tpl:4:<!-- @TODO Shouldn't we add a title here? //-->
 ./templates/de/html/admin/admin_add_country.tpl:23:                    <!-- @TODO Rewrite this selection box to our generic functions //-->
 ./templates/de/html/admin/admin_admins_contct_form.tpl:3:      <!-- @TODO Shouldn't we add a title here? //-->
 ./templates/de/html/admin/admin_amenu_edit.tpl:4:<!-- @TODO Shouldn't we add a title here? //-->
index 95d143c2a33e1dcde41e965dd93ac032694a99c5..8928e602fa428c51ab064641ff281a61e17d5e90 100644 (file)
@@ -2208,10 +2208,10 @@ function app_die ($F, $L, $message) {
                $message = sprintf(getMessage('MXCHANGE_HAS_DIED'), basename($F), $L, $message);
 
                // Better log this message away
                $message = sprintf(getMessage('MXCHANGE_HAS_DIED'), basename($F), $L, $message);
 
                // Better log this message away
-               logDebugMessage($F, $L, $message);
+               if ($F != 'debug_report_bug') logDebugMessage($F, $L, $message);
 
                // Load the message template
 
                // Load the message template
-               loadTemplate('admin_settings_saved', false, $message);
+               loadTemplate('app_die_message', false, $message);
 
                // Load footer
                loadIncludeOnce('inc/footer.php');
 
                // Load footer
                loadIncludeOnce('inc/footer.php');
@@ -2587,8 +2587,7 @@ function debug_report_bug ($message = '', $sendEmail = true) {
        } // END - if
 
        // And abort here
        } // END - if
 
        // And abort here
-       // @TODO This cannot be rewritten to app_die(), try to find a solution for this.
-       die($debug);
+       app_die(__FUNCTION__, __LINE__, $debug);
 }
 
 // Generates a ***weak*** seed
 }
 
 // Generates a ***weak*** seed
index 2f188169dc1086c78a14095fca2e09602ee14026..a3ff6384cff4ec9cb688a13e2c32de7ee7419b99 100644 (file)
@@ -104,6 +104,7 @@ addMessages(array(
        'ADMIN_NO_PASS2' => "Sie haben keine Passwortwiederholung eingegeben.",
        'ADMIN_SHORT_PASS1' => "Das Passwort ist zu kurz! Mindestens 4 Zeichen.",
        'ADMIN_SHORT_PASS2' => "Die Passwortwiederholung ist zu kurz! Mindestens 4 Zeichen.",
        'ADMIN_NO_PASS2' => "Sie haben keine Passwortwiederholung eingegeben.",
        'ADMIN_SHORT_PASS1' => "Das Passwort ist zu kurz! Mindestens 4 Zeichen.",
        'ADMIN_SHORT_PASS2' => "Die Passwortwiederholung ist zu kurz! Mindestens 4 Zeichen.",
+       'ADMIN_SHORT_PASS' => "Ihr Administratorpasswort ist zu kurz! Mindestens 4 Zeichen",
        'ADMIN_PASS1_MISMATCH' => "Das Passwort stimmt nicht mit der Wiederholung &uuml;berein.",
        'ADMIN_PASS2_MISMATCH' => "Die Passwortwiederholung stimmt nicht mit dem Passwort &uuml;berein.",
        'ADMIN_LOGIN_ALREADY_REG' => "Das von Ihnen eingegebene Admin-Login existiert bereits.",
        'ADMIN_PASS1_MISMATCH' => "Das Passwort stimmt nicht mit der Wiederholung &uuml;berein.",
        'ADMIN_PASS2_MISMATCH' => "Die Passwortwiederholung stimmt nicht mit dem Passwort &uuml;berein.",
        'ADMIN_LOGIN_ALREADY_REG' => "Das von Ihnen eingegebene Admin-Login existiert bereits.",
@@ -1059,6 +1060,7 @@ addMessages(array(
        'EMAIL_DELETE_COUNT' => "Buchungseintr&auml;ge gel&ouml;scht",
        'MXCHANGE_HAS_DIED' => "{?TITLE?} ist in Script/Funktion <span class=\"data\">%s</span>, Zeile <span class=\"data\">%s</span> mit folgender Meldung gestorben: <span class=\"data\">%s</span>",
        'ADMIN_CONFIG_POINTS_TITLE' => "Einstellungen f&uuml;r {?POINTS?}",
        'EMAIL_DELETE_COUNT' => "Buchungseintr&auml;ge gel&ouml;scht",
        'MXCHANGE_HAS_DIED' => "{?TITLE?} ist in Script/Funktion <span class=\"data\">%s</span>, Zeile <span class=\"data\">%s</span> mit folgender Meldung gestorben: <span class=\"data\">%s</span>",
        'ADMIN_CONFIG_POINTS_TITLE' => "Einstellungen f&uuml;r {?POINTS?}",
+       'APP_DIE_TITLE' => "Fehler im Script erkannt!",
 
        'ADMIN_SEND_RESET_LINK_TITLE' => "1/4: Administratorkennwort zur&uuml;cksetzen",
        'ADMIN_VALIDATE_HASH_TITLE' => "2/4: Validierung Iher Logindaten",
 
        'ADMIN_SEND_RESET_LINK_TITLE' => "1/4: Administratorkennwort zur&uuml;cksetzen",
        'ADMIN_VALIDATE_HASH_TITLE' => "2/4: Validierung Iher Logindaten",
diff --git a/templates/de/html/app_die_message.tpl b/templates/de/html/app_die_message.tpl
new file mode 100644 (file)
index 0000000..de36f87
--- /dev/null
@@ -0,0 +1,12 @@
+<div align="center" style="margin-top:10px;margin-bottom:10px">
+
+<div style="width:550px" class="admin_table dashed">
+       <div class="admin_title bottom">
+               <strong>{--APP_DIE_TITLE--}</strong>
+       </div>
+       <div align="left" style="margin:5px">
+               $content
+       </div>
+</div>
+
+</div>