ispCP - Board - Support
Login from external - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Login from external (/thread-9939.html)



Login from external - xantios - 03-09-2010 10:08 PM

Hi!

I'm currently trying to get a login-script to work implemented to my site.
Though,ispCP is making it loop/trrowhs error's.

the code im using to get the login box is copy/pasted from the original login.
Code:
<form name="frm" action="http://panel.mydomain.com/index.php" method="post">
<img src="images/user.png" alt="UserIcon"/>&nbsp;<input type="text" name="uname" id="uname" value="" maxlength="255" tabindex="1"><br />
<img src="images/lock.png" alt="PasswordIcon"/>&nbsp;<input type="password" name="upass" id="upass" value="" maxlength="255" tabindex="2"><br />
<input type="submit" name="Submit" value="Login" tabindex="3">
</form>

So,that aint that exiting is it?

in ispCP i already switched off the `Prevent external login´ function.
Still,when i use to login use code above,
i´ll get a error: " Gebruiker is al ingelogd of er is een session sharing probleem. Afgebroken..."

(In english that would be: There is a session sharing problem,Canceled." or something)

is there some-kind of cheking going on that i havent seen?
Or any other way arround for doing this?

Thanks for reading,
XK


RE: Login from external - xantios - 03-10-2010 08:04 AM

Oh,nevermind.. already figured it out.

Seems that you need to destroy your session before using this code.

So,if you want to login to ispCP from a site that is not part of ispCP
you can copy/past my code as mentioned above,
after that,you just go to your panel and LOG OUT!

afther that is complete,you can use my litle piece of html for logging-in from for example your hosting-website.

Greetz,