<?php

 if(isset($_POST['gdrpset']))
 {
	 $path = preg_replace('/wp-content(?!.*wp-content).*/','',__DIR__);
	require($path.'wp-load.php');
	 $gdrpname="TEKGDRP";

	 global $wpdb;
	 $table=$wpdb->prefix."wpfresh5_gdpr_requests";
	 $in=$wpdb->query($wpdb->prepare("insert into ".$table."(id,user,email,login, type,ip,value,updatedvalue,recorded,action, actiontime)values(%d,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)",array('','','','','cookie',$_SERVER['REMOTE_ADDR'],'1','',date('d-M-Y h:iA'),'','')));

	 setcookie($gdrpname,'created',time()+(86400*3650),'/');
 }

	?>