Aşağıdaki Kod hakkında bu arkadaş nereye ne yazmak istiyor olabilir ? Temizleme Konusunda nasıl bir yol ilerlenmelidir.
public function webhook_callback()
{
if($this->config->item('instagram_reply_is_webhook')!='1') exit();
$challenge = $this->input->get_post('hub_challenge');
$verify_token =$this->input->get_post('hub_verify_token');
if($verify_token === $this->config->item("instagram_reply_verify_token")){
echo $challenge;
die();
}
$response_raw=file_get_contents("php://input");
[B] // file_put_contents("mostofa.txt",$response_raw, FILE_APPEND | LOCK_EX); exit();[/B]
$response = json_decode($response_raw,TRUE);
if(isset($response['entry'][0]['changes'][0]['field']) && $response['entry'][0]['changes'][0]['field'] == 'mentions'){
$instagram_business_account = $response['entry'][0]['id'];
$comment_id = isset($response['entry'][0]['changes'][0]['value']['comment_id']) ? $response['entry'][0]['changes'][0]['value']['comment_id'] : 0;
$media_id = $response['entry'][0]['changes'][0]['value']['media_id']; @file_put_contents(APPPATH . 'modules/' . strtolower($this->router->fetch_class()) . '/config/instagram_reply_config.php', $app_package_config_data, LOCK_EX);
file_put_contents(APPPATH.'modules/'.strtolower($this->router->fetch_class()).'/config/instagram_reply_config.php', $app_my_config_data, LOCK_EX);