1<?php 2/** 3 * Configuration-manager metadata for noiewarning plugin 4 * 5 * @license: GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author: Luis Machuca <luis.machuca@gulix.cl> 7 */ 8 9//if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 10if(!defined('NOIEWARNING_RECOMMENDS')) define('NOIEWARNING_RECOMMENDS', DOKU_PLUGIN.'noiewarning/recommend/'); 11 $recs= array ('', 'custom'); 12 13 if (@is_dir(NOIEWARNING_RECOMMENDS)) { 14 $handle= @opendir(NOIEWARNING_RECOMMENDS); 15 if (false !== $handle) { 16 17 while (false !== ($fnam = @readdir($handle))) { 18 $a= @explode('.', $fnam); 19 $a= $a[0]; 20 if (!@in_array($a, $recs) and ($a!='')) $recs[]= $a; 21 } // end while 22 23 @closedir($handle); 24 } 25 else { 26 $recs[]= 'N/A'; 27 } // opendir 28 } // isdir 29 30/** 31 * @var method 32 * @brief How to send the notification 33 * 34 * Possible values: 35 * - subsection : creates raw content at top of wikipage (default) 36 * - notify : uses DokuWiki notification functions 37 * - note : creates a Note Info (requires Note Plugin) 38 */ 39$meta['method'] = array('multichoice', '_choices'=> array( 40 'subsection','notify','note','splash') 41 ); 42//! wikipage : the wikipage containing the message, in pagename format 43$meta['wikipage'] = array('string'); 44//! banner : the content of the message, in DokuWiki format 45//! better : id string for the recommended browser (empty == use custom) 46$meta['better'] = array('multichoice' , '_choices'=>$recs ); 47//! min_ie_verson : numeric value of the minimal acceptable IE version 48$meta['min_ie_version'] = array('numeric'); 49 50