Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 9 lines (7 sloc) 0.352 kb
dece746 @MattWilcox Added a no-javascript method
MattWilcox authored
1 <?php
5465e61 @oncletom * replying with no content (only headers are sent; fast for client side)
oncletom authored
2 $maxwidth = isset($_GET['maxwidth']) ? intval($_GET['maxwidth']) : null;
3
4 if(null === $maxwidth || $maxwidth === "unknown") { $maxwidth = 3000; } // we need a number, so give it something unfeasable
dece746 @MattWilcox Added a no-javascript method
MattWilcox authored
5 setcookie('resolution',$maxwidth,time()+604800,'/'); // set the cookie
6
5465e61 @oncletom * replying with no content (only headers are sent; fast for client side)
oncletom authored
7 // respond with an empty content
8 header('HTTP/1.1 204 No Content');
9 exit();
Something went wrong with that request. Please try again.