minupd
This commit is contained in:
parent
9bd6b5083a
commit
f6f1eda4df
|
@ -37,7 +37,7 @@
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
/* (1) Headers */
|
/* (1) Headers */
|
||||||
header('Content-Type: text/calendar; charset=utf-8');
|
header('Content-Type: text/calendar; charset=utf-8');
|
||||||
// header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics');
|
header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics');
|
||||||
|
|
||||||
/* (2) Body */
|
/* (2) Body */
|
||||||
readfile($file_name);
|
readfile($file_name);
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
if( !file_exists(__ROOT__."/tmp/$id.ics") )
|
if( !file_exists(__ROOT__."/tmp/$id.ics") )
|
||||||
echo "<span>$name</span><br>";
|
echo "<span>$name</span><br>";
|
||||||
else
|
else
|
||||||
echo "<a href='/ics/$id' disabled>$name</a><br>";
|
echo "<a href='/ics/$id.ics' disabled>$name</a><br>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue