News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

include problem...

Started by ircteknik, May 29, 2006, 12:12:45 PM

Previous topic - Next topic

ircteknik

i have one portal that i code this portal...and i am using smf 1.1.rc2 and i am using ssi login and logout in my files...my forums in forum folder...and my portal filesin public_html ...i do one php file that login.php and

login.php

<?php
include_once(************************);
?>


<?
if ( $context['user']['is_guest'] )
{
  ssi_login( ********);
}
else
{
   echo "<br/>";
   ssi_logout( ******** );
echo "<br/>";
echo "<br/>";
}
?>

<?php ssi_welcome(); ?>


it is my login.php codes...

if i call this file on my browser then it is working perfect but when i am using...in my anasayfa.php

<? include ("login.php"); ?> then it is working so bad... :( what will i do?

when i include then logout url looking
http://*********?action=logout;sesc=d5dd2ecd776a90668f3125eae3c42a42

but i cant log out...

and same time my forum index menu ...and logout buton link is

http://****************?action=logout;sesc=52182a842db86a674f30b8cada4c34af

in same time...2 different urls...but ssi with including not working...but forum link is working...
and when i open my login.php in my browser without include then it is working perfect too...what will i do please help me...

Advertisement: