<commit_before><?php
// @FIXME: Das hier in core_history auslagern.
include_once ULICMS_ROOT . "/classes/3rdparty/finediff.php";
include_once ULICMS_ROOT . "/classes/objects/content/vcs.php";
if (defined ( "_SECURITY" )) {
	$acl = new ACL ();
	if ($acl->hasPermission ( "pages" )) {
		$content_id = intval ( $_GET ["content_id"] );
		$revisions = VCS::getRevisionsByContentID ( $content_id );
		?>
<h1><?php translate("versions");?></h1>
<div class="scroll">
	<table class="tablesorter">
		<thead>
			<tr>
				<th><?php translate("id");?></th>
				<th><?php translate("content");?></th>
				<th><?php translate("user");?></th>
				<th><?php translate("date");?></th>
				<th><?php translate("restore");?></th>
			</tr>
		</thead>
		<tbody>
<?php
		
		foreach ( $revisions as $revision ) {
			$view_diff_link = "index.php?action=view_diff&content_id=" . $revision->content_id . "&history_id=" . $revision->id;
			?>
<tr>
				<td><?php echo intval($revision->id);?></td>
				<td><a href="<?php echo $view_diff_link;?>" target="_blank"><?php translate("view_diff");?></a></td>
				<td><?php
			
			$user = getUserById ( $revision->user_id );
			if ($user and isset ( $user ["username"] )) {
				echo htmlspecialchars ( $user ["username"] );
			}
			?></td>
				<td><?php echo $revision->date;?></td>
				<td><a
					href="<?php echo ModuleHelper::buildMethodCallUrl("HistoryController", "doRestore", "version_id=".$revision->id);?>"
					class="btn btn-danger voffset3"
					onclick="return confirm('<?php translate("ask_for_restore");?>');"><?php translate("restore");?></a>
				</td>
			</tr>
<?php }?>
</tbody>
	</table>
</div>
<?php
	} else {
		noperms ();
	}
}
?>
<commit_msg>darstellung<commit_after><?php
// @FIXME: Das hier in core_history auslagern.
include_once ULICMS_ROOT . "/classes/3rdparty/finediff.php";
include_once ULICMS_ROOT . "/classes/objects/content/vcs.php";
if (defined ( "_SECURITY" )) {
	$acl = new ACL ();
	if ($acl->hasPermission ( "pages" )) {
		$content_id = intval ( $_GET ["content_id"] );
		$revisions = VCS::getRevisionsByContentID ( $content_id );
		?>
<h1><?php translate("versions");?></h1>
<div class="scroll">
	<table class="tablesorter">
		<thead>
			<tr>
				<th><?php translate("id");?></th>
				<th><?php translate("content");?></th>
				<th><?php translate("user");?></th>
				<th><?php translate("date");?></th>
				<th><?php translate("restore");?></th>
			</tr>
		</thead>
		<tbody>
<?php
		
		foreach ( $revisions as $revision ) {
			$view_diff_link = "index.php?action=view_diff&content_id=" . $revision->content_id . "&history_id=" . $revision->id;
			?>
<tr>
				<td><?php echo intval($revision->id);?></td>
				<td><a href="<?php echo $view_diff_link;?>" target="_blank"><?php translate("view_diff");?></a></td>
				<td><?php
			
			$user = getUserById ( $revision->user_id );
			if ($user and isset ( $user ["username"] )) {
				echo htmlspecialchars ( $user ["username"] );
			}
			?></td>
				<td><?php echo $revision->date;?></td>
				<td><a
					href="<?php echo ModuleHelper::buildMethodCallUrl("HistoryController", "doRestore", "version_id=".$revision->id);?>"
					class="btn btn-danger"
					onclick="return confirm('<?php translate("ask_for_restore");?>');"><?php translate("restore");?></a>
				</td>
			</tr>
<?php }?>
</tbody>
	</table>
</div>
<?php
	} else {
		noperms ();
	}
}
?>

{'fraction_non_alphanumeric': 0.23796711509715995, 'fraction_numerical': 0.0020926756352765323, 'mean_word_length': 4.277602523659306, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6202568', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1244, 'n_words': 219}