1 tilqicom Jun 28, 2010 15:07
3 tilqicom Jun 29, 2010 00:42
¥åßßå wrote:
/htsrv/login.php :
switch( $action ) { case 'logout': logout(); // logout $Session and set $current_User = NULL // TODO: to give the user feedback through Messages, we would need to start a new $Session here and append $Messages to it. header_nocache(); header_redirect($htsrv_url.'login.php'); // defaults to redirect_to param and exits /* exited */ break;
¥
pretty sure that works, will try that tomorrow, thanks..
4 tilqicom Jun 29, 2010 10:05
yep it does redirect to login page when you log out, however after when you log in from there, you dont get redirected back in... it just says," you are already logged in..."
what do we add after this to redirect it to blogs like it does when you normally log in ?
header_redirect($htsrv_url.'login.php'.'?redirect_to='.$blog_url);
or sth like that ?
5 yabba Jun 29, 2010 17:51
skins_admin/login/_logion_form.main.php
$Form->hidden( 'redirect_to', url_rel_to_same_host($redirect_to, $htsrv_url_sensitive) );
Change $redirect_to to $baseurl
¥
/htsrv/login.php :
¥