Files
librenms-librenms/html/ajax_setresolution.php
Louis Bailleul fc9f7eade8 Store browser height and width in session using ajax call
Modify html/includes/print-graphrow.inc.php to make use of the new Session variable
2015-11-26 17:08:39 +00:00

10 lines
230 B
PHP

<?php
session_start();
if(isset($_REQUEST['width']) AND isset($_REQUEST['height'])) {
$_SESSION['screen_width'] = $_REQUEST['width'];
$_SESSION['screen_height'] = $_REQUEST['height'];
}
echo $_SESSION['screen_width'];
?>