"; $logo = ""; } else{ $host = "Artcontext"; $banner = ""; $logo = ""; } function defaultFormMsg($email) { global $logo,$banner,$HTTP_HOST,$PHP_SELF,$addrem,$art,$activism,$essays,$host; if(eregi("rem",$addrem)){ $selected = "selected"; $msg = "

Please select categories from which
you wish to unsubscribe.

"; }else if(eregi("add",$addrem)){ if(empty($art)&&empty($activism)&&empty($essays)){ $msg = "

Please select categories to which
you wish to subscribe.

"; } else $msg = "

By adding your email address here
you will be notified of new projects
brought online at $host.

Your address will NOT be used for any other purpose. Details"; }else{ $msg = "

By adding your email address here
you will be notified of new projects
brought online at $host.

Your address will NOT be used for any other purpose. Details"; } print(" Add me to the list...
$banner

$msg 
  • Announcement examples 2013, 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002, 2001, 2000, 1999
  • List action:
    Email address:
    Announcement categories:
    Art
    Activism
    Essays
    "); print("

     

    $logo
    "); } function confirmMsg ($email,$art,$essays,$activism,$addrem){ global $logo,$banner,$PHP_SELF,$HTTP_HOST,$host; print(" Confirm

    Please confirm that this is right.

    $email

    "); if($addrem == "add"){ print "Notify regarding:"; }else{ print "Remove from:"; } if(!empty($essays)) print "
    • $essays
    "; if(!empty($art)) print "
    • $art
    "; if(!empty($activism)) print "
    • $activism
    "; if(eregi("MSIE 3",$HTTP_USER_AGENT)){ print "   Make correction   "; }else{ print "   "; } print "
    "; } function listActionCompleteMsg($email){ global $logo,$banner,$HTTP_HOST,$host; print(" List action completed

    A report has been sent to $email.

    $banner"); } # This is important, so other web sites don't use us as a mail gateway if( empty($email) || ( empty($art) && empty($activism) && empty($essays) )){ defaultFormMsg($email); } elseif( !empty($confirm) && !empty($addrem) && !empty($email)){ $db = file("/home/deck/people/contacts/contacts.db"); if(!$db) print("ouch bad db identifier"); if($addrem == "add"){ $subject = "$host subscription report."; $msg ="You have been added to the following categories:\n\n"; }else{ $subject = "$host subscription report."; $msg = "You have been removed from the following categories:\n\n"; } if(!empty($art) && !empty($essays) && !empty($activism) && ($addrem == "remove")){ $f = fopen("/home/deck/people/contacts/contacts.db","w"); if($f){ for($i=0;$i