Had a script that was working before to auto login a user and pw from a GET statement. But now does not work. Think its the this line src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js"> Any thoughts on what changed? All I see is the text at the top of the screen "Connecting to Control panel" Code: <?php if($_GET['u']!=''){ $username = $_GET['u']; $password = $_GET{'p'}; } ?> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js"></script> <div class="borderbox" style="text-align:center;"><br />Connecting to Control Panel...<br />9/5/2021 11:04:26 AM<br /> <br /><br /> </div> <script type="text/javascript"> function weiterleitung() { $.ajax({ type: "post", url: "https://dotcp.xxxxxxxxx.com:8080/login/index.php", data: "s_mod=login&s_pg=index&username=<?php echo $username; ?>&password=<?php echo $password; ?>", xhrFields: {withCredentials: true} }).done(function(){location.href="https://dotcp.xxxxxxxxx.com:8080/index.php"}); } window.setTimeout("weiterleitung()", 1); </script>
@Croydon do you know what has changed here? We have done a lot since 3.2 and above, we surely changed some things regarding the storage of passwords and probably the login script as well, but not sure why it would break this.
Might be that not we changed something but the browser vendors changed something. If it's related to ISPConfig changes, then my best guess on fixing this would be to edit the ispconfig vhost file and temporarily disable ass security headers that get set and restart the web server.
I pulled this code from cwispy in his WHMCS integration code. Will download his latest and see if anything has changed. Its been a long time since I updated that code.
Try to update the jquery URL //ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js to use the latest jquery version.
Ispconfig already ships with jQuery, doesn't it? Not the latest version, but if it sufficient for what you're doing, just load the local one.
Jesse, You Sir are a genius!! Replaced the jquery line in source example above with <script type="text/javascript" src="https://dotcp.xxxxxxxxxx.com:8080/js/jquery.min.js"></script> And it worked!! Thank you so much.