- Posts: 13
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<?php $username = 'admin'; $password = 'password'; $where = 'example.org/limesurvey'; /* yourdomain.tld/your_folder */ ?> <head><title>Skip LS Login</title> <meta charset="utf-8"><meta name="robots" content="none" /> <!-- Change for your correct path to jquery file --> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> </head> <form id="loginform" name="loginform" action="https://<?php echo $where ?>/index.php/admin/authentication/sa/login" method="post"> <div class='messagebox ui-corner-all'> <div class='header ui-widget-header'>Please log in first.</div> <br /> <ul style='width: 500px; margin-left: auto; margin-right: auto'> <li><label for='user'>Username</label> <input name='user' id='user' type='text' size='40' maxlength='40' value=<?php echo $username ?> /></li> <li><label for='password'>Password</label> <input name='password' id='password' type='password' size='40' maxlength='40' value=<?php echo $password ?> /></li> <li><label for='loginlang'>Language</label> <select id='loginlang' name='loginlang' > <option value='en' selected>English</option> </select> </li> </ul> <p><input type='hidden' name='action' value='login' /> <input class='action' type='submit' value='Login' /><br />&nbsp; <br/> <a href='https://<?php echo $where ?>/index.php/admin/authentication/sa/forgotpassword'>Forgot your password?</a><br />&nbsp; </p><br /> </div> </form> <script type="text/javascript" > jQuery(document).ready(function($) { document.loginform.submit();}); </script>