Compare commits

..

2 Commits

Author SHA1 Message Date
heikki%netscape.com
a637f81f7f new project started
git-svn-id: svn://10.0.0.236/branches/mozilla@91184 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:13:38 +00:00
(no author)
6cfadae5d1 This commit was manufactured by cvs2svn to create branch 'mozilla'.
git-svn-id: svn://10.0.0.236/branches/mozilla@8534 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 18:36:10 +00:00
16 changed files with 102 additions and 679 deletions

48
mozilla/mozilla.kdevprj Normal file
View File

@@ -0,0 +1,48 @@
# KDE Config File
[mozilla.lsm]
install_location=
dist=true
install=false
type=DATA
[Config for BinMakefileAm]
ldflags=
cxxflags=-O0 -g3 -Wall
bin_program=mozilla
[po/Makefile.am]
sub_dirs=
type=po
[LFV Groups]
Dialogs=*.kdevdlg,
Others=*,
Translations=*.po,
groups=Headers,Sources,Dialogs,Translations,Others,
Sources=*.cpp,*.c,*.cc,*.C,*.cxx,*.ec,*.ecpp,*.lxx,*.l++,*.ll,*.l,
Headers=*.h,*.hh,*.hxx,*.hpp,*.H,
[mozilla.kdevprj]
install_location=
dist=true
install=false
type=DATA
[mozilla/docs/en/Makefile.am]
sub_dirs=
type=normal
[mozilla/Makefile.am]
sub_dirs=
type=prog_main
[General]
makefiles=Makefile.am,mozilla/Makefile.am,mozilla/docs/Makefile.am,mozilla/docs/en/Makefile.am,po/Makefile.am,
version_control=CVS
author=Heikki Toivonen
project_type=normal_empty
sub_dir=mozilla/
version=0.1
project_name=Mozilla
email=heikki@netscape.com
kdevprj_version=1.2
[Makefile.am]
files=mozilla.kdevprj,mozilla.lsm,
sub_dirs=mozilla,
type=normal
[mozilla/docs/Makefile.am]
sub_dirs=
type=normal

14
mozilla/mozilla.lsm Normal file
View File

@@ -0,0 +1,14 @@
Begin3
Title: Mozilla
Version: 0.1
Entered-date:
Description:
Keywords:
Author: Heikki Toivonen <heikki@netscape.com>
Maintained-by: Heikki Toivonen <heikki@netscape.com>
Primary-site:
Home-page: http://
Original-site:
Platforms: Linux and other Unices
Copying-policy: GNU Public License
End

View File

@@ -0,0 +1,20 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/

View File

@@ -0,0 +1,20 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/

View File

@@ -1,120 +0,0 @@
#!/usr/bin/perl -wT
# -*- Mode: perl; indent-tabs-mode: nil -*-
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Hendrix Feedback System.
#
# The Initial Developer of the Original Code is
# Gervase Markham.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK *****
use strict;
# This application requires installation of the "Email::Send" (note: not
# Mail::Send) module.
use Template;
use CGI;
use Email::Send qw(NNTP);
# use CGI::Carp qw(fatalsToBrowser);
# Configuration
my $newsgroup = $::ENV{'HENDRIX_NEWSGROUP'} || "mozilla.feedback";
my $server = $::ENV{'HENDRIX_NNTP_SERVER'} || "news.mozilla.org";
my $skin = $::ENV{'HENDRIX_SKIN'} || "skin/planet.css";
my $cgi = new CGI;
my $form = $cgi->Vars;
my $vars;
$vars->{'form'} = $form;
$vars->{'newsgroup'} = $newsgroup;
$vars->{'stylesheet'} = $skin;
my $template = Template->new({
INCLUDE_PATH => ["template"],
PRE_CHOMP => 1,
TRIM => 1,
FILTERS => {
email => \&emailFilter,
},
}) || die("Template creation failed.\n");
my $action = $cgi->param("action");
if (!$action) {
# If no action, show the submission form
print "Content-Type: text/html\n\n";
$template->process("index.html.tmpl", $vars)
|| die("Template process failed: " . $template->error() . "\n");
}
elsif ($action eq "submit") {
# Format the parameters and send to the newsgroup.
# Check for compulsory parameters
if (!$form->{'name'} || !$form->{'subject'} || !$form->{'product'}) {
throwError("bad_parameters");
}
my $message;
my $headers;
$template->process("message-headers.txt.tmpl", $vars, \$headers)
|| die("Template process failed: " . $template->error() . "\n");
$template->process("message.txt.tmpl", $vars, \$message)
|| die("Template process failed: " . $template->error() . "\n");
# Post formatted message to newsgroup
my $newsMsg = Email::Simple->new($headers . "\n\n" . $message);
my $success = send NNTP => $newsMsg, $server;
throwError("cant_post") if (!$success);
# Give user feedback on success
$vars->{'headers'} = $headers;
$vars->{'message'} = $message;
print "Content-Type: text/html\n\n";
$template->process("submit-successful.html.tmpl", $vars)
|| die("Template process failed: " . $template->error() . "\n");
}
else {
die("Unknown action $action\n");
}
exit;
# Simple email obfuscation
sub emailFilter {
my ($var) = @_;
$var =~ s/\@/_at_/;
return $var;
}
sub throwError {
my ($error) = @_;
$vars->{'error'} = $error;
print "Content-Type: text/html\n\n";
$template->process("error.html.tmpl", $vars)
|| die("Template process failed: " . $template->error() . "\n");
exit;
}

