librenms-librenms/html/ajax_setresolution.php

14 lines
315 B
PHP
Raw Normal View History

<?php
session_start();
if (isset($_REQUEST['width'], $_REQUEST['height'])) {
$_SESSION['screen_width'] = $_REQUEST['width'];
$_SESSION['screen_height'] = $_REQUEST['height'];
}
session_write_close();
2016-02-10 13:22:22 -08:00
header('Content-type: text/plain');
echo $_SESSION['screen_width'] . 'x' . $_SESSION['screen_height'];