| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/system/classes/statistics/ |
Upload File : |
<?php
/* --------------------------------------------------------------
SetScreenAjaxHandler.inc.php 2013-11-13 gm
Gambio GmbH
http://www.gambio.de
Copyright (c) 2013 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
gm_counter_set_screen.php 2008-03-17 gambio
Gambio OHG
http://www.gambio.de
Copyright (c) 2008 Gambio OHG
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
gmc.php 2007-09-22 pt@gambio
Gambio OHG
http://www.gambio.de
Copyright (c) 2007 Gambio OHG
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
class SetScreenAjaxHandler extends AjaxHandler
{
function get_permission_status($p_customers_id=NULL)
{
return true;
}
function proceed()
{
if($_GET['gm_action'] == 'gmc_user_screen')
{
$gmc_updater = new gmc();
// -> set defaults
if(empty($_GET['screen_resolution']))
{
$_GET['screen_resolution'] = 'UNKNOWN';
}
if(empty($_GET['color_depth']))
{
$_GET['color_depth'] = 'UNKNOWN';
}
// -> save
$gmc_updater->gmc_set_info_value($_GET['screen_resolution'], 'resolution');
$gmc_updater->gmc_set_info_value($_GET['color_depth'], 'color_depth');
}
return true;
}
}
?>