]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Admin menu has now a JavaScript "effect":
[mailer.git] / inc / mysql-manager.php
index a836da97b41a42ca7edd20f597e140d45faf0807..e8e897fed4da668fb3a47a546982e05d884e1284 100644 (file)
@@ -368,8 +368,8 @@ ORDER BY
 
                // Prepare data
                $content = array(
-                       'rows' => $GLOBALS['rows'],
-                       'mode' => $mode
+                       'rows'      => $GLOBALS['rows'],
+                       'menu_mode' => $mode
                );
 
                // Load main template
@@ -678,7 +678,7 @@ function isEmailTaken ($email) {
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
-       REGEX '%s' `email` AND
+       '%s' REGEXP `email` AND
        `userid` %s
 LIMIT 1",
                array(
@@ -697,7 +697,7 @@ LIMIT 1",
 }
 
 // Validate the given menu action
-function isMenuActionValid ($mode, $action, $what, $updateEntry=false) {
+function isMenuActionValid ($mode, $action, $what, $updateEntry = false) {
        // Is the cache entry there and we shall not update?
        if ((isset($GLOBALS['action_valid'][$mode][$action][$what])) && ($updateEntry === false)) {
                // Count cache hit