Hello,
I need for my website make new "external login".
User is loged in my own system and there he has his hosting accounts > my idea is - if user click on his hosting account from list, that automatically log him to choosed hosting ispCP account.
So I need PHP script to make this...
I tried it, but still a cant login into ispCP.
Now I´m using this sessions:
$_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'] = Here i dont know value to asign.
Database insert:
INSERT INTO login(session_id,ipaddr,lastaccess,user_name) VALUES('".session_id()."','".$_SERVER["REMOTE_ADDR"]."','".$time."','".$name."')
AND
write_log($name." logged in.");
...
what i need more to make it happend? Thank you for your answers