/mnt/web601/b3/14/57451114/htdocs/httpdocs/admin/gm_counter_action.php
<?php
/* --------------------------------------------------------------
   gm_counter_action.php 2017-04-07
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2017 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]

   IMPORTANT! THIS FILE IS DEPRECATED AND WILL BE REPLACED IN THE FUTURE. 
   MODIFY IT ONLY FOR FIXES. DO NOT APPEND IT WITH NEW FEATURES, USE THE
   NEW GX-ENGINE LIBRARIES INSTEAD.
   --------------------------------------------------------------

*/

require('includes/application_top.php');
require_once(DIR_FS_CATALOG . 'gm/inc/gm_navigate_pages.inc.php');
require(DIR_FS_ADMIN . 'includes/gm/classes/GMStat.php');

$GMStat = new GMStat();
$GMStat->update();

switch(($_GET['action']))
{

	/*
	*	-> get the overview
	*/
	case 'gm_counter_visitor':
	case 'gm_counter_search':
	case 'gm_counter_user':
	case 'gm_counter_pages':
		$t_success = $GMStat->setGraph();
		if($t_success)
		{
			$image_path = 'graph-' . LogControl::get_secure_token() . '.png';
			echo '<img src="' . DIR_WS_CATALOG . 'admin/gm_counter_action.php?action=get_statsimage&file=' . rawurlencode(base64_encode($image_path)) . '&img_id='
			     . time() . '">';

		}

		include(DIR_FS_ADMIN . 'includes/gm/gm_counter/gm_counter_form.php');

		break;

	/*
	*	-> start page
	*/
	case 'gm_start':
		require_once(DIR_FS_ADMIN . 'includes/gm/classes/GMStart.php');
		$gm_Start = new GMStart();
		echo $gm_Start->getStatistic();
		break;

	/*
	*	-> get submenus
	*/
	case 'gm_box_submenu_visitor':
	case 'gm_box_submenu_pages':
	case 'gm_box_submenu_user':
	case 'gm_box_submenu_search':
	case 'gm_box_submenu_conf':
		include(DIR_FS_ADMIN . 'includes/gm/gm_counter/gm_counter_submenu.php');
		break;

	case 'gmc_user_screen':
		// -> save to session
		if((int)$_GET['screen_width'] <= 980)
		{
			$_SESSION['screen_width'] = 980;
		}
		else
		{
			$_SESSION['screen_width'] = 1236;
		}
		break;

	case 'get_statsimage':
		header('Content-Type: image/png');
		header('Expires: Sun, 01 Jan 2014 00:00:00 GMT');
		header('Cache-Control: no-store, no-cache, must-revalidate');
		header('Cache-Control: post-check=0, pre-check=0', FALSE);
		header('Pragma: no-cache');

		$file = DIR_FS_CATALOG . 'cache/' . base64_decode(filter_input(INPUT_GET, 'file'));

		if (!empty($file)) {
		        $im = imagecreatefrompng($file);
		        imagepng($im);
		        imagedestroy($im);
                        @unlink($file);
                        exit;
		}
		break;
}

unset($GMStat);

Unexpected error occurred...

Class "main_ORIGIN" not found