Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ispcfg3_ClientArea( $params ) {
- $soapsvrurl = $params['configoption3'];
- $soapsvrssl = $params['configoption4'];
- if ( $soapsvrssl == 'on' ) {
- $soapsvrurl = 'https://' . $soapsvrurl . '';
- } else {
- $soapsvrurl = 'http://' . $soapsvrurl . '';
- }
- $code = '
- <form id="frmIspconfigLogin" action="'.$soapsvrurl.'/index.php" method="GET" target="_blank">
- <button type="submit" class="btn btn-xs btn-success">CONTROLPANEL LOGIN</button>
- </form>
- <script type="text/javascript">
- $("#frmIspconfigLogin").submit(function(){
- $.ajax({
- type: "POST",
- url: "'.$soapsvrurl.'/login/index.php",
- data: "s_mod=login&s_pg=index&username='.$params['username'].'&password='.$params['password'].'",
- xhrFields: {withCredentials: true}
- });
- });
- </script>';
- return $code;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement