93134850769cdbf1af3faa35b752e7be4f08ba37
[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 $password = $_REQUEST ["password"];
21
22 if (isset ($userid)) {
23   if (!$from_cookie) {
24     $result = Login ($userid, $password);
25
26     if ($result == -1) {
27       header ("Location: /maps/?errormsg=User $userid does not exist");
28       exit ($result);
29     } elseif ($result == -2) {
30       header ("Location: /maps/?errormsg=Invalid password");
31       exit ($result);
32     } // if
33   } // if
34 } else {
35   header ("Location: /maps/?errormsg=Please specify a username");
36   exit ($result);
37 } // if
38 ?>
39
40 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
41 <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
42 <head>
43   <title>MAPS: Home</title>
44   <?php MAPSHeader ()?>
45 </head>
46 <body>
47
48 <div class="heading">
49   <h2 class="header" align="center">
50   <font class="standout">MAPS</font> Spam Elimination</h2>
51 </div>
52
53 <div class="content">
54   <?php NavigationBar ($userid)?>
55
56   <h3>Welcome to MAPS!</h3>
57
58   <p>This is the main or home page of MAPS. To the left you see a menu
59   of choices that you can use to explore MAPS functionality. <a
60   href="/maps/bin/stats.cgi">Statistics</a> gives you a view of the
61   spam that MAPS has been trapping for you in tabular format. You can
62   use <a href="/maps/bin/editprofile.cgi">Edit Profile</a> to change
63   your profile information or to change your password.</p>
64
65   <p>MAPS also offers a series of web based <a
66   href="/maps/php/Reports.php">Reports</a> to analyze your mail flow. You
67   can manage your <a href="/maps/php/list.php?type=white">White</a>,
68   <a href="/maps/php/list.php?type=black">Black</a> and <a
69   href="/maps/php/list.php?type=null">Null</a> lists although MAPS
70   seeks to put that responsibility on those who wish to email you. You
71   can use this to pre-register somebody or to black or null list
72   somebody. You can also import/export your lists through these
73   pages.</p>
74
75   <p><a href="/maps/Admin.html">MAPS Administration</a> is to
76   administer MAPS itself and is only available to MAPS
77   Administrators.</p>
78
79   <p>Also on the left you will see <i>Today's Activity</i> which
80   quickly shows you what mail MAPS processed today for you.</p>
81
82   <?php copyright (2001);?>
83
84   </div>
85 </body>
86 </html>