View Single Post
  #3  
Old 03-09-2013, 09:45 PM
Hedgen's Avatar
Hedgen Hedgen is offline
Member
 
Join Date: Oct 2012
Posts: 36
Gender: Male
Credits: 4,862
Hedgen is on a distinguished road
Default

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.

Last edited by Hedgen; 03-10-2013 at 04:25 AM.
Reply With Quote