Files
librenms-librenms/html/ajax_setresolution.php

10 lines
301 B
PHP
Raw Normal View History

<?php
session_start();
if(isset($_REQUEST['width']) AND isset($_REQUEST['height'])) {
$_SESSION['screen_width'] = $_REQUEST['width'];
$_SESSION['screen_height'] = $_REQUEST['height'];
}
2016-02-08 16:29:53 -08:00
header('Content-type: application/json');
echo $_SESSION['screen_width'];
echo $_SESSION['screen_height'];