View File

@@ -1,68 +0,0 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Hendrix Feedback System.
*
* The Initial Developer of the Original Code is
* Gervase Markham.
* Portions created by the Initial Developer are Copyright (C) 2004
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* ***** END LICENSE BLOCK ***** */
.sidebar {
float: right;
width: 200px;
font-size: small;
text-align: center;
}
#header-img {
border: 1px grey solid;
margin-left: 10px;
}
p.error {
color: red;
}
h1 {
font-size: x-large;
}
input[type="text"] {
font-family: monospace;
}
#name, #email {
width: 25em;
}
#subject, #comments {
width: 45em;
}
#comments {
height: 20ex;
}
.label {
text-align: right;
padding-right: 0.5em;
}
.newsgroup {
font-family: monospace;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -1,100 +0,0 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is a stylesheet for the Hendrix Feedback System.
*
* The Initial Developer of the Original Code is
* KDS Sahambi <kds.sahambi@gmail.com>.
* Portions created by the Initial Developer are Copyright (C) 2005
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Gervase Markham <gerv@gerv.net>
*
* ***** END LICENSE BLOCK ***** */
@import url("http://planet.mozilla.org/planet.css");
input[type="text"] {
font-family: monospace;
}
#name:focus, #email:focus, #subject:focus, #comments:focus, #product:focus {
background-color: #e4ecec;
}
#name, #email {
width: 62.5%;
}
#subject {
width: 100%;
}
#comments {
height: 20ex;
}
#header-img {
margin-top: 37px;
padding: 2px;
border: 2px solid #455372;
background: #e4ecec;
}
div.sidebar {
position: static;
float: right;
text-align: center;
}
.label {
text-align: right;
padding-right: 0.5em;
}
.newsgroup {
font-family: monospace;
}
p.error {
color: red;
}
h1 {
background-image: url("mozhead.gif");
background-repeat: no-repeat;
background-position: 2.5% 50%;
padding-left: 80px;
clear: right;
}
body {
background: #fff url("http://www.mozilla.org/images/subsite_back.gif") repeat-x;
margin: 20px;
margin-top: 0;
padding-top: 0;
min-width: 610px;
}
#mozilla-org a {
float: right;
display: block;
text-indent: -5000em;
width: 110px;
height: 25px;
text-decoration: none;
background: url("http://www.mozilla.org/images/subsite_mozilla-org.gif") no-repeat;
margin-bottom: 1.5em;
}

View File

@@ -1,57 +0,0 @@
[%# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Hendrix Feedback System.
#
# The Initial Developer of the Original Code is
# Gervase Markham.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% PROCESS header.html.tmpl
title = "Hendrix - Error" %]
<p>Unfortunately, there is a problem with your submission, as follows:
</p>
[% SWITCH error %]
[% CASE "bad_parameters" %]
<p class="error">
You need to fill in all the required fields - name, product, summary
and your actual feedback.
</p>
<p>Please press Back and fill in the missing field(s).</p>
[% CASE "cant_post" %]
<p class="error">
We are unable to send your feedback to the server.
</p>
<p>Please try again later. Your feedback is reproduced below so you can
save it somewhere.</p>
<pre>
[% message FILTER html %]
</pre>
[% CASE DEFAULT %]
The error is unknown. Please try again later.
[% END %]
[% PROCESS footer.html.tmpl %]

View File

