예제 #1
0
파일: Core.php 프로젝트: CoolHeatCRM/CRM2
function printUI2($AID)
{
    $IIDS = getInterfaces($AID);
    $IIDSN = count($IIDS);
    for ($x = 0; $x < IIDSN; $x++) {
        $Interface = getInterface($IIDS[$x]);
        printInterface($Interface);
    }
}
예제 #2
0
<html>
<?php 
$allow_mobile_redirect = true;
/************************
 * Import PHP Libraries *
 ************************/
include 'interface_check.php';
$included_interface = function_exists('getInterface');
include 'layout.php';
$included_layout = function_exists('site_header');
/***********************
 * Determine Interface *
 ***********************/
if ($included_interface) {
    if (isMobile(getInterface())) {
        // Mobile - redirect
        $mobile = $allow_mobile_redirect;
    } else {
        // Desktop - do not redirect
        $mobile = false;
    }
} else {
    // Interface checked missing - assume desktop
    $mobile = false;
}
if ($mobile) {
    echo '<head><meta http-equiv="Refresh" content="1;url=http://m.hsrtracker.com"></head>';
    die;
}
/**********************
 * Get Form Variables *