mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
16 lines
406 B
PHP
16 lines
406 B
PHP
<?php
|
|
|
|
session_start();
|
|
|
|
if (isset($_REQUEST['width'], $_REQUEST['height'])) {
|
|
if (is_numeric($_REQUEST['height']) && is_numeric($_REQUEST['width'])) {
|
|
$_SESSION['screen_width'] = $_REQUEST['width'];
|
|
$_SESSION['screen_height'] = $_REQUEST['height'];
|
|
}
|
|
}
|
|
|
|
session_write_close();
|
|
|
|
header('Content-type: text/plain');
|
|
echo $_SESSION['screen_width'] . 'x' . $_SESSION['screen_height'];
|