cvs: pearweb /public_html support.php
| From: | Tomas V.V.Cox | Date: | Fri, 26 Jul 2002 08:50:22 +0000 |
| Subject: | cvs: pearweb /public_html support.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5349@lists.php.net to get a copy of this message | ||
cox Fri Jul 26 04:50:22 2002 EDT
Modified files:
/pearweb/public_html support.php
Log:
untabified
Index: pearweb/public_html/support.php
diff -u pearweb/public_html/support.php:1.24 pearweb/public_html/support.php:1.25
--- pearweb/public_html/support.php:1.24 Fri Jul 26 04:48:58 2002
+++ pearweb/public_html/support.php Fri Jul 26 04:50:21 2002
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: support.php,v 1.24 2002/07/26 08:48:58 cox Exp $
+ $Id: support.php,v 1.25 2002/07/26 08:50:21 cox Exp $
*/
$SIDEBAR_DATA='
@@ -33,22 +33,22 @@
<?php
if (isset($maillist)) {
- # should really grab some email validating routine and use it here.
- if (empty($email) || $email == 'user@example.com') {
- echo "You forgot to specify an email address to be added to the list. ";
- echo "Go back and try again.";
- } else {
- $request = strtolower($action);
+ # should really grab some email validating routine and use it here.
+ if (empty($email) || $email == 'user@example.com') {
+ echo "You forgot to specify an email address to be added to the list. ";
+ echo "Go back and try again.";
+ } else {
+ $request = strtolower($action);
if ($request != "subscribe" && $request !=
"unsubscribe") {
$request = "subscribe";
}
- $sub = str_replace("@", "=", $email);
- switch ($maillist) {
- default:
- mail("$maillist-$request-$sub@lists.php.net", "Website Subscription",
- "This was a request generated from the form at http://pear.php.net/support.php.",
"From: $email\r\n");
- break;
- }
+ $sub = str_replace("@", "=", $email);
+ switch ($maillist) {
+ default:
+ mail("$maillist-$request-$sub@lists.php.net", "Website
Subscription",
+ "This was a request generated from the form at http://pear.php.net/support.php.",
"From: $email\r\n");
+ break;
+ }
?>
<p>
A request has been entered into the mailing list processing queue. You
@@ -56,7 +56,7 @@
complete your request.
</p>
<?php
- }
+ }
} else {
?>
@@ -99,29 +99,29 @@
<?php
while ( list(, $listinfo) = each($mailing_lists)) {
- if (!is_array($listinfo)) {
+ if (!is_array($listinfo)) {
- echo '<tr bgcolor="#cccccc">';
- echo '<th>' . $listinfo . '</th>';
- echo '<th>Moderated</th>';
- echo '<th>Archive</th>';
- echo '<th>Newsgroup</th>';
- echo '<th>Normal</th>';
- echo '<th>Digest</th>';
- echo '</tr>' . "\n";
-
- } else {
-
- echo '<tr align="center" bgcolor="#e0e0e0">';
- echo '<td align="left"><b>' . $listinfo[1] .
'</b><br /><small>'. $listinfo[2] .
'</small></td>';
- echo '<td>' . ($listinfo[3] ? 'yes' : 'no') .
'</td>';
- echo '<td>' . ($listinfo[4] ? make_link("http://marc.theaimsgroup.com/?l=".$listinfo[0],
'yes') : 'n/a') . '</td>';
- echo '<td>' . ($listinfo[6] ? make_link("news://news.php.net/".$listinfo[6],
'yes') : 'n/a') . '</td>';
- echo '<td><input name="maillist" type="radio"
value="' . $listinfo[0] . '" /></td>';
- echo '<td>' . ($listinfo[5] ? '<input name="maillist"
type="radio" value="'.$listinfo[0].'-digest" />' :
'n/a' ) . '</td>';
- echo '</tr>' . "\n";
+ echo '<tr bgcolor="#cccccc">';
+ echo '<th>' . $listinfo . '</th>';
+ echo '<th>Moderated</th>';
+ echo '<th>Archive</th>';
+ echo '<th>Newsgroup</th>';
+ echo '<th>Normal</th>';
+ echo '<th>Digest</th>';
+ echo '</tr>' . "\n";
+
+ } else {
+
+ echo '<tr align="center" bgcolor="#e0e0e0">';
+ echo '<td align="left"><b>' . $listinfo[1] .
'</b><br /><small>'. $listinfo[2] .
'</small></td>';
+ echo '<td>' . ($listinfo[3] ? 'yes' : 'no') .
'</td>';
+ echo '<td>' . ($listinfo[4] ? make_link("http://marc.theaimsgroup.com/?l=".$listinfo[0],
'yes') : 'n/a') . '</td>';
+ echo '<td>' . ($listinfo[6] ? make_link("news://news.php.net/".$listinfo[6],
'yes') : 'n/a') . '</td>';
+ echo '<td><input name="maillist" type="radio"
value="' . $listinfo[0] . '" /></td>';
+ echo '<td>' . ($listinfo[5] ? '<input name="maillist"
type="radio" value="'.$listinfo[0].'-digest" />' :
'n/a' ) . '</td>';
+ echo '</tr>' . "\n";
- }
+ }
}
?>
@@ -237,36 +237,36 @@
<h2>Powered By PEAR/PECL</h2>
<p>
- What programming tool would be complete without a set of
- icons to put on your webpage, telling the world what makes
- your site tick?
+ What programming tool would be complete without a set of
+ icons to put on your webpage, telling the world what makes
+ your site tick?
</p>
<?php
$icons = Array(
- 'pear-power.gif' => 'Powered by PEAR, GIF format',
- 'pear-power.png' => 'Powered by PEAR, PNG format',
- 'pecl-power.gif' => 'Powered by PECL, GIF format',
- 'pecl-power.png' => 'Powered by PECL, PNG format',
+ 'pear-power.gif' => 'Powered by PEAR, GIF format',
+ 'pear-power.png' => 'Powered by PEAR, PNG format',
+ 'pecl-power.gif' => 'Powered by PECL, GIF format',
+ 'pecl-power.png' => 'Powered by PECL, PNG format',
);
echo '<table cellpadding="5" cellspacing="1">';
foreach ($icons as $file=>$desc) {
- echo '<tr bgcolor="e0e0e0">';
- echo '<td>' . make_image($file,$desc) . '<br></td>';
- echo '<td>' . $desc . '<br><small>';
- $size = @getimagesize($HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/gifs/'.$file);
- if ($size) {
- echo $size[0] . ' x ' . $size[1] . ' pixels<br>';
- }
- $size = @filesize($HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/gifs/'.$file);
- if ($size) {
- echo $size . ' bytes<br>';
- }
- echo '</small>';
- echo '</td></tr>';
+ echo '<tr bgcolor="e0e0e0">';
+ echo '<td>' . make_image($file,$desc) . '<br></td>';
+ echo '<td>' . $desc . '<br><small>';
+ $size = @getimagesize($HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/gifs/'.$file);
+ if ($size) {
+ echo $size[0] . ' x ' . $size[1] . ' pixels<br>';
+ }
+ $size = @filesize($HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/gifs/'.$file);
+ if ($size) {
+ echo $size . ' bytes<br>';
+ }
+ echo '</small>';
+ echo '</td></tr>';
}
echo '</table>';