?> <script language='javascript'> SiteLocation="<?php echo SiteLocation; ?> "; SITENAME="<?php echo SITENAME; ?> "; PAGE="<?php echo PAGE; ?> "; UserDevice="<?php echo strtoupper(getUserDevice()); ?> "; UserDeviceType="<?php echo strtoupper(getUserDeviceType()); ?> "; CurrentUser="******""; ?> "; CurrentRole="<?php echo isset($_SESSION['SESS_PRIVILEGE_NAME']) ? $_SESSION['SESS_PRIVILEGE_NAME'] : ""; ?> "; function getServiceCMD(cmd,action,q) {
public function test_getUserDevice() { $tz = getUserDevice(); $expected = 'PC'; $this->assertEquals($expected, $tz); }