Location: PHPKode > projects > Club video list website > animelists/index.php
<!--
Animelists website
Copyright (C) 2002 Jeff Wartes

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

-------------------------------------------------

The primary index for the entire list site. Provides the ability to log out,
and links to the other pages. Also displays the most recent changes to the list.

$Id: index.php,v 1.4 2002/10/20 22:23:20 pyreforge Exp $
-->

<script language="JavaScript">
    var expireDate = new Date();
    expireDate.setTime(expireDate.getTime() + 7*24*60*60*1000); //a week's worth of milliseconds
    document.cookie = "lastview=index.php; expires=" + expireDate.toGMTString();
</script>
<html>
<head>
<title>Anime Listings (Version 2.0): Index</title>
<style> <!-- @import url(animelists.css); --> </style>
</head>

<body>

Welcome to the Anime listings!<br>
This site lists anime that the club or members of the club own, and might be
willing to bring for a <a href="http://www.genkibcc.org/">showing</a> if asked nicely.<br>
Wondering what a series is like? Try looking it up on <a href='http://www.animeplex.com/'>animeplex</a>.<br>
<hr>
Although anyone can view the list, only regestered users can add to or change
the list.<br>
<br>

<script language="JavaScript" src="./source/cookiefuncs.js"> </script>
<script language="JavaScript">

<?php
    if (isset($username)){
        echo "var username = \"$username\";";
    }
    else {
        echo "var username = \"\";";
    }
?>
if (username){
    document.write("You are currently logged in as: <b>" + username + "</b><br>");
    document.write("<a href=\"index.php\" onclick=\"document.cookie = \'username=oro; expires=" + getExpiredGMTString() + "\'; document.cookie = \'userpass=oro; expires=" + getExpiredGMTString() + "\'; document.cookie = \'lastview=oro; expires=" + getExpiredGMTString() + "\';\">Log out</a><br>");
    document.write("<a href=\"edit_user.php\">Modify your account</a><br>");
    document.write("<br><a href=\"./extended_list.php\">Modify the list or view contact info</a>");
    document.write("<br><a href=\"./user_management.php\">Manage the user accounts</a>");
}
else {
    document.write("You are not currently logged in.<br>");
    document.write("<a href=\"login.php\">Log in</a><br>");
    document.write("<a href=\"edit_user.php\">Create an account</a>");
}
document.write("<br>");
</script>

<hr>
<big><big><a href="anime_listings.php">View the list</a></big></big>
<?php
    if (!isset($COMMONINCLUDED)){
        include("common.php");
    }
    if (SHOWLATEST){
        if (!isset($LATESTINCLUDED)){
            include("tracklatest.php");
        }
        $changes = printChanges();
        if ($changes){
            echo "<table>";
            echo "  <tr valign='top'><td>Latest Changes:</td>";
            echo "  <td>" . $changes . "</td>";
            echo "  </tr>";
            echo "</table>";
        }
    }
?>
<script language="JavaScript">
if (!username){
    document.write("<small>(Don't forget to log in first if you want to vote)</small>");
}
</script><br>
<a href="add_show.php">Add your anime collection to the list!</a><br>
<hr>
Send comment/suggestions to: <a href="mailto:hide@address.com?subject=Animelists feedback">hide@address.com</a><br>
<a href="notes.htm">Anime list site production notes</a><br>
</body>

</html>
Return current item: Club video list website