Commit 4189b509 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix copyright to use the current year.

Converted bothersome inline/outline php into a single echo statement
like it used to be when I did the code originally.
parent c6772afc
...@@ -540,38 +540,38 @@ function PAGEFOOTER() { ...@@ -540,38 +540,38 @@ function PAGEFOOTER() {
global $TBDOCBASE, $TBMAILADDR, $THISHOMEBASE; global $TBDOCBASE, $TBMAILADDR, $THISHOMEBASE;
global $TBMAINSITE, $SSL_PROTOCOL; global $TBMAINSITE, $SSL_PROTOCOL;
# echo "<!-- Force full window! --> $today = getdate();
# <base target=_top> $year = $today["year"];
?> echo "<!-- end content -->
<!-- end content -->
</td> </td>
</tr><tr> </tr>
<td colspan=2 class="contentbody"> <tr>
<center><font size=-1> <td colspan=2 class=contentbody>
[&nbsp;<a href="http://www.cs.utah.edu/flux/" <center>
>The&nbsp;Flux&nbsp;Research&nbsp;Group</a>&nbsp;] <font size=-1>
[&nbsp;<a href="http://www.cs.utah.edu/" [&nbsp;<a href=http://www.cs.utah.edu/flux/>
>School&nbsp;of&nbsp;Computing</a>&nbsp;] The&nbsp;Flux&nbsp;Research&nbsp;Group</a>&nbsp;]
[&nbsp;<a href="http://www.utah.edu/" [&nbsp;<a href=http://www.cs.utah.edu/>
>The&nbsp;University&nbsp;of&nbsp;Utah</a>&nbsp;] School&nbsp;of&nbsp;Computing</a>&nbsp;]
[&nbsp;<a href=http://www.utah.edu/>
The&nbsp;University&nbsp;of&nbsp;Utah</a>&nbsp;]
</font> </font>
<br> <br>
<!-- begin copyright --> <!-- begin copyright -->
<font size=-2> <font size=-2>
<a href="<?php echo "$TBDOCBASE"; ?>/docwrapper.php3?docname=copyright.html"> <a href='$TBDOCBASE/docwrapper.php3?docname=copyright.html'>
Copyright &copy; 2000-2002 The University of Utah</a> Copyright &copy; 2000-$year The University of Utah</a>
</font> </font>
<br /> <br>
</center> </center>
<p align=right> <p align=right>
<font size=-2> <font size=-2>
Problems? Problems?
Contact <?php echo "$TBMAILADDR\n"; ?> Contact $TBMAILADDR;
</font> </font>
</p> </p>
<!-- end copyright --> <!-- end copyright -->\n";
<?php
ENDPAGE(); ENDPAGE();
......
...@@ -375,18 +375,18 @@ function DOLOGIN($uid, $password, $adminmode) { ...@@ -375,18 +375,18 @@ function DOLOGIN($uid, $password, $adminmode) {
} }
# #
# Create a last login record. # Create a last login record. This is now obsolete.
# #
DBQueryFatal("REPLACE into lastlogin (uid, time) ". DBQueryFatal("REPLACE into lastlogin (uid, time) ".
" VALUES ('$uid', NOW())"); " VALUES ('$uid', NOW())");
# #
# Usage stats. I think lastlogin can go now. # Usage stats.
# #
#DBQueryFatal("update user_stats set ". DBQueryFatal("update user_stats set ".
# " weblogin_count=weblogin_count+1, ". " weblogin_count=weblogin_count+1, ".
# " weblogin_last=now() ". " weblogin_last=now() ".
# "where uid='$uid'"); "where uid='$uid'");
# #
# Issue the cookie requests so that subsequent pages come back # Issue the cookie requests so that subsequent pages come back
...@@ -509,7 +509,7 @@ function LASTWEBLOGIN($uid) { ...@@ -509,7 +509,7 @@ function LASTWEBLOGIN($uid) {
global $TBDBNAME; global $TBDBNAME;
$query_result = $query_result =
DBQueryFatal("SELECT time from lastlogin where uid='$uid'"); DBQueryFatal("SELECT weblogin_last from user_stats where uid='$uid'");
if (mysql_num_rows($query_result)) { if (mysql_num_rows($query_result)) {
$lastrow = mysql_fetch_array($query_result); $lastrow = mysql_fetch_array($query_result);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment