0ac4ab9c6c17dede0bdb5e20ab59327296260803
[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">
52   <font class="standout">MAPS</font> Spam Elimination</h2>
53 </div>
54
55 <div class="content">
56   <?php NavigationBar ($userid)?>
57
58   <h3>Welcome to MAPS!</h3>
59
60   <p>This is the main or home page of MAPS. To the left you see a menu
61   of choices that you can use to explore MAPS functionality. <a
62   href="/maps/bin/stats.cgi">Statistics</a> gives you a view of the
63   spam that MAPS has been trapping for you in tabular format. You can
64   use <a href="/maps/bin/editprofile.cgi">Edit Profile</a> to change
65   your profile information or to change your password.</p>
66
67   <p>MAPS also offers a series of web based <a
68   href="/maps/php/Reports.php">Reports</a> to analyze your mail flow. You
69   can manage your <a href="/maps/php/list.php?type=white">White</a>,
70   <a href="/maps/php/list.php?type=black">Black</a> and <a
71   href="/maps/php/list.php?type=null">Null</a> lists although MAPS
72   seeks to put that responsibility on those who wish to email you. You
73   can use this to pre-register somebody or to black or null list
74   somebody. You can also import/export your lists through these
75   pages.</p>
76
77   <p><a href="/maps/Admin.html">MAPS Administration</a> is to
78   administer MAPS itself and is only available to MAPS
79   Administrators.</p>
80
81   <p>Also on the left you will see <i>Today's Activity</i> which
82   quickly shows you what mail MAPS processed today for you.</p>
83
84   <?php copyright (2001);?>
85
86   </div>
87 </body>
88 </html>