From b2bae4bc6a46a91c112a49de078add9fdc8c7d15 Mon Sep 17 00:00:00 2001
From: John Fieber
Date: Sun, 6 Oct 1996 14:14:27 +0000
Subject: [PATCH] Record the posting host. Automatically add a "New!" icon.
---
data/cgi/gallery.cgi | 17 ++++++++---------
en/cgi/gallery.cgi | 17 ++++++++---------
2 files changed, 16 insertions(+), 18 deletions(-)
diff --git a/data/cgi/gallery.cgi b/data/cgi/gallery.cgi
index c3c872947a..e31d26d200 100755
--- a/data/cgi/gallery.cgi
+++ b/data/cgi/gallery.cgi
@@ -3,7 +3,7 @@
# A CGI form processor for FreeBSD Gallery submissions
#
# John Fieber
-# August 9 1996
+# $Id: gallery.cgi,v 1.3 1996-10-06 14:14:27 jfieber Exp $
##################################################################
$curator = "jfieber@indiana.edu";
@@ -13,14 +13,14 @@ $subject = "Another gallery submission...";
require 'cgi-lib.pl';
&ReadParse;
-#$d_date = "$Date: 1996-10-01 19:46:14 $";
+$hsty_date = "\$Date: 1996-10-06 14:14:27 $";
#$h_base = "..";
#$d_author = "
require 'cgi-style.pl';
# Construct the gallery entry in HTML form
$entry = "$in{'organization'} " .
- "-- $in{'description'}";
+ "-- $in{'description'} &i.new;";
# Try and figure out where the person came from so we can provide
# links back to the correct place.
@@ -83,7 +83,7 @@ If anything is wrong, use your
browser's back button and correct it.
If everything is okay, press the submit button
below.
-Contact person: $in{'contact'}
+Contact person: $in{'contact'}
$in{'category'}
$entry
@@ -104,8 +104,8 @@ $entry
# And this is where we thank them for submitting an entry.
$formc = &html_header("Thank You!") .
-"Please allow a few days for your entry to be added
-to the Gallery.
+"Thank you for your entry! Please allow a few days for your
+entry to be added to the Gallery.
$return
" . &html_footer();
@@ -118,9 +118,8 @@ elsif ($in{'action'} eq "submit") {
# close(STDOUT);
open(M, "| mail -s \"$subject\" $curator");
- print M "$in{'contact'} submitted the following to be added under\n";
- print M "\"$in{'category'}\" in the gallery:\n\n";
- print M "\n";
+ print M "\"$in{'category'}\" gallery entry:\n\n";
+ print M "\n";
print M "$entry\n";
close(M);
}
diff --git a/en/cgi/gallery.cgi b/en/cgi/gallery.cgi
index c3c872947a..e31d26d200 100755
--- a/en/cgi/gallery.cgi
+++ b/en/cgi/gallery.cgi
@@ -3,7 +3,7 @@
# A CGI form processor for FreeBSD Gallery submissions
#
# John Fieber
-# August 9 1996
+# $Id: gallery.cgi,v 1.3 1996-10-06 14:14:27 jfieber Exp $
##################################################################
$curator = "jfieber@indiana.edu";
@@ -13,14 +13,14 @@ $subject = "Another gallery submission...";
require 'cgi-lib.pl';
&ReadParse;
-#$d_date = "$Date: 1996-10-01 19:46:14 $";
+$hsty_date = "\$Date: 1996-10-06 14:14:27 $";
#$h_base = "..";
#$d_author = "
require 'cgi-style.pl';
# Construct the gallery entry in HTML form
$entry = "- $in{'organization'} " .
- "-- $in{'description'}
";
+ "-- $in{'description'} &i.new;";
# Try and figure out where the person came from so we can provide
# links back to the correct place.
@@ -83,7 +83,7 @@ If anything is wrong, use your
browser's back button and correct it.
If everything is okay, press the submit button
below.
-Contact person: $in{'contact'}
+Contact person: $in{'contact'}
$in{'category'}
$entry
@@ -104,8 +104,8 @@ $entry
# And this is where we thank them for submitting an entry.
$formc = &html_header("Thank You!") .
-"Please allow a few days for your entry to be added
-to the Gallery.
+"Thank you for your entry! Please allow a few days for your
+entry to be added to the Gallery.
$return
" . &html_footer();
@@ -118,9 +118,8 @@ elsif ($in{'action'} eq "submit") {
# close(STDOUT);
open(M, "| mail -s \"$subject\" $curator");
- print M "$in{'contact'} submitted the following to be added under\n";
- print M "\"$in{'category'}\" in the gallery:\n\n";
- print M "\n";
+ print M "\"$in{'category'}\" gallery entry:\n\n";
+ print M "\n";
print M "$entry\n";
close(M);
}