Lines Matching refs:this

29         $this->searchin   = cleanID($INPUT->str('searchin'));
30 $this->changefrom = $INPUT->str('changefrom');
31 $this->changeto = $INPUT->str('changeto');
32 $this->type = $INPUT->valid('type', array('links', 'media'), 'links');
33 $this->dryrun = $INPUT->bool('dryrun');
34 $this->isextern = preg_match('/^(\w+:\/\/|\\\\)/i', $this->changefrom);
42 echo '<h3>' . $this->getLang('processing') . '</h3>';
47 if($this->execute()) {
48 echo '<h3>'.$this->getLang('processingdone').'</h3>';
50 if($this->dryrun) {
55 'searchin' => $this->searchin,
56 'changefrom' => $this->changefrom,
57 'changeto' => $this->changeto,
62 ) . '">'.$this->getLang('rerunhot').'</a>';
68 echo $this->locale_xhtml('intro');
74 $form->startFieldset($this->getLang('menu'));
75 $form->addElement(form_makeTextField('searchin', '', $this->getLang('searchin'), '', 'block'));
76 $form->addElement(form_makeTextField('changefrom', '', $this->getLang('changefrom'), '', 'block'));
77 $form->addElement(form_makeTextField('changeto', '', $this->getLang('changeto'), '', 'block'));
78 $form->addElement(form_makeRadioField('type', 'links', $this->getLang('links'), '', 'block tick', array('checked' => 'checked')));
79 $form->addElement(form_makeRadioField('type', 'media', $this->getLang('media'), '', 'block tick'));
80 $form->addElement(form_makeCheckboxField('dryrun', '1', $this->getLang('dryrun'), '', 'block tick', array('checked' => 'checked')));
81 $form->addElement(form_makeButton('submit', 'admin', $this->getLang('submit')));
95 $searchin = str_replace(':', '/', $this->searchin);
97 msg(sprintf($this->getLang('badnamespace'), hsc($this->searchin)), -1);
102 if($this->isextern) {
104 $data = ft_pageSearch('"' . $this->changefrom . '"*', $null);
106 } elseif($this->type == 'media') {
107 $query = $this->changefrom . '*';
110 $query = $this->changefrom . '*';
115 $len = strlen($this->searchin);
119 if($len && substr($id, 0, $len + 1) != $this->searchin . ':') continue;
123 $this->prnt('<ul>');
124 $this->updatepage($id);
125 $this->prnt('</ul>');
145 $this->prnt('<li><div class="li">');
146 $this->prnt($this->getLang('checking') . ' <b>' . hsc($currentpage) . "</b><br />");
151 $this->prnt('<ul>');
154 ($this->type == 'links' && $this->isextern && ($instruction[0] == 'externallink' || $instruction[0] == 'windowssharelink')) ||
155 ($this->type == 'links' && !$this->isextern && $instruction[0] == 'internallink') ||
156 ($this->type == 'media' && $this->isextern && $instruction[0] == 'externalmedia') ||
157 ($this->type == 'media' && !$this->isextern && $instruction[0] == 'internalmedia')
173 if(!$this->isextern) {
174 if($this->type == 'links') {
182 $newlink = $this->changeLink($link, $full, $currentns);
186 $this->prnt('<li><div class="li">');
187 $this->prnt(hsc($full) . ' → ' . hsc($newlink) . '<br />');
188 $this->prnt('</div></li>');
198 $this->prnt('</ul>');
201 $this->prnt('✗ '.$this->getLang('fail').'<br />');
203 if($this->dryrun) {
204 $this->prnt('✓ '.$this->getLang('successdry').'<br />');
206 saveWikiText($currentpage, $text, $this->getLang('summary'), true);
207 $this->prnt('✓ '.$this->getLang('success').'<br />');
210 $this->prnt('</div></li>');
233 if($this->changefrom){
234 if(!$this->qchangefrom) {
235 $this->qchangefrom = preg_quote($this->qchangefrom, '/');
237 if(!preg_match('/^'.$this->qchangefrom.'/ui', $full)) return $link;
241 $new = substr($full, strlen($this->changefrom));
244 $new = $this->changeto . $new;
246 if(!$this->isextern) {