Exemplo n.º 1
1
 public static function getUserDevices($userId)
 {
     $arResult = array();
     if (CModule::IncludeModule("pull")) {
         $dbres = CPullPush::GetList(array(), array("USER_ID" => $userId));
         while ($arDb = $dbres->Fetch()) {
             if ($arDb["DEVICE_TYPE"] == "APPLE") {
                 CModule::IncludeModule("mobileapp");
                 CMobile::Init();
                 /*					if(CMobile::$isDev)
                 						$protocol = 1;
                 					else */
                 $protocol = 2;
             } else {
                 $protocol = 3;
             }
             $arResult[] = $arDb["DEVICE_TOKEN"] . ":" . $protocol . ":BitrixAdmin";
         }
     }
     return $arResult;
 }
Exemplo n.º 2
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("mobileapp")) {
    die;
}
CMobile::Init();
IncludeTemplateLangFile(__FILE__);
?>
<!DOCTYPE html>
<html<?php 
echo $APPLICATION->ShowProperty("Manifest");
?>
 class="<?php 
echo CMobile::$platform;
?>
">
<head>
	<?php 
$APPLICATION->ShowHead();
?>
	<meta http-equiv="Content-Type" content="text/html;charset=<?php 
echo SITE_CHARSET;
?>
"/>
	<meta name="format-detection" content="telephone=no">
	<!--<link href="<?php 
echo CUtil::GetAdditionalFileURL(SITE_TEMPLATE_PATH . "/template_styles.css");
?>