Cleanup, $SysPrefs.
[fa-stable.git] / access / login.php
index 799c91c175ff7f102c3b473cc7c7a6542f77ea5b..b2bad446a0ae408754c1c3f1005c6836b3bb596e 100644 (file)
@@ -43,6 +43,7 @@ function defaultCompany()
                document.getElementById('log_msg').innerHTML='$demo_text'}, 1000*$login_delay);</script>";
            $demo_text = $blocked_msg;
        }
+       flush_dir(user_js_cache());
        if (!isset($def_coy))
                $def_coy = 0;
        $def_theme = "default";
@@ -125,7 +126,11 @@ function defaultCompany()
                // add all request variables to be resend together with login data
                if (!in_array($p, array('ui_mode', 'user_name_entry_field', 
                        'password', 'SubmitUser', 'company_login_name'))) 
-                       echo "<input type='hidden' name='$p' value='$val'>";
+                       if (!is_array($val))
+                               echo "<input type='hidden' name='$p' value='$val'>";
+                       else
+                               foreach($val as $i => $v)
+                                       echo "<input type='hidden' name='{$p}[$i]' value='$v'>";
        }
        end_form(1);
        $Ajax->addScript(true, "document.forms[0].password.focus();");