2013-08-04 22:05:33 +02:00
< ? php
2013-08-05 13:27:40 +02:00
$getimagesize_available = function_exists ( " getimagesize " ) && (( ini_get ( " allow_url_fopen " ) == " 1 " ) ? true : false );
$getimagesize_available = ( $getimagesize_available ) ? 1 : 0 ;
2013-08-05 11:49:28 +02:00
2013-12-07 19:07:44 +01:00
if ( ! file_put_contents ( " plugins/adblock/adblock_constants.php " , " flash_enabled = 0 \n flash_block = 0 \n flash_list = \" \" \n img_enabled = 0 \n img_block = 0 \n img_only_mobiles = 0 \n img_list = \" \" \n elegant_degradation = " . $getimagesize_available ))
2013-08-04 22:05:33 +02:00
exit ( " An error occured while initalizing the file to store parameters (plugins/adblock/adblock_constants.php). Check the write permissions of the web server on the parent folders. " );