Jump to content

[SOLVED] Setting logged in to a variable


payney

Recommended Posts

Hi all. I am using this feature, so i can conditonally display stuff. Now, how do I set the result of the following to a variable so I can just use that, currently, I am doing it like the following:

 

<?php

  if ((!isset($_SERVER['PHP_AUTH_USER'])) || ( !isset($_SERVER['PHP_AUTH_PW'])) ||($_SERVER['PHP_AUTH_USER'] != 'username) || ($_SERVER['PHP_AUTH_PW'] != 'passy' ));

  else { 

?>

SHOW RED

<?php

        }

?>

Link to comment
https://forums.phpfreaks.com/topic/71965-solved-setting-logged-in-to-a-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.