コード例 #1
0
 function PluginDump2html()
 {
     parent::PluginStatichtml();
     global $pkwklinkmodifier_name;
     $this->modifier = new $pkwklinkmodifier_name();
     // static
     static $CONF = array();
     $this->CONF =& $CONF;
     if (empty($this->CONF)) {
         global $whatsnew, $whatsdeleted;
         $this->CONF['DUMPDIR'] = DATA_HOME . 'html/';
         $this->CONF['POSTFIX'] = '.html';
         $this->CONF['SPECIAL_PAGES'] = array($whatsnew, $whatsdeleted);
         $this->CONF['readauth'] = TRUE;
         $this->CONF['username'] = '';
         // for BasicAuth in the case of method='http'
         $this->CONF['userpass'] = '';
         // config for action plugin
         $this->CONF['ADMINONLY'] = TRUE;
         $this->CONF['WAITTIME'] = 200000;
         // for method=http in micro seconds
         $this->CONF['overwrite'] = FALSE;
         // config for pkwklinkmodifier
         $this->modifier->CONF['modify_href'] = TRUE;
         $this->modifier->CONF['modify_linkrel'] = TRUE;
         $this->modifier->CONF['href_urlstyle'] = 'relative';
         // 'relative' or 'absolute'
         $this->modifier->CONF['linkrel_urlstyle'] = 'relative';
         // 'relative' or 'absolute'
         $this->modifier->CONF['DUMPDIR'] = $this->CONF['DUMPDIR'];
         $this->modifier->CONF['POSTFIX'] = $this->CONF['POSTFIX'];
         $this->modifier->CONF['TOPURL'] = get_pkwk_topurl();
         $this->modifier->CONF['encode'] = array(&$this, 'encode');
         // obsolete
         $this->CONF['REDIRECT_AFTER_DUMP'] = FALSE;
         $this->CONF['404_PAGE'] = '404';
         //$this->CONF['BLOCK_ADMINONLY']     = TRUE;
         //$this->CONF['method']              = 'http'; // 'http' or 'dump'
         //$this->CONF['treedump']            = TRUE;
     }
 }