HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/menvid.com/wp-content/plugins/SK2/sk2_second_chance.php
<html><head /><body>
<?php
require_once('../../../wp-config.php');
global $sk2_log;
include_once(dirname(__FILE__) . "/sk2_core_class.php");

$comment_ID = (int) @$_REQUEST['c_id'];
$author_email = @$_REQUEST['c_author'];

//DEBUG:
$sk2_log->live_output = false;

$sk2_log->log_msg(__("Second Chance. Comment ID:", 'sk2') . $comment_ID, 4, $comment_ID, "2nd_chance");
$sk2_core = new sk2_core(0, true, false);

if ($sk2_core->load_comment($comment_ID))
{
	//echo "<pre>"; 	print_r($sk2_core->cur_comment);
	if ($sk2_core->cur_comment->author_email != $author_email)
		die(__("Email not matching comment ID", 'sk2'));
		
	$sk2_core->load_plugin_files();	
	$sk2_core->second_chance();
}
else
{
	die(__("Invalid comment", 'sk2'));
}
?>
</body></html>