Changeset 99287 in spip-zone
- Timestamp:
- Aug 30, 2016, 5:55:44 PM (4 years ago)
- Location:
- _plugins_/icalendar/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/icalendar/trunk/lib/iCalcreator.class.php
r99082 r99287 46 46 /*********************************************************************************/ 47 47 /* version, do NOT remove!! */ 48 define( 'ICALCREATOR_VERSION', 'iCalcreator 2.16.12 ' );48 define( 'ICALCREATOR_VERSION', 'iCalcreator 2.16.12 (forké par Maïeul)' ); 49 49 /*********************************************************************************/ 50 50 /*********************************************************************************/ … … 1662 1662 $filename = $this->getConfig( 'dirfile' ); 1663 1663 /* READ FILE */ 1664 if( FALSE === ( $rows = file_get_contents( $filename ))) 1665 return FALSE; /* err 1 */ 1664 // Hack ajouté par Maïeul pour Facebook qui bloque si pas de bon http header 1665 if (stripos($filename,"facebook") === False){ 1666 if( FALSE === ( $rows = file_get_contents( $filename ))) 1667 return FALSE; /* err 1 */ 1668 } 1669 else{ 1670 $opts = array( 1671 "http" => array( 1672 "user_agent" => "facebookexternalhit/" 1673 ) 1674 ); 1675 $context = stream_context_create($opts); 1676 if ( FALSE === ($rows = file_get_contents($filename, false, $context))) 1677 return FALSE; /* errr 1 */ 1678 } 1666 1679 } 1667 1680 elseif( is_array( $unparsedtext )) -
_plugins_/icalendar/trunk/plugin.xml
r99082 r99287 3 3 <auteur>Fil</auteur> 4 4 <licence>GNU/GPL - (c) 2010-2011</licence> 5 <version>0.4. 3</version>5 <version>0.4.4</version> 6 6 <etat>dev</etat> 7 7 <description>Faire des boucles iCalendar (format ics)</description>
Note: See TracChangeset
for help on using the changeset viewer.