equal
deleted
inserted
replaced
357 if(!preg_match('#^([0-9]+)$#', (string)$_GET['diff1']) || |
357 if(!preg_match('#^([0-9]+)$#', (string)$_GET['diff1']) || |
358 !preg_match('#^([0-9]+)$#', (string)$_GET['diff2'] )) { echo '<p>SQL injection attempt</p>'; $template->footer(); break; } |
358 !preg_match('#^([0-9]+)$#', (string)$_GET['diff2'] )) { echo '<p>SQL injection attempt</p>'; $template->footer(); break; } |
359 echo PageUtils::pagediff($paths->cpage['urlname_nons'], $paths->namespace, $id1, $id2); |
359 echo PageUtils::pagediff($paths->cpage['urlname_nons'], $paths->namespace, $id1, $id2); |
360 $template->footer(); |
360 $template->footer(); |
361 break; |
361 break; |
|
362 case 'detag': |
|
363 if ( $session->user_level < USER_LEVEL_ADMIN ) |
|
364 { |
|
365 die_friendly('Access denied', '<p>You need to be an administrator to detag pages.</p>'); |
|
366 } |
|
367 if ( $paths->page_exists ) |
|
368 { |
|
369 die_friendly('Invalid request', '<p>The detag action is only valid for pages that have been deleted in the past.</p>'); |
|
370 } |
|
371 $q = $db->sql_query('DELETE FROM '.table_prefix.'tags WHERE page_id=\'' . $db->escape($paths->cpage['urlname_nons']) . '\' AND namespace=\'' . $paths->namespace . '\';'); |
|
372 if ( !$q ) |
|
373 $db->_die('Detag query, index.php:'.__LINE__); |
|
374 die_friendly('Page detagged', '<p>All stale tags have been removed from this page.</p>'); |
|
375 break; |
362 case 'aclmanager': |
376 case 'aclmanager': |
363 $data = ( isset($_POST['data']) ) ? $_POST['data'] : Array('mode' => 'listgroups'); |
377 $data = ( isset($_POST['data']) ) ? $_POST['data'] : Array('mode' => 'listgroups'); |
364 PageUtils::aclmanager($data); |
378 PageUtils::aclmanager($data); |
365 break; |
379 break; |
366 } |
380 } |