leed-adblock/adblock/install.php
Phyks 2915037304 Basic image filtering (+ elegant degradation) works
Flash content filtering may not work and image filtering may need
improvements. No ability to load the image at this time, will be coming
in future commits.
2013-08-05 13:27:40 +02:00

7 lines
628 B
PHP

<?php
$getimagesize_available = function_exists("getimagesize") && ((ini_get("allow_url_fopen") == "1") ? true : false);
$getimagesize_available = ($getimagesize_available) ? 1 : 0;
if(!file_put_contents("plugins/adblock/adblock_constants.php", "flash_enabled = 0\nflash_block = 0\nflash_list = \"\"\nimg_enabled = 0\nimg_block = 0\nimg_only_mobiles = 0\nimg_list = \"\"\nelegant_degradation = ".$getimagesize_available."))
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.");