*/ // must be run within Dokuwiki if(!defined('DOKU_INC')) die(); class admin_plugin_linkfix extends DokuWiki_Admin_Plugin { protected $searchin = ''; protected $changefrom = ''; protected $changeto = ''; protected $qchangefrom = ''; protected $dryrun = false; protected $type = 'links'; protected $isextern = false; public function getMenuSort() { return 3000; } public function handle() { global $INPUT; $this->searchin = cleanID($INPUT->str('searchin')); $this->changefrom = $INPUT->str('changefrom'); $this->changeto = $INPUT->str('changeto'); $this->type = $INPUT->valid('type', array('links', 'media'), 'links'); $this->dryrun = $INPUT->bool('dryrun'); $this->isextern = preg_match('/^(\w+:\/\/|\\\\)/i', $this->changefrom); } public function html() { global $ID; global $INPUT; if($INPUT->has('go') && checkSecurityToken()) { echo '