Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
445 views
in Q2A Core by
<?php
    $session_uid=$_SESSION['uid'];
    // Session Private
     if(!empty($session_uid))
    {
       $uid=$session_uid;
      $login='1';
    }
    else if($_GET['username'] || $_GET['msgID'])
     {
    $uid=$obj->User_ID($username);
    $login='0';
    }
    else
    {
     $url=$base_url.'log.php';
 
     //$url=$base_url.'login.php';
     header("location:$url");
     }

       ?>

Please log in or register to answer this question.

...