ispCP - Board - Support
What is necessary for login to ispCP - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: What is necessary for login to ispCP (/thread-13092.html)



What is necessary for login to ispCP - davidxone - 03-19-2011 01:32 AM

Hi,

I have problem with logining to ispCP from my external apllication, where is user authorized and can see all of his accounts from there.

I want, to simple clicking be loged in ispCP...

I seted up this sessions and write it to database, but when i redirect to admin.mypage.tld it isnt working...please help me...if you understand what i need Smile

$_SESSION['user_logged'] = $name;
$_SESSION['user_pass'] = $pass;
$_SESSION['user_type'] = $type;
$_SESSION['user_id'] = $id;
$_SESSION['user_email'] = $email;
$_SESSION['user_created_by'] = $by;
$_SESSION['user_login_time'] = $cas;
$_SESSION['logged_from'] = $id;
$_SESSION['logged_from_id'] = $id;
$con->query("INSERT INTO login(session_id,ipaddr,lastaccess,user_name) VALUES('".session_id()."','".$_SERVER["REMOTE_ADDR"]."','".$time."','".$name."')");
write_log($name." logged in.");