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() {
global $TBDOCBASE, $TBMAILADDR, $THISHOMEBASE;
global $TBMAINSITE, $SSL_PROTOCOL;
# echo "<!-- Force full window! -->
# <base target=_top>
$today = getdate();
$year = $today["year"];
?>
<!-- end content -->
echo "<!-- end content -->
</td>
</tr><tr>
<td colspan=2 class="contentbody">
<center><font size=-1>
[&nbsp;<a href="http://www.cs.utah.edu/flux/"
>The&nbsp;Flux&nbsp;Research&nbsp;Group</a>&nbsp;]
[&nbsp;<a href="http://www.cs.utah.edu/"
>School&nbsp;of&nbsp;Computing</a>&nbsp;]
[&nbsp;<a href="http://www.utah.edu/"
>The&nbsp;University&nbsp;of&nbsp;Utah</a>&nbsp;]
</tr>
<tr>
<td colspan=2 class=contentbody>
<center>
<font size=-1>
[&nbsp;<a href=http://www.cs.utah.edu/flux/>
The&nbsp;Flux&nbsp;Research&nbsp;Group</a>&nbsp;]
[&nbsp;<a href=http://www.cs.utah.edu/>
School&nbsp;of&nbsp;Computing</a>&nbsp;]
[&nbsp;<a href=http://www.utah.edu/>
The&nbsp;University&nbsp;of&nbsp;Utah</a>&nbsp;]
</font>
<br>
<!-- begin copyright -->
<font size=-2>
<a href="<?php echo "$TBDOCBASE"; ?>/docwrapper.php3?docname=copyright.html">
Copyright &copy; 2000-2002 The University of Utah</a>
</font>
<br />
<a href='$TBDOCBASE/docwrapper.php3?docname=copyright.html'>
Copyright &copy; 2000-$year The University of Utah</a>
</font>
<br>
</center>
<p align=right>
<font size=-2>
Problems?
Contact <?php echo "$TBMAILADDR\n"; ?>
Contact $TBMAILADDR;
</font>
</p>
<!-- end copyright -->
<?php
<!-- end copyright -->\n";
ENDPAGE();
......
......@@ -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) ".
" VALUES ('$uid', NOW())");
#
# Usage stats. I think lastlogin can go now.
# Usage stats.
#
#DBQueryFatal("update user_stats set ".
# " weblogin_count=weblogin_count+1, ".
# " weblogin_last=now() ".
# "where uid='$uid'");
DBQueryFatal("update user_stats set ".
" weblogin_count=weblogin_count+1, ".
" weblogin_last=now() ".
"where uid='$uid'");
#
# Issue the cookie requests so that subsequent pages come back
......@@ -509,7 +509,7 @@ function LASTWEBLOGIN($uid) {
global $TBDBNAME;
$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)) {
$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