cvs: php-master-web /entry event.php
| From: | Gabor Hojtsy | Date: | Sun, 10 Aug 2003 10:56:40 +0000 |
| Subject: | cvs: php-master-web /entry event.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20109@lists.php.net to get a copy of this message | ||
goba Sun Aug 10 06:56:40 2003 EDT
Modified files:
/php-master-web/entry event.php
Log:
Use category names in php-mirrors mail instead of numbers
Index: php-master-web/entry/event.php
diff -u php-master-web/entry/event.php:1.6 php-master-web/entry/event.php:1.7
--- php-master-web/entry/event.php:1.6 Fri May 17 18:13:39 2002
+++ php-master-web/entry/event.php Sun Aug 10 06:56:40 2003
@@ -12,6 +12,7 @@
-2 => 'Second to Last',
-3 => 'Third to Last'
);
+$cat = array("unknown", "User Group Event", "Conference",
"Training");
function day($in) {
return strftime('%A',mktime(12,0,0,4,$in,2001));
@@ -92,7 +93,7 @@
$new_id = mysql_insert_id();
$msg .= "Country: ".stripslashes($country)."\n"
- . "Category: ".stripslashes($category)."\n"
+ . "Category: ".$cat[$category]."\n"
. ($url ? "URL: ".stripslashes($url)."\n" : "")
. "\n".wordwrap(stripslashes($ldesc),72);