Your ROOT_URL in app.ini is https://code.exacti.com.br/ but you are visiting https://git.exacti.com.br/ExacTI/phacil-framework/src/commit/c8f15f57ab9ea66bd65ecad81021cd4cc152bf49/system/ecompress/ai-cookie.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
A super easy PHP Framework for web development! https://github.com/exacti/phacil-framework

9 lines
352 B

<?php
$maxwidth = isset($_GET['maxwidth']) ? intval($_GET['maxwidth']) : null;
if(null === $maxwidth || $maxwidth === "unknown") { $maxwidth = 3000; } // we need a number, so give it something unfeasable
setcookie('resolution',$maxwidth,time()+604800,'/'); // set the cookie
// respond with an empty content
header('HTTP/1.1 204 No Content');
exit();