Hedgen |
03-09-2013 09:45 PM |
I edited login.php right after this comment: // Validation succeeded, now begins the actual login procedure
to include this html code:
HTML Code:
<head>
<meta http-equiv='refresh' content='5; URL=http://touhouables.elementfx.com/index.php'>
</head>
so my new php code is this:
PHP Code:
// Validation succeeded, now begins the actual login procedure $mysidia->page->settitle($lang->success_title); $mysidia->page->addcontent("<head> <meta http-equiv='refresh' content='5; URL=http://touhouables.elementfx.com/index.php'> </head> Welcome back {$mysidia->input->post("username")}. {$lang->success}"); $mysidia->user->login($mysidia->input->post("username"));
Change "URL=http://touhouables.elementfx.com/index.php" to your site, and "content='5;" to how long you want it to wait in seconds.
Edit: I'm sure this will also work for the log off page, but haven't tried yet. I'll try right now though I'm sure it will work.
Edit2: For logout.php, I edited:
PHP Code:
$mysidia->page->addcontent($lang->default);
to
PHP Code:
$mysidia->page->addcontent("<head> <meta http-equiv='refresh' content='5; URL=http://touhouables.elementfx.com/index.php'> </head>". $lang->default);
and it worked.
|