cvs: phpweb / cvs-php.php php-master-web/entry cvs-account.php
| From: | Hannes Magnusson | Date: | Wed, 11 Jun 2008 21:41:21 +0000 |
| Subject: | cvs: phpweb / cvs-php.php php-master-web/entry cvs-account.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-1917@lists.php.net to get a copy of this message | ||
bjori Wed Jun 11 21:41:21 2008 UTC
Modified files:
/php-master-web/entry cvs-account.php
/phpweb cvs-php.php
Log:
..And now throw doc requests to phpdoc@
http://cvs.php.net/viewvc.cgi/php-master-web/entry/cvs-account.php?r1=1.17&r2=1.18&diff_format=u
Index: php-master-web/entry/cvs-account.php
diff -u php-master-web/entry/cvs-account.php:1.17 php-master-web/entry/cvs-account.php:1.18
--- php-master-web/entry/cvs-account.php:1.17 Wed Jun 11 21:29:06 2008
+++ php-master-web/entry/cvs-account.php Wed Jun 11 21:41:21 2008
@@ -26,6 +26,10 @@
$failto = 'group@php.net';
break;
+case "doc":
+ $mailto = 'phpdoc@lists.php.net';
+ $failto = 'group@php.net';
+ break;
default:
die ("Unknown group");
http://cvs.php.net/viewvc.cgi/phpweb/cvs-php.php?r1=1.44&r2=1.45&diff_format=u
Index: phpweb/cvs-php.php
diff -u phpweb/cvs-php.php:1.44 phpweb/cvs-php.php:1.45
--- phpweb/cvs-php.php:1.44 Wed Jun 11 21:29:06 2008
+++ phpweb/cvs-php.php Wed Jun 11 21:41:21 2008
@@ -1,9 +1,10 @@
<?php
-// $Id: cvs-php.php,v 1.44 2008/06/11 21:29:06 bjori Exp $
+// $Id: cvs-php.php,v 1.45 2008/06/11 21:41:21 bjori Exp $
$_SERVER['BASE_PAGE'] = 'cvs-php.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/email-validation.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
+
$SIDEBAR_DATA = '
<h3>More about CVS</h3>
<p>
@@ -20,6 +21,14 @@
</p>
';
site_header("Using CVS for PHP Development");
+
+$groups = array(
+ "php" => "PHP Group",
+ "pear" => "PEAR Group",
+ "pecl" => "PECL Group",
+ "doc" => "Doc Group",
+);
+
?>
<h1>Using CVS for PHP Development</h1>
@@ -64,7 +73,7 @@
if (empty($_POST['yesno']) || $_POST['yesno'] != 'yes') {
$error .= "You did not fill the form out correctly. ";
}
- if (empty($_POST['group']) || !in_array($_POST['group'],
array("php", "pear","pecl",))) {
+ if (empty($_POST['group']) || !isset($groups[$_POST['group']])) {
$error .= "You did not fill out where to send the request. ";
}
@@ -361,9 +370,12 @@
<th>Send this request to:</th>
<td>
<select name="group">
- <option value="php" <?php if (!isset($_POST["group"]) ||
$_POST["group"] == "php") { echo 'selected="selected"'; }
?>>PHP Group</option>
- <option value="pear" <?php if (isset($_POST["group"]) &&
$_POST["group"] == "pear") { echo 'selected="selected"'; }
?>>PEAR Group</option>
- <option value="pecl" <?php if (isset($_POST["group"]) &&
$_POST["group"] == "pecl") { echo 'selected="selected"'; }
?>>PEAR Group</option>
+<?php
+foreach($groups as $group => $name) {
+ $selected = (isset($_POST["group"]) && $_POST["group"] == $group) ?
' selected="selected"' : '';
+ echo "<option value='$group'$selected>$name</option>\n";
+}
+?>
</select>
</td>
</tr>