<?php //Declaration of global $user variable, which contains info about the authenticated user. global $user; $user->name; $user->uid; $user->pass; $userIDNumber = $user->uid; //An IF statement that adjusts the body width if user is authenticated. if ($userIDNumber == '0'){ echo "<div style='width: 950px'><p><img style='float: left; margin-left: 25px; margin-right: 25px;' src='http://stevegallik.org/sites/default/files/images/Gallik_Photo_01.jpg' width='150' height='390' /> <img style='vertical-align: text-bottom;' src='http://stevegallik.org/sites/biologyols.stevegallik.org/themes/marinelli/img/banners/BiologyOLS_Logo_1.jpg' alt= width='700' height='144' /></p> <p><a href='http://biologyols.stevegallik.org'>BiologyOLS</a> is a suite of laboratory manuals I developed for the three upper-level courses I teach at the University of Mary Washington. </p> </div>"; } else { echo "<p><img style='float: left; margin-left: 25px; margin-right: 25px;' src='http://stevegallik.org/sites/default/files/images/Gallik_Photo_01.jpg' width='150' height='390' /> <img style='vertical-align: text-bottom;' src='http://stevegallik.org/sites/biologyols.stevegallik.org/themes/marinelli/img/banners/BiologyOLS_Logo_1.jpg' alt= width='450' height='93' /></p> <p><a href='http://biologyols.stevegallik.org'>BiologyOLS</a> is a suite of laboratory manuals I developed for the three upper-level courses I teach at the University of Mary Washington. </p>" ; } ?>