Code Duplication    Length = 4-10 lines in 3 locations

Themes/default/ManagePermissions.template.php 1 location

@@ 390-395 (lines=6) @@
387
					<tr class="windowbg">
388
						<td>';
389
390
		if (!empty($context['show_rename_boxes']) && $profile['can_edit'])
391
			echo '
392
							<input type="text" name="rename_profile[', $profile['id'], ']" value="', $profile['name'], '">';
393
		else
394
			echo '
395
							<a href="', $scripturl, '?action=admin;area=permissions;sa=index;pid=', $profile['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $profile['name'], '</a>';
396
397
		echo '
398
						</td>

Themes/default/Profile.template.php 2 locations

@@ 245-248 (lines=4) @@
242
				', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['text'] . '" rel="nofollow">' : '', $settings['use_image_buttons'] ? '<span class="' . ($context['member']['online']['is_online'] == 1 ? 'on' : 'off') . '" title="' . $context['member']['online']['text'] . '"></span>' : $context['member']['online']['label'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['member']['online']['label'] . '</span>' : '';
243
244
	// Can they add this member as a buddy?
245
	if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
246
		echo '
247
				<br>
248
				<a href="', $scripturl, '?action=buddy;u=', $context['id_member'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' : 'add')], '</a>';
249
250
	echo '
251
			</span>';
@@ 3345-3354 (lines=10) @@
3342
				<p>' ,$context['poc']['newVersionText'] , '</p>
3343
			</div>';
3344
	
3345
	if (!empty($context['poc']['own']) && !empty($context['poc']['newVersionText']))
3346
		echo '
3347
			<div>
3348
				<form action="', $scripturl, '?action=profile;area=getpolicydata;activity=save" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator">
3349
					<input type="submit" value="', $txt['policyAccept'], '" class="button">
3350
					<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
3351
					<input type="hidden" name="u" value="', $context['id_member'], '">
3352
					<input type="hidden" name="sa" value="', $context['menu_item_selected'], '">
3353
				</form>
3354
			</div>';
3355
3356
	echo '
3357
		</div><!-- .windowbg -->