</div> </li> <!-- Login Button Coding ends Here --> <!--<li><a href="../navbar/">Default</a></li> <li class="active"><a href="./">Static top <span class="sr-only">(current)</span></a></li> <li><a href="../navbar-fixed-top/">Fixed top</a></li>--> '; } } else { if ($showSignIn == false) { echo ' <ul class="nav navbar-nav navbar-right setting-the-navbar-right"> '; if (isset($_COOKIE["UserId"])) { //header("location:UserProfile.php"); showUserData(); } } } } else { echo ' <ul class="nav navbar-nav navbar-right setting-the-navbar-right"> '; if (isset($_COOKIE["UserId"])) { showUserData(); } } ?> </div><!--/.nav-collapse --> </div> </nav>
// ('' will produce the default 'Web' output style) if (isset($_REQUEST['viewType'])) { $viewType = $_REQUEST['viewType']; } else { $viewType = ""; } // -------------------------------------------------------------------- // Show the login status: showLogin(); // (function 'showLogin()' is defined in 'include.inc.php') // Show the user confirmation: if ($userID == -1) { // 'userID=-1' is sent by 'user_validation.php' to indicate a NEW user who has successfully submitted 'user_details.php' showEmailConfirmation($userID); } else { showUserData($userID, $userAction, $connection); } // ---------------------------------------------- // (5) CLOSE the database connection: disconnectFromMySQLDatabase(); // function 'disconnectFromMySQLDatabase()' is defined in 'include.inc.php' // -------------------------------------------------------------------- // Show a new user a confirmation screen, confirming that the submitted user data have been correctly received: function showEmailConfirmation($userID) { global $HeaderString; global $viewType; global $loginWelcomeMsg; global $loginStatus; global $loginLinks; global $loginEmail;