2015-11-19 13:39:32 +00:00
|
|
|
<?php
|
2017-05-15 22:18:23 -05:00
|
|
|
|
2015-11-19 13:39:32 +00:00
|
|
|
session_start();
|
2017-05-15 22:18:23 -05:00
|
|
|
|
|
|
|
|
if (isset($_REQUEST['width'], $_REQUEST['height'])) {
|
2017-11-14 08:42:06 -07:00
|
|
|
if (is_numeric($_REQUEST['height']) && is_numeric($_REQUEST['width'])) {
|
|
|
|
|
$_SESSION['screen_width'] = $_REQUEST['width'];
|
|
|
|
|
$_SESSION['screen_height'] = $_REQUEST['height'];
|
|
|
|
|
}
|
2015-11-19 13:39:32 +00:00
|
|
|
}
|
2017-05-15 22:18:23 -05:00
|
|
|
|
|
|
|
|
session_write_close();
|
|
|
|
|
|
2016-02-10 13:22:22 -08:00
|
|
|
header('Content-type: text/plain');
|
2017-05-15 22:18:23 -05:00
|
|
|
echo $_SESSION['screen_width'] . 'x' . $_SESSION['screen_height'];
|