当前位置: 首页>>代码示例>>PHP>>正文


PHP Mobile::is_mobile_device方法代码示例

本文整理汇总了PHP中Mobile::is_mobile_device方法的典型用法代码示例。如果您正苦于以下问题:PHP Mobile::is_mobile_device方法的具体用法?PHP Mobile::is_mobile_device怎么用?PHP Mobile::is_mobile_device使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mobile的用法示例。


在下文中一共展示了Mobile::is_mobile_device方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GET

* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
//Check active session
Session::useractive();
// Login parameter probably deprecated
$login = GET('login');
ossim_valid($login, OSS_USER, 'illegal:' . _("Login"));
if (ossim_error()) {
    die(ossim_error());
}
if (Mobile::is_mobile_device() && isset($login)) {
    $_POST['login'] = $login;
}
$screen = GET("screen");
if ($screen == "logout") {
    //header('Location: /ossim/session/login.php?action=logout');
    ?>
    <script type="text/javascript">
         location.href='/ossim/session/login.php?action=logout';
    </script> 
    <?php 
    die("");
}
function get_siem_events($conn, $date, $pid = 0, $sid = 0)
{
    $data = array();
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:mobile_option.php

示例2:

                    $('#submit_button').addClass('av_b_processing');
                    $('#pass').val($.base64.encode($('#passu').val()));
                });

                <?php 
}
?>
        });

    </script>
</head>

<body>

    <?php 
if (Mobile::is_mobile_device()) {
    ?>
        <div id='c_login'>
            <form method="POST" id='f_login' name='f_login' action="login.php">
                <table align="center" class='noborder'>
                    <tr>
                        <td class="noborder">
                            <table align="center" class="noborder">
                                <tr>
                                    <td class="noborder" style="text-align:center;padding:30px 20px 3px 20px">
                                        <img src="/ossim/pixmaps/<?php 
    echo $b_logo;
    ?>
" border='0'/>
                                    </td>
                                </tr>
开发者ID:alienfault,项目名称:ossim,代码行数:31,代码来源:login.php

示例3: set_time_limit

* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
//Check active session
Session::useractive();
set_time_limit(180);
if (Mobile::is_mobile_device() && isset($_GET['login'])) {
    $_POST['login'] = $_GET['login'];
}
$screen = GET("screen");
if ($screen == "logout") {
    //header('Location: /ossim/session/login.php?action=logout');
    ?>
    <script type="text/javascript">
         location.href='/ossim/session/login.php?action=logout';
    </script> 
    <?php 
    die("");
}
function html_service_level($conn)
{
    global $user;
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:mobile_option.php


注:本文中的Mobile::is_mobile_device方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。