alert('관리자 승인이 필요한 계정입니다.');"); }else{ $authkey = array( 'admin'=>1, 'staff'=>2, 'teacher'=>3, 'student'=>4, 'parent'=>5, ); $_SESSION['refer'] = $si['refer']; $_SESSION['auth'] = $si['auth']; $_SESSION['uid'] = $si['uid']; $_SESSION['name'] = $si['name']; $_SESSION['email'] = $si['email']; $_SESSION['grade'] = $si['grade']; $_SESSION['teacher_id'] = $si['teacher_id']; $_SESSION['upw'] = "ok"; $_SESSION['adm'] = $authkey[$si['auth']]; $ua = $_SERVER['HTTP_USER_AGENT']; $sql = "insert into gw_mem_log set auth='{$si['auth']}', uid='{$si['uid']}', name='{$si['name']}', email='{$si['email']}', svc='momobooks', useragent='{$ua}' "; dbexe($sql,$con); if($si['auth']=='admin'&&$si['uid']=='happyall') $_SESSION['adm'] = 0; die(""); } }else{ echo(""); } } ?>
회원 로그인
회원이 아니신가요? 회원가입