Lines Matching refs:this

19         $contr->register_hook('TPL_ACT_RENDER', 'AFTER', $this, '_append_to_edit', array());
20 $contr->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, '_handle_act', array());
21 $contr->register_hook('TPL_ACT_UNKNOWN', 'BEFORE', $this, '_handle_tpl_act', array());
30 if (!$this->_auth_check_all($ID)) return;
31 …ef="%s" class="action editx" rel="nofollow">%s</a>', wl($ID,'do=editx'), $this->getLang('pagemanag…
32 $intro = $this->locale_xhtml('intro');
53 $this->_rename_page($opts);
60 $this->_delete_page($opts);
63 $this->_print_form();
99 return $this->_auth_can_rename($id) ||
100 $this->_auth_can_delete($id);
107 $this->_auth_check_list($this->getConf('user_rename'));
116 $this->_auth_check_list($this->getConf('user_rename_nr'));
125 $this->_auth_check_list($this->getConf('user_delete'));
147 …$this->errors[] = sprintf( $this->getLang('rp_msg_file_conflict'), '<a href="'. wl($opts['newpage'…
189 $opts['oldname'] = $this->_FN(noNS($id));
190 $opts['oldns'] = $this->_FN(getNS($id));
192 $this->_locate_filepairs( $opts, 'metadir', '/^'.$opts['oldname'].'\.(?!mlist)\w*?$/' );
193 … $this->_locate_filepairs( $opts, 'olddir', '/^'.$opts['oldname'].'\.\d{10}\.txt(\.gz|\.bz2)?$/' );
194 $this->_apply_deletes($opts);
219 $this->errors[] = $this->getLang('rp_msg_unconfirmed');
223 $this->errors[] = $this->getLang('rp_msg_old_empty');
225 $this->errors[] = sprintf( $this->getLang('rp_msg_old_noexist'), $opts['oldpage'] );
226 } else if (!$this->_auth_can_rename($opts['oldpage'])) {
227 $this->errors[] = sprintf( $this->getLang('rp_msg_auth'), $opts['oldpage'] );
229 $this->errors[] = sprintf( $this->getLang('rp_msg_locked'), $opts['oldpage'] );
232 if ($opts['rp_nr'] && !$this->_auth_can_rename_nr($opts['oldpage']))
233 $this->errors[] = $this->getLang('rp_msg_auth_nr');
236 $this->errors[] = $this->getLang('rp_msg_new_empty');
238 …$this->errors[] = sprintf( $this->getLang('rp_msg_new_exist'), '<a href="'. wl($opts['newpage']) .…
239 } else if (!$this->_auth_can_rename($opts['newpage'])) {
240 $this->errors[] = sprintf( $this->getLang('rp_msg_auth'), $opts['newpage'] );
242 $this->errors[] = sprintf( $this->getLang('rp_msg_locked'), $opts['newpage'] );
245 if (!$this->errors) {
247 $opts['oldname'] = $this->_FN(noNS($opts['oldpage']));
248 $opts['newname'] = $this->_FN(noNS($opts['newpage']));
249 $opts['oldns'] = $this->_FN(getNS($opts['oldpage']));
250 $opts['newns'] = $this->_FN(getNS($opts['newpage']));
253 …$this->_locate_filepairs( $opts, 'metadir', '/^'.$opts['oldname'].'\.(?!mlist|meta|indexed)\w*?$/'…
254 … $this->_locate_filepairs( $opts, 'olddir', '/^'.$opts['oldname'].'\.\d{10}\.txt(\.gz|\.bz2)?$/' );
257 if (!$this->errors) {
259 $this->_apply_moves($opts);
263 …$summary = sprintf( $this->getLang('rp_newsummaryx'), $opts['oldpage'], $opts['newpage'], $opts['s…
265 … $summary = sprintf( $this->getLang('rp_newsummary'), $opts['oldpage'], $opts['newpage'] );
269 …sprintf( $this->getLang('rp_oldsummaryx'), $opts['oldpage'], $opts['newpage'], $opts['summary'] ) :
270 sprintf( $this->getLang('rp_oldsummary'), $opts['oldpage'], $opts['newpage'] );
272 $this->_custom_delete_page( $opts['oldpage'], $summary );
278 $text = $this->getConf('redirecttext');
279 if (!$text) $text = $this->getLang('redirecttext');
286 if ($this->errors) {
287 foreach ($this->errors as $error) msg( $error, -1 );
290 …$msg = sprintf( $this->getLang('rp_msg_success'), $opts['oldpage'], '<a href="'. wl($opts['newpage…
295 $this->_print_form($data);
301 $this->errors[] = $this->getLang('dp_msg_unconfirmed');
305 $this->errors[] = $this->getLang('dp_msg_old_empty');
306 } else if (!$this->_auth_can_delete($opts['oldpage'])) {
307 $this->errors[] = sprintf( $this->getLang('dp_msg_auth'), $opts['oldpage'] );
310 if (!$this->errors) {
312 sprintf( $this->getLang('dp_oldsummaryx'), $opts['summary'] ) :
313 $this->getLang('dp_oldsummary');
314 $this->_custom_delete_page( $opts['oldpage'], $summary );
320 if ($this->errors) {
321 foreach ($this->errors as $error) msg( $error, -1 );
324 $msg = sprintf( $this->getLang('dp_msg_success'), $opts['oldpage'] );
329 $this->_print_form($data);
336 <h1><?php echo sprintf( $this->getLang('title'), $ID); ?></h1>
339 if ($this->_auth_can_rename($ID)) {
343 <legend><?php echo $this->getLang('rp_title'); ?></legend>
349 <td class="label"><?php echo $this->getLang('rp_newpage'); ?></td>
353 <td class="label"><?php echo $this->getLang('rp_summary'); ?></td>
357 if ($this->_auth_can_rename_nr($ID)) {
360 <td class="label"><?php echo $this->getLang('rp_nr'); ?></td>
367 <td class="label"><?php echo $this->getLang('rp_confirm'); ?></td>
379 if ($this->_auth_can_delete($ID)) {
383 <legend><?php echo $this->getLang('dp_title'); ?></legend>
389 <td class="label"><?php echo $this->getLang('dp_summary'); ?></td>
393 <td class="label"><?php echo $this->getLang('dp_purge'); ?></td>
397 <td class="label"><?php echo $this->getLang('dp_confirm'); ?></td>