@@ -1,27 +0,0 @@
[%# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Hendrix Feedback System.
#
# The Initial Developer of the Original Code is
# Gervase Markham.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
</body>
</html>

View File

@@ -1,58 +0,0 @@
[%# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Hendrix Feedback System.
#
# The Initial Developer of the Original Code is
# Gervase Markham.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>[% title %]</title>
<link rel="stylesheet" href="[% stylesheet FILTER html %]">
<script language="JavaScript" type="text/javascript">
[% script %]
</script>
</head>
<body onload="[% onload %]">
<div id="mozilla-org"><a href="http://www.mozilla.org/" title="Visit mozilla.org">Visit mozilla.org</a></div>
[% IF NOT h1 AND title %]
[% h1 = title %]
[% END %]
[% IF h1 %]
<h1>[% h1 %]</h1>
[% END %]
<div class="sidebar">
<div>
<img id="header-img" src="skin/hendrix.jpg">
<p class="caption">
Why "Hendrix"? The late
<a href="http://en.wikipedia.org/wiki/Jimi_Hendrix">Jimi Hendrix</a>
is credited with making popular the technique of using feedback
in the creation of music.
</p>
</div>
</div>

View File

@@ -1,141 +0,0 @@
[%# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Hendrix Feedback System.
#
# The Initial Developer of the Original Code is
# Gervase Markham.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% script = BLOCK %]
var ids = ["name", "subject", "comments"];
function checkSubmitEnable() {
/* To enable the button, all fields must have a value */
var enable = true;
for (var i = 0; i < ids.length; i++) {
if (document.getElementById(ids[i]).value == "") {
enable = false;
break;
}
}
document.getElementById("send-feedback").disabled = !enable;
}
function onLoad() {
/* Add the event listeners, and disable the button initially */
for (var i = 0; i < ids.length; i++) {
document.getElementById(ids[i]).onkeyup = checkSubmitEnable;
}
checkSubmitEnable();
}
[% END %]
[% PROCESS header.html.tmpl
title = "Hendrix - mozilla.org Feedback System"
onload = "onLoad()"
%]
<p>This is Hendrix - the mozilla.org system for leaving quick feedback on and suggestions for our products. Looking for support? <a href="http://www.mozilla.org/support/">See our support pages</a>.</p>
<p>If you are using the latest developer release of Firefox, and have noticed a website is broken, please instead pull down the Help menu and select "Report Broken Web Site". If you have a specific and detailed bug report, please file it in
<a href="https://bugzilla.mozilla.org/enter_bug.cgi">Bugzilla</a>.</p>
<p>Due to the number of suggestions and comments that are received, you should not expect a direct response. But your views are important to us, so please do let us know what you think.</p>
<form id="feedback-form" method="POST">
<table id="feedback-table">
<tr>
<td class="label">Name:</td>
<td class="widget">
<input id="name" name="name" type="text"
value="[% form.email FILTER html %]"/>
</td>
</tr>
<tr>
<td class="label">Email:</td>
<td class="widget">
<input id="email" name="email" type="text"
value="[% form.email FILTER html %]"/> (optional)
</td>
</tr>
<tr>
<td class="label">
Product:
</td>
<td class="widget">
<select id="product" name="product">
<option name="Firefox">Firefox</option>
<option name="Thunderbird">Thunderbird</option>
<option name="Mozilla Suite">Mozilla Suite</option>
<option name="SeaMonkey">SeaMonkey</option>
<option name="Sunbird">Sunbird</option>
<option name="Camino">Camino</option>
<option name="Bon Echo">Bon Echo</option>
<option name="Minefield">Minefield</option>
<option name="Other">Other (please state)</option>
</select>
</td>
</tr>
<tr>
<td class="label">
Summary:
</td>
<td class="widget">
<input id="subject" name="subject" type="text"
value="[% form.subject FILTER html %]"/>
</td>
</tr>
<tr>
<td class="label">
Detailed Comments:
</td>
<td class="widget">
<textarea id="comments" name="comments" wrap="hard" cols="72"
>[% form.comments FILTER html %]</textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<input id="send-feedback" type="submit" value="Send Feedback"/>
</td>
</tr>
</table>
<input type="hidden" name="useragent" id="useragent" value=""/>
<script type="text/javascript">
if (document.getElementById)
{
var useragent = navigator.userAgent;
document.getElementById("useragent").setAttribute("value", useragent);
}
</script>
<input type="hidden" name="action" value="submit"/>
</form>
<p>
Information from this form will be published to the newsgroup <span class="newsgroup">[% newsgroup %]</span> so project contributors can read it. Do not submit any information unless you wish it to be made public. Your email address will be obfuscated to make life difficult for spammers.
</p>
[% PROCESS footer.html.tmpl %]

View File

@@ -1,34 +0,0 @@
[%# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Hendrix Feedback System.
#
# The Initial Developer of the Original Code is
# Gervase Markham.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% from = form.name %]
[% IF form.email %]
[% from = BLOCK %]
[% from %] <[% form.email FILTER email %]>
[% END %]
[% END %]
Newsgroups: [% newsgroup %]
From: [% from %]
X-Hendrix-Product: [% form.product %]
Subject: [Hendrix] [% form.subject %]

View File

@@ -1,37 +0,0 @@
[%# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Hendrix Feedback System.
#
# The Initial Developer of the Original Code is
# Gervase Markham.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
Name: [% form.name %]
[% IF form.email %]
Email: [% form.email FILTER email %]
[% END %]
Product: [% form.product %]
Summary: [% form.subject %]
Comments:
[%+ form.comments %]
[% IF form.useragent %]
Browser Details: [% form.useragent %]
[% END %]

View File

@@ -1,37 +0,0 @@
[%# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Hendrix Feedback System.
#
# The Initial Developer of the Original Code is
# Gervase Markham.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% PROCESS header.html.tmpl
title = "Hendrix - Submission Successful" %]
<p>Thank you for your feedback, and for using our software.</p>
<p>Your message was:</p>
<pre>
[% message FILTER html %]
</pre>
[% PROCESS footer.html.tmpl %]