Move #88
This commit is contained in:
@@ -6,7 +6,6 @@ date_default_timezone_set('UTC');
|
||||
if ( $_SERVER['REQUEST_METHOD'] !== 'GET' ) {
|
||||
naughty("5c965856fd6e1af9256c04d400698fae not GET methog");
|
||||
}
|
||||
|
||||
$num_get_args=0;
|
||||
|
||||
foreach($_GET as $k => $v) {
|
||||
@@ -56,7 +55,6 @@ if (count($files) === 0) {
|
||||
else {
|
||||
$file = $files[0];
|
||||
}
|
||||
|
||||
list($begin, $file_ip, $end) = explode('_', $file);
|
||||
|
||||
if ( ! filter_var($file_ip, FILTER_VALIDATE_IP) ) {
|
||||
@@ -93,14 +91,14 @@ if ( $action === 'approve' ) {
|
||||
echo json_encode($db);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( $action === 'publish' ) {
|
||||
|
||||
|
||||
$comment = file_get_contents("$file");
|
||||
|
||||
$json = json_decode($comment, true);
|
||||
|
||||
require "/home/hpr/public_html_hub/cms/comment_checks.php";
|
||||
require "/home/hpr/public_html/cms/comment_checks.php";
|
||||
|
||||
$ep_num = mysqli_real_escape_string( $connection, $ep_num );
|
||||
$comment_timestamp_db = mysqli_real_escape_string( $connection, $comment_timestamp_db );
|
||||
|
Reference in New Issue
Block a user