Example #1
0
        if (windowOS($rs_useragent_right)) {
            $right_num_mobile_windows = $right_num_mobile_windows + 1;
        }
    }
    //tablet agent
    if ($detect->isTablet()) {
        $right_num_tablet = $right_num_tablet + 1;
        //        $tablet_right_date = getDeviceDate($rs_useragent_right_datetime); //get device date
        //        //datetime:result right side for process tablet bottom line chart.
        //        $rs_right_tablet[$tablet_right_date] = $rs_right_tablet[$tablet_right_date] + 1;
        if (iOS($rs_useragent_right)) {
            $right_num_tablet_iOS = $right_num_tablet_iOS + 1;
        }
        if (andoidOS($rs_useragent_right)) {
            $right_num_tablet_android = $right_num_tablet_android + 1;
        }
        if (windowOS($rs_useragent_right)) {
            $right_num_tablet_windows = $right_num_tablet_windows + 1;
        }
    }
    //desktop agent
    if (!$detect->isTablet() && !$detect->isMobile()) {
        $right_num_desktop = $right_num_desktop + 1;
        //        $desktop_right_date = getDeviceDate($rs_useragent_right_datetime); //get device date
        //        //datetime:result right side for process desktop bottom line chart.
        //        $rs_right_desktop[$desktop_right_date] = $rs_right_desktop[$desktop_right_date] + 1;
    }
}
//end while
$right_agent_total = array('mobile' => array('total' => $right_num_mobile, 'iOS' => $right_num_mobile_iOS, 'Android' => $right_num_mobile_android, 'win' => $right_num_mobile_windows), 'tablet' => array('total' => $right_num_tablet, 'iOS' => $right_num_tablet_iOS, 'Android' => $right_num_tablet_android, 'win' => $right_num_tablet_windows), 'desktop' => array('total' => $right_num_desktop));
/*****************************************************End Right side*************************/
Example #2
0
        }
    }
    //tablet agent
    if ($detect->isTablet()) {
        $left_num_tablet = $left_num_tablet + 1;
        $tablet_left_date = getDeviceDate($rs_useragent_left_datetime);
        //get device date
        //datetime:result left side for process tablet bottom line chart.
        $rs_left_tablet[$tablet_left_date] = $rs_left_tablet[$tablet_left_date] + 1;
        if (iOS($rs_useragent_left)) {
            $left_num_tablet_iOS = $left_num_tablet_iOS + 1;
        }
        if (andoidOS($rs_useragent_left)) {
            $left_num_tablet_android = $left_num_tablet_android + 1;
        }
        if (windowOS($rs_useragent_left)) {
            $left_num_mobile_windows = $left_num_mobile_windows + 1;
        }
    }
    //desktop agent
    if (!$detect->isTablet() && !$detect->isMobile()) {
        $left_num_desktop = $left_num_desktop + 1;
        $desktop_left_date = getDeviceDate($rs_useragent_left_datetime);
        //get device date
        //datetime:result left side for process desktop bottom line chart.
        $rs_left_desktop[$desktop_left_date] = $rs_left_desktop[$desktop_left_date] + 1;
    }
}
//end while
$left_agent_total = array('mobile' => array('total' => $left_num_mobile, 'iOS' => $left_num_mobile_iOS, 'Android' => $left_num_mobile_android, 'win' => $left_num_mobile_windows), 'tablet' => array('total' => $left_num_tablet, 'iOS' => $left_num_tablet_iOS, 'Android' => $left_num_tablet_android, 'win' => $left_num_tablet_windows), 'desktop' => array('total' => $left_num_desktop));
/*****************************************************End Left side*************************/