Some improvements:
authorRoland Häder <roland@mxchange.org>
Tue, 27 Nov 2012 22:01:58 +0000 (22:01 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 27 Nov 2012 22:01:58 +0000 (22:01 +0000)
- "noindex_metadata.tpl is now the default (noindex, etc.) template for robot control
- added filter for 'module=confirm'"
- TODOs.txt updated

.gitattributes
DOCS/TODOs.txt
inc/extensions/ext-sql_patches.php
inc/filters.php
inc/libs/bonus_functions.php
inc/module-functions.php
templates/de/html/member/member_metadata.tpl [new file with mode: 0644]
templates/de/html/noindex_metadata.tpl [new file with mode: 0644]

index 2e90ca011bd64f00bd86f5a6ab62406c5065957b..a02b84851c1ebab82e15d8048701482a1062245b 100644 (file)
@@ -1973,6 +1973,7 @@ templates/de/html/member/member_menu_bottom.tpl svneol=native#text/plain
 templates/de/html/member/member_menu_row.tpl svneol=native#text/plain
 templates/de/html/member/member_menu_start.tpl svneol=native#text/plain
 templates/de/html/member/member_menu_title.tpl svneol=native#text/plain
+templates/de/html/member/member_metadata.tpl svneol=native#text/plain
 templates/de/html/member/member_mydata_button.tpl svneol=native#text/plain
 templates/de/html/member/member_mydata_edit.tpl svneol=native#text/plain
 templates/de/html/member/member_mydata_overview.tpl svneol=native#text/plain
@@ -2065,6 +2066,7 @@ templates/de/html/menu/menu_what_begin.tpl svneol=native#text/plain
 templates/de/html/menu/menu_what_end.tpl svneol=native#text/plain
 templates/de/html/message.tpl svneol=native#text/plain
 templates/de/html/metadata.tpl svneol=native#text/plain
+templates/de/html/noindex_metadata.tpl svneol=native#text/plain
 templates/de/html/online_now.tpl svneol=native#text/plain
 templates/de/html/page_body.tpl svneol=native#text/plain
 templates/de/html/page_footer.tpl svneol=native#text/plain
index ba1aef8f21d88eacff0a690d22b3fb6900ac5a92..6c65c7f19700fa222a9ce98279a5589a2be3305c 100644 (file)
@@ -57,9 +57,9 @@
 ./inc/functions.php:1190:                      // @TODO Are these convertions still required?
 ./inc/functions.php:1211:// @TODO Rewrite this function to use readFromFile() and writeToFile()
 ./inc/functions.php:1816:      // @TODO Find a way to cache this
-./inc/functions.php:1921:      // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:2125:      // @TODO Rename column data_type to e.g. mail_status
-./inc/functions.php:2475:// @TODO cacheFiles is not yet supported
+./inc/functions.php:1920:      // @TODO This is still very static, rewrite it somehow
+./inc/functions.php:2124:      // @TODO Rename column data_type to e.g. mail_status
+./inc/functions.php:2474:// @TODO cacheFiles is not yet supported
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/header.php:66:// @TODO Find a way to not use direct module comparison
 ./inc/install-functions.php:402:       // @TODO Comparing with DEFAULT_MAIN_TITLE doesn't work
index aff38160221eddf3e71716b243f838b53cfbadd7..40a8e3a95d5e5741d5bf98581b29f5604057f19c 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.9.5');
+setThisExtensionVersion('0.9.6');
 
 // Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.8.5', '0.8.6', '0.8.7', '0.8.8', '0.8.9', '0.9.0', '0.9.1', '0.9.2', '0.9.3', '0.9.4', '0.9.5'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.8.5', '0.8.6', '0.8.7', '0.8.8', '0.8.9', '0.9.0', '0.9.1', '0.9.2', '0.9.3', '0.9.4', '0.9.5', '0.9.6'));
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
@@ -990,6 +990,14 @@ PRIMARY KEY (`server_name_id`)
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Men&uuml;punkt umbenannt, da &quot;config&quot; nur f&uuml;r die Konfigurationstabelle <strong>{?_MYSQL_PREFIX?}_config</strong> ist.");
                                break;
+
+                       case '0.9.6': // SQL queries for v0.9.6
+                               // Register filter
+                               registerFilter(__FILE__, __LINE__, 'determine_menu_mode', 'DETERMINE_MENU_MODE_GENERIC', FALSE, TRUE, isExtensionDryRun());
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Filter hinzugef&uuml;gt, der den Men&uuml;modus f&uuml;r weitere von dieser Erweiterung benutzten Module erkennen soll.");
+                               break;
                } // END - switch
                break;
 
index bd804baf9be9f455810726a2c7f3f0d45af85797..98cf7eb463e529d324a5defeeccc9524566c195b 100644 (file)
@@ -1380,5 +1380,18 @@ WHERE
        return $filterData;
 }
 
+// Filter for detecting menu mode
+function FILTER_DETERMINE_MENU_MODE_GENERIC ($filterData) {
+       // "Detect" it
+       switch (getModule()) {
+               case 'confirm': // Login script is 'member'
+                       $filterData = 'member';
+                       break;
+       } // END - switch
+
+       // Return filter data
+       return $filterData;
+}
+
 // [EOF]
 ?>
index cdd11a792da40483bd4781e4db835c5f18f666d1..3bed18ebe680f18f27a4c88b04a90d1a76062adc 100644 (file)
@@ -364,6 +364,18 @@ function getLoginTimeout () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Getter for login_bonus
+function getLoginBonus () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('login_bonus');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Getter for bonus_ref
 function getBonusRef () {
        // Is there cache?
index befb470dc4a6bec169397a17474bb52ff78dcd80..9fdd7d36ff8ae6b5d269b165be88557a408376e8 100644 (file)
@@ -529,8 +529,8 @@ function doIncludeModule () {
 function getMenuModeFromModule () {
        // Is cache set?
        if (!isset($GLOBALS[__FUNCTION__])) {
-               // Default is NULL
-               $GLOBALS[__FUNCTION__] = NULL;
+               // Default is 'noindex' which is invalid for SQL tables but okay for meta data template
+               $GLOBALS[__FUNCTION__] = 'noindex';
 
                // Determine it hard-coded
                if (getModule() == 'login') {
diff --git a/templates/de/html/member/member_metadata.tpl b/templates/de/html/member/member_metadata.tpl
new file mode 100644 (file)
index 0000000..4633e1d
--- /dev/null
@@ -0,0 +1 @@
+<meta name="robots" content="noindex, nofollow, noarchive, nosnippet" />
diff --git a/templates/de/html/noindex_metadata.tpl b/templates/de/html/noindex_metadata.tpl
new file mode 100644 (file)
index 0000000..4633e1d
--- /dev/null
@@ -0,0 +1 @@
+<meta name="robots" content="noindex, nofollow, noarchive, nosnippet" />