A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
352 B
9 lines
352 B
6 years ago
|
<?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();
|