Insert PHP and Secured sites.
-
Hi, love the code and it has worked on 4 other of my sites.. but I put a piece of code to just determine a user name on a membership page on a site with a SSL cert on it and It doesn’t seem to work.. is there anything special that a Https site causes versus a Http..
here is the code I use.. pretty basic..
[insert_php]
global $current_user;
get_currentuserinfo();$uname = $current_user->user_login;
echo ‘Username: ‘ .$current_user->user_login. “<br>”;
echo ‘User email: ‘. $current_user->user_email . “<br>”;
echo ‘User first name: ‘.$current_user->user_firstname. ” ” .$current_user->user_lastname. “<br>”;
echo ‘User display name: ‘.$current_user->display_name. “<br>”;
echo ‘Session Authority: ‘.$_SESSION[‘auth’]. “<br>”;
echo “<br>”;
echo “<br>”;
if($uname == “”)
{
echo ” <h2> You are not logged in ! </h2> <br>”;
echo ” <h2> Please Log in by going to the ‘Home’ page and using the ‘Log In’ module..</h2> <br>”;
echo ” <br>”;
exit();
}
echo ” =============== PAGE SELECTOR ============================== “;[/insert_php]
- The topic ‘Insert PHP and Secured sites.’ is closed to new replies.