X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=c9fad71c38bd45b68868552f4ecc139b956bb10c;hp=311fdb0a19483dedccb8b8e199d737f1974f5084;hb=3fc95231ba85cc8c292b81bf502d4d7fab85ca8b;hpb=854fcac4ae5fe26e28e9d4d7b8361f2ab455aeb1
diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php
index 311fdb0a19..c9fad71c38 100644
--- a/inc/mysql-manager.php
+++ b/inc/mysql-manager.php
@@ -1,7 +1,7 @@
{--YOU_ARE_HERE--} Home";
+ $GLOBALS['nav_depth'] = '0';
+ $prefix = "
{--YOU_ARE_HERE--}
Home";
} else {
if ($return === false) $GLOBALS['nav_depth']++;
$prefix = '';
@@ -363,56 +354,41 @@ function addMenuDescription ($accessLevel, $FQFN, $return = false, $output = tru
$search = substr($search, 0, -4);
} // END - i
- // Get the title from menu
- $result = SQL_QUERY_ESC("SELECT title FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE %s='%s' ".$AND." LIMIT 1",
- array($accessLevel, $type, $search), __FUNCTION__, __LINE__);
+ if (((isExtensionInstalledAndNewer('sql_patches', '0.2.3')) && (getConfig('youre_here') == 'Y')) || ((isAdmin()) && ($modCheck == 'admin'))) {
+ // Output HTML code
+ $OUT = $prefix . "
" . getTitleFromMenu($accessLevel, $search, $type, $ADD) . "\n";
- // Menu found?
- if (SQL_NUMROWS($result) == 1) {
- // Load title
- list($ret) = SQL_FETCHROW($result);
+ // Can we close the you-are-here navigation?
+ //* DEBUG: */ print(__LINE__."*".$type.'/'.getWhat()."*
");
+ if (($type == 'what') || (($type == 'action') && ((!isWhatSet()) || (getWhat() == 'overview')))) {
+ //* DEBUG: */ print(__LINE__.'+'.$type."+
");
+ // Add closing div and br-tag
+ $OUT .= "