cvs: phpweb / events.php index.php
| From: | jim winstead | Date: | Thu, 03 Jan 2002 18:19:20 +0000 |
| Subject: | cvs: phpweb / events.php index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-8057@lists.php.net to get a copy of this message | ||
jimw Thu Jan 3 13:19:20 2002 EDT
Modified files:
/phpweb index.php events.php
Log:
increase fgetcsv length. there's a longer entry.
Index: phpweb/index.php
diff -u phpweb/index.php:1.178 phpweb/index.php:1.179
--- phpweb/index.php:1.178 Thu Jan 3 08:33:52 2002
+++ phpweb/index.php Thu Jan 3 13:19:20 2002
@@ -56,7 +56,7 @@
if($fp) {
$cm=0;
while(!feof($fp)) {
- list($d,$m,$y,$url,$desc) = fgetcsv($fp,4096);
+ list($d,$m,$y,$url,$desc) = fgetcsv($fp,8192);
if($cm!=(int)$m) {
if($cm) $RSIDEBAR_DATA.= "<br>\n";
else $RSIDEBAR_DATA.='<h3>Upcoming
Events<br> <a href="http://www.php.net/cal.php?a=1">[add
event]</a></h3>';
Index: phpweb/events.php
diff -u phpweb/events.php:1.4 phpweb/events.php:1.5
--- phpweb/events.php:1.4 Thu Sep 27 16:24:37 2001
+++ phpweb/events.php Thu Jan 3 13:19:20 2002
@@ -20,7 +20,7 @@
$days = days();
$fp = @fopen("backend/events.csv",'r');
while(!feof($fp)) {
- list($d,$m,$y,,$sdesc,$id,$ldesc,$url,$recur,$tipo,$sdato,$edato) = fgetcsv($fp,4096);
+ list($d,$m,$y,,$sdesc,$id,$ldesc,$url,$recur,$tipo,$sdato,$edato) = fgetcsv($fp,8192);
if(!$seen[$m][$id]) {
switch($tipo) {
case 1: