function ajax_checkonline() { $checkid = MooGetGPC('checkid', 'integer', 'G'); $ret = check_online($checkid); if ($ret) { echo 1; } else { echo 0; } }
preg_match("/[^\\/]+\$/", $currentFile, $matches); $filename = "/" . $matches[0]; header("Location: " . $BASEURL . $filename . ""); } $time_start = get_microtime(); clearstatcache(); $style_css = load_css("main.css"); $idlang = intval($_GET["language"]); $pageID = isset($_GET["page"]) ? $_GET["page"] : ""; $no_columns = isset($_GET["nocolumns"]) && intval($_GET["nocolumns"]) == 1 ? true : false; //which module by cooly if ($pageID == "modules") { $MID = isset($_GET["module"]) ? htmlentities($_GET["module"]) : ($MID = ""); check_online(session_id(), $MID == "" ? "index" : $MID); } else { check_online(session_id(), $pageID == "" ? "index" : $pageID); } require load_language("lang_main.php"); ////////////////////////////ARCADE///////////////////// $arcswitch = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT status FROM {$TABLE_PREFIX}blocks WHERE content = 'arcade'"); $arcon = mysqli_fetch_array($arcswitch); if ($arcon["status"] == '1') { $user = $CURUSER['uid']; $arcuser = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * FROM {$TABLE_PREFIX}users WHERE id = " . $user); $arcus = mysqli_fetch_array($arcuser); $arcadeuser = $arcus["username"]; $upbon = $btit_settings["arc_upl"] * 1024 * 1024; $seedbon = $btit_settings["arc_sb"]; if ($btit_settings["arc_aw"] == true) { $arte = $btit_settings["arc_upl"] . ' MB upload'; } else {
<img src="templates/images/w.gif" alt="女" title="女"/> <?php } else { ?> <img src="templates/images/m.gif" alt="男" title="男"/> <?php } echo $v['nickname']; ?> </td> <td align="center"><?php echo date("Y") - $v['birthyear']; ?> </td> <td align="center"><?php if (check_online($v['uid'])) { ?> <span style="color:#CF6454;">在线</span> <?php } elseif (time() - $v['lastvisit'] < 24 * 3600) { ?> <span style="color:#B4A23B;">一天内</span> <?php } elseif (time() - $v['lastvisit'] < 7 * 24 * 3600) { ?> <span style="color:#629DBE;">一周内</span> <?php } else { ?> <span style="">一周外</span><?php }
// [OBJ_NAME] => admin01 // [OBJ_DESC] => sTeam Admin // [USER_FIRSTNAME] => Moritz // [USER_FULLNAME] => Mustermann // [OBJ_ICON] => 179 // [USER_PROFILE_FOCUS] => 0 // [USER_PROFILE_FACULTY] => 0 // [USER_ACADEMIC_TITLE] => 0 // [OBJ_ID] => 837 // ) // ) $no_contacts = count($contacts); if ($no_contacts > 0) { for ($i = 0; $i < $no_contacts; $i++) { $contact = $contacts[$i]; echo "<contact uid=\"" . $contact["OBJ_NAME"] . "\" online=\"" . check_online($contact["USER_LAST_LOGIN"]) . "\"><![CDATA[" . $contact["USER_FIRSTNAME"] . " " . $contact["USER_FULLNAME"] . "]]></contact>" . "\n"; } } echo "</contacts>" . "\n"; //echo "<courses current_semester_name=\"" . STEAM_CURRENT_SEMESTER . "\">"; $cache = get_cache_function("ORGANIZATION", 600); $semesters = $cache->call("lms_steam::get_semesters"); $no_semesters = count($semesters); if ($no_semesters > 0) { foreach ($semesters as $semester) { if ($semester["OBJ_NAME"] == STEAM_CURRENT_SEMESTER) { $current_semester_obj_id = $semester["OBJ_ID"]; $current_semester_obj_name = $semester["OBJ_NAME"]; } } echo "<courses current_semester_name=\"" . $current_semester_obj_name . "\" current_semester_id=\"" . $current_semester_obj_id . "\">" . "\n";
} $image = $userObj->get_avatar($uid); $manhref = "profile.php?uid=".$uid; $manArray[] = array("type"=>$type,"manhref"=>$manhref,"manname"=>$rowi['name'], "inf"=>$rowi['grade'],"picture"=>$image); */ } } if ($mansql->num_rows > 0 && $search != "") { while ($rowi = $mansql->fetch_assoc()) { $uid = $rowi['uid']; if (in_array($uid, $uidarray)) { continue; } $uidarray[] = $uid; $image = $userObj->get_avatar($uid); if (check_online($uid)) { $type = "text-success"; } else { $type = ""; } $manhref = SITE_DOMAIN . "/profile.php?uid=" . $uid; $manArray[] = array("type" => $type, "manhref" => $manhref, "manname" => $rowi['name'], "inf" => $rowi['workplace'], "picture" => $image); } } else { if ($search == "") { $smarty->assign('mannum', 0); } else { $smarty->assign('mannum', $mansql->num_rows); } $manArray[] = array("type" => "", "manhref" => "", "manname" => "", "inf" => "无相关人物信息"); }