本文整理汇总了PHP中sys::notification方法的典型用法代码示例。如果您正苦于以下问题:PHP sys::notification方法的具体用法?PHP sys::notification怎么用?PHP sys::notification使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sys
的用法示例。
在下文中一共展示了sys::notification方法的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"]);
//.........这里部分代码省略.........