Jump to content

[SOLVED] Log in and you are already logged in


Recommended Posts

Posted

Hi !

I've a little problem when I logged in my website : if we're logged in and we go in an other page a message appears :

  Quote

An Error Was Encountered

Please login first

(On the right-top pilote's profile is remplaced by case for login) and when I try to log again I've this message : You are already logged in with pilote's profile in right-top...

For example : I can't access to Admin panel after log in...

Thanks

Posted

I used for few hours the initial skin : crystal and I didn't modify it :/

  Quote
<?php

/**

*

* STOP!!!!!!!!

*

* Are you editing the crystal skin directly?

* DON'T

*

* Copy and rename the crystal folder. Otherwise it'll get

* overwritten in an update.

*

* Also, READ THE DOCS

*

* http://www.phpvms.net/docs/skinning

*

*/

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">

<head>

<meta http-equiv="X-UA-Compatible" content="IE=7">

<title><?php echo $page_title; ?></title>

<link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/crystal/styles.css" />

<?php

/* This is required, so phpVMS can output the necessary libraries it needs */

echo $page_htmlhead;

?>

<?php /*Any custom Javascript should be placed below this line, after the above call */ ?>

</head>

<body>

<?php

/* This should be the first thing you place after a <body> tag

This is also required by phpVMS */

echo $page_htmlreq;

?>

<div id="body">

<div id="innerwrapper">

<div id="topBanner">

<div id="topLogin">

<?php

/*

Quick example of how to see if they're logged in or not

Only show this login form if they're logged in */

if(Auth::LoggedIn() == false)

{ ?>

<form name="loginform" action="<?php echo url('/login'); ?>" method="post">

Sign-in with your pilot id or email, or <a href="<?php echo url('/registration'); ?>">register</a><br />

<input type="text" name="email" value="" onclick="this.value=''" />

<input type="password" name="password" value="" />

<input type="hidden" name="remember" value="on" />

<input type="hidden" name="redir" value="index.php/profile" />

<input type="hidden" name="action" value="login" />

<input type="submit" name="submit" value="Log In" />

</form>

<?php

}

/* End the Auth::LoggedIn() if */

else /* else - they're logged in, so show some info about the pilot, and a few links */

{

/* Auth::$userinfo has the information about the user currently logged in

We will use this next line - this gets their full pilot id, formatted properly */

$pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);

?>

<img align="left" height="50px" width="50px" style="margin-right: 10px;"

src="<?php echo PilotData::getPilotAvatar($pilotid);?>" />

<strong>Pilot ID: </strong> <?php echo $pilotid ; ?>

<strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br />

<strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?>

<br />

<a href="<?php echo url('/pireps/new');?>">File a New PIREP</a> |

<a href="<?php echo url('/schedules/bids');?>">View My Bids</a> |

<a href="<?php echo url('/profile/');?>">View Pilot Center</a>

<?php

} /* End the else */

?>

</div>

</div>

<div id="topNav">

<ul class="nav">

<?php

/* You can modify this template into a table or something, by default

it's list elements inside of a UL. Here's a link with some info:

http://articles.site...tips-tricks-4/2

*/

Template::Show('core_navigation.tpl');

?>

</ul>

</div>

<div id="bodytext">

<?php

/* This will insert all of the "meat" of the page in there - the template

which is generated, depending on which page you're on. To change these

templates, check out the docs on the site. They're under the /core/templates

folder, and to change them, copy them into the folder of your skin (the

folder this file is in right now.

*/

echo $page_content;

?>

</div>

</div>

<div id="footer">

<p>copyright © 2007 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?><br />

<!-- Please retain this!! It's part of the phpVMS license. You must display a

"powered by phpVMS" somewhere on your page. Thanks! -->

<a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a></p>

</div>

</div>

</body>

</html>

Posted

itrobb, forgive my stupidity, but this may very well be why I am having problems being logged out all the time.

So, it is in the layout.tpl we are talking about here?!

Posted
  On 8/19/2014 at 12:05 AM, CPC900 said:

itrobb, forgive my stupidity, but this may very well be why I am having problems being logged out all the time.

So, it is in the layout.tpl we are talking about here?!

In your address bar :)

Posted

Obviously. But what I meant was, if ALL my references to my website, in any way, were missing the "www.", could that possibly be why I was having issues with having to log in over and over, even though it still shows someone as logged in?!

My original message I posted was in regard to "getting logged off all the time", but what I meant to say was getting logged off, but still showing as logged in; from this post:

http://forum.phpvms.net/topic/20756-keeps-logging-out/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...