0) { $row = mysql_fetch_object ($rs); $_SESSION['ss_id'] = $row->sid; $_SESSION['ss_name'] = $row->name; $_SESSION['ss_auth'] = $row->auth; $_SESSION['ss_area'] = $row->area; $_SESSION['ss_section'] = $row->section; $_SESSION['ss_edit'] = ""; if (strpos($row->section,"성광이엔지") > -1 ) //2017-03-26 strpos 함수 안먹음? $_SESSION['ss_edit'] = "W2Y"; else if (strpos($row->section,"도봉구") > -1 ) $_SESSION['ss_edit'] = "W0A"; if (strlen($_REQUEST['id']) >= 10 && substr($_REQUEST['id'],0,3) == "010" ) $_SESSION['ss_mobile'] = "ent_cell"; $sql = "update bm_staff set vistime=now(),visited=visited+1 where sid='" . $row->sid . "'"; mysql_query($sql); //$cp = date("w", strtotime(date('Y-m-d',time()))); //if ($_SESSION['ss_id'] != 'admin') // if ( $cp == 0 || $cp == 6 || date('H:i',time()) > "20:59" || date('H:i',time()) < "08:00") // unset($_SESSION["ss_id"]); ?>