cvs: phpweb / index.php

From: Date: Sat, 22 Sep 2001 03:04:11 +0000
Subject: cvs: phpweb / index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6571@lists.php.net to get a copy of this message
jimw Fri Sep 21 23:04:11 2001 EDT Modified files: /phpweb index.php Log: events are distributed via rsync now Index: phpweb/index.php diff -u phpweb/index.php:1.143 phpweb/index.php:1.144 --- phpweb/index.php:1.143 Fri Sep 21 13:17:42 2001 +++ phpweb/index.php Fri Sep 21 23:04:08 2001 @@ -63,28 +63,7 @@ </p> '; -$tmp = '/tmp'; /* hopefully writeable on all mirrors */ - -if($t=@filemtime("$tmp/php_cal_events.csv")) { - if(time()-$t > 21600) $t=false; -} -if(!$t) { - $url = 'http://www.php.net/cal.php?format=csv&nm=3'; - $fpo = @fopen("$tmp/php_cal_events.tmp",'w'); - if($fpo) { - $fpi = @fopen($url,'r'); - if($fpi) { - while(!feof($fpi)) { - $line = fgets($fpi,1024); - fputs($fpo,$line); - } - fclose($fpi); - fclose($fpo); - @rename("$tmp/php_cal_events.tmp","$tmp/php_cal_events.csv"); - } - } -} -$fp = @fopen("$tmp/php_cal_events.csv",'r'); +$fp = @fopen("backend/events.csv",'r'); if($fp) { $cm=0; while(!feof($fp)) {

« previous php.mirrors (#6571) next »