function searchandreplace_page()
{
    global $wpdb;
    if (!isset($wpdb)) {
        $wpdb = NULL;
    }
    ?>
	<div class="wrap" id="top">
	<h2><?php 
    _e('Search &amp; Replace', FB_SAR_TEXTDOMAIN);
    ?>
</h2>

	<?php 
    if (defined('DISALLOW_FILE_EDIT') && DISALLOW_FILE_EDIT) {
        $capability = 'manage_options';
    } else {
        $capability = 'edit_plugins';
    }
    if (current_user_can($capability)) {
        searchandreplace_action();
    } else {
        wp_die('<div class="error"><p>' . __('You do not have sufficient permissions to edit plugins for this installation of WordPress.', FB_SAR_TEXTDOMAIN) . '</p></div>');
    }
    ?>

	<div id="poststuff" class="dlm">
		<div class="postbox">
			<h3><?php 
    _e('Global Search &amp; Replace', FB_SAR_TEXTDOMAIN);
    ?>
</h3>

			<div class="inside">
				<p><?php 
    _e('This plugin modifies your database directly!<br /><strong>WARNING: </strong>You <strong>cannot</strong> undo any changes made by this plugin. <strong>It is therefore recommended you backup your database before running this plugin.</strong> <a href="http://www.gnu.org/licenses/gpl-2.0.txt">There is no warranty for this plugin!</a> <strong>Activate</strong> the plugin <strong>only</strong> if you want to use it!', FB_SAR_TEXTDOMAIN);
    ?>
</p>

				<p><?php 
    _e('Text search is case sensitive and has no pattern matching capabilities. This replace function matches raw text so it can be used to replace HTML tags too.', FB_SAR_TEXTDOMAIN);
    ?>
</p>
				<p><?php 
    _e('But it will not replaced strings inside serialized data fields, like option values in the table options.', FB_SAR_TEXTDOMAIN);
    ?>
</p>

				<p><?php 
    _e('<strong>Step One:</strong> Use the folllowing search (only) first, for a better understanding of what will happen when you do the replace. The SQL query and tables will be returned with the results. The search uses all fields in all tables! After verifying your results you can use the replace function.', FB_SAR_TEXTDOMAIN);
    ?>
</p>

				<form name="search" action="" method="post">
					<?php 
    wp_nonce_field('searchandreplace_nonce');
    ?>
					<table summary="config" class="widefat">
						<tr>
							<th>
								<label for="sall_label"><?php 
    _e('All - search only!', FB_SAR_TEXTDOMAIN);
    ?>
</label>
							</th>
							<td><input type='radio' name='sall' value='sall' id='sall_label' checked="checked" />
								<label for="sall_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
									<code>*</code> <?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
									<code>*</code></label>
							</td>
						</tr>
						<tr>
							<th><label for="search_text"><?php 
    _e('Search for', FB_SAR_TEXTDOMAIN);
    ?>
</label></th>
							<td><input class="code" type="text" id="search_text" name="search_text" value="" size="80" /></td>
						</tr>
						<tr class="alternate">
							<th>
								<label for="srall_label"><?php 
    _e('All - search and replace!', FB_SAR_TEXTDOMAIN);
    ?>
</label>
							</th>
							<td><input type='radio' name='sall' value='srall' id='srall_label' />
								<label for="srall_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
									<code>*</code> <?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
									<code>*</code></label>
							</td>
						</tr>
						<tr class="alternate">
							<th><label for="replace_text"><?php 
    _e('Replace with', FB_SAR_TEXTDOMAIN);
    ?>
</label></th>
							<td><input class="code" type="text" id="replace_text" name="replace_text" value="" size="80" /></td>
						</tr>
					</table>
					<p class="submit">
						<input class="button" type="submit" value="<?php 
    _e('Go', FB_SAR_TEXTDOMAIN);
    ?>
 &raquo;" />
						<input type="hidden" name="submitted" />
					</p>
				</form>
			</div>
		</div>
	</div>

	<div id="poststuff" class="dlm">
	<div class="postbox">
	<h3><?php 
    _e('Search in', FB_SAR_TEXTDOMAIN);
    ?>
</h3>

	<div class="inside">

		<form name="replace" action="" method="post">
			<?php 
    wp_nonce_field('searchandreplace_nonce');
    ?>
			<table summary="config" class="widefat">
				<tr class="alternate">
					<th><label for="content_label"><?php 
    _e('Content', FB_SAR_TEXTDOMAIN);
    ?>
</label></th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='content' id='content_label' /></td>
					<td><label for="content_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>post_content</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_posts</code></label></td>
				</tr>
				<tr>
					<th>
						<label for="guid_label"><?php 
    _e('<abbr title="Global Unique Identifier">GUID</abbr>', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='guid' id='guid_label' /></td>
					<td><label for="guid_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>guid</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_posts</code></label></td>
				</tr>
				<tr class="alternate">
					<th><label for="title_label"><?php 
    _e('Titles', FB_SAR_TEXTDOMAIN);
    ?>
</label></th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='title' id='title_label' /></td>
					<td><label for="title_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>post_title</code>,
							<code>post_name</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_posts</code></label></td>
				</tr>
				<tr>
					<th><label for="excerpt_label"><?php 
    _e('Excerpts', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='excerpt' id='excerpt_label' /></td>
					<td><label for="excerpt_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>post_excerpt</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_posts</code></label></td>
				</tr>
				<tr class="alternate">
					<th><label for="meta_value_label"><?php 
    _e('Metadata', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='meta_value' id='meta_value_label' /></td>
					<td><label for="meta_value_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>meta_value</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_postmeta</code></label></td>
				</tr>
				<tr>
					<th>
						<label for="comment_content_label"><?php 
    _e('Comments content', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='comment_content' id='comment_content_label' /></td>
					<td><label for="comment_content_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>comment_content</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_comments</code></label></td>
				</tr>
				<tr class="alternate">
					<th>
						<label for="comment_author_label"><?php 
    _e('Comments author', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='comment_author' id='comment_author_label' /></td>
					<td><label for="comment_author_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>comment_author</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_comments</code></label></td>
				</tr>
				<tr>
					<th>
						<label for="comment_author_email_label"><?php 
    _e('Comments author e-mail', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='comment_author_email' id='comment_author_email_label' />
					</td>
					<td><label for="comment_author_email_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>comment_author_email</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_comments</code></label></td>
				</tr>
				<tr class="alternate">
					<th>
						<label for="comment_author_url_label"><?php 
    _e('Comments author URL', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='comment_author_url' id='comment_author_url_label' />
					</td>
					<td><label for="comment_author_url_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>comment_author_url</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_comments</code></label></td>
				</tr>
				<tr>
					<th>
						<label for="comment_count_label"><?php 
    _e('Comments counter', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='comment_count' id='comment_count_label' /></td>
					<td><label for="comment_count_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>comment_count</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_posts</code></label></td>
				</tr>
				<tr class="alternate">
					<th>
						<label for="cat_description_label"><?php 
    _e('Category description', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='cat_description' id='cat_description_label' /></td>
					<td><label for="cat_description_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>description</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_term_taxonomy</code></label></td>
				</tr>
				<tr>
					<th>
						<label for="tag_label"><?php 
    _e('Tags &amp; Categories', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='tag' id='tag_label' /></td>
					<td><label for="tag_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>name</code> <?php 
    _e('and', FB_SAR_TEXTDOMAIN);
    ?>
							<code>slug</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_terms</code></label></td>
				</tr>
				<tr class="alternate">
					<th><label for="user_id_label"><?php 
    _e('User ID', FB_SAR_TEXTDOMAIN);
    ?>
</label></th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='user_id' id='user_id_label' /></td>
					<td><label for="user_id_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>ID</code>, <code>user_id</code>, <code>post_author</code>,
							<code>user_id</code> <?php 
    _e('and', FB_SAR_TEXTDOMAIN);
    ?>
							<code>link_owner</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_users</code>, <code>_usermeta</code>, <code>_posts</code>,
							<code>_comments</code> <?php 
    _e('and', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_links</code></label></td>
				</tr>
				<tr>
					<th>
						<label for="user_login_label"><?php 
    _e('User login', FB_SAR_TEXTDOMAIN);
    ?>
</label>
					</th>
					<td colspan="2" style="text-align: center;">
						<input type='checkbox' name='user_login' id='user_login_label' /></td>
					<td><label for="user_login_label"><?php 
    _e('Field:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>user_login</code> <?php 
    _e('and', FB_SAR_TEXTDOMAIN);
    ?>
							<code>user_nicename</code><br /><?php 
    _e('Table:', FB_SAR_TEXTDOMAIN);
    ?>
							<code>_users</code></label></td>
				</tr>
				<?php 
    if ($wpdb && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . 'terms' . "'") == 1) {
        ?>
					<tr class="alternate">
						<th><label for="id_label"><?php 
        _e('ID', FB_SAR_TEXTDOMAIN);
        ?>
</label></th>
						<td colspan="2" style="text-align: center;">
							<input type='checkbox' name='id' id='id_label' /></td>
						<td><label for="id_label"><?php 
        _e('Field:', FB_SAR_TEXTDOMAIN);
        ?>
								<code>ID</code>, <code>post_parent</code>, <code>post_id</code>,
								<code>object_id</code> <?php 
        _e('and', FB_SAR_TEXTDOMAIN);
        ?>
								<code>comments</code><br /><?php 
        _e('Table:', FB_SAR_TEXTDOMAIN);
        ?>
								<code>_posts</code>, <code>_postmeta</code>,
								<code>_term_relationships</code> <?php 
        _e('and', FB_SAR_TEXTDOMAIN);
        ?>
								<code>_comment_post_ID</code></label></td>
					</tr>
				<?php 
    }
    ?>
				<?php 
    if ($wpdb && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . 'signups' . "'") == 1) {
        ?>
					<tr class="alternate">
						<th><label for="signups_label"><?php 
        _e('Signups', FB_SAR_TEXTDOMAIN);
        ?>
</label>
						</th>
						<td colspan="2" style="text-align: center;">
							<input type='checkbox' name='signups' id='signups_label' /></td>
						<td><label for="signups_label"><?php 
        _e('Field:', FB_SAR_TEXTDOMAIN);
        ?>
								<code>user_login</code><br /><?php 
        _e('Table:', FB_SAR_TEXTDOMAIN);
        ?>
								<code>_signups</code></label></td>
					</tr>
				<?php 
    }
    ?>
				<tr>
					<th>&nbsp;</th>
					<td colspan="2" style="text-align: center;">&nbsp;&nbsp;
						<a href="javascript:selectcb('replace', true);" title="<?php 
    _e('Check all', FB_SAR_TEXTDOMAIN);
    ?>
"><?php 
    _e('all', FB_SAR_TEXTDOMAIN);
    ?>
</a> |
						<a href="javascript:selectcb('replace', false);" title="<?php 
    _e('Uncheck all', FB_SAR_TEXTDOMAIN);
    ?>
"><?php 
    _e('none', FB_SAR_TEXTDOMAIN);
    ?>
</a>
					</td>
					<td>&nbsp;</td>
				</tr>
			</table>

			<table summary="submit" class="form-table">
				<tr>
					<th><label for="search_text"><?php 
    _e('Search for', FB_SAR_TEXTDOMAIN);
    ?>
</label></th>
					<td><input class="code" type="text" id="search_text" name="search_text" value="" size="80" /></td>
				</tr>
				<tr>
					<th><label for="replace_text"><?php 
    _e('Replace with', FB_SAR_TEXTDOMAIN);
    ?>
</label></th>
					<td><input class="code" type="text" id="replace_text" name="replace_text" value="" size="80" /></td>
				</tr>
			</table>
			<p class="submit">
				<input class="button" type="submit" value="<?php 
    _e('Go', FB_SAR_TEXTDOMAIN);
    ?>
 &raquo;" />
				<input type="hidden" name="submitted" />
			</p>
		</form>

	</div>
	</div>
	</div>

	<div id="poststuff" class="dlm">
		<div class="postbox">
			<h3><?php 
    _e('Information about this plugin', FB_SAR_TEXTDOMAIN);
    ?>
</h3>

			<div class="inside">
				<p><?php 
    _e("&quot;Search and Replace&quot; original plugin (en) created by <a href='http://thedeadone.net/'>Mark Cunningham</a> and provided (comments) by <a href='http://www.gonahkar.com'>Gonahkar</a>.<br />&quot;Search &amp; Replace&quot;, enhanced by <a href='http://bueltge.de'>Frank Bueltge</a> and current version is also maintained by Ron Guerin.", FB_SAR_TEXTDOMAIN);
    ?>
</p>

				<p><?php 
    _e("For more information: Visit the <a href='http://wordpress.org/plugins/search-and-replace/'>plugin homepage</a> for further information or to grab the latest version of this plugin.", FB_SAR_TEXTDOMAIN);
    ?>
</p>
			</div>
		</div>
	</div>
	</div>
<?php 
}
Example #2
0
function searchandreplace_page() {
	global $wpdb;
	
	if ( !isset($wpdb) )
		$wpdb = NULL;
?>
	<div class="wrap" id="top">
		<h2><?php _e('Search &amp; Replace', FB_SAR_TEXTDOMAIN); ?></h2>

		<?php
		if ( current_user_can('edit_plugins') ) {
			searchandreplace_action();
		} else {
			wp_die('<div class="error"><p>' . __('You do not have sufficient permissions to edit plugins for this blog.', FB_SAR_TEXTDOMAIN) . '</p></div>');
		}
		?>

		<div id="poststuff" class="dlm">
			<div class="postbox">
				<h3><?php _e('Information Search &amp; Replace', FB_SAR_TEXTDOMAIN) ?></h3>
				<div class="inside">
					<p><?php _e('This plugin uses an standard SQL query so it modifies your database directly!<br /><strong>Attention: </strong>You <strong>cannot</strong> undo any changes made by this plugin. <strong>It is therefore advisable to backup your database before running this plugin.</strong> No legal claims to the author of this plugin! <strong>Activate</strong> the plugin <strong>only</strong>, if you want to use it!', FB_SAR_TEXTDOMAIN); ?></p>
					<p><?php _e('Text search is case sensitive and has no pattern matching capabilites. This replace function matchs raw text so it can be used to replace HTML tags too.', FB_SAR_TEXTDOMAIN); ?></p>
					<p><?php _e( '<strong>Step One:</strong> Use the follow search for a better information with return the sql-query and tables with the results. The search use alle fields in all tables! After this you have more informations and you can use the replace function.', FB_SAR_TEXTDOMAIN ); ?></p>
					<form name="search" action="" method="post">
						<?php wp_nonce_field('searchandreplace_nonce') ?>
						<table summary="config" class="widefat">
							<tr>
								<th><label for="all_label"><?php _e('All - only search!', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td><input type='checkbox' name='all' id='all_label' />
								 <label for="all_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>*</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>*</code></label></td>
							</tr>
							<tr>
								<th><?php _e('Search for', FB_SAR_TEXTDOMAIN); ?></th>
								<td><input class="code" type="text" name="search_text" value="" size="80" /></td>
							</tr>
						</table>
						<p class="submit">
							<input class="button" type="submit" value="<?php _e('Go', FB_SAR_TEXTDOMAIN); ?> &raquo;" />
							<input type="hidden" name="submitted" />
						</p>
					</form>
				</div>
			</div>
		</div>

		<div id="poststuff" class="dlm">
			<div class="postbox" >
				<h3><?php _e('Search in', FB_SAR_TEXTDOMAIN) ?></h3>
				<div class="inside">
					
					<form name="replace" action="" method="post">
						<?php wp_nonce_field('searchandreplace_nonce') ?>
						<table summary="config" class="widefat">
							<tr class="alternate">
								<th><label for="content_label"><?php _e('Content', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='content' id='content_label' /></td>
								<td><label for="content_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>post_content</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_posts</code></label></td>
							</tr>
							<tr>
								<th><label for="guid_label"><?php _e('GUID', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='guid' id='guid_label' /></td>
								<td><label for="guid_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>guid</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_posts</code></label></td>
							</tr>
							<tr class="alternate">
								<th><label for="title_label"><?php _e('Titles', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='title' id='title_label' /></td>
								<td><label for="title_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>post_title</code>, <code>post_name</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_posts</code></label></td>
							</tr>
							<tr>
								<th><label for="excerpt_label"><?php _e('Excerpts', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='excerpt' id='excerpt_label' /></td>
								<td><label for="excerpt_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>post_excerpt</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_posts</code></label></td>
							</tr>
							<tr class="alternate">
								<th><label for="meta_value_label"><?php _e('Meta Data', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='meta_value' id='meta_value_label' /></td>
								<td><label for="meta_value_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>meta_value</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_postmeta</code></label></td>
							</tr>
							<tr>
								<th><label for="comment_content_label"><?php _e('Comments content', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='comment_content' id='comment_content_label' /></td>
								<td><label for="comment_content_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>comment_content</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_comments</code></label></td>
							</tr>
							<tr class="alternate">
								<th><label for="comment_author_label"><?php _e('Comments author', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='comment_author' id='comment_author_label' /></td>
								<td><label for="comment_author_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>comment_author</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_comments</code></label></td>
							</tr>
							<tr>
								<th><label for="comment_author_email_label"><?php _e('Comments author e-mail', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='comment_author_email' id='comment_author_email_label' /></td>
								<td><label for="comment_author_email_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>comment_author_email</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_comments</code></label></td>
							</tr>
							<tr class="alternate">
								<th><label for="comment_author_url_label"><?php _e('Comments author URL', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='comment_author_url' id='comment_author_url_label' /></td>
								<td><label for="comment_author_url_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>comment_author_url</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_comments</code></label></td>
							</tr>
							<tr>
								<th><label for="comment_count_label"><?php _e('Comments-Counter', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='comment_count' id='comment_count_label' /></td>
								<td><label for="comment_count_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>comment_count</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_posts</code></label></td>
							</tr>
							<tr class="alternate">
								<th><label for="cat_description_label"><?php _e('Category description', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='cat_description' id='cat_description_label' /></td>
								<td><label for="cat_description_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>description</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_term_taxonomy</code></label></td>
							</tr>
							<tr>
								<th><label for="tag_label"><?php _e('Tags &amp; Categories', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='tag' id='tag_label' /></td>
								<td><label for="tag_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>name</code> <?php _e('and', FB_SAR_TEXTDOMAIN); ?> <code>slug</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_terms</code></label></td>
							</tr>
							<tr class="alternate">
								<th><label for="user_id_label"><?php _e('User-ID', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='user_id' id='user_id_label' /></td>
								<td><label for="user_id_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>ID</code>, <code>user_id</code>, <code>post_author</code> <?php _e('and', FB_SAR_TEXTDOMAIN); ?> <code>link_owner</code><br /><?php _e('table:', FB_SAR_TEXTDOMAIN); ?><code>_users</code>, <code>_usermeta</code>, <code>_posts</code> <?php _e('and', FB_SAR_TEXTDOMAIN); ?> <code>_links</code></label></td>
							</tr>
							<tr>
								<th><label for="user_login_label"><?php _e('User-login', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='user_login' id='user_login_label' /></td>
								<td><label for="user_login_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>user_login</code> <?php _e('and', FB_SAR_TEXTDOMAIN); ?> <code>user_nicename</code> table: <code>_users</code></label></td>
							</tr>
							<?php if ($wpdb && mysql_num_rows(mysql_query("SHOW TABLES LIKE '" . $wpdb->prefix . 'terms'."'") ) == 1) { ?>
							<tr class="alternate">
								<th><label for="id_label"><?php _e('ID', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='id' id='id_label' /></td>
								<td><label for="id_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>ID</code>, <code>post_parent</code>, <code>post_id</code>, <code>object_id</code> <?php _e('and', FB_SAR_TEXTDOMAIN); ?> <code>comments</code><br /><?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_posts</code>, <code>_postmeta</code>, <code>_term_relationships</code> <?php _e('and', FB_SAR_TEXTDOMAIN); ?> <code>_comment_post_ID</code></label></td>
							</tr>
							<?php } ?>
							<?php if ($wpdb && mysql_num_rows(mysql_query("SHOW TABLES LIKE '" . $wpdb->prefix . 'signups'."'") ) == 1) { ?>
							<tr class="alternate">
								<th><label for="signups_label"><?php _e('Signups', FB_SAR_TEXTDOMAIN); ?></label></th>
								<td colspan="2" style="text-align: center;"><input type='checkbox' name='signups' id='signups_label' /></td>
								<td><label for="signups_label"><?php _e('field:', FB_SAR_TEXTDOMAIN); ?> <code>user_login</code> <?php _e('table:', FB_SAR_TEXTDOMAIN); ?> <code>_signups</code></label></td>
							</tr>
							<?php } ?>
							<tr>
								<th>&nbsp;</th>
								<td colspan="2" style="text-align: center;">&nbsp;&nbsp; <a href="javascript:selectcb('replace', true);" title="<?php _e('Checkboxes to assign', FB_SAR_TEXTDOMAIN); ?>"><?php _e('all', FB_SAR_TEXTDOMAIN); ?></a> | <a href="javascript:selectcb('replace', false);" title="<?php _e('Checkboxes to unmask', FB_SAR_TEXTDOMAIN); ?>"><?php _e('none', FB_SAR_TEXTDOMAIN); ?></a></td>
								<td>&nbsp;</td>
							</tr>
						</table>

						<table summary="submit" class="form-table">
							<tr>
								<th><?php _e('Search for', FB_SAR_TEXTDOMAIN); ?></th>
								<td><input class="code" type="text" name="search_text" value="" size="80" /></td>
							</tr>
							<tr>
								<th><?php _e('Replaced with', FB_SAR_TEXTDOMAIN); ?></th>
								<td><input class="code" type="text" name="replace_text" value="" size="80" /></td>
							</tr>
						</table>
						<p class="submit">
							<input class="button" type="submit" value="<?php _e('Go', FB_SAR_TEXTDOMAIN); ?> &raquo;" />
							<input type="hidden" name="submitted" />
						</p>
					</form>

				</div>
			</div>
		</div>

		<div id="poststuff" class="dlm">
			<div class="postbox" >
				<h3><?php _e('Information on the plugin', FB_SAR_TEXTDOMAIN) ?></h3>
				<div class="inside">
					<p><?php _e('&quot;Search and Replace&quot; originalplugin (en) created by <a href="http://thedeadone.net/">Mark Cunningham</a> and provided (comments) by durch <a href="http://www.gonahkar.com">Gonahkar</a>.<br />&quot;Search &amp; Replace&quot;, current version provided by <a href="http://bueltge.de">Frank Bueltge</a>.', FB_SAR_TEXTDOMAIN); ?></p>
					<p><?php _e('Further information: Visit the <a href="http://bueltge.de/wp-suchen-und-ersetzen-de-plugin/114/">plugin homepage</a> for further information or to grab the latest version of this plugin.', FB_SAR_TEXTDOMAIN); ?><br />&copy; Copyright 2006 - <?php echo date("Y"); ?> <a href="http://bueltge.de">Frank B&uuml;ltge</a> | <?php _e('You want to thank me? Visit my <a href="http://bueltge.de/wunschliste">wishlist</a>.', FB_SAR_TEXTDOMAIN); ?></p>
				</div>
			</div>
		</div>

</div>
<?php } ?>