chmod on the .ics file when created to allow to override it

This commit is contained in:
xdrm-brackets 2017-09-15 08:09:46 +02:00
parent ac50e121a4
commit a70267ea06
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@
foreach($this->config->getDiplomes() as $d_id=>$d_name){ foreach($this->config->getDiplomes() as $d_id=>$d_name){
file_put_contents(__ROOT__."/tmp/$d_id.ics", "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//xdrm.io//NONSGML v1.0//EN\nMETHOD:PUBLISH\nX-WR-CALNAME: UPPA $d_name\n"); file_put_contents(__ROOT__."/tmp/$d_id.ics", "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//xdrm.io//NONSGML v1.0//EN\nMETHOD:PUBLISH\nX-WR-CALNAME: UPPA $d_name\n");
\chmod(__ROOT__."/tmp/$d_id.ics", 775);
/* (1) Browse each date /* (1) Browse each date
---------------------------------------------------------*/ ---------------------------------------------------------*/