Removed /usr/local from CDPATH
[clearscm.git] / maps / php / main.php
1 <?php
2 ////////////////////////////////////////////////////////////////////////////////
3 //
4 // File:        $RCSFile$
5 // Revision:    $Revision: 1.1 $
6 // Description: Display MAPS main page
7 // Author:      Andrew@DeFaria.com
8 // Created:     Fri Nov 29 14:17:21  2002
9 // Modified:    $Date: 2013/06/12 14:05:48 $
10 // Language:    PHP
11 //
12 // (c) Copyright 2000-2006, Andrew@DeFaria.com, all rights reserved.
13 //
14 ////////////////////////////////////////////////////////////////////////////////
15 include "site-functions.php";
16 include "MAPS.php";
17
18 OpenDB ();
19
20 if (isset ($_REQUEST["password"])) {
21   $password = $_REQUEST ["password"];
22 } // if
23
24 if (isset ($userid)) {
25   if (!$from_cookie) {
26     $result = Login ($userid, $password);
27
28     if ($result == -1) {
29       header ("Location: /maps/?errormsg=User $userid does not exist");
30       exit ($result);
31     } elseif ($result == -2) {
32       header ("Location: /maps/?errormsg=Invalid password");
33       exit ($result);
34     } // if
35   } // if
36 } else {
37   header ("Location: /maps/?errormsg=Please specify a username");
38   exit ($result);
39 } // if
40 ?>
41
42 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
43 <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
44 <head>
45   <title>MAPS: Home</title>
46   <?php MAPSHeader ()?>
47 </head>
48 <body>
49
50 <div class="heading">
51   <h2 class="header" align="center">Spam Elimination</h2>
52 </div>
53
54 <div class="content">
55   <?php NavigationBar ($userid)?>
56
57   <h3>Welcome to MAPS!</h3>
58
59   <p>This is the main or home page of MAPS. To the left you see a menu
60   of choices that you can use to explore MAPS functionality. <a
61   href="/maps/bin/stats.cgi">Statistics</a> gives you a view of the
62   spam that MAPS has been trapping for you in tabular format. You can
63   use <a href="/maps/bin/editprofile.cgi">Edit Profile</a> to change
64   your profile information or to change your password.</p>
65
66   <p>MAPS also offers a series of web based <a
67   href="/maps/php/Reports.php">Reports</a> to analyze your mail flow. You
68   can manage your <a href="/maps/php/list.php?type=white">White</a>,
69   <a href="/maps/php/list.php?type=black">Black</a> and <a
70   href="/maps/php/list.php?type=null">Null</a> lists although MAPS
71   seeks to put that responsibility on those who wish to email you. You
72   can use this to pre-register somebody or to black or null list
73   somebody. You can also import/export your lists through these
74   pages.</p>
75
76   <p><a href="/maps/Admin.html">MAPS Administration</a> is to
77   administer MAPS itself and is only available to MAPS
78   Administrators.</p>
79
80   <p>Also on the left you will see <i>Today's Activity</i> which
81   quickly shows you what mail MAPS processed today for you.</p>
82
83   <?php copyright (2001);?>
84
85   </div>
86 </body>
87 </html>