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


PHP sys::warning方法代码示例

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


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

示例1: sys_process_session_request

function sys_process_session_request()
{
    if (!empty($_REQUEST["popup"]) and !empty($_REQUEST["iframe"])) {
        unset($_REQUEST["iframe"]);
    }
    if (!empty($_REQUEST["iframe"])) {
        sys::$smarty->assign("iframe", 1);
    }
    $keep_vars = array("popup", "preview", "lookup", "eto");
    foreach ($keep_vars as $var) {
        if (empty($_REQUEST[$var])) {
            continue;
        }
        sys::$urladdon .= "&" . $var . "=" . $_REQUEST[$var];
        sys::$smarty->assign($var, $_REQUEST[$var]);
    }
    $_SESSION["view"]["_" . $GLOBALS["tfolder"]] = $GLOBALS["tview"];
    sys::$urladdon = "folder2=" . rawurlencode($GLOBALS["tfolder"]) . "&view2=" . $GLOBALS["tview"] . sys::$urladdon;
    sys::$smarty->assign("urladdon", sys::$urladdon);
    if (!empty($_REQUEST["action_sys"]) and !empty($_SESSION["username"]) and sys_is_super_admin($_SESSION["username"])) {
        admin::process_action_sys();
    }
    if (!empty($_REQUEST["style"])) {
        $_SESSION["theme"] = basename($_REQUEST["style"]);
    }
    sys::$smarty->assign("sys_style", !empty($_SESSION["theme"]) ? $_SESSION["theme"] : DEFAULT_STYLE);
    $table = $GLOBALS["table"];
    if ($GLOBALS["tview"] != $table["view"]) {
        $GLOBALS["tview"] = $table["view"];
    }
    $tview = $GLOBALS["tview"];
    $tfolder = $GLOBALS["tfolder"];
    $tfolders = $GLOBALS["tfolders"];
    $tname = $GLOBALS["tname"];
    $tquota = $GLOBALS["tquota"];
    $anchor = $GLOBALS["sel_folder"]["anchor"];
    if (!empty($_REQUEST["reset_view"])) {
        $_SESSION[$tname][$tview] = array();
        $_SESSION["_" . $tfolder] = array();
        $_SESSION["view"]["_" . $tfolder] = $tview;
        $_SESSION[$tname]["_" . $tfolder] = array();
    }
    $current_view = $table["views"][$tview];
    $cview = $current_view;
    $template = $tview;
    if ($current_view["TEMPLATE"] != "") {
        $template = $current_view["TEMPLATE"];
    }
    if (isset($current_view["SCHEMA"]) and $current_view["SCHEMA"] != "") {
        $table2 = db_get_schema(sys_find_module($current_view["SCHEMA"]));
        $current_view = array_shift($table2["views"]);
        // preserve in search, override for schema=x
        if (!empty($table["att"]["SQL_HANDLER"]) and empty($current_view["SQL_HANDLER"])) {
            $current_view["SQL_HANDLER"] = $table["att"]["SQL_HANDLER"];
        }
        $GLOBALS["table"] = $table2;
        // needed for asset-functions and triggers
        $table["att"] = $table2["att"];
        if ($current_view["TEMPLATE"] != "") {
            $template = $current_view["TEMPLATE"];
        }
    }
    $GLOBALS["current_view"] = $current_view;
    $field_names = array();
    foreach ($current_view["fields"] as $key => $field) {
        if (isset($field["NODB"]) and empty($current_view["SQL_HANDLER"])) {
            continue;
        }
        $field_names[] = $key;
    }
    if (!empty($_SESSION["alert"])) {
        sys::$alert = array_merge(sys::$alert, $_SESSION["alert"]);
        $_SESSION["alert"] = array();
    }
    if (!empty($_SESSION["notification"])) {
        sys::$notification = array_merge(sys::$notification, $_SESSION["notification"]);
        $_SESSION["notification"] = array();
    }
    if (!empty($_SESSION["warning"])) {
        sys::$warning = array_merge(sys::$warning, $_SESSION["warning"]);
        $_SESSION["warning"] = array();
    }
    if ($table["views"][$tview]["SCHEMA_MODE"] != "") {
        $tfolders = _build_merge_folders(array_keys($tfolders), $tfolder, $tview, true);
    }
    $dclick = $current_view["DOUBLECLICK"];
    if ($dclick == "") {
        if (in_array($template, array("display", "free")) and isset($current_view["views"]["details"])) {
            $dclick = "details";
        } else {
            $dclick = "edit";
        }
    }
    if (isset($current_view["MERGE_TABS"])) {
        unset($current_view["tabs"]);
        foreach (array_keys($current_view["fields"]) as $key) {
            $current_view["fields"][$key]["SIMPLE_TAB"] = array("general");
        }
    }
    $tfield_1 = isset($current_view["TFIELD_1"]) ? $current_view["TFIELD_1"] : modify::get_required_field($current_view["fields"]);
//.........这里部分代码省略.........
开发者ID:drognisep,项目名称:Simple-Groupware,代码行数:101,代码来源:funcs.php


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