jeronimo
10th of October 2007 (Wed), 18:56
Hello all
On my website I made a seperate login page. In the header is a link to this page that changes to logout link if some one is logged in.
So far so good
Now I was modifying my inlog page. I wanted to show people the you must login text if the are not logged in, and an other text with log out for people that are loggid in allready.
I managed to make the different output to appear, although, the output is a bit strange.
What did I do;
I made template in SECURITY_check_user_authorization.php
The code is as folows;
ob_start();
if ($logged == "0") {
print include ("./languages/" . $ee_lang . "/login.php");
}
else if ($logged == "1") {
$groupidlink = "";
$offsetlink = "";
$photolink = "";
$ulink = "";
$langlink = "";
if (!isset($currentpage)) $currentpage = "index";
if (isset($groupid)) $groupidlink = "&groupid={$groupid}";
if (isset($offset)) $offsetlink = "&offset={$offset}";
if (isset($photo)) $photolink = "&photo={$photo}";
if (isset($u)) $ulink = "&u={$u}";
if (isset($ee_lang)) $langlink = "&ee_lang={$ee_lang}";
print "<a href=\"./logout.php?targetpage={$currentpage}{$groupidlink} {$offsetlink}{$photolink}{$ulink}{$langlink}\" class=\"ee_css_hyperlink\">log out now</a>";
}
$logpage_text = ob_get_contents();
ob_end_clean();
This template is called directley in my logon page.
Only after the text from $ee_lang/login.php there is a rather strange 1.
This 1 has no style or what so ever.
I cann't find it back in any of my files.
See the example on my site
http://www.landmarks.nl/logon.php?ee_lang=eng
Login with username = tester
and password test
To see things work
What's the solution for the strange number 1?
On my website I made a seperate login page. In the header is a link to this page that changes to logout link if some one is logged in.
So far so good
Now I was modifying my inlog page. I wanted to show people the you must login text if the are not logged in, and an other text with log out for people that are loggid in allready.
I managed to make the different output to appear, although, the output is a bit strange.
What did I do;
I made template in SECURITY_check_user_authorization.php
The code is as folows;
ob_start();
if ($logged == "0") {
print include ("./languages/" . $ee_lang . "/login.php");
}
else if ($logged == "1") {
$groupidlink = "";
$offsetlink = "";
$photolink = "";
$ulink = "";
$langlink = "";
if (!isset($currentpage)) $currentpage = "index";
if (isset($groupid)) $groupidlink = "&groupid={$groupid}";
if (isset($offset)) $offsetlink = "&offset={$offset}";
if (isset($photo)) $photolink = "&photo={$photo}";
if (isset($u)) $ulink = "&u={$u}";
if (isset($ee_lang)) $langlink = "&ee_lang={$ee_lang}";
print "<a href=\"./logout.php?targetpage={$currentpage}{$groupidlink} {$offsetlink}{$photolink}{$ulink}{$langlink}\" class=\"ee_css_hyperlink\">log out now</a>";
}
$logpage_text = ob_get_contents();
ob_end_clean();
This template is called directley in my logon page.
Only after the text from $ee_lang/login.php there is a rather strange 1.
This 1 has no style or what so ever.
I cann't find it back in any of my files.
See the example on my site
http://www.landmarks.nl/logon.php?ee_lang=eng
Login with username = tester
and password test
To see things work
What's the solution for the strange number 